Index: MDService2/branches/MDService_simple3/.project
===================================================================
--- MDService2/branches/MDService_simple3/.project	(revision 1516)
+++ MDService2/branches/MDService_simple3/.project	(revision 1516)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>MDService2</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>
Index: MDService2/branches/MDService_simple3/README.txt
===================================================================
--- MDService2/branches/MDService_simple3/README.txt	(revision 1516)
+++ MDService2/branches/MDService_simple3/README.txt	(revision 1516)
@@ -0,0 +1,41 @@
+CMDI Metadata Service / Metadata Browser 
+========================================
+
+This version is building upon the framework apache.Struts2
+http://struts.apache.org/2.1.8.1/index.html
+(Hopefully) all needed jars are included under:
+WebContent\WEB-INF\lib
+(Although this is probably not good subversion behaviour)
+
+Some XSLT2 xsl-library is needed. It was developed with saxon9:
+saxon9.jar, saxon9-dom.jar
+This is to be available to the servlet container
+eg. in /path_to_local/ApacheTomcat/lib
+
+It's being developed in eclipse, the .project-file is included.
+
+There is an ant-build for building and deploying.
+In build.properties one has to set the 
+deploy.dir = /path_to_local/ApacheTomcat/webapps
+to be able to run target 'deploy-local'
+
+Or just run 'archive' and put the resulting MDService2.war in the appropriate webapps-folder
+of the servlet container used.
+
+in mdservice.properties need to set the path to a local cache- and profile-folder:
+cache.path = /path_to_local/MDService_cache
+workspaceprofile.path = /path_to_local/MDService_profile
+
+Where you have to put then at least 
+WorkspaceProfileServer.xml
+which carries the settings regarding the repositories. (new feature: dynamic repositores)
+So here you can list your own repository.
+The property: mdrepository.uri is currently still used as fall-back.
+
+
+Some more information starting from:
+http://trac.clarin.eu/wiki/CmdiMetadataServices
+
+
+Initial Import by and questions, comments, outrage to 
+Matej xnrn@gmx.net
Index: MDService2/branches/MDService_simple3/WebContent/Error.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/Error.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/Error.jsp	(revision 1516)
@@ -0,0 +1,15 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="ISO-8859-1"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Sorry, Error!</title>
+</head>
+<body>
+<h2>Sorry, Error!</h2>
+<p><s:property value="error" /></p>
+
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/Exception.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/Exception.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/Exception.jsp	(revision 1516)
@@ -0,0 +1,34 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="ISO-8859-1"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>MDService2: Sorry, Error!</title>
+</head>
+<body>
+<h2>MDService2: An error has occurred</h2>
+<hr/>
+
+<s:property value="userMsg"/><br/>
+<s:actionerror/>
+<p>
+ 	format:<s:property value="getFullFormat()"/><br/>
+ 	proxy_key:<s:property value="getProxyKey()"/><br/>
+ 	actionkey:<s:property value="actionkey"/><br/>
+ 	base_url:<s:property value="getBaseURL()"/><br/>
+ 	target_url:<s:property value="targetURL"/><br/>
+ 	
+    <s:property value="%{exception.message}"/>
+</p>
+<!-- <hr/>
+<div id="err_details" >
+<h3>Technical Details</h3>
+<p>
+    <s:property value="%{exceptionStack}"/>
+</p>
+</div>
+ -->
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/ExceptionXML.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/ExceptionXML.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/ExceptionXML.jsp	(revision 1516)
@@ -0,0 +1,10 @@
+<%@ page contentType="text/xml" %>
+
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<diagnostics>
+  <diagnostic xmlns="http://www.loc.gov/zing/srw/diagnostic">
+    <uri>info:srw/diagnostic/1/1</uri>    
+    <message>Exception occurred: <s:property value="%{exception.message}"/></message>
+    <details><s:property value="%{exceptionStack}"/></details>    
+  </diagnostic>
+</diagnostics>
Index: MDService2/branches/MDService_simple3/WebContent/META-INF/MANIFEST.MF
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/META-INF/MANIFEST.MF	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/META-INF/MANIFEST.MF	(revision 1516)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+
Index: MDService2/branches/MDService_simple3/WebContent/WEB-INF/web.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/WEB-INF/web.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/WEB-INF/web.xml	(revision 1516)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+<display-name>MDService2</display-name>
+  <welcome-file-list>
+    <welcome-file>index</welcome-file>
+  </welcome-file-list>
+  
+ 	
+  	<context-param> <param-name>ShhaaConfigLocation</param-name> <param-value>/WEB-INF/shhaa.xml</param-value>
+    </context-param>
+ <!-- 
+  <filter>
+    <filter-name>AAIFilter</filter-name>
+    <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class>
+  </filter>
+  <filter-mapping>
+    <filter-name>AAIFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+  <listener>
+    <listener-class>de.mpg.aai.shhaa.config.ConfigContextListener</listener-class>
+  </listener>
+  		-->			 
+    <filter>
+        <filter-name>struts2</filter-name>
+        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
+    </filter>
+
+     <filter-mapping>
+        <filter-name>struts2</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+    
+   
+   <servlet-mapping>  
+        <servlet-name>default</servlet-name>  
+        <url-pattern>/default/*</url-pattern>  
+    </servlet-mapping> 
+    
+     
+  <security-constraint>
+    <display-name>CLARIN Metadata Service</display-name>
+    <web-resource-collection>
+      <web-resource-name>MDService Workspace</web-resource-name>
+      <description></description>
+      <url-pattern>/workspace.jsp</url-pattern>      
+    </web-resource-collection>
+    <auth-constraint>
+      <role-name>auth</role-name>
+    </auth-constraint>
+  </security-constraint>  
+  <login-config>
+    <auth-method>BASIC</auth-method>
+  </login-config>
+      
+
+ 
+</web-app>
Index: MDService2/branches/MDService_simple3/WebContent/desktop.ini
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/desktop.ini	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/desktop.ini	(revision 1516)
@@ -0,0 +1,4 @@
+[ViewState]
+Mode=
+Vid=
+FolderType=Documents
Index: MDService2/branches/MDService_simple3/WebContent/index.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/index.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/index.jsp	(revision 1516)
@@ -0,0 +1,189 @@
+<%@ page language="java" contentType="text/html; UTF-8"
+    pageEncoding="UTF-8"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>CLARIN Metadata Repository/Service/Browser</title>
+
+<link rel="stylesheet" href="style/jquery/clarindotblue/jquery-ui-1.8.5.custom.css" type="text/css" />
+
+
+
+<link href="style/cmds-ui.css" type="text/css" rel="stylesheet" />
+
+<!-- obsolete? -->
+<link href="style/jquery/jquery-textboxlist/TextboxList.css" rel="stylesheet" type="text/css" />
+<link href="style/jquery/jquery-autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
+<link href="style/jquery/jquery-treeview/jquery.treeview.css" rel="stylesheet" />
+<link href="style/jquery/treetable/jquery.treeTable.css" rel="stylesheet" type="text/css" />
+<link href="style/jquery/jquery-layout/layout-default-latest.css" rel="stylesheet" type="text/css" />
+<!-- - obsolete -->  
+
+<script src="scripts/jquery/js/jquery-1.4.2.js" type="text/javascript"></script>
+<script src="scripts/jquery/js/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>
+
+<script src="scripts/jquery/jquery-textboxlist/GrowingInput.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-treeview/jquery.treeview.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-treeTable/jquery.treeTable.js" type="text/javascript"></script>
+
+<script src="scripts/jquery/jsTree.v.1.0rc2/jquery.jstree.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-autocomplete/jquery.autocomplete.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-layout/jquery.layout-1.3.0.rc29.12.js" type="text/javascript"></script>
+
+<script src="scripts/mdservice_ui_settings.js" type="text/javascript"></script>
+<script src="scripts/mdservice_helpers.js" type="text/javascript"></script>
+<script src="scripts/mdservice_ui_helpers.js" type="text/javascript"></script>
+<script src="scripts/mdservice_widgets.js" type="text/javascript"></script>
+<script src="scripts/mdservice_searchclause.js" type="text/javascript"></script>
+<script src="scripts/mdservice_model.js" type="text/javascript"></script>
+<script src="scripts/mdservice_pz2.js" type="text/javascript"></script>
+<script src="scripts/mdservice_ui_detail.js" type="text/javascript"></script>
+<script src="scripts/mdservice_ui_load.js" type="text/javascript"></script>
+<script src="scripts/mdservice_ui.js" type="text/javascript"></script>
+</head>
+
+<body>
+
+<!--  - BLOCK -->
+<div class="cmds-ui-block" id="titlelogin">
+	<div id="logo"><a href="http://www.clarin.eu" ><img src="style/imgs/clarin-logo.png" alt="CLARIN"></img></a> <div id="site-name" >Metadata Browser</div>
+	</div>
+	
+	<div id="top-menu">
+			<div id="user">
+					<% if ( request.getRemoteUser() == null) {  %> 
+					<a href="workspace.jsp" >    login</a>
+					<% } else {  %> 
+					User: <b><%= request.getRemoteUser() %></b><a href="logout.jsp" >    logout</a> 
+					<% }%>
+						
+						<!-- class="open-in-context"  -->									
+					<a target="_blank" href="docs/htmlpage/info" > docs</a>
+			</div>
+			<div id="notify" class="cmds-elem-plus note" >
+				<div id="notifylist" class="note"> <!--  class="cmds-elem-plus note" > -->
+				</div>
+			</div> 
+	</div>
+</div>
+<!-- --------------------- -->
+
+<!-- QUERYSEARCH - BLOCK -->	 
+<div class="cmds-ui-block init-show"  id="querysearch" >
+	 	<div class="header ui-widget-header ui-state-default ui-corner-top" ><span>Querysearch</span></div>
+	 	<div class="content" id="query-input" >   	
+			 <s:form action="searchretrieve">							
+				<input type="text" id="input-simplequery" name="_query"/>
+				<input type="submit"  value="submit" id="submit-query"/>
+				
+				<div> 
+					<table class="cmds-ui-elem-stretch ui-advanced">
+					<tr>
+					<td valign="top">
+						<div id="repositories" >		
+								<label>Repository</label> <select id="repositories_select" ></select>								
+						</div>
+							<!--  selected collections  -->
+							<!-- <label>Collections</label><br/>-->
+				        	<div id="collections-widget" class="c-widget"></div>
+					    	
+					</td>
+					<td valign="top">
+						<label>Complex query</label><span name='detail_index' class='cmd cmd_detail'></span><br/>
+						<div id="searchclauselist"></div>							
+						<!--<input type="checkbox" checked="false" id="input-withsummary" name="WS"/><label>with Summary</label> 
+						 -->
+					</td>
+					</tr>					       
+				        	<!-- TERMS BLOCK -->
+						<!--		<div class="cmds-ui-block" id="terms-block">
+									<div class="header">Terms</div>	
+									<div id="terms" class="content">
+										<div id="model_profiles"></div>
+										<div id="model_terms"></div>
+									</div>
+									<div id="terms_autocomplete"></div>
+								</div>    
+							
+							  	<label>columns</label><br/>
+				        	<div id="columns-widget" class="c-widget"></div>	
+				      -->
+											        
+					</table>	
+				</div>
+			</s:form>
+		</div>
+</div>  	
+	
+	<!-- all COLLECTIONS BLOCK -->
+							<div class="cmds-ui-block" id="collections-block">
+									<!--   <div class="header">Collections</div> -->
+									<div id="collections" class="content"></div>
+							</div>
+							<!-- ------------------------------------- -->
+	
+			
+			
+<!-- QUERYLIST BLOCK -->
+<div id="querylistblock" class="cmds-ui-block">
+<div class="header ui-widget-header ui-state-default ui-corner-top" ><span>QUERYLIST</span></div>
+<div class="content"  id="querylist">
+</div>
+</div>
+	
+<div id="detailblock" class="cmds-ui-block">
+<div class="header ui-widget-header ui-state-default ui-corner-top" ><span>DETAIL</span></div>
+<div class="content" id="details"></div>
+</div>
+
+<div id="public-space" class="cmds-ui-block">
+		<div class="header"><span>Public Space</span></div>
+
+		<div id="serverqs" class="content" >
+		</div>	
+</div>
+
+<div class="cmds-ui-block init-show" id="user-space">
+	<div class="header" ><span>Personal Workspace</span></div>	
+	<div id="userqs" class="content">
+			<div id="userquerysets" >		
+				<label>Querysets</label><select id="qts_select" ></select>
+				<!--  <button id="qts_add" class="cmd cmd_add" >Add</button> -->
+				<span id="qts_add" class="cmd cmd_add" ></span> 
+				<span id="qts_delete" class="cmd cmd_del" ></span>
+			</div>
+			
+			<label>name</label>
+			<input type="text" id="qts_input" ></input>
+			<span id="qts_save" class="cmd cmd_save" ></span>
+			<div id="userqueries" ></div>
+	</div>
+	<div id="userbs" class="content">
+			<div id="bookmarksets" >		
+				<label>Bookmarksets</label><select id="bts_select" ></select>
+				<span id="bts_add" class="cmd cmd_add" ></span> 
+				<span id="bts_delete" class="cmd cmd_del" ></span>
+				<span id="bts_publish" class="cmd cmd_publish" ></span>
+			</div>
+			
+			<label>name</label>
+			<input type="text" id="bts_input" ></input>
+			<span id="bts_save" class="cmd cmd_save" ></span>
+			<div id="bookmarks" ></div>
+	</div>	
+</div>
+
+<div id="detail-float">	 
+</div>
+<div id="detail-floating">	 
+</div>
+	
+<div id="terms_autocomplete"></div>
+
+
+</body>
+
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/index_old.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/index_old.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/index_old.jsp	(revision 1516)
@@ -0,0 +1,188 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="UTF-8"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>CLARIN Metadata Repository/Service/Browser</title>
+<link rel="stylesheet" href="style/jquery/clarindotblue/jquery-ui-1.8.5.custom.css" type="text/css" />
+<link href="style/jquery/jquery-treeview/jquery.treeview.css" rel="stylesheet" />
+<link href="style/cmds-ui.css" type="text/css" rel="stylesheet" /> 
+<link href="style/jquery/jquery-textboxlist/TextboxList.css" rel="stylesheet" type="text/css" />
+<link href="style/jquery/jquery-autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
+<link href="style/jquery/treetable/jquery.treeTable.css" rel="stylesheet" type="text/css" />
+
+<script src="scripts/jquery/js/jquery-1.4.2.js" type="text/javascript"></script>
+<script src="scripts/jquery/js/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-textboxlist/GrowingInput.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-treeview/jquery.treeview.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-treeTable/jquery.treeTable.js" type="text/javascript"></script>
+<script src="scripts/jquery/jsTree.v.1.0rc2/jquery.jstree.js" type="text/javascript"></script>
+<script src="scripts/jquery/jquery-autocomplete/jquery.autocomplete.js" type="text/javascript"></script>
+<script src="scripts/mdservice_helpers.js" type="text/javascript"></script>
+<script src="scripts/mdservice_searchclause.js" type="text/javascript"></script>
+<script src="scripts/mdservice_widgets.js" type="text/javascript"></script>
+<script src="scripts/mdservice_model.js" type="text/javascript"></script>
+<script src="scripts/mdservice2_ui.js" type="text/javascript"></script>
+</head>
+<body>
+<div id="header" >
+	<div id="logo"><a href="http://www.clarin.eu" ><img src="style/imgs/clarin-logo.png" alt="CLARIN"></img></a> <div id="site-name" >Metadata Browser</div>
+	</div>
+	
+	<div id="top-menu">
+			<div id="user">
+					<% if ( request.getRemoteUser() == null) {  %> 
+					<a href="workspace.jsp" >    login</a>
+					<% } else {  %> 
+					User: <b><%= request.getRemoteUser() %></b><a href="logout.jsp" >    logout</a> 
+					<% }%>
+						
+						<!-- class="open-in-context"  -->									
+					<a target="_blank" href="docs/htmlpage/info" > docs</a>
+			</div>
+			<div id="notify" class="cmds-elem-plus note" >
+				<div id="notifylist" class="note"> <!--  class="cmds-elem-plus note" > -->
+				</div>
+			</div>
+			
+		
+	<!-- <a href="static/profiles_stats.html" >Info from CompReg and DCR about Elements vs. DatCats</a>  --> 
+	</div>
+</div>
+<div id="left-menu" >
+	<div id="public-space" class="cmds-ui-block">
+		<div class="header">Public Space</div>
+
+		<div id="serverqs" class="content" data="">
+<!--		 
+			<div id="repositories" >		
+			<label>Repositories</label><select id="repositories_select" ></select>
+			</div>
+	
+			<div id="serverquerysets" >		
+			<label>Querysets</label><select id="serverqts_select" ></select>
+			</div>
+			<div id="serverqueries" ></div>
+			-->
+		</div>
+			
+	</div>
+
+	  
+	<div class="cmds-ui-block init-show">
+	<div class="header" >Personal Workspace</div>	
+		<div id="userqs" class="content">
+			<div id="userquerysets" >		
+				<label>Querysets</label><select id="qts_select" ></select>
+				<!--  <button id="qts_add" class="cmd cmd_add" >Add</button> -->
+				<span id="qts_add" class="cmd cmd_add" ></span> 
+				<span id="qts_delete" class="cmd cmd_del" ></span>
+			</div>
+			
+			<label>name</label>
+			<input type="text" id="qts_input" ></input>
+			<span id="qts_save" class="cmd cmd_save" ></span>
+			<div id="userqueries" ></div>
+			
+			<div id="usertermsets" >		
+				<label>Termsets</label><select id="ts_select" ></select>
+				<span id="ts_add" class="cmd cmd_add" ></span> 
+				<span id="ts_delete" class="cmd cmd_del" ></span>
+			</div>		
+			<label>name</label>
+			<input type="text" id="ts_input" ></input>
+			<span id="ts_save" class="cmd cmd_save" ></span>
+			<div id="userterms" ></div>
+		</div>
+		
+	</div>
+	
+	<div class="cmds-ui-block">
+		<div class="header">Collections</div>
+		<div id="collections" class="content">
+		</div>
+	</div>
+	<div class="cmds-ui-block">
+		<div class="header">Terms</div>	
+		<div id="terms" class="content">
+			<div id="model_profiles"> 		
+			</div>
+			<div id="model_terms"> 		
+			</div>
+		</div>
+		<div id="terms_autocomplete"></div>
+	</div>
+	
+	<div class="cmds-ui-block">
+		<div class="header">Profiles/Components</div>	
+		<div id="compreg" class="content">
+			<div id="profiles" >		
+			</div>
+			<div id="components" >
+			</div>
+		</div>		
+	</div>
+</div>
+
+<div id="main" class="ui-widget">	
+	<div id="search">	
+<!-- 	<label id="toggle_inputmode_cmd" >TEXT</label> --> 
+		<div  class="cmds-ui-block init-show" >
+	 	<!-- <div class="ui-widget-header ui-state-default ui-corner-top" >Query</div>
+	 	<div class="ui-widget-content ui-corner-bottom">  -->
+	 	<div class="header" >Query</div>
+	 	<div id="query-input" class="content">   	
+			 <s:form action="searchretrieve">
+				<!-- <label id="toggle_inputmode_cmd"  value="TEXT" />-->							
+				<input type="text" id="input-simplequery" name="_query"  />
+				<input type="submit"  value="submit" id="submit-query"/>				
+				<input type="text" id="query_list" name="_query_" />	
+				<table class="cmds-ui-elem-stretch"><tr>
+			        <td valign="top">       
+			        	<label>collections</label><br/>
+			        	<div id="collections-widget" class="c-widget">
+			        	<!--<textarea id="collection_list" class="cmds-ui-elem-stretch"></textarea> 
+			        	 -->
+			        </td>
+			        <td valign="top">
+			        	<label>columns</label><br/>
+			        	<div id="columns-widget" class="c-widget">
+			        	<!--  <input type='text' class='input-widget autocomplete-input' />
+			        	<div class='index-context'><table></table></div>
+			        	<div id='columns-list' class='list-widget'></div>
+			        	-->
+			        	</div>
+			        	<!-- <textarea id="columns_list" class="cmds-ui-elem-stretch"></textarea>
+			        	 -->	
+			        </td>		
+			        <td valign="top">
+			        	<div id="repositories" >		
+						<label>Repository</label> <select id="repositories_select" ></select>
+						</div>
+			        <input type="checkbox" checked="false" id="input-withsummary" name="WS"/><label>with Summary</label>
+			        &nbsp;&nbsp;&nbsp;<a target="_blank" href="docs/htmlpage/queries" > example queries</a>
+					</td>      
+				</tr></table>		
+			</s:form>
+		  </div>
+		</div>  
+	</div>	
+	<div id="querylist" class="block">
+	</div>
+	
+	<div id="detail-float">	 
+	</div>
+	<div id="notify-float">	 
+	</div>
+	<div id="detail">		
+	</div>	
+	
+</div>
+<div id="bubble">
+</div>
+
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/logout.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/logout.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/logout.jsp	(revision 1516)
@@ -0,0 +1,20 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="UTF-8"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+
+
+  <%    
+	session.removeAttribute("User");
+	if (session != null) {
+		session.invalidate();
+	}
+	
+	%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta HTTP-EQUIV="REFRESH" content="0; url=/../MDService2/">
+</head>
+<body>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-autocomplete/jquery.autocomplete.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-autocomplete/jquery.autocomplete.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-autocomplete/jquery.autocomplete.css	(revision 1516)
@@ -0,0 +1,47 @@
+
+.ac_results {
+	padding: 0px;
+	border: 1px solid WindowFrame;
+	background-color: Window;
+	overflow: hidden;
+}
+
+.ac_results ul {
+	width: 100%;
+	list-style-position: outside;
+	list-style: none;
+	padding: 0;
+	margin: 0;
+}
+
+.ac_results iframe {
+	display:none;/*sorry for IE5*/
+	display/**/:block;/*sorry for IE5*/
+	position:absolute;
+	top:0;
+	left:0;
+	z-index:-1;
+	filter:mask();
+	width:3000px;
+	height:3000px;
+}
+
+.ac_results li {
+	margin: 0px;
+	padding: 2px 5px;
+	cursor: pointer;
+	display: block;
+	width: 100%;
+	font: menu;
+	font-size: 120%;
+	overflow: hidden;
+}
+
+.ac_loading {
+	background : Window url('./indicator.gif') right center no-repeat;
+}
+
+.ac_over {
+	background-color: Highlight;
+	color: HighlightText;
+}
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-autocomplete/jquery.autocomplete.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-autocomplete/jquery.autocomplete.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-autocomplete/jquery.autocomplete.js	(revision 1516)
@@ -0,0 +1,502 @@
+jQuery.autocomplete = function(input, options) {
+	// Create a link to self
+	var me = this;
+
+	// Create jQuery object for input element
+	var $input = $(input).attr("autocomplete", "off");
+
+	// Apply inputClass if necessary
+	if (options.inputClass) $input.addClass(options.inputClass);
+
+	// Create results
+	var results = document.createElement("div");
+	// Create jQuery object for results
+	var $results = $(results);
+	$results.hide().addClass(options.resultsClass).css("position", "absolute");
+	if( options.width > 0 ) $results.css("width", options.width);
+
+	// Add to body element
+	$("body").append(results);
+
+	input.autocompleter = me;
+
+	var timeout = null;
+	var prev = "";
+	var active = -1;
+	var cache = {};
+	var keyb = false;
+	var hasFocus = false;
+	var lastKeyPressCode = null;
+
+	// flush cache
+	function flushCache(){
+		cache = {};
+		cache.data = {};
+		cache.length = 0;
+	};
+
+	// flush cache
+	flushCache();
+
+	// if there is a data array supplied
+	if( options.data != null ){
+		var sFirstChar = "", stMatchSets = {}, row = [];
+
+		// no url was specified, we need to adjust the cache length to make sure it fits the local data store
+		if( typeof options.url != "string" ) options.cacheLength = 1;
+
+		// loop through the array and create a lookup structure
+		for( var i=0; i < options.data.length; i++ ){
+			// if row is a string, make an array otherwise just reference the array
+			row = ((typeof options.data[i] == "string") ? [options.data[i]] : options.data[i]);
+
+			// if the length is zero, don't add to list
+			if( row[0].length > 0 ){
+				// get the first character
+				sFirstChar = row[0].substring(0, 1).toLowerCase();
+				// if no lookup array for this character exists, look it up now
+				if( !stMatchSets[sFirstChar] ) stMatchSets[sFirstChar] = [];
+				// if the match is a string
+				stMatchSets[sFirstChar].push(row);
+			}
+		}
+
+		// add the data items to the cache
+		for( var k in stMatchSets ){
+			// increase the cache size
+			options.cacheLength++;
+			// add to the cache
+			addToCache(k, stMatchSets[k]);
+		}
+	}
+
+	$input
+	.keydown(function(e) {
+		// track last key pressed
+		lastKeyPressCode = e.keyCode;
+		switch(e.keyCode) {
+			case 38: // up
+				e.preventDefault();
+				moveSelect(-1);
+				break;
+			case 40: // down
+				e.preventDefault();
+				moveSelect(1);
+				break;
+			case 9:  // tab
+			case 13: // return
+				if( selectCurrent() ){
+					// make sure to blur off the current field
+					$input.get(0).blur();
+					e.preventDefault();
+				}
+				break;
+			default:
+				active = -1;
+				if (timeout) clearTimeout(timeout);
+				timeout = setTimeout(function(){onChange();}, options.delay);
+				break;
+		}
+	})
+	.focus(function(){
+		// track whether the field has focus, we shouldn't process any results if the field no longer has focus
+		hasFocus = true;
+	})
+	.blur(function() {
+		// track whether the field has focus
+		hasFocus = false;
+		hideResults();
+	});
+
+	hideResultsNow();
+
+	function onChange() {
+		// ignore if the following keys are pressed: [del] [shift] [capslock]
+		if( lastKeyPressCode == 46 || (lastKeyPressCode > 8 && lastKeyPressCode < 32) ) return $results.hide();
+		var v = $input.val();
+		if (v == prev) return;
+		prev = v;
+		if (v.length >= options.minChars) {
+			$input.addClass(options.loadingClass);
+			requestData(v);
+		} else {
+			$input.removeClass(options.loadingClass);
+			$results.hide();
+		}
+	};
+
+ 	function moveSelect(step) {
+
+		var lis = $("li", results);
+		if (!lis) return;
+
+		active += step;
+
+		if (active < 0) {
+			active = 0;
+		} else if (active >= lis.size()) {
+			active = lis.size() - 1;
+		}
+
+		lis.removeClass("ac_over");
+
+		$(lis[active]).addClass("ac_over");
+
+		// Weird behaviour in IE
+		// if (lis[active] && lis[active].scrollIntoView) {
+		// 	lis[active].scrollIntoView(false);
+		// }
+
+	};
+
+	function selectCurrent() {
+		var li = $("li.ac_over", results)[0];
+		if (!li) {
+			var $li = $("li", results);
+			if (options.selectOnly) {
+				if ($li.length == 1) li = $li[0];
+			} else if (options.selectFirst) {
+				li = $li[0];
+			}
+		}
+		if (li) {
+			selectItem(li);
+			return true;
+		} else {
+			return false;
+		}
+	};
+
+	function selectItem(li) {
+		if (!li) {
+			li = document.createElement("li");
+			li.extra = [];
+			li.selectValue = "";
+		}
+		var v = $.trim(li.selectValue ? li.selectValue : li.innerHTML);
+		input.lastSelected = v;
+		prev = v;
+		$results.html("");
+		$input.val(v);
+		hideResultsNow();
+		if (options.onItemSelect) setTimeout(function() { options.onItemSelect(li) }, 1);
+	};
+
+	// selects a portion of the input string
+	function createSelection(start, end){
+		// get a reference to the input element
+		var field = $input.get(0);
+		if( field.createTextRange ){
+			var selRange = field.createTextRange();
+			selRange.collapse(true);
+			selRange.moveStart("character", start);
+			selRange.moveEnd("character", end);
+			selRange.select();
+		} else if( field.setSelectionRange ){
+			field.setSelectionRange(start, end);
+		} else {
+			if( field.selectionStart ){
+				field.selectionStart = start;
+				field.selectionEnd = end;
+			}
+		}
+		field.focus();
+	};
+
+	// fills in the input box w/the first match (assumed to be the best match)
+	function autoFill(sValue){
+		// if the last user key pressed was backspace, don't autofill
+		if( lastKeyPressCode != 8 ){
+			// fill in the value (keep the case the user has typed)
+			$input.val($input.val() + sValue.substring(prev.length));
+			// select the portion of the value not typed by the user (so the next character will erase)
+			createSelection(prev.length, sValue.length);
+		}
+	};
+
+	function showResults() {
+		// get the position of the input field right now (in case the DOM is shifted)
+		var pos = findPos(input);
+		// either use the specified width, or autocalculate based on form element
+		var iWidth = (options.width > 0) ? options.width : $input.width();
+		// reposition
+		$results.css({
+			width: parseInt(iWidth) + "px",
+			top: (pos.y + input.offsetHeight) + "px",
+			left: pos.x + "px"
+		}).show();
+	};
+
+	function hideResults() {
+		if (timeout) clearTimeout(timeout);
+		timeout = setTimeout(hideResultsNow, 200);
+	};
+
+	function hideResultsNow() {
+		if (timeout) clearTimeout(timeout);
+		$input.removeClass(options.loadingClass);
+		if ($results.is(":visible")) {
+			$results.hide();
+		}
+		if (options.mustMatch) {
+			var v = $input.val();
+			if (v != input.lastSelected) {
+				selectItem(null);
+			}
+		}
+	};
+
+	function receiveData(q, data) {
+		if (data) {
+			$input.removeClass(options.loadingClass);
+			results.innerHTML = "";
+
+			// if the field no longer has focus or if there are no matches, do not display the drop down
+			if( !hasFocus || data.length == 0 ) return hideResultsNow();
+
+			if ($.browser.msie) {
+				// we put a styled iframe behind the calendar so HTML SELECT elements don't show through
+				$results.append(document.createElement('iframe'));
+			}
+			results.appendChild(dataToDom(data));
+			// autofill in the complete box w/the first match as long as the user hasn't entered in more data
+			if( options.autoFill && ($input.val().toLowerCase() == q.toLowerCase()) ) autoFill(data[0][0]);
+			showResults();
+		} else {
+			hideResultsNow();
+		}
+	};
+
+	function parseData(data) {
+		if (!data) return null;
+		var parsed = [];
+		var rows = data.split(options.lineSeparator);
+		for (var i=0; i < rows.length; i++) {
+			var row = $.trim(rows[i]);
+			if (row) {
+				parsed[parsed.length] = row.split(options.cellSeparator);
+			}
+		}
+		return parsed;
+	};
+
+	function dataToDom(data) {
+		var ul = document.createElement("ul");
+		var num = data.length;
+
+		// limited results to a max number
+		if( (options.maxItemsToShow > 0) && (options.maxItemsToShow < num) ) num = options.maxItemsToShow;
+
+		for (var i=0; i < num; i++) {
+			var row = data[i];
+			if (!row) continue;
+			var li = document.createElement("li");
+			if (options.formatItem) {
+				li.innerHTML = options.formatItem(row, i, num);
+				li.selectValue = row[0];
+			} else {
+				li.innerHTML = row[0];
+				li.selectValue = row[0];
+			}
+			var extra = null;
+			if (row.length > 1) {
+				extra = [];
+				for (var j=1; j < row.length; j++) {
+					extra[extra.length] = row[j];
+				}
+			}
+			li.extra = extra;
+			ul.appendChild(li);
+			$(li).hover(
+				function() { $("li", ul).removeClass("ac_over"); $(this).addClass("ac_over"); active = $("li", ul).indexOf($(this).get(0)); },
+				function() { $(this).removeClass("ac_over"); }
+			).click(function(e) { e.preventDefault(); e.stopPropagation(); selectItem(this) });
+		}
+		return ul;
+	};
+
+	function requestData(q) {
+		if (!options.matchCase) q = q.toLowerCase();
+		var data = options.cacheLength ? loadFromCache(q) : null;
+		// recieve the cached data
+		if (data) {
+			receiveData(q, data);
+		// if an AJAX url has been supplied, try loading the data now
+		} else if( (typeof options.url == "string") && (options.url.length > 0) ){
+			$.get(makeUrl(q), function(data) {
+				data = parseData(data);
+				addToCache(q, data);
+				receiveData(q, data);
+			});
+		// if there's been no data found, remove the loading class
+		} else {
+			$input.removeClass(options.loadingClass);
+		}
+	};
+
+	function makeUrl(q) {
+		var url = options.url + "?q=" + encodeURI(q);
+		for (var i in options.extraParams) {
+			url += "&" + i + "=" + encodeURI(options.extraParams[i]);
+		}
+		return url;
+	};
+
+	function loadFromCache(q) {
+		if (!q) return null;
+		if (cache.data[q]) return cache.data[q];
+		if (options.matchSubset) {
+			for (var i = q.length - 1; i >= options.minChars; i--) {
+				var qs = q.substr(0, i);
+				var c = cache.data[qs];
+				if (c) {
+					var csub = [];
+					for (var j = 0; j < c.length; j++) {
+						var x = c[j];
+						var x0 = x[0];
+						if (matchSubset(x0, q)) {
+							csub[csub.length] = x;
+						}
+					}
+					return csub;
+				}
+			}
+		}
+		return null;
+	};
+
+	function matchSubset(s, sub) {
+		if (!options.matchCase) s = s.toLowerCase();
+		var i = s.indexOf(sub);
+		if (i == -1) return false;
+		return i == 0 || options.matchContains;
+	};
+
+	this.flushCache = function() {
+		flushCache();
+	};
+
+	this.setExtraParams = function(p) {
+		options.extraParams = p;
+	};
+
+	this.findValue = function(){
+		var q = $input.val();
+
+		if (!options.matchCase) q = q.toLowerCase();
+		var data = options.cacheLength ? loadFromCache(q) : null;
+		if (data) {
+			findValueCallback(q, data);
+		} else if( (typeof options.url == "string") && (options.url.length > 0) ){
+			$.get(makeUrl(q), function(data) {
+				data = parseData(data)
+				addToCache(q, data);
+				findValueCallback(q, data);
+			});
+		} else {
+			// no matches
+			findValueCallback(q, null);
+		}
+	}
+
+	function findValueCallback(q, data){
+		if (data) $input.removeClass(options.loadingClass);
+
+		var num = (data) ? data.length : 0;
+		var li = null;
+
+		for (var i=0; i < num; i++) {
+			var row = data[i];
+
+			if( row[0].toLowerCase() == q.toLowerCase() ){
+				li = document.createElement("li");
+				if (options.formatItem) {
+					li.innerHTML = options.formatItem(row, i, num);
+					li.selectValue = row[0];
+				} else {
+					li.innerHTML = row[0];
+					li.selectValue = row[0];
+				}
+				var extra = null;
+				if( row.length > 1 ){
+					extra = [];
+					for (var j=1; j < row.length; j++) {
+						extra[extra.length] = row[j];
+					}
+				}
+				li.extra = extra;
+			}
+		}
+
+		if( options.onFindValue ) setTimeout(function() { options.onFindValue(li) }, 1);
+	}
+
+	function addToCache(q, data) {
+		if (!data || !q || !options.cacheLength) return;
+		if (!cache.length || cache.length > options.cacheLength) {
+			flushCache();
+			cache.length++;
+		} else if (!cache[q]) {
+			cache.length++;
+		}
+		cache.data[q] = data;
+	};
+
+	function findPos(obj) {
+		var curleft = obj.offsetLeft || 0;
+		var curtop = obj.offsetTop || 0;
+		while (obj = obj.offsetParent) {
+			curleft += obj.offsetLeft
+			curtop += obj.offsetTop
+		}
+		return {x:curleft,y:curtop};
+	}
+}
+
+jQuery.fn.autocomplete = function(url, options, data) {
+	// Make sure options exists
+	options = options || {};
+	// Set url as option
+	options.url = url;
+	// set some bulk local data
+	options.data = ((typeof data == "object") && (data.constructor == Array)) ? data : null;
+
+	// Set default values for required options
+	options.inputClass = options.inputClass || "ac_input";
+	options.resultsClass = options.resultsClass || "ac_results";
+	options.lineSeparator = options.lineSeparator || "\n";
+	options.cellSeparator = options.cellSeparator || "|";
+	options.minChars = options.minChars || 1;
+	options.delay = options.delay || 400;
+	options.matchCase = options.matchCase || 0;
+	options.matchSubset = options.matchSubset || 1;
+	options.matchContains = options.matchContains || 0;
+	options.cacheLength = options.cacheLength || 1;
+	options.mustMatch = options.mustMatch || 0;
+	options.extraParams = options.extraParams || {};
+	options.loadingClass = options.loadingClass || "ac_loading";
+	options.selectFirst = options.selectFirst || false;
+	options.selectOnly = options.selectOnly || false;
+	options.maxItemsToShow = options.maxItemsToShow || -1;
+	options.autoFill = options.autoFill || false;
+	options.width = parseInt(options.width, 10) || 0;
+
+	this.each(function() {
+		var input = this;
+		new jQuery.autocomplete(input, options);
+	});
+
+	// Don't break the chain
+	return this;
+}
+
+jQuery.fn.autocompleteArray = function(data, options) {
+	return this.autocomplete(null, options, data);
+}
+
+jQuery.fn.indexOf = function(e){
+	for( var i=0; i<this.length; i++ ){
+		if( this[i] == e ) return i;
+	}
+	return -1;
+};
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/changelog.txt
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/changelog.txt	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/changelog.txt	(revision 1516)
@@ -0,0 +1,60 @@
+1.2.0
+* ADDED maskIframesOnResize option: true=ALL -OR- a selector string
+* ADDED options to set different animations on open and close
+* ADDED new callback events, ie: onshow, onhide
+* ADDED start/end callbacks, eg: onopen_start, onopen_end, etc.
+* ADDED ability to cancel events using callbacks, eg: onopen_start
+* CHANGED Layout.config.fxDefaults to Layout.effects (internal use)
+* FIXED missing semi-colon so minified version works in IE
+
+1.1.3
+* FIXED typo in cursor-hotkeys code
+* ADDED scrollToBookmarkOnLoad options - enables use of URL hash:
+    o www.site.com/page.html#myBookmark
+    o AFTER layout is created, attempts to scroll to bookmark
+    o default = true - otherwise bookmarks are non-functional
+
+1.1.2
+* UPDATED paneSelector rules to handle FORMS and pane-nesting
+    o automatically looks for panes inside 'first form' in container
+    o if using an ID as paneSelector, pane can be 'deeply nested'
+* ADDED auto-CSS for 'containers' other than BODY
+    o overflow: hidden   - ensures no scrollbars on container
+    o position: relative - IF NOT: fixed, absolute or relative
+    o height:   100%     - IF NOT specified or is 'auto'
+* ADDED noAnimation param to open() and close() - not used internally
+
+1.1.1
+* CHANGED toggler element from a SPAN to a DIV
+* CHANGED auto-generated custom-buttons classes for better consistency
+    o [buttonClass]-[pane]-[buttonType] ==> [buttonClass]-[buttonType]-[pane]
+    o ui-layout-button-west-open ==> ui-layout-button-open-west
+    o ui-layout-button-west-pin-up ==> ui-layout-button-pin-west-up
+* CHANGED default for hideTogglerOnSlide to false
+* CHANGED internal 'cDims' hash to alias for state.container
+* CHANGED internal aliases: s = state[pane] and o = options[pane]
+* UPDATED toggler-text to auto-show correct spans (content-open/closed)
+* FIXED toggler-text - now centers text span correctly
+* FIXED bug affecting IE6 when layout has no north or south pane
+* ADDED new layout property 'state' - eg: myLayout.state.west.size
+* REMOVED layout.containerDimensions property - USE: layout.state.container
+* CHANGED data returned to callbacks - added pane-state as 3rd param
+
+1.1.0
+* RENAMED raisePaneZindexOnHover ==> showOverflowOnHover
+* REMOVED "overflow: auto" from base-styles. Overflow must now be set by 
+    CSS - unless applyDefaultStyles==true. No longer need "!important" to 
+	set pane overflow in your stylesheet.
+* CHANGED minSize default from 50 to 0 (still auto-limited to 'css size')
+* FIXED bug in allowOverflow - now works with 'custom paneClass'
+* EXPOSED two CSS utility methods
+    o myLayout.cssWidth( elem )
+    o myLayout.cssHeight( elem )
+* NEW auto-resize for ALL layouts on windows.resize 
+* UPDATED auto-resizing of panes after a container-resize
+* NEW flow-code to prevent simultaneous pane animations
+* NEW options to add text inside toggler-buttons
+* NEW options for hotkeys - standard (cursors) and user-defined 
+
+1.0
+* Initial release
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/example.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/example.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/example.html	(revision 1516)
@@ -0,0 +1,23 @@
+<HTML>
+<HEAD>
+<TITLE>Layout Example</TITLE>
+<SCRIPT type="text/javascript" src="jquery.js"></SCRIPT>
+<SCRIPT type="text/javascript" src="jquery.layout.js"></SCRIPT>
+<SCRIPT type="text/javascript">
+$(document).ready(function () {
+	$('body').layout({ applyDefaultStyles: true });
+});
+</SCRIPT>
+</HEAD>
+<BODY>
+<DIV class="ui-layout-center">Center
+	<P><A href="http://layout.jquery-dev.net/demos.html">Go to the Demos page</A></P>
+	<P>* Pane-resizing is disabled because ui.draggable.js is not linked</P>
+	<P>* Pane-animation is disabled because ui.effects.js is not linked</P>
+</DIV>
+<DIV class="ui-layout-north">North</DIV>
+<DIV class="ui-layout-south">South</DIV>
+<DIV class="ui-layout-east">East</DIV>
+<DIV class="ui-layout-west">West</DIV>
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout-1.3.0.rc29.12.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout-1.3.0.rc29.12.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout-1.3.0.rc29.12.js	(revision 1516)
@@ -0,0 +1,4231 @@
+/**
+ * @preserve jquery.layout 1.3.0 - Release Candidate 29.12
+ * $Date: 2010-11-12 08:00:00 (Thu, 18 Nov 2010) $
+ * $Rev: 302912 $
+ *
+ * Copyright (c) 2010 
+ *   Fabrizio Balliano (http://www.fabrizioballiano.net)
+ *   Kevin Dalman (http://allpro.net)
+ *
+ * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
+ * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
+ *
+ * Docs: http://layout.jquery-dev.net/documentation.html
+ * Tips: http://layout.jquery-dev.net/tips.html
+ * Help: http://groups.google.com/group/jquery-ui-layout
+ */
+
+// NOTE: For best readability, view with a fixed-width font and tabs equal to 4-chars
+
+;(function ($) {
+
+var $b = $.browser;
+
+/*
+ *	GENERIC $.layout METHODS - used by all layouts
+ */
+$.layout = {
+
+	// can update code here if $.browser is phased out
+	browser: {
+		mozilla:	!!$b.mozilla
+	,	webkit:		!!$b.webkit || !!$b.safari // webkit = jQ 1.4
+	,	msie:		!!$b.msie
+	,	isIE6:		!!$b.msie && $b.version == 6
+	,	boxModel:	false	// page must load first, so will be updated set by _create
+	//,	version:	$b.version - not used
+	}
+
+	/*
+	*	USER UTILITIES
+	*/
+
+	// calculate and return the scrollbar width, as an integer
+,	scrollbarWidth:		function () { return window.scrollbarWidth  || $.layout.getScrollbarSize('width'); }
+,	scrollbarHeight:	function () { return window.scrollbarHeight || $.layout.getScrollbarSize('height'); }
+,	getScrollbarSize:	function (dim) {
+		var $c	= $('<div style="position: absolute; top: -10000px; left: -10000px; width: 100px; height: 100px; overflow: scroll;"></div>').appendTo("body");
+		var d	= { width: $c.width() - $c[0].clientWidth, height: $c.height() - $c[0].clientHeight };
+		$c.remove();
+		window.scrollbarWidth	= d.width;
+		window.scrollbarHeight	= d.height;
+		return dim.match(/^(width|height)$/i) ? d[dim] : d;
+	}
+
+
+	/**
+	* Returns hash container 'display' and 'visibility'
+	*
+	* @see	$.swap() - swaps CSS, runs callback, resets CSS
+	*/
+,	showInvisibly: function ($E, force) {
+		if (!$E) return {};
+		if (!$E.jquery) $E = $($E);
+		var CSS = {
+			display:	$E.css('display')
+		,	visibility:	$E.css('visibility')
+		};
+		if (force || CSS.display == "none") { // only if not *already hidden*
+			$E.css({ display: "block", visibility: "hidden" }); // show element 'invisibly' so can be measured
+			return CSS;
+		}
+		else return {};
+	}
+
+	/**
+	* Returns data for setting size of an element (container or a pane).
+	*
+	* @see  _create(), onWindowResize() for container, plus others for pane
+	* @return JSON  Returns a hash of all dimensions: top, bottom, left, right, outerWidth, innerHeight, etc
+	*/
+,	getElemDims: function ($E) {
+		var
+			d	= {}			// dimensions hash
+		,	x	= d.css = {}	// CSS hash
+		,	i	= {}			// TEMP insets
+		,	b, p				// TEMP border, padding
+		,	off = $E.offset()
+		;
+		d.offsetLeft = off.left;
+		d.offsetTop  = off.top;
+
+		$.each("Left,Right,Top,Bottom".split(","), function (idx, e) { // e = edge
+			b = x["border" + e] = $.layout.borderWidth($E, e);
+			p = x["padding"+ e] = $.layout.cssNum($E, "padding"+e);
+			i[e] = b + p; // total offset of content from outer side
+			d["inset"+ e] = p;
+			/* WRONG ???
+			// if BOX MODEL, then 'position' = PADDING (ignore borderWidth)
+			if ($E == $Container)
+				d["inset"+ e] = (browser.boxModel ? p : 0); 
+			*/
+		});
+
+		d.offsetWidth	= $E.innerWidth();
+		d.offsetHeight	= $E.innerHeight();
+		d.outerWidth	= $E.outerWidth();
+		d.outerHeight	= $E.outerHeight();
+		d.innerWidth	= d.outerWidth  - i.Left - i.Right;
+		d.innerHeight	= d.outerHeight - i.Top  - i.Bottom;
+
+		// TESTING
+		x.width  = $E.width();
+		x.height = $E.height();
+	
+		return d;
+	}
+
+,	getElemCSS: function ($E, list) {
+		var
+			CSS	= {}
+		,	style	= $E[0].style
+		,	props	= list.split(",")
+		,	sides	= "Top,Bottom,Left,Right".split(",")
+		,	attrs	= "Color,Style,Width".split(",")
+		,	p, s, a, i, j, k
+		;
+		for (i=0; i < props.length; i++) {
+			p = props[i];
+			if (p.match(/(border|padding|margin)$/))
+				for (j=0; j < 4; j++) {
+					s = sides[j];
+					if (p == "border")
+						for (k=0; k < 3; k++) {
+							a = attrs[k];
+							CSS[p+s+a] = style[p+s+a];
+						}
+					else
+						CSS[p+s] = style[p+s];
+				}
+			else
+				CSS[p] = style[p];
+		};
+		return CSS
+	}
+
+	/**
+	* Contains logic to check boxModel & browser, and return the correct width/height for the current browser/doctype
+	*
+	* @see  initPanes(), sizeMidPanes(), initHandles(), sizeHandles()
+	* @param  {Array.<Object>}	$E  Must pass a jQuery object - first element is processed
+	* @param  {number=}			outerWidth/outerHeight  (optional) Can pass a width, allowing calculations BEFORE element is resized
+	* @return {number}		Returns the innerWidth/Height of the elem by subtracting padding and borders
+	*/
+,	cssWidth: function ($E, outerWidth) {
+		var
+			b = $.layout.borderWidth
+		,	n = $.layout.cssNum
+		;
+		// a 'calculated' outerHeight can be passed so borders and/or padding are removed if needed
+		if (outerWidth <= 0) return 0;
+
+		if (!$.layout.browser.boxModel) return outerWidth;
+
+		// strip border and padding from outerWidth to get CSS Width
+		var W = outerWidth
+			- b($E, "Left")
+			- b($E, "Right")
+			- n($E, "paddingLeft")		
+			- n($E, "paddingRight")
+		;
+
+		return W > 0 ? W : 0;
+	}
+
+,	cssHeight: function ($E, outerHeight) {
+		var
+			b = $.layout.borderWidth
+		,	n = $.layout.cssNum
+		;
+		// a 'calculated' outerHeight can be passed so borders and/or padding are removed if needed
+		if (outerHeight <= 0) return 0;
+
+		if (!$.layout.browser.boxModel) return outerHeight;
+
+		// strip border and padding from outerHeight to get CSS Height
+		var H = outerHeight
+			- b($E, "Top")
+			- b($E, "Bottom")
+			- n($E, "paddingTop")
+			- n($E, "paddingBottom")
+		;
+
+		return H > 0 ? H : 0;
+	}
+
+	/**
+	* Returns the 'current CSS numeric value' for an element - returns 0 if property does not exist
+	*
+	* @see  Called by many methods
+	* @param {Array.<Object>}	$E		Must pass a jQuery object - first element is processed
+	* @param {string}			prop	The name of the CSS property, eg: top, width, etc.
+	* @return {*}						Usually is used to get an integer value for position (top, left) or size (height, width)
+	*/
+,	cssNum: function ($E, prop) {
+		if (!$E.jquery) $E = $($E);
+		var CSS = $.layout.showInvisibly($E);
+		var val = parseInt($.curCSS($E[0], prop, true), 10) || 0;
+		$E.css( CSS ); // RESET
+		return val;
+	}
+
+,	borderWidth: function (el, side) {
+		if (el.jquery) el = el[0];
+		var b = "border"+ side.substr(0,1).toUpperCase() + side.substr(1); // left => Left
+		return $.curCSS(el, b+"Style", true) == "none" ? 0 : (parseInt($.curCSS(el, b+"Width", true), 10) || 0);
+	}
+
+	/**
+	* SUBROUTINE for preventPrematureSlideClose option
+	*
+	* @param {Object}		evt
+	* @param {Object=}		el
+	*/
+,	isMouseOverElem: function (evt, el) {
+		var
+			$E	= $(el || this)
+		,	d	= $E.offset()
+		,	T	= d.top
+		,	L	= d.left
+		,	R	= L + $E.outerWidth()
+		,	B	= T + $E.outerHeight()
+		,	x	= evt.pageX
+		,	y	= evt.pageY
+		;
+		// if X & Y are < 0, probably means is over an open SELECT
+		return ($.layout.browser.msie && x < 0 && y < 0) || ((x >= L && x <= R) && (y >= T && y <= B));
+	}
+
+};
+
+$.fn.layout = function (opts) {
+
+/*
+ * ###########################
+ *   WIDGET CONFIG & OPTIONS
+ * ###########################
+ */
+
+	// LANGUAGE CUSTOMIZATION - will be *externally customizable* in next version
+	var lang = {
+		Pane:		"Pane"
+	,	Open:		"Open"	// eg: "Open Pane"
+	,	Close:		"Close"
+	,	Resize:		"Resize"
+	,	Slide:		"Slide Open"
+	,	Pin:		"Pin"
+	,	Unpin:		"Un-Pin"
+	,	selector:	"selector"
+	,	msgNoRoom:	"Not enough room to show this pane."
+	,	errContainerMissing:	"UI Layout Initialization Error\n\nThe specified layout-container does not exist."
+	,	errCenterPaneMissing:	"UI Layout Initialization Error\n\nThe center-pane element does not exist.\n\nThe center-pane is a required element."
+	,	errContainerHeight:		"UI Layout Initialization Warning\n\nThe layout-container \"CONTAINER\" has no height.\n\nTherefore the layout is 0-height and hence 'invisible'!"
+	,	errButton:				"Error Adding Button \n\nInvalid "
+	};
+
+	// DEFAULT OPTIONS - CHANGE IF DESIRED
+	var options = {
+		name:						""			// Not required, but useful for buttons and used for the state-cookie
+	,	scrollToBookmarkOnLoad:		true		// after creating a layout, scroll to bookmark in URL (.../page.htm#myBookmark)
+	,	resizeWithWindow:			true		// bind thisLayout.resizeAll() to the window.resize event
+	,	resizeWithWindowDelay:		200			// delay calling resizeAll because makes window resizing very jerky
+	,	resizeWithWindowMaxDelay:	0			// 0 = none - force resize every XX ms while window is being resized
+	,	onresizeall_start:			null		// CALLBACK when resizeAll() STARTS	- NOT pane-specific
+	,	onresizeall_end:			null		// CALLBACK when resizeAll() ENDS	- NOT pane-specific
+	,	onload:						null		// CALLBACK when Layout inits - after options initialized, but before elements
+	,	onunload:					null		// CALLBACK when Layout is destroyed OR onWindowUnload
+	,	autoBindCustomButtons:		false		// search for buttons with ui-layout-button class and auto-bind them
+	,	zIndex:						null		// the PANE zIndex - resizers and masks will be +1
+	//	PANE SETTINGS
+	,	defaults: { // default options for 'all panes' - will be overridden by 'per-pane settings'
+			applyDemoStyles: 		false		// NOTE: renamed from applyDefaultStyles for clarity
+		,	closable:				true		// pane can open & close
+		,	resizable:				true		// when open, pane can be resized 
+		,	slidable:				true		// when closed, pane can 'slide open' over other panes - closes on mouse-out
+		,	initClosed:				false		// true = init pane as 'closed'
+		,	initHidden: 			false 		// true = init pane as 'hidden' - no resizer-bar/spacing
+		//	SELECTORS
+		//,	paneSelector:			""			// MUST be pane-specific - jQuery selector for pane
+		,	contentSelector:		".ui-layout-content" // INNER div/element to auto-size so only it scrolls, not the entire pane!
+		,	contentIgnoreSelector:	".ui-layout-ignore"	// element(s) to 'ignore' when measuring 'content'
+		,	findNestedContent:		false		// true = $P.find(contentSelector), false = $P.children(contentSelector)
+		//	GENERIC ROOT-CLASSES - for auto-generated classNames
+		,	paneClass:				"ui-layout-pane"	// border-Pane - default: 'ui-layout-pane'
+		,	resizerClass:			"ui-layout-resizer"	// Resizer Bar		- default: 'ui-layout-resizer'
+		,	togglerClass:			"ui-layout-toggler"	// Toggler Button	- default: 'ui-layout-toggler'
+		,	buttonClass:			"ui-layout-button"	// CUSTOM Buttons	- default: 'ui-layout-button-toggle/-open/-close/-pin'
+		//	ELEMENT SIZE & SPACING
+		//,	size:					100			// MUST be pane-specific -initial size of pane
+		,	minSize:				0			// when manually resizing a pane
+		,	maxSize:				0			// ditto, 0 = no limit
+		,	spacing_open:			6			// space between pane and adjacent panes - when pane is 'open'
+		,	spacing_closed:			6			// ditto - when pane is 'closed'
+		,	togglerLength_open:		50			// Length = WIDTH of toggler button on north/south sides - HEIGHT on east/west sides
+		,	togglerLength_closed: 	50			// 100% OR -1 means 'full height/width of resizer bar' - 0 means 'hidden'
+		,	togglerAlign_open:		"center"	// top/left, bottom/right, center, OR...
+		,	togglerAlign_closed:	"center"	// 1 => nn = offset from top/left, -1 => -nn == offset from bottom/right
+		,	togglerTip_open:		lang.Close	// Toggler tool-tip (title)
+		,	togglerTip_closed:		lang.Open	// ditto
+		,	togglerContent_open:	""			// text or HTML to put INSIDE the toggler
+		,	togglerContent_closed:	""			// ditto
+		//	RESIZING OPTIONS
+		,	resizerDblClickToggle:	true		// 
+		,	autoResize:				true		// IF size is 'auto' or a percentage, then recalc 'pixel size' whenever the layout resizes
+		,	autoReopen:				true		// IF a pane was auto-closed due to noRoom, reopen it when there is room? False = leave it closed
+		,	resizerDragOpacity:		1			// option for ui.draggable
+		//,	resizerCursor:			""			// MUST be pane-specific - cursor when over resizer-bar
+		,	maskIframesOnResize:	true		// true = all iframes OR = iframe-selector(s) - adds masking-div during resizing/dragging
+		,	resizeNestedLayout:		true		// true = trigger nested.resizeAll() when a 'pane' of this layout is the 'container' for another
+		,	resizeWhileDragging:	false		// true = LIVE Resizing as resizer is dragged
+		,	resizeContentWhileDragging:	false	// true = re-measure header/footer heights as resizer is dragged
+		//	TIPS & MESSAGES - also see lang object
+		,	noRoomToOpenTip:		lang.msgNoRoom
+		,	resizerTip:				lang.Resize	// Resizer tool-tip (title)
+		,	sliderTip:				lang.Slide	// resizer-bar triggers 'sliding' when pane is closed
+		,	sliderCursor:			"pointer"	// cursor when resizer-bar will trigger 'sliding'
+		,	slideTrigger_open:		"click"		// click, dblclick, mouseenter
+		,	slideTrigger_close:		"mouseleave"// click, mouseleave
+		,	hideTogglerOnSlide:		false		// when pane is slid-open, should the toggler show?
+		,	preventQuickSlideClose:	!!($.browser.webkit || $.browser.safari) // Chrome triggers slideClosed as is opening
+		,	preventPrematureSlideClose: false
+		//	HOT-KEYS & MISC
+		,	showOverflowOnHover:	false		// will bind allowOverflow() utility to pane.onMouseOver
+		,	enableCursorHotkey:		true		// enabled 'cursor' hotkeys
+		//,	customHotkey:			""			// MUST be pane-specific - EITHER a charCode OR a character
+		,	customHotkeyModifier:	"SHIFT"		// either 'SHIFT', 'CTRL' or 'CTRL+SHIFT' - NOT 'ALT'
+		//	PANE ANIMATION
+		//	NOTE: fxSss_open & fxSss_close options (eg: fxName_open) are auto-generated if not passed
+		,	fxName:					"slide" 	// ('none' or blank), slide, drop, scale
+		,	fxSpeed:				null		// slow, normal, fast, 200, nnn - if passed, will OVERRIDE fxSettings.duration
+		,	fxSettings:				{}			// can be passed, eg: { easing: "easeOutBounce", duration: 1500 }
+		,	fxOpacityFix:			true		// tries to fix opacity in IE to restore anti-aliasing after animation
+		//	CALLBACKS
+		,	triggerEventsOnLoad:	false		// true = trigger onopen OR onclose callbacks when layout initializes
+		,	triggerEventsWhileDragging: true	// true = trigger onresize callback REPEATEDLY if resizeWhileDragging==true
+		,	onshow_start:			null		// CALLBACK when pane STARTS to Show	- BEFORE onopen/onhide_start
+		,	onshow_end:				null		// CALLBACK when pane ENDS being Shown	- AFTER  onopen/onhide_end
+		,	onhide_start:			null		// CALLBACK when pane STARTS to Close	- BEFORE onclose_start
+		,	onhide_end:				null		// CALLBACK when pane ENDS being Closed	- AFTER  onclose_end
+		,	onopen_start:			null		// CALLBACK when pane STARTS to Open
+		,	onopen_end:				null		// CALLBACK when pane ENDS being Opened
+		,	onclose_start:			null		// CALLBACK when pane STARTS to Close
+		,	onclose_end:			null		// CALLBACK when pane ENDS being Closed
+		,	onresize_start:			null		// CALLBACK when pane STARTS being Resized ***FOR ANY REASON***
+		,	onresize_end:			null		// CALLBACK when pane ENDS being Resized ***FOR ANY REASON***
+		,	onsizecontent_start:	null		// CALLBACK when sizing of content-element STARTS
+		,	onsizecontent_end:		null		// CALLBACK when sizing of content-element ENDS
+		,	onswap_start:			null		// CALLBACK when pane STARTS to Swap
+		,	onswap_end:				null		// CALLBACK when pane ENDS being Swapped
+		,	ondrag_start:			null		// CALLBACK when pane STARTS being ***MANUALLY*** Resized
+		,	ondrag_end:				null		// CALLBACK when pane ENDS being ***MANUALLY*** Resized
+		}
+	,	north: {
+			paneSelector:			".ui-layout-north"
+		,	size:					"auto"		// eg: "auto", "30%", 200
+		,	resizerCursor:			"n-resize"	// custom = url(myCursor.cur)
+		,	customHotkey:			""			// EITHER a charCode OR a character
+		}
+	,	south: {
+			paneSelector:			".ui-layout-south"
+		,	size:					"auto"
+		,	resizerCursor:			"s-resize"
+		,	customHotkey:			""
+		}
+	,	east: {
+			paneSelector:			".ui-layout-east"
+		,	size:					200
+		,	resizerCursor:			"e-resize"
+		,	customHotkey:			""
+		}
+	,	west: {
+			paneSelector:			".ui-layout-west"
+		,	size:					200
+		,	resizerCursor:			"w-resize"
+		,	customHotkey:			""
+		}
+	,	center: {
+			paneSelector:			".ui-layout-center"
+		,	minWidth:				0
+		,	minHeight:				0
+		}
+
+	//	STATE MANAGMENT
+	,	useStateCookie:				false		// Enable cookie-based state-management - can fine-tune with cookie.autoLoad/autoSave
+	,	cookie: {
+			name:					""			// If not specified, will use Layout.name, else just "Layout"
+		,	autoSave:				true		// Save a state cookie when page exits?
+		,	autoLoad:				true		// Load the state cookie when Layout inits?
+		//	Cookie Options
+		,	domain:					""
+		,	path:					""
+		,	expires:				""			// 'days' to keep cookie - leave blank for 'session cookie'
+		,	secure:					false
+		//	List of options to save in the cookie - must be pane-specific
+		,	keys:					"north.size,south.size,east.size,west.size,"+
+									"north.isClosed,south.isClosed,east.isClosed,west.isClosed,"+
+									"north.isHidden,south.isHidden,east.isHidden,west.isHidden"
+		}
+	};
+
+
+	// PREDEFINED EFFECTS / DEFAULTS
+	var effects = { // LIST *PREDEFINED EFFECTS* HERE, even if effect has no settings
+		slide:	{
+			all:	{ duration:  "fast"	} // eg: duration: 1000, easing: "easeOutBounce"
+		,	north:	{ direction: "up"	}
+		,	south:	{ direction: "down"	}
+		,	east:	{ direction: "right"}
+		,	west:	{ direction: "left"	}
+		}
+	,	drop:	{
+			all:	{ duration:  "slow"	} // eg: duration: 1000, easing: "easeOutQuint"
+		,	north:	{ direction: "up"	}
+		,	south:	{ direction: "down"	}
+		,	east:	{ direction: "right"}
+		,	west:	{ direction: "left"	}
+		}
+	,	scale:	{
+			all:	{ duration:  "fast"	}
+		}
+	};
+
+
+	// DYNAMIC DATA - IS READ-ONLY EXTERNALLY!
+	var state = {
+		// generate unique ID to use for event.namespace so can unbind only events added by 'this layout'
+		id:			"layout"+ new Date().getTime()	// code uses alias: sID
+	,	initialized: false
+	,	container:	{} // init all keys
+	,	north:		{}
+	,	south:		{}
+	,	east:		{}
+	,	west:		{}
+	,	center:		{}
+	,	cookie:		{} // State Managment data storage
+	};
+
+
+	// INTERNAL CONFIG DATA - DO NOT CHANGE THIS!
+	var _c = {
+		allPanes:		"north,south,west,east,center"
+	,	borderPanes:	"north,south,west,east"
+	,	altSide: {
+			north:	"south"
+		,	south:	"north"
+		,	east: 	"west"
+		,	west: 	"east"
+		}
+	//	CSS used in multiple places
+	,	hidden:  { visibility: "hidden" }
+	,	visible: { visibility: "visible" }
+	//	layout element settings
+	,	zIndex: { // set z-index values here
+			pane_normal:	1		// normal z-index for panes
+		,	resizer_normal:	2		// normal z-index for resizer-bars
+		,	iframe_mask:	2		// overlay div used to mask pane(s) during resizing
+		,	pane_sliding:	100		// applied to *BOTH* the pane and its resizer when a pane is 'slid open'
+		,	pane_animate:	1000	// applied to the pane when being animated - not applied to the resizer
+		,	resizer_drag:	10000	// applied to the CLONED resizer-bar when being 'dragged'
+		}
+	,	resizers: {
+			cssReq: {
+				position: 	"absolute"
+			,	padding: 	0
+			,	margin: 	0
+			,	fontSize:	"1px"
+			,	textAlign:	"left"	// to counter-act "center" alignment!
+			,	overflow: 	"hidden" // prevent toggler-button from overflowing
+			//	SEE c.zIndex.resizer_normal
+			}
+		,	cssDemo: { // DEMO CSS - applied if: options.PANE.applyDemoStyles=true
+				background: "#DDD"
+			,	border:		"none"
+			}
+		}
+	,	togglers: {
+			cssReq: {
+				position: 	"absolute"
+			,	display: 	"block"
+			,	padding: 	0
+			,	margin: 	0
+			,	overflow:	"hidden"
+			,	textAlign:	"center"
+			,	fontSize:	"1px"
+			,	cursor: 	"pointer"
+			,	zIndex: 	1
+			}
+		,	cssDemo: { // DEMO CSS - applied if: options.PANE.applyDemoStyles=true
+				background: "#AAA"
+			}
+		}
+	,	content: {
+			cssReq: {
+				position:	"relative" /* contain floated or positioned elements */
+			}
+		,	cssDemo: { // DEMO CSS - applied if: options.PANE.applyDemoStyles=true
+				overflow:	"auto"
+			,	padding:	"10px"
+			}
+		,	cssDemoPane: { // DEMO CSS - REMOVE scrolling from 'pane' when it has a content-div
+				overflow:	"hidden"
+			,	padding:	0
+			}
+		}
+	,	panes: { // defaults for ALL panes - overridden by 'per-pane settings' below
+			cssReq: {
+				position: 	"absolute"
+			,	margin:		0
+			//	SEE c.zIndex.pane_normal
+			}
+		,	cssDemo: { // DEMO CSS - applied if: options.PANE.applyDemoStyles=true
+				padding:	"10px"
+			,	background:	"#FFF"
+			,	border:		"1px solid #BBB"
+			,	overflow:	"auto"
+			}
+		}
+	,	north: {
+			side:			"Top"
+		,	sizeType:		"Height"
+		,	dir:			"horz"
+		,	cssReq: {
+				top: 		0
+			,	bottom: 	"auto"
+			,	left: 		0
+			,	right: 		0
+			,	width: 		"auto"
+			//	height: 	DYNAMIC
+			}
+		,	pins:			[]	// array of 'pin buttons' to be auto-updated on open/close (classNames)
+		}
+	,	south: {
+			side:			"Bottom"
+		,	sizeType:		"Height"
+		,	dir:			"horz"
+		,	cssReq: {
+				top: 		"auto"
+			,	bottom: 	0
+			,	left: 		0
+			,	right: 		0
+			,	width: 		"auto"
+			//	height: 	DYNAMIC
+			}
+		,	pins:			[]
+		}
+	,	east: {
+			side:			"Right"
+		,	sizeType:		"Width"
+		,	dir:			"vert"
+		,	cssReq: {
+				left: 		"auto"
+			,	right: 		0
+			,	top: 		"auto" // DYNAMIC
+			,	bottom: 	"auto" // DYNAMIC
+			,	height: 	"auto"
+			//	width: 		DYNAMIC
+			}
+		,	pins:			[]
+		}
+	,	west: {
+			side:			"Left"
+		,	sizeType:		"Width"
+		,	dir:			"vert"
+		,	cssReq: {
+				left: 		0
+			,	right: 		"auto"
+			,	top: 		"auto" // DYNAMIC
+			,	bottom: 	"auto" // DYNAMIC
+			,	height: 	"auto"
+			//	width: 		DYNAMIC
+			}
+		,	pins:			[]
+		}
+	,	center: {
+			dir:			"center"
+		,	cssReq: {
+				left: 		"auto" // DYNAMIC
+			,	right: 		"auto" // DYNAMIC
+			,	top: 		"auto" // DYNAMIC
+			,	bottom: 	"auto" // DYNAMIC
+			,	height: 	"auto"
+			,	width: 		"auto"
+			}
+		}
+	};
+
+
+/*
+ * ###########################
+ *  INTERNAL HELPER FUNCTIONS
+ * ###########################
+ */
+
+	/**
+	* Manages all internal timers
+	*/
+	var timer = {
+		data:	{}
+	,	set:	function (s, fn, ms) { timer.clear(s); timer.data[s] = setTimeout(fn, ms); }
+	,	clear:	function (s) { var t=timer.data; if (t[s]) {clearTimeout(t[s]); delete t[s];} }
+	};
+
+	/**
+	* Returns true if passed param is EITHER a simple string OR a 'string object' - otherwise returns false
+	*/
+	var isStr = function (o) {
+		try { return typeof o == "string"
+				 || (typeof o == "object" && o.constructor.toString().match(/string/i) !== null); }
+		catch (e) { return false; }
+	};
+
+	/**
+	* Returns a simple string if passed EITHER a simple string OR a 'string object',
+	* else returns the original object
+	*/
+	var str = function (o) { // trim converts 'String object' to a simple string
+		return isStr(o) ? $.trim(o) : o == undefined || o == null ? "" : o;
+	};
+
+	/**
+	* min / max
+	*
+	* Aliases for Math methods to simplify coding
+	*/
+	var min = function (x,y) { return Math.min(x,y); };
+	var max = function (x,y) { return Math.max(x,y); };
+
+	/**
+	* Processes the options passed in and transforms them into the format used by layout()
+	* Missing keys are added, and converts the data if passed in 'flat-format' (no sub-keys)
+	* In flat-format, pane-specific-settings are prefixed like: north__optName  (2-underscores)
+	* To update effects, options MUST use nested-keys format, with an effects key ???
+	*
+	* @see	initOptions()
+	* @param	{Object}	d	Data/options passed by user - may be a single level or nested levels
+	* @return	{Object}		Creates a data struture that perfectly matches 'options', ready to be imported
+	*/
+	var _transformData = function (d) {
+		var a, json = { cookie:{}, defaults:{fxSettings:{}}, north:{fxSettings:{}}, south:{fxSettings:{}}, east:{fxSettings:{}}, west:{fxSettings:{}}, center:{fxSettings:{}} };
+		d = d || {};
+		if (d.effects || d.cookie || d.defaults || d.north || d.south || d.west || d.east || d.center)
+			json = $.extend( true, json, d ); // already in json format - add to base keys
+		else
+			// convert 'flat' to 'nest-keys' format - also handles 'empty' user-options
+			$.each( d, function (key,val) {
+				a = key.split("__");
+				if (!a[1] || json[a[0]]) // check for invalid keys
+					json[ a[1] ? a[0] : "defaults" ][ a[1] ? a[1] : a[0] ] = val;
+			});
+		return json;
+	};
+
+	/**
+	* Set an INTERNAL callback to avoid simultaneous animation
+	* Runs only if needed and only if all callbacks are not 'already set'
+	* Called by open() and close() when isLayoutBusy=true
+	*
+	* @param {string}		action	Either 'open' or 'close'
+	* @param {string}		pane	A valid border-pane name, eg 'west'
+	* @param {boolean=}		param	Extra param for callback (optional)
+	*/
+	var _queue = function (action, pane, param) {
+		var tried = [];
+
+		// if isLayoutBusy, then some pane must be 'moving'
+		$.each(_c.borderPanes.split(","), function (i, p) {
+			if (_c[p].isMoving) {
+				bindCallback(p); // TRY to bind a callback
+				return false;	// BREAK
+			}
+		});
+
+		// if pane does NOT have a callback, then add one, else follow the callback chain...
+		function bindCallback (p) {
+			var c = _c[p];
+			if (!c.doCallback) {
+				c.doCallback = true;
+				c.callback = action +","+ pane +","+ (param ? 1 : 0);
+			}
+			else { // try to 'chain' this callback
+				tried.push(p);
+				var cbPane = c.callback.split(",")[1]; // 2nd param of callback is 'pane'
+				// ensure callback target NOT 'itself' and NOT 'target pane' and NOT already tried (avoid loop)
+				if (cbPane != pane && !$.inArray(cbPane, tried) >= 0)
+					bindCallback(cbPane); // RECURSE
+			}
+		}
+	};
+
+	/**
+	* RUN the INTERNAL callback for this pane - if one exists
+	*
+	* @param {string}	pane	A valid border-pane name, eg 'west'
+	*/
+	var _dequeue = function (pane) {
+		var c = _c[pane];
+
+		// RESET flow-control flags
+		_c.isLayoutBusy = false;
+		delete c.isMoving;
+		if (!c.doCallback || !c.callback) return;
+
+		c.doCallback = false; // RESET logic flag
+
+		// EXECUTE the callback
+		var
+			cb = c.callback.split(",")
+		,	param = (cb[2] > 0 ? true : false)
+		;
+		if (cb[0] == "open")
+			open( cb[1], param  );
+		else if (cb[0] == "close")
+			close( cb[1], param );
+
+		if (!c.doCallback) c.callback = null; // RESET - unless callback above enabled it again!
+	};
+
+	/**
+	* Executes a Callback function after a trigger event, like resize, open or close
+	*
+	* @param {?string}				pane	This is passed only so we can pass the 'pane object' to the callback
+	* @param {(string|function())}	v_fn	Accepts a function name, OR a comma-delimited array: [0]=function name, [1]=argument
+	*/
+	var _execCallback = function (pane, v_fn) {
+		if (!v_fn) return;
+		var fn;
+		try {
+			if (typeof v_fn == "function")
+				fn = v_fn;	
+			else if (!isStr(v_fn))
+				return;
+			else if (v_fn.match(/,/)) {
+				// function name cannot contain a comma, so must be a function name AND a 'name' parameter
+				var args = v_fn.split(",");
+				fn = eval(args[0]);
+				if (typeof fn=="function" && args.length > 1)
+					return fn(args[1]); // pass the argument parsed from 'list'
+			}
+			else // just the name of an external function?
+				fn = eval(v_fn);
+
+			if (typeof fn=="function") {
+				if (pane && $Ps[pane])
+					// pass data: pane-name, pane-element, pane-state (copy), pane-options, and layout-name
+					return fn( pane, $Ps[pane], $.extend({},state[pane]), options[pane], options.name );
+				else // must be a layout/container callback - pass suitable info
+					return fn( Instance, $.extend({},state), options, options.name );
+			}
+		}
+		catch (ex) {}
+	};
+
+	/**
+	* Returns hash container 'display' and 'visibility'
+	*
+	* @see	 $.swap() - swaps CSS, runs callback, resets CSS
+	* @param {!Object}		$E
+	* @param {boolean=}		force
+	*/
+	var _showInvisibly = function ($E, force) {
+		if (!$E) return {};
+		if (!$E.jquery) $E = $($E);
+		var CSS = {
+			display:	$E.css('display')
+		,	visibility:	$E.css('visibility')
+		};
+		if (force || CSS.display == "none") { // only if not *already hidden*
+			$E.css({ display: "block", visibility: "hidden" }); // show element 'invisibly' so can be measured
+			return CSS;
+		}
+		else return {};
+	};
+
+	/**
+	* cure iframe display issues in IE & other browsers
+	*/
+	var _fixIframe = function (pane) {
+		if (state.browser.mozilla) return; // skip FireFox - it auto-refreshes iframes onShow
+		var $P = $Ps[pane];
+		// if the 'pane' is an iframe, do it
+		if (state[pane].tagName == "IFRAME")
+			$P.css(_c.hidden).css(_c.visible); 
+		else // ditto for any iframes INSIDE the pane
+			$P.find('IFRAME').css(_c.hidden).css(_c.visible);
+	};
+
+	/**
+	* Returns the 'current CSS numeric value' for a CSS property - 0 if property does not exist
+	*
+	* @see  Called by many methods
+	* @param {Array.<Object>}	$E		Must pass a jQuery object - first element is processed
+	* @param {string}			prop	The name of the CSS property, eg: top, width, etc.
+	* @return {(string|number)}			Usually used to get an integer value for position (top, left) or size (height, width)
+	*/
+	var _cssNum = function ($E, prop) {
+		if (!$E.jquery) $E = $($E);
+		var CSS = _showInvisibly($E);
+		var val = parseInt($.curCSS($E[0], prop, true), 10) || 0;
+		$E.css( CSS ); // RESET
+		return val;
+	};
+
+	/**
+	* @param  {!Object}		E		Can accept a 'pane' (east, west, etc) OR a DOM object OR a jQuery object
+	* @param  {string}		side	Which border (top, left, etc.) is resized
+	* @return {number}				Returns the borderWidth
+	*/
+	var _borderWidth = function (E, side) {
+		if (E.jquery) E = E[0];
+		var b = "border"+ side.substr(0,1).toUpperCase() + side.substr(1); // left => Left
+		return $.curCSS(E, b+"Style", true) == "none" ? 0 : (parseInt($.curCSS(E, b+"Width", true), 10) || 0);
+	};
+
+	/**
+	* cssW / cssH / cssSize / cssMinDims
+	*
+	* Contains logic to check boxModel & browser, and return the correct width/height for the current browser/doctype
+	*
+	* @see  initPanes(), sizeMidPanes(), initHandles(), sizeHandles()
+	* @param  {(string|!Object)}	el			Can accept a 'pane' (east, west, etc) OR a DOM object OR a jQuery object
+	* @param  {number=}				outerWidth	(optional) Can pass a width, allowing calculations BEFORE element is resized
+	* @return {number}							Returns the innerWidth of el by subtracting padding and borders
+	*/
+	var cssW = function (el, outerWidth) {
+		var
+			str	= isStr(el)
+		,	$E	= str ? $Ps[el] : $(el)
+		;
+		if (isNaN(outerWidth)) // not specified
+			outerWidth = str ? getPaneSize(el) : $E.outerWidth();
+
+		// a 'calculated' outerHeight can be passed so borders and/or padding are removed if needed
+		if (outerWidth <= 0) return 0;
+
+		if (!state.browser.boxModel) return outerWidth;
+
+		// strip border and padding from outerWidth to get CSS Width
+		var W = outerWidth
+			- _borderWidth($E, "Left")
+			- _borderWidth($E, "Right")
+			- _cssNum($E, "paddingLeft")		
+			- _cssNum($E, "paddingRight")
+		;
+
+		return W > 0 ? W : 0;
+	};
+
+	/**
+	* @param  {(string|!Object)}	el			Can accept a 'pane' (east, west, etc) OR a DOM object OR a jQuery object
+	* @param  {number=}				outerHeight	(optional) Can pass a width, allowing calculations BEFORE element is resized
+	* @return {number}				Returns the innerHeight el by subtracting padding and borders
+	*/
+	var cssH = function (el, outerHeight) {
+		var
+			str	= isStr(el)
+		,	$E	= str ? $Ps[el] : $(el)
+		;
+		if (isNaN(outerHeight)) // not specified
+			outerHeight = str ? getPaneSize(el) : $E.outerHeight();
+
+		// a 'calculated' outerHeight can be passed so borders and/or padding are removed if needed
+		if (outerHeight <= 0) return 0;
+
+		if (!state.browser.boxModel) return outerHeight;
+
+		// strip border and padding from outerHeight to get CSS Height
+		var H = outerHeight
+			- _borderWidth($E, "Top")
+			- _borderWidth($E, "Bottom")
+			- _cssNum($E, "paddingTop")
+			- _cssNum($E, "paddingBottom")
+		;
+
+		return H > 0 ? H : 0;
+	};
+
+	/**
+	* @param  {string}		pane		Can accept ONLY a 'pane' (east, west, etc)
+	* @param  {number=}		outerSize	(optional) Can pass a width, allowing calculations BEFORE element is resized
+	* @return {number}		Returns the innerHeight/Width of el by subtracting padding and borders
+	*/
+	var cssSize = function (pane, outerSize) {
+		if (_c[pane].dir=="horz") // pane = north or south
+			return cssH(pane, outerSize);
+		else // pane = east or west
+			return cssW(pane, outerSize);
+	};
+
+	var cssMinDims = function (pane) {
+		// minWidth/Height means CSS width/height = 1px
+		var
+			dir = _c[pane].dir
+		,	d = {
+				minWidth:	1001 - cssW(pane, 1000)
+			,	minHeight:	1001 - cssH(pane, 1000)
+			}
+		;
+		if (dir == "horz") d.minSize = d.minHeight;
+		if (dir == "vert") d.minSize = d.minWidth;
+		return d;
+	};
+
+	// TODO: see if these methods can be made more useful...
+	// TODO: *maybe* return cssW/H from these so caller can use this info
+
+	/**
+	* @param {(string|!Object)}		el
+	* @param {number=}				outerWidth
+	* @param {boolean=}				autoHide
+	*/
+	var setOuterWidth = function (el, outerWidth, autoHide) {
+		var $E = el, w;
+		if (isStr(el)) $E = $Ps[el]; // west
+		else if (!el.jquery) $E = $(el);
+		w = cssW($E, outerWidth);
+		$E.css({ width: w });
+		if (w > 0) {
+			if (autoHide && $E.data('autoHidden') && $E.innerHeight() > 0) {
+				$E.show().data('autoHidden', false);
+				if (!state.browser.mozilla) // FireFox refreshes iframes - IE doesn't
+					// make hidden, then visible to 'refresh' display after animation
+					$E.css(_c.hidden).css(_c.visible);
+			}
+		}
+		else if (autoHide && !$E.data('autoHidden'))
+			$E.hide().data('autoHidden', true);
+	};
+
+	/**
+	* @param {(string|!Object)}		el
+	* @param {number=}				outerHeight
+	* @param {boolean=}				autoHide
+	*/
+	var setOuterHeight = function (el, outerHeight, autoHide) {
+		var $E = el, h;
+		if (isStr(el)) $E = $Ps[el]; // west
+		else if (!el.jquery) $E = $(el);
+		h = cssH($E, outerHeight);
+		$E.css({ height: h, visibility: "visible" }); // may have been 'hidden' by sizeContent
+		if (h > 0 && $E.innerWidth() > 0) {
+			if (autoHide && $E.data('autoHidden')) {
+				$E.show().data('autoHidden', false);
+				if (!state.browser.mozilla) // FireFox refreshes iframes - IE doesn't
+					$E.css(_c.hidden).css(_c.visible);
+			}
+		}
+		else if (autoHide && !$E.data('autoHidden'))
+			$E.hide().data('autoHidden', true);
+	};
+
+	/**
+	* @param {(string|!Object)}		el
+	* @param {number=}				outerSize
+	* @param {boolean=}				autoHide
+	*/
+	var setOuterSize = function (el, outerSize, autoHide) {
+		if (_c[pane].dir=="horz") // pane = north or south
+			setOuterHeight(el, outerSize, autoHide);
+		else // pane = east or west
+			setOuterWidth(el, outerSize, autoHide);
+	};
+
+
+	/**
+	* Converts any 'size' params to a pixel/integer size, if not already
+	* If 'auto' or a decimal/percentage is passed as 'size', a pixel-size is calculated
+	*
+	/**
+	* @param  {string}				pane
+	* @param  {(string|number)=}	size
+	* @param  {string=}				dir
+	* @return {number}
+	*/
+	var _parseSize = function (pane, size, dir) {
+		if (!dir) dir = _c[pane].dir;
+
+		if (isStr(size) && size.match(/%/))
+			size = parseInt(size, 10) / 100; // convert % to decimal
+
+		if (size === 0)
+			return 0;
+		else if (size >= 1)
+			return parseInt(size, 10);
+		else if (size > 0) { // percentage, eg: .25
+			var o = options, avail;
+			if (dir=="horz") // north or south or center.minHeight
+				avail = sC.innerHeight - ($Ps.north ? o.north.spacing_open : 0) - ($Ps.south ? o.south.spacing_open : 0);
+			else if (dir=="vert") // east or west or center.minWidth
+				avail = sC.innerWidth - ($Ps.west ? o.west.spacing_open : 0) - ($Ps.east ? o.east.spacing_open : 0);
+			return Math.floor(avail * size);
+		}
+		else if (pane=="center")
+			return 0;
+		else { // size < 0 || size=='auto' || size==Missing || size==Invalid
+			// auto-size the pane
+			var
+				$P	= $Ps[pane]
+			,	dim	= (dir == "horz" ? "height" : "width")
+			,	vis	= _showInvisibly($P) // show pane invisibly if hidden
+			,	s	= $P.css(dim); // SAVE current size
+			;
+			$P.css(dim, "auto");
+			size = (dim == "height") ? $P.outerHeight() : $P.outerWidth(); // MEASURE
+			$P.css(dim, s).css(vis); // RESET size & visibility
+			return size;
+		}
+	};
+
+	/**
+	* Calculates current 'size' (outer-width or outer-height) of a border-pane - optionally with 'pane-spacing' added
+	*
+	* @param  {(string|!Object)}	pane
+	* @param  {boolean=}			inclSpace
+	* @return {number}				Returns EITHER Width for east/west panes OR Height for north/south panes - adjusted for boxModel & browser
+	*/
+	var getPaneSize = function (pane, inclSpace) {
+		var 
+			$P	= $Ps[pane]
+		,	o	= options[pane]
+		,	s	= state[pane]
+		,	oSp	= (inclSpace ? o.spacing_open : 0)
+		,	cSp	= (inclSpace ? o.spacing_closed : 0)
+		;
+		if (!$P || s.isHidden)
+			return 0;
+		else if (s.isClosed || (s.isSliding && inclSpace))
+			return cSp;
+		else if (_c[pane].dir == "horz")
+			return $P.outerHeight() + oSp;
+		else // dir == "vert"
+			return $P.outerWidth() + oSp;
+	};
+
+	/**
+	* Calculate min/max pane dimensions and limits for resizing
+	*
+	* @param  {string}		pane
+	* @param  {boolean=}	slide
+	*/
+	var setSizeLimits = function (pane, slide) {
+		var 
+			o				= options[pane]
+		,	s				= state[pane]
+		,	c				= _c[pane]
+		,	dir				= c.dir
+		,	side			= c.side.toLowerCase()
+		,	type			= c.sizeType.toLowerCase()
+		,	isSliding		= (slide != undefined ? slide : s.isSliding) // only open() passes 'slide' param
+		,	$P				= $Ps[pane]
+		,	paneSpacing		= o.spacing_open
+		//	measure the pane on the *opposite side* from this pane
+		,	altPane			= _c.altSide[pane]
+		,	altS			= state[altPane]
+		,	$altP			= $Ps[altPane]
+		,	altPaneSize		= (!$altP || altS.isVisible===false || altS.isSliding ? 0 : (dir=="horz" ? $altP.outerHeight() : $altP.outerWidth()))
+		,	altPaneSpacing	= ((!$altP || altS.isHidden ? 0 : options[altPane][ altS.isClosed !== false ? "spacing_closed" : "spacing_open" ]) || 0)
+		//	limitSize prevents this pane from 'overlapping' opposite pane
+		,	containerSize	= (dir=="horz" ? sC.innerHeight : sC.innerWidth)
+		,	minCenterDims	= cssMinDims("center")
+		,	minCenterSize	= dir=="horz" ? max(options.center.minHeight, minCenterDims.minHeight) : max(options.center.minWidth, minCenterDims.minWidth)
+		//	if pane is 'sliding', then ignore center and alt-pane sizes - because 'overlays' them
+		,	limitSize		= (containerSize - paneSpacing - (isSliding ? 0 : (_parseSize("center", minCenterSize, dir) + altPaneSize + altPaneSpacing)))
+		,	minSize			= s.minSize = max( _parseSize(pane, o.minSize), cssMinDims(pane).minSize )
+		,	maxSize			= s.maxSize = min( (o.maxSize ? _parseSize(pane, o.maxSize) : 100000), limitSize )
+		,	r				= s.resizerPosition = {} // used to set resizing limits
+		,	top				= sC.insetTop
+		,	left			= sC.insetLeft
+		,	W				= sC.innerWidth
+		,	H				= sC.innerHeight
+		,	rW				= o.spacing_open // subtract resizer-width to get top/left position for south/east
+		;
+		switch (pane) {
+			case "north":	r.min = top + minSize;
+							r.max = top + maxSize;
+							break;
+			case "west":	r.min = left + minSize;
+							r.max = left + maxSize;
+							break;
+			case "south":	r.min = top + H - maxSize - rW;
+							r.max = top + H - minSize - rW;
+							break;
+			case "east":	r.min = left + W - maxSize - rW;
+							r.max = left + W - minSize - rW;
+							break;
+		};
+	};
+
+	/**
+	* Returns data for setting the size/position of center pane. Also used to set Height for east/west panes
+	*
+	* @return JSON  Returns a hash of all dimensions: top, bottom, left, right, (outer) width and (outer) height
+	*/
+	var calcNewCenterPaneDims = function () {
+		var d = {
+			top:	getPaneSize("north", true) // true = include 'spacing' value for pane
+		,	bottom:	getPaneSize("south", true)
+		,	left:	getPaneSize("west", true)
+		,	right:	getPaneSize("east", true)
+		,	width:	0
+		,	height:	0
+		};
+
+		// NOTE: sC = state.container
+		// calc center-pane's outer dimensions
+		d.width		= sC.innerWidth - d.left - d.right;  // outerWidth
+		d.height	= sC.innerHeight - d.bottom - d.top; // outerHeight
+		// add the 'container border/padding' to get final positions relative to the container
+		d.top		+= sC.insetTop;
+		d.bottom	+= sC.insetBottom;
+		d.left		+= sC.insetLeft;
+		d.right		+= sC.insetRight;
+
+		return d;
+	};
+
+
+	/**
+	* Returns data for setting size of an element (container or a pane).
+	*
+	* @see  _create(), onWindowResize() for container, plus others for pane
+	* @return JSON  Returns a hash of all dimensions: top, bottom, left, right, outerWidth, innerHeight, etc
+	*/
+	var getElemDims = function ($E) {
+		var
+			d	= {}			// dimensions hash
+		,	x	= d.css = {}	// CSS hash
+		,	i	= {}			// TEMP insets
+		,	b, p				// TEMP border, padding
+		,	off = $E.offset()
+		;
+		d.offsetLeft = off.left;
+		d.offsetTop  = off.top;
+
+		$.each("Left,Right,Top,Bottom".split(","), function (idx, e) {
+			b = x["border" + e] = _borderWidth($E, e);
+			p = x["padding"+ e] = _cssNum($E, "padding"+e);
+			i[e] = b + p; // total offset of content from outer side
+			d["inset"+ e] = p;
+			/* WRONG ???
+			// if BOX MODEL, then 'position' = PADDING (ignore borderWidth)
+			if ($E == $Container)
+				d["inset"+ e] = (state.browser.boxModel ? p : 0); 
+			*/
+		});
+
+		d.offsetWidth	= $E.innerWidth(); // true=include Padding
+		d.offsetHeight	= $E.innerHeight();
+		d.outerWidth	= $E.outerWidth();
+		d.outerHeight	= $E.outerHeight();
+		d.innerWidth	= d.outerWidth  - i.Left - i.Right;
+		d.innerHeight	= d.outerHeight - i.Top  - i.Bottom;
+
+		// TESTING
+		x.width  = $E.width();
+		x.height = $E.height();
+	
+		return d;
+	};
+
+	var getElemCSS = function ($E, list) {
+		var
+			CSS	= {}
+		,	style	= $E[0].style
+		,	props	= list.split(",")
+		,	sides	= "Top,Bottom,Left,Right".split(",")
+		,	attrs	= "Color,Style,Width".split(",")
+		,	p, s, a, i, j, k
+		;
+		for (i=0; i < props.length; i++) {
+			p = props[i];
+			if (p.match(/(border|padding|margin)$/))
+				for (j=0; j < 4; j++) {
+					s = sides[j];
+					if (p == "border")
+						for (k=0; k < 3; k++) {
+							a = attrs[k];
+							CSS[p+s+a] = style[p+s+a];
+						}
+					else
+						CSS[p+s] = style[p+s];
+				}
+			else
+				CSS[p] = style[p];
+		};
+		return CSS
+	};
+
+
+	/**
+	* @param {!Object}		el
+	* @param {boolean=}		allStates
+	*/
+	var getHoverClasses = function (el, allStates) {
+		var
+			$El		= $(el)
+		,	type	= $El.data("layoutRole")
+		,	pane	= $El.data("layoutEdge")
+		,	o		= options[pane]
+		,	root	= o[type +"Class"]
+		,	_pane	= "-"+ pane // eg: "-west"
+		,	_open	= "-open"
+		,	_closed	= "-closed"
+		,	_slide	= "-sliding"
+		,	_hover	= "-hover " // NOTE the trailing space
+		,	_state	= $El.hasClass(root+_closed) ? _closed : _open
+		,	_alt	= _state == _closed ? _open : _closed
+		,	classes = (root+_hover) + (root+_pane+_hover) + (root+_state+_hover) + (root+_pane+_state+_hover)
+		;
+		if (allStates) // when 'removing' classes, also remove alternate-state classes
+			classes += (root+_alt+_hover) + (root+_pane+_alt+_hover);
+
+		if (type=="resizer" && $El.hasClass(root+_slide))
+			classes += (root+_slide+_hover) + (root+_pane+_slide+_hover);
+
+		return $.trim(classes);
+	};
+	var addHover	= function (evt, el) {
+		var e = el || this;
+		$(e).addClass( getHoverClasses(e) );
+		//if (evt && $(e).data("layoutRole") == "toggler") evt.stopPropagation();
+	};
+	var removeHover	= function (evt, el) {
+		var e = el || this;
+		$(e).removeClass( getHoverClasses(e, true) );
+	};
+
+	var onResizerEnter	= function (evt) {
+		$('body').disableSelection();
+		addHover(evt, this);
+	};
+	var onResizerLeave	= function (evt, el) {
+		var
+			e = el || this // el is only passed when called by the timer
+		,	pane = $(e).data("layoutEdge")
+		,	name = pane +"ResizerLeave"
+		;
+		timer.clear(name);
+		if (!el) { // 1st call - mouseleave event
+			removeHover(evt, this); // do this on initial call
+			// this method calls itself on a timer because it needs to allow
+			// enough time for dragging to kick-in and set the isResizing flag
+			// dragging has a 100ms delay set, so this delay must be higher
+			timer.set(name, function(){ onResizerLeave(evt, e); }, 200);
+		}
+		// if user is resizing, then dragStop will enableSelection() when done
+		else if (!state[pane].isResizing) // 2nd call - by timer
+			$('body').enableSelection();
+	};
+
+/*
+ * ###########################
+ *   INITIALIZATION METHODS
+ * ###########################
+ */
+
+	/**
+	* Initialize the layout - called automatically whenever an instance of layout is created
+	*
+	* @see  none - triggered onInit
+	* @return  An object pointer to the instance created
+	*/
+	var _create = function () {
+		// initialize config/options
+		initOptions();
+		var o = options;
+
+		// onload will CANCEL resizing if returns false
+		if (false === _execCallback(null, o.onload)) return false;
+
+		// a center pane is required, so make sure it exists
+		if (!getPane('center').length) {
+			alert( lang.errCenterPaneMissing );
+			return null;
+		}
+
+		// update options with saved state, if option enabled
+		if (o.useStateCookie && o.cookie.autoLoad)
+			loadCookie(); // Update options from state-cookie
+
+		// set environment - can update code here if $.browser is phased out
+		state.browser = {
+			mozilla:	$.browser.mozilla
+		,	webkit:		$.browser.webkit || $.browser.safari
+		,	msie:		$.browser.msie
+		,	isIE6:		$.browser.msie && $.browser.version == 6
+		,	boxModel:	$.support.boxModel
+		//,	version:	$.browser.version - not used
+		};
+
+		// initialize all layout elements
+		initContainer();	// set CSS as needed and init state.container dimensions
+		initPanes();		// size & position panes - calls initHandles() - which calls initResizable()
+		sizeContent();		// AFTER panes & handles have been initialized, size 'content' divs
+
+		if (o.scrollToBookmarkOnLoad) {
+			var l = self.location;
+			if (l.hash) l.replace( l.hash ); // scrollTo Bookmark
+		}
+
+		// search for and bind custom-buttons
+		if (o.autoBindCustomButtons) initButtons();
+
+		// bind hotkey function - keyDown - if required
+		initHotkeys();
+
+		// bind resizeAll() for 'this layout instance' to window.resize event
+		if (o.resizeWithWindow && !$Container.data("layoutRole")) // skip if 'nested' inside a pane
+			$(window).bind("resize."+ sID, windowResize);
+
+		// bind window.onunload
+		$(window).bind("unload."+ sID, unload);
+
+		state.initialized = true;
+	};
+
+	var windowResize = function () {
+		var delay = Number(options.resizeWithWindowDelay) || 100; // there MUST be some delay!
+		if (delay > 0) {
+			// resizing uses a delay-loop because the resize event fires repeatly - except in FF, but delay anyway
+			timer.clear("winResize"); // if already running
+			timer.set("winResize", function(){ timer.clear("winResize"); timer.clear("winResizeRepeater"); resizeAll(); }, delay);
+			// ALSO set fixed-delay timer, if not already running
+			if (!timer.data["winResizeRepeater"]) setWindowResizeRepeater();
+		}
+	};
+
+	var setWindowResizeRepeater = function () {
+		var delay = Number(options.resizeWithWindowMaxDelay);
+		if (delay > 0)
+			timer.set("winResizeRepeater", function(){ setWindowResizeRepeater(); resizeAll(); }, delay);
+	};
+
+	var unload = function () {
+		var o = options;
+		state.cookie = getState(); // save state in case onunload has custom state-management
+		if (o.useStateCookie && o.cookie.autoSave) saveCookie();
+
+		_execCallback(null, o.onunload);
+	};
+
+	/**
+	* Validate and initialize container CSS and events
+	*
+	* @see  _create()
+	*/
+	var initContainer = function () {
+		var
+			$C		= $Container // alias
+		,	tag		= sC.tagName = $C.attr("tagName")
+		,	fullPage= (tag == "BODY")
+		,	props	= "position,margin,padding,border"
+		,	CSS		= {}
+		;
+		sC.selector = $C.selector.split(".slice")[0];
+		sC.ref		= tag +"/"+ sC.selector; // used in messages
+
+		$C	.data("layout", Instance)
+			.data("layoutContainer", sID)	// unique identifier for internal use
+		;
+
+		// SAVE original container CSS for use in destroy()
+		if (!$C.data("layoutCSS")) {
+			// handle props like overflow different for BODY & HTML - has 'system default' values
+			if (fullPage) {
+				CSS = $.extend( getElemCSS($C, props), {
+					height:		$C.css("height")
+				,	overflow:	$C.css("overflow")
+				,	overflowX:	$C.css("overflowX")
+				,	overflowY:	$C.css("overflowY")
+				});
+				// ALSO SAVE <HTML> CSS
+				var $H = $("html");
+				$H.data("layoutCSS", {
+					height:		"auto" // FF would return a fixed px-size!
+				,	overflow:	$H.css("overflow")
+				,	overflowX:	$H.css("overflowX")
+				,	overflowY:	$H.css("overflowY")
+				});
+			}
+			else // handle props normally for non-body elements
+				CSS = getElemCSS($C, props+",top,bottom,left,right,width,height,overflow,overflowX,overflowY");
+
+			$C.data("layoutCSS", CSS);
+		}
+
+		try { // format html/body if this is a full page layout
+			if (fullPage) {
+				$("html").css({
+					height:		"100%"
+				,	overflow:	"hidden"
+				,	overflowX:	"hidden"
+				,	overflowY:	"hidden"
+				});
+				$("body").css({
+					position:	"relative"
+				,	height:		"100%"
+				,	overflow:	"hidden"
+				,	overflowX:	"hidden"
+				,	overflowY:	"hidden"
+				,	margin:		0
+				,	padding:	0		// TODO: test whether body-padding could be handled?
+				,	border:		"none"	// a body-border creates problems because it cannot be measured!
+				});
+			}
+			else { // set required CSS for overflow and position
+				CSS = { overflow: "hidden" } // make sure container will not 'scroll'
+				var
+					p = $C.css("position")
+				,	h = $C.css("height")
+				;
+				// if this is a NESTED layout, then container/outer-pane ALREADY has position and height
+				if (!$C.data("layoutRole")) {
+					if (!p || !p.match(/fixed|absolute|relative/))
+						CSS.position = "relative"; // container MUST have a 'position'
+					/*
+					if (!h || h=="auto")
+						CSS.height = "100%"; // container MUST have a 'height'
+					*/
+				}
+				$C.css( CSS );
+
+				if ($C.is(":visible") && $C.innerHeight() < 2){
+					alert( lang.errContainerHeight.replace(/CONTAINER/, sC.ref) );
+				}
+
+			}
+		} catch (ex) {}
+
+		// set current layout-container dimensions
+		$.extend(state.container, getElemDims( $C ));
+	};
+
+	/**
+	* Bind layout hotkeys - if options enabled
+	*
+	* @see  _create()
+	*/
+	var initHotkeys = function () {
+		// bind keyDown to capture hotkeys, if option enabled for ANY pane
+		$.each(_c.borderPanes.split(","), function (i, pane) {
+			var o = options[pane];
+			if (o.enableCursorHotkey || o.customHotkey) {
+				$(document).bind("keydown."+ sID, keyDown); // only need to bind this ONCE
+				return false; // BREAK - binding was done
+			}
+		});
+	};
+
+	/**
+	* Build final OPTIONS data
+	*
+	* @see  _create()
+	*/
+	var initOptions = function () {
+		// simplify logic by making sure passed 'opts' var has basic keys
+		opts = _transformData( opts );
+
+		// TODO: create a compatibility add-on for new UI widget that will transform old option syntax
+		var newOpts = {
+			applyDefaultStyles:		"applyDemoStyles"
+		};
+		renameOpts(opts.defaults);
+		$.each(_c.allPanes.split(","), function (i, pane) {
+			renameOpts(opts[pane]);
+		});
+
+		// update default effects, if case user passed key
+		if (opts.effects) {
+			$.extend( effects, opts.effects );
+			delete opts.effects;
+		}
+		$.extend( options.cookie, opts.cookie );
+
+		// see if any 'global options' were specified
+		var globals = "name,zIndex,scrollToBookmarkOnLoad,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay,"+
+			"onresizeall,onresizeall_start,onresizeall_end,onload,onunload,autoBindCustomButtons,useStateCookie";
+		$.each(globals.split(","), function (i, key) {
+			if (opts[key] !== undefined)
+				options[key] = opts[key];
+			else if (opts.defaults[key] !== undefined) {
+				options[key] = opts.defaults[key];
+				delete opts.defaults[key];
+			}
+		});
+
+		// remove any 'defaults' that MUST be set 'per-pane'
+		$.each("paneSelector,resizerCursor,customHotkey".split(","),
+			function (i, key) { delete opts.defaults[key]; } // is OK if key does not exist
+		);
+
+		// now update options.defaults
+		$.extend( true, options.defaults, opts.defaults );
+
+		// merge config for 'center-pane' - border-panes handled in the loop below
+		_c.center = $.extend( true, {}, _c.panes, _c.center );
+		// update config.zIndex values if zIndex option specified
+		var z = options.zIndex;
+		if (z === 0 || z > 0) {
+			_c.zIndex.pane_normal		= z;
+			_c.zIndex.resizer_normal	= z+1;
+			_c.zIndex.iframe_mask		= z+1;
+		}
+
+		// merge options for 'center-pane' - border-panes handled in the loop below
+		$.extend( options.center, opts.center );
+		// Most 'default options' do not apply to 'center', so add only those that DO
+		var o_Center = $.extend( true, {}, options.defaults, opts.defaults, options.center ); // TEMP data
+		var optionsCenter = ("paneClass,contentSelector,applyDemoStyles,triggerEventsOnLoad,showOverflowOnHover,"
+		+	"onresize,onresize_start,onresize_end,resizeNestedLayout,resizeContentWhileDragging,"
+		+	"onsizecontent,onsizecontent_start,onsizecontent_end").split(",");
+		$.each(optionsCenter,
+			function (i, key) { options.center[key] = o_Center[key]; }
+		);
+
+		var o, defs = options.defaults;
+
+		// create a COMPLETE set of options for EACH border-pane
+		$.each(_c.borderPanes.split(","), function (i, pane) {
+
+			// apply 'pane-defaults' to CONFIG.[PANE]
+			_c[pane] = $.extend( true, {}, _c.panes, _c[pane] );
+
+			// apply 'pane-defaults' +  user-options to OPTIONS.PANE
+			o = options[pane] = $.extend( true, {}, options.defaults, options[pane], opts.defaults, opts[pane] );
+
+			// make sure we have base-classes
+			if (!o.paneClass)		o.paneClass		= "ui-layout-pane";
+			if (!o.resizerClass)	o.resizerClass	= "ui-layout-resizer";
+			if (!o.togglerClass)	o.togglerClass	= "ui-layout-toggler";
+
+			// create FINAL fx options for each pane, ie: options.PANE.fxName/fxSpeed/fxSettings[_open|_close]
+			$.each(["_open","_close",""], function (i,n) { 
+				var
+					sName		= "fxName"+n
+				,	sSpeed		= "fxSpeed"+n
+				,	sSettings	= "fxSettings"+n
+				;
+				// recalculate fxName according to specificity rules
+				o[sName] =
+					opts[pane][sName]		// opts.west.fxName_open
+				||	opts[pane].fxName		// opts.west.fxName
+				||	opts.defaults[sName]	// opts.defaults.fxName_open
+				||	opts.defaults.fxName	// opts.defaults.fxName
+				||	o[sName]				// options.west.fxName_open
+				||	o.fxName				// options.west.fxName
+				||	defs[sName]				// options.defaults.fxName_open
+				||	defs.fxName				// options.defaults.fxName
+				||	"none"
+				;
+				// validate fxName to be sure is a valid effect
+				var fxName = o[sName];
+				if (fxName == "none" || !$.effects || !$.effects[fxName] || (!effects[fxName] && !o[sSettings] && !o.fxSettings))
+					fxName = o[sName] = "none"; // effect not loaded, OR undefined FX AND fxSettings not passed
+				// set vars for effects subkeys to simplify logic
+				var
+					fx = effects[fxName]	|| {} // effects.slide
+				,	fx_all	= fx.all		|| {} // effects.slide.all
+				,	fx_pane	= fx[pane]		|| {} // effects.slide.west
+				;
+				// RECREATE the fxSettings[_open|_close] keys using specificity rules
+				o[sSettings] = $.extend(
+					{}
+				,	fx_all						// effects.slide.all
+				,	fx_pane						// effects.slide.west
+				,	defs.fxSettings || {}		// options.defaults.fxSettings
+				,	defs[sSettings] || {}		// options.defaults.fxSettings_open
+				,	o.fxSettings				// options.west.fxSettings
+				,	o[sSettings]				// options.west.fxSettings_open
+				,	opts.defaults.fxSettings	// opts.defaults.fxSettings
+				,	opts.defaults[sSettings] || {} // opts.defaults.fxSettings_open
+				,	opts[pane].fxSettings		// opts.west.fxSettings
+				,	opts[pane][sSettings] || {}	// opts.west.fxSettings_open
+				);
+				// recalculate fxSpeed according to specificity rules
+				o[sSpeed] =
+					opts[pane][sSpeed]		// opts.west.fxSpeed_open
+				||	opts[pane].fxSpeed		// opts.west.fxSpeed (pane-default)
+				||	opts.defaults[sSpeed]	// opts.defaults.fxSpeed_open
+				||	opts.defaults.fxSpeed	// opts.defaults.fxSpeed
+				||	o[sSpeed]				// options.west.fxSpeed_open
+				||	o[sSettings].duration	// options.west.fxSettings_open.duration
+				||	o.fxSpeed				// options.west.fxSpeed
+				||	o.fxSettings.duration	// options.west.fxSettings.duration
+				||	defs.fxSpeed			// options.defaults.fxSpeed
+				||	defs.fxSettings.duration// options.defaults.fxSettings.duration
+				||	fx_pane.duration		// effects.slide.west.duration
+				||	fx_all.duration			// effects.slide.all.duration
+				||	"normal"				// DEFAULT
+				;
+			});
+
+		});
+
+		function renameOpts (O) {
+			for (var key in newOpts) {
+				if (O[key] != undefined) {
+					O[newOpts[key]] = O[key];
+					delete O[key];
+				}
+			}
+		}
+	};
+
+	/**
+	* Initialize module objects, styling, size and position for all panes
+	*
+	* @see  _create()
+	*/
+	var getPane = function (pane) {
+		var sel = options[pane].paneSelector
+		if (sel.substr(0,1)==="#") // ID selector
+			// NOTE: elements selected 'by ID' DO NOT have to be 'children'
+			return $Container.find(sel).eq(0);
+		else { // class or other selector
+			var $P = $Container.children(sel).eq(0);
+			// look for the pane nested inside a 'form' element
+			return $P.length ? $P : $Container.children("form:first").children(sel).eq(0);
+		}
+	};
+	var initPanes = function () {
+		// NOTE: do north & south FIRST so we can measure their height - do center LAST
+		$.each(_c.allPanes.split(","), function (idx, pane) {
+			var
+				o		= options[pane]
+			,	s		= state[pane]
+			,	c		= _c[pane]
+			,	fx		= s.fx
+			,	dir		= c.dir
+			,	spacing	= o.spacing_open || 0
+			,	isCenter = (pane == "center")
+			,	CSS		= {}
+			,	$P, $C
+			,	size, minSize, maxSize
+			;
+			$Cs[pane] = false; // init
+
+			$P = $Ps[pane] = getPane(pane);
+			if (!$P.length) {
+				$Ps[pane] = false; // logic
+				return true; // SKIP to next
+			}
+
+			// SAVE original Pane CSS
+			if (!$P.data("layoutCSS")) {
+				var props = "position,top,left,bottom,right,width,height,overflow,zIndex,display,backgroundColor,padding,margin,border";
+				$P.data("layoutCSS", getElemCSS($P, props));
+			}
+
+			// add basic classes & attributes
+			$P
+				.data("parentLayout", Instance)
+				.data("layoutRole", "pane")
+				.data("layoutEdge", pane)
+				.css(c.cssReq).css("zIndex", _c.zIndex.pane_normal)
+				.css(o.applyDemoStyles ? c.cssDemo : {}) // demo styles
+				.addClass( o.paneClass +" "+ o.paneClass+"-"+pane ) // default = "ui-layout-pane ui-layout-pane-west" - may be a dupe of 'paneSelector'
+				.bind("mouseenter."+ sID, addHover )
+				.bind("mouseleave."+ sID, removeHover )
+			;
+
+			// see if this pane has a 'scrolling-content element'
+			initContent(pane, false); // false = do NOT sizeContent() - called later
+
+			if (!isCenter) {
+				// call _parseSize AFTER applying pane classes & styles - but before making visible (if hidden)
+				// if o.size is auto or not valid, then MEASURE the pane and use that as it's 'size'
+				size	= s.size = _parseSize(pane, o.size);
+				minSize	= _parseSize(pane,o.minSize) || 1;
+				maxSize	= _parseSize(pane,o.maxSize) || 100000;
+				if (size > 0) size = max(min(size, maxSize), minSize);
+
+				// state for border-panes
+				s.isClosed  = false; // true = pane is closed
+				s.isSliding = false; // true = pane is currently open by 'sliding' over adjacent panes
+				s.isResizing= false; // true = pane is in process of being resized
+				s.isHidden	= false; // true = pane is hidden - no spacing, resizer or toggler is visible!
+			}
+				// state for all panes
+				s.tagName	= $P.attr("tagName");
+				s.edge		= pane   // useful if pane is (or about to be) 'swapped' - easy find out where it is (or is going)
+				s.noRoom	= false; // true = pane 'automatically' hidden due to insufficient room - will unhide automatically
+				s.isVisible	= true;  // false = pane is invisible - closed OR hidden - simplify logic
+
+			// set css-position to account for container borders & padding
+			switch (pane) {
+				case "north": 	CSS.top 	= sC.insetTop;
+								CSS.left 	= sC.insetLeft;
+								CSS.right	= sC.insetRight;
+								break;
+				case "south": 	CSS.bottom	= sC.insetBottom;
+								CSS.left 	= sC.insetLeft;
+								CSS.right 	= sC.insetRight;
+								break;
+				case "west": 	CSS.left 	= sC.insetLeft; // top, bottom & height set by sizeMidPanes()
+								break;
+				case "east": 	CSS.right 	= sC.insetRight; // ditto
+								break;
+				case "center":	// top, left, width & height set by sizeMidPanes()
+			}
+
+			if (dir == "horz") // north or south pane
+				CSS.height = max(1, cssH(pane, size));
+			else if (dir == "vert") // east or west pane
+				CSS.width = max(1, cssW(pane, size));
+			//else if (isCenter) {}
+
+			$P.css(CSS); // apply size -- top, bottom & height will be set by sizeMidPanes
+			if (dir != "horz") sizeMidPanes(pane, true); // true = skipCallback
+
+			// NOW make the pane visible - in case was initially hidden
+			$P.css({ visibility: "visible", display: "block" });
+
+			// close or hide the pane if specified in settings
+			if (o.initClosed && o.closable)
+				close(pane, true, true); // true, true = force, noAnimation
+			else if (o.initHidden || o.initClosed)
+				hide(pane); // will be completely invisible - no resizer or spacing
+			// ELSE setAsOpen() - called later by initHandles()
+
+			// check option for auto-handling of pop-ups & drop-downs
+			if (o.showOverflowOnHover)
+				$P.hover( allowOverflow, resetOverflow );
+		});
+
+		/*
+		*	init the pane-handles NOW in case we have to hide or close the pane below
+		*/
+		initHandles();
+
+		// now that all panes have been initialized and initially-sized,
+		// make sure there is really enough space available for each pane
+		$.each(_c.borderPanes.split(","), function (i, pane) {
+			if ($Ps[pane] && state[pane].isVisible) { // pane is OPEN
+				setSizeLimits(pane);
+				makePaneFit(pane); // pane may be Closed, Hidden or Resized by makePaneFit()
+			}
+		});
+		// size center-pane AGAIN in case we 'closed' a border-pane in loop above
+		sizeMidPanes("center");
+
+		// trigger onResize callbacks for all panes with triggerEventsOnLoad = true
+		$.each(_c.allPanes.split(","), function (i, pane) {
+			var o = options[pane];
+			if ($Ps[pane] && o.triggerEventsOnLoad && state[pane].isVisible) // pane is OPEN
+				_execCallback(pane, o.onresize_end || o.onresize); // call onresize
+		});
+
+		if ($Container.innerHeight() < 2){
+			alert( lang.errContainerHeight.replace(/CONTAINER/, sC.ref) );
+		}
+		
+	};
+
+	/**
+	* Initialize module objects, styling, size and position for all resize bars and toggler buttons
+	*
+	* @see  _create()
+	* @param {string=}	panes		The edge(s) to process, blank = all
+	*/
+	var initHandles = function (panes) {
+		if (!panes || panes == "all") panes = _c.borderPanes;
+
+		// create toggler DIVs for each pane, and set object pointers for them, eg: $R.north = north toggler DIV
+		$.each(panes.split(","), function (i, pane) {
+			var $P		= $Ps[pane];
+			$Rs[pane]	= false; // INIT
+			$Ts[pane]	= false;
+			if (!$P) return; // pane does not exist - skip
+
+			var 
+				o		= options[pane]
+			,	s		= state[pane]
+			,	c		= _c[pane]
+			,	rClass	= o.resizerClass
+			,	tClass	= o.togglerClass
+			,	side	= c.side.toLowerCase()
+			,	spacing	= (s.isVisible ? o.spacing_open : o.spacing_closed)
+			,	_pane	= "-"+ pane // used for classNames
+			,	_state	= (s.isVisible ? "-open" : "-closed") // used for classNames
+				// INIT RESIZER BAR
+			,	$R		= $Rs[pane] = $("<div></div>")
+				// INIT TOGGLER BUTTON
+			,	$T		= (o.closable ? $Ts[pane] = $("<div></div>") : false)
+			;
+
+			//if (s.isVisible && o.resizable) ... handled by initResizable
+			if (!s.isVisible && o.slidable)
+				$R.attr("title", o.sliderTip).css("cursor", o.sliderCursor);
+
+			$R
+				// if paneSelector is an ID, then create a matching ID for the resizer, eg: "#paneLeft" => "paneLeft-resizer"
+				.attr("id", (o.paneSelector.substr(0,1)=="#" ? o.paneSelector.substr(1) + "-resizer" : ""))
+				.data("parentLayout", Instance)
+				.data("layoutRole", "resizer")
+				.data("layoutEdge", pane)
+				.css(_c.resizers.cssReq).css("zIndex", _c.zIndex.resizer_normal)
+				.css(o.applyDemoStyles ? _c.resizers.cssDemo : {}) // add demo styles
+				.addClass(rClass +" "+ rClass+_pane)
+				.appendTo($Container) // append DIV to container
+			;
+
+			if ($T) {
+				$T
+					// if paneSelector is an ID, then create a matching ID for the resizer, eg: "#paneLeft" => "#paneLeft-toggler"
+					.attr("id", (o.paneSelector.substr(0,1)=="#" ? o.paneSelector.substr(1) + "-toggler" : ""))
+					.data("parentLayout", Instance)
+					.data("layoutRole", "toggler")
+					.data("layoutEdge", pane)
+					.css(_c.togglers.cssReq) // add base/required styles
+					.css(o.applyDemoStyles ? _c.togglers.cssDemo : {}) // add demo styles
+					.addClass(tClass +" "+ tClass+_pane)
+					.appendTo($R) // append SPAN to resizer DIV
+				;
+				// ADD INNER-SPANS TO TOGGLER
+				if (o.togglerContent_open) // ui-layout-open
+					$("<span>"+ o.togglerContent_open +"</span>")
+						.data("layoutRole", "togglerContent")
+						.data("layoutEdge", pane)
+						.addClass("content content-open")
+						.css("display","none")
+						.appendTo( $T )
+						.hover( addHover, removeHover )
+					;
+				if (o.togglerContent_closed) // ui-layout-closed
+					$("<span>"+ o.togglerContent_closed +"</span>")
+						.data("layoutRole", "togglerContent")
+						.data("layoutEdge", pane)
+						.addClass("content content-closed")
+						.css("display","none")
+						.appendTo( $T )
+						.hover( addHover, removeHover )
+					;
+				// ADD TOGGLER.click/.hover
+				enableClosable(pane);
+			}
+
+			// add Draggable events
+			initResizable(pane);
+
+			// ADD CLASSNAMES & SLIDE-BINDINGS - eg: class="resizer resizer-west resizer-open"
+			if (s.isVisible)
+				setAsOpen(pane);	// onOpen will be called, but NOT onResize
+			else {
+				setAsClosed(pane);	// onClose will be called
+				bindStartSlidingEvent(pane, true); // will enable events IF option is set
+			}
+
+		});
+
+		// SET ALL HANDLE DIMENSIONS
+		sizeHandles("all");
+	};
+
+
+	/**
+	* Initialize scrolling ui-layout-content div - if exists
+	*
+	* @see  initPane() - or externally after an Ajax injection
+	* @param {string}	pane		The pane to process
+	* @param {boolean=}	resize		Size content after init, default = true
+	*/
+	var initContent = function (pane, resize) {
+		var 
+			o	= options[pane]
+		,	sel	= o.contentSelector
+		,	$P	= $Ps[pane]
+		,	$C
+		;
+		if (sel) $C = $Cs[pane] = (o.findNestedContent)
+			? $P.find(sel).eq(0) // match 1-element only
+			: $P.children(sel).eq(0)
+		;
+		if ($C && $C.length) {
+			$C.css( _c.content.cssReq );
+			if (o.applyDemoStyles) {
+				$C.css( _c.content.cssDemo ); // add padding & overflow: auto to content-div
+				$P.css( _c.content.cssDemoPane ); // REMOVE padding/scrolling from pane
+			}
+			state[pane].content = {}; // init content state
+			if (resize !== false) sizeContent(pane);
+			// sizeContent() is called AFTER init of all elements
+		}
+		else
+			$Cs[pane] = false;
+	};
+
+
+	/**
+	* Searches for .ui-layout-button-xxx elements and auto-binds them as layout-buttons
+	*
+	* @see  _create()
+	*/
+	var initButtons = function () {
+		var pre	= "ui-layout-button-", name;
+		$.each("toggle,open,close,pin,toggle-slide,open-slide".split(","), function (i, action) {
+			$.each(_c.borderPanes.split(","), function (ii, pane) {
+				$("."+pre+action+"-"+pane).each(function(){
+					// if button was previously 'bound', data.layoutName was set, but is blank if layout has no 'name'
+					name = $(this).data("layoutName") || $(this).attr("layoutName");
+					if (name == undefined || name == options.name)
+						bindButton(this, action, pane);
+				});
+			});
+		});
+	};
+
+	/**
+	* Add resize-bars to all panes that specify it in options
+	* -dependancy: $.fn.resizable - will skip if not found
+	*
+	* @see			_create()
+	* @param {string=}	panes		The edge(s) to process, blank = all
+	*/
+	var initResizable = function (panes) {
+		var
+			draggingAvailable = (typeof $.fn.draggable == "function")
+		,	$Frames, side // set in start()
+		;
+		if (!panes || panes == "all") panes = _c.borderPanes;
+
+		$.each(panes.split(","), function (idx, pane) {
+			var 
+				o	= options[pane]
+			,	s	= state[pane]
+			,	c	= _c[pane]
+			,	side = (c.dir=="horz" ? "top" : "left")
+			,	r, live // set in start because may change
+			;
+			if (!draggingAvailable || !$Ps[pane] || !o.resizable) {
+				o.resizable = false;
+				return true; // skip to next
+			}
+
+			var 
+				$P 		= $Ps[pane]
+			,	$R		= $Rs[pane]
+			,	base	= o.resizerClass
+			//	'drag' classes are applied to the ORIGINAL resizer-bar while dragging is in process
+			,	resizerClass		= base+"-drag"				// resizer-drag
+			,	resizerPaneClass	= base+"-"+pane+"-drag"		// resizer-north-drag
+			//	'helper' class is applied to the CLONED resizer-bar while it is being dragged
+			,	helperClass			= base+"-dragging"			// resizer-dragging
+			,	helperPaneClass		= base+"-"+pane+"-dragging" // resizer-north-dragging
+			,	helperLimitClass	= base+"-dragging-limit"	// resizer-drag
+			,	helperClassesSet	= false 					// logic var
+			;
+
+			if (!s.isClosed)
+				$R
+					.attr("title", o.resizerTip)
+					.css("cursor", o.resizerCursor) // n-resize, s-resize, etc
+				;
+
+			$R.bind("mouseenter."+ sID, onResizerEnter)
+			  .bind("mouseleave."+ sID, onResizerLeave);
+
+			$R.draggable({
+				containment:	$Container[0] // limit resizing to layout container
+			,	axis:			(c.dir=="horz" ? "y" : "x") // limit resizing to horz or vert axis
+			,	delay:			0
+			,	distance:		1
+			//	basic format for helper - style it using class: .ui-draggable-dragging
+			,	helper:			"clone"
+			,	opacity:		o.resizerDragOpacity
+			,	addClasses:		false // avoid ui-state-disabled class when disabled
+			//,	iframeFix:		o.draggableIframeFix // TODO: consider using when bug is fixed
+			,	zIndex:			_c.zIndex.resizer_drag
+
+			,	start: function (e, ui) {
+					// REFRESH options & state pointers in case we used swapPanes
+					o = options[pane];
+					s = state[pane];
+					// re-read options
+					live = o.resizeWhileDragging;
+
+					// ondrag_start callback - will CANCEL hide if returns false
+					// TODO: dragging CANNOT be cancelled like this, so see if there is a way?
+					if (false === _execCallback(pane, o.ondrag_start)) return false;
+
+					_c.isLayoutBusy	= true; // used by sizePane() logic during a liveResize
+					s.isResizing	= true; // prevent pane from closing while resizing
+					timer.clear(pane+"_closeSlider"); // just in case already triggered
+
+					// SET RESIZER LIMITS - used in drag()
+					setSizeLimits(pane); // update pane/resizer state
+					r = s.resizerPosition;
+
+					$R.addClass( resizerClass +" "+ resizerPaneClass ); // add drag classes
+					helperClassesSet = false; // reset logic var - see drag()
+
+					// MASK PANES WITH IFRAMES OR OTHER TROUBLESOME ELEMENTS
+					$Frames = $(o.maskIframesOnResize === true ? "iframe" : o.maskIframesOnResize).filter(":visible");
+					var id, i=0; // ID incrementer - used when 'resizing' masks during dynamic resizing
+					$Frames.each(function() {					
+						id = "ui-layout-mask-"+ (++i);
+						$(this).data("layoutMaskID", id); // tag iframe with corresponding maskID
+						$('<div id="'+ id +'" class="ui-layout-mask ui-layout-mask-'+ pane +'"/>')
+							.css({
+								background:	"#fff"
+							,	opacity:	"0.001"
+							,	zIndex:		_c.zIndex.iframe_mask
+							,	position:	"absolute"
+							,	width:		this.offsetWidth+"px"
+							,	height:		this.offsetHeight+"px"
+							})
+							.css($(this).position()) // top & left -- changed from offset()
+							.appendTo(this.parentNode) // put mask-div INSIDE pane to avoid zIndex issues
+						;
+					});
+
+					// DISABLE TEXT SELECTION (though probably was already by resizer.mouseOver)
+					$('body').disableSelection(); 
+				}
+
+			,	drag: function (e, ui) {
+					if (!helperClassesSet) { // can only add classes after clone has been added to the DOM
+						//$(".ui-draggable-dragging")
+						ui.helper
+							.addClass( helperClass +" "+ helperPaneClass ) // add helper classes
+							.children().css("visibility","hidden") // hide toggler inside dragged resizer-bar
+						;
+						helperClassesSet = true;
+						// draggable bug!? RE-SET zIndex to prevent E/W resize-bar showing through N/S pane!
+						if (s.isSliding) $Ps[pane].css("zIndex", _c.zIndex.pane_sliding);
+					}
+					// CONTAIN RESIZER-BAR TO RESIZING LIMITS
+					var limit = 0;
+					if (ui.position[side] < r.min) {
+						ui.position[side] = r.min;
+						limit = -1;
+					}
+					else if (ui.position[side] > r.max) {
+						ui.position[side] = r.max;
+						limit = 1;
+					}
+					// ADD/REMOVE dragging-limit CLASS
+					if (limit) {
+						ui.helper.addClass( helperLimitClass ); // at dragging-limit
+						window.defaultStatus = "Panel has reached its " +
+							((limit>0 && pane.match(/north|west/)) || (limit<0 && pane.match(/south|east/)) ? "maximum" : "minimum") +" size";
+					}
+					else {
+						ui.helper.removeClass( helperLimitClass ); // not at dragging-limit
+						window.defaultStatus = "";
+					}
+					// DYNAMICALLY RESIZE PANES IF OPTION ENABLED
+					if (live) resizePanes(e, ui, pane);
+				}
+
+			,	stop: function (e, ui) {
+					// RE-ENABLE TEXT SELECTION
+					$('body').enableSelection();
+					window.defaultStatus = ""; // clear 'resizing limit' message from statusbar
+					$R.removeClass( resizerClass +" "+ resizerPaneClass +" "+ helperLimitClass ); // remove drag classes from Resizer
+					s.isResizing = false;
+					_c.isLayoutBusy	= false; // set BEFORE resizePanes so other logic can pick it up
+					resizePanes(e, ui, pane, true); // true = resizingDone
+				}
+
+			});
+
+			/**
+			* resizePanes
+			*
+			* Sub-routine called from stop() and optionally drag()
+			*
+			* @param {!Object}		evt
+			* @param {!Object}		ui
+			* @param {string}		pane
+			* @param {boolean=}		resizingDone
+			*/
+			var resizePanes = function (evt, ui, pane, resizingDone) {
+				var 
+					dragPos	= ui.position
+				,	c		= _c[pane]
+				,	resizerPos, newSize
+				,	i = 0 // ID incrementer
+				;
+				switch (pane) {
+					case "north":	resizerPos = dragPos.top; break;
+					case "west":	resizerPos = dragPos.left; break;
+					case "south":	resizerPos = sC.offsetHeight - dragPos.top  - o.spacing_open; break;
+					case "east":	resizerPos = sC.offsetWidth  - dragPos.left - o.spacing_open; break;
+				};
+
+				if (resizingDone) {
+					// Remove OR Resize MASK(S) created in drag.start
+					$("div.ui-layout-mask").each(function() { this.parentNode.removeChild(this); });
+					//$("div.ui-layout-mask").remove(); // TODO: Is this less efficient?
+
+					// ondrag_start callback - will CANCEL hide if returns false
+					if (false === _execCallback(pane, o.ondrag_end || o.ondrag)) return false;
+				}
+				else
+					$Frames.each(function() {
+						$("#"+ $(this).data("layoutMaskID")) // get corresponding mask by ID
+							.css($(this).position()) // update top & left
+							.css({ // update width & height
+								width:	this.offsetWidth +"px"
+							,	height:	this.offsetHeight+"px"
+							})
+						;
+					});
+
+				// remove container margin from resizer position to get the pane size
+				newSize = resizerPos - sC["inset"+ c.side];
+				manualSizePane(pane, newSize);
+			}
+		});
+	};
+
+
+	/**
+	*	Destroy this layout and reset all elements
+	*/
+	var destroy = function () {
+		// UNBIND layout events and remove global object
+		$(window).unbind("."+ sID);
+		$(document).unbind("."+ sID);
+
+		var
+			fullPage= (sC.tagName == "BODY")
+		//	create list of ALL pane-classes that need to be removed
+		,	_open	= "-open"
+		,	_sliding= "-sliding"
+		,	_closed	= "-closed"
+		,	$P, root, pRoot, pClasses // loop vars
+		;
+		// loop all panes to remove layout classes, attributes and bindings
+		$.each(_c.allPanes.split(","), function (i, pane) {
+			$P = $Ps[pane];
+			if (!$P) return true; // no pane - SKIP
+
+			// REMOVE pane's resizer and toggler elements
+			if (pane != "center") {
+				if ($Ts[pane]) $Ts[pane].remove();
+				$Rs[pane].remove();
+			}
+
+			root = options[pane].paneClass; // default="ui-layout-pane"
+			pRoot = root +"-"+ pane; // eg: "ui-layout-pane-west"
+			pClasses =	[	root, root+_open, root+_closed, root+_sliding,		// generic classes
+							pRoot, pRoot+_open, pRoot+_closed, pRoot+_sliding	// pane-specific classes
+						];
+			$.merge(pClasses, getHoverClasses($P, true)); // ADD hover-classes
+
+			$P
+				.removeClass( pClasses.join(" ") ) // remove ALL pane-classes
+				.removeData("layoutRole")
+				.removeData("layoutEdge")
+				.unbind("."+ sID) // remove ALL Layout events
+				// TODO: remove these extra unbind commands when jQuery is fixed
+				.unbind("mouseenter")
+				.unbind("mouseleave")
+			;
+
+			// do NOT reset CSS if this pane is STILL the container of a nested layout!
+			// the nested layout will reset its 'container' when/if it is destroyed
+			if (!$P.data("layoutContainer"))
+				$P.css( $P.data("layoutCSS") );
+		});
+
+		// reset layout-container
+		$Container.removeData("layoutContainer");
+
+		// do NOT reset container CSS if is a 'pane' in an outer-layout - ie, THIS layout is 'nested'
+		if (!$Container.data("layoutEdge"))
+			$Container.css( $Container.data("layoutCSS") ); // RESET CSS
+		// for full-page layouts, must also reset the <HTML> CSS
+		if (fullPage)
+			$("html").css( $("html").data("layoutCSS") ); // RESET CSS
+
+		// trigger state-management and onunload callback
+		unload();
+	};
+
+
+/*
+ * ###########################
+ *       ACTION METHODS
+ * ###########################
+ */
+
+	/**
+	* Completely 'hides' a pane, including its spacing - as if it does not exist
+	* The pane is not actually 'removed' from the source, so can use 'show' to un-hide it
+	*
+	* @param {string}	pane		The pane being hidden, ie: north, south, east, or west
+	* @param {boolean=}	noAnimation	
+	*/
+	var hide = function (pane, noAnimation) {
+		var
+			o	= options[pane]
+		,	s	= state[pane]
+		,	$P	= $Ps[pane]
+		,	$R	= $Rs[pane]
+		;
+		if (!$P || s.isHidden) return; // pane does not exist OR is already hidden
+
+		// onhide_start callback - will CANCEL hide if returns false
+		if (state.initialized && false === _execCallback(pane, o.onhide_start)) return;
+
+		s.isSliding = false; // just in case
+
+		// now hide the elements
+		if ($R) $R.hide(); // hide resizer-bar
+		if (!state.initialized || s.isClosed) {
+			s.isClosed = true; // to trigger open-animation on show()
+			s.isHidden  = true;
+			s.isVisible = false;
+			$P.hide(); // no animation when loading page
+			sizeMidPanes(_c[pane].dir == "horz" ? "all" : "center");
+			if (state.initialized || o.triggerEventsOnLoad)
+				_execCallback(pane, o.onhide_end || o.onhide);
+		}
+		else {
+			s.isHiding = true; // used by onclose
+			close(pane, false, noAnimation); // adjust all panes to fit
+		}
+	};
+
+	/**
+	* Show a hidden pane - show as 'closed' by default unless openPane = true
+	*
+	* @param {string}	pane		The pane being opened, ie: north, south, east, or west
+	* @param {boolean=}	openPane
+	* @param {boolean=}	noAnimation
+	* @param {boolean=}	noAlert
+	*/
+	var show = function (pane, openPane, noAnimation, noAlert) {
+		var
+			o	= options[pane]
+		,	s	= state[pane]
+		,	$P	= $Ps[pane]
+		,	$R	= $Rs[pane]
+		;
+		if (!$P || !s.isHidden) return; // pane does not exist OR is not hidden
+
+		// onshow_start callback - will CANCEL show if returns false
+		if (false === _execCallback(pane, o.onshow_start)) return;
+
+		s.isSliding = false; // just in case
+		s.isShowing = true; // used by onopen/onclose
+		//s.isHidden  = false; - will be set by open/close - if not cancelled
+
+		// now show the elements
+		//if ($R) $R.show(); - will be shown by open/close
+		if (openPane === false)
+			close(pane, true); // true = force
+		else
+			open(pane, false, noAnimation, noAlert); // adjust all panes to fit
+	};
+
+
+	/**
+	* Toggles a pane open/closed by calling either open or close
+	*
+	* @param {string}	pane   The pane being toggled, ie: north, south, east, or west
+	* @param {boolean=}	slide
+	*/
+	var toggle = function (pane, slide) {
+		if (!isStr(pane)) {
+			pane.stopImmediatePropagation(); // pane = event
+			pane = $(this).data("layoutEdge"); // bound to $R.dblclick
+		}
+		var s = state[str(pane)];
+		if (s.isHidden)
+			show(pane); // will call 'open' after unhiding it
+		else if (s.isClosed)
+			open(pane, !!slide);
+		else
+			close(pane);
+	};
+
+
+	/**
+	* Utility method used during init or other auto-processes
+	*
+	* @param {string}	pane   The pane being closed
+	* @param {boolean=}	setHandles
+	*/
+	var _closePane = function (pane, setHandles) {
+		var
+			$P	= $Ps[pane]
+		,	s	= state[pane]
+		;
+		$P.hide();
+		s.isClosed = true;
+		s.isVisible = false;
+		// UNUSED: if (setHandles) setAsClosed(pane, true); // true = force
+	};
+
+	/**
+	* Close the specified pane (animation optional), and resize all other panes as needed
+	*
+	* @param {string}	pane		The pane being closed, ie: north, south, east, or west
+	* @param {boolean=}	force	
+	* @param {boolean=}	noAnimation	
+	* @param {boolean=}	skipCallback	
+	*/
+	var close = function (pane, force, noAnimation, skipCallback) {
+		if (!state.initialized) {
+			_closePane(pane)
+			return;
+		}
+		var
+			$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	$T		= $Ts[pane]
+		,	o		= options[pane]
+		,	s		= state[pane]
+		,	doFX	= !noAnimation && !s.isClosed && (o.fxName_close != "none")
+		// 	transfer logic vars to temp vars
+		,	isShowing	= s.isShowing
+		,	isHiding	= s.isHiding
+		,	wasSliding	= s.isSliding
+		;
+		// now clear the logic vars
+		delete s.isShowing;
+		delete s.isHiding;
+
+		if (!$P || (!o.closable && !isShowing && !isHiding)) return; // invalid request // (!o.resizable && !o.closable) ???
+		else if (!force && s.isClosed && !isShowing) return; // already closed
+
+		if (_c.isLayoutBusy) { // layout is 'busy' - probably with an animation
+			_queue("close", pane, force); // set a callback for this action, if possible
+			return; // ABORT 
+		}
+
+		// onclose_start callback - will CANCEL hide if returns false
+		// SKIP if just 'showing' a hidden pane as 'closed'
+		if (!isShowing && false === _execCallback(pane, o.onclose_start)) return;
+
+		// SET flow-control flags
+		_c[pane].isMoving = true;
+		_c.isLayoutBusy = true;
+
+		s.isClosed = true;
+		s.isVisible = false;
+		// update isHidden BEFORE sizing panes
+		if (isHiding) s.isHidden = true;
+		else if (isShowing) s.isHidden = false;
+
+		if (s.isSliding) // pane is being closed, so UNBIND trigger events
+			bindStopSlidingEvents(pane, false); // will set isSliding=false
+		else // resize panes adjacent to this one
+			sizeMidPanes(_c[pane].dir == "horz" ? "all" : "center", false); // false = NOT skipCallback
+
+		// if this pane has a resizer bar, move it NOW - before animation
+		setAsClosed(pane);
+
+		// CLOSE THE PANE
+		if (doFX) { // animate the close
+			lockPaneForFX(pane, true); // need to set left/top so animation will work
+			$P.hide( o.fxName_close, o.fxSettings_close, o.fxSpeed_close, function () {
+				lockPaneForFX(pane, false); // undo
+				close_2();
+			});
+		}
+		else { // hide the pane without animation
+			$P.hide();
+			close_2();
+		};
+
+		// SUBROUTINE
+		function close_2 () {
+			if (s.isClosed) { // make sure pane was not 'reopened' before animation finished!
+
+				bindStartSlidingEvent(pane, true); // will enable if o.slidable = true
+
+				// if opposite-pane was autoClosed, see if it can be autoOpened now
+				var altPane = _c.altSide[pane];
+				if (state[ altPane ].noRoom) {
+					setSizeLimits( altPane );
+					makePaneFit( altPane );
+				}
+
+				if (!skipCallback && (state.initialized || o.triggerEventsOnLoad)) {
+					// onclose callback - UNLESS just 'showing' a hidden pane as 'closed'
+					if (!isShowing) _execCallback(pane, o.onclose_end || o.onclose);
+					// onhide OR onshow callback
+					if (isShowing)	_execCallback(pane, o.onshow_end || o.onshow);
+					if (isHiding)	_execCallback(pane, o.onhide_end || o.onhide);
+				}
+			}
+			// execute internal flow-control callback
+			_dequeue(pane);
+		}
+	};
+
+	/**
+	* @param {string}	pane	The pane just closed, ie: north, south, east, or west
+	*/
+	var setAsClosed = function (pane) {
+		var
+			$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	$T		= $Ts[pane]
+		,	o		= options[pane]
+		,	s		= state[pane]
+		,	side	= _c[pane].side.toLowerCase()
+		,	inset	= "inset"+ _c[pane].side
+		,	rClass	= o.resizerClass
+		,	tClass	= o.togglerClass
+		,	_pane	= "-"+ pane // used for classNames
+		,	_open	= "-open"
+		,	_sliding= "-sliding"
+		,	_closed	= "-closed"
+		;
+		$R
+			.css(side, sC[inset]) // move the resizer
+			.removeClass( rClass+_open +" "+ rClass+_pane+_open )
+			.removeClass( rClass+_sliding +" "+ rClass+_pane+_sliding )
+			.addClass( rClass+_closed +" "+ rClass+_pane+_closed )
+			.unbind("dblclick."+ sID)
+		;
+		// DISABLE 'resizing' when closed - do this BEFORE bindStartSlidingEvent?
+		if (o.resizable && typeof $.fn.draggable == "function")
+			$R
+				.draggable("disable")
+				.removeClass("ui-state-disabled") // do NOT apply disabled styling - not suitable here
+				.css("cursor", "default")
+				.attr("title","")
+			;
+
+		// if pane has a toggler button, adjust that too
+		if ($T) {
+			$T
+				.removeClass( tClass+_open +" "+ tClass+_pane+_open )
+				.addClass( tClass+_closed +" "+ tClass+_pane+_closed )
+				.attr("title", o.togglerTip_closed) // may be blank
+			;
+			// toggler-content - if exists
+			$T.children(".content-open").hide();
+			$T.children(".content-closed").css("display","block");
+		}
+
+		// sync any 'pin buttons'
+		syncPinBtns(pane, false);
+
+		if (state.initialized) {
+			// resize 'length' and position togglers for adjacent panes
+			sizeHandles("all");
+		}
+	};
+
+	/**
+	* Open the specified pane (animation optional), and resize all other panes as needed
+	*
+	* @param {string}	pane		The pane being opened, ie: north, south, east, or west
+	* @param {boolean=}	slide	
+	* @param {boolean=}	noAnimation	
+	* @param {boolean=}	noAlert	
+	*/
+	var open = function (pane, slide, noAnimation, noAlert) {
+		var 
+			$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	$T		= $Ts[pane]
+		,	o		= options[pane]
+		,	s		= state[pane]
+		,	doFX	= !noAnimation && s.isClosed && (o.fxName_open != "none")
+		// 	transfer logic var to temp var
+		,	isShowing = s.isShowing
+		;
+		// now clear the logic var
+		delete s.isShowing;
+
+		if (!$P || (!o.resizable && !o.closable && !isShowing)) return; // invalid request
+		else if (s.isVisible && !s.isSliding) return; // already open
+
+		// pane can ALSO be unhidden by just calling show(), so handle this scenario
+		if (s.isHidden && !isShowing) {
+			show(pane, true);
+			return;
+		}
+
+		if (_c.isLayoutBusy) { // layout is 'busy' - probably with an animation
+			_queue("open", pane, slide); // set a callback for this action, if possible
+			return; // ABORT
+		}
+
+		// onopen_start callback - will CANCEL hide if returns false
+		if (false === _execCallback(pane, o.onopen_start)) return;
+
+		// make sure there is enough space available to open the pane
+		setSizeLimits(pane, slide); // update pane-state
+		if (s.minSize > s.maxSize) { // INSUFFICIENT ROOM FOR PANE TO OPEN!
+			syncPinBtns(pane, false); // make sure pin-buttons are reset
+			if (!noAlert && o.noRoomToOpenTip) alert(o.noRoomToOpenTip);
+			return; // ABORT
+		}
+
+		// SET flow-control flags
+		_c[pane].isMoving = true;
+		_c.isLayoutBusy = true;
+
+		if (slide) // START Sliding - will set isSliding=true
+			bindStopSlidingEvents(pane, true); // BIND trigger events to close sliding-pane
+		else if (s.isSliding) // PIN PANE (stop sliding) - open pane 'normally' instead
+			bindStopSlidingEvents(pane, false); // UNBIND trigger events - will set isSliding=false
+		else if (o.slidable)
+			bindStartSlidingEvent(pane, false); // UNBIND trigger events
+
+		s.noRoom = false; // will be reset by makePaneFit if 'noRoom'
+		makePaneFit(pane);
+
+		s.isVisible = true;
+		s.isClosed	= false;
+		// update isHidden BEFORE sizing panes - WHY??? Old?
+		if (isShowing) s.isHidden = false;
+
+		if (doFX) { // ANIMATE
+			lockPaneForFX(pane, true); // need to set left/top so animation will work
+			$P.show( o.fxName_open, o.fxSettings_open, o.fxSpeed_open, function() {
+				lockPaneForFX(pane, false); // undo
+				open_2(); // continue
+			});
+		}
+		else {// no animation
+			$P.show();	// just show pane and...
+			open_2();	// continue
+		};
+
+		// SUBROUTINE
+		function open_2 () {
+			if (s.isVisible) { // make sure pane was not closed or hidden before animation finished!
+
+				// cure iframe display issues
+				_fixIframe(pane);
+
+				// NOTE: if isSliding, then other panes are NOT 'resized'
+				if (!s.isSliding) // resize all panes adjacent to this one
+					sizeMidPanes(_c[pane].dir=="vert" ? "center" : "all", false); // false = NOT skipCallback
+
+				// set classes, position handles and execute callbacks...
+				setAsOpen(pane);
+			}
+
+			// internal flow-control callback
+			_dequeue(pane);
+		};
+	
+	};
+
+	/**
+	* @param {string}	pane		The pane just opened, ie: north, south, east, or west
+	* @param {boolean=}	skipCallback	
+	*/
+	var setAsOpen = function (pane, skipCallback) {
+		var 
+			$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	$T		= $Ts[pane]
+		,	o		= options[pane]
+		,	s		= state[pane]
+		,	side	= _c[pane].side.toLowerCase()
+		,	inset	= "inset"+ _c[pane].side
+		,	rClass	= o.resizerClass
+		,	tClass	= o.togglerClass
+		,	_pane	= "-"+ pane // used for classNames
+		,	_open	= "-open"
+		,	_closed	= "-closed"
+		,	_sliding= "-sliding"
+		;
+		$R
+			.css(side, sC[inset] + getPaneSize(pane)) // move the resizer
+			.removeClass( rClass+_closed +" "+ rClass+_pane+_closed )
+			.addClass( rClass+_open +" "+ rClass+_pane+_open )
+		;
+		if (s.isSliding)
+			$R.addClass( rClass+_sliding +" "+ rClass+_pane+_sliding )
+		else // in case 'was sliding'
+			$R.removeClass( rClass+_sliding +" "+ rClass+_pane+_sliding )
+
+		if (o.resizerDblClickToggle)
+			$R.bind("dblclick", toggle );
+		removeHover( 0, $R ); // remove hover classes
+		if (o.resizable && typeof $.fn.draggable == "function")
+			$R
+				.draggable("enable")
+				.css("cursor", o.resizerCursor)
+				.attr("title", o.resizerTip)
+			;
+		else if (!s.isSliding)
+			$R.css("cursor", "default"); // n-resize, s-resize, etc
+
+		// if pane also has a toggler button, adjust that too
+		if ($T) {
+			$T
+				.removeClass( tClass+_closed +" "+ tClass+_pane+_closed )
+				.addClass( tClass+_open +" "+ tClass+_pane+_open )
+				.attr("title", o.togglerTip_open) // may be blank
+			;
+			removeHover( 0, $T ); // remove hover classes
+			// toggler-content - if exists
+			$T.children(".content-closed").hide();
+			$T.children(".content-open").css("display","block");
+		}
+
+		// sync any 'pin buttons'
+		syncPinBtns(pane, !s.isSliding);
+
+		// update pane-state dimensions - BEFORE resizing content
+		$.extend(s, getElemDims($P));
+
+		if (state.initialized) {
+			// resize resizer & toggler sizes for all panes
+			sizeHandles("all");
+			// resize content every time pane opens - to be sure
+			sizeContent(pane, true); // true = remeasure headers/footers, even if 'isLayoutBusy'
+		}
+
+		if (!skipCallback && (state.initialized || o.triggerEventsOnLoad) && $P.is(":visible")) {
+			// onopen callback
+			_execCallback(pane, o.onopen_end || o.onopen);
+			// onshow callback - TODO: should this be here?
+			if (s.isShowing) _execCallback(pane, o.onshow_end || o.onshow);
+			// ALSO call onresize because layout-size *may* have changed while pane was closed
+			if (state.initialized) {
+				_execCallback(pane, o.onresize_end || o.onresize);
+				resizeNestedLayout(pane);
+			}
+		}
+	};
+
+
+	/**
+	* slideOpen / slideClose / slideToggle
+	*
+	* Pass-though methods for sliding
+	*/
+	var slideOpen = function (evt_or_pane) {
+		var
+			type = typeof evt_or_pane
+		,	pane = (type == "string" ? evt_or_pane : $(this).data("layoutEdge"))
+		;
+		// prevent event from triggering on NEW resizer binding created below
+		if (type == "object") { evt_or_pane.stopImmediatePropagation(); }
+
+		if (state[pane].isClosed)
+			open(pane, true); // true = slide - ie, called from here!
+		else // skip 'open' if already open! // TODO: does this use-case make sense???
+			bindStopSlidingEvents(pane, true); // BIND trigger events to close sliding-pane
+	};
+
+	var slideClose = function (evt_or_pane) {
+		var
+			evt	= isStr(evt_or_pane) ? null : evt_or_pane
+			$E	= (evt ? $(this) : $Ps[evt_or_pane])
+		,	pane= $E.data("layoutEdge")
+		,	o	= options[pane]
+		,	s	= state[pane]
+		,	$P	= $Ps[pane]
+		;
+
+		if (s.isClosed || s.isResizing)
+			return; // skip if already closed OR in process of resizing
+		else if (o.slideTrigger_close == "click")
+			close_NOW(); // close immediately onClick
+		else if (o.preventQuickSlideClose && _c.isLayoutBusy)
+			return; // handle Chrome quick-close on slide-open
+		else if (o.preventPrematureSlideClose && evt && $.layout.isMouseOverElem(evt, $P))
+			return; // handle incorrect mouseleave trigger, like when over a SELECT-list in IE
+		else if (evt) // trigger = mouseleave - use a delay
+			timer.set(pane+"_closeSlider", close_NOW, _c[pane].isMoving ? 1000 : 300); // 1 sec delay if 'opening', else .3 sec
+		else // called programically
+			close_NOW();
+
+		/**
+		* SUBROUTINE for timed close
+		*
+		* @param {Object=}		evt
+		*/
+		function close_NOW (evt) {
+			if (s.isClosed) // skip 'close' if already closed!
+				bindStopSlidingEvents(pane, false); // UNBIND trigger events
+			else if (!_c[pane].isMoving)
+				close(pane); // close will handle unbinding
+		};
+	};
+
+	var slideToggle = function (pane) { toggle(pane, true); };
+
+
+	/**
+	* Must set left/top on East/South panes so animation will work properly
+	*
+	* @param {string}  pane  The pane to lock, 'east' or 'south' - any other is ignored!
+	* @param {boolean}  doLock  true = set left/top, false = remove
+	*/
+	var lockPaneForFX = function (pane, doLock) {
+		var $P = $Ps[pane];
+		if (doLock) {
+			$P.css({ zIndex: _c.zIndex.pane_animate }); // overlay all elements during animation
+			if (pane=="south")
+				$P.css({ top: sC.insetTop + sC.innerHeight - $P.outerHeight() });
+			else if (pane=="east")
+				$P.css({ left: sC.insetLeft + sC.innerWidth - $P.outerWidth() });
+		}
+		else { // animation DONE - RESET CSS
+			// TODO: see if this can be deleted. It causes a quick-close when sliding in Chrome
+			$P.css({ zIndex: (state[pane].isSliding ? _c.zIndex.pane_sliding : _c.zIndex.pane_normal) });
+			if (pane=="south")
+				$P.css({ top: "auto" });
+			else if (pane=="east")
+				$P.css({ left: "auto" });
+			// fix anti-aliasing in IE - only needed for animations that change opacity
+			var o = options[pane];
+			if (state.browser.msie && o.fxOpacityFix && o.fxName_open != "slide" && $P.css("filter") && $P.css("opacity") == 1)
+				$P[0].style.removeAttribute('filter');
+		}
+	};
+
+
+	/**
+	* Toggle sliding functionality of a specific pane on/off by adding removing 'slide open' trigger
+	*
+	* @see  open(), close()
+	* @param {string}	pane	The pane to enable/disable, 'north', 'south', etc.
+	* @param {boolean}	enable	Enable or Disable sliding?
+	*/
+	var bindStartSlidingEvent = function (pane, enable) {
+		var 
+			o		= options[pane]
+		,	$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	trigger	= o.slideTrigger_open
+		;
+		if (!$R || (enable && !o.slidable)) return;
+
+		// make sure we have a valid event
+		if (trigger.match(/mouseover/))
+			trigger = o.slideTrigger_open = "mouseenter";
+		else if (!trigger.match(/click|dblclick|mouseenter/)) 
+			trigger = o.slideTrigger_open = "click";
+
+		$R
+			// add or remove trigger event
+			[enable ? "bind" : "unbind"](trigger +'.'+ sID, slideOpen)
+			// set the appropriate cursor & title/tip
+			.css("cursor", enable ? o.sliderCursor : "default")
+			.attr("title", enable ? o.sliderTip : "")
+		;
+	};
+
+	/**
+	* Add or remove 'mouseleave' events to 'slide close' when pane is 'sliding' open or closed
+	* Also increases zIndex when pane is sliding open
+	* See bindStartSlidingEvent for code to control 'slide open'
+	*
+	* @see  slideOpen(), slideClose()
+	* @param {string}	pane	The pane to process, 'north', 'south', etc.
+	* @param {boolean}	enable	Enable or Disable events?
+	*/
+	var bindStopSlidingEvents = function (pane, enable) {
+		var 
+			o		= options[pane]
+		,	s		= state[pane]
+		,	z		= _c.zIndex
+		,	trigger	= o.slideTrigger_close
+		,	action	= (enable ? "bind" : "unbind")
+		,	$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		;
+		s.isSliding = enable; // logic
+		timer.clear(pane+"_closeSlider"); // just in case
+
+		// remove 'slideOpen' trigger event from resizer
+		// ALSO will raise the zIndex of the pane & resizer
+		if (enable) bindStartSlidingEvent(pane, false);
+
+		// RE/SET zIndex - increases when pane is sliding-open, resets to normal when not
+		$P.css("zIndex", enable ? z.pane_sliding : z.pane_normal);
+		$R.css("zIndex", enable ? z.pane_sliding : z.resizer_normal);
+
+		// make sure we have a valid event
+		if (!trigger.match(/click|mouseleave/))
+			trigger = o.slideTrigger_close = "mouseleave"; // also catches 'mouseout'
+
+		// add/remove slide triggers
+		$R[action](trigger, slideClose); // base event on resize
+		// need extra events for mouseleave
+		if (trigger == "mouseleave") {
+			// also close on pane.mouseleave
+			$P[action]("mouseleave."+ sID, slideClose);
+			// cancel timer when mouse moves between 'pane' and 'resizer'
+			$R[action]("mouseenter."+ sID, cancelMouseOut);
+			$P[action]("mouseenter."+ sID, cancelMouseOut);
+		}
+
+		if (!enable)
+			timer.clear(pane+"_closeSlider");
+		else if (trigger == "click" && !o.resizable) {
+			// IF pane is not resizable (which already has a cursor and tip) 
+			// then set the a cursor & title/tip on resizer when sliding
+			$R.css("cursor", enable ? o.sliderCursor : "default");
+			$R.attr("title", enable ? o.togglerTip_open : ""); // use Toggler-tip, eg: "Close Pane"
+		}
+
+		// SUBROUTINE for mouseleave timer clearing
+		function cancelMouseOut (evt) {
+			timer.clear(pane+"_closeSlider");
+			evt.stopPropagation();
+		}
+	};
+
+
+	/**
+	* Hides/closes a pane if there is insufficient room - reverses this when there is room again
+	* MUST have already called setSizeLimits() before calling this method
+	*
+	* @param {string}		pane			The pane being resized
+	* @param {boolean=}	isOpening		Called from onOpen?
+	* @param {boolean=}	skipCallback	Should the onresize callback be run?
+	* @param {boolean=}	force
+	*/
+	var makePaneFit = function (pane, isOpening, skipCallback, force) {
+		var
+			o	= options[pane]
+		,	s	= state[pane]
+		,	c	= _c[pane]
+		,	$P	= $Ps[pane]
+		,	$R	= $Rs[pane]
+		,	isSidePane 	= c.dir=="vert"
+		,	hasRoom		= false
+		;
+
+		// special handling for center pane
+		if (pane == "center" || (isSidePane && s.noVerticalRoom)) {
+			// see if there is enough room to display the center-pane
+			hasRoom = s.minHeight <= s.maxHeight && (isSidePane || s.minWidth <= s.maxWidth);
+			if (hasRoom && s.noRoom) { // previously hidden due to noRoom, so show now
+				$P.show();
+				if ($R) $R.show();
+				s.isVisible = true;
+				s.noRoom = false;
+				if (isSidePane) s.noVerticalRoom = false;
+				_fixIframe(pane);
+			}
+			else if (!hasRoom && !s.noRoom) { // not currently hidden, so hide now
+				$P.hide();
+				if ($R) $R.hide();
+				s.isVisible = false;
+				s.noRoom = true;
+			}
+		}
+
+		// see if there is enough room to fit the border-pane
+		if (pane == "center") {
+			// ignore center in this block
+		}
+		else if (s.minSize <= s.maxSize) { // pane CAN fit
+			hasRoom = true;
+			if (s.size > s.maxSize) // pane is too big - shrink it
+				sizePane(pane, s.maxSize, skipCallback, force);
+			else if (s.size < s.minSize) // pane is too small - enlarge it
+				sizePane(pane, s.minSize, skipCallback, force);
+			else if ($R && $P.is(":visible")) {
+				// make sure resizer-bar is positioned correctly
+				// handles situation where nested layout was 'hidden' when initialized
+				var
+					side = c.side.toLowerCase()
+				,	pos  = s.size + sC["inset"+ c.side]
+				;
+				if (_cssNum($R, side) != pos) $R.css( side, pos );
+			}
+
+			// if was previously hidden due to noRoom, then RESET because NOW there is room
+			if (s.noRoom) {
+				// s.noRoom state will be set by open or show
+				if (s.wasOpen && o.closable) {
+					if (o.autoReopen)
+						open(pane, false, true, true); // true = noAnimation, true = noAlert
+					else // leave the pane closed, so just update state
+						s.noRoom = false;
+				}
+				else
+					show(pane, s.wasOpen, true, true); // true = noAnimation, true = noAlert
+			}
+		}
+		else { // !hasRoom - pane CANNOT fit
+			if (!s.noRoom) { // pane not set as noRoom yet, so hide or close it now...
+				s.noRoom = true; // update state
+				s.wasOpen = !s.isClosed && !s.isSliding;
+				if (s.isClosed){} // SKIP
+				else if (o.closable) // 'close' if possible
+					close(pane, true, true); // true = force, true = noAnimation
+				else // 'hide' pane if cannot just be closed
+					hide(pane, true); // true = noAnimation
+			}
+		}
+	};
+
+
+	/**
+	* sizePane / manualSizePane
+	* sizePane is called only by internal methods whenever a pane needs to be resized
+	* manualSizePane is an exposed flow-through method allowing extra code when pane is 'manually resized'
+	*
+	* @param {string}		pane			The pane being resized
+	* @param {number}		size			The *desired* new size for this pane - will be validated
+	* @param {boolean=}		skipCallback	Should the onresize callback be run?
+	*/
+	var manualSizePane = function (pane, size, skipCallback) {
+		// ANY call to sizePane will disabled autoResize
+		var
+			o = options[pane]
+		//	if resizing callbacks have been delayed and resizing is now DONE, force resizing to complete...
+		,	forceResize = o.resizeWhileDragging && !_c.isLayoutBusy //  && !o.triggerEventsWhileDragging
+		;
+		o.autoResize = false;
+		// flow-through...
+		sizePane(pane, size, skipCallback, forceResize);
+	}
+
+	/**
+	* @param {string}		pane			The pane being resized
+	* @param {number}		size			The *desired* new size for this pane - will be validated
+	* @param {boolean=}		skipCallback	Should the onresize callback be run?
+	* @param {boolean=}		force			Force resizing even if does not seem necessary
+	*/
+	var sizePane = function (pane, size, skipCallback, force) {
+		var 
+			o		= options[pane]
+		,	s		= state[pane]
+		,	$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	side	= _c[pane].side.toLowerCase()
+		,	inset	= "inset"+ _c[pane].side
+		,	skipResizeWhileDragging = _c.isLayoutBusy && !o.triggerEventsWhileDragging
+		,	oldSize
+		;
+		// calculate 'current' min/max sizes
+		setSizeLimits(pane); // update pane-state
+		oldSize = s.size;
+
+		size = _parseSize(pane, size); // handle percentages & auto
+		size = max(size, _parseSize(pane, o.minSize));
+		size = min(size, s.maxSize);
+		if (size < s.minSize) { // not enough room for pane!
+			makePaneFit(pane, false, skipCallback);	// will hide or close pane
+			return;
+		}
+
+		// IF newSize is same as oldSize, then nothing to do - abort
+		if (!force && size == oldSize) return;
+
+		// onresize_start callback CANNOT cancel resizing because this would break the layout!
+		if (!skipCallback && state.initialized && s.isVisible)
+			_execCallback(pane, o.onresize_start);
+
+		// resize the pane, and make sure its visible
+		$P.css( _c[pane].sizeType.toLowerCase(), max(1, cssSize(pane, size)) );
+
+		// update pane-state dimensions
+		s.size = size;
+		$.extend(s, getElemDims($P));
+
+		// reposition the resizer-bar
+		if ($R && $P.is(":visible")) $R.css( side, size + sC[inset] );
+
+		sizeContent(pane);
+
+		if (!skipCallback && !skipResizeWhileDragging && state.initialized && s.isVisible) {
+			_execCallback(pane, o.onresize_end || o.onresize);
+			resizeNestedLayout(pane);
+		}
+
+		// resize all the adjacent panes, and adjust their toggler buttons
+		// when skipCallback passed, it means the controlling method will handle 'other panes'
+		if (!skipCallback) {
+			// also no callback if live-resize is in progress and NOT triggerEventsWhileDragging
+			if (!s.isSliding) sizeMidPanes(_c[pane].dir=="horz" ? "all" : "center", skipResizeWhileDragging, force);
+			sizeHandles("all");
+		}
+
+		// if opposite-pane was autoClosed, see if it can be autoOpened now
+		var altPane = _c.altSide[pane];
+		if (size < oldSize && state[ altPane ].noRoom) {
+			setSizeLimits( altPane );
+			makePaneFit( altPane, false, skipCallback );
+		}
+	};
+
+	/**
+	* @see  initPanes(), sizePane(), resizeAll(), open(), close(), hide()
+	* @param {string}	panes			The pane(s) being resized, comma-delmited string
+	* @param {boolean=}	skipCallback	Should the onresize callback be run?
+	* @param {boolean=}	force
+	*/
+	var sizeMidPanes = function (panes, skipCallback, force) {
+		if (!panes || panes == "all") panes = "east,west,center";
+
+		$.each(panes.split(","), function (i, pane) {
+			if (!$Ps[pane]) return; // NO PANE - skip
+			var 
+				o		= options[pane]
+			,	s		= state[pane]
+			,	$P		= $Ps[pane]
+			,	$R		= $Rs[pane]
+			,	isCenter= (pane=="center")
+			,	hasRoom	= true
+			,	CSS		= {}
+			,	d		= calcNewCenterPaneDims()
+			;
+			// update pane-state dimensions
+			$.extend(s, getElemDims($P));
+
+			if (pane == "center") {
+				if (!force && s.isVisible && d.width == s.outerWidth && d.height == s.outerHeight)
+					return true; // SKIP - pane already the correct size
+				// set state for makePaneFit() logic
+				$.extend(s, cssMinDims(pane), {
+					maxWidth:		d.width
+				,	maxHeight:		d.height
+				});
+				CSS = d;
+				// convert OUTER width/height to CSS width/height 
+				CSS.width	= cssW(pane, d.width);
+				CSS.height	= cssH(pane, d.height);
+				hasRoom		= CSS.width > 0 && CSS.height > 0;
+
+				// during layout init, try to shrink east/west panes to make room for center
+				if (!hasRoom && !state.initialized && o.minWidth > 0) {
+					var
+						reqPx	= o.minWidth - s.outerWidth
+					,	minE	= options.east.minSize || 0
+					,	minW	= options.west.minSize || 0
+					,	sizeE	= state.east.size
+					,	sizeW	= state.west.size
+					,	newE	= sizeE
+					,	newW	= sizeW
+					;
+					if (reqPx > 0 && state.east.isVisible && sizeE > minE) {
+						newE = max( sizeE-minE, sizeE-reqPx );
+						reqPx -= sizeE-newE;
+					}
+					if (reqPx > 0 && state.west.isVisible && sizeW > minW) {
+						newW = max( sizeW-minW, sizeW-reqPx );
+						reqPx -= sizeW-newW;
+					}
+					// IF we found enough extra space, then resize the border panes as calculated
+					if (reqPx == 0) {
+						if (sizeE != minE)
+							sizePane('east', newE, true); // true = skipCallback - initPanes will handle when done
+						if (sizeW != minW)
+							sizePane('west', newW, true);
+						// now start over!
+						sizeMidPanes('center', skipCallback, force);
+						return; // abort this loop
+					}
+				}
+			}
+			else { // for east and west, set only the height, which is same as center height
+				// set state.min/maxWidth/Height for makePaneFit() logic
+				if (s.isVisible && !s.noVerticalRoom)
+					$.extend(s, getElemDims($P), cssMinDims(pane))
+				if (!force && !s.noVerticalRoom && d.height == s.outerHeight)
+					return true; // SKIP - pane already the correct size
+				CSS.top			= d.top;
+				CSS.bottom		= d.bottom;
+				CSS.height		= cssH(pane, d.height);
+				s.maxHeight		= max(0, CSS.height);
+				hasRoom			= (s.maxHeight > 0);
+				if (!hasRoom) s.noVerticalRoom = true; // makePaneFit() logic
+			}
+
+			if (hasRoom) {
+				// resizeAll passes skipCallback because it triggers callbacks after ALL panes are resized
+				if (!skipCallback && state.initialized)
+					_execCallback(pane, o.onresize_start);
+
+				$P.css(CSS); // apply the CSS to pane
+				if (s.isVisible) {
+					$.extend(s, getElemDims($P)); // update pane dimensions
+					if (s.noRoom) makePaneFit(pane); // will re-open/show auto-closed/hidden pane
+					if (state.initialized) sizeContent(pane); // also resize the contents, if exists
+				}
+			}
+			else if (!s.noRoom && s.isVisible) // no room for pane
+				makePaneFit(pane); // will hide or close pane
+
+			/*
+			* Extra CSS for IE6 or IE7 in Quirks-mode - add 'width' to NORTH/SOUTH panes
+			* Normally these panes have only 'left' & 'right' positions so pane auto-sizes
+			* ALSO required when pane is an IFRAME because will NOT default to 'full width'
+			*/
+			if (pane == "center") { // finished processing midPanes
+				var b = state.browser;
+				var fix = b.isIE6 || (b.msie && !b.boxModel);
+				if ($Ps.north && (fix || state.north.tagName=="IFRAME")) 
+					$Ps.north.css("width", cssW($Ps.north, sC.innerWidth));
+				if ($Ps.south && (fix || state.south.tagName=="IFRAME"))
+					$Ps.south.css("width", cssW($Ps.south, sC.innerWidth));
+			}
+
+			// resizeAll passes skipCallback because it triggers callbacks after ALL panes are resized
+			if (!skipCallback && state.initialized && s.isVisible) {
+				_execCallback(pane, o.onresize_end || o.onresize);
+				resizeNestedLayout(pane);
+			}
+		});
+	};
+
+
+	/**
+	* @see  window.onresize(), callbacks or custom code
+	*/
+	var resizeAll = function () {
+		var
+			oldW	= sC.innerWidth
+		,	oldH	= sC.innerHeight
+		;
+		$.extend( state.container, getElemDims( $Container ) ); // UPDATE container dimensions
+		if (!sC.outerHeight) return; // cannot size layout when 'container' is hidden or collapsed
+
+		// onresizeall_start will CANCEL resizing if returns false
+		// state.container has already been set, so user can access this info for calcuations
+		if (false === _execCallback(null, options.onresizeall_start)) return false;
+
+		var
+			// see if container is now 'smaller' than before
+			shrunkH	= (sC.innerHeight < oldH)
+		,	shrunkW	= (sC.innerWidth < oldW)
+		,	$P, o, s, dir
+		;
+		// NOTE special order for sizing: S-N-E-W
+		$.each(["south","north","east","west"], function (i, pane) {
+			if (!$Ps[pane]) return; // no pane - SKIP
+			s	= state[pane];
+			o	= options[pane];
+			dir	= _c[pane].dir;
+
+			if (o.autoResize && s.size != o.size) // resize pane to original size set in options
+				sizePane(pane, o.size, true, true); // true=skipCallback, true=forceResize
+			else {
+				setSizeLimits(pane);
+				makePaneFit(pane, false, true, true); // true=skipCallback, true=forceResize
+			}
+		});
+
+		sizeMidPanes("all", true, true); // true=skipCallback, true=forceResize
+		sizeHandles("all"); // reposition the toggler elements
+
+		// trigger all individual pane callbacks AFTER layout has finished resizing
+		o = options; // reuse alias
+		$.each(_c.allPanes.split(","), function (i, pane) {
+			$P = $Ps[pane];
+			if (!$P) return; // SKIP
+			if (state[pane].isVisible) // undefined for non-existent panes
+				_execCallback(pane, o[pane].onresize_end || o[pane].onresize); // callback - if exists
+			resizeNestedLayout(pane);
+		});
+
+		_execCallback(null, o.onresizeall_end || o.onresizeall); // onresizeall callback, if exists
+	};
+
+
+	/**
+	* Whenever a pane resizes or opens that has a nested layout, trigger resizeAll
+	*
+	* @param {string}		pane		The pane just resized or opened
+	*/
+	var resizeNestedLayout = function (pane) {
+		var
+			$P	= $Ps[pane]
+		,	$C	= $Cs[pane]
+		,	d	= "layoutContainer"
+		;
+		if (options[pane].resizeNestedLayout) {
+			if ($P.data( d ))
+				$P.layout().resizeAll();
+			else if ($C && $C.data( d ))
+				$C.layout().resizeAll();
+		}
+	};
+
+
+	/**
+	* IF pane has a content-div, then resize all elements inside pane to fit pane-height
+	*
+	* @param {string=}		panes		The pane(s) being resized
+	* @param {boolean=}	remeasure	Should the content (header/footer) be remeasured?
+	*/
+	var sizeContent = function (panes, remeasure) {
+		if (!panes || panes == "all") panes = _c.allPanes;
+		$.each(panes.split(","), function (idx, pane) {
+			var
+				$P	= $Ps[pane]
+			,	$C	= $Cs[pane]
+			,	o	= options[pane]
+			,	s	= state[pane]
+			,	m	= s.content // m = measurements
+			;
+			if (!$P || !$C || !$P.is(":visible")) return true; // NOT VISIBLE - skip
+
+			// onsizecontent_start will CANCEL resizing if returns false
+			if (false === _execCallback(null, o.onsizecontent_start)) return;
+
+			// skip re-measuring offsets if live-resizing
+			if (!_c.isLayoutBusy || m.top == undefined || remeasure || o.resizeContentWhileDragging) {
+				_measure();
+				// if any footers are below pane-bottom, they may not measure correctly,
+				// so allow pane overflow and re-measure
+				if (m.hiddenFooters > 0 && $P.css("overflow") == "hidden") {
+					$P.css("overflow", "visible");
+					_measure(); // remeasure while overflowing
+					$P.css("overflow", "hidden");
+				}
+			}
+			// NOTE: spaceAbove/Below *includes* the pane's paddingTop/Bottom, but not pane.borders
+			var newH = s.innerHeight - (m.spaceAbove - s.css.paddingTop) - (m.spaceBelow - s.css.paddingBottom);
+			if (!$C.is(":visible") || m.height != newH) {
+				// size the Content element to fit new pane-size - will autoHide if not enough room
+				setOuterHeight($C, newH, true); // true=autoHide
+				m.height = newH; // save new height
+			};
+
+			if (state.initialized) {
+				_execCallback(pane, o.onsizecontent_end || o.onsizecontent);
+				resizeNestedLayout(pane);
+			}
+
+
+			function _below ($E) {
+				return max(s.css.paddingBottom, (parseInt($E.css("marginBottom"), 10) || 0));
+			};
+
+			function _measure () {
+				var
+					ignore	= options[pane].contentIgnoreSelector
+				,	$Fs		= $C.nextAll().not(ignore || ':lt(0)') // not :lt(0) = ALL
+				,	$Fs_vis	= $Fs.filter(':visible')
+				,	$F		= $Fs_vis.filter(':last')
+				;
+				m = {
+					top:			$C[0].offsetTop
+				,	height:			$C.outerHeight()
+				,	numFooters:		$Fs.length
+				,	hiddenFooters:	$Fs.length - $Fs_vis.length
+				,	spaceBelow:		0 // correct if no content footer ($E)
+				}
+					m.spaceAbove	= m.top; // just for state - not used in calc
+					m.bottom		= m.top + m.height;
+				if ($F.length)
+					//spaceBelow = (LastFooter.top + LastFooter.height) [footerBottom] - Content.bottom + max(LastFooter.marginBottom, pane.paddingBotom)
+					m.spaceBelow = ($F[0].offsetTop + $F.outerHeight()) - m.bottom + _below($F);
+				else // no footer - check marginBottom on Content element itself
+					m.spaceBelow = _below($C);
+			};
+		});
+	};
+
+
+	/**
+	* Called every time a pane is opened, closed, or resized to slide the togglers to 'center' and adjust their length if necessary
+	*
+	* @see  initHandles(), open(), close(), resizeAll()
+	* @param {string=}		panes		The pane(s) being resized
+	*/
+	var sizeHandles = function (panes) {
+		if (!panes || panes == "all") panes = _c.borderPanes;
+
+		$.each(panes.split(","), function (i, pane) {
+			var 
+				o	= options[pane]
+			,	s	= state[pane]
+			,	$P	= $Ps[pane]
+			,	$R	= $Rs[pane]
+			,	$T	= $Ts[pane]
+			,	$TC
+			;
+			if (!$P || !$R) return;
+
+			var
+				dir			= _c[pane].dir
+			,	_state		= (s.isClosed ? "_closed" : "_open")
+			,	spacing		= o["spacing"+ _state]
+			,	togAlign	= o["togglerAlign"+ _state]
+			,	togLen		= o["togglerLength"+ _state]
+			,	paneLen
+			,	offset
+			,	CSS = {}
+			;
+
+			if (spacing == 0) {
+				$R.hide();
+				return;
+			}
+			else if (!s.noRoom && !s.isHidden) // skip if resizer was hidden for any reason
+				$R.show(); // in case was previously hidden
+
+			// Resizer Bar is ALWAYS same width/height of pane it is attached to
+			if (dir == "horz") { // north/south
+				paneLen = $P.outerWidth(); // s.outerWidth || 
+				s.resizerLength = paneLen;
+				$R.css({
+					width:	max(1, cssW($R, paneLen)) // account for borders & padding
+				,	height:	max(0, cssH($R, spacing)) // ditto
+				,	left:	_cssNum($P, "left")
+				});
+			}
+			else { // east/west
+				paneLen = $P.outerHeight(); // s.outerHeight || 
+				s.resizerLength = paneLen;
+				$R.css({
+					height:	max(1, cssH($R, paneLen)) // account for borders & padding
+				,	width:	max(0, cssW($R, spacing)) // ditto
+				,	top:	sC.insetTop + getPaneSize("north", true) // TODO: what if no North pane?
+				//,	top:	_cssNum($Ps["center"], "top")
+				});
+			}
+
+			// remove hover classes
+			removeHover( o, $R );
+
+			if ($T) {
+				if (togLen == 0 || (s.isSliding && o.hideTogglerOnSlide)) {
+					$T.hide(); // always HIDE the toggler when 'sliding'
+					return;
+				}
+				else
+					$T.show(); // in case was previously hidden
+
+				if (!(togLen > 0) || togLen == "100%" || togLen > paneLen) {
+					togLen = paneLen;
+					offset = 0;
+				}
+				else { // calculate 'offset' based on options.PANE.togglerAlign_open/closed
+					if (isStr(togAlign)) {
+						switch (togAlign) {
+							case "top":
+							case "left":	offset = 0;
+											break;
+							case "bottom":
+							case "right":	offset = paneLen - togLen;
+											break;
+							case "middle":
+							case "center":
+							default:		offset = Math.floor((paneLen - togLen) / 2); // 'default' catches typos
+						}
+					}
+					else { // togAlign = number
+						var x = parseInt(togAlign, 10); //
+						if (togAlign >= 0) offset = x;
+						else offset = paneLen - togLen + x; // NOTE: x is negative!
+					}
+				}
+
+				if (dir == "horz") { // north/south
+					var width = cssW($T, togLen);
+					$T.css({
+						width:	max(0, width)  // account for borders & padding
+					,	height:	max(1, cssH($T, spacing)) // ditto
+					,	left:	offset // TODO: VERIFY that toggler  positions correctly for ALL values
+					,	top:	0
+					});
+					// CENTER the toggler content SPAN
+					$T.children(".content").each(function(){
+						$TC = $(this);
+						$TC.css("marginLeft", Math.floor((width-$TC.outerWidth())/2)); // could be negative
+					});
+				}
+				else { // east/west
+					var height = cssH($T, togLen);
+					$T.css({
+						height:	max(0, height)  // account for borders & padding
+					,	width:	max(1, cssW($T, spacing)) // ditto
+					,	top:	offset // POSITION the toggler
+					,	left:	0
+					});
+					// CENTER the toggler content SPAN
+					$T.children(".content").each(function(){
+						$TC = $(this);
+						$TC.css("marginTop", Math.floor((height-$TC.outerHeight())/2)); // could be negative
+					});
+				}
+
+				// remove ALL hover classes
+				removeHover( 0, $T );
+			}
+
+			// DONE measuring and sizing this resizer/toggler, so can be 'hidden' now
+			if (!state.initialized && o.initHidden) {
+				$R.hide();
+				if ($T) $T.hide();
+			}
+		});
+	};
+
+
+	var enableClosable = function (pane) {
+		var $T = $Ts[pane], o = options[pane];
+		if (!$T) return;
+		o.closable = true;
+		$T	.bind("click."+ sID, function(evt){ toggle(pane); evt.stopPropagation(); })
+			.bind("mouseenter."+ sID, addHover)
+			.bind("mouseleave."+ sID, removeHover)
+			.css("visibility", "visible")
+			.css("cursor", "pointer")
+			.attr("title", state[pane].isClosed ? o.togglerTip_closed : o.togglerTip_open) // may be blank
+			.show()
+		;
+	};
+
+	var disableClosable = function (pane, hide) {
+		var $T = $Ts[pane];
+		if (!$T) return;
+		options[pane].closable = false;
+		// is closable is disable, then pane MUST be open!
+		if (state[pane].isClosed) open(pane, false, true);
+		$T	.unbind("."+ sID)
+			.css("visibility", hide ? "hidden" : "visible") // instead of hide(), which creates logic issues
+			.css("cursor", "default")
+			.attr("title", "")
+		;
+	};
+
+
+	var enableSlidable = function (pane) {
+		var $R = $Rs[pane], o = options[pane];
+		if (!$R || !$R.data('draggable')) return;
+		options[pane].slidable = true; 
+		if (s.isClosed)
+			bindStartSlidingEvent(pane, true);
+	};
+
+	var disableSlidable = function (pane) {
+		var $R = $Rs[pane];
+		if (!$R) return;
+		options[pane].slidable = false; 
+		if (state[pane].isSliding)
+			close(pane, false, true);
+		else {
+			bindStartSlidingEvent(pane, false);
+			$R	.css("cursor", "default")
+				.attr("title", "")
+			;
+			removeHover(null, $R[0]); // in case currently hovered
+		}
+	};
+
+
+	var enableResizable = function (pane) {
+		var $R = $Rs[pane], o = options[pane];
+		if (!$R || !$R.data('draggable')) return;
+		o.resizable = true; 
+		$R	.draggable("enable")
+			.bind("mouseenter."+ sID, onResizerEnter)
+			.bind("mouseleave."+ sID, onResizerLeave)
+		;
+		if (!state[pane].isClosed)
+			$R	.css("cursor", o.resizerCursor)
+			 	.attr("title", o.resizerTip)
+			;
+	};
+
+	var disableResizable = function (pane) {
+		var $R = $Rs[pane];
+		if (!$R || !$R.data('draggable')) return;
+		options[pane].resizable = false; 
+		$R	.draggable("disable")
+			.unbind("."+ sID)
+			.css("cursor", "default")
+			.attr("title", "")
+		;
+		removeHover(null, $R[0]); // in case currently hovered
+	};
+
+
+	/**
+	* Move a pane from source-side (eg, west) to target-side (eg, east)
+	* If pane exists on target-side, move that to source-side, ie, 'swap' the panes
+	*
+	* @param {string}	pane1		The pane/edge being swapped
+	* @param {string}	pane2		ditto
+	*/
+	var swapPanes = function (pane1, pane2) {
+		// change state.edge NOW so callbacks can know where pane is headed...
+		state[pane1].edge = pane2;
+		state[pane2].edge = pane1;
+		// run these even if NOT state.initialized
+		var cancelled = false;
+		if (false === _execCallback(pane1, options[pane1].onswap_start)) cancelled = true;
+		if (!cancelled && false === _execCallback(pane2, options[pane2].onswap_start)) cancelled = true;
+		if (cancelled) {
+			state[pane1].edge = pane1; // reset
+			state[pane2].edge = pane2;
+			return;
+		}
+
+		var
+			oPane1	= copy( pane1 )
+		,	oPane2	= copy( pane2 )
+		,	sizes	= {}
+		;
+		sizes[pane1] = oPane1 ? oPane1.state.size : 0;
+		sizes[pane2] = oPane2 ? oPane2.state.size : 0;
+
+		// clear pointers & state
+		$Ps[pane1] = false; 
+		$Ps[pane2] = false;
+		state[pane1] = {};
+		state[pane2] = {};
+		
+		// ALWAYS remove the resizer & toggler elements
+		if ($Ts[pane1]) $Ts[pane1].remove();
+		if ($Ts[pane2]) $Ts[pane2].remove();
+		if ($Rs[pane1]) $Rs[pane1].remove();
+		if ($Rs[pane2]) $Rs[pane2].remove();
+		$Rs[pane1] = $Rs[pane2] = $Ts[pane1] = $Ts[pane2] = false;
+
+		// transfer element pointers and data to NEW Layout keys
+		move( oPane1, pane2 );
+		move( oPane2, pane1 );
+
+		// cleanup objects
+		oPane1 = oPane2 = sizes = null;
+
+		// make panes 'visible' again
+		if ($Ps[pane1]) $Ps[pane1].css(_c.visible);
+		if ($Ps[pane2]) $Ps[pane2].css(_c.visible);
+
+		// fix any size discrepancies caused by swap
+		resizeAll();
+
+		// run these even if NOT state.initialized
+		_execCallback(pane1, options[pane1].onswap_end || options[pane1].onswap);
+		_execCallback(pane2, options[pane2].onswap_end || options[pane2].onswap);
+
+		return;
+
+		function copy (n) { // n = pane
+			var
+				$P	= $Ps[n]
+			,	$C	= $Cs[n]
+			;
+			return !$P ? false : {
+				pane:		n
+			,	P:			$P ? $P[0] : false
+			,	C:			$C ? $C[0] : false
+			,	state:		$.extend({}, state[n])
+			,	options:	$.extend({}, options[n])
+			}
+		};
+
+		function move (oPane, pane) {
+			if (!oPane) return;
+			var
+				P		= oPane.P
+			,	C		= oPane.C
+			,	oldPane = oPane.pane
+			,	c		= _c[pane]
+			,	side	= c.side.toLowerCase()
+			,	inset	= "inset"+ c.side
+			//	save pane-options that should be retained
+			,	s		= $.extend({}, state[pane])
+			,	o		= options[pane]
+			//	RETAIN side-specific FX Settings - more below
+			,	fx		= { resizerCursor: o.resizerCursor }
+			,	re, size, pos
+			;
+			$.each("fxName,fxSpeed,fxSettings".split(","), function (i, k) {
+				fx[k] = o[k];
+				fx[k +"_open"]  = o[k +"_open"];
+				fx[k +"_close"] = o[k +"_close"];
+			});
+
+			// update object pointers and attributes
+			$Ps[pane] = $(P)
+				.data("layoutEdge", pane)
+				.css(_c.hidden)
+				.css(c.cssReq)
+			;
+			$Cs[pane] = C ? $(C) : false;
+
+			// set options and state
+			options[pane]	= $.extend({}, oPane.options, fx);
+			state[pane]		= $.extend({}, oPane.state);
+
+			// change classNames on the pane, eg: ui-layout-pane-east ==> ui-layout-pane-west
+			re = new RegExp(o.paneClass +"-"+ oldPane, "g");
+			P.className = P.className.replace(re, o.paneClass +"-"+ pane);
+
+			// ALWAYS regenerate the resizer & toggler elements
+			initHandles(pane); // create the required resizer & toggler
+
+			// if moving to different orientation, then keep 'target' pane size
+			if (c.dir != _c[oldPane].dir) {
+				size = sizes[pane] || 0;
+				setSizeLimits(pane); // update pane-state
+				size = max(size, state[pane].minSize);
+				// use manualSizePane to disable autoResize - not useful after panes are swapped
+				manualSizePane(pane, size, true); // true = skipCallback
+			}
+			else // move the resizer here
+				$Rs[pane].css(side, sC[inset] + (state[pane].isVisible ? getPaneSize(pane) : 0));
+
+
+			// ADD CLASSNAMES & SLIDE-BINDINGS
+			if (oPane.state.isVisible && !s.isVisible)
+				setAsOpen(pane, true); // true = skipCallback
+			else {
+				setAsClosed(pane);
+				bindStartSlidingEvent(pane, true); // will enable events IF option is set
+			}
+
+			// DESTROY the object
+			oPane = null;
+		};
+	};
+
+
+	/**
+	* Capture keys when enableCursorHotkey - toggle pane if hotkey pressed
+	*
+	* @see  document.keydown()
+	*/
+	function keyDown (evt) {
+		if (!evt) return true;
+		var code = evt.keyCode;
+		if (code < 33) return true; // ignore special keys: ENTER, TAB, etc
+
+		var
+			PANE = {
+				38: "north" // Up Cursor	- $.ui.keyCode.UP
+			,	40: "south" // Down Cursor	- $.ui.keyCode.DOWN
+			,	37: "west"  // Left Cursor	- $.ui.keyCode.LEFT
+			,	39: "east"  // Right Cursor	- $.ui.keyCode.RIGHT
+			}
+		,	ALT		= evt.altKey // no worky!
+		,	SHIFT	= evt.shiftKey
+		,	CTRL	= evt.ctrlKey
+		,	CURSOR	= (CTRL && code >= 37 && code <= 40)
+		,	o, k, m, pane
+		;
+
+		if (CURSOR && options[PANE[code]].enableCursorHotkey) // valid cursor-hotkey
+			pane = PANE[code];
+		else if (CTRL || SHIFT) // check to see if this matches a custom-hotkey
+			$.each(_c.borderPanes.split(","), function (i, p) { // loop each pane to check its hotkey
+				o = options[p];
+				k = o.customHotkey;
+				m = o.customHotkeyModifier; // if missing or invalid, treated as "CTRL+SHIFT"
+				if ((SHIFT && m=="SHIFT") || (CTRL && m=="CTRL") || (CTRL && SHIFT)) { // Modifier matches
+					if (k && code == (isNaN(k) || k <= 9 ? k.toUpperCase().charCodeAt(0) : k)) { // Key matches
+						pane = p;
+						return false; // BREAK
+					}
+				}
+			});
+
+		// validate pane
+		if (!pane || !$Ps[pane] || !options[pane].closable || state[pane].isHidden)
+			return true;
+
+		toggle(pane);
+
+		evt.stopPropagation();
+		evt.returnValue = false; // CANCEL key
+		return false;
+	};
+
+
+/*
+ * ######################################
+ *      UTILITY METHODS
+ *   called externally or by initButtons
+ * ######################################
+ */
+
+	/**
+	* Change/reset a pane's overflow setting & zIndex to allow popups/drop-downs to work
+	*
+	* @param {Object=}   el		(optional) Can also be 'bound' to a click, mouseOver, or other event
+	*/
+	function allowOverflow (el) {
+		if (this && this.tagName) el = this; // BOUND to element
+		var $P;
+		if (isStr(el))
+			$P = $Ps[el];
+		else if ($(el).data("layoutRole"))
+			$P = $(el);
+		else
+			$(el).parents().each(function(){
+				if ($(this).data("layoutRole")) {
+					$P = $(this);
+					return false; // BREAK
+				}
+			});
+		if (!$P || !$P.length) return; // INVALID
+
+		var
+			pane	= $P.data("layoutEdge")
+		,	s		= state[pane]
+		;
+
+		// if pane is already raised, then reset it before doing it again!
+		// this would happen if allowOverflow is attached to BOTH the pane and an element 
+		if (s.cssSaved)
+			resetOverflow(pane); // reset previous CSS before continuing
+
+		// if pane is raised by sliding or resizing, or it's closed, then abort
+		if (s.isSliding || s.isResizing || s.isClosed) {
+			s.cssSaved = false;
+			return;
+		}
+
+		var
+			newCSS	= { zIndex: (_c.zIndex.pane_normal + 2) }
+		,	curCSS	= {}
+		,	of		= $P.css("overflow")
+		,	ofX		= $P.css("overflowX")
+		,	ofY		= $P.css("overflowY")
+		;
+		// determine which, if any, overflow settings need to be changed
+		if (of != "visible") {
+			curCSS.overflow = of;
+			newCSS.overflow = "visible";
+		}
+		if (ofX && !ofX.match(/visible|auto/)) {
+			curCSS.overflowX = ofX;
+			newCSS.overflowX = "visible";
+		}
+		if (ofY && !ofY.match(/visible|auto/)) {
+			curCSS.overflowY = ofX;
+			newCSS.overflowY = "visible";
+		}
+
+		// save the current overflow settings - even if blank!
+		s.cssSaved = curCSS;
+
+		// apply new CSS to raise zIndex and, if necessary, make overflow 'visible'
+		$P.css( newCSS );
+
+		// make sure the zIndex of all other panes is normal
+		$.each(_c.allPanes.split(","), function(i, p) {
+			if (p != pane) resetOverflow(p);
+		});
+
+	};
+
+	function resetOverflow (el) {
+		if (this && this.tagName) el = this; // BOUND to element
+		var $P;
+		if (isStr(el))
+			$P = $Ps[el];
+		else if ($(el).data("layoutRole"))
+			$P = $(el);
+		else
+			$(el).parents().each(function(){
+				if ($(this).data("layoutRole")) {
+					$P = $(this);
+					return false; // BREAK
+				}
+			});
+		if (!$P || !$P.length) return; // INVALID
+
+		var
+			pane	= $P.data("layoutEdge")
+		,	s		= state[pane]
+		,	CSS		= s.cssSaved || {}
+		;
+		// reset the zIndex
+		if (!s.isSliding && !s.isResizing)
+			$P.css("zIndex", _c.zIndex.pane_normal);
+
+		// reset Overflow - if necessary
+		$P.css( CSS );
+
+		// clear var
+		s.cssSaved = false;
+	};
+
+
+	/**
+	* Helper function to validate params received by addButton utilities
+	*
+	* Two classes are added to the element, based on the buttonClass...
+	* The type of button is appended to create the 2nd className:
+	*  - ui-layout-button-pin
+	*  - ui-layout-pane-button-toggle
+	*  - ui-layout-pane-button-open
+	*  - ui-layout-pane-button-close
+	*
+	* @param  {(string|!Object)}	selector	jQuery selector (or element) for button, eg: ".ui-layout-north .toggle-button"
+	* @param  {string}   			pane 		Name of the pane the button is for: 'north', 'south', etc.
+	* @return {Array.<Object>}		If both params valid, the element matching 'selector' in a jQuery wrapper - otherwise returns null
+	*/
+	function getBtn (selector, pane, action) {
+		var $E	= $(selector);
+		if (!$E.length) // element not found
+			alert(lang.errButton + lang.selector +": "+ selector);
+		else if (_c.borderPanes.indexOf(pane) == -1) // invalid 'pane' sepecified
+			alert(lang.errButton + lang.Pane.toLowerCase() +": "+ pane);
+		else { // VALID
+			var btn = options[pane].buttonClass +"-"+ action;
+			$E
+				.addClass( btn +" "+ btn +"-"+ pane )
+				.data("layoutName", options.name) // add layout identifier - even if blank!
+			;
+			return $E;
+		}
+		return null;  // INVALID
+	};
+
+
+	/**
+	* NEW syntax for binding layout-buttons - will eventually replace addToggleBtn, addOpenBtn, etc.
+	*
+	* @param {(string|!Object)}	selector	jQuery selector (or element) for button, eg: ".ui-layout-north .toggle-button"
+	* @param {string}			action
+	* @param {string}			pane
+	*/
+	function bindButton (selector, action, pane) {
+		switch (action.toLowerCase()) {
+			case "toggle":			addToggleBtn(selector, pane);		break;	
+			case "open":			addOpenBtn(selector, pane);			break;
+			case "close":			addCloseBtn(selector, pane);		break;
+			case "pin":				addPinBtn(selector, pane);			break;
+			case "toggle-slide":	addToggleBtn(selector, pane, true);	break;	
+			case "open-slide":		addOpenBtn(selector, pane, true);	break;
+		}
+	};
+
+	/**
+	* Add a custom Toggler button for a pane
+	*
+	* @param {(string|!Object)}	selector	jQuery selector (or element) for button, eg: ".ui-layout-north .toggle-button"
+	* @param {string}  			pane 		Name of the pane the button is for: 'north', 'south', etc.
+	* @param {boolean=}			slide 		true = slide-open, false = pin-open
+	*/
+	function addToggleBtn (selector, pane, slide) {
+		var $E = getBtn(selector, pane, "toggle");
+		if ($E)
+			$E.click(function (evt) {
+				toggle(pane, !!slide);
+				evt.stopPropagation();
+			});
+	};
+
+	/**
+	* Add a custom Open button for a pane
+	*
+	* @param {(string|!Object)}	selector	jQuery selector (or element) for button, eg: ".ui-layout-north .toggle-button"
+	* @param {string}			pane 		Name of the pane the button is for: 'north', 'south', etc.
+	* @param {boolean=}			slide 		true = slide-open, false = pin-open
+	*/
+	function addOpenBtn (selector, pane, slide) {
+		var $E = getBtn(selector, pane, "open");
+		if ($E)
+			$E
+				.attr("title", lang.Open)
+				.click(function (evt) {
+					open(pane, !!slide);
+					evt.stopPropagation();
+				})
+			;
+	};
+
+	/**
+	* Add a custom Close button for a pane
+	*
+	* @param {(string|!Object)}	selector	jQuery selector (or element) for button, eg: ".ui-layout-north .toggle-button"
+	* @param {string}   		pane 		Name of the pane the button is for: 'north', 'south', etc.
+	*/
+	function addCloseBtn (selector, pane) {
+		var $E = getBtn(selector, pane, "close");
+		if ($E)
+			$E
+				.attr("title", lang.Close)
+				.click(function (evt) {
+					close(pane);
+					evt.stopPropagation();
+				})
+			;
+	};
+
+	/**
+	* addPinBtn
+	*
+	* Add a custom Pin button for a pane
+	*
+	* Four classes are added to the element, based on the paneClass for the associated pane...
+	* Assuming the default paneClass and the pin is 'up', these classes are added for a west-pane pin:
+	*  - ui-layout-pane-pin
+	*  - ui-layout-pane-west-pin
+	*  - ui-layout-pane-pin-up
+	*  - ui-layout-pane-west-pin-up
+	*
+	* @param {(string|!Object)}	selector	jQuery selector (or element) for button, eg: ".ui-layout-north .toggle-button"
+	* @param {string}   		pane 		Name of the pane the pin is for: 'north', 'south', etc.
+	*/
+	function addPinBtn (selector, pane) {
+		var $E = getBtn(selector, pane, "pin");
+		if ($E) {
+			var s = state[pane];
+			$E.click(function (evt) {
+				setPinState($(this), pane, (s.isSliding || s.isClosed));
+				if (s.isSliding || s.isClosed) open( pane ); // change from sliding to open
+				else close( pane ); // slide-closed
+				evt.stopPropagation();
+			});
+			// add up/down pin attributes and classes
+			setPinState($E, pane, (!s.isClosed && !s.isSliding));
+			// add this pin to the pane data so we can 'sync it' automatically
+			// PANE.pins key is an array so we can store multiple pins for each pane
+			_c[pane].pins.push( selector ); // just save the selector string
+		}
+	};
+
+	/**
+	* INTERNAL function to sync 'pin buttons' when pane is opened or closed
+	* Unpinned means the pane is 'sliding' - ie, over-top of the adjacent panes
+	*
+	* @see  open(), close()
+	* @param {string}	pane   These are the params returned to callbacks by layout()
+	* @param {boolean}	doPin  True means set the pin 'down', False means 'up'
+	*/
+	function syncPinBtns (pane, doPin) {
+		$.each(_c[pane].pins, function (i, selector) {
+			setPinState($(selector), pane, doPin);
+		});
+	};
+
+	/**
+	* Change the class of the pin button to make it look 'up' or 'down'
+	*
+	* @see  addPinBtn(), syncPinBtns()
+	* @param {Array.<Object>}	$Pin	The pin-span element in a jQuery wrapper
+	* @param {string}	pane	These are the params returned to callbacks by layout()
+	* @param {boolean}	doPin	true = set the pin 'down', false = set it 'up'
+	*/
+	function setPinState ($Pin, pane, doPin) {
+		var updown = $Pin.attr("pin");
+		if (updown && doPin == (updown=="down")) return; // already in correct state
+		var
+			pin		= options[pane].buttonClass +"-pin"
+		,	side	= pin +"-"+ pane
+		,	UP		= pin +"-up "+	side +"-up"
+		,	DN		= pin +"-down "+side +"-down"
+		;
+		$Pin
+			.attr("pin", doPin ? "down" : "up") // logic
+			.attr("title", doPin ? lang.Unpin : lang.Pin)
+			.removeClass( doPin ? UP : DN ) 
+			.addClass( doPin ? DN : UP ) 
+		;
+	};
+
+
+	/*
+	* LAYOUT STATE MANAGEMENT
+	*
+	* @example .layout({ cookie: { name: "myLayout", keys: "west.isClosed,east.isClosed" } })
+	* @example .layout({ cookie__name: "myLayout", cookie__keys: "west.isClosed,east.isClosed" })
+	* @example myLayout.getState( "west.isClosed,north.size,south.isHidden" );
+	* @example myLayout.saveCookie( "west.isClosed,north.size,south.isHidden", {expires: 7} );
+	* @example myLayout.deleteCookie();
+	* @example myLayout.loadCookie();
+	* @example var hSaved = myLayout.state.cookie;
+	*/
+
+	function isCookiesEnabled () {
+		// TODO: is the cookieEnabled property common enough to be useful???
+		return (navigator.cookieEnabled != 0);
+	};
+	
+	/**
+	* Read & return data from the cookie - as JSON
+	*
+	* @param {Object=}	opts
+	*/
+	function getCookie (opts) {
+		var
+			o		= $.extend( {}, options.cookie, opts || {} )
+		,	name	= o.name || options.name || "Layout"
+		,	c		= document.cookie
+		,	cs		= c ? c.split(';') : []
+		,	pair	// loop var
+		;
+		for (var i=0, n=cs.length; i < n; i++) {
+			pair = $.trim(cs[i]).split('='); // name=value pair
+			if (pair[0] == name) // found the layout cookie
+				// convert cookie string back to a hash
+				return decodeJSON( decodeURIComponent(pair[1]) );
+		}
+		return "";
+	};
+
+	/**
+	* Get the current layout state and save it to a cookie
+	*
+	* @param {(string|Array)=}	keys
+	* @param {Object=}	opts
+	*/
+	function saveCookie (keys, opts) {
+		var
+			o		= $.extend( {}, options.cookie, opts || {} )
+		,	name	= o.name || options.name || "Layout"
+		,	params	= ''
+		,	date	= ''
+		,	clear	= false
+		;
+		if (o.expires.toUTCString)
+			date = o.expires;
+		else if (typeof o.expires == 'number') {
+			date = new Date();
+			if (o.expires > 0)
+				date.setDate(date.getDate() + o.expires);
+			else {
+				date.setYear(1970);
+				clear = true;
+			}
+		}
+		if (date)		params += ';expires='+ date.toUTCString();
+		if (o.path)		params += ';path='+ o.path;
+		if (o.domain)	params += ';domain='+ o.domain;
+		if (o.secure)	params += ';secure';
+
+		if (clear) {
+			state.cookie = {}; // clear data
+			document.cookie = name +'='+ params; // expire the cookie
+		}
+		else {
+			state.cookie = getState(keys || o.keys); // read current panes-state
+			document.cookie = name +'='+ encodeURIComponent( encodeJSON(state.cookie) ) + params; // write cookie
+		}
+
+		return $.extend({}, state.cookie); // return COPY of state.cookie
+	};
+
+	/**
+	* Remove the state cookie
+	*/
+	function deleteCookie () {
+		saveCookie('', { expires: -1 });
+	};
+
+	/**
+	* Get data from the cookie and USE IT to loadState
+	*
+	* @param {Object=}	opts
+	*/
+	function loadCookie (opts) {
+		var o = getCookie(opts); // READ the cookie
+		if (o) {
+			state.cookie = $.extend({}, o); // SET state.cookie
+			loadState(o);	// LOAD the retrieved state
+		}
+		return o;
+	};
+
+	/**
+	* Update layout options from the cookie, if one exists
+	*
+	* @param {Object=}	opts
+	*/
+	function loadState (opts, animate) {
+		$.extend( true, options, opts ); // update layout options
+		// if layout has already been initialized, then UPDATE layout state
+		if (state.initialized) {
+			var pane, o, v, a = !animate;
+			$.each(_c.allPanes.split(","), function (idx, pane) {
+				o = opts[ pane ]; 
+				if (typeof o != 'object') return; // no key, continue
+				v = o.initHidden;
+				if (v === true)  hide(pane, a); 
+				if (v === false) show(pane, 0, a); 
+				v = o.size; 
+				if (v > 0) sizePane(pane, v); 
+				v = o.initClosed; 
+				if (v === true) close(pane, 0, a); 
+				if (v === false) open(pane, 0, a ); 
+			});
+		}
+	};
+
+	/**
+	* Get the *current layout state* and return it as a hash
+	*
+	* @param {(string|Array)=}	keys
+	*/
+	function getState (keys) {
+		var
+			data	= {}
+		,	alt		= { isClosed: 'initClosed', isHidden: 'initHidden' }
+		,	pair, pane, key, val
+		;
+		if (!keys) keys = options.cookie.keys; // if called by user
+		if ($.isArray(keys)) keys = keys.join(",");
+		// convert keys to an array and change delimiters from '__' to '.'
+		keys = keys.replace(/__/g, ".").split(',');
+		// loop keys and create a data hash
+		for (var i=0,n=keys.length; i < n; i++) {
+			pair = keys[i].split(".");
+			pane = pair[0];
+			key  = pair[1];
+			if (_c.allPanes.indexOf(pane) < 0) continue; // bad pane!
+			val = state[ pane ][ key ];
+			if (val == undefined) continue;
+			if (key=="isClosed" && state[pane]["isSliding"])
+				val = true; // if sliding, then *really* isClosed
+			( data[pane] || (data[pane]={}) )[ alt[key] ? alt[key] : key ] = val;
+		}
+		return data;
+	};
+
+	/**
+	* Stringify a JSON hash so can save in a cookie or db-field
+	*/
+	function encodeJSON (JSON) {
+		return parse( JSON );
+		function parse (h) {
+			var D=[], i=0, k, v, t; // k = key, v = value
+			for (k in h) {
+				v = h[k];
+				t = typeof v;
+				if (t == 'string')		// STRING - add quotes
+					v = '"'+ v +'"';
+				else if (t == 'object')	// SUB-KEY - recurse into it
+					v = parse(v);
+				D[i++] = '"'+ k +'":'+ v;
+			}
+			return "{"+ D.join(",") +"}";
+		};
+	};
+
+	/**
+	* Convert stringified JSON back to a hash object
+	*/
+	function decodeJSON (str) {
+		try { return window["eval"]("("+ str +")") || {}; }
+		catch (e) { return {}; }
+	};
+
+
+/*
+ * #####################
+ * CREATE/RETURN LAYOUT
+ * #####################
+ */
+
+	// validate that container exists
+	var $Container = $(this).eq(0); // FIRST matching Container element
+	if (!$Container.length) {
+		//alert( lang.errContainerMissing );
+		return null;
+	};
+	// Users retreive Instance of a layout with: $Container.layout() OR $Container.data("layout")
+	// return the Instance-pointer if layout has already been initialized
+	if ($Container.data("layoutContainer") && $Container.data("layout"))
+		return $Container.data("layout"); // cached pointer
+
+	// init global vars
+	var 
+		$Ps	= {} // Panes x5	- set in initPanes()
+	,	$Cs	= {} // Content x5	- set in initPanes()
+	,	$Rs	= {} // Resizers x4	- set in initHandles()
+	,	$Ts	= {} // Togglers x4	- set in initHandles()
+	//	aliases for code brevity
+	,	sC	= state.container // alias for easy access to 'container dimensions'
+	,	sID	= state.id // alias for unique layout ID/namespace - eg: "layout435"
+	;
+
+	// create Instance object to expose data & option Properties, and primary action Methods
+	var Instance = {
+		options:		options			// property - options hash
+	,	state:			state			// property - dimensions hash
+	,	container:		$Container		// property - object pointers for layout container
+	,	panes:			$Ps				// property - object pointers for ALL Panes: panes.north, panes.center
+	,	contents:		$Cs				// property - object pointers for ALL Content: content.north, content.center
+	,	resizers:		$Rs				// property - object pointers for ALL Resizers, eg: resizers.north
+	,	togglers:		$Ts				// property - object pointers for ALL Togglers, eg: togglers.north
+	,	toggle:			toggle			// method - pass a 'pane' ("north", "west", etc)
+	,	hide:			hide			// method - ditto
+	,	show:			show			// method - ditto
+	,	open:			open			// method - ditto
+	,	close:			close			// method - ditto
+	,	slideOpen:		slideOpen		// method - ditto
+	,	slideClose:		slideClose		// method - ditto
+	,	slideToggle:	slideToggle		// method - ditto
+	,	initContent:	initContent		// method - ditto
+	,	sizeContent:	sizeContent		// method - pass a 'pane'
+	,	sizePane:		manualSizePane	// method - pass a 'pane' AND an 'outer-size' in pixels or percent, or 'auto'
+	,	swapPanes:		swapPanes		// method - pass TWO 'panes' - will swap them
+	,	resizeAll:		resizeAll		// method - no parameters
+	,	destroy:		destroy			// method - no parameters
+	,	setSizeLimits:	setSizeLimits	// method - pass a 'pane' - update state min/max data
+	,	bindButton:		bindButton		// utility - pass element selector, 'action' and 'pane' (E, "toggle", "west")
+	,	addToggleBtn:	addToggleBtn	// utility - pass element selector and 'pane' (E, "west")
+	,	addOpenBtn:		addOpenBtn		// utility - ditto
+	,	addCloseBtn:	addCloseBtn		// utility - ditto
+	,	addPinBtn:		addPinBtn		// utility - ditto
+	,	allowOverflow:	allowOverflow	// utility - pass calling element (this)
+	,	resetOverflow:	resetOverflow	// utility - ditto
+	,	encodeJSON:		encodeJSON		// method - pass a JSON object
+	,	decodeJSON:		decodeJSON		// method - pass a string of encoded JSON
+	,	getState:		getState		// method - returns hash of current layout-state
+	,	getCookie:		getCookie		// method - update options from cookie - returns hash of cookie data
+	,	saveCookie:		saveCookie		// method - optionally pass keys-list and cookie-options (hash)
+	,	deleteCookie:	deleteCookie	// method
+	,	loadCookie:		loadCookie		// method - update options from cookie - returns hash of cookie data
+	,	loadState:		loadState		// method - pass a hash of state to use to update options
+	,	cssWidth:		cssW			// utility - pass element and target outerWidth
+	,	cssHeight:		cssH			// utility - ditto
+	,	enableClosable: enableClosable
+	,	disableClosable: disableClosable
+	,	enableSlidable: enableSlidable
+	,	disableSlidable: disableSlidable
+	,	enableResizable: enableResizable
+	,	disableResizable: disableResizable
+	};
+	// create the border layout NOW
+	_create();
+
+	// return the Instance object
+	return Instance;
+
+}
+})( jQuery );
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout.js	(revision 1516)
@@ -0,0 +1,2507 @@
+/*
+ * jquery.layout 1.2.0
+ *
+ * Copyright (c) 2008 
+ *   Fabrizio Balliano (http://www.fabrizioballiano.net)
+ *   Kevin Dalman (http://allpro.net)
+ *
+ * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
+ * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
+ *
+ * $Date: 2008-12-27 02:17:22 +0100 (sab, 27 dic 2008) $
+ * $Rev: 203 $
+ * 
+ * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars
+ */
+(function($) {
+
+$.fn.layout = function (opts) {
+
+/*
+ * ###########################
+ *   WIDGET CONFIG & OPTIONS
+ * ###########################
+ */
+
+	// DEFAULTS for options
+	var 
+		prefix = "ui-layout-" // prefix for ALL selectors and classNames
+	,	defaults = { //	misc default values
+			paneClass:				prefix+"pane"		// ui-layout-pane
+		,	resizerClass:			prefix+"resizer"	// ui-layout-resizer
+		,	togglerClass:			prefix+"toggler"	// ui-layout-toggler
+		,	togglerInnerClass:		prefix+""			// ui-layout-open / ui-layout-closed
+		,	buttonClass:			prefix+"button"		// ui-layout-button
+		,	contentSelector:		"."+prefix+"content"// ui-layout-content
+		,	contentIgnoreSelector:	"."+prefix+"ignore"	// ui-layout-mask 
+		}
+	;
+
+	// DEFAULT PANEL OPTIONS - CHANGE IF DESIRED
+	var options = {
+		name:						""			// FUTURE REFERENCE - not used right now
+	,	scrollToBookmarkOnLoad:		true		// after creating a layout, scroll to bookmark in URL (.../page.htm#myBookmark)
+	,	defaults: { // default options for 'all panes' - will be overridden by 'per-pane settings'
+			applyDefaultStyles: 	false		// apply basic styles directly to resizers & buttons? If not, then stylesheet must handle it
+		,	closable:				true		// pane can open & close
+		,	resizable:				true		// when open, pane can be resized 
+		,	slidable:				true		// when closed, pane can 'slide' open over other panes - closes on mouse-out
+		//,	paneSelector:			[ ]			// MUST be pane-specific!
+		,	contentSelector:		defaults.contentSelector	// INNER div/element to auto-size so only it scrolls, not the entire pane!
+		,	contentIgnoreSelector:	defaults.contentIgnoreSelector	// elem(s) to 'ignore' when measuring 'content'
+		,	paneClass:				defaults.paneClass		// border-Pane - default: 'ui-layout-pane'
+		,	resizerClass:			defaults.resizerClass	// Resizer Bar		- default: 'ui-layout-resizer'
+		,	togglerClass:			defaults.togglerClass	// Toggler Button	- default: 'ui-layout-toggler'
+		,	buttonClass:			defaults.buttonClass	// CUSTOM Buttons	- default: 'ui-layout-button-toggle/-open/-close/-pin'
+		,	resizerDragOpacity:		1			// option for ui.draggable
+		//,	resizerCursor:			""			// MUST be pane-specific - cursor when over resizer-bar
+		,	maskIframesOnResize:	true		// true = all iframes OR = iframe-selector(s) - adds masking-div during resizing/dragging
+		//,	size:					100			// inital size of pane - defaults are set 'per pane'
+		,	minSize:				0			// when manually resizing a pane
+		,	maxSize:				0			// ditto, 0 = no limit
+		,	spacing_open:			6			// space between pane and adjacent panes - when pane is 'open'
+		,	spacing_closed:			6			// ditto - when pane is 'closed'
+		,	togglerLength_open:		50			// Length = WIDTH of toggler button on north/south edges - HEIGHT on east/west edges
+		,	togglerLength_closed: 	50			// 100% OR -1 means 'full height/width of resizer bar' - 0 means 'hidden'
+		,	togglerAlign_open:		"center"	// top/left, bottom/right, center, OR...
+		,	togglerAlign_closed:	"center"	// 1 => nn = offset from top/left, -1 => -nn == offset from bottom/right
+		,	togglerTip_open:		"Close"		// Toggler tool-tip (title)
+		,	togglerTip_closed:		"Open"		// ditto
+		,	resizerTip:				"Resize"	// Resizer tool-tip (title)
+		,	sliderTip:				"Slide Open" // resizer-bar triggers 'sliding' when pane is closed
+		,	sliderCursor:			"pointer"	// cursor when resizer-bar will trigger 'sliding'
+		,	slideTrigger_open:		"click"		// click, dblclick, mouseover
+		,	slideTrigger_close:		"mouseout"	// click, mouseout
+		,	hideTogglerOnSlide:		false		// when pane is slid-open, should the toggler show?
+		,	togglerContent_open:	""			// text or HTML to put INSIDE the toggler
+		,	togglerContent_closed:	""			// ditto
+		,	showOverflowOnHover:	false		// will bind allowOverflow() utility to pane.onMouseOver
+		,	enableCursorHotkey:		true		// enabled 'cursor' hotkeys
+		//,	customHotkey:			""			// MUST be pane-specific - EITHER a charCode OR a character
+		,	customHotkeyModifier:	"SHIFT"		// either 'SHIFT', 'CTRL' or 'CTRL+SHIFT' - NOT 'ALT'
+		//	NOTE: fxSss_open & fxSss_close options (eg: fxName_open) are auto-generated if not passed
+		,	fxName:					"slide" 	// ('none' or blank), slide, drop, scale
+		,	fxSpeed:				null		// slow, normal, fast, 200, nnn - if passed, will OVERRIDE fxSettings.duration
+		,	fxSettings:				{}			// can be passed, eg: { easing: "easeOutBounce", duration: 1500 }
+		,	initClosed:				false		// true = init pane as 'closed'
+		,	initHidden: 			false 		// true = init pane as 'hidden' - no resizer or spacing
+		
+		/*	callback options do not have to be set - listed here for reference only
+		,	onshow_start:			""			// CALLBACK when pane STARTS to Show	- BEFORE onopen/onhide_start
+		,	onshow_end:				""			// CALLBACK when pane ENDS being Shown	- AFTER  onopen/onhide_end
+		,	onhide_start:			""			// CALLBACK when pane STARTS to Close	- BEFORE onclose_start
+		,	onhide_end:				""			// CALLBACK when pane ENDS being Closed	- AFTER  onclose_end
+		,	onopen_start:			""			// CALLBACK when pane STARTS to Open
+		,	onopen_end:				""			// CALLBACK when pane ENDS being Opened
+		,	onclose_start:			""			// CALLBACK when pane STARTS to Close
+		,	onclose_end:			""			// CALLBACK when pane ENDS being Closed
+		,	onresize_start:			""			// CALLBACK when pane STARTS to be ***MANUALLY*** Resized
+		,	onresize_end:			""			// CALLBACK when pane ENDS being Resized ***FOR ANY REASON***
+		*/
+		}
+	,	north: {
+			paneSelector:			"."+prefix+"north" // default = .ui-layout-north
+		,	size:					"auto"
+		,	resizerCursor:			"n-resize"
+		}
+	,	south: {
+			paneSelector:			"."+prefix+"south" // default = .ui-layout-south
+		,	size:					"auto"
+		,	resizerCursor:			"s-resize"
+		}
+	,	east: {
+			paneSelector:			"."+prefix+"east" // default = .ui-layout-east
+		,	size:					200
+		,	resizerCursor:			"e-resize"
+		}
+	,	west: {
+			paneSelector:			"."+prefix+"west" // default = .ui-layout-west
+		,	size:					200
+		,	resizerCursor:			"w-resize"
+		}
+	,	center: {
+			paneSelector:			"."+prefix+"center" // default = .ui-layout-center
+		}
+
+	};
+
+
+	var effects = { // LIST *PREDEFINED EFFECTS* HERE, even if effect has no settings
+		slide:	{
+			all:	{ duration:  "fast"	} // eg: duration: 1000, easing: "easeOutBounce"
+		,	north:	{ direction: "up"	}
+		,	south:	{ direction: "down"	}
+		,	east:	{ direction: "right"}
+		,	west:	{ direction: "left"	}
+		}
+	,	drop:	{
+			all:	{ duration:  "slow"	} // eg: duration: 1000, easing: "easeOutQuint"
+		,	north:	{ direction: "up"	}
+		,	south:	{ direction: "down"	}
+		,	east:	{ direction: "right"}
+		,	west:	{ direction: "left"	}
+		}
+	,	scale:	{
+			all:	{ duration:  "fast"	}
+		}
+	};
+
+
+	// STATIC, INTERNAL CONFIG - DO NOT CHANGE THIS!
+	var config = {
+		allPanes:		"north,south,east,west,center"
+	,	borderPanes:	"north,south,east,west"
+	,	zIndex: { // set z-index values here
+			resizer_normal:	1		// normal z-index for resizer-bars
+		,	pane_normal:	2		// normal z-index for panes
+		,	mask:			4		// overlay div used to mask pane(s) during resizing
+		,	sliding:		100		// applied to both the pane and its resizer when a pane is 'slid open'
+		,	resizing:		10000	// applied to the CLONED resizer-bar when being 'dragged'
+		,	animation:		10000	// applied to the pane when being animated - not applied to the resizer
+		}
+	,	resizers: {
+			cssReq: {
+				position: 	"absolute"
+			,	padding: 	0
+			,	margin: 	0
+			,	fontSize:	"1px"
+			,	textAlign:	"left" // to counter-act "center" alignment!
+			,	overflow: 	"hidden" // keep toggler button from overflowing
+			,	zIndex: 	1
+			}
+		,	cssDef: { // DEFAULT CSS - applied if: options.PANE.applyDefaultStyles=true
+				background: "#DDD"
+			,	border:		"none"
+			}
+		}
+	,	togglers: {
+			cssReq: {
+				position: 	"absolute"
+			,	display: 	"block"
+			,	padding: 	0
+			,	margin: 	0
+			,	overflow:	"hidden"
+			,	textAlign:	"center"
+			,	fontSize:	"1px"
+			,	cursor: 	"pointer"
+			,	zIndex: 	1
+			}
+		,	cssDef: { // DEFAULT CSS - applied if: options.PANE.applyDefaultStyles=true
+				background: "#AAA"
+			}
+		}
+	,	content: {
+			cssReq: {
+				overflow:	"auto"
+			}
+		,	cssDef: {}
+		}
+	,	defaults: { // defaults for ALL panes - overridden by 'per-pane settings' below
+			cssReq: {
+				position: 	"absolute"
+			,	margin:		0
+			,	zIndex: 	2
+			}
+		,	cssDef: {
+				padding:	"10px"
+			,	background:	"#FFF"
+			,	border:		"1px solid #BBB"
+			,	overflow:	"auto"
+			}
+		}
+	,	north: {
+			edge:			"top"
+		,	sizeType:		"height"
+		,	dir:			"horz"
+		,	cssReq: {
+				top: 		0
+			,	bottom: 	"auto"
+			,	left: 		0
+			,	right: 		0
+			,	width: 		"auto"
+			//	height: 	DYNAMIC
+			}
+		}
+	,	south: {
+			edge:			"bottom"
+		,	sizeType:		"height"
+		,	dir:			"horz"
+		,	cssReq: {
+				top: 		"auto"
+			,	bottom: 	0
+			,	left: 		0
+			,	right: 		0
+			,	width: 		"auto"
+			//	height: 	DYNAMIC
+			}
+		}
+	,	east: {
+			edge:			"right"
+		,	sizeType:		"width"
+		,	dir:			"vert"
+		,	cssReq: {
+				left: 		"auto"
+			,	right: 		0
+			,	top: 		"auto" // DYNAMIC
+			,	bottom: 	"auto" // DYNAMIC
+			,	height: 	"auto"
+			//	width: 		DYNAMIC
+			}
+		}
+	,	west: {
+			edge:			"left"
+		,	sizeType:		"width"
+		,	dir:			"vert"
+		,	cssReq: {
+				left: 		0
+			,	right: 		"auto"
+			,	top: 		"auto" // DYNAMIC
+			,	bottom: 	"auto" // DYNAMIC
+			,	height: 	"auto"
+			//	width: 		DYNAMIC
+			}
+		}
+	,	center: {
+			dir:			"center"
+		,	cssReq: {
+				left: 		"auto" // DYNAMIC
+			,	right: 		"auto" // DYNAMIC
+			,	top: 		"auto" // DYNAMIC
+			,	bottom: 	"auto" // DYNAMIC
+			,	height: 	"auto"
+			,	width: 		"auto"
+			}
+		}
+	};
+
+
+	// DYNAMIC DATA
+	var state = {
+		// generate random 'ID#' to identify layout - used to create global namespace for timers
+		id:			Math.floor(Math.random() * 10000)
+	,	container:	{}
+	,	north:		{}
+	,	south:		{}
+	,	east:		{}
+	,	west:		{}
+	,	center:		{}
+	};
+
+
+	var 
+		altEdge = {
+			top:	"bottom"
+		,	bottom: "top"
+		,	left:	"right"
+		,	right:	"left"
+		}
+	,	altSide = {
+			north:	"south"
+		,	south:	"north"
+		,	east: 	"west"
+		,	west: 	"east"
+		}
+	;
+
+
+/*
+ * ###########################
+ *  INTERNAL HELPER FUNCTIONS
+ * ###########################
+ */
+
+	/**
+	 * isStr
+	 *
+	 * Returns true if passed param is EITHER a simple string OR a 'string object' - otherwise returns false
+	 */
+	var isStr = function (o) {
+		if (typeof o == "string")
+			return true;
+		else if (typeof o == "object") {
+			try {
+				var match = o.constructor.toString().match(/string/i); 
+				return (match !== null);
+			} catch (e) {} 
+		}
+		return false;
+	};
+
+	/**
+	 * str
+	 *
+	 * Returns a simple string if the passed param is EITHER a simple string OR a 'string object',
+	 *  else returns the original object
+	 */
+	var str = function (o) {
+		if (typeof o == "string" || isStr(o)) return $.trim(o); // trim converts 'String object' to a simple string
+		else return o;
+	};
+
+	/**
+	 * min / max
+	 *
+	 * Alias for Math.min/.max to simplify coding
+	 */
+	var min = function (x,y) { return Math.min(x,y); };
+	var max = function (x,y) { return Math.max(x,y); };
+
+	/**
+	 * transformData
+	 *
+	 * Processes the options passed in and transforms them into the format used by layout()
+	 * Missing keys are added, and converts the data if passed in 'flat-format' (no sub-keys)
+	 * In flat-format, pane-specific-settings are prefixed like: north__optName  (2-underscores)
+	 * To update effects, options MUST use nested-keys format, with an effects key
+	 *
+	 * @callers  initOptions()
+	 * @params  JSON  d  Data/options passed by user - may be a single level or nested levels
+	 * @returns JSON  Creates a data struture that perfectly matches 'options', ready to be imported
+	 */
+	var transformData = function (d) {
+		var json = { defaults:{fxSettings:{}}, north:{fxSettings:{}}, south:{fxSettings:{}}, east:{fxSettings:{}}, west:{fxSettings:{}}, center:{fxSettings:{}} };
+		d = d || {};
+		if (d.effects || d.defaults || d.north || d.south || d.west || d.east || d.center)
+			json = $.extend( json, d ); // already in json format - add to base keys
+		else
+			// convert 'flat' to 'nest-keys' format - also handles 'empty' user-options
+			$.each( d, function (key,val) {
+				a = key.split("__");
+				json[ a[1] ? a[0] : "defaults" ][ a[1] ? a[1] : a[0] ] = val;
+			});
+		return json;
+	};
+
+	/**
+	 * setFlowCallback
+	 *
+	 * Set an INTERNAL callback to avoid simultaneous animation
+	 * Runs only if needed and only if all callbacks are not 'already set'!
+	 *
+	 * @param String   action  Either 'open' or 'close'
+	 * @pane  String   pane    A valid border-pane name, eg 'west'
+	 * @pane  Boolean  param   Extra param for callback (optional)
+	 */
+	var setFlowCallback = function (action, pane, param) {
+		var
+			cb = action +","+ pane +","+ (param ? 1 : 0)
+		,	cP, cbPane
+		;
+		$.each(c.borderPanes.split(","), function (i,p) {
+			if (c[p].isMoving) {
+				bindCallback(p); // TRY to bind a callback
+				return false; // BREAK
+			}
+		});
+
+		function bindCallback (p, test) {
+			cP = c[p];
+			if (!cP.doCallback) {
+				cP.doCallback = true;
+				cP.callback = cb;
+			}
+			else { // try to 'chain' this callback
+				cpPane = cP.callback.split(",")[1]; // 2nd param is 'pane'
+				if (cpPane != p && cpPane != pane) // callback target NOT 'itself' and NOT 'this pane'
+					bindCallback (cpPane, true); // RECURSE
+			}
+		}
+	};
+
+	/**
+	 * execFlowCallback
+	 *
+	 * RUN the INTERNAL callback for this pane - if one exists
+	 *
+	 * @param String   action  Either 'open' or 'close'
+	 * @pane  String   pane    A valid border-pane name, eg 'west'
+	 * @pane  Boolean  param   Extra param for callback (optional)
+	 */
+	var execFlowCallback = function (pane) {
+		var cP = c[pane];
+
+		// RESET flow-control flaGs
+		c.isLayoutBusy = false;
+		delete cP.isMoving;
+		if (!cP.doCallback || !cP.callback) return;
+
+		cP.doCallback = false; // RESET logic flag
+
+		// EXECUTE the callback
+		var
+			cb = cP.callback.split(",")
+		,	param = (cb[2] > 0 ? true : false)
+		;
+		if (cb[0] == "open")
+			open( cb[1], param  );
+		else if (cb[0] == "close")
+			close( cb[1], param );
+
+		if (!cP.doCallback) cP.callback = null; // RESET - unless callback above enabled it again!
+	};
+
+	/**
+	 * execUserCallback
+	 *
+	 * Executes a Callback function after a trigger event, like resize, open or close
+	 *
+	 * @param String  pane   This is passed only so we can pass the 'pane object' to the callback
+	 * @param String  v_fn  Accepts a function name, OR a comma-delimited array: [0]=function name, [1]=argument
+	 */
+	var execUserCallback = function (pane, v_fn) {
+		if (!v_fn) return;
+		var fn;
+		try {
+			if (typeof v_fn == "function")
+				fn = v_fn;	
+			else if (typeof v_fn != "string")
+				return;
+			else if (v_fn.indexOf(",") > 0) {
+				// function name cannot contain a comma, so must be a function name AND a 'name' parameter
+				var
+					args = v_fn.split(",")
+				,	fn = eval(args[0])
+				;
+				if (typeof fn=="function" && args.length > 1)
+					return fn(args[1]); // pass the argument parsed from 'list'
+			}
+			else // just the name of an external function?
+				fn = eval(v_fn);
+
+			if (typeof fn=="function")
+				// pass data: pane-name, pane-element, pane-state, pane-options, and layout-name
+				return fn( pane, $Ps[pane], $.extend({},state[pane]), $.extend({},options[pane]), options.name );
+		}
+		catch (ex) {}
+	};
+
+	/**
+	 * cssNum
+	 *
+	 * Returns the 'current CSS value' for an element - returns 0 if property does not exist
+	 *
+	 * @callers  Called by many methods
+	 * @param jQuery  $Elem  Must pass a jQuery object - first element is processed
+	 * @param String  property  The name of the CSS property, eg: top, width, etc.
+	 * @returns Variant  Usually is used to get an integer value for position (top, left) or size (height, width)
+	 */
+	var cssNum = function ($E, prop) {
+		var
+			val = 0
+		,	hidden = false
+		,	visibility = ""
+		;
+		if (!$.browser.msie) { // IE CAN read dimensions of 'hidden' elements - FF CANNOT
+			if ($.curCSS($E[0], "display", true) == "none") {
+				hidden = true;
+				visibility = $.curCSS($E[0], "visibility", true); // SAVE current setting
+				$E.css({ display: "block", visibility: "hidden" }); // show element 'invisibly' so we can measure it
+			}
+		}
+
+		val = parseInt($.curCSS($E[0], prop, true), 10) || 0;
+
+		if (hidden) { // WAS hidden, so put back the way it was
+			$E.css({ display: "none" });
+			if (visibility && visibility != "hidden")
+				$E.css({ visibility: visibility }); // reset 'visibility'
+		}
+
+		return val;
+	};
+
+	/**
+	 * cssW / cssH / cssSize
+	 *
+	 * Contains logic to check boxModel & browser, and return the correct width/height for the current browser/doctype
+	 *
+	 * @callers  initPanes(), sizeMidPanes(), initHandles(), sizeHandles()
+	 * @param Variant  elem  Can accept a 'pane' (east, west, etc) OR a DOM object OR a jQuery object
+	 * @param Integer  outerWidth/outerHeight  (optional) Can pass a width, allowing calculations BEFORE element is resized
+	 * @returns Integer  Returns the innerHeight of the elem by subtracting padding and borders
+	 *
+	 * @TODO  May need to add additional logic to handle more browser/doctype variations?
+	 */
+	var cssW = function (e, outerWidth) {
+		var $E;
+		if (isStr(e)) {
+			e = str(e);
+			$E = $Ps[e];
+		}
+		else
+			$E = $(e);
+
+		// a 'calculated' outerHeight can be passed so borders and/or padding are removed if needed
+		if (outerWidth <= 0)
+			return 0;
+		else if (!(outerWidth>0))
+			outerWidth = isStr(e) ? getPaneSize(e) : $E.outerWidth();
+
+		if (!$.boxModel)
+			return outerWidth;
+
+		else // strip border and padding size from outerWidth to get CSS Width
+			return outerWidth
+				- cssNum($E, "paddingLeft")		
+				- cssNum($E, "paddingRight")
+				- ($.curCSS($E[0], "borderLeftStyle", true) == "none" ? 0 : cssNum($E, "borderLeftWidth"))
+				- ($.curCSS($E[0], "borderRightStyle", true) == "none" ? 0 : cssNum($E, "borderRightWidth"))
+			;
+	};
+	var cssH = function (e, outerHeight) {
+		var $E;
+		if (isStr(e)) {
+			e = str(e);
+			$E = $Ps[e];
+		}
+		else
+			$E = $(e);
+
+		// a 'calculated' outerHeight can be passed so borders and/or padding are removed if needed
+		if (outerHeight <= 0)
+			return 0;
+		else if (!(outerHeight>0))
+			outerHeight = (isStr(e)) ? getPaneSize(e) : $E.outerHeight();
+
+		if (!$.boxModel)
+			return outerHeight;
+
+		else // strip border and padding size from outerHeight to get CSS Height
+			return outerHeight
+				- cssNum($E, "paddingTop")
+				- cssNum($E, "paddingBottom")
+				- ($.curCSS($E[0], "borderTopStyle", true) == "none" ? 0 : cssNum($E, "borderTopWidth"))
+				- ($.curCSS($E[0], "borderBottomStyle", true) == "none" ? 0 : cssNum($E, "borderBottomWidth"))
+			;
+	};
+	var cssSize = function (pane, outerSize) {
+		if (c[pane].dir=="horz") // pane = north or south
+			return cssH(pane, outerSize);
+		else // pane = east or west
+			return cssW(pane, outerSize);
+	};
+
+	/**
+	 * getPaneSize
+	 *
+	 * Calculates the current 'size' (width or height) of a border-pane - optionally with 'pane spacing' added
+	 *
+	 * @returns Integer  Returns EITHER Width for east/west panes OR Height for north/south panes - adjusted for boxModel & browser
+	 */
+	var getPaneSize = function (pane, inclSpace) {
+		var 
+			$P	= $Ps[pane]
+		,	o	= options[pane]
+		,	s	= state[pane]
+		,	oSp	= (inclSpace ? o.spacing_open : 0)
+		,	cSp	= (inclSpace ? o.spacing_closed : 0)
+		;
+		if (!$P || s.isHidden)
+			return 0;
+		else if (s.isClosed || (s.isSliding && inclSpace))
+			return cSp;
+		else if (c[pane].dir == "horz")
+			return $P.outerHeight() + oSp;
+		else // dir == "vert"
+			return $P.outerWidth() + oSp;
+	};
+
+	var setPaneMinMaxSizes = function (pane) {
+		var 
+			d				= cDims
+		,	edge			= c[pane].edge
+		,	dir				= c[pane].dir
+		,	o				= options[pane]
+		,	s				= state[pane]
+		,	$P				= $Ps[pane]
+		,	$altPane		= $Ps[ altSide[pane] ]
+		,	paneSpacing		= o.spacing_open
+		,	altPaneSpacing	= options[ altSide[pane] ].spacing_open
+		,	altPaneSize		= (!$altPane ? 0 : (dir=="horz" ? $altPane.outerHeight() : $altPane.outerWidth()))
+		,	containerSize	= (dir=="horz" ? d.innerHeight : d.innerWidth)
+		//	limitSize prevents this pane from 'overlapping' opposite pane - even if opposite pane is currently closed
+		,	limitSize		= containerSize - paneSpacing - altPaneSize - altPaneSpacing
+		,	minSize			= s.minSize || 0
+		,	maxSize			= Math.min(s.maxSize || 9999, limitSize)
+		,	minPos, maxPos	// used to set resizing limits
+		;
+		switch (pane) {
+			case "north":	minPos = d.offsetTop + minSize;
+							maxPos = d.offsetTop + maxSize;
+							break;
+			case "west":	minPos = d.offsetLeft + minSize;
+							maxPos = d.offsetLeft + maxSize;
+							break;
+			case "south":	minPos = d.offsetTop + d.innerHeight - maxSize;
+							maxPos = d.offsetTop + d.innerHeight - minSize;
+							break;
+			case "east":	minPos = d.offsetLeft + d.innerWidth - maxSize;
+							maxPos = d.offsetLeft + d.innerWidth - minSize;
+							break;
+		}
+		// save data to pane-state
+		$.extend(s, { minSize: minSize, maxSize: maxSize, minPosition: minPos, maxPosition: maxPos });
+	};
+
+	/**
+	 * getPaneDims
+	 *
+	 * Returns data for setting the size/position of center pane. Date is also used to set Height for east/west panes
+	 *
+	 * @returns JSON  Returns a hash of all dimensions: top, bottom, left, right, (outer) width and (outer) height
+	 */
+	var getPaneDims = function () {
+		var d = {
+			top:	getPaneSize("north", true) // true = include 'spacing' value for p
+		,	bottom:	getPaneSize("south", true)
+		,	left:	getPaneSize("west", true)
+		,	right:	getPaneSize("east", true)
+		,	width:	0
+		,	height:	0
+		};
+
+		with (d) {
+			width 	= cDims.innerWidth - left - right;
+			height 	= cDims.innerHeight - bottom - top;
+			// now add the 'container border/padding' to get final positions - relative to the container
+			top		+= cDims.top;
+			bottom	+= cDims.bottom;
+			left	+= cDims.left;
+			right	+= cDims.right;
+		}
+
+		return d;
+	};
+
+
+	/**
+	 * getElemDims
+	 *
+	 * Returns data for setting size of an element (container or a pane).
+	 *
+	 * @callers  create(), onWindowResize() for container, plus others for pane
+	 * @returns JSON  Returns a hash of all dimensions: top, bottom, left, right, outerWidth, innerHeight, etc
+	 */
+	var getElemDims = function ($E) {
+		var
+			d = {} // dimensions hash
+		,	e, b, p // edge, border, padding
+		;
+
+		$.each("Left,Right,Top,Bottom".split(","), function () {
+			e = str(this);
+			b = d["border" +e] = cssNum($E, "border"+e+"Width");
+			p = d["padding"+e] = cssNum($E, "padding"+e);
+			d["offset" +e] = b + p; // total offset of content from outer edge
+			// if BOX MODEL, then 'position' = PADDING (ignore borderWidth)
+			if ($E == $Container)
+				d[e.toLowerCase()] = ($.boxModel ? p : 0); 
+		});
+
+		d.innerWidth  = d.outerWidth  = $E.outerWidth();
+		d.innerHeight = d.outerHeight = $E.outerHeight();
+		if ($.boxModel) {
+			d.innerWidth  -= (d.offsetLeft + d.offsetRight);
+			d.innerHeight -= (d.offsetTop  + d.offsetBottom);
+		}
+
+		return d;
+	};
+
+
+	var setTimer = function (pane, action, fn, ms) {
+		var
+			Layout = window.layout = window.layout || {}
+		,	Timers = Layout.timers = Layout.timers || {}
+		,	name = "layout_"+ state.id +"_"+ pane +"_"+ action // UNIQUE NAME for every layout-pane-action
+		;
+		if (Timers[name]) return; // timer already set!
+		else Timers[name] = setTimeout(fn, ms);
+	};
+
+	var clearTimer = function (pane, action) {
+		var
+			Layout = window.layout = window.layout || {}
+		,	Timers = Layout.timers = Layout.timers || {}
+		,	name = "layout_"+ state.id +"_"+ pane +"_"+ action // UNIQUE NAME for every layout-pane-action
+		;
+		if (Timers[name]) {
+			clearTimeout( Timers[name] );
+			delete Timers[name];
+			return true;
+		}
+		else
+			return false;
+	};
+
+
+/*
+ * ###########################
+ *   INITIALIZATION METHODS
+ * ###########################
+ */
+
+	/**
+	 * create
+	 *
+	 * Initialize the layout - called automatically whenever an instance of layout is created
+	 *
+	 * @callers  NEVER explicity called
+	 * @returns  An object pointer to the instance created
+	 */
+	var create = function () {
+		// initialize config/options
+		initOptions();
+
+		// initialize all objects
+		initContainer();	// set CSS as needed and init state.container dimensions
+		initPanes();		// size & position all panes
+		initHandles();		// create and position all resize bars & togglers buttons
+		initResizable();	// activate resizing on all panes where resizable=true
+		sizeContent("all");	// AFTER panes & handles have been initialized, size 'content' divs
+
+		if (options.scrollToBookmarkOnLoad)
+			with (self.location) if (hash) replace( hash ); // scrollTo Bookmark
+
+		// bind hotkey function - keyDown - if required
+		initHotkeys();
+
+		// bind resizeAll() for 'this layout instance' to window.resize event
+		$(window).resize(function () {
+			var timerID = "timerLayout_"+state.id;
+			if (window[timerID]) clearTimeout(window[timerID]);
+			window[timerID] = null;
+			if (true || $.browser.msie) // use a delay for IE because the resize event fires repeatly
+				window[timerID] = setTimeout(resizeAll, 100);
+			else // most other browsers have a built-in delay before firing the resize event
+				resizeAll(); // resize all layout elements NOW!
+		});
+	};
+
+	/**
+	 * initContainer
+	 *
+	 * Validate and initialize container CSS and events
+	 *
+	 * @callers  create()
+	 */
+	var initContainer = function () {
+		try { // format html/body if this is a full page layout
+			if ($Container[0].tagName == "BODY") {
+				$("html").css({
+					height:		"100%"
+				,	overflow:	"hidden"
+				});
+				$("body").css({
+					position:	"relative"
+				,	height:		"100%"
+				,	overflow:	"hidden"
+				,	margin:		0
+				,	padding:	0		// TODO: test whether body-padding could be handled?
+				,	border:		"none"	// a body-border creates problems because it cannot be measured!
+				});
+			}
+			else { // set required CSS - overflow and position
+				var
+					CSS	= { overflow: "hidden" } // make sure container will not 'scroll'
+				,	p	= $Container.css("position")
+				,	h	= $Container.css("height")
+				;
+				// if this is a NESTED layout, then outer-pane ALREADY has position and height
+				if (!$Container.hasClass("ui-layout-pane")) {
+					if (!p || "fixed,absolute,relative".indexOf(p) < 0)
+						CSS.position = "relative"; // container MUST have a 'position'
+					if (!h || h=="auto")
+						CSS.height = "100%"; // container MUST have a 'height'
+				}
+				$Container.css( CSS );
+			}
+		} catch (ex) {}
+
+		// get layout-container dimensions (updated when necessary)
+		cDims = state.container = getElemDims( $Container ); // update data-pointer too
+	};
+
+	/**
+	 * initHotkeys
+	 *
+	 * Bind layout hotkeys - if options enabled
+	 *
+	 * @callers  create()
+	 */
+	var initHotkeys = function () {
+		// bind keyDown to capture hotkeys, if option enabled for ANY pane
+		$.each(c.borderPanes.split(","), function (i,pane) {
+			var o = options[pane];
+			if (o.enableCursorHotkey || o.customHotkey) {
+				$(document).keydown( keyDown ); // only need to bind this ONCE
+				return false; // BREAK - binding was done
+			}
+		});
+	};
+
+	/**
+	 * initOptions
+	 *
+	 * Build final CONFIG and OPTIONS data
+	 *
+	 * @callers  create()
+	 */
+	var initOptions = function () {
+		// simplify logic by making sure passed 'opts' var has basic keys
+		opts = transformData( opts );
+
+		// update default effects, if case user passed key
+		if (opts.effects) {
+			$.extend( effects, opts.effects );
+			delete opts.effects;
+		}
+
+		// see if any 'global options' were specified
+		$.each("name,scrollToBookmarkOnLoad".split(","), function (idx,key) {
+			if (opts[key] !== undefined)
+				options[key] = opts[key];
+			else if (opts.defaults[key] !== undefined) {
+				options[key] = opts.defaults[key];
+				delete opts.defaults[key];
+			}
+		});
+
+		// remove any 'defaults' that MUST be set 'per-pane'
+		$.each("paneSelector,resizerCursor,customHotkey".split(","),
+			function (idx,key) { delete opts.defaults[key]; } // is OK if key does not exist
+		);
+
+		// now update options.defaults
+		$.extend( options.defaults, opts.defaults );
+		// make sure required sub-keys exist
+		//if (typeof options.defaults.fxSettings != "object") options.defaults.fxSettings = {};
+
+		// merge all config & options for the 'center' pane
+		c.center = $.extend( true, {}, c.defaults, c.center );
+		$.extend( options.center, opts.center );
+		// Most 'default options' do not apply to 'center', so add only those that DO
+		var o_Center = $.extend( true, {}, options.defaults, opts.defaults, options.center ); // TEMP data
+		$.each("paneClass,contentSelector,contentIgnoreSelector,applyDefaultStyles,showOverflowOnHover".split(","),
+			function (idx,key) { options.center[key] = o_Center[key]; }
+		);
+
+		var defs = options.defaults;
+
+		// create a COMPLETE set of options for EACH border-pane
+		$.each(c.borderPanes.split(","), function(i,pane) {
+			// apply 'pane-defaults' to CONFIG.PANE
+			c[pane] = $.extend( true, {}, c.defaults, c[pane] );
+			// apply 'pane-defaults' +  user-options to OPTIONS.PANE
+			o = options[pane] = $.extend( true, {}, options.defaults, options[pane], opts.defaults, opts[pane] );
+
+			// make sure we have base-classes
+			if (!o.paneClass)		o.paneClass		= defaults.paneClass;
+			if (!o.resizerClass)	o.resizerClass	= defaults.resizerClass;
+			if (!o.togglerClass)	o.togglerClass	= defaults.togglerClass;
+
+			// create FINAL fx options for each pane, ie: options.PANE.fxName/fxSpeed/fxSettings[_open|_close]
+			$.each(["_open","_close",""], function (i,n) { 
+				var
+					sName		= "fxName"+n
+				,	sSpeed		= "fxSpeed"+n
+				,	sSettings	= "fxSettings"+n
+				;
+				// recalculate fxName according to specificity rules
+				o[sName] =
+					opts[pane][sName]		// opts.west.fxName_open
+				||	opts[pane].fxName		// opts.west.fxName
+				||	opts.defaults[sName]	// opts.defaults.fxName_open
+				||	opts.defaults.fxName	// opts.defaults.fxName
+				||	o[sName]				// options.west.fxName_open
+				||	o.fxName				// options.west.fxName
+				||	defs[sName]				// options.defaults.fxName_open
+				||	defs.fxName				// options.defaults.fxName
+				||	"none"
+				;
+				// validate fxName to be sure is a valid effect
+				var fxName = o[sName];
+				if (fxName == "none" || !$.effects || !$.effects[fxName] || (!effects[fxName] && !o[sSettings] && !o.fxSettings))
+					fxName = o[sName] = "none"; // effect not loaded, OR undefined FX AND fxSettings not passed
+				// set vars for effects subkeys to simplify logic
+				var
+					fx = effects[fxName]	|| {} // effects.slide
+				,	fx_all	= fx.all		|| {} // effects.slide.all
+				,	fx_pane	= fx[pane]		|| {} // effects.slide.west
+				;
+				// RECREATE the fxSettings[_open|_close] keys using specificity rules
+				o[sSettings] = $.extend(
+					{}
+				,	fx_all						// effects.slide.all
+				,	fx_pane						// effects.slide.west
+				,	defs.fxSettings || {}		// options.defaults.fxSettings
+				,	defs[sSettings] || {}		// options.defaults.fxSettings_open
+				,	o.fxSettings				// options.west.fxSettings
+				,	o[sSettings]				// options.west.fxSettings_open
+				,	opts.defaults.fxSettings	// opts.defaults.fxSettings
+				,	opts.defaults[sSettings] || {} // opts.defaults.fxSettings_open
+				,	opts[pane].fxSettings		// opts.west.fxSettings
+				,	opts[pane][sSettings] || {}	// opts.west.fxSettings_open
+				);
+				// recalculate fxSpeed according to specificity rules
+				o[sSpeed] =
+					opts[pane][sSpeed]		// opts.west.fxSpeed_open
+				||	opts[pane].fxSpeed		// opts.west.fxSpeed (pane-default)
+				||	opts.defaults[sSpeed]	// opts.defaults.fxSpeed_open
+				||	opts.defaults.fxSpeed	// opts.defaults.fxSpeed
+				||	o[sSpeed]				// options.west.fxSpeed_open
+				||	o[sSettings].duration	// options.west.fxSettings_open.duration
+				||	o.fxSpeed				// options.west.fxSpeed
+				||	o.fxSettings.duration	// options.west.fxSettings.duration
+				||	defs.fxSpeed			// options.defaults.fxSpeed
+				||	defs.fxSettings.duration// options.defaults.fxSettings.duration
+				||	fx_pane.duration		// effects.slide.west.duration
+				||	fx_all.duration			// effects.slide.all.duration
+				||	"normal"				// DEFAULT
+				;
+				// DEBUG: if (pane=="east") debugData( $.extend({}, {speed: o[sSpeed], fxSettings_duration: o[sSettings].duration}, o[sSettings]), pane+"."+sName+" = "+fxName );
+			});
+		});
+	};
+
+	/**
+	 * initPanes
+	 *
+	 * Initialize module objects, styling, size and position for all panes
+	 *
+	 * @callers  create()
+	 */
+	var initPanes = function () {
+		// NOTE: do north & south FIRST so we can measure their height - do center LAST
+		$.each(c.allPanes.split(","), function() {
+			var 
+				pane	= str(this)
+			,	o		= options[pane]
+			,	s		= state[pane]
+			,	fx		= s.fx
+			,	dir		= c[pane].dir
+			//	if o.size is not > 0, then we will use MEASURE the pane and use that as it's 'size'
+			,	size	= o.size=="auto" || isNaN(o.size) ? 0 : o.size
+			,	minSize	= o.minSize || 1
+			,	maxSize	= o.maxSize || 9999
+			,	spacing	= o.spacing_open || 0
+			,	sel		= o.paneSelector
+			,	isIE6	= ($.browser.msie && $.browser.version < 7)
+			,	CSS		= {}
+			,	$P, $C
+			;
+			$Cs[pane] = false; // init
+
+			if (sel.substr(0,1)==="#") // ID selector
+				// NOTE: elements selected 'by ID' DO NOT have to be 'children'
+				$P = $Ps[pane] = $Container.find(sel+":first");
+			else { // class or other selector
+				$P = $Ps[pane] = $Container.children(sel+":first");
+				// look for the pane nested inside a 'form' element
+				if (!$P.length) $P = $Ps[pane] = $Container.children("form:first").children(sel+":first");
+			}
+
+			if (!$P.length) {
+				$Ps[pane] = false; // logic
+				return true; // SKIP to next
+			}
+
+			// add basic classes & attributes
+			$P
+				.attr("pane", pane) // add pane-identifier
+				.addClass( o.paneClass +" "+ o.paneClass+"-"+pane ) // default = "ui-layout-pane ui-layout-pane-west" - may be a dupe of 'paneSelector'
+			;
+
+			// init pane-logic vars, etc.
+			if (pane != "center") {
+				s.isClosed  = false; // true = pane is closed
+				s.isSliding = false; // true = pane is currently open by 'sliding' over adjacent panes
+				s.isResizing= false; // true = pane is in process of being resized
+				s.isHidden	= false; // true = pane is hidden - no spacing, resizer or toggler is visible!
+				s.noRoom	= false; // true = pane 'automatically' hidden due to insufficient room - will unhide automatically
+				// create special keys for internal use
+				c[pane].pins = [];   // used to track and sync 'pin-buttons' for border-panes
+			}
+
+			CSS = $.extend({ visibility: "visible", display: "block" }, c.defaults.cssReq, c[pane].cssReq );
+			if (o.applyDefaultStyles) $.extend( CSS, c.defaults.cssDef, c[pane].cssDef ); // cosmetic defaults
+			$P.css(CSS); // add base-css BEFORE 'measuring' to calc size & position
+			CSS = {};	// reset var
+
+			// set css-position to account for container borders & padding
+			switch (pane) {
+				case "north": 	CSS.top 	= cDims.top;
+								CSS.left 	= cDims.left;
+								CSS.right	= cDims.right;
+								break;
+				case "south": 	CSS.bottom	= cDims.bottom;
+								CSS.left 	= cDims.left;
+								CSS.right 	= cDims.right;
+								break;
+				case "west": 	CSS.left 	= cDims.left; // top, bottom & height set by sizeMidPanes()
+								break;
+				case "east": 	CSS.right 	= cDims.right; // ditto
+								break;
+				case "center":	// top, left, width & height set by sizeMidPanes()
+			}
+
+			if (dir == "horz") { // north or south pane
+				if (size === 0 || size == "auto") {
+					$P.css({ height: "auto" });
+					size = $P.outerHeight();
+				}
+				size = max(size, minSize);
+				size = min(size, maxSize);
+				size = min(size, cDims.innerHeight - spacing);
+				CSS.height = max(1, cssH(pane, size));
+				s.size = size; // update state
+				// make sure minSize is sufficient to avoid errors
+				s.maxSize = maxSize; // init value
+				s.minSize = max(minSize, size - CSS.height + 1); // = pane.outerHeight when css.height = 1px
+				// handle IE6
+				//if (isIE6) CSS.width = cssW($P, cDims.innerWidth);
+				$P.css(CSS); // apply size & position
+			}
+			else if (dir == "vert") { // east or west pane
+				if (size === 0 || size == "auto") {
+					$P.css({ width: "auto", float: "left" }); // float = FORCE pane to auto-size
+					size = $P.outerWidth();
+					$P.css({ float: "none" }); // RESET
+				}
+				size = max(size, minSize);
+				size = min(size, maxSize);
+				size = min(size, cDims.innerWidth - spacing);
+				CSS.width = max(1, cssW(pane, size));
+				s.size = size; // update state
+				s.maxSize = maxSize; // init value
+				// make sure minSize is sufficient to avoid errors
+				s.minSize = max(minSize, size - CSS.width + 1); // = pane.outerWidth when css.width = 1px
+				$P.css(CSS); // apply size - top, bottom & height set by sizeMidPanes
+				sizeMidPanes(pane, null, true); // true = onInit
+			}
+			else if (pane == "center") {
+				$P.css(CSS); // top, left, width & height set by sizeMidPanes...
+				sizeMidPanes("center", null, true); // true = onInit
+			}
+
+			// close or hide the pane if specified in settings
+			if (o.initClosed && o.closable) {
+				$P.hide().addClass("closed");
+				s.isClosed = true;
+			}
+			else if (o.initHidden || o.initClosed) {
+				hide(pane, true); // will be completely invisible - no resizer or spacing
+				s.isHidden = true;
+			}
+			else
+				$P.addClass("open");
+
+			// check option for auto-handling of pop-ups & drop-downs
+			if (o.showOverflowOnHover)
+				$P.hover( allowOverflow, resetOverflow );
+
+			/*
+			 *	see if this pane has a 'content element' that we need to auto-size
+			 */
+			if (o.contentSelector) {
+				$C = $Cs[pane] = $P.children(o.contentSelector+":first"); // match 1-element only
+				if (!$C.length) {
+					$Cs[pane] = false;
+					return true; // SKIP to next
+				}
+				$C.css( c.content.cssReq );
+				if (o.applyDefaultStyles) $C.css( c.content.cssDef ); // cosmetic defaults
+				// NO PANE-SCROLLING when there is a content-div
+				$P.css({ overflow: "hidden" });
+			}
+		});
+	};
+
+	/**
+	 * initHandles
+	 *
+	 * Initialize module objects, styling, size and position for all resize bars and toggler buttons
+	 *
+	 * @callers  create()
+	 */
+	var initHandles = function () {
+		// create toggler DIVs for each pane, and set object pointers for them, eg: $R.north = north toggler DIV
+		$.each(c.borderPanes.split(","), function() {
+			var 
+				pane	= str(this)
+			,	o		= options[pane]
+			,	s		= state[pane]
+			,	rClass	= o.resizerClass
+			,	tClass	= o.togglerClass
+			,	$P		= $Ps[pane]
+			;
+			$Rs[pane] = false; // INIT
+			$Ts[pane] = false;
+
+			if (!$P || (!o.closable && !o.resizable)) return; // pane does not exist - skip
+
+			var 
+				edge	= c[pane].edge
+			,	isOpen	= $P.is(":visible")
+			,	spacing	= (isOpen ? o.spacing_open : o.spacing_closed)
+			,	_pane	= "-"+ pane // used for classNames
+			,	_state	= (isOpen ? "-open" : "-closed") // used for classNames
+			,	$R, $T
+			;
+			// INIT RESIZER BAR
+			$R = $Rs[pane] = $("<span></span>");
+	
+			if (isOpen && o.resizable)
+				; // this is handled by initResizable
+			else if (!isOpen && o.slidable)
+				$R.attr("title", o.sliderTip).css("cursor", o.sliderCursor);
+	
+			$R
+				// if paneSelector is an ID, then create a matching ID for the resizer, eg: "#paneLeft" => "paneLeft-resizer"
+				.attr("id", (o.paneSelector.substr(0,1)=="#" ? o.paneSelector.substr(1) + "-resizer" : ""))
+				.attr("resizer", pane) // so we can read this from the resizer
+				.css(c.resizers.cssReq) // add base/required styles
+				// POSITION of resizer bar - allow for container border & padding
+				.css(edge, cDims[edge] + getPaneSize(pane))
+				// ADD CLASSNAMES - eg: class="resizer resizer-west resizer-open"
+				.addClass( rClass +" "+ rClass+_pane +" "+ rClass+_state +" "+ rClass+_pane+_state )
+				.appendTo($Container) // append DIV to container
+			;
+			 // ADD VISUAL STYLES
+			if (o.applyDefaultStyles)
+				$R.css(c.resizers.cssDef);
+
+			if (o.closable) {
+				// INIT COLLAPSER BUTTON
+				$T = $Ts[pane] = $("<div></div>");
+				$T
+					// if paneSelector is an ID, then create a matching ID for the resizer, eg: "#paneLeft" => "paneLeft-toggler"
+					.attr("id", (o.paneSelector.substr(0,1)=="#" ? o.paneSelector.substr(1) + "-toggler" : ""))
+					.css(c.togglers.cssReq) // add base/required styles
+					.attr("title", (isOpen ? o.togglerTip_open : o.togglerTip_closed))
+					.click(function(evt){ toggle(pane); evt.stopPropagation(); })
+					.mouseover(function(evt){ evt.stopPropagation(); }) // prevent resizer event
+					// ADD CLASSNAMES - eg: class="toggler toggler-west toggler-west-open"
+					.addClass( tClass +" "+ tClass+_pane +" "+ tClass+_state +" "+ tClass+_pane+_state )
+					.appendTo($R) // append SPAN to resizer DIV
+				;
+
+				// ADD INNER-SPANS TO TOGGLER
+				if (o.togglerContent_open) // ui-layout-open
+					$("<span>"+ o.togglerContent_open +"</span>")
+						.addClass("content content-open")
+						.css("display", s.isClosed ? "none" : "block")
+						.appendTo( $T )
+					;
+				if (o.togglerContent_closed) // ui-layout-closed
+					$("<span>"+ o.togglerContent_closed +"</span>")
+						.addClass("content content-closed")
+						.css("display", s.isClosed ? "block" : "none")
+						.appendTo( $T )
+					;
+
+				 // ADD BASIC VISUAL STYLES
+				if (o.applyDefaultStyles)
+					$T.css(c.togglers.cssDef);
+
+				if (!isOpen) bindStartSlidingEvent(pane, true); // will enable if state.PANE.isSliding = true
+			}
+
+		});
+
+		// SET ALL HANDLE SIZES & LENGTHS
+		sizeHandles("all", true); // true = onInit
+	};
+
+	/**
+	 * initResizable
+	 *
+	 * Add resize-bars to all panes that specify it in options
+	 *
+	 * @dependancies  $.fn.resizable - will abort if not found
+	 * @callers  create()
+	 */
+	var initResizable = function () {
+		var
+			draggingAvailable = (typeof $.fn.draggable == "function")
+		,	minPosition, maxPosition, edge // set in start()
+		;
+
+		$.each(c.borderPanes.split(","), function() {
+			var 
+				pane	= str(this)
+			,	o		= options[pane]
+			,	s		= state[pane]
+			;
+			if (!draggingAvailable || !$Ps[pane] || !o.resizable) {
+				o.resizable = false;
+				return true; // skip to next
+			}
+
+			var 
+				rClass				= o.resizerClass
+			//	'drag' classes are applied to the ORIGINAL resizer-bar while dragging is in process
+			,	dragClass			= rClass+"-drag"			// resizer-drag
+			,	dragPaneClass		= rClass+"-"+pane+"-drag"	// resizer-north-drag
+			//	'dragging' class is applied to the CLONED resizer-bar while it is being dragged
+			,	draggingClass		= rClass+"-dragging"		// resizer-dragging
+			,	draggingPaneClass	= rClass+"-"+pane+"-dragging" // resizer-north-dragging
+			,	draggingClassSet	= false 					// logic var
+			,	$P 					= $Ps[pane]
+			,	$R					= $Rs[pane]
+			;
+
+			if (!s.isClosed)
+				$R
+					.attr("title", o.resizerTip)
+					.css("cursor", o.resizerCursor) // n-resize, s-resize, etc
+				;
+
+			$R.draggable({
+				containment:	$Container[0] // limit resizing to layout container
+			,	axis:			(c[pane].dir=="horz" ? "y" : "x") // limit resizing to horz or vert axis
+			,	delay:			200
+			,	distance:		1
+			//	basic format for helper - style it using class: .ui-draggable-dragging
+			,	helper:			"clone"
+			,	opacity:		o.resizerDragOpacity
+			//,	iframeFix:		o.draggableIframeFix // TODO: consider using when bug is fixed
+			,	zIndex:			c.zIndex.resizing
+
+			,	start: function (e, ui) {
+					// onresize_start callback - will CANCEL hide if returns false
+					// TODO: CONFIRM that dragging can be cancelled like this???
+					if (false === execUserCallback(pane, o.onresize_start)) return false;
+
+					s.isResizing = true; // prevent pane from closing while resizing
+					clearTimer(pane, "closeSlider"); // just in case already triggered
+
+					$R.addClass( dragClass +" "+ dragPaneClass ); // add drag classes
+					draggingClassSet = false; // reset logic var - see drag()
+
+					// SET RESIZING LIMITS - used in drag()
+					var resizerWidth = (pane=="east" || pane=="south" ? o.spacing_open : 0);
+					setPaneMinMaxSizes(pane); // update pane-state
+					s.minPosition -= resizerWidth;
+					s.maxPosition -= resizerWidth;
+					edge = (c[pane].dir=="horz" ? "top" : "left");
+
+					// MASK PANES WITH IFRAMES OR OTHER TROUBLESOME ELEMENTS
+					$(o.maskIframesOnResize === true ? "iframe" : o.maskIframesOnResize).each(function() {					
+						$('<div class="ui-layout-mask"/>')
+							.css({
+								background:	"#fff"
+							,	opacity:	"0.001"
+							,	zIndex:		9
+							,	position:	"absolute"
+							,	width:		this.offsetWidth+"px"
+							,	height:		this.offsetHeight+"px"
+							})
+							.css($(this).offset()) // top & left
+							.appendTo(this.parentNode) // put div INSIDE pane to avoid zIndex issues
+						;
+					});
+				}
+
+			,	drag: function (e, ui) {
+					if (!draggingClassSet) { // can only add classes after clone has been added to the DOM
+						$(".ui-draggable-dragging")
+							.addClass( draggingClass +" "+ draggingPaneClass ) // add dragging classes
+							.children().css("visibility","hidden") // hide toggler inside dragged resizer-bar
+						;
+						draggingClassSet = true;
+						// draggable bug!? RE-SET zIndex to prevent E/W resize-bar showing through N/S pane!
+						if (s.isSliding) $Ps[pane].css("zIndex", c.zIndex.sliding);
+					}
+					// CONTAIN RESIZER-BAR TO RESIZING LIMITS
+					if		(ui.position[edge] < s.minPosition) ui.position[edge] = s.minPosition;
+					else if (ui.position[edge] > s.maxPosition) ui.position[edge] = s.maxPosition;
+				}
+
+			,	stop: function (e, ui) {
+					var 
+						dragPos	= ui.position
+					,	resizerPos
+					,	newSize
+					;
+					$R.removeClass( dragClass +" "+ dragPaneClass ); // remove drag classes
+	
+					switch (pane) {
+						case "north":	resizerPos = dragPos.top; break;
+						case "west":	resizerPos = dragPos.left; break;
+						case "south":	resizerPos = cDims.outerHeight - dragPos.top - $R.outerHeight(); break;
+						case "east":	resizerPos = cDims.outerWidth - dragPos.left - $R.outerWidth(); break;
+					}
+					// remove container margin from resizer position to get the pane size
+					newSize = resizerPos - cDims[ c[pane].edge ];
+
+					sizePane(pane, newSize);
+
+					// UN-MASK PANES MASKED IN drag.start
+					$("div.ui-layout-mask").remove(); // Remove iframe masks	
+
+					s.isResizing = false;
+				}
+
+			});
+		});
+	};
+
+
+
+/*
+ * ###########################
+ *       ACTION METHODS
+ * ###########################
+ */
+
+	/**
+	 * hide / show
+	 *
+	 * Completely 'hides' a pane, including its spacing - as if it does not exist
+	 * The pane is not actually 'removed' from the source, so can use 'show' to un-hide it
+	 *
+	 * @param String  pane   The pane being hidden, ie: north, south, east, or west
+	 */
+	var hide = function (pane, onInit) {
+		var
+			o	= options[pane]
+		,	s	= state[pane]
+		,	$P	= $Ps[pane]
+		,	$R	= $Rs[pane]
+		;
+		if (!$P || s.isHidden) return; // pane does not exist OR is already hidden
+
+		// onhide_start callback - will CANCEL hide if returns false
+		if (false === execUserCallback(pane, o.onhide_start)) return;
+
+		s.isSliding = false; // just in case
+
+		// now hide the elements
+		if ($R) $R.hide(); // hide resizer-bar
+		if (onInit || s.isClosed) {
+			s.isClosed = true; // to trigger open-animation on show()
+			s.isHidden  = true;
+			$P.hide(); // no animation when loading page
+			sizeMidPanes(c[pane].dir == "horz" ? "all" : "center");
+			execUserCallback(pane, o.onhide_end || o.onhide);
+		}
+		else {
+			s.isHiding = true; // used by onclose
+			close(pane, false); // adjust all panes to fit
+			//s.isHidden  = true; - will be set by close - if not cancelled
+		}
+	};
+
+	var show = function (pane, openPane) {
+		var
+			o	= options[pane]
+		,	s	= state[pane]
+		,	$P	= $Ps[pane]
+		,	$R	= $Rs[pane]
+		;
+		if (!$P || !s.isHidden) return; // pane does not exist OR is not hidden
+
+		// onhide_start callback - will CANCEL hide if returns false
+		if (false === execUserCallback(pane, o.onshow_start)) return;
+
+		s.isSliding = false; // just in case
+		s.isShowing = true; // used by onopen/onclose
+		//s.isHidden  = false; - will be set by open/close - if not cancelled
+
+		// now show the elements
+		if ($R && o.spacing_open > 0) $R.show();
+		if (openPane === false)
+			close(pane, true); // true = force
+		else
+			open(pane); // adjust all panes to fit
+	};
+
+
+	/**
+	 * toggle
+	 *
+	 * Toggles a pane open/closed by calling either open or close
+	 *
+	 * @param String  pane   The pane being toggled, ie: north, south, east, or west
+	 */
+	var toggle = function (pane) {
+		var s = state[pane];
+		if (s.isHidden)
+			show(pane); // will call 'open' after unhiding it
+		else if (s.isClosed)
+			open(pane);
+		else
+			close(pane);
+	};
+
+	/**
+	 * close
+	 *
+	 * Close the specified pane (animation optional), and resize all other panes as needed
+	 *
+	 * @param String  pane   The pane being closed, ie: north, south, east, or west
+	 */
+	var close = function (pane, force, noAnimation) {
+		var 
+			$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	$T		= $Ts[pane]
+		,	o		= options[pane]
+		,	s		= state[pane]
+		,	doFX	= !noAnimation && !s.isClosed && (o.fxName_close != "none")
+		,	edge	= c[pane].edge
+		,	rClass	= o.resizerClass
+		,	tClass	= o.togglerClass
+		,	_pane	= "-"+ pane // used for classNames
+		,	_open	= "-open"
+		,	_sliding= "-sliding"
+		,	_closed	= "-closed"
+		// 	transfer logic vars to temp vars
+		,	isShowing = s.isShowing
+		,	isHiding = s.isHiding
+		;
+		// now clear the logic vars
+		delete s.isShowing;
+		delete s.isHiding;
+
+		if (!$P || (!o.resizable && !o.closable)) return; // invalid request
+		else if (!force && s.isClosed && !isShowing) return; // already closed
+
+		if (c.isLayoutBusy) { // layout is 'busy' - probably with an animation
+			setFlowCallback("close", pane, force); // set a callback for this action, if possible
+			return; // ABORT 
+		}
+
+		// onclose_start callback - will CANCEL hide if returns false
+		// SKIP if just 'showing' a hidden pane as 'closed'
+		if (!isShowing && false === execUserCallback(pane, o.onclose_start)) return;
+
+		// SET flow-control flags
+		c[pane].isMoving = true;
+		c.isLayoutBusy = true;
+
+		s.isClosed = true;
+		// update isHidden BEFORE sizing panes
+		if (isHiding) s.isHidden = true;
+		else if (isShowing) s.isHidden = false;
+
+		// sync any 'pin buttons'
+		syncPinBtns(pane, false);
+
+		// resize panes adjacent to this one
+		if (!s.isSliding) sizeMidPanes(c[pane].dir == "horz" ? "all" : "center");
+
+		// if this pane has a resizer bar, move it now
+		if ($R) {
+			$R
+				.css(edge, cDims[edge]) // move the resizer bar
+				.removeClass( rClass+_open +" "+ rClass+_pane+_open )
+				.removeClass( rClass+_sliding +" "+ rClass+_pane+_sliding )
+				.addClass( rClass+_closed +" "+ rClass+_pane+_closed )
+			;
+			// DISABLE 'resizing' when closed - do this BEFORE bindStartSlidingEvent
+			if (o.resizable)
+				$R
+					.draggable("disable")
+					.css("cursor", "default")
+					.attr("title","")
+				;
+			// if pane has a toggler button, adjust that too
+			if ($T) {
+				$T
+					.removeClass( tClass+_open +" "+ tClass+_pane+_open )
+					.addClass( tClass+_closed +" "+ tClass+_pane+_closed )
+					.attr("title", o.togglerTip_closed) // may be blank
+				;
+			}
+			sizeHandles(); // resize 'length' and position togglers for adjacent panes
+		}
+
+		// ANIMATE 'CLOSE' - if no animation, then was ALREADY shown above
+		if (doFX) {
+			lockPaneForFX(pane, true); // need to set left/top so animation will work
+			$P.hide( o.fxName_close, o.fxSettings_close, o.fxSpeed_close, function () {
+				lockPaneForFX(pane, false); // undo
+				if (!s.isClosed) return; // pane was opened before animation finished!
+				close_2();
+			});
+		}
+		else {
+			$P.hide(); // just hide pane NOW
+			close_2();
+		}
+
+		// SUBROUTINE
+		function close_2 () {
+			bindStartSlidingEvent(pane, true); // will enable if state.PANE.isSliding = true
+
+			// onclose callback - UNLESS just 'showing' a hidden pane as 'closed'
+			if (!isShowing)	execUserCallback(pane, o.onclose_end || o.onclose);
+			// onhide OR onshow callback
+			if (isShowing)	execUserCallback(pane, o.onshow_end || o.onshow);
+			if (isHiding)	execUserCallback(pane, o.onhide_end || o.onhide);
+
+			// internal flow-control callback
+			execFlowCallback(pane);
+		}
+	};
+
+	/**
+	 * open
+	 *
+	 * Open the specified pane (animation optional), and resize all other panes as needed
+	 *
+	 * @param String  pane   The pane being opened, ie: north, south, east, or west
+	 */
+	var open = function (pane, slide, noAnimation) {
+		var 
+			$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		,	$T		= $Ts[pane]
+		,	o		= options[pane]
+		,	s		= state[pane]
+		,	doFX	= !noAnimation && s.isClosed && (o.fxName_open != "none")
+		,	edge	= c[pane].edge
+		,	rClass	= o.resizerClass
+		,	tClass	= o.togglerClass
+		,	_pane	= "-"+ pane // used for classNames
+		,	_open	= "-open"
+		,	_closed	= "-closed"
+		,	_sliding= "-sliding"
+		// 	transfer logic var to temp var
+		,	isShowing = s.isShowing
+		;
+		// now clear the logic var
+		delete s.isShowing;
+
+		if (!$P || (!o.resizable && !o.closable)) return; // invalid request
+		else if (!s.isClosed && !s.isSliding) return; // already open
+
+		// pane can ALSO be unhidden by just calling show(), so handle this scenario
+		if (s.isHidden && !isShowing) {
+			show(pane, true);
+			return;
+		}
+
+		if (c.isLayoutBusy) { // layout is 'busy' - probably with an animation
+			setFlowCallback("open", pane, slide); // set a callback for this action, if possible
+			return; // ABORT
+		}
+
+		// onopen_start callback - will CANCEL hide if returns false
+		if (false === execUserCallback(pane, o.onopen_start)) return;
+
+		// SET flow-control flags
+		c[pane].isMoving = true;
+		c.isLayoutBusy = true;
+
+		// 'PIN PANE' - stop sliding
+		if (s.isSliding && !slide) // !slide = 'open pane normally' - NOT sliding
+			bindStopSlidingEvents(pane, false); // will set isSliding=false
+
+		s.isClosed = false;
+		// update isHidden BEFORE sizing panes
+		if (isShowing) s.isHidden = false;
+
+		// Container size may have changed - shrink the pane if now 'too big'
+		setPaneMinMaxSizes(pane); // update pane-state
+		if (s.size > s.maxSize) // pane is too big! resize it before opening
+			$P.css( c[pane].sizeType, max(1, cssSize(pane, s.maxSize)) );
+
+		bindStartSlidingEvent(pane, false); // remove trigger event from resizer-bar
+
+		if (doFX) { // ANIMATE
+			lockPaneForFX(pane, true); // need to set left/top so animation will work
+			$P.show( o.fxName_open, o.fxSettings_open, o.fxSpeed_open, function() {
+				lockPaneForFX(pane, false); // undo
+				if (s.isClosed) return; // pane was closed before animation finished!
+				open_2(); // continue
+			});
+		}
+		else {// no animation
+			$P.show();	// just show pane and...
+			open_2();	// continue
+		}
+
+		// SUBROUTINE
+		function open_2 () {
+			// NOTE: if isSliding, then other panes are NOT 'resized'
+			if (!s.isSliding) // resize all panes adjacent to this one
+				sizeMidPanes(c[pane].dir=="vert" ? "center" : "all");
+
+			// if this pane has a toggler, move it now
+			if ($R) {
+				$R
+					.css(edge, cDims[edge] + getPaneSize(pane)) // move the toggler
+					.removeClass( rClass+_closed +" "+ rClass+_pane+_closed )
+					.addClass( rClass+_open +" "+ rClass+_pane+_open )
+					.addClass( !s.isSliding ? "" : rClass+_sliding +" "+ rClass+_pane+_sliding )
+				;
+				if (o.resizable)
+					$R
+						.draggable("enable")
+						.css("cursor", o.resizerCursor)
+						.attr("title", o.resizerTip)
+					;
+				else
+					$R.css("cursor", "default"); // n-resize, s-resize, etc
+				// if pane also has a toggler button, adjust that too
+				if ($T) {
+					$T
+						.removeClass( tClass+_closed +" "+ tClass+_pane+_closed )
+						.addClass( tClass+_open +" "+ tClass+_pane+_open )
+						.attr("title", o.togglerTip_open) // may be blank
+					;
+				}
+				sizeHandles("all"); // resize resizer & toggler sizes for all panes
+			}
+
+			// resize content every time pane opens - to be sure
+			sizeContent(pane);
+
+			// sync any 'pin buttons'
+			syncPinBtns(pane, !s.isSliding);
+
+			// onopen callback
+			execUserCallback(pane, o.onopen_end || o.onopen);
+
+			// onshow callback
+			if (isShowing) execUserCallback(pane, o.onshow_end || o.onshow);
+
+			// internal flow-control callback
+			execFlowCallback(pane);
+		}
+	};
+	
+
+	/**
+	 * lockPaneForFX
+	 *
+	 * Must set left/top on East/South panes so animation will work properly
+	 *
+	 * @param String  pane  The pane to lock, 'east' or 'south' - any other is ignored!
+	 * @param Boolean  doLock  true = set left/top, false = remove
+	 */
+	var lockPaneForFX = function (pane, doLock) {
+		var $P = $Ps[pane];
+		if (doLock) {
+			$P.css({ zIndex: c.zIndex.animation }); // overlay all elements during animation
+			if (pane=="south")
+				$P.css({ top: cDims.top + cDims.innerHeight - $P.outerHeight() });
+			else if (pane=="east")
+				$P.css({ left: cDims.left + cDims.innerWidth - $P.outerWidth() });
+		}
+		else {
+			if (!state[pane].isSliding) $P.css({ zIndex: c.zIndex.pane_normal });
+			if (pane=="south")
+				$P.css({ top: "auto" });
+			else if (pane=="east")
+				$P.css({ left: "auto" });
+		}
+	};
+
+
+	/**
+	 * bindStartSlidingEvent
+	 *
+	 * Toggle sliding functionality of a specific pane on/off by adding removing 'slide open' trigger
+	 *
+	 * @callers  open(), close()
+	 * @param String  pane  The pane to enable/disable, 'north', 'south', etc.
+	 * @param Boolean  enable  Enable or Disable sliding?
+	 */
+	var bindStartSlidingEvent = function (pane, enable) {
+		var 
+			o		= options[pane]
+		,	$R		= $Rs[pane]
+		,	trigger	= o.slideTrigger_open
+		;
+		if (!$R || !o.slidable) return;
+		// make sure we have a valid event
+		if (trigger != "click" && trigger != "dblclick" && trigger != "mouseover") trigger = "click";
+		$R
+			// add or remove trigger event
+			[enable ? "bind" : "unbind"](trigger, slideOpen)
+			// set the appropriate cursor & title/tip
+			.css("cursor", (enable ? o.sliderCursor: "default"))
+			.attr("title", (enable ? o.sliderTip : ""))
+		;
+	};
+
+	/**
+	 * bindStopSlidingEvents
+	 *
+	 * Add or remove 'mouseout' events to 'slide close' when pane is 'sliding' open or closed
+	 * Also increases zIndex when pane is sliding open
+	 * See bindStartSlidingEvent for code to control 'slide open'
+	 *
+	 * @callers  slideOpen(), slideClosed()
+	 * @param String  pane  The pane to process, 'north', 'south', etc.
+	 * @param Boolean  isOpen  Is pane open or closed?
+	 */
+	var bindStopSlidingEvents = function (pane, enable) {
+		var 
+			o		= options[pane]
+		,	s		= state[pane]
+		,	trigger	= o.slideTrigger_close
+		,	action	= (enable ? "bind" : "unbind") // can't make 'unbind' work! - see disabled code below
+		,	$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		;
+
+		s.isSliding = enable; // logic
+		clearTimer(pane, "closeSlider"); // just in case
+
+		// raise z-index when sliding
+		$P.css({ zIndex: (enable ? c.zIndex.sliding : c.zIndex.pane_normal) });
+		$R.css({ zIndex: (enable ? c.zIndex.sliding : c.zIndex.resizer_normal) });
+
+		// make sure we have a valid event
+		if (trigger != "click" && trigger != "mouseout") trigger = "mouseout";
+
+		// when trigger is 'mouseout', must cancel timer when mouse moves between 'pane' and 'resizer'
+		if (enable) { // BIND trigger events
+			$P.bind(trigger, slideClosed );
+			$R.bind(trigger, slideClosed );
+			if (trigger = "mouseout") {
+				$P.bind("mouseover", cancelMouseOut );
+				$R.bind("mouseover", cancelMouseOut );
+			}
+		}
+		else { // UNBIND trigger events
+			// TODO: why does unbind of a 'single function' not work reliably?
+			//$P[action](trigger, slideClosed );
+			$P.unbind(trigger);
+			$R.unbind(trigger);
+			if (trigger = "mouseout") {
+				//$P[action]("mouseover", cancelMouseOut );
+				$P.unbind("mouseover");
+				$R.unbind("mouseover");
+				clearTimer(pane, "closeSlider");
+			}
+		}
+
+		// SUBROUTINE for mouseout timer clearing
+		function cancelMouseOut (evt) {
+			clearTimer(pane, "closeSlider");
+			evt.stopPropagation();
+		}
+	};
+
+	var slideOpen = function () {
+		var pane = $(this).attr("resizer"); // attr added by initHandles
+		if (state[pane].isClosed) { // skip if already open!
+			bindStopSlidingEvents(pane, true); // pane is opening, so BIND trigger events to close it
+			open(pane, true); // true = slide - ie, called from here!
+		}
+	};
+
+	var slideClosed = function () {
+		var
+			$E = $(this)
+		,	pane = $E.attr("pane") || $E.attr("resizer")
+		,	o = options[pane]
+		,	s = state[pane]
+		;
+		if (s.isClosed || s.isResizing)
+			return; // skip if already closed OR in process of resizing
+		else if (o.slideTrigger_close == "click")
+			close_NOW(); // close immediately onClick
+		else // trigger = mouseout - use a delay
+			setTimer(pane, "closeSlider", close_NOW, 300); // .3 sec delay
+
+		// SUBROUTINE for timed close
+		function close_NOW () {
+			bindStopSlidingEvents(pane, false); // pane is being closed, so UNBIND trigger events
+			if (!s.isClosed) close(pane); // skip if already closed!
+		}
+	};
+
+
+	/**
+	 * sizePane
+	 *
+	 * @callers  initResizable.stop()
+	 * @param String  pane   The pane being resized - usually west or east, but potentially north or south
+	 * @param Integer  newSize  The new size for this pane - will be validated
+	 */
+	var sizePane = function (pane, size) {
+		// TODO: accept "auto" as size, and size-to-fit pane content
+		var 
+			edge	= c[pane].edge
+		,	dir		= c[pane].dir
+		,	o		= options[pane]
+		,	s		= state[pane]
+		,	$P		= $Ps[pane]
+		,	$R		= $Rs[pane]
+		;
+		// calculate 'current' min/max sizes
+		setPaneMinMaxSizes(pane); // update pane-state
+		// compare/update calculated min/max to user-options
+		s.minSize = max(s.minSize, o.minSize);
+		if (o.maxSize > 0) s.maxSize = min(s.maxSize, o.maxSize);
+		// validate passed size
+		size = max(size, s.minSize);
+		size = min(size, s.maxSize);
+		s.size = size; // update state
+
+		// move the resizer bar and resize the pane
+		$R.css( edge, size + cDims[edge] );
+		$P.css( c[pane].sizeType, max(1, cssSize(pane, size)) );
+
+		// resize all the adjacent panes, and adjust their toggler buttons
+		if (!s.isSliding) sizeMidPanes(dir=="horz" ? "all" : "center");
+		sizeHandles();
+		sizeContent(pane);
+		execUserCallback(pane, o.onresize_end || o.onresize);
+	};
+
+	/**
+	 * sizeMidPanes
+	 *
+	 * @callers  create(), open(), close(), onWindowResize()
+	 */
+	var sizeMidPanes = function (panes, overrideDims, onInit) {
+		if (!panes || panes == "all") panes = "east,west,center";
+
+		var d = getPaneDims();
+		if (overrideDims) $.extend( d, overrideDims );
+
+		$.each(panes.split(","), function() {
+			if (!$Ps[this]) return; // NO PANE - skip
+			var 
+				pane	= str(this)
+			,	o		= options[pane]
+			,	s		= state[pane]
+			,	$P		= $Ps[pane]
+			,	$R		= $Rs[pane]
+			,	hasRoom	= true
+			,	CSS		= {}
+			;
+
+			if (pane == "center") {
+				d = getPaneDims(); // REFRESH Dims because may have just 'unhidden' East or West pane after a 'resize'
+				CSS = $.extend( {}, d ); // COPY ALL of the paneDims
+				CSS.width  = max(1, cssW(pane, CSS.width));
+				CSS.height = max(1, cssH(pane, CSS.height));
+				hasRoom = (CSS.width > 1 && CSS.height > 1);
+				/*
+				 * Extra CSS for IE6 or IE7 in Quirks-mode - add 'width' to NORTH/SOUTH panes
+				 * Normally these panes have only 'left' & 'right' positions so pane auto-sizes
+				 */
+				if ($.browser.msie && (!$.boxModel || $.browser.version < 7)) {
+					if ($Ps.north) $Ps.north.css({ width: cssW($Ps.north, cDims.innerWidth) });
+					if ($Ps.south) $Ps.south.css({ width: cssW($Ps.south, cDims.innerWidth) });
+				}
+			}
+			else { // for east and west, set only the height
+				CSS.top = d.top;
+				CSS.bottom = d.bottom;
+				CSS.height = max(1, cssH(pane, d.height));
+				hasRoom = (CSS.height > 1);
+			}
+
+			if (hasRoom) {
+				$P.css(CSS);
+				if (s.noRoom) {
+					s.noRoom = false;
+					if (s.isHidden) return;
+					else show(pane, !s.isClosed);
+					/* OLD CODE - keep until sure line above works right!
+					if (!s.isClosed) $P.show(); // in case was previously hidden due to NOT hasRoom
+					if ($R) $R.show();
+					*/
+				}
+				if (!onInit) {
+					sizeContent(pane);
+					execUserCallback(pane, o.onresize_end || o.onresize);
+				}
+			}
+			else if (!s.noRoom) { // no room for pane, so just hide it (if not already)
+				s.noRoom = true; // update state
+				if (s.isHidden) return;
+				if (onInit) { // skip onhide callback and other logic onLoad
+					$P.hide();
+					if ($R) $R.hide();
+				}
+				else hide(pane);
+			}
+		});
+	};
+
+
+	var sizeContent = function (panes) {
+		if (!panes || panes == "all") panes = c.allPanes;
+
+		$.each(panes.split(","), function() {
+			if (!$Cs[this]) return; // NO CONTENT - skip
+			var 
+				pane	= str(this)
+			,	ignore	= options[pane].contentIgnoreSelector
+			,	$P		= $Ps[pane]
+			,	$C		= $Cs[pane]
+			,	e_C		= $C[0]		// DOM element
+			,	height	= cssH($P);	// init to pane.innerHeight
+			;
+			$P.children().each(function() {
+				if (this == e_C) return; // Content elem - skip
+				var $E = $(this);
+				if (!ignore || !$E.is(ignore))
+					height -= $E.outerHeight();
+			});
+			if (height > 0)
+				height = cssH($C, height);
+			if (height < 1)
+				$C.hide(); // no room for content!
+			else
+				$C.css({ height: height }).show();
+		});
+	};
+
+
+	/**
+	 * sizeHandles
+	 *
+	 * Called every time a pane is opened, closed, or resized to slide the togglers to 'center' and adjust their length if necessary
+	 *
+	 * @callers  initHandles(), open(), close(), resizeAll()
+	 */
+	var sizeHandles = function (panes, onInit) {
+		if (!panes || panes == "all") panes = c.borderPanes;
+
+		$.each(panes.split(","), function() {
+			var 
+				pane	= str(this)
+			,	o		= options[pane]
+			,	s		= state[pane]
+			,	$P		= $Ps[pane]
+			,	$R		= $Rs[pane]
+			,	$T		= $Ts[pane]
+			;
+			if (!$P || !$R || (!o.resizable && !o.closable)) return; // skip
+
+			var 
+				dir			= c[pane].dir
+			,	_state		= (s.isClosed ? "_closed" : "_open")
+			,	spacing		= o["spacing"+ _state]
+			,	togAlign	= o["togglerAlign"+ _state]
+			,	togLen		= o["togglerLength"+ _state]
+			,	paneLen
+			,	offset
+			,	CSS = {}
+			;
+			if (spacing == 0) {
+				$R.hide();
+				return;
+			}
+			else if (!s.noRoom && !s.isHidden) // skip if resizer was hidden for any reason
+				$R.show(); // in case was previously hidden
+
+			// Resizer Bar is ALWAYS same width/height of pane it is attached to
+			if (dir == "horz") { // north/south
+				paneLen = $P.outerWidth();
+				$R.css({
+					width:	max(1, cssW($R, paneLen)) // account for borders & padding
+				,	height:	max(1, cssH($R, spacing)) // ditto
+				,	left:	cssNum($P, "left")
+				});
+			}
+			else { // east/west
+				paneLen = $P.outerHeight();
+				$R.css({
+					height:	max(1, cssH($R, paneLen)) // account for borders & padding
+				,	width:	max(1, cssW($R, spacing)) // ditto
+				,	top:	cDims.top + getPaneSize("north", true)
+				//,	top:	cssNum($Ps["center"], "top")
+				});
+				
+			}
+
+			if ($T) {
+				if (togLen == 0 || (s.isSliding && o.hideTogglerOnSlide)) {
+					$T.hide(); // always HIDE the toggler when 'sliding'
+					return;
+				}
+				else
+					$T.show(); // in case was previously hidden
+
+				if (!(togLen > 0) || togLen == "100%" || togLen > paneLen) {
+					togLen = paneLen;
+					offset = 0;
+				}
+				else { // calculate 'offset' based on options.PANE.togglerAlign_open/closed
+					if (typeof togAlign == "string") {
+						switch (togAlign) {
+							case "top":
+							case "left":	offset = 0;
+											break;
+							case "bottom":
+							case "right":	offset = paneLen - togLen;
+											break;
+							case "middle":
+							case "center":
+							default:		offset = Math.floor((paneLen - togLen) / 2); // 'default' catches typos
+						}
+					}
+					else { // togAlign = number
+						var x = parseInt(togAlign); //
+						if (togAlign >= 0) offset = x;
+						else offset = paneLen - togLen + x; // NOTE: x is negative!
+					}
+				}
+
+				var
+					$TC_o = (o.togglerContent_open   ? $T.children(".content-open") : false)
+				,	$TC_c = (o.togglerContent_closed ? $T.children(".content-closed")   : false)
+				,	$TC   = (s.isClosed ? $TC_c : $TC_o)
+				;
+				if ($TC_o) $TC_o.css("display", s.isClosed ? "none" : "block");
+				if ($TC_c) $TC_c.css("display", s.isClosed ? "block" : "none");
+
+				if (dir == "horz") { // north/south
+					var width = cssW($T, togLen);
+					$T.css({
+						width:	max(0, width)  // account for borders & padding
+					,	height:	max(1, cssH($T, spacing)) // ditto
+					,	left:	offset // TODO: VERIFY that toggler  positions correctly for ALL values
+					});
+					if ($TC) // CENTER the toggler content SPAN
+						$TC.css("marginLeft", Math.floor((width-$TC.outerWidth())/2)); // could be negative
+				}
+				else { // east/west
+					var height = cssH($T, togLen);
+					$T.css({
+						height:	max(0, height)  // account for borders & padding
+					,	width:	max(1, cssW($T, spacing)) // ditto
+					,	top:	offset // POSITION the toggler
+					});
+					if ($TC) // CENTER the toggler content SPAN
+						$TC.css("marginTop", Math.floor((height-$TC.outerHeight())/2)); // could be negative
+				}
+
+
+			}
+
+			// DONE measuring and sizing this resizer/toggler, so can be 'hidden' now
+			if (onInit && o.initHidden) {
+				$R.hide();
+				if ($T) $T.hide();
+			}
+		});
+	};
+
+
+	/**
+	 * resizeAll
+	 *
+	 * @callers  window.onresize(), callbacks or custom code
+	 */
+	var resizeAll = function () {
+		var
+			oldW	= cDims.innerWidth
+		,	oldH	= cDims.innerHeight
+		;
+		cDims = state.container = getElemDims($Container); // UPDATE container dimensions
+
+		var
+			checkH	= (cDims.innerHeight < oldH)
+		,	checkW	= (cDims.innerWidth < oldW)
+		,	s, dir
+		;
+
+		if (checkH || checkW)
+			// NOTE special order for sizing: S-N-E-W
+			$.each(["south","north","east","west"], function(i,pane) {
+				s = state[pane];
+				dir = c[pane].dir;
+				if (!s.isClosed && ((checkH && dir=="horz") || (checkW && dir=="vert"))) {
+					setPaneMinMaxSizes(pane); // update pane-state
+					// shrink pane if 'too big' to fit
+					if (s.size > s.maxSize)
+						sizePane(pane, s.maxSize);
+				}
+			});
+
+		sizeMidPanes("all");
+		sizeHandles("all"); // reposition the toggler elements
+	};
+
+
+	/**
+	 * keyDown
+	 *
+	 * Capture keys when enableCursorHotkey - toggle pane if hotkey pressed
+	 *
+	 * @callers  document.keydown()
+	 */
+	function keyDown (evt) {
+		if (!evt) return true;
+		var code = evt.keyCode;
+		if (code < 33) return true; // ignore special keys: ENTER, TAB, etc
+
+		var
+			PANE = {
+				38: "north" // Up Cursor
+			,	40: "south" // Down Cursor
+			,	37: "west"  // Left Cursor
+			,	39: "east"  // Right Cursor
+			}
+		,	isCursorKey = (code >= 37 && code <= 40)
+		,	ALT = evt.altKey // no worky!
+		,	SHIFT = evt.shiftKey
+		,	CTRL = evt.ctrlKey
+		,	pane = false
+		,	s, o, k, m, el
+		;
+
+		if (!CTRL && !SHIFT)
+			return true; // no modifier key - abort
+		else if (isCursorKey && options[PANE[code]].enableCursorHotkey) // valid cursor-hotkey
+			pane = PANE[code];
+		else // check to see if this matches a custom-hotkey
+			$.each(c.borderPanes.split(","), function(i,p) { // loop each pane to check its hotkey
+				o = options[p];
+				k = o.customHotkey;
+				m = o.customHotkeyModifier; // if missing or invalid, treated as "CTRL+SHIFT"
+				if ((SHIFT && m=="SHIFT") || (CTRL && m=="CTRL") || (CTRL && SHIFT)) { // Modifier matches
+					if (k && code == (isNaN(k) || k <= 9 ? k.toUpperCase().charCodeAt(0) : k)) { // Key matches
+						pane = p;
+						return false; // BREAK
+					}
+				}
+			});
+
+		if (!pane) return true; // no hotkey - abort
+
+		// validate pane
+		o = options[pane]; // get pane options
+		s = state[pane]; // get pane options
+		if (!o.enableCursorHotkey || s.isHidden || !$Ps[pane]) return true;
+
+		// see if user is in a 'form field' because may be 'selecting text'!
+		el = evt.target || evt.srcElement;
+		if (el && SHIFT && isCursorKey && (el.tagName=="TEXTAREA" || (el.tagName=="INPUT" && (code==37 || code==39))))
+			return true; // allow text-selection
+
+		// SYNTAX NOTES
+		// use "returnValue=false" to abort keystroke but NOT abort function - can run another command afterwards
+		// use "return false" to abort keystroke AND abort function
+		toggle(pane);
+		evt.stopPropagation();
+		evt.returnValue = false; // CANCEL key
+		return false;
+	};
+
+
+/*
+ * ###########################
+ *     UTILITY METHODS
+ *   called externally only
+ * ###########################
+ */
+
+	function allowOverflow (elem) {
+		if (this && this.tagName) elem = this; // BOUND to element
+		var $P;
+		if (typeof elem=="string")
+			$P = $Ps[elem];
+		else {
+			if ($(elem).attr("pane")) $P = $(elem);
+			else $P = $(elem).parents("div[pane]:first");
+		}
+		if (!$P.length) return; // INVALID
+
+		var
+			pane	= $P.attr("pane")
+		,	s		= state[pane]
+		;
+
+		// if pane is already raised, then reset it before doing it again!
+		// this would happen if allowOverflow is attached to BOTH the pane and an element 
+		if (s.cssSaved)
+			resetOverflow(pane); // reset previous CSS before continuing
+
+		// if pane is raised by sliding or resizing, or it's closed, then abort
+		if (s.isSliding || s.isResizing || s.isClosed) {
+			s.cssSaved = false;
+			return;
+		}
+
+		var
+			newCSS	= { zIndex: (c.zIndex.pane_normal + 1) }
+		,	curCSS	= {}
+		,	of		= $P.css("overflow")
+		,	ofX		= $P.css("overflowX")
+		,	ofY		= $P.css("overflowY")
+		;
+		// determine which, if any, overflow settings need to be changed
+		if (of != "visible") {
+			curCSS.overflow = of;
+			newCSS.overflow = "visible";
+		}
+		if (ofX && ofX != "visible" && ofX != "auto") {
+			curCSS.overflowX = ofX;
+			newCSS.overflowX = "visible";
+		}
+		if (ofY && ofY != "visible" && ofY != "auto") {
+			curCSS.overflowY = ofX;
+			newCSS.overflowY = "visible";
+		}
+
+		// save the current overflow settings - even if blank!
+		s.cssSaved = curCSS;
+
+		// apply new CSS to raise zIndex and, if necessary, make overflow 'visible'
+		$P.css( newCSS );
+
+		// make sure the zIndex of all other panes is normal
+		$.each(c.allPanes.split(","), function(i, p) {
+			if (p != pane) resetOverflow(p);
+		});
+
+	};
+
+	function resetOverflow (elem) {
+		if (this && this.tagName) elem = this; // BOUND to element
+		var $P;
+		if (typeof elem=="string")
+			$P = $Ps[elem];
+		else {
+			if ($(elem).hasClass("ui-layout-pane")) $P = $(elem);
+			else $P = $(elem).parents("div[pane]:first");
+		}
+		if (!$P.length) return; // INVALID
+
+		var
+			pane	= $P.attr("pane")
+		,	s		= state[pane]
+		,	CSS		= s.cssSaved || {}
+		;
+		// reset the zIndex
+		if (!s.isSliding && !s.isResizing)
+			$P.css("zIndex", c.zIndex.pane_normal);
+
+		// reset Overflow - if necessary
+		$P.css( CSS );
+
+		// clear var
+		s.cssSaved = false;
+	};
+
+
+	/**
+	* getBtn
+	*
+	* Helper function to validate params received by addButton utilities
+	*
+	* @param String   selector 	jQuery selector for button, eg: ".ui-layout-north .toggle-button"
+	* @param String   pane 		Name of the pane the button is for: 'north', 'south', etc.
+	* @returns  If both params valid, the element matching 'selector' in a jQuery wrapper - otherwise 'false'
+	*/
+	function getBtn(selector, pane, action) {
+		var
+			$E = $(selector)
+		,	err = "Error Adding Button \n\nInvalid "
+		;
+		if (!$E.length) // element not found
+			alert(err+"selector: "+ selector);
+		else if (c.borderPanes.indexOf(pane) == -1) // invalid 'pane' sepecified
+			alert(err+"pane: "+ pane);
+		else { // VALID
+			var btn = options[pane].buttonClass +"-"+ action;
+			$E.addClass( btn +" "+ btn +"-"+ pane );
+			return $E;
+		}
+		return false;  // INVALID
+	};
+
+
+	/**
+	* addToggleBtn
+	*
+	* Add a custom Toggler button for a pane
+	*
+	* @param String   selector 	jQuery selector for button, eg: ".ui-layout-north .toggle-button"
+	* @param String   pane 		Name of the pane the button is for: 'north', 'south', etc.
+	*/
+	function addToggleBtn (selector, pane) {
+		var $E = getBtn(selector, pane, "toggle");
+		if ($E)
+			$E
+				.attr("title", state[pane].isClosed ? "Open" : "Close")
+				.click(function (evt) {
+					toggle(pane);
+					evt.stopPropagation();
+				})
+			;
+	};
+
+	/**
+	* addOpenBtn
+	*
+	* Add a custom Open button for a pane
+	*
+	* @param String   selector 	jQuery selector for button, eg: ".ui-layout-north .open-button"
+	* @param String   pane 		Name of the pane the button is for: 'north', 'south', etc.
+	*/
+	function addOpenBtn (selector, pane) {
+		var $E = getBtn(selector, pane, "open");
+		if ($E)
+			$E
+				.attr("title", "Open")
+				.click(function (evt) {
+					open(pane);
+					evt.stopPropagation();
+				})
+			;
+	};
+
+	/**
+	* addCloseBtn
+	*
+	* Add a custom Close button for a pane
+	*
+	* @param String   selector 	jQuery selector for button, eg: ".ui-layout-north .close-button"
+	* @param String   pane 		Name of the pane the button is for: 'north', 'south', etc.
+	*/
+	function addCloseBtn (selector, pane) {
+		var $E = getBtn(selector, pane, "close");
+		if ($E)
+			$E
+				.attr("title", "Close")
+				.click(function (evt) {
+					close(pane);
+					evt.stopPropagation();
+				})
+			;
+	};
+
+	/**
+	* addPinBtn
+	*
+	* Add a custom Pin button for a pane
+	*
+	* Four classes are added to the element, based on the paneClass for the associated pane...
+	* Assuming the default paneClass and the pin is 'up', these classes are added for a west-pane pin:
+	*  - ui-layout-pane-pin
+	*  - ui-layout-pane-west-pin
+	*  - ui-layout-pane-pin-up
+	*  - ui-layout-pane-west-pin-up
+	*
+	* @param String   selector 	jQuery selector for button, eg: ".ui-layout-north .ui-layout-pin"
+	* @param String   pane 		Name of the pane the pin is for: 'north', 'south', etc.
+	*/
+	function addPinBtn (selector, pane) {
+		var $E = getBtn(selector, pane, "pin");
+		if ($E) {
+			var s = state[pane];
+			$E.click(function (evt) {
+				setPinState($(this), pane, (s.isSliding || s.isClosed));
+				if (s.isSliding || s.isClosed) open( pane ); // change from sliding to open
+				else close( pane ); // slide-closed
+				evt.stopPropagation();
+			});
+			// add up/down pin attributes and classes
+			setPinState ($E, pane, (!s.isClosed && !s.isSliding));
+			// add this pin to the pane data so we can 'sync it' automatically
+			// PANE.pins key is an array so we can store multiple pins for each pane
+			c[pane].pins.push( selector ); // just save the selector string
+		}
+	};
+
+	/**
+	* syncPinBtns
+	*
+	* INTERNAL function to sync 'pin buttons' when pane is opened or closed
+	* Unpinned means the pane is 'sliding' - ie, over-top of the adjacent panes
+	*
+	* @callers  open(), close()
+	* @params  pane   These are the params returned to callbacks by layout()
+	* @params  doPin  True means set the pin 'down', False means 'up'
+	*/
+	function syncPinBtns (pane, doPin) {
+		$.each(c[pane].pins, function (i, selector) {
+			setPinState($(selector), pane, doPin);
+		});
+	};
+
+	/**
+	* setPinState
+	*
+	* Change the class of the pin button to make it look 'up' or 'down'
+	*
+	* @callers  addPinBtn(), syncPinBtns()
+	* @param Element  $Pin		The pin-span element in a jQuery wrapper
+	* @param Boolean  doPin		True = set the pin 'down', False = set it 'up'
+	* @param String   pinClass	The root classname for pins - will add '-up' or '-down' suffix
+	*/
+	function setPinState ($Pin, pane, doPin) {
+		var updown = $Pin.attr("pin");
+		if (updown && doPin == (updown=="down")) return; // already in correct state
+		var
+			root	= options[pane].buttonClass
+		,	class1	= root +"-pin"
+		,	class2	= class1 +"-"+ pane
+		,	UP1		= class1 + "-up"
+		,	UP2		= class2 + "-up"
+		,	DN1		= class1 + "-down"
+		,	DN2		= class2 + "-down"
+		;
+		$Pin
+			.attr("pin", doPin ? "down" : "up") // logic
+			.attr("title", doPin ? "Un-Pin" : "Pin")
+			.removeClass( doPin ? UP1 : DN1 ) 
+			.removeClass( doPin ? UP2 : DN2 ) 
+			.addClass( doPin ? DN1 : UP1 ) 
+			.addClass( doPin ? DN2 : UP2 ) 
+		;
+	};
+
+
+/*
+ * ###########################
+ * CREATE/RETURN BORDER-LAYOUT
+ * ###########################
+ */
+
+	// init global vars
+	var 
+		$Container = $(this).css({ overflow: "hidden" }) // Container elem
+	,	$Ps		= {} // Panes x4	- set in initPanes()
+	,	$Cs		= {} // Content x4	- set in initPanes()
+	,	$Rs		= {} // Resizers x4	- set in initHandles()
+	,	$Ts		= {} // Togglers x4	- set in initHandles()
+	//	object aliases
+	,	c		= config // alias for config hash
+	,	cDims	= state.container // alias for easy access to 'container dimensions'
+	;
+
+	// create the border layout NOW
+	create();
+
+	// return object pointers to expose data & option Properties, and primary action Methods
+	return {
+		options:		options			// property - options hash
+	,	state:			state			// property - dimensions hash
+	,	panes:			$Ps				// property - object pointers for ALL panes: panes.north, panes.center
+	,	toggle:			toggle			// method - pass a 'pane' ("north", "west", etc)
+	,	open:			open			// method - ditto
+	,	close:			close			// method - ditto
+	,	hide:			hide			// method - ditto
+	,	show:			show			// method - ditto
+	,	resizeContent:	sizeContent		// method - ditto
+	,	sizePane:		sizePane		// method - pass a 'pane' AND a 'size' in pixels
+	,	resizeAll:		resizeAll		// method - no parameters
+	,	addToggleBtn:	addToggleBtn	// utility - pass element selector and 'pane'
+	,	addOpenBtn:		addOpenBtn		// utility - ditto
+	,	addCloseBtn:	addCloseBtn		// utility - ditto
+	,	addPinBtn:		addPinBtn		// utility - ditto
+	,	allowOverflow:	allowOverflow	// utility - pass calling element
+	,	resetOverflow:	resetOverflow	// utility - ditto
+	,	cssWidth:		cssW
+	,	cssHeight:		cssH
+	};
+
+}
+})( jQuery );
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout.min.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout.min.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.layout.min.js	(revision 1516)
@@ -0,0 +1,80 @@
+/*
+ * jquery.layout 1.2.0
+ *
+ * Copyright (c) 2008 
+ *   Fabrizio Balliano (http://www.fabrizioballiano.net)
+ *   Kevin Dalman (http://allpro.net)
+ *
+ * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
+ * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
+ *
+ * $Date: 2008-12-27 02:17:22 +0100 (sab, 27 dic 2008) $
+ * $Rev: 203 $
+ * 
+ * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars
+ */
+(function($){$.fn.layout=function(opts){var
+prefix="ui-layout-",defaults={paneClass:prefix+"pane",resizerClass:prefix+"resizer",togglerClass:prefix+"toggler",togglerInnerClass:prefix+"",buttonClass:prefix+"button",contentSelector:"."+prefix+"content",contentIgnoreSelector:"."+prefix+"ignore"};var options={name:"",scrollToBookmarkOnLoad:true,defaults:{applyDefaultStyles:false,closable:true,resizable:true,slidable:true,contentSelector:defaults.contentSelector,contentIgnoreSelector:defaults.contentIgnoreSelector,paneClass:defaults.paneClass,resizerClass:defaults.resizerClass,togglerClass:defaults.togglerClass,buttonClass:defaults.buttonClass,resizerDragOpacity:1,maskIframesOnResize:true,minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerTip_open:"Close",togglerTip_closed:"Open",resizerTip:"Resize",sliderTip:"Slide Open",sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseout",hideTogglerOnSlide:false,togglerContent_open:"",togglerContent_closed:"",showOverflowOnHover:false,enableCursorHotkey:true,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},initClosed:false,initHidden:false},north:{paneSelector:"."+prefix+"north",size:"auto",resizerCursor:"n-resize"},south:{paneSelector:"."+prefix+"south",size:"auto",resizerCursor:"s-resize"},east:{paneSelector:"."+prefix+"east",size:200,resizerCursor:"e-resize"},west:{paneSelector:"."+prefix+"west",size:200,resizerCursor:"w-resize"},center:{paneSelector:"."+prefix+"center"}};var effects={slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}}};var config={allPanes:"north,south,east,west,center",borderPanes:"north,south,east,west",zIndex:{resizer_normal:1,pane_normal:2,mask:4,sliding:100,resizing:10000,animation:10000},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden",zIndex:1},cssDef:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDef:{background:"#AAA"}},content:{cssReq:{overflow:"auto"},cssDef:{}},defaults:{cssReq:{position:"absolute",margin:0,zIndex:2},cssDef:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{edge:"top",sizeType:"height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{edge:"bottom",sizeType:"height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{edge:"right",sizeType:"width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{edge:"left",sizeType:"width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}};var state={id:Math.floor(Math.random()*10000),container:{},north:{},south:{},east:{},west:{},center:{}};var
+altEdge={top:"bottom",bottom:"top",left:"right",right:"left"},altSide={north:"south",south:"north",east:"west",west:"east"};var isStr=function(o){if(typeof o=="string")return true;else if(typeof o=="object"){try{var match=o.constructor.toString().match(/string/i);return(match!==null);}catch(e){}}return false;};var str=function(o){if(typeof o=="string"||isStr(o))return $.trim(o);else return o;};var min=function(x,y){return Math.min(x,y);};var max=function(x,y){return Math.max(x,y);};var transformData=function(d){var json={defaults:{fxSettings:{}},north:{fxSettings:{}},south:{fxSettings:{}},east:{fxSettings:{}},west:{fxSettings:{}},center:{fxSettings:{}}};d=d||{};if(d.effects||d.defaults||d.north||d.south||d.west||d.east||d.center)json=$.extend(json,d);else
+$.each(d,function(key,val){a=key.split("__");json[a[1]?a[0]:"defaults"][a[1]?a[1]:a[0]]=val;});return json;};var setFlowCallback=function(action,pane,param){var
+cb=action+","+pane+","+(param?1:0),cP,cbPane;$.each(c.borderPanes.split(","),function(i,p){if(c[p].isMoving){bindCallback(p);return false;}});function bindCallback(p,test){cP=c[p];if(!cP.doCallback){cP.doCallback=true;cP.callback=cb;}else{cpPane=cP.callback.split(",")[1];if(cpPane!=p&&cpPane!=pane)bindCallback(cpPane,true);}}};var execFlowCallback=function(pane){var cP=c[pane];c.isLayoutBusy=false;delete cP.isMoving;if(!cP.doCallback||!cP.callback)return;cP.doCallback=false;var
+cb=cP.callback.split(","),param=(cb[2]>0?true:false);if(cb[0]=="open")open(cb[1],param);else if(cb[0]=="close")close(cb[1],param);if(!cP.doCallback)cP.callback=null;};var execUserCallback=function(pane,v_fn){if(!v_fn)return;var fn;try{if(typeof v_fn=="function")fn=v_fn;else if(typeof v_fn!="string")return;else if(v_fn.indexOf(",")>0){var
+args=v_fn.split(","),fn=eval(args[0]);if(typeof fn=="function"&&args.length>1)return fn(args[1]);}else
+fn=eval(v_fn);if(typeof fn=="function")return fn(pane,$Ps[pane],$.extend({},state[pane]),$.extend({},options[pane]),options.name);}catch(ex){}};var cssNum=function($E,prop){var
+val=0,hidden=false,visibility="";if(!$.browser.msie){if($.curCSS($E[0],"display",true)=="none"){hidden=true;visibility=$.curCSS($E[0],"visibility",true);$E.css({display:"block",visibility:"hidden"});}}val=parseInt($.curCSS($E[0],prop,true),10)||0;if(hidden){$E.css({display:"none"});if(visibility&&visibility!="hidden")$E.css({visibility:visibility});}return val;};var cssW=function(e,outerWidth){var $E;if(isStr(e)){e=str(e);$E=$Ps[e];}else
+$E=$(e);if(outerWidth<=0)return 0;else if(!(outerWidth>0))outerWidth=isStr(e)?getPaneSize(e):$E.outerWidth();if(!$.boxModel)return outerWidth;else
+return outerWidth
+-cssNum($E,"paddingLeft")-cssNum($E,"paddingRight")-($.curCSS($E[0],"borderLeftStyle",true)=="none"?0:cssNum($E,"borderLeftWidth"))-($.curCSS($E[0],"borderRightStyle",true)=="none"?0:cssNum($E,"borderRightWidth"));};var cssH=function(e,outerHeight){var $E;if(isStr(e)){e=str(e);$E=$Ps[e];}else
+$E=$(e);if(outerHeight<=0)return 0;else if(!(outerHeight>0))outerHeight=(isStr(e))?getPaneSize(e):$E.outerHeight();if(!$.boxModel)return outerHeight;else
+return outerHeight
+-cssNum($E,"paddingTop")-cssNum($E,"paddingBottom")-($.curCSS($E[0],"borderTopStyle",true)=="none"?0:cssNum($E,"borderTopWidth"))-($.curCSS($E[0],"borderBottomStyle",true)=="none"?0:cssNum($E,"borderBottomWidth"));};var cssSize=function(pane,outerSize){if(c[pane].dir=="horz")return cssH(pane,outerSize);else
+return cssW(pane,outerSize);};var getPaneSize=function(pane,inclSpace){var
+$P=$Ps[pane],o=options[pane],s=state[pane],oSp=(inclSpace?o.spacing_open:0),cSp=(inclSpace?o.spacing_closed:0);if(!$P||s.isHidden)return 0;else if(s.isClosed||(s.isSliding&&inclSpace))return cSp;else if(c[pane].dir=="horz")return $P.outerHeight()+oSp;else
+return $P.outerWidth()+oSp;};var setPaneMinMaxSizes=function(pane){var
+d=cDims,edge=c[pane].edge,dir=c[pane].dir,o=options[pane],s=state[pane],$P=$Ps[pane],$altPane=$Ps[altSide[pane]],paneSpacing=o.spacing_open,altPaneSpacing=options[altSide[pane]].spacing_open,altPaneSize=(!$altPane?0:(dir=="horz"?$altPane.outerHeight():$altPane.outerWidth())),containerSize=(dir=="horz"?d.innerHeight:d.innerWidth),limitSize=containerSize-paneSpacing-altPaneSize-altPaneSpacing,minSize=s.minSize||0,maxSize=Math.min(s.maxSize||9999,limitSize),minPos,maxPos;switch(pane){case"north":minPos=d.offsetTop+minSize;maxPos=d.offsetTop+maxSize;break;case"west":minPos=d.offsetLeft+minSize;maxPos=d.offsetLeft+maxSize;break;case"south":minPos=d.offsetTop+d.innerHeight-maxSize;maxPos=d.offsetTop+d.innerHeight-minSize;break;case"east":minPos=d.offsetLeft+d.innerWidth-maxSize;maxPos=d.offsetLeft+d.innerWidth-minSize;break;}$.extend(s,{minSize:minSize,maxSize:maxSize,minPosition:minPos,maxPosition:maxPos});};var getPaneDims=function(){var d={top:getPaneSize("north",true),bottom:getPaneSize("south",true),left:getPaneSize("west",true),right:getPaneSize("east",true),width:0,height:0};with(d){width=cDims.innerWidth-left-right;height=cDims.innerHeight-bottom-top;top+=cDims.top;bottom+=cDims.bottom;left+=cDims.left;right+=cDims.right;}return d;};var getElemDims=function($E){var
+d={},e,b,p;$.each("Left,Right,Top,Bottom".split(","),function(){e=str(this);b=d["border"+e]=cssNum($E,"border"+e+"Width");p=d["padding"+e]=cssNum($E,"padding"+e);d["offset"+e]=b+p;if($E==$Container)d[e.toLowerCase()]=($.boxModel?p:0);});d.innerWidth=d.outerWidth=$E.outerWidth();d.innerHeight=d.outerHeight=$E.outerHeight();if($.boxModel){d.innerWidth-=(d.offsetLeft+d.offsetRight);d.innerHeight-=(d.offsetTop+d.offsetBottom);}return d;};var setTimer=function(pane,action,fn,ms){var
+Layout=window.layout=window.layout||{},Timers=Layout.timers=Layout.timers||{},name="layout_"+state.id+"_"+pane+"_"+action;if(Timers[name])return;else Timers[name]=setTimeout(fn,ms);};var clearTimer=function(pane,action){var
+Layout=window.layout=window.layout||{},Timers=Layout.timers=Layout.timers||{},name="layout_"+state.id+"_"+pane+"_"+action;if(Timers[name]){clearTimeout(Timers[name]);delete Timers[name];return true;}else
+return false;};var create=function(){initOptions();initContainer();initPanes();initHandles();initResizable();sizeContent("all");if(options.scrollToBookmarkOnLoad)with(self.location)if(hash)replace(hash);initHotkeys();$(window).resize(function(){var timerID="timerLayout_"+state.id;if(window[timerID])clearTimeout(window[timerID]);window[timerID]=null;if(true||$.browser.msie)window[timerID]=setTimeout(resizeAll,100);else
+resizeAll();});};var initContainer=function(){try{if($Container[0].tagName=="BODY"){$("html").css({height:"100%",overflow:"hidden"});$("body").css({position:"relative",height:"100%",overflow:"hidden",margin:0,padding:0,border:"none"});}else{var
+CSS={overflow:"hidden"},p=$Container.css("position"),h=$Container.css("height");if(!$Container.hasClass("ui-layout-pane")){if(!p||"fixed,absolute,relative".indexOf(p)<0)CSS.position="relative";if(!h||h=="auto")CSS.height="100%";}$Container.css(CSS);}}catch(ex){}cDims=state.container=getElemDims($Container);};var initHotkeys=function(){$.each(c.borderPanes.split(","),function(i,pane){var o=options[pane];if(o.enableCursorHotkey||o.customHotkey){$(document).keydown(keyDown);return false;}});};var initOptions=function(){opts=transformData(opts);if(opts.effects){$.extend(effects,opts.effects);delete opts.effects;}$.each("name,scrollToBookmarkOnLoad".split(","),function(idx,key){if(opts[key]!==undefined)options[key]=opts[key];else if(opts.defaults[key]!==undefined){options[key]=opts.defaults[key];delete opts.defaults[key];}});$.each("paneSelector,resizerCursor,customHotkey".split(","),function(idx,key){delete opts.defaults[key];});$.extend(options.defaults,opts.defaults);c.center=$.extend(true,{},c.defaults,c.center);$.extend(options.center,opts.center);var o_Center=$.extend(true,{},options.defaults,opts.defaults,options.center);$.each("paneClass,contentSelector,contentIgnoreSelector,applyDefaultStyles,showOverflowOnHover".split(","),function(idx,key){options.center[key]=o_Center[key];});var defs=options.defaults;$.each(c.borderPanes.split(","),function(i,pane){c[pane]=$.extend(true,{},c.defaults,c[pane]);o=options[pane]=$.extend(true,{},options.defaults,options[pane],opts.defaults,opts[pane]);if(!o.paneClass)o.paneClass=defaults.paneClass;if(!o.resizerClass)o.resizerClass=defaults.resizerClass;if(!o.togglerClass)o.togglerClass=defaults.togglerClass;$.each(["_open","_close",""],function(i,n){var
+sName="fxName"+n,sSpeed="fxSpeed"+n,sSettings="fxSettings"+n;o[sName]=opts[pane][sName]||opts[pane].fxName||opts.defaults[sName]||opts.defaults.fxName||o[sName]||o.fxName||defs[sName]||defs.fxName||"none";var fxName=o[sName];if(fxName=="none"||!$.effects||!$.effects[fxName]||(!effects[fxName]&&!o[sSettings]&&!o.fxSettings))fxName=o[sName]="none";var
+fx=effects[fxName]||{},fx_all=fx.all||{},fx_pane=fx[pane]||{};o[sSettings]=$.extend({},fx_all,fx_pane,defs.fxSettings||{},defs[sSettings]||{},o.fxSettings,o[sSettings],opts.defaults.fxSettings,opts.defaults[sSettings]||{},opts[pane].fxSettings,opts[pane][sSettings]||{});o[sSpeed]=opts[pane][sSpeed]||opts[pane].fxSpeed||opts.defaults[sSpeed]||opts.defaults.fxSpeed||o[sSpeed]||o[sSettings].duration||o.fxSpeed||o.fxSettings.duration||defs.fxSpeed||defs.fxSettings.duration||fx_pane.duration||fx_all.duration||"normal";});});};var initPanes=function(){$.each(c.allPanes.split(","),function(){var
+pane=str(this),o=options[pane],s=state[pane],fx=s.fx,dir=c[pane].dir,size=o.size=="auto"||isNaN(o.size)?0:o.size,minSize=o.minSize||1,maxSize=o.maxSize||9999,spacing=o.spacing_open||0,sel=o.paneSelector,isIE6=($.browser.msie&&$.browser.version<7),CSS={},$P,$C;$Cs[pane]=false;if(sel.substr(0,1)==="#")$P=$Ps[pane]=$Container.find(sel+":first");else{$P=$Ps[pane]=$Container.children(sel+":first");if(!$P.length)$P=$Ps[pane]=$Container.children("form:first").children(sel+":first");}if(!$P.length){$Ps[pane]=false;return true;}$P.attr("pane",pane).addClass(o.paneClass+" "+o.paneClass+"-"+pane);if(pane!="center"){s.isClosed=false;s.isSliding=false;s.isResizing=false;s.isHidden=false;s.noRoom=false;c[pane].pins=[];}CSS=$.extend({visibility:"visible",display:"block"},c.defaults.cssReq,c[pane].cssReq);if(o.applyDefaultStyles)$.extend(CSS,c.defaults.cssDef,c[pane].cssDef);$P.css(CSS);CSS={};switch(pane){case"north":CSS.top=cDims.top;CSS.left=cDims.left;CSS.right=cDims.right;break;case"south":CSS.bottom=cDims.bottom;CSS.left=cDims.left;CSS.right=cDims.right;break;case"west":CSS.left=cDims.left;break;case"east":CSS.right=cDims.right;break;case"center":}if(dir=="horz"){if(size===0||size=="auto"){$P.css({height:"auto"});size=$P.outerHeight();}size=max(size,minSize);size=min(size,maxSize);size=min(size,cDims.innerHeight-spacing);CSS.height=max(1,cssH(pane,size));s.size=size;s.maxSize=maxSize;s.minSize=max(minSize,size-CSS.height+1);$P.css(CSS);}else if(dir=="vert"){if(size===0||size=="auto"){$P.css({width:"auto",float:"left"});size=$P.outerWidth();$P.css({float:"none"});}size=max(size,minSize);size=min(size,maxSize);size=min(size,cDims.innerWidth-spacing);CSS.width=max(1,cssW(pane,size));s.size=size;s.maxSize=maxSize;s.minSize=max(minSize,size-CSS.width+1);$P.css(CSS);sizeMidPanes(pane,null,true);}else if(pane=="center"){$P.css(CSS);sizeMidPanes("center",null,true);}if(o.initClosed&&o.closable){$P.hide().addClass("closed");s.isClosed=true;}else if(o.initHidden||o.initClosed){hide(pane,true);s.isHidden=true;}else
+$P.addClass("open");if(o.showOverflowOnHover)$P.hover(allowOverflow,resetOverflow);if(o.contentSelector){$C=$Cs[pane]=$P.children(o.contentSelector+":first");if(!$C.length){$Cs[pane]=false;return true;}$C.css(c.content.cssReq);if(o.applyDefaultStyles)$C.css(c.content.cssDef);$P.css({overflow:"hidden"});}});};var initHandles=function(){$.each(c.borderPanes.split(","),function(){var
+pane=str(this),o=options[pane],s=state[pane],rClass=o.resizerClass,tClass=o.togglerClass,$P=$Ps[pane];$Rs[pane]=false;$Ts[pane]=false;if(!$P||(!o.closable&&!o.resizable))return;var
+edge=c[pane].edge,isOpen=$P.is(":visible"),spacing=(isOpen?o.spacing_open:o.spacing_closed),_pane="-"+pane,_state=(isOpen?"-open":"-closed"),$R,$T;$R=$Rs[pane]=$("<span></span>");if(isOpen&&o.resizable);else if(!isOpen&&o.slidable)$R.attr("title",o.sliderTip).css("cursor",o.sliderCursor);$R.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-resizer":"")).attr("resizer",pane).css(c.resizers.cssReq).css(edge,cDims[edge]+getPaneSize(pane)).addClass(rClass+" "+rClass+_pane+" "+rClass+_state+" "+rClass+_pane+_state).appendTo($Container);if(o.applyDefaultStyles)$R.css(c.resizers.cssDef);if(o.closable){$T=$Ts[pane]=$("<div></div>");$T.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-toggler":"")).css(c.togglers.cssReq).attr("title",(isOpen?o.togglerTip_open:o.togglerTip_closed)).click(function(evt){toggle(pane);evt.stopPropagation();}).mouseover(function(evt){evt.stopPropagation();}).addClass(tClass+" "+tClass+_pane+" "+tClass+_state+" "+tClass+_pane+_state).appendTo($R);if(o.togglerContent_open)$("<span>"+o.togglerContent_open+"</span>").addClass("content content-open").css("display",s.isClosed?"none":"block").appendTo($T);if(o.togglerContent_closed)$("<span>"+o.togglerContent_closed+"</span>").addClass("content content-closed").css("display",s.isClosed?"block":"none").appendTo($T);if(o.applyDefaultStyles)$T.css(c.togglers.cssDef);if(!isOpen)bindStartSlidingEvent(pane,true);}});sizeHandles("all",true);};var initResizable=function(){var
+draggingAvailable=(typeof $.fn.draggable=="function"),minPosition,maxPosition,edge;$.each(c.borderPanes.split(","),function(){var
+pane=str(this),o=options[pane],s=state[pane];if(!draggingAvailable||!$Ps[pane]||!o.resizable){o.resizable=false;return true;}var
+rClass=o.resizerClass,dragClass=rClass+"-drag",dragPaneClass=rClass+"-"+pane+"-drag",draggingClass=rClass+"-dragging",draggingPaneClass=rClass+"-"+pane+"-dragging",draggingClassSet=false,$P=$Ps[pane],$R=$Rs[pane];if(!s.isClosed)$R.attr("title",o.resizerTip).css("cursor",o.resizerCursor);$R.draggable({containment:$Container[0],axis:(c[pane].dir=="horz"?"y":"x"),delay:200,distance:1,helper:"clone",opacity:o.resizerDragOpacity,zIndex:c.zIndex.resizing,start:function(e,ui){if(false===execUserCallback(pane,o.onresize_start))return false;s.isResizing=true;clearTimer(pane,"closeSlider");$R.addClass(dragClass+" "+dragPaneClass);draggingClassSet=false;var resizerWidth=(pane=="east"||pane=="south"?o.spacing_open:0);setPaneMinMaxSizes(pane);s.minPosition-=resizerWidth;s.maxPosition-=resizerWidth;edge=(c[pane].dir=="horz"?"top":"left");$(o.maskIframesOnResize===true?"iframe":o.maskIframesOnResize).each(function(){$('<div class="ui-layout-mask"/>').css({background:"#fff",opacity:"0.001",zIndex:9,position:"absolute",width:this.offsetWidth+"px",height:this.offsetHeight+"px"}).css($(this).offset()).appendTo(this.parentNode);});},drag:function(e,ui){if(!draggingClassSet){$(".ui-draggable-dragging").addClass(draggingClass+" "+draggingPaneClass).children().css("visibility","hidden");draggingClassSet=true;if(s.isSliding)$Ps[pane].css("zIndex",c.zIndex.sliding);}if(ui.position[edge]<s.minPosition)ui.position[edge]=s.minPosition;else if(ui.position[edge]>s.maxPosition)ui.position[edge]=s.maxPosition;},stop:function(e,ui){var
+dragPos=ui.position,resizerPos,newSize;$R.removeClass(dragClass+" "+dragPaneClass);switch(pane){case"north":resizerPos=dragPos.top;break;case"west":resizerPos=dragPos.left;break;case"south":resizerPos=cDims.outerHeight-dragPos.top-$R.outerHeight();break;case"east":resizerPos=cDims.outerWidth-dragPos.left-$R.outerWidth();break;}newSize=resizerPos-cDims[c[pane].edge];sizePane(pane,newSize);$("div.ui-layout-mask").remove();s.isResizing=false;}});});};var hide=function(pane,onInit){var
+o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||s.isHidden)return;if(false===execUserCallback(pane,o.onhide_start))return;s.isSliding=false;if($R)$R.hide();if(onInit||s.isClosed){s.isClosed=true;s.isHidden=true;$P.hide();sizeMidPanes(c[pane].dir=="horz"?"all":"center");execUserCallback(pane,o.onhide_end||o.onhide);}else{s.isHiding=true;close(pane,false);}};var show=function(pane,openPane){var
+o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||!s.isHidden)return;if(false===execUserCallback(pane,o.onshow_start))return;s.isSliding=false;s.isShowing=true;if($R&&o.spacing_open>0)$R.show();if(openPane===false)close(pane,true);else
+open(pane);};var toggle=function(pane){var s=state[pane];if(s.isHidden)show(pane);else if(s.isClosed)open(pane);else
+close(pane);};var close=function(pane,force,noAnimation){var
+$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&!s.isClosed&&(o.fxName_close!="none"),edge=c[pane].edge,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_sliding="-sliding",_closed="-closed",isShowing=s.isShowing,isHiding=s.isHiding;delete s.isShowing;delete s.isHiding;if(!$P||(!o.resizable&&!o.closable))return;else if(!force&&s.isClosed&&!isShowing)return;if(c.isLayoutBusy){setFlowCallback("close",pane,force);return;}if(!isShowing&&false===execUserCallback(pane,o.onclose_start))return;c[pane].isMoving=true;c.isLayoutBusy=true;s.isClosed=true;if(isHiding)s.isHidden=true;else if(isShowing)s.isHidden=false;syncPinBtns(pane,false);if(!s.isSliding)sizeMidPanes(c[pane].dir=="horz"?"all":"center");if($R){$R.css(edge,cDims[edge]).removeClass(rClass+_open+" "+rClass+_pane+_open).removeClass(rClass+_sliding+" "+rClass+_pane+_sliding).addClass(rClass+_closed+" "+rClass+_pane+_closed);if(o.resizable)$R.draggable("disable").css("cursor","default").attr("title","");if($T){$T.removeClass(tClass+_open+" "+tClass+_pane+_open).addClass(tClass+_closed+" "+tClass+_pane+_closed).attr("title",o.togglerTip_closed);}sizeHandles();}if(doFX){lockPaneForFX(pane,true);$P.hide(o.fxName_close,o.fxSettings_close,o.fxSpeed_close,function(){lockPaneForFX(pane,false);if(!s.isClosed)return;close_2();});}else{$P.hide();close_2();}function close_2(){bindStartSlidingEvent(pane,true);if(!isShowing)execUserCallback(pane,o.onclose_end||o.onclose);if(isShowing)execUserCallback(pane,o.onshow_end||o.onshow);if(isHiding)execUserCallback(pane,o.onhide_end||o.onhide);execFlowCallback(pane);}};var open=function(pane,slide,noAnimation){var
+$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&s.isClosed&&(o.fxName_open!="none"),edge=c[pane].edge,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_closed="-closed",_sliding="-sliding",isShowing=s.isShowing;delete s.isShowing;if(!$P||(!o.resizable&&!o.closable))return;else if(!s.isClosed&&!s.isSliding)return;if(s.isHidden&&!isShowing){show(pane,true);return;}if(c.isLayoutBusy){setFlowCallback("open",pane,slide);return;}if(false===execUserCallback(pane,o.onopen_start))return;c[pane].isMoving=true;c.isLayoutBusy=true;if(s.isSliding&&!slide)bindStopSlidingEvents(pane,false);s.isClosed=false;if(isShowing)s.isHidden=false;setPaneMinMaxSizes(pane);if(s.size>s.maxSize)$P.css(c[pane].sizeType,max(1,cssSize(pane,s.maxSize)));bindStartSlidingEvent(pane,false);if(doFX){lockPaneForFX(pane,true);$P.show(o.fxName_open,o.fxSettings_open,o.fxSpeed_open,function(){lockPaneForFX(pane,false);if(s.isClosed)return;open_2();});}else{$P.show();open_2();}function open_2(){if(!s.isSliding)sizeMidPanes(c[pane].dir=="vert"?"center":"all");if($R){$R.css(edge,cDims[edge]+getPaneSize(pane)).removeClass(rClass+_closed+" "+rClass+_pane+_closed).addClass(rClass+_open+" "+rClass+_pane+_open).addClass(!s.isSliding?"":rClass+_sliding+" "+rClass+_pane+_sliding);if(o.resizable)$R.draggable("enable").css("cursor",o.resizerCursor).attr("title",o.resizerTip);else
+$R.css("cursor","default");if($T){$T.removeClass(tClass+_closed+" "+tClass+_pane+_closed).addClass(tClass+_open+" "+tClass+_pane+_open).attr("title",o.togglerTip_open);}sizeHandles("all");}sizeContent(pane);syncPinBtns(pane,!s.isSliding);execUserCallback(pane,o.onopen_end||o.onopen);if(isShowing)execUserCallback(pane,o.onshow_end||o.onshow);execFlowCallback(pane);}};var lockPaneForFX=function(pane,doLock){var $P=$Ps[pane];if(doLock){$P.css({zIndex:c.zIndex.animation});if(pane=="south")$P.css({top:cDims.top+cDims.innerHeight-$P.outerHeight()});else if(pane=="east")$P.css({left:cDims.left+cDims.innerWidth-$P.outerWidth()});}else{if(!state[pane].isSliding)$P.css({zIndex:c.zIndex.pane_normal});if(pane=="south")$P.css({top:"auto"});else if(pane=="east")$P.css({left:"auto"});}};var bindStartSlidingEvent=function(pane,enable){var
+o=options[pane],$R=$Rs[pane],trigger=o.slideTrigger_open;if(!$R||!o.slidable)return;if(trigger!="click"&&trigger!="dblclick"&&trigger!="mouseover")trigger="click";$R
+[enable?"bind":"unbind"](trigger,slideOpen).css("cursor",(enable?o.sliderCursor:"default")).attr("title",(enable?o.sliderTip:""));};var bindStopSlidingEvents=function(pane,enable){var
+o=options[pane],s=state[pane],trigger=o.slideTrigger_close,action=(enable?"bind":"unbind"),$P=$Ps[pane],$R=$Rs[pane];s.isSliding=enable;clearTimer(pane,"closeSlider");$P.css({zIndex:(enable?c.zIndex.sliding:c.zIndex.pane_normal)});$R.css({zIndex:(enable?c.zIndex.sliding:c.zIndex.resizer_normal)});if(trigger!="click"&&trigger!="mouseout")trigger="mouseout";if(enable){$P.bind(trigger,slideClosed);$R.bind(trigger,slideClosed);if(trigger="mouseout"){$P.bind("mouseover",cancelMouseOut);$R.bind("mouseover",cancelMouseOut);}}else{$P.unbind(trigger);$R.unbind(trigger);if(trigger="mouseout"){$P.unbind("mouseover");$R.unbind("mouseover");clearTimer(pane,"closeSlider");}}function cancelMouseOut(evt){clearTimer(pane,"closeSlider");evt.stopPropagation();}};var slideOpen=function(){var pane=$(this).attr("resizer");if(state[pane].isClosed){bindStopSlidingEvents(pane,true);open(pane,true);}};var slideClosed=function(){var
+$E=$(this),pane=$E.attr("pane")||$E.attr("resizer"),o=options[pane],s=state[pane];if(s.isClosed||s.isResizing)return;else if(o.slideTrigger_close=="click")close_NOW();else
+setTimer(pane,"closeSlider",close_NOW,300);function close_NOW(){bindStopSlidingEvents(pane,false);if(!s.isClosed)close(pane);}};var sizePane=function(pane,size){var
+edge=c[pane].edge,dir=c[pane].dir,o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];setPaneMinMaxSizes(pane);s.minSize=max(s.minSize,o.minSize);if(o.maxSize>0)s.maxSize=min(s.maxSize,o.maxSize);size=max(size,s.minSize);size=min(size,s.maxSize);s.size=size;$R.css(edge,size+cDims[edge]);$P.css(c[pane].sizeType,max(1,cssSize(pane,size)));if(!s.isSliding)sizeMidPanes(dir=="horz"?"all":"center");sizeHandles();sizeContent(pane);execUserCallback(pane,o.onresize_end||o.onresize);};var sizeMidPanes=function(panes,overrideDims,onInit){if(!panes||panes=="all")panes="east,west,center";var d=getPaneDims();if(overrideDims)$.extend(d,overrideDims);$.each(panes.split(","),function(){if(!$Ps[this])return;var
+pane=str(this),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],hasRoom=true,CSS={};if(pane=="center"){d=getPaneDims();CSS=$.extend({},d);CSS.width=max(1,cssW(pane,CSS.width));CSS.height=max(1,cssH(pane,CSS.height));hasRoom=(CSS.width>1&&CSS.height>1);if($.browser.msie&&(!$.boxModel||$.browser.version<7)){if($Ps.north)$Ps.north.css({width:cssW($Ps.north,cDims.innerWidth)});if($Ps.south)$Ps.south.css({width:cssW($Ps.south,cDims.innerWidth)});}}else{CSS.top=d.top;CSS.bottom=d.bottom;CSS.height=max(1,cssH(pane,d.height));hasRoom=(CSS.height>1);}if(hasRoom){$P.css(CSS);if(s.noRoom){s.noRoom=false;if(s.isHidden)return;else show(pane,!s.isClosed);}if(!onInit){sizeContent(pane);execUserCallback(pane,o.onresize_end||o.onresize);}}else if(!s.noRoom){s.noRoom=true;if(s.isHidden)return;if(onInit){$P.hide();if($R)$R.hide();}else hide(pane);}});};var sizeContent=function(panes){if(!panes||panes=="all")panes=c.allPanes;$.each(panes.split(","),function(){if(!$Cs[this])return;var
+pane=str(this),ignore=options[pane].contentIgnoreSelector,$P=$Ps[pane],$C=$Cs[pane],e_C=$C[0],height=cssH($P);;$P.children().each(function(){if(this==e_C)return;var $E=$(this);if(!ignore||!$E.is(ignore))height-=$E.outerHeight();});if(height>0)height=cssH($C,height);if(height<1)$C.hide();else
+$C.css({height:height}).show();});};var sizeHandles=function(panes,onInit){if(!panes||panes=="all")panes=c.borderPanes;$.each(panes.split(","),function(){var
+pane=str(this),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane];if(!$P||!$R||(!o.resizable&&!o.closable))return;var
+dir=c[pane].dir,_state=(s.isClosed?"_closed":"_open"),spacing=o["spacing"+_state],togAlign=o["togglerAlign"+_state],togLen=o["togglerLength"+_state],paneLen,offset,CSS={};if(spacing==0){$R.hide();return;}else if(!s.noRoom&&!s.isHidden)$R.show();if(dir=="horz"){paneLen=$P.outerWidth();$R.css({width:max(1,cssW($R,paneLen)),height:max(1,cssH($R,spacing)),left:cssNum($P,"left")});}else{paneLen=$P.outerHeight();$R.css({height:max(1,cssH($R,paneLen)),width:max(1,cssW($R,spacing)),top:cDims.top+getPaneSize("north",true)});}if($T){if(togLen==0||(s.isSliding&&o.hideTogglerOnSlide)){$T.hide();return;}else
+$T.show();if(!(togLen>0)||togLen=="100%"||togLen>paneLen){togLen=paneLen;offset=0;}else{if(typeof togAlign=="string"){switch(togAlign){case"top":case"left":offset=0;break;case"bottom":case"right":offset=paneLen-togLen;break;case"middle":case"center":default:offset=Math.floor((paneLen-togLen)/2);}}else{var x=parseInt(togAlign);if(togAlign>=0)offset=x;else offset=paneLen-togLen+x;}}var
+$TC_o=(o.togglerContent_open?$T.children(".content-open"):false),$TC_c=(o.togglerContent_closed?$T.children(".content-closed"):false),$TC=(s.isClosed?$TC_c:$TC_o);if($TC_o)$TC_o.css("display",s.isClosed?"none":"block");if($TC_c)$TC_c.css("display",s.isClosed?"block":"none");if(dir=="horz"){var width=cssW($T,togLen);$T.css({width:max(0,width),height:max(1,cssH($T,spacing)),left:offset});if($TC)$TC.css("marginLeft",Math.floor((width-$TC.outerWidth())/2));}else{var height=cssH($T,togLen);$T.css({height:max(0,height),width:max(1,cssW($T,spacing)),top:offset});if($TC)$TC.css("marginTop",Math.floor((height-$TC.outerHeight())/2));}}if(onInit&&o.initHidden){$R.hide();if($T)$T.hide();}});};var resizeAll=function(){var
+oldW=cDims.innerWidth,oldH=cDims.innerHeight;cDims=state.container=getElemDims($Container);var
+checkH=(cDims.innerHeight<oldH),checkW=(cDims.innerWidth<oldW),s,dir;if(checkH||checkW)$.each(["south","north","east","west"],function(i,pane){s=state[pane];dir=c[pane].dir;if(!s.isClosed&&((checkH&&dir=="horz")||(checkW&&dir=="vert"))){setPaneMinMaxSizes(pane);if(s.size>s.maxSize)sizePane(pane,s.maxSize);}});sizeMidPanes("all");sizeHandles("all");};function keyDown(evt){if(!evt)return true;var code=evt.keyCode;if(code<33)return true;var
+PANE={38:"north",40:"south",37:"west",39:"east"},isCursorKey=(code>=37&&code<=40),ALT=evt.altKey,SHIFT=evt.shiftKey,CTRL=evt.ctrlKey,pane=false,s,o,k,m,el;if(!CTRL&&!SHIFT)return true;else if(isCursorKey&&options[PANE[code]].enableCursorHotkey)pane=PANE[code];else
+$.each(c.borderPanes.split(","),function(i,p){o=options[p];k=o.customHotkey;m=o.customHotkeyModifier;if((SHIFT&&m=="SHIFT")||(CTRL&&m=="CTRL")||(CTRL&&SHIFT)){if(k&&code==(isNaN(k)||k<=9?k.toUpperCase().charCodeAt(0):k)){pane=p;return false;}}});if(!pane)return true;o=options[pane];s=state[pane];if(!o.enableCursorHotkey||s.isHidden||!$Ps[pane])return true;el=evt.target||evt.srcElement;if(el&&SHIFT&&isCursorKey&&(el.tagName=="TEXTAREA"||(el.tagName=="INPUT"&&(code==37||code==39))))return true;toggle(pane);evt.stopPropagation();evt.returnValue=false;return false;};function allowOverflow(elem){if(this&&this.tagName)elem=this;var $P;if(typeof elem=="string")$P=$Ps[elem];else{if($(elem).attr("pane"))$P=$(elem);else $P=$(elem).parents("div[pane]:first");}if(!$P.length)return;var
+pane=$P.attr("pane"),s=state[pane];if(s.cssSaved)resetOverflow(pane);if(s.isSliding||s.isResizing||s.isClosed){s.cssSaved=false;return;}var
+newCSS={zIndex:(c.zIndex.pane_normal+1)},curCSS={},of=$P.css("overflow"),ofX=$P.css("overflowX"),ofY=$P.css("overflowY");if(of!="visible"){curCSS.overflow=of;newCSS.overflow="visible";}if(ofX&&ofX!="visible"&&ofX!="auto"){curCSS.overflowX=ofX;newCSS.overflowX="visible";}if(ofY&&ofY!="visible"&&ofY!="auto"){curCSS.overflowY=ofX;newCSS.overflowY="visible";}s.cssSaved=curCSS;$P.css(newCSS);$.each(c.allPanes.split(","),function(i,p){if(p!=pane)resetOverflow(p);});};function resetOverflow(elem){if(this&&this.tagName)elem=this;var $P;if(typeof elem=="string")$P=$Ps[elem];else{if($(elem).hasClass("ui-layout-pane"))$P=$(elem);else $P=$(elem).parents("div[pane]:first");}if(!$P.length)return;var
+pane=$P.attr("pane"),s=state[pane],CSS=s.cssSaved||{};if(!s.isSliding&&!s.isResizing)$P.css("zIndex",c.zIndex.pane_normal);$P.css(CSS);s.cssSaved=false;};function getBtn(selector,pane,action){var
+$E=$(selector),err="Error Adding Button \n\nInvalid ";if(!$E.length)alert(err+"selector: "+selector);else if(c.borderPanes.indexOf(pane)==-1)alert(err+"pane: "+pane);else{var btn=options[pane].buttonClass+"-"+action;$E.addClass(btn+" "+btn+"-"+pane);return $E;}return false;};function addToggleBtn(selector,pane){var $E=getBtn(selector,pane,"toggle");if($E)$E.attr("title",state[pane].isClosed?"Open":"Close").click(function(evt){toggle(pane);evt.stopPropagation();});};function addOpenBtn(selector,pane){var $E=getBtn(selector,pane,"open");if($E)$E.attr("title","Open").click(function(evt){open(pane);evt.stopPropagation();});};function addCloseBtn(selector,pane){var $E=getBtn(selector,pane,"close");if($E)$E.attr("title","Close").click(function(evt){close(pane);evt.stopPropagation();});};function addPinBtn(selector,pane){var $E=getBtn(selector,pane,"pin");if($E){var s=state[pane];$E.click(function(evt){setPinState($(this),pane,(s.isSliding||s.isClosed));if(s.isSliding||s.isClosed)open(pane);else close(pane);evt.stopPropagation();});setPinState($E,pane,(!s.isClosed&&!s.isSliding));c[pane].pins.push(selector);}};function syncPinBtns(pane,doPin){$.each(c[pane].pins,function(i,selector){setPinState($(selector),pane,doPin);});};function setPinState($Pin,pane,doPin){var updown=$Pin.attr("pin");if(updown&&doPin==(updown=="down"))return;var
+root=options[pane].buttonClass,class1=root+"-pin",class2=class1+"-"+pane,UP1=class1+"-up",UP2=class2+"-up",DN1=class1+"-down",DN2=class2+"-down";$Pin.attr("pin",doPin?"down":"up").attr("title",doPin?"Un-Pin":"Pin").removeClass(doPin?UP1:DN1).removeClass(doPin?UP2:DN2).addClass(doPin?DN1:UP1).addClass(doPin?DN2:UP2);};var
+$Container=$(this).css({overflow:"hidden"}),$Ps={},$Cs={},$Rs={},$Ts={},c=config,cDims=state.container;create();return{options:options,state:state,panes:$Ps,toggle:toggle,open:open,close:close,hide:hide,show:show,resizeContent:sizeContent,sizePane:sizePane,resizeAll:resizeAll,addToggleBtn:addToggleBtn,addOpenBtn:addOpenBtn,addCloseBtn:addCloseBtn,addPinBtn:addPinBtn,allowOverflow:allowOverflow,resetOverflow:resetOverflow,cssWidth:cssW,cssHeight:cssH};}})(jQuery);
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.ui.all.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.ui.all.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/jquery.ui.all.js	(revision 1516)
@@ -0,0 +1,7600 @@
+/*
+ * jQuery UI 1.5.2
+ *
+ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI
+ */
+;(function($) {
+
+$.ui = {
+	plugin: {
+		add: function(module, option, set) {
+			var proto = $.ui[module].prototype;
+			for(var i in set) {
+				proto.plugins[i] = proto.plugins[i] || [];
+				proto.plugins[i].push([option, set[i]]);
+			}
+		},
+		call: function(instance, name, args) {
+			var set = instance.plugins[name];
+			if(!set) { return; }
+			
+			for (var i = 0; i < set.length; i++) {
+				if (instance.options[set[i][0]]) {
+					set[i][1].apply(instance.element, args);
+				}
+			}
+		}	
+	},
+	cssCache: {},
+	css: function(name) {
+		if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; }
+		var tmp = $('<div class="ui-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body');
+		
+		//if (!$.browser.safari)
+			//tmp.appendTo('body'); 
+		
+		//Opera and Safari set width and height to 0px instead of auto
+		//Safari returns rgba(0,0,0,0) when bgcolor is not set
+		$.ui.cssCache[name] = !!(
+			(!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) || 
+			!(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor')))
+		);
+		try { $('body').get(0).removeChild(tmp.get(0));	} catch(e){}
+		return $.ui.cssCache[name];
+	},
+	disableSelection: function(el) {
+		$(el).attr('unselectable', 'on').css('MozUserSelect', 'none');
+	},
+	enableSelection: function(el) {
+		$(el).attr('unselectable', 'off').css('MozUserSelect', '');
+	},
+	hasScroll: function(e, a) {
+		var scroll = /top/.test(a||"top") ? 'scrollTop' : 'scrollLeft', has = false;
+		if (e[scroll] > 0) return true; e[scroll] = 1;
+		has = e[scroll] > 0 ? true : false; e[scroll] = 0;
+		return has;
+	}
+};
+
+
+/** jQuery core modifications and additions **/
+
+var _remove = $.fn.remove;
+$.fn.remove = function() {
+	$("*", this).add(this).triggerHandler("remove");
+	return _remove.apply(this, arguments );
+};
+
+// $.widget is a factory to create jQuery plugins
+// taking some boilerplate code out of the plugin code
+// created by Scott GonzÃ¡lez and JÃ¶rn Zaefferer
+function getter(namespace, plugin, method) {
+	var methods = $[namespace][plugin].getter || [];
+	methods = (typeof methods == "string" ? methods.split(/,?\s+/) : methods);
+	return ($.inArray(method, methods) != -1);
+}
+
+$.widget = function(name, prototype) {
+	var namespace = name.split(".")[0];
+	name = name.split(".")[1];
+	
+	// create plugin method
+	$.fn[name] = function(options) {
+		var isMethodCall = (typeof options == 'string'),
+			args = Array.prototype.slice.call(arguments, 1);
+		
+		if (isMethodCall && getter(namespace, name, options)) {
+			var instance = $.data(this[0], name);
+			return (instance ? instance[options].apply(instance, args)
+				: undefined);
+		}
+		
+		return this.each(function() {
+			var instance = $.data(this, name);
+			if (isMethodCall && instance && $.isFunction(instance[options])) {
+				instance[options].apply(instance, args);
+			} else if (!isMethodCall) {
+				$.data(this, name, new $[namespace][name](this, options));
+			}
+		});
+	};
+	
+	// create widget constructor
+	$[namespace][name] = function(element, options) {
+		var self = this;
+		
+		this.widgetName = name;
+		this.widgetBaseClass = namespace + '-' + name;
+		
+		this.options = $.extend({}, $.widget.defaults, $[namespace][name].defaults, options);
+		this.element = $(element)
+			.bind('setData.' + name, function(e, key, value) {
+				return self.setData(key, value);
+			})
+			.bind('getData.' + name, function(e, key) {
+				return self.getData(key);
+			})
+			.bind('remove', function() {
+				return self.destroy();
+			});
+		this.init();
+	};
+	
+	// add widget prototype
+	$[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype);
+};
+
+$.widget.prototype = {
+	init: function() {},
+	destroy: function() {
+		this.element.removeData(this.widgetName);
+	},
+	
+	getData: function(key) {
+		return this.options[key];
+	},
+	setData: function(key, value) {
+		this.options[key] = value;
+		
+		if (key == 'disabled') {
+			this.element[value ? 'addClass' : 'removeClass'](
+				this.widgetBaseClass + '-disabled');
+		}
+	},
+	
+	enable: function() {
+		this.setData('disabled', false);
+	},
+	disable: function() {
+		this.setData('disabled', true);
+	}
+};
+
+$.widget.defaults = {
+	disabled: false
+};
+
+
+/** Mouse Interaction Plugin **/
+
+$.ui.mouse = {
+	mouseInit: function() {
+		var self = this;
+	
+		this.element.bind('mousedown.'+this.widgetName, function(e) {
+			return self.mouseDown(e);
+		});
+		
+		// Prevent text selection in IE
+		if ($.browser.msie) {
+			this._mouseUnselectable = this.element.attr('unselectable');
+			this.element.attr('unselectable', 'on');
+		}
+		
+		this.started = false;
+	},
+	
+	// TODO: make sure destroying one instance of mouse doesn't mess with
+	// other instances of mouse
+	mouseDestroy: function() {
+		this.element.unbind('.'+this.widgetName);
+		
+		// Restore text selection in IE
+		($.browser.msie
+			&& this.element.attr('unselectable', this._mouseUnselectable));
+	},
+	
+	mouseDown: function(e) {
+		// we may have missed mouseup (out of window)
+		(this._mouseStarted && this.mouseUp(e));
+		
+		this._mouseDownEvent = e;
+		
+		var self = this,
+			btnIsLeft = (e.which == 1),
+			elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).parents().add(e.target).filter(this.options.cancel).length : false);
+		if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) {
+			return true;
+		}
+		
+		this._mouseDelayMet = !this.options.delay;
+		if (!this._mouseDelayMet) {
+			this._mouseDelayTimer = setTimeout(function() {
+				self._mouseDelayMet = true;
+			}, this.options.delay);
+		}
+		
+		if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
+			this._mouseStarted = (this.mouseStart(e) !== false);
+			if (!this._mouseStarted) {
+				e.preventDefault();
+				return true;
+			}
+		}
+		
+		// these delegates are required to keep context
+		this._mouseMoveDelegate = function(e) {
+			return self.mouseMove(e);
+		};
+		this._mouseUpDelegate = function(e) {
+			return self.mouseUp(e);
+		};
+		$(document)
+			.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
+			.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
+		
+		return false;
+	},
+	
+	mouseMove: function(e) {
+		// IE mouseup check - mouseup happened when mouse was out of window
+		if ($.browser.msie && !e.button) {
+			return this.mouseUp(e);
+		}
+		
+		if (this._mouseStarted) {
+			this.mouseDrag(e);
+			return false;
+		}
+		
+		if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
+			this._mouseStarted =
+				(this.mouseStart(this._mouseDownEvent, e) !== false);
+			(this._mouseStarted ? this.mouseDrag(e) : this.mouseUp(e));
+		}
+		
+		return !this._mouseStarted;
+	},
+	
+	mouseUp: function(e) {
+		$(document)
+			.unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
+			.unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
+		
+		if (this._mouseStarted) {
+			this._mouseStarted = false;
+			this.mouseStop(e);
+		}
+		
+		return false;
+	},
+	
+	mouseDistanceMet: function(e) {
+		return (Math.max(
+				Math.abs(this._mouseDownEvent.pageX - e.pageX),
+				Math.abs(this._mouseDownEvent.pageY - e.pageY)
+			) >= this.options.distance
+		);
+	},
+	
+	mouseDelayMet: function(e) {
+		return this._mouseDelayMet;
+	},
+	
+	// These are placeholder methods, to be overriden by extending plugin
+	mouseStart: function(e) {},
+	mouseDrag: function(e) {},
+	mouseStop: function(e) {},
+	mouseCapture: function(e) { return true; }
+};
+
+$.ui.mouse.defaults = {
+	cancel: null,
+	distance: 1,
+	delay: 0
+};
+
+})(jQuery);
+/*
+ * jQuery UI Draggable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Draggables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($) {
+
+$.widget("ui.draggable", $.extend({}, $.ui.mouse, {
+	init: function() {
+		
+		//Initialize needed constants
+		var o = this.options;
+
+		//Position the node
+		if (o.helper == 'original' && !(/(relative|absolute|fixed)/).test(this.element.css('position')))
+			this.element.css('position', 'relative');
+
+		this.element.addClass('ui-draggable');
+		(o.disabled && this.element.addClass('ui-draggable-disabled'));
+		
+		this.mouseInit();
+		
+	},
+	mouseStart: function(e) {
+		var o = this.options;
+		
+		if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle')) return false;
+		
+		var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
+		
+	
+		$(this.options.handle, this.element).find("*").andSelf().each(function() {
+			if(this == e.target) handle = true;
+		});
+		if (!handle) return false;
+		
+		if($.ui.ddmanager) $.ui.ddmanager.current = this;
+		
+		//Create and append the visible helper
+		this.helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element);
+		if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo));
+		if(this.helper[0] != this.element[0] && !(/(fixed|absolute)/).test(this.helper.css("position"))) this.helper.css("position", "absolute");
+		
+		/*
+		 * - Position generation -
+		 * This block generates everything position related - it's the core of draggables.
+		 */
+		
+		this.margins = {																				//Cache the margins
+			left: (parseInt(this.element.css("marginLeft"),10) || 0),
+			top: (parseInt(this.element.css("marginTop"),10) || 0)
+		};		
+		
+		this.cssPosition = this.helper.css("position");													//Store the helper's css position
+		this.offset = this.element.offset();															//The element's absolute position on the page
+		this.offset = {																					//Substract the margins from the element's absolute offset
+			top: this.offset.top - this.margins.top,
+			left: this.offset.left - this.margins.left
+		};
+		
+		this.offset.click = {																			//Where the click happened, relative to the element
+			left: e.pageX - this.offset.left,
+			top: e.pageY - this.offset.top
+		};
+		
+		this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset();			//Get the offsetParent and cache its position
+		if(this.offsetParent[0] == document.body && $.browser.mozilla) po = { top: 0, left: 0 };		//Ugly FF3 fix
+		this.offset.parent = {																			//Store its position plus border
+			top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+			left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+		};
+		
+		var p = this.element.position();																//This is a relative to absolute position minus the actual position calculation - only used for relative positioned helpers
+		this.offset.relative = this.cssPosition == "relative" ? {
+			top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.offsetParent[0].scrollTop,
+			left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.offsetParent[0].scrollLeft
+		} : { top: 0, left: 0 };
+		
+		this.originalPosition = this.generatePosition(e);												//Generate the original position
+		this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
+		
+		if(o.cursorAt) {
+			if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left + this.margins.left;
+			if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right + this.margins.left;
+			if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top + this.margins.top;
+			if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom + this.margins.top;
+		}
+		
+		
+		/*
+		 * - Position constraining -
+		 * Here we prepare position constraining like grid and containment.
+		 */	
+		
+		if(o.containment) {
+			if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
+			if(o.containment == 'document' || o.containment == 'window') this.containment = [
+				0 - this.offset.relative.left - this.offset.parent.left,
+				0 - this.offset.relative.top - this.offset.parent.top,
+				$(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+				($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+			];
+			
+			if(!(/^(document|window|parent)$/).test(o.containment)) {
+				var ce = $(o.containment)[0];
+				var co = $(o.containment).offset();
+				
+				this.containment = [
+					co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left,
+					co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top,
+					co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+					co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+				];
+			}
+		}
+		
+		//Call plugins and callbacks
+		this.propagate("start", e);
+		
+		this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
+		if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
+		
+		this.helper.addClass("ui-draggable-dragging");
+		this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+		return true;
+	},
+	convertPositionTo: function(d, pos) {
+		if(!pos) pos = this.position;
+		var mod = d == "absolute" ? 1 : -1;
+		return {
+			top: (
+				pos.top																	// the calculated relative position
+				+ this.offset.relative.top	* mod										// Only for relative positioned nodes: Relative offset from element to offset parent
+				+ this.offset.parent.top * mod											// The offsetParent's offset without borders (offset + border)
+				- (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop) * mod	// The offsetParent's scroll position, not if the element is fixed
+				+ (this.cssPosition == "fixed" ? $(document).scrollTop() : 0) * mod
+				+ this.margins.top * mod												//Add the margin (you don't want the margin counting in intersection methods)
+			),
+			left: (
+				pos.left																// the calculated relative position
+				+ this.offset.relative.left	* mod										// Only for relative positioned nodes: Relative offset from element to offset parent
+				+ this.offset.parent.left * mod											// The offsetParent's offset without borders (offset + border)
+				- (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft) * mod	// The offsetParent's scroll position, not if the element is fixed
+				+ (this.cssPosition == "fixed" ? $(document).scrollLeft() : 0) * mod
+				+ this.margins.left * mod												//Add the margin (you don't want the margin counting in intersection methods)
+			)
+		};
+	},
+	generatePosition: function(e) {
+		
+		var o = this.options;
+		var position = {
+			top: (
+				e.pageY																	// The absolute mouse position
+				- this.offset.click.top													// Click offset (relative to the element)
+				- this.offset.relative.top												// Only for relative positioned nodes: Relative offset from element to offset parent
+				- this.offset.parent.top												// The offsetParent's offset without borders (offset + border)
+				+ (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop)	// The offsetParent's scroll position, not if the element is fixed
+				- (this.cssPosition == "fixed" ? $(document).scrollTop() : 0)
+			),
+			left: (
+				e.pageX																	// The absolute mouse position
+				- this.offset.click.left												// Click offset (relative to the element)
+				- this.offset.relative.left												// Only for relative positioned nodes: Relative offset from element to offset parent
+				- this.offset.parent.left												// The offsetParent's offset without borders (offset + border)
+				+ (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft)	// The offsetParent's scroll position, not if the element is fixed
+				- (this.cssPosition == "fixed" ? $(document).scrollLeft() : 0)
+			)
+		};
+		
+		if(!this.originalPosition) return position;										//If we are not dragging yet, we won't check for options
+		
+		/*
+		 * - Position constraining -
+		 * Constrain the position to a mix of grid, containment.
+		 */
+		if(this.containment) {
+			if(position.left < this.containment[0]) position.left = this.containment[0];
+			if(position.top < this.containment[1]) position.top = this.containment[1];
+			if(position.left > this.containment[2]) position.left = this.containment[2];
+			if(position.top > this.containment[3]) position.top = this.containment[3];
+		}
+		
+		if(o.grid) {
+			var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
+			position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+			
+			var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
+			position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+		}
+		
+		return position;
+	},
+	mouseDrag: function(e) {
+		
+		//Compute the helpers position
+		this.position = this.generatePosition(e);
+		this.positionAbs = this.convertPositionTo("absolute");
+		
+		//Call plugins and callbacks and use the resulting position if something is returned		
+		this.position = this.propagate("drag", e) || this.position;
+		
+		if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
+		if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
+		if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
+		
+		return false;
+	},
+	mouseStop: function(e) {
+		
+		//If we are using droppables, inform the manager about the drop
+		var dropped = false;
+		if ($.ui.ddmanager && !this.options.dropBehaviour)
+			var dropped = $.ui.ddmanager.drop(this, e);		
+		
+		if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true) {
+			var self = this;
+			$(this.helper).animate(this.originalPosition, parseInt(this.options.revert, 10) || 500, function() {
+				self.propagate("stop", e);
+				self.clear();
+			});
+		} else {
+			this.propagate("stop", e);
+			this.clear();
+		}
+		
+		return false;
+	},
+	clear: function() {
+		this.helper.removeClass("ui-draggable-dragging");
+		if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();
+		//if($.ui.ddmanager) $.ui.ddmanager.current = null;
+		this.helper = null;
+		this.cancelHelperRemoval = false;
+	},
+	
+	// From now on bulk stuff - mainly helpers
+	plugins: {},
+	uiHash: function(e) {
+		return {
+			helper: this.helper,
+			position: this.position,
+			absolutePosition: this.positionAbs,
+			options: this.options			
+		};
+	},
+	propagate: function(n,e) {
+		$.ui.plugin.call(this, n, [e, this.uiHash()]);
+		if(n == "drag") this.positionAbs = this.convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
+		return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]);
+	},
+	destroy: function() {
+		if(!this.element.data('draggable')) return;
+		this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable');
+		this.mouseDestroy();
+	}
+}));
+
+$.extend($.ui.draggable, {
+	defaults: {
+		appendTo: "parent",
+		axis: false,
+		cancel: ":input",
+		delay: 0,
+		distance: 1,
+		helper: "original"
+	}
+});
+
+$.ui.plugin.add("draggable", "cursor", {
+	start: function(e, ui) {
+		var t = $('body');
+		if (t.css("cursor")) ui.options._cursor = t.css("cursor");
+		t.css("cursor", ui.options.cursor);
+	},
+	stop: function(e, ui) {
+		if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
+	}
+});
+
+$.ui.plugin.add("draggable", "zIndex", {
+	start: function(e, ui) {
+		var t = $(ui.helper);
+		if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
+		t.css('zIndex', ui.options.zIndex);
+	},
+	stop: function(e, ui) {
+		if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
+	}
+});
+
+$.ui.plugin.add("draggable", "opacity", {
+	start: function(e, ui) {
+		var t = $(ui.helper);
+		if(t.css("opacity")) ui.options._opacity = t.css("opacity");
+		t.css('opacity', ui.options.opacity);
+	},
+	stop: function(e, ui) {
+		if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
+	}
+});
+
+$.ui.plugin.add("draggable", "iframeFix", {
+	start: function(e, ui) {
+		$(ui.options.iframeFix === true ? "iframe" : ui.options.iframeFix).each(function() {					
+			$('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
+			.css({
+				width: this.offsetWidth+"px", height: this.offsetHeight+"px",
+				position: "absolute", opacity: "0.001", zIndex: 1000
+			})
+			.css($(this).offset())
+			.appendTo("body");
+		});
+	},
+	stop: function(e, ui) {
+		$("div.DragDropIframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers	
+	}
+});
+
+$.ui.plugin.add("draggable", "scroll", {
+	start: function(e, ui) {
+		var o = ui.options;
+		var i = $(this).data("draggable");
+		o.scrollSensitivity	= o.scrollSensitivity || 20;
+		o.scrollSpeed		= o.scrollSpeed || 20;
+		
+		i.overflowY = function(el) {
+			do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
+			return $(document);
+		}(this);
+		i.overflowX = function(el) {
+			do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
+			return $(document);
+		}(this);
+		
+		if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
+		if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
+		
+	},
+	drag: function(e, ui) {
+		
+		var o = ui.options;
+		var i = $(this).data("draggable");
+		
+		if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
+			if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
+				i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed;
+			if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
+				i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed;
+							
+		} else {
+			if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
+				$(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+			if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
+				$(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+		}
+		
+		if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
+			if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
+				i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed;
+			if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
+				i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed;
+		} else {
+			if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
+				$(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+			if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
+				$(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+		}
+		
+	}
+});
+
+$.ui.plugin.add("draggable", "snap", {
+	start: function(e, ui) {
+		
+		var inst = $(this).data("draggable");
+		inst.snapElements = [];
+		$(ui.options.snap === true ? '.ui-draggable' : ui.options.snap).each(function() {
+			var $t = $(this); var $o = $t.offset();
+			if(this != inst.element[0]) inst.snapElements.push({
+				item: this,
+				width: $t.outerWidth(), height: $t.outerHeight(),
+				top: $o.top, left: $o.left
+			});
+		});
+		
+	},
+	drag: function(e, ui) {
+		
+		var inst = $(this).data("draggable");
+		var d = ui.options.snapTolerance || 20;
+		var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width,
+			y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height;
+		
+		for (var i = inst.snapElements.length - 1; i >= 0; i--){
+			
+			var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width, 
+				t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;
+			
+			//Yes, I know, this is insane ;)
+			if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) continue;
+			
+			if(ui.options.snapMode != 'inner') {
+				var ts = Math.abs(t - y2) <= 20;
+				var bs = Math.abs(b - y1) <= 20;
+				var ls = Math.abs(l - x2) <= 20;
+				var rs = Math.abs(r - x1) <= 20;
+				if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
+				if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b, left: 0 }).top;
+				if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
+				if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r }).left;
+			}
+			
+			if(ui.options.snapMode != 'outer') {
+				var ts = Math.abs(t - y1) <= 20;
+				var bs = Math.abs(b - y2) <= 20;
+				var ls = Math.abs(l - x1) <= 20;
+				var rs = Math.abs(r - x2) <= 20;
+				if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t, left: 0 }).top;
+				if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
+				if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l }).left;
+				if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
+			}
+			
+		};
+	}
+});
+
+$.ui.plugin.add("draggable", "connectToSortable", {
+	start: function(e,ui) {
+	
+		var inst = $(this).data("draggable");
+		inst.sortables = [];
+		$(ui.options.connectToSortable).each(function() {
+			if($.data(this, 'sortable')) {
+				var sortable = $.data(this, 'sortable');
+				inst.sortables.push({
+					instance: sortable,
+					shouldRevert: sortable.options.revert
+				});
+				sortable.refreshItems();	//Do a one-time refresh at start to refresh the containerCache	
+				sortable.propagate("activate", e, inst);
+			}
+		});
+
+	},
+	stop: function(e,ui) {
+		
+		//If we are still over the sortable, we fake the stop event of the sortable, but also remove helper
+		var inst = $(this).data("draggable");
+		
+		$.each(inst.sortables, function() {
+			if(this.instance.isOver) {
+				this.instance.isOver = 0;
+				inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance
+				this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)
+				if(this.shouldRevert) this.instance.options.revert = true; //revert here
+				this.instance.mouseStop(e);
+				
+				//Also propagate receive event, since the sortable is actually receiving a element
+				this.instance.element.triggerHandler("sortreceive", [e, $.extend(this.instance.ui(), { sender: inst.element })], this.instance.options["receive"]);
+
+				this.instance.options.helper = this.instance.options._helper;
+			} else {
+				this.instance.propagate("deactivate", e, inst);
+			}
+
+		});
+		
+	},
+	drag: function(e,ui) {
+
+		var inst = $(this).data("draggable"), self = this;
+		
+		var checkPos = function(o) {
+				
+			var l = o.left, r = l + o.width,
+				t = o.top, b = t + o.height;
+
+			return (l < (this.positionAbs.left + this.offset.click.left) && (this.positionAbs.left + this.offset.click.left) < r
+					&& t < (this.positionAbs.top + this.offset.click.top) && (this.positionAbs.top + this.offset.click.top) < b);				
+		};
+		
+		$.each(inst.sortables, function(i) {
+
+			if(checkPos.call(inst, this.instance.containerCache)) {
+
+				//If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once
+				if(!this.instance.isOver) {
+					this.instance.isOver = 1;
+
+					//Now we fake the start of dragging for the sortable instance,
+					//by cloning the list group item, appending it to the sortable and using it as inst.currentItem
+					//We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)
+					this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true);
+					this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it
+					this.instance.options.helper = function() { return ui.helper[0]; };
+				
+					e.target = this.instance.currentItem[0];
+					this.instance.mouseCapture(e, true);
+					this.instance.mouseStart(e, true, true);
+
+					//Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes
+					this.instance.offset.click.top = inst.offset.click.top;
+					this.instance.offset.click.left = inst.offset.click.left;
+					this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;
+					this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;
+					
+					inst.propagate("toSortable", e);
+				
+				}
+				
+				//Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable
+				if(this.instance.currentItem) this.instance.mouseDrag(e);
+				
+			} else {
+				
+				//If it doesn't intersect with the sortable, and it intersected before,
+				//we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval
+				if(this.instance.isOver) {
+					this.instance.isOver = 0;
+					this.instance.cancelHelperRemoval = true;
+					this.instance.options.revert = false; //No revert here
+					this.instance.mouseStop(e, true);
+					this.instance.options.helper = this.instance.options._helper;
+					
+					//Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size
+					this.instance.currentItem.remove();
+					if(this.instance.placeholder) this.instance.placeholder.remove();
+					
+					inst.propagate("fromSortable", e);
+				}
+				
+			};
+
+		});
+
+	}
+});
+
+$.ui.plugin.add("draggable", "stack", {
+	start: function(e,ui) {
+		var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) {
+			return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min);
+		});
+		
+		$(group).each(function(i) {
+			this.style.zIndex = ui.options.stack.min + i;
+		});
+		
+		this[0].style.zIndex = ui.options.stack.min + group.length;
+	}
+});
+
+})(jQuery);
+/*
+ * jQuery UI Droppable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Droppables
+ *
+ * Depends:
+ *	ui.core.js
+ *	ui.draggable.js
+ */
+(function($) {
+
+$.widget("ui.droppable", {
+	init: function() {
+
+		this.element.addClass("ui-droppable");
+		this.isover = 0; this.isout = 1;
+		
+		//Prepare the passed options
+		var o = this.options, accept = o.accept;
+		o = $.extend(o, {
+			accept: o.accept && o.accept.constructor == Function ? o.accept : function(d) {
+				return $(d).is(accept);
+			}
+		});
+		
+		//Store the droppable's proportions
+		this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight };
+		
+		// Add the reference and positions to the manager
+		$.ui.ddmanager.droppables.push(this);
+		
+	},
+	plugins: {},
+	ui: function(c) {
+		return {
+			draggable: (c.currentItem || c.element),
+			helper: c.helper,
+			position: c.position,
+			absolutePosition: c.positionAbs,
+			options: this.options,
+			element: this.element
+		};
+	},
+	destroy: function() {
+		var drop = $.ui.ddmanager.droppables;
+		for ( var i = 0; i < drop.length; i++ )
+			if ( drop[i] == this )
+				drop.splice(i, 1);
+		
+		this.element
+			.removeClass("ui-droppable ui-droppable-disabled")
+			.removeData("droppable")
+			.unbind(".droppable");
+	},
+	over: function(e) {
+		
+		var draggable = $.ui.ddmanager.current;
+		if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
+		
+		if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+			$.ui.plugin.call(this, 'over', [e, this.ui(draggable)]);
+			this.element.triggerHandler("dropover", [e, this.ui(draggable)], this.options.over);
+		}
+		
+	},
+	out: function(e) {
+		
+		var draggable = $.ui.ddmanager.current;
+		if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
+		
+		if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+			$.ui.plugin.call(this, 'out', [e, this.ui(draggable)]);
+			this.element.triggerHandler("dropout", [e, this.ui(draggable)], this.options.out);
+		}
+		
+	},
+	drop: function(e,custom) {
+		
+		var draggable = custom || $.ui.ddmanager.current;
+		if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element
+		
+		var childrenIntersection = false;
+		this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function() {
+			var inst = $.data(this, 'droppable');
+			if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {
+				childrenIntersection = true; return false;
+			}
+		});
+		if(childrenIntersection) return false;
+		
+		if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+			$.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]);
+			this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop);
+			return true;
+		}
+		
+		return false;
+		
+	},
+	activate: function(e) {
+		
+		var draggable = $.ui.ddmanager.current;
+		$.ui.plugin.call(this, 'activate', [e, this.ui(draggable)]);
+		if(draggable) this.element.triggerHandler("dropactivate", [e, this.ui(draggable)], this.options.activate);
+		
+	},
+	deactivate: function(e) {
+		
+		var draggable = $.ui.ddmanager.current;
+		$.ui.plugin.call(this, 'deactivate', [e, this.ui(draggable)]);
+		if(draggable) this.element.triggerHandler("dropdeactivate", [e, this.ui(draggable)], this.options.deactivate);
+		
+	}
+});
+
+$.extend($.ui.droppable, {
+	defaults: {
+		disabled: false,
+		tolerance: 'intersect'
+	}
+});
+
+$.ui.intersect = function(draggable, droppable, toleranceMode) {
+	
+	if (!droppable.offset) return false;
+	
+	var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,
+		y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height;
+	var l = droppable.offset.left, r = l + droppable.proportions.width,
+		t = droppable.offset.top, b = t + droppable.proportions.height;
+	
+	switch (toleranceMode) {
+		case 'fit':
+			return (l < x1 && x2 < r
+				&& t < y1 && y2 < b);
+			break;
+		case 'intersect':
+			return (l < x1 + (draggable.helperProportions.width / 2) // Right Half
+				&& x2 - (draggable.helperProportions.width / 2) < r // Left Half
+				&& t < y1 + (draggable.helperProportions.height / 2) // Bottom Half
+				&& y2 - (draggable.helperProportions.height / 2) < b ); // Top Half
+			break;
+		case 'pointer':
+			return (l < ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) && ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) < r
+				&& t < ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) && ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) < b);
+			break;
+		case 'touch':
+			return (
+					(y1 >= t && y1 <= b) ||	// Top edge touching
+					(y2 >= t && y2 <= b) ||	// Bottom edge touching
+					(y1 < t && y2 > b)		// Surrounded vertically
+				) && (
+					(x1 >= l && x1 <= r) ||	// Left edge touching
+					(x2 >= l && x2 <= r) ||	// Right edge touching
+					(x1 < l && x2 > r)		// Surrounded horizontally
+				);
+			break;
+		default:
+			return false;
+			break;
+		}
+	
+};
+
+/*
+	This manager tracks offsets of draggables and droppables
+*/
+$.ui.ddmanager = {
+	current: null,
+	droppables: [],
+	prepareOffsets: function(t, e) {
+		
+		var m = $.ui.ddmanager.droppables;
+		var type = e ? e.type : null; // workaround for #2317
+
+		for (var i = 0; i < m.length; i++) {
+			if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue;
+			m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue
+			m[i].offset = m[i].element.offset();
+			m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };
+			
+			if(type == "dragstart" || type == "sortactivate") m[i].activate.call(m[i], e); //Activate the droppable if used directly from draggables
+		}
+		
+	},
+	drop: function(draggable, e) {
+		
+		var dropped = false;
+		$.each($.ui.ddmanager.droppables, function() {
+			
+			if(!this.options) return;
+			if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))
+				dropped = this.drop.call(this, e);
+			
+			if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+				this.isout = 1; this.isover = 0;
+				this.deactivate.call(this, e);
+			}
+			
+		});
+		return dropped;
+		
+	},
+	drag: function(draggable, e) {
+		
+		//If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
+		if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e);
+		
+		//Run through all droppables and check their positions based on specific tolerance options
+
+		$.each($.ui.ddmanager.droppables, function() {
+			
+			if(this.options.disabled || this.greedyChild || !this.visible) return;
+			var intersects = $.ui.intersect(draggable, this, this.options.tolerance);
+			
+			var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null);
+			if(!c) return;
+			
+			var parentInstance;
+			if (this.options.greedy) {
+				var parent = this.element.parents('.ui-droppable:eq(0)');
+				if (parent.length) {
+					parentInstance = $.data(parent[0], 'droppable');
+					parentInstance.greedyChild = (c == 'isover' ? 1 : 0);
+				}
+			}
+			
+			// we just moved into a greedy child
+			if (parentInstance && c == 'isover') {
+				parentInstance['isover'] = 0;
+				parentInstance['isout'] = 1;
+				parentInstance.out.call(parentInstance, e);
+			}
+			
+			this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0;
+			this[c == "isover" ? "over" : "out"].call(this, e);
+			
+			// we just moved out of a greedy child
+			if (parentInstance && c == 'isout') {
+				parentInstance['isout'] = 0;
+				parentInstance['isover'] = 1;
+				parentInstance.over.call(parentInstance, e);
+			}
+		});
+		
+	}
+};
+
+/*
+ * Droppable Extensions
+ */
+
+$.ui.plugin.add("droppable", "activeClass", {
+	activate: function(e, ui) {
+		$(this).addClass(ui.options.activeClass);
+	},
+	deactivate: function(e, ui) {
+		$(this).removeClass(ui.options.activeClass);
+	},
+	drop: function(e, ui) {
+		$(this).removeClass(ui.options.activeClass);
+	}
+});
+
+$.ui.plugin.add("droppable", "hoverClass", {
+	over: function(e, ui) {
+		$(this).addClass(ui.options.hoverClass);
+	},
+	out: function(e, ui) {
+		$(this).removeClass(ui.options.hoverClass);
+	},
+	drop: function(e, ui) {
+		$(this).removeClass(ui.options.hoverClass);
+	}
+});
+
+})(jQuery);
+/*
+ * jQuery UI Resizable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Resizables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($) {
+
+$.widget("ui.resizable", $.extend({}, $.ui.mouse, {
+	init: function() {
+
+		var self = this, o = this.options;
+
+		var elpos = this.element.css('position');
+		
+		this.originalElement = this.element;
+		
+		// simulate .ui-resizable { position: relative; }
+		this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos });
+		
+		$.extend(o, {
+			_aspectRatio: !!(o.aspectRatio),
+			helper: o.helper || o.ghost || o.animate ? o.helper || 'proxy' : null,
+			knobHandles: o.knobHandles === true ? 'ui-resizable-knob-handle' : o.knobHandles
+		});
+		
+		//Default Theme
+		var aBorder = '1px solid #DEDEDE';
+		
+		o.defaultTheme = {
+			'ui-resizable': { display: 'block' },
+			'ui-resizable-handle': { position: 'absolute', background: '#F2F2F2', fontSize: '0.1px' },
+			'ui-resizable-n': { cursor: 'n-resize', height: '4px', left: '0px', right: '0px', borderTop: aBorder },
+			'ui-resizable-s': { cursor: 's-resize', height: '4px', left: '0px', right: '0px', borderBottom: aBorder },
+			'ui-resizable-e': { cursor: 'e-resize', width: '4px', top: '0px', bottom: '0px', borderRight: aBorder },
+			'ui-resizable-w': { cursor: 'w-resize', width: '4px', top: '0px', bottom: '0px', borderLeft: aBorder },
+			'ui-resizable-se': { cursor: 'se-resize', width: '4px', height: '4px', borderRight: aBorder, borderBottom: aBorder },
+			'ui-resizable-sw': { cursor: 'sw-resize', width: '4px', height: '4px', borderBottom: aBorder, borderLeft: aBorder },
+			'ui-resizable-ne': { cursor: 'ne-resize', width: '4px', height: '4px', borderRight: aBorder, borderTop: aBorder },
+			'ui-resizable-nw': { cursor: 'nw-resize', width: '4px', height: '4px', borderLeft: aBorder, borderTop: aBorder }
+		};
+		
+		o.knobTheme = {
+			'ui-resizable-handle': { background: '#F2F2F2', border: '1px solid #808080', height: '8px', width: '8px' },
+			'ui-resizable-n': { cursor: 'n-resize', top: '0px', left: '45%' },
+			'ui-resizable-s': { cursor: 's-resize', bottom: '0px', left: '45%' },
+			'ui-resizable-e': { cursor: 'e-resize', right: '0px', top: '45%' },
+			'ui-resizable-w': { cursor: 'w-resize', left: '0px', top: '45%' },
+			'ui-resizable-se': { cursor: 'se-resize', right: '0px', bottom: '0px' },
+			'ui-resizable-sw': { cursor: 'sw-resize', left: '0px', bottom: '0px' },
+			'ui-resizable-nw': { cursor: 'nw-resize', left: '0px', top: '0px' },
+			'ui-resizable-ne': { cursor: 'ne-resize', right: '0px', top: '0px' }
+		};
+		
+		o._nodeName = this.element[0].nodeName;
+		
+		//Wrap the element if it cannot hold child nodes
+		if(o._nodeName.match(/canvas|textarea|input|select|button|img/i)) {
+			var el = this.element;
+			
+			//Opera fixing relative position
+			if (/relative/.test(el.css('position')) && $.browser.opera)
+				el.css({ position: 'relative', top: 'auto', left: 'auto' });
+			
+			//Create a wrapper element and set the wrapper to the new current internal element
+			el.wrap(
+				$('<div class="ui-wrapper"	style="overflow: hidden;"></div>').css( {
+					position: el.css('position'),
+					width: el.outerWidth(),
+					height: el.outerHeight(),
+					top: el.css('top'),
+					left: el.css('left')
+				})
+			);
+			
+			var oel = this.element; this.element = this.element.parent();
+			
+			// store instance on wrapper
+			this.element.data('resizable', this); 
+			
+			//Move margins to the wrapper
+			this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"),
+				marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom")
+			});
+			
+			oel.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0});
+			
+			//Prevent Safari textarea resize
+			if ($.browser.safari && o.preventDefault) oel.css('resize', 'none');
+			
+			o.proportionallyResize = oel.css({ position: 'static', zoom: 1, display: 'block' });
+			
+			// avoid IE jump
+			this.element.css({ margin: oel.css('margin') });
+			
+			// fix handlers offset
+			this._proportionallyResize();
+		}
+		
+		if(!o.handles) o.handles = !$('.ui-resizable-handle', this.element).length ? "e,s,se" : { n: '.ui-resizable-n', e: '.ui-resizable-e', s: '.ui-resizable-s', w: '.ui-resizable-w', se: '.ui-resizable-se', sw: '.ui-resizable-sw', ne: '.ui-resizable-ne', nw: '.ui-resizable-nw' };
+		if(o.handles.constructor == String) {
+			
+			o.zIndex = o.zIndex || 1000;
+			
+			if(o.handles == 'all') o.handles = 'n,e,s,w,se,sw,ne,nw';
+			
+			var n = o.handles.split(","); o.handles = {};
+			
+			// insertions are applied when don't have theme loaded
+			var insertionsDefault = {
+				handle: 'position: absolute; display: none; overflow:hidden;',
+				n: 'top: 0pt; width:100%;',
+				e: 'right: 0pt; height:100%;',
+				s: 'bottom: 0pt; width:100%;',
+				w: 'left: 0pt; height:100%;',
+				se: 'bottom: 0pt; right: 0px;',
+				sw: 'bottom: 0pt; left: 0px;',
+				ne: 'top: 0pt; right: 0px;',
+				nw: 'top: 0pt; left: 0px;'
+			};
+			
+			for(var i = 0; i < n.length; i++) {
+				var handle = $.trim(n[i]), dt = o.defaultTheme, hname = 'ui-resizable-'+handle, loadDefault = !$.ui.css(hname) && !o.knobHandles, userKnobClass = $.ui.css('ui-resizable-knob-handle'), 
+							allDefTheme = $.extend(dt[hname], dt['ui-resizable-handle']), allKnobTheme = $.extend(o.knobTheme[hname], !userKnobClass ? o.knobTheme['ui-resizable-handle'] : {});
+				
+				// increase zIndex of sw, se, ne, nw axis
+				var applyZIndex = /sw|se|ne|nw/.test(handle) ? { zIndex: ++o.zIndex } : {};
+				
+				var defCss = (loadDefault ? insertionsDefault[handle] : ''), 
+					axis = $(['<div class="ui-resizable-handle ', hname, '" style="', defCss, insertionsDefault.handle, '"></div>'].join('')).css( applyZIndex );
+				o.handles[handle] = '.ui-resizable-'+handle;
+				
+				this.element.append(
+					//Theme detection, if not loaded, load o.defaultTheme
+					axis.css( loadDefault ? allDefTheme : {} )
+						// Load the knobHandle css, fix width, height, top, left...
+						.css( o.knobHandles ? allKnobTheme : {} ).addClass(o.knobHandles ? 'ui-resizable-knob-handle' : '').addClass(o.knobHandles)
+				);
+			}
+			
+			if (o.knobHandles) this.element.addClass('ui-resizable-knob').css( !$.ui.css('ui-resizable-knob') ? { /*border: '1px #fff dashed'*/ } : {} );
+		}
+		
+		this._renderAxis = function(target) {
+			target = target || this.element;
+			
+			for(var i in o.handles) {
+				if(o.handles[i].constructor == String) 
+					o.handles[i] = $(o.handles[i], this.element).show();
+				
+				if (o.transparent)
+					o.handles[i].css({opacity:0});
+				
+				//Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls)
+				if (this.element.is('.ui-wrapper') && 
+					o._nodeName.match(/textarea|input|select|button/i)) {
+					
+					var axis = $(o.handles[i], this.element), padWrapper = 0;
+					
+					//Checking the correct pad and border
+					padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();
+					
+					//The padding type i have to apply...
+					var padPos = [ 'padding', 
+						/ne|nw|n/.test(i) ? 'Top' :
+						/se|sw|s/.test(i) ? 'Bottom' : 
+						/^e$/.test(i) ? 'Right' : 'Left' ].join(""); 
+					
+					if (!o.transparent)
+						target.css(padPos, padWrapper);
+					
+					this._proportionallyResize();
+				}
+				if(!$(o.handles[i]).length) continue;
+			}
+		};
+		
+		this._renderAxis(this.element);
+		o._handles = $('.ui-resizable-handle', self.element);
+		
+		if (o.disableSelection)
+			o._handles.each(function(i, e) { $.ui.disableSelection(e); });
+		
+		//Matching axis name
+		o._handles.mouseover(function() {
+			if (!o.resizing) {
+				if (this.className) 
+					var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
+				//Axis, default = se
+				self.axis = o.axis = axis && axis[1] ? axis[1] : 'se';
+			}
+		});
+		
+		//If we want to auto hide the elements
+		if (o.autoHide) {
+			o._handles.hide();
+			$(self.element).addClass("ui-resizable-autohide").hover(function() {
+				$(this).removeClass("ui-resizable-autohide");
+				o._handles.show();
+			},
+			function(){
+				if (!o.resizing) {
+					$(this).addClass("ui-resizable-autohide");
+					o._handles.hide();
+				}
+			});
+		}
+		
+		this.mouseInit();
+	},
+	plugins: {},
+	ui: function() {
+		return {
+			originalElement: this.originalElement,
+			element: this.element,
+			helper: this.helper,
+			position: this.position,
+			size: this.size,
+			options: this.options,
+			originalSize: this.originalSize,
+			originalPosition: this.originalPosition
+		};
+	},
+	propagate: function(n,e) {
+		$.ui.plugin.call(this, n, [e, this.ui()]);
+		if (n != "resize") this.element.triggerHandler(["resize", n].join(""), [e, this.ui()], this.options[n]);
+	},
+	destroy: function() {
+		var el = this.element, wrapped = el.children(".ui-resizable").get(0);
+		
+		this.mouseDestroy();
+		
+		var _destroy = function(exp) {
+			$(exp).removeClass("ui-resizable ui-resizable-disabled")
+				.removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
+		};
+		
+		_destroy(el);
+		
+		if (el.is('.ui-wrapper') && wrapped) {
+			el.parent().append(
+				$(wrapped).css({
+					position: el.css('position'),
+					width: el.outerWidth(),
+					height: el.outerHeight(),
+					top: el.css('top'),
+					left: el.css('left')
+				})
+			).end().remove();
+			
+			_destroy(wrapped);
+		}
+	},
+	mouseStart: function(e) {
+		if(this.options.disabled) return false;
+		
+		var handle = false;
+		for(var i in this.options.handles) {
+			if($(this.options.handles[i])[0] == e.target) handle = true;
+		}
+		if (!handle) return false;
+		
+		var o = this.options, iniPos = this.element.position(), el = this.element, 
+			num = function(v) { return parseInt(v, 10) || 0; }, ie6 = $.browser.msie && $.browser.version < 7;
+		o.resizing = true;
+		o.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
+		
+		// bugfix #1749
+		if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) {
+			
+			// sOffset decides if document scrollOffset will be added to the top/left of the resizable element
+			var sOffset = $.browser.msie && !o.containment && (/absolute/).test(el.css('position')) && !(/relative/).test(el.parent().css('position'));
+			var dscrollt = sOffset ? o.documentScroll.top : 0, dscrolll = sOffset ? o.documentScroll.left : 0;
+			
+			el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) });
+		}
+		
+		//Opera fixing relative position
+		if ($.browser.opera && /relative/.test(el.css('position')))
+			el.css({ position: 'relative', top: 'auto', left: 'auto' });
+		
+		this._renderProxy();
+		
+		var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top'));
+		
+		if (o.containment) {
+			curleft += $(o.containment).scrollLeft()||0;
+			curtop += $(o.containment).scrollTop()||0;
+		}
+		
+		//Store needed variables
+		this.offset = this.helper.offset();
+		this.position = { left: curleft, top: curtop };
+		this.size = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
+		this.originalSize = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
+		this.originalPosition = { left: curleft, top: curtop };
+		this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };
+		this.originalMousePosition = { left: e.pageX, top: e.pageY };
+		
+		//Aspect Ratio
+		o.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.height / this.originalSize.width)||1);
+		
+		if (o.preserveCursor)
+			$('body').css('cursor', this.axis + '-resize');
+			
+		this.propagate("start", e);
+		return true;
+	},
+	mouseDrag: function(e) {
+		
+		//Increase performance, avoid regex
+		var el = this.helper, o = this.options, props = {},
+			self = this, smp = this.originalMousePosition, a = this.axis;
+		
+		var dx = (e.pageX-smp.left)||0, dy = (e.pageY-smp.top)||0;
+		var trigger = this._change[a];
+		if (!trigger) return false;
+		
+		// Calculate the attrs that will be change
+		var data = trigger.apply(this, [e, dx, dy]), ie6 = $.browser.msie && $.browser.version < 7, csdif = this.sizeDiff;
+		
+		if (o._aspectRatio || e.shiftKey)
+			data = this._updateRatio(data, e);
+		
+		data = this._respectSize(data, e);
+		
+		// plugins callbacks need to be called first
+		this.propagate("resize", e);
+		
+		el.css({
+			top: this.position.top + "px", left: this.position.left + "px", 
+			width: this.size.width + "px", height: this.size.height + "px"
+		});
+		
+		if (!o.helper && o.proportionallyResize)
+			this._proportionallyResize();
+		
+		this._updateCache(data);
+		
+		// calling the user callback at the end
+		this.element.triggerHandler("resize", [e, this.ui()], this.options["resize"]);
+		
+		return false;
+	},
+	mouseStop: function(e) {
+		
+		this.options.resizing = false;
+		var o = this.options, num = function(v) { return parseInt(v, 10) || 0; }, self = this;
+		
+		if(o.helper) {
+			var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName), 
+						soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
+							soffsetw = ista ? 0 : self.sizeDiff.width;
+			
+			var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
+				left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null, 
+				top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;
+			
+			if (!o.animate)
+				this.element.css($.extend(s, { top: top, left: left }));
+			
+			if (o.helper && !o.animate) this._proportionallyResize();
+		}
+		
+		if (o.preserveCursor)
+			$('body').css('cursor', 'auto');
+		
+		this.propagate("stop", e);
+		
+		if (o.helper) this.helper.remove();
+		
+		return false;
+	},
+	_updateCache: function(data) {
+		var o = this.options;
+		this.offset = this.helper.offset();
+		if (data.left) this.position.left = data.left;
+		if (data.top) this.position.top = data.top;
+		if (data.height) this.size.height = data.height;
+		if (data.width) this.size.width = data.width;
+	},
+	_updateRatio: function(data, e) {
+		var o = this.options, cpos = this.position, csize = this.size, a = this.axis;
+		
+		if (data.height) data.width = (csize.height / o.aspectRatio);
+		else if (data.width) data.height = (csize.width * o.aspectRatio);
+		
+		if (a == 'sw') {
+			data.left = cpos.left + (csize.width - data.width);
+			data.top = null;
+		}
+		if (a == 'nw') { 
+			data.top = cpos.top + (csize.height - data.height);
+			data.left = cpos.left + (csize.width - data.width);
+		}
+		
+		return data;
+	},
+	_respectSize: function(data, e) {
+		
+		var el = this.helper, o = this.options, pRatio = o._aspectRatio || e.shiftKey, a = this.axis, 
+				ismaxw = data.width && o.maxWidth && o.maxWidth < data.width, ismaxh = data.height && o.maxHeight && o.maxHeight < data.height,
+					isminw = data.width && o.minWidth && o.minWidth > data.width, isminh = data.height && o.minHeight && o.minHeight > data.height;
+		
+		if (isminw) data.width = o.minWidth;
+		if (isminh) data.height = o.minHeight;
+		if (ismaxw) data.width = o.maxWidth;
+		if (ismaxh) data.height = o.maxHeight;
+		
+		var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height;
+		var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);
+		
+		if (isminw && cw) data.left = dw - o.minWidth;
+		if (ismaxw && cw) data.left = dw - o.maxWidth;
+		if (isminh && ch)	data.top = dh - o.minHeight;
+		if (ismaxh && ch)	data.top = dh - o.maxHeight;
+		
+		// fixing jump error on top/left - bug #2330
+		var isNotwh = !data.width && !data.height;
+		if (isNotwh && !data.left && data.top) data.top = null;
+		else if (isNotwh && !data.top && data.left) data.left = null;
+		
+		return data;
+	},
+	_proportionallyResize: function() {
+		var o = this.options;
+		if (!o.proportionallyResize) return;
+		var prel = o.proportionallyResize, el = this.helper || this.element;
+		
+		if (!o.borderDif) {
+			var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')],
+				p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')];
+			
+			o.borderDif = $.map(b, function(v, i) {
+				var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0;
+				return border + padding; 
+			});
+		}
+		prel.css({
+			height: (el.height() - o.borderDif[0] - o.borderDif[2]) + "px",
+			width: (el.width() - o.borderDif[1] - o.borderDif[3]) + "px"
+		});
+	},
+	_renderProxy: function() {
+		var el = this.element, o = this.options;
+		this.elementOffset = el.offset();
+		
+		if(o.helper) {
+			this.helper = this.helper || $('<div style="overflow:hidden;"></div>');
+			
+			// fix ie6 offset
+			var ie6 = $.browser.msie && $.browser.version < 7, ie6offset = (ie6 ? 1 : 0),
+			pxyoffset = ( ie6 ? 2 : -1 );
+			
+			this.helper.addClass(o.helper).css({
+				width: el.outerWidth() + pxyoffset,
+				height: el.outerHeight() + pxyoffset,
+				position: 'absolute',
+				left: this.elementOffset.left - ie6offset +'px',
+				top: this.elementOffset.top - ie6offset +'px',
+				zIndex: ++o.zIndex
+			});
+			
+			this.helper.appendTo("body");
+			
+			if (o.disableSelection)
+				$.ui.disableSelection(this.helper.get(0));
+			
+		} else {
+			this.helper = el; 
+		}
+	},
+	_change: {
+		e: function(e, dx, dy) {
+			return { width: this.originalSize.width + dx };
+		},
+		w: function(e, dx, dy) {
+			var o = this.options, cs = this.originalSize, sp = this.originalPosition;
+			return { left: sp.left + dx, width: cs.width - dx };
+		},
+		n: function(e, dx, dy) {
+			var o = this.options, cs = this.originalSize, sp = this.originalPosition;
+			return { top: sp.top + dy, height: cs.height - dy };
+		},
+		s: function(e, dx, dy) {
+			return { height: this.originalSize.height + dy };
+		},
+		se: function(e, dx, dy) {
+			return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
+		},
+		sw: function(e, dx, dy) {
+			return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
+		},
+		ne: function(e, dx, dy) {
+			return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
+		},
+		nw: function(e, dx, dy) {
+			return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
+		}
+	}
+}));
+
+$.extend($.ui.resizable, {
+	defaults: {
+		cancel: ":input",
+		distance: 1,
+		delay: 0,
+		preventDefault: true,
+		transparent: false,
+		minWidth: 10,
+		minHeight: 10,
+		aspectRatio: false,
+		disableSelection: true,
+		preserveCursor: true,
+		autoHide: false,
+		knobHandles: false
+	}
+});
+
+/*
+ * Resizable Extensions
+ */
+
+$.ui.plugin.add("resizable", "containment", {
+	
+	start: function(e, ui) {
+		var o = ui.options, self = $(this).data("resizable"), el = self.element;
+		var oc = o.containment,	ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc;
+		if (!ce) return;
+		
+		self.containerElement = $(ce);
+		
+		if (/document/.test(oc) || oc == document) {
+			self.containerOffset = { left: 0, top: 0 };
+			self.containerPosition = { left: 0, top: 0 };
+			
+			self.parentData = { 
+				element: $(document), left: 0, top: 0, 
+				width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight
+			};
+		}
+		
+				
+		// i'm a node, so compute top, left, right, bottom
+		else{
+			self.containerOffset = $(ce).offset();
+			self.containerPosition = $(ce).position();
+			self.containerSize = { height: $(ce).innerHeight(), width: $(ce).innerWidth() };
+		
+			var co = self.containerOffset, ch = self.containerSize.height,	cw = self.containerSize.width, 
+						width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch);
+		
+			self.parentData = { 
+				element: ce, left: co.left, top: co.top, width: width, height: height
+			};
+		}
+	},
+	
+	resize: function(e, ui) {
+		var o = ui.options, self = $(this).data("resizable"), 
+				ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
+				pRatio = o._aspectRatio || e.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
+		
+		if (ce[0] != document && /static/.test(ce.css('position')))
+			cop = self.containerPosition;
+		
+		if (cp.left < (o.helper ? co.left : cop.left)) {
+			self.size.width = self.size.width + (o.helper ? (self.position.left - co.left) : (self.position.left - cop.left));
+			if (pRatio) self.size.height = self.size.width * o.aspectRatio;
+			self.position.left = o.helper ? co.left : cop.left;
+		}
+		
+		if (cp.top < (o.helper ? co.top : 0)) {
+			self.size.height = self.size.height + (o.helper ? (self.position.top - co.top) : self.position.top);
+			if (pRatio) self.size.width = self.size.height / o.aspectRatio;
+			self.position.top = o.helper ? co.top : 0;
+		}
+		
+		var woset = (o.helper ? self.offset.left - co.left : (self.position.left - cop.left)) + self.sizeDiff.width, 
+					hoset = (o.helper ? self.offset.top - co.top : self.position.top) + self.sizeDiff.height;
+		
+		if (woset + self.size.width >= self.parentData.width) {
+			self.size.width = self.parentData.width - woset;
+			if (pRatio) self.size.height = self.size.width * o.aspectRatio;
+		}
+		
+		if (hoset + self.size.height >= self.parentData.height) {
+			self.size.height = self.parentData.height - hoset;
+			if (pRatio) self.size.width = self.size.height / o.aspectRatio;
+		}
+	},
+	
+	stop: function(e, ui){
+		var o = ui.options, self = $(this).data("resizable"), cp = self.position,
+				co = self.containerOffset, cop = self.containerPosition, ce = self.containerElement;
+		
+		var helper = $(self.helper), ho = helper.offset(), w = helper.innerWidth(), h = helper.innerHeight();
+		
+		
+		if (o.helper && !o.animate && /relative/.test(ce.css('position')))
+			$(this).css({ left: (ho.left - co.left), top: (ho.top - co.top), width: w, height: h });
+		
+		if (o.helper && !o.animate && /static/.test(ce.css('position')))
+			$(this).css({ left: cop.left + (ho.left - co.left), top: cop.top + (ho.top - co.top), width: w, height: h });
+		
+	}
+});
+
+$.ui.plugin.add("resizable", "grid", {
+	
+	resize: function(e, ui) {
+		var o = ui.options, self = $(this).data("resizable"), cs = self.size, os = self.originalSize, op = self.originalPosition, a = self.axis, ratio = o._aspectRatio || e.shiftKey;
+		o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid;
+		var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1);
+		
+		if (/^(se|s|e)$/.test(a)) {
+			self.size.width = os.width + ox;
+			self.size.height = os.height + oy;
+		}
+		else if (/^(ne)$/.test(a)) {
+			self.size.width = os.width + ox;
+			self.size.height = os.height + oy;
+			self.position.top = op.top - oy;
+		}
+		else if (/^(sw)$/.test(a)) {
+			self.size.width = os.width + ox;
+			self.size.height = os.height + oy;
+			self.position.left = op.left - ox;
+		}
+		else {
+			self.size.width = os.width + ox;
+			self.size.height = os.height + oy;
+			self.position.top = op.top - oy;
+			self.position.left = op.left - ox;
+		}
+	}
+	
+});
+
+$.ui.plugin.add("resizable", "animate", {
+	
+	stop: function(e, ui) {
+		var o = ui.options, self = $(this).data("resizable");
+		
+		var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName), 
+						soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
+							soffsetw = ista ? 0 : self.sizeDiff.width;
+		
+		var style = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
+					left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null, 
+						top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null; 
+		
+		self.element.animate(
+			$.extend(style, top && left ? { top: top, left: left } : {}), { 
+				duration: o.animateDuration || "slow", easing: o.animateEasing || "swing", 
+				step: function() {
+					
+					var data = {
+						width: parseInt(self.element.css('width'), 10),
+						height: parseInt(self.element.css('height'), 10),
+						top: parseInt(self.element.css('top'), 10),
+						left: parseInt(self.element.css('left'), 10)
+					};
+					
+					if (pr) pr.css({ width: data.width, height: data.height });
+					
+					// propagating resize, and updating values for each animation step
+					self._updateCache(data);
+					self.propagate("animate", e);
+					
+				}
+			}
+		);
+	}
+	
+});
+
+$.ui.plugin.add("resizable", "ghost", {
+	
+	start: function(e, ui) {
+		var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize, cs = self.size;
+		
+		if (!pr) self.ghost = self.element.clone();
+		else self.ghost = pr.clone();
+		
+		self.ghost.css(
+			{ opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 }
+		)
+		.addClass('ui-resizable-ghost').addClass(typeof o.ghost == 'string' ? o.ghost : '');
+		
+		self.ghost.appendTo(self.helper);
+		
+	},
+	
+	resize: function(e, ui){
+		var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
+		
+		if (self.ghost) self.ghost.css({ position: 'relative', height: self.size.height, width: self.size.width });
+		
+	},
+	
+	stop: function(e, ui){
+		var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
+		if (self.ghost && self.helper) self.helper.get(0).removeChild(self.ghost.get(0));
+	}
+	
+});
+
+$.ui.plugin.add("resizable", "alsoResize", {
+	
+	start: function(e, ui) {
+		var o = ui.options, self = $(this).data("resizable"), 
+		
+		_store = function(exp) {
+			$(exp).each(function() {
+				$(this).data("resizable-alsoresize", {
+					width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10),
+					left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10)
+				});
+			});
+		};
+		
+		if (typeof(o.alsoResize) == 'object') {
+			if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0];	_store(o.alsoResize); }
+			else { $.each(o.alsoResize, function(exp, c) { _store(exp); }); }
+		}else{
+			_store(o.alsoResize);
+		} 
+	},
+	
+	resize: function(e, ui){
+		var o = ui.options, self = $(this).data("resizable"), os = self.originalSize, op = self.originalPosition;
+		
+		var delta = { 
+			height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0,
+			top: (self.position.top - op.top) || 0, left: (self.position.left - op.left) || 0
+		},
+		
+		_alsoResize = function(exp, c) {
+			$(exp).each(function() {
+				var start = $(this).data("resizable-alsoresize"), style = {}, css = c && c.length ? c : ['width', 'height', 'top', 'left'];
+				
+				$.each(css || ['width', 'height', 'top', 'left'], function(i, prop) {
+					var sum = (start[prop]||0) + (delta[prop]||0);
+					if (sum && sum >= 0)
+						style[prop] = sum || null;
+				});
+				$(this).css(style);
+			});
+		};
+		
+		if (typeof(o.alsoResize) == 'object') {
+			$.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
+		}else{
+			_alsoResize(o.alsoResize);
+		}
+	},
+	
+	stop: function(e, ui){
+		$(this).removeData("resizable-alsoresize-start");
+	}
+});
+
+})(jQuery);
+/*
+ * jQuery UI Selectable
+ *
+ * Copyright (c) 2008 Richard D. Worth (rdworth.org)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Selectables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($) {
+
+$.widget("ui.selectable", $.extend({}, $.ui.mouse, {
+	init: function() {
+		var self = this;
+		
+		this.element.addClass("ui-selectable");
+		
+		this.dragged = false;
+
+		// cache selectee children based on filter
+		var selectees;
+		this.refresh = function() {
+			selectees = $(self.options.filter, self.element[0]);
+			selectees.each(function() {
+				var $this = $(this);
+				var pos = $this.offset();
+				$.data(this, "selectable-item", {
+					element: this,
+					$element: $this,
+					left: pos.left,
+					top: pos.top,
+					right: pos.left + $this.width(),
+					bottom: pos.top + $this.height(),
+					startselected: false,
+					selected: $this.hasClass('ui-selected'),
+					selecting: $this.hasClass('ui-selecting'),
+					unselecting: $this.hasClass('ui-unselecting')
+				});
+			});
+		};
+		this.refresh();
+
+		this.selectees = selectees.addClass("ui-selectee");
+		
+		this.mouseInit();
+		
+		this.helper = $(document.createElement('div')).css({border:'1px dotted black'});
+	},
+	toggle: function() {
+		if(this.options.disabled){
+			this.enable();
+		} else {
+			this.disable();
+		}
+	},
+	destroy: function() {
+		this.element
+			.removeClass("ui-selectable ui-selectable-disabled")
+			.removeData("selectable")
+			.unbind(".selectable");
+		this.mouseDestroy();
+	},
+	mouseStart: function(e) {
+		var self = this;
+		
+		this.opos = [e.pageX, e.pageY];
+		
+		if (this.options.disabled)
+			return;
+
+		var options = this.options;
+
+		this.selectees = $(options.filter, this.element[0]);
+
+		// selectable START callback
+		this.element.triggerHandler("selectablestart", [e, {
+			"selectable": this.element[0],
+			"options": options
+		}], options.start);
+
+		$('body').append(this.helper);
+		// position helper (lasso)
+		this.helper.css({
+			"z-index": 100,
+			"position": "absolute",
+			"left": e.clientX,
+			"top": e.clientY,
+			"width": 0,
+			"height": 0
+		});
+
+		if (options.autoRefresh) {
+			this.refresh();
+		}
+
+		this.selectees.filter('.ui-selected').each(function() {
+			var selectee = $.data(this, "selectable-item");
+			selectee.startselected = true;
+			if (!e.ctrlKey) {
+				selectee.$element.removeClass('ui-selected');
+				selectee.selected = false;
+				selectee.$element.addClass('ui-unselecting');
+				selectee.unselecting = true;
+				// selectable UNSELECTING callback
+				self.element.triggerHandler("selectableunselecting", [e, {
+					selectable: self.element[0],
+					unselecting: selectee.element,
+					options: options
+				}], options.unselecting);
+			}
+		});
+		
+		var isSelectee = false;
+		$(e.target).parents().andSelf().each(function() {
+			if($.data(this, "selectable-item")) isSelectee = true;
+		});
+		return this.options.keyboard ? !isSelectee : true;
+	},
+	mouseDrag: function(e) {
+		var self = this;
+		this.dragged = true;
+		
+		if (this.options.disabled)
+			return;
+
+		var options = this.options;
+
+		var x1 = this.opos[0], y1 = this.opos[1], x2 = e.pageX, y2 = e.pageY;
+		if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; }
+		if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; }
+		this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1});
+
+		this.selectees.each(function() {
+			var selectee = $.data(this, "selectable-item");
+			//prevent helper from being selected if appendTo: selectable
+			if (!selectee || selectee.element == self.element[0])
+				return;
+			var hit = false;
+			if (options.tolerance == 'touch') {
+				hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );
+			} else if (options.tolerance == 'fit') {
+				hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);
+			}
+
+			if (hit) {
+				// SELECT
+				if (selectee.selected) {
+					selectee.$element.removeClass('ui-selected');
+					selectee.selected = false;
+				}
+				if (selectee.unselecting) {
+					selectee.$element.removeClass('ui-unselecting');
+					selectee.unselecting = false;
+				}
+				if (!selectee.selecting) {
+					selectee.$element.addClass('ui-selecting');
+					selectee.selecting = true;
+					// selectable SELECTING callback
+					self.element.triggerHandler("selectableselecting", [e, {
+						selectable: self.element[0],
+						selecting: selectee.element,
+						options: options
+					}], options.selecting);
+				}
+			} else {
+				// UNSELECT
+				if (selectee.selecting) {
+					if (e.ctrlKey && selectee.startselected) {
+						selectee.$element.removeClass('ui-selecting');
+						selectee.selecting = false;
+						selectee.$element.addClass('ui-selected');
+						selectee.selected = true;
+					} else {
+						selectee.$element.removeClass('ui-selecting');
+						selectee.selecting = false;
+						if (selectee.startselected) {
+							selectee.$element.addClass('ui-unselecting');
+							selectee.unselecting = true;
+						}
+						// selectable UNSELECTING callback
+						self.element.triggerHandler("selectableunselecting", [e, {
+							selectable: self.element[0],
+							unselecting: selectee.element,
+							options: options
+						}], options.unselecting);
+					}
+				}
+				if (selectee.selected) {
+					if (!e.ctrlKey && !selectee.startselected) {
+						selectee.$element.removeClass('ui-selected');
+						selectee.selected = false;
+
+						selectee.$element.addClass('ui-unselecting');
+						selectee.unselecting = true;
+						// selectable UNSELECTING callback
+						self.element.triggerHandler("selectableunselecting", [e, {
+							selectable: self.element[0],
+							unselecting: selectee.element,
+							options: options
+						}], options.unselecting);
+					}
+				}
+			}
+		});
+		
+		return false;
+	},
+	mouseStop: function(e) {
+		var self = this;
+		
+		this.dragged = false;
+		
+		var options = this.options;
+
+		$('.ui-unselecting', this.element[0]).each(function() {
+			var selectee = $.data(this, "selectable-item");
+			selectee.$element.removeClass('ui-unselecting');
+			selectee.unselecting = false;
+			selectee.startselected = false;
+			self.element.triggerHandler("selectableunselected", [e, {
+				selectable: self.element[0],
+				unselected: selectee.element,
+				options: options
+			}], options.unselected);
+		});
+		$('.ui-selecting', this.element[0]).each(function() {
+			var selectee = $.data(this, "selectable-item");
+			selectee.$element.removeClass('ui-selecting').addClass('ui-selected');
+			selectee.selecting = false;
+			selectee.selected = true;
+			selectee.startselected = true;
+			self.element.triggerHandler("selectableselected", [e, {
+				selectable: self.element[0],
+				selected: selectee.element,
+				options: options
+			}], options.selected);
+		});
+		this.element.triggerHandler("selectablestop", [e, {
+			selectable: self.element[0],
+			options: this.options
+		}], this.options.stop);
+		
+		this.helper.remove();
+		
+		return false;
+	}
+}));
+
+$.extend($.ui.selectable, {
+	defaults: {
+		distance: 1,
+		delay: 0,
+		cancel: ":input",
+		appendTo: 'body',
+		autoRefresh: true,
+		filter: '*',
+		tolerance: 'touch'
+	}
+});
+
+})(jQuery);
+/*
+ * jQuery UI Sortable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Sortables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($) {
+
+function contains(a, b) { 
+    var safari2 = $.browser.safari && $.browser.version < 522; 
+    if (a.contains && !safari2) { 
+        return a.contains(b); 
+    } 
+    if (a.compareDocumentPosition) 
+        return !!(a.compareDocumentPosition(b) & 16); 
+    while (b = b.parentNode) 
+          if (b == a) return true; 
+    return false; 
+};
+
+$.widget("ui.sortable", $.extend({}, $.ui.mouse, {
+	init: function() {
+
+		var o = this.options;
+		this.containerCache = {};
+		this.element.addClass("ui-sortable");
+	
+		//Get the items
+		this.refresh();
+
+		//Let's determine if the items are floating
+		this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;
+		
+		//Let's determine the parent's offset
+		if(!(/(relative|absolute|fixed)/).test(this.element.css('position'))) this.element.css('position', 'relative');
+		this.offset = this.element.offset();
+
+		//Initialize mouse events for interaction
+		this.mouseInit();
+		
+	},
+	plugins: {},
+	ui: function(inst) {
+		return {
+			helper: (inst || this)["helper"],
+			placeholder: (inst || this)["placeholder"] || $([]),
+			position: (inst || this)["position"],
+			absolutePosition: (inst || this)["positionAbs"],
+			options: this.options,
+			element: this.element,
+			item: (inst || this)["currentItem"],
+			sender: inst ? inst.element : null
+		};		
+	},
+	propagate: function(n,e,inst, noPropagation) {
+		$.ui.plugin.call(this, n, [e, this.ui(inst)]);
+		if(!noPropagation) this.element.triggerHandler(n == "sort" ? n : "sort"+n, [e, this.ui(inst)], this.options[n]);
+	},
+	serialize: function(o) {
+
+		var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
+		var str = []; o = o || {};
+		
+		items.each(function() {
+			var res = ($(this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
+			if(res) str.push((o.key || res[1])+'[]='+(o.key && o.expression ? res[1] : res[2]));
+		});
+		
+		return str.join('&');
+		
+	},
+	toArray: function(attr) {
+		
+		var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
+		var ret = [];
+
+		items.each(function() { ret.push($(this).attr(attr || 'id')); });
+		return ret;
+		
+	},
+	/* Be careful with the following core functions */
+	intersectsWith: function(item) {
+		
+		var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
+		y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
+		var l = item.left, r = l + item.width, 
+		t = item.top, b = t + item.height;
+
+		if(this.options.tolerance == "pointer" || this.options.forcePointerForContainers || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
+			return (y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r);
+		} else {
+		
+			return (l < x1 + (this.helperProportions.width / 2) // Right Half
+				&& x2 - (this.helperProportions.width / 2) < r // Left Half
+				&& t < y1 + (this.helperProportions.height / 2) // Bottom Half
+				&& y2 - (this.helperProportions.height / 2) < b ); // Top Half
+		
+		}
+		
+	},
+	intersectsWithEdge: function(item) {	
+		var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
+			y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
+		var l = item.left, r = l + item.width, 
+			t = item.top, b = t + item.height;
+
+		if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
+
+			if(!(y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r)) return false;
+			
+			if(this.floating) {
+				if(x1 + this.offset.click.left > l && x1 + this.offset.click.left < l + item.width/2) return 2;
+				if(x1 + this.offset.click.left > l+item.width/2 && x1 + this.offset.click.left < r) return 1;
+			} else {
+				if(y1 + this.offset.click.top > t && y1 + this.offset.click.top < t + item.height/2) return 2;
+				if(y1 + this.offset.click.top > t+item.height/2 && y1 + this.offset.click.top < b) return 1;
+			}
+
+		} else {
+		
+			if (!(l < x1 + (this.helperProportions.width / 2) // Right Half
+				&& x2 - (this.helperProportions.width / 2) < r // Left Half
+				&& t < y1 + (this.helperProportions.height / 2) // Bottom Half
+				&& y2 - (this.helperProportions.height / 2) < b )) return false; // Top Half
+			
+			if(this.floating) {
+				if(x2 > l && x1 < l) return 2; //Crosses left edge
+				if(x1 < r && x2 > r) return 1; //Crosses right edge
+			} else {
+				if(y2 > t && y1 < t) return 1; //Crosses top edge
+				if(y1 < b && y2 > b) return 2; //Crosses bottom edge
+			}
+		
+		}
+		
+		return false;
+		
+	},
+	refresh: function() {
+		this.refreshItems();
+		this.refreshPositions();
+	},
+	refreshItems: function() {
+		
+		this.items = [];
+		this.containers = [this];
+		var items = this.items;
+		var self = this;
+		var queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element), this]];
+	
+		if(this.options.connectWith) {
+			for (var i = this.options.connectWith.length - 1; i >= 0; i--){
+				var cur = $(this.options.connectWith[i]);
+				for (var j = cur.length - 1; j >= 0; j--){
+					var inst = $.data(cur[j], 'sortable');
+					if(inst && !inst.options.disabled) {
+						queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element), inst]);
+						this.containers.push(inst);
+					}
+				};
+			};
+		}
+
+		for (var i = queries.length - 1; i >= 0; i--){
+			queries[i][0].each(function() {
+				$.data(this, 'sortable-item', queries[i][1]); // Data for target checking (mouse manager)
+				items.push({
+					item: $(this),
+					instance: queries[i][1],
+					width: 0, height: 0,
+					left: 0, top: 0
+				});
+			});
+		};
+
+	},
+	refreshPositions: function(fast) {
+
+		//This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
+		if(this.offsetParent) {
+			var po = this.offsetParent.offset();
+			this.offset.parent = { top: po.top + this.offsetParentBorders.top, left: po.left + this.offsetParentBorders.left };
+		}
+
+		for (var i = this.items.length - 1; i >= 0; i--){		
+			
+			//We ignore calculating positions of all connected containers when we're not over them
+			if(this.items[i].instance != this.currentContainer && this.currentContainer && this.items[i].item[0] != this.currentItem[0])
+				continue;
+				
+			var t = this.options.toleranceElement ? $(this.options.toleranceElement, this.items[i].item) : this.items[i].item;
+			
+			if(!fast) {
+				this.items[i].width = t[0].offsetWidth;
+				this.items[i].height = t[0].offsetHeight;
+			}
+			
+			var p = t.offset();
+			this.items[i].left = p.left;
+			this.items[i].top = p.top;
+			
+		};
+
+		if(this.options.custom && this.options.custom.refreshContainers) {
+			this.options.custom.refreshContainers.call(this);
+		} else {
+			for (var i = this.containers.length - 1; i >= 0; i--){
+				var p =this.containers[i].element.offset();
+				this.containers[i].containerCache.left = p.left;
+				this.containers[i].containerCache.top = p.top;
+				this.containers[i].containerCache.width	= this.containers[i].element.outerWidth();
+				this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
+			};
+		}
+
+	},
+	destroy: function() {
+		this.element
+			.removeClass("ui-sortable ui-sortable-disabled")
+			.removeData("sortable")
+			.unbind(".sortable");
+		this.mouseDestroy();
+		
+		for ( var i = this.items.length - 1; i >= 0; i-- )
+			this.items[i].item.removeData("sortable-item");
+	},
+	createPlaceholder: function(that) {
+		
+		var self = that || this, o = self.options;
+
+		if(o.placeholder.constructor == String) {
+			var className = o.placeholder;
+			o.placeholder = {
+				element: function() {
+					return $('<div></div>').addClass(className)[0];
+				},
+				update: function(i, p) {
+					p.css(i.offset()).css({ width: i.outerWidth(), height: i.outerHeight() });
+				}
+			};
+		}
+		
+		self.placeholder = $(o.placeholder.element.call(self.element, self.currentItem)).appendTo('body').css({ position: 'absolute' });
+		o.placeholder.update.call(self.element, self.currentItem, self.placeholder);
+	},
+	contactContainers: function(e) {
+		for (var i = this.containers.length - 1; i >= 0; i--){
+
+			if(this.intersectsWith(this.containers[i].containerCache)) {
+				if(!this.containers[i].containerCache.over) {
+					
+
+					if(this.currentContainer != this.containers[i]) {
+						
+						//When entering a new container, we will find the item with the least distance and append our item near it
+						var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[i].floating ? 'left' : 'top'];
+						for (var j = this.items.length - 1; j >= 0; j--) {
+							if(!contains(this.containers[i].element[0], this.items[j].item[0])) continue;
+							var cur = this.items[j][this.containers[i].floating ? 'left' : 'top'];
+							if(Math.abs(cur - base) < dist) {
+								dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];
+							}
+						}
+						
+						if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled
+							continue;
+						
+						//We also need to exchange the placeholder
+						if(this.placeholder) this.placeholder.remove();
+						if(this.containers[i].options.placeholder) {
+							this.containers[i].createPlaceholder(this);
+						} else {
+							this.placeholder = null;;
+						}
+						
+						this.currentContainer = this.containers[i];
+						itemWithLeastDistance ? this.rearrange(e, itemWithLeastDistance, null, true) : this.rearrange(e, null, this.containers[i].element, true);
+						this.propagate("change", e); //Call plugins and callbacks
+						this.containers[i].propagate("change", e, this); //Call plugins and callbacks
+
+					}
+					
+					this.containers[i].propagate("over", e, this);
+					this.containers[i].containerCache.over = 1;
+				}
+			} else {
+				if(this.containers[i].containerCache.over) {
+					this.containers[i].propagate("out", e, this);
+					this.containers[i].containerCache.over = 0;
+				}
+			}
+			
+		};			
+	},
+	mouseCapture: function(e, overrideHandle) {
+	
+		if(this.options.disabled || this.options.type == 'static') return false;
+
+		//We have to refresh the items data once first
+		this.refreshItems();
+
+		//Find out if the clicked node (or one of its parents) is a actual item in this.items
+		var currentItem = null, self = this, nodes = $(e.target).parents().each(function() {	
+			if($.data(this, 'sortable-item') == self) {
+				currentItem = $(this);
+				return false;
+			}
+		});
+		if($.data(e.target, 'sortable-item') == self) currentItem = $(e.target);
+
+		if(!currentItem) return false;
+		if(this.options.handle && !overrideHandle) {
+			var validHandle = false;
+			
+			$(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == e.target) validHandle = true; });
+			if(!validHandle) return false;
+		}
+			
+		this.currentItem = currentItem;
+		return true;	
+			
+	},
+	mouseStart: function(e, overrideHandle, noActivation) {
+
+		var o = this.options;
+		this.currentContainer = this;
+
+		//We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture
+		this.refreshPositions();
+
+		//Create and append the visible helper			
+		this.helper = typeof o.helper == 'function' ? $(o.helper.apply(this.element[0], [e, this.currentItem])) : this.currentItem.clone();
+		if (!this.helper.parents('body').length) $(o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(this.helper[0]); //Add the helper to the DOM if that didn't happen already
+		this.helper.css({ position: 'absolute', clear: 'both' }).addClass('ui-sortable-helper'); //Position it absolutely and add a helper class
+
+		/*
+		 * - Position generation -
+		 * This block generates everything position related - it's the core of draggables.
+		 */
+
+		this.margins = {																				//Cache the margins
+			left: (parseInt(this.currentItem.css("marginLeft"),10) || 0),
+			top: (parseInt(this.currentItem.css("marginTop"),10) || 0)
+		};		
+	
+		this.offset = this.currentItem.offset();														//The element's absolute position on the page
+		this.offset = {																					//Substract the margins from the element's absolute offset
+			top: this.offset.top - this.margins.top,
+			left: this.offset.left - this.margins.left
+		};
+		
+		this.offset.click = {																			//Where the click happened, relative to the element
+			left: e.pageX - this.offset.left,
+			top: e.pageY - this.offset.top
+		};
+		
+		this.offsetParent = this.helper.offsetParent();													//Get the offsetParent and cache its position
+		var po = this.offsetParent.offset();			
+
+		this.offsetParentBorders = {
+			top: (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+			left: (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+		};
+		this.offset.parent = {																			//Store its position plus border
+			top: po.top + this.offsetParentBorders.top,
+			left: po.left + this.offsetParentBorders.left
+		};
+	
+		this.originalPosition = this.generatePosition(e);												//Generate the original position
+		this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] };  //Cache the former DOM position
+		
+		//If o.placeholder is used, create a new element at the given position with the class
+		this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
+		if(o.placeholder) this.createPlaceholder();
+		
+		//Call plugins and callbacks
+		this.propagate("start", e);
+		this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
+		
+		if(o.cursorAt) {
+			if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left;
+			if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right;
+			if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top;
+			if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom;
+		}
+
+		/*
+		 * - Position constraining -
+		 * Here we prepare position constraining like grid and containment.
+		 */	
+		
+		if(o.containment) {
+			if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
+			if(o.containment == 'document' || o.containment == 'window') this.containment = [
+				0 - this.offset.parent.left,
+				0 - this.offset.parent.top,
+				$(o.containment == 'document' ? document : window).width() - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+				($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+			];
+
+			if(!(/^(document|window|parent)$/).test(o.containment)) {
+				var ce = $(o.containment)[0];
+				var co = $(o.containment).offset();
+				
+				this.containment = [
+					co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left,
+					co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top,
+					co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0),
+					co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0)
+				];
+			}
+		}
+
+		//Set the original element visibility to hidden to still fill out the white space
+		if(this.options.placeholder != 'clone')
+			this.currentItem.css('visibility', 'hidden');
+		
+		//Post 'activate' events to possible containers
+		if(!noActivation) {
+			 for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i].propagate("activate", e, this); }
+		}
+		
+		//Prepare possible droppables
+		if($.ui.ddmanager) $.ui.ddmanager.current = this;
+		if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
+
+		this.dragging = true;
+
+		this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+		return true;
+
+
+	},
+	convertPositionTo: function(d, pos) {
+		if(!pos) pos = this.position;
+		var mod = d == "absolute" ? 1 : -1;
+		return {
+			top: (
+				pos.top																	// the calculated relative position
+				+ this.offset.parent.top * mod											// The offsetParent's offset without borders (offset + border)
+				- (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) * mod	// The offsetParent's scroll position
+				+ this.margins.top * mod												//Add the margin (you don't want the margin counting in intersection methods)
+			),
+			left: (
+				pos.left																// the calculated relative position
+				+ this.offset.parent.left * mod											// The offsetParent's offset without borders (offset + border)
+				- (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft) * mod	// The offsetParent's scroll position
+				+ this.margins.left * mod												//Add the margin (you don't want the margin counting in intersection methods)
+			)
+		};
+	},
+	generatePosition: function(e) {
+		
+		var o = this.options;
+		var position = {
+			top: (
+				e.pageY																	// The absolute mouse position
+				- this.offset.click.top													// Click offset (relative to the element)
+				- this.offset.parent.top												// The offsetParent's offset without borders (offset + border)
+				+ (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)	// The offsetParent's scroll position, not if the element is fixed
+			),
+			left: (
+				e.pageX																	// The absolute mouse position
+				- this.offset.click.left												// Click offset (relative to the element)
+				- this.offset.parent.left												// The offsetParent's offset without borders (offset + border)
+				+ (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft)	// The offsetParent's scroll position, not if the element is fixed
+			)
+		};
+		
+		if(!this.originalPosition) return position;										//If we are not dragging yet, we won't check for options
+		
+		/*
+		 * - Position constraining -
+		 * Constrain the position to a mix of grid, containment.
+		 */
+		if(this.containment) {
+			if(position.left < this.containment[0]) position.left = this.containment[0];
+			if(position.top < this.containment[1]) position.top = this.containment[1];
+			if(position.left > this.containment[2]) position.left = this.containment[2];
+			if(position.top > this.containment[3]) position.top = this.containment[3];
+		}
+		
+		if(o.grid) {
+			var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
+			position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+			
+			var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
+			position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+		}
+		
+		return position;
+	},
+	mouseDrag: function(e) {
+
+		//Compute the helpers position
+		this.position = this.generatePosition(e);
+		this.positionAbs = this.convertPositionTo("absolute");
+
+		//Call the internal plugins
+		$.ui.plugin.call(this, "sort", [e, this.ui()]);
+		
+		//Regenerate the absolute position used for position checks
+		this.positionAbs = this.convertPositionTo("absolute");
+		
+		//Set the helper's position
+		this.helper[0].style.left = this.position.left+'px';
+		this.helper[0].style.top = this.position.top+'px';
+
+		//Rearrange
+		for (var i = this.items.length - 1; i >= 0; i--) {
+			var intersection = this.intersectsWithEdge(this.items[i]);
+			if(!intersection) continue;
+			
+			if(this.items[i].item[0] != this.currentItem[0] //cannot intersect with itself
+				&&	this.currentItem[intersection == 1 ? "next" : "prev"]()[0] != this.items[i].item[0] //no useless actions that have been done before
+				&&	!contains(this.currentItem[0], this.items[i].item[0]) //no action if the item moved is the parent of the item checked
+				&& (this.options.type == 'semi-dynamic' ? !contains(this.element[0], this.items[i].item[0]) : true)
+			) {
+				
+				this.direction = intersection == 1 ? "down" : "up";
+				this.rearrange(e, this.items[i]);
+				this.propagate("change", e); //Call plugins and callbacks
+				break;
+			}
+		}
+		
+		//Post events to containers
+		this.contactContainers(e);
+		
+		//Interconnect with droppables
+		if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
+
+		//Call callbacks
+		this.element.triggerHandler("sort", [e, this.ui()], this.options["sort"]);
+
+		return false;
+		
+	},
+	rearrange: function(e, i, a, hardRefresh) {
+		a ? a[0].appendChild(this.currentItem[0]) : i.item[0].parentNode.insertBefore(this.currentItem[0], (this.direction == 'down' ? i.item[0] : i.item[0].nextSibling));
+		
+		//Various things done here to improve the performance:
+		// 1. we create a setTimeout, that calls refreshPositions
+		// 2. on the instance, we have a counter variable, that get's higher after every append
+		// 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same
+		// 4. this lets only the last addition to the timeout stack through
+		this.counter = this.counter ? ++this.counter : 1;
+		var self = this, counter = this.counter;
+
+		window.setTimeout(function() {
+			if(counter == self.counter) self.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove
+		},0);
+		
+		if(this.options.placeholder)
+			this.options.placeholder.update.call(this.element, this.currentItem, this.placeholder);
+	},
+	mouseStop: function(e, noPropagation) {
+
+		//If we are using droppables, inform the manager about the drop
+		if ($.ui.ddmanager && !this.options.dropBehaviour)
+			$.ui.ddmanager.drop(this, e);
+			
+		if(this.options.revert) {
+			var self = this;
+			var cur = self.currentItem.offset();
+
+			//Also animate the placeholder if we have one
+			if(self.placeholder) self.placeholder.animate({ opacity: 'hide' }, (parseInt(this.options.revert, 10) || 500)-50);
+
+			$(this.helper).animate({
+				left: cur.left - this.offset.parent.left - self.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),
+				top: cur.top - this.offset.parent.top - self.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
+			}, parseInt(this.options.revert, 10) || 500, function() {
+				self.clear(e);
+			});
+		} else {
+			this.clear(e, noPropagation);
+		}
+
+		return false;
+		
+	},
+	clear: function(e, noPropagation) {
+
+		if(this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
+		if(!contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element
+			this.propagate("remove", e, null, noPropagation);
+			for (var i = this.containers.length - 1; i >= 0; i--){
+				if(contains(this.containers[i].element[0], this.currentItem[0])) {
+					this.containers[i].propagate("update", e, this, noPropagation);
+					this.containers[i].propagate("receive", e, this, noPropagation);
+				}
+			};
+		};
+		
+		//Post events to containers
+		for (var i = this.containers.length - 1; i >= 0; i--){
+			this.containers[i].propagate("deactivate", e, this, noPropagation);
+			if(this.containers[i].containerCache.over) {
+				this.containers[i].propagate("out", e, this);
+				this.containers[i].containerCache.over = 0;
+			}
+		}
+		
+		this.dragging = false;
+		if(this.cancelHelperRemoval) {
+			this.propagate("stop", e, null, noPropagation);
+			return false;
+		}
+		
+		$(this.currentItem).css('visibility', '');
+		if(this.placeholder) this.placeholder.remove();
+		this.helper.remove(); this.helper = null;
+		this.propagate("stop", e, null, noPropagation);
+		
+		return true;
+		
+	}
+}));
+
+$.extend($.ui.sortable, {
+	getter: "serialize toArray",
+	defaults: {
+		helper: "clone",
+		tolerance: "guess",
+		distance: 1,
+		delay: 0,
+		scroll: true,
+		scrollSensitivity: 20,
+		scrollSpeed: 20,
+		cancel: ":input",
+		items: '> *',
+		zIndex: 1000,
+		dropOnEmpty: true,
+		appendTo: "parent"
+	}
+});
+
+/*
+ * Sortable Extensions
+ */
+
+$.ui.plugin.add("sortable", "cursor", {
+	start: function(e, ui) {
+		var t = $('body');
+		if (t.css("cursor")) ui.options._cursor = t.css("cursor");
+		t.css("cursor", ui.options.cursor);
+	},
+	stop: function(e, ui) {
+		if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
+	}
+});
+
+$.ui.plugin.add("sortable", "zIndex", {
+	start: function(e, ui) {
+		var t = ui.helper;
+		if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
+		t.css('zIndex', ui.options.zIndex);
+	},
+	stop: function(e, ui) {
+		if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
+	}
+});
+
+$.ui.plugin.add("sortable", "opacity", {
+	start: function(e, ui) {
+		var t = ui.helper;
+		if(t.css("opacity")) ui.options._opacity = t.css("opacity");
+		t.css('opacity', ui.options.opacity);
+	},
+	stop: function(e, ui) {
+		if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
+	}
+});
+
+$.ui.plugin.add("sortable", "scroll", {
+	start: function(e, ui) {
+		var o = ui.options;
+		var i = $(this).data("sortable");
+	
+		i.overflowY = function(el) {
+			do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
+			return $(document);
+		}(i.currentItem);
+		i.overflowX = function(el) {
+			do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
+			return $(document);
+		}(i.currentItem);
+		
+		if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
+		if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
+		
+	},
+	sort: function(e, ui) {
+		
+		var o = ui.options;
+		var i = $(this).data("sortable");
+		
+		if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
+			if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
+				i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed;
+			if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
+				i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed;
+		} else {
+			if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
+				$(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+			if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
+				$(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+		}
+		
+		if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
+			if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
+				i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed;
+			if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
+				i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed;
+		} else {
+			if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
+				$(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+			if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
+				$(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+		}
+		
+	}
+});
+
+$.ui.plugin.add("sortable", "axis", {
+	sort: function(e, ui) {
+		
+		var i = $(this).data("sortable");
+		
+		if(ui.options.axis == "y") i.position.left = i.originalPosition.left;
+		if(ui.options.axis == "x") i.position.top = i.originalPosition.top;
+		
+	}
+});
+
+})(jQuery);
+/*
+ * jQuery UI Effects 1.5.2
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/
+ */
+;(function($) {
+
+$.effects = $.effects || {}; //Add the 'effects' scope
+
+$.extend($.effects, {
+	save: function(el, set) {
+		for(var i=0;i<set.length;i++) {
+			if(set[i] !== null) $.data(el[0], "ec.storage."+set[i], el[0].style[set[i]]);
+		}
+	},
+	restore: function(el, set) {
+		for(var i=0;i<set.length;i++) {
+			if(set[i] !== null) el.css(set[i], $.data(el[0], "ec.storage."+set[i]));
+		}
+	},
+	setMode: function(el, mode) {
+		if (mode == 'toggle') mode = el.is(':hidden') ? 'show' : 'hide'; // Set for toggle
+		return mode;
+	},
+	getBaseline: function(origin, original) { // Translates a [top,left] array into a baseline value
+		// this should be a little more flexible in the future to handle a string & hash
+		var y, x;
+		switch (origin[0]) {
+			case 'top': y = 0; break;
+			case 'middle': y = 0.5; break;
+			case 'bottom': y = 1; break;
+			default: y = origin[0] / original.height;
+		};
+		switch (origin[1]) {
+			case 'left': x = 0; break;
+			case 'center': x = 0.5; break;
+			case 'right': x = 1; break;
+			default: x = origin[1] / original.width;
+		};
+		return {x: x, y: y};
+	},
+	createWrapper: function(el) {
+		if (el.parent().attr('id') == 'fxWrapper')
+			return el;
+		var props = {width: el.outerWidth({margin:true}), height: el.outerHeight({margin:true}), 'float': el.css('float')};
+		el.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
+		var wrapper = el.parent();
+		if (el.css('position') == 'static'){
+			wrapper.css({position: 'relative'});
+			el.css({position: 'relative'});
+		} else {
+			var top = el.css('top'); if(isNaN(parseInt(top))) top = 'auto';
+			var left = el.css('left'); if(isNaN(parseInt(left))) left = 'auto';
+			wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show();
+			el.css({position: 'relative', top:0, left:0});
+		}
+		wrapper.css(props);
+		return wrapper;
+	},
+	removeWrapper: function(el) {
+		if (el.parent().attr('id') == 'fxWrapper')
+			return el.parent().replaceWith(el);
+		return el;
+	},
+	setTransition: function(el, list, factor, val) {
+		val = val || {};
+		$.each(list,function(i, x){
+			unit = el.cssUnit(x);
+			if (unit[0] > 0) val[x] = unit[0] * factor + unit[1];
+		});
+		return val;
+	},
+	animateClass: function(value, duration, easing, callback) {
+
+		var cb = (typeof easing == "function" ? easing : (callback ? callback : null));
+		var ea = (typeof easing == "object" ? easing : null);
+
+		return this.each(function() {
+
+			var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || '';
+			if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */
+			if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; }
+
+			//Let's get a style offset
+			var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
+			if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove);
+			var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
+			if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove);
+
+			// The main function to form the object for animation
+			for(var n in newStyle) {
+				if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
+				&& n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
+				&& newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
+				&& (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
+				&& (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
+				) offset[n] = newStyle[n];
+			}
+
+			that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object
+				// Change style attribute back to original. For stupid IE, we need to clear the damn object.
+				if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr);
+				if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove);
+				if(cb) cb.apply(this, arguments);
+			});
+
+		});
+	}
+});
+
+//Extend the methods of jQuery
+$.fn.extend({
+	//Save old methods
+	_show: $.fn.show,
+	_hide: $.fn.hide,
+	__toggle: $.fn.toggle,
+	_addClass: $.fn.addClass,
+	_removeClass: $.fn.removeClass,
+	_toggleClass: $.fn.toggleClass,
+	// New ec methods
+	effect: function(fx,o,speed,callback) {
+		return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: o || {}, duration: speed, callback: callback }) : null;
+	},
+	show: function() {
+		if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
+			return this._show.apply(this, arguments);
+		else {
+			var o = arguments[1] || {}; o['mode'] = 'show';
+			return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+		}
+	},
+	hide: function() {
+		if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
+			return this._hide.apply(this, arguments);
+		else {
+			var o = arguments[1] || {}; o['mode'] = 'hide';
+			return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+		}
+	},
+	toggle: function(){
+		if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function))
+			return this.__toggle.apply(this, arguments);
+		else {
+			var o = arguments[1] || {}; o['mode'] = 'toggle';
+			return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+		}
+	},
+	addClass: function(classNames,speed,easing,callback) {
+		return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames);
+	},
+	removeClass: function(classNames,speed,easing,callback) {
+		return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames);
+	},
+	toggleClass: function(classNames,speed,easing,callback) {
+		return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames);
+	},
+	morph: function(remove,add,speed,easing,callback) {
+		return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]);
+	},
+	switchClass: function() {
+		return this.morph.apply(this, arguments);
+	},
+	// helper functions
+	cssUnit: function(key) {
+		var style = this.css(key), val = [];
+		$.each( ['em','px','%','pt'], function(i, unit){
+			if(style.indexOf(unit) > 0)
+				val = [parseFloat(style), unit];
+		});
+		return val;
+	}
+});
+
+/*
+ * jQuery Color Animations
+ * Copyright 2007 John Resig
+ * Released under the MIT and GPL licenses.
+ */
+
+// We override the animation for all of these color styles
+jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
+		jQuery.fx.step[attr] = function(fx){
+				if ( fx.state == 0 ) {
+						fx.start = getColor( fx.elem, attr );
+						fx.end = getRGB( fx.end );
+				}
+
+				fx.elem.style[attr] = "rgb(" + [
+						Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
+						Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
+						Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
+				].join(",") + ")";
+		}
+});
+
+// Color Conversion functions from highlightFade
+// By Blair Mitchelmore
+// http://jquery.offput.ca/highlightFade/
+
+// Parse strings looking for color tuples [255,255,255]
+function getRGB(color) {
+		var result;
+
+		// Check if we're already dealing with an array of colors
+		if ( color && color.constructor == Array && color.length == 3 )
+				return color;
+
+		// Look for rgb(num,num,num)
+		if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
+				return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
+
+		// Look for rgb(num%,num%,num%)
+		if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
+				return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
+
+		// Look for #a0b1c2
+		if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
+				return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
+
+		// Look for #fff
+		if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
+				return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
+
+		// Look for rgba(0, 0, 0, 0) == transparent in Safari 3
+		if (result = /rgba\(0, 0, 0, 0\)/.exec(color))
+				return colors['transparent']
+
+		// Otherwise, we're most likely dealing with a named color
+		return colors[jQuery.trim(color).toLowerCase()];
+}
+
+function getColor(elem, attr) {
+		var color;
+
+		do {
+				color = jQuery.curCSS(elem, attr);
+
+				// Keep going until we find an element that has color, or we hit the body
+				if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
+						break;
+
+				attr = "backgroundColor";
+		} while ( elem = elem.parentNode );
+
+		return getRGB(color);
+};
+
+// Some named colors to work with
+// From Interface by Stefan Petre
+// http://interface.eyecon.ro/
+
+var colors = {
+	aqua:[0,255,255],
+	azure:[240,255,255],
+	beige:[245,245,220],
+	black:[0,0,0],
+	blue:[0,0,255],
+	brown:[165,42,42],
+	cyan:[0,255,255],
+	darkblue:[0,0,139],
+	darkcyan:[0,139,139],
+	darkgrey:[169,169,169],
+	darkgreen:[0,100,0],
+	darkkhaki:[189,183,107],
+	darkmagenta:[139,0,139],
+	darkolivegreen:[85,107,47],
+	darkorange:[255,140,0],
+	darkorchid:[153,50,204],
+	darkred:[139,0,0],
+	darksalmon:[233,150,122],
+	darkviolet:[148,0,211],
+	fuchsia:[255,0,255],
+	gold:[255,215,0],
+	green:[0,128,0],
+	indigo:[75,0,130],
+	khaki:[240,230,140],
+	lightblue:[173,216,230],
+	lightcyan:[224,255,255],
+	lightgreen:[144,238,144],
+	lightgrey:[211,211,211],
+	lightpink:[255,182,193],
+	lightyellow:[255,255,224],
+	lime:[0,255,0],
+	magenta:[255,0,255],
+	maroon:[128,0,0],
+	navy:[0,0,128],
+	olive:[128,128,0],
+	orange:[255,165,0],
+	pink:[255,192,203],
+	purple:[128,0,128],
+	violet:[128,0,128],
+	red:[255,0,0],
+	silver:[192,192,192],
+	white:[255,255,255],
+	yellow:[255,255,0],
+	transparent: [255,255,255]
+};
+	
+/*
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
+ *
+ * Uses the built in easing capabilities added In jQuery 1.1
+ * to offer multiple easing options
+ *
+ * TERMS OF USE - jQuery Easing
+ * 
+ * Open source under the BSD License. 
+ * 
+ * Copyright Â© 2008 George McGinley Smith
+ * All rights reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without modification, 
+ * are permitted provided that the following conditions are met:
+ * 
+ * Redistributions of source code must retain the above copyright notice, this list of 
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list 
+ * of conditions and the following disclaimer in the documentation and/or other materials 
+ * provided with the distribution.
+ * 
+ * Neither the name of the author nor the names of contributors may be used to endorse 
+ * or promote products derived from this software without specific prior written permission.
+ * 
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
+ * OF THE POSSIBILITY OF SUCH DAMAGE. 
+ *
+*/
+
+// t: current time, b: begInnIng value, c: change In value, d: duration
+jQuery.easing['jswing'] = jQuery.easing['swing'];
+
+jQuery.extend( jQuery.easing,
+{
+	def: 'easeOutQuad',
+	swing: function (x, t, b, c, d) {
+		//alert(jQuery.easing.default);
+		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
+	},
+	easeInQuad: function (x, t, b, c, d) {
+		return c*(t/=d)*t + b;
+	},
+	easeOutQuad: function (x, t, b, c, d) {
+		return -c *(t/=d)*(t-2) + b;
+	},
+	easeInOutQuad: function (x, t, b, c, d) {
+		if ((t/=d/2) < 1) return c/2*t*t + b;
+		return -c/2 * ((--t)*(t-2) - 1) + b;
+	},
+	easeInCubic: function (x, t, b, c, d) {
+		return c*(t/=d)*t*t + b;
+	},
+	easeOutCubic: function (x, t, b, c, d) {
+		return c*((t=t/d-1)*t*t + 1) + b;
+	},
+	easeInOutCubic: function (x, t, b, c, d) {
+		if ((t/=d/2) < 1) return c/2*t*t*t + b;
+		return c/2*((t-=2)*t*t + 2) + b;
+	},
+	easeInQuart: function (x, t, b, c, d) {
+		return c*(t/=d)*t*t*t + b;
+	},
+	easeOutQuart: function (x, t, b, c, d) {
+		return -c * ((t=t/d-1)*t*t*t - 1) + b;
+	},
+	easeInOutQuart: function (x, t, b, c, d) {
+		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
+		return -c/2 * ((t-=2)*t*t*t - 2) + b;
+	},
+	easeInQuint: function (x, t, b, c, d) {
+		return c*(t/=d)*t*t*t*t + b;
+	},
+	easeOutQuint: function (x, t, b, c, d) {
+		return c*((t=t/d-1)*t*t*t*t + 1) + b;
+	},
+	easeInOutQuint: function (x, t, b, c, d) {
+		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
+		return c/2*((t-=2)*t*t*t*t + 2) + b;
+	},
+	easeInSine: function (x, t, b, c, d) {
+		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
+	},
+	easeOutSine: function (x, t, b, c, d) {
+		return c * Math.sin(t/d * (Math.PI/2)) + b;
+	},
+	easeInOutSine: function (x, t, b, c, d) {
+		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
+	},
+	easeInExpo: function (x, t, b, c, d) {
+		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
+	},
+	easeOutExpo: function (x, t, b, c, d) {
+		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
+	},
+	easeInOutExpo: function (x, t, b, c, d) {
+		if (t==0) return b;
+		if (t==d) return b+c;
+		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
+		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
+	},
+	easeInCirc: function (x, t, b, c, d) {
+		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
+	},
+	easeOutCirc: function (x, t, b, c, d) {
+		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
+	},
+	easeInOutCirc: function (x, t, b, c, d) {
+		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
+		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
+	},
+	easeInElastic: function (x, t, b, c, d) {
+		var s=1.70158;var p=0;var a=c;
+		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
+		if (a < Math.abs(c)) { a=c; var s=p/4; }
+		else var s = p/(2*Math.PI) * Math.asin (c/a);
+		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
+	},
+	easeOutElastic: function (x, t, b, c, d) {
+		var s=1.70158;var p=0;var a=c;
+		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
+		if (a < Math.abs(c)) { a=c; var s=p/4; }
+		else var s = p/(2*Math.PI) * Math.asin (c/a);
+		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
+	},
+	easeInOutElastic: function (x, t, b, c, d) {
+		var s=1.70158;var p=0;var a=c;
+		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
+		if (a < Math.abs(c)) { a=c; var s=p/4; }
+		else var s = p/(2*Math.PI) * Math.asin (c/a);
+		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
+		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
+	},
+	easeInBack: function (x, t, b, c, d, s) {
+		if (s == undefined) s = 1.70158;
+		return c*(t/=d)*t*((s+1)*t - s) + b;
+	},
+	easeOutBack: function (x, t, b, c, d, s) {
+		if (s == undefined) s = 1.70158;
+		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
+	},
+	easeInOutBack: function (x, t, b, c, d, s) {
+		if (s == undefined) s = 1.70158; 
+		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
+		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
+	},
+	easeInBounce: function (x, t, b, c, d) {
+		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
+	},
+	easeOutBounce: function (x, t, b, c, d) {
+		if ((t/=d) < (1/2.75)) {
+			return c*(7.5625*t*t) + b;
+		} else if (t < (2/2.75)) {
+			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
+		} else if (t < (2.5/2.75)) {
+			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
+		} else {
+			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
+		}
+	},
+	easeInOutBounce: function (x, t, b, c, d) {
+		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
+		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
+	}
+});
+
+/*
+ *
+ * TERMS OF USE - EASING EQUATIONS
+ * 
+ * Open source under the BSD License. 
+ * 
+ * Copyright Â© 2001 Robert Penner
+ * All rights reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without modification, 
+ * are permitted provided that the following conditions are met:
+ * 
+ * Redistributions of source code must retain the above copyright notice, this list of 
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list 
+ * of conditions and the following disclaimer in the documentation and/or other materials 
+ * provided with the distribution.
+ * 
+ * Neither the name of the author nor the names of contributors may be used to endorse 
+ * or promote products derived from this software without specific prior written permission.
+ * 
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
+ * OF THE POSSIBILITY OF SUCH DAMAGE. 
+ *
+ */
+
+})(jQuery);
+/*
+ * jQuery UI Effects Blind
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Blind
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.blind = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this), props = ['position','top','left'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+		var direction = o.options.direction || 'vertical'; // Default direction
+		
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+		var ref = (direction == 'vertical') ? 'height' : 'width';
+		var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width();
+		if(mode == 'show') wrapper.css(ref, 0); // Shift
+		
+		// Animation
+		var animation = {};
+		animation[ref] = mode == 'show' ? distance : 0;
+	 
+		// Animate
+		wrapper.animate(animation, o.duration, o.options.easing, function() {
+			if(mode == 'hide') el.hide(); // Hide
+			$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+			if(o.callback) o.callback.apply(el[0], arguments); // Callback
+			el.dequeue();
+		});
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Bounce
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Bounce
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.bounce = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this), props = ['position','top','left'];
+
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+		var direction = o.options.direction || 'up'; // Default direction
+		var distance = o.options.distance || 20; // Default distance
+		var times = o.options.times || 5; // Default # of times
+		var speed = o.duration || 250; // Default speed per bounce
+		if (/show|hide/.test(mode)) props.push('opacity'); // Avoid touching opacity to prevent clearType and PNG issues in IE
+
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		$.effects.createWrapper(el); // Create Wrapper
+		var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+		var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+		var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 3 : el.outerWidth({margin:true}) / 3);
+		if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
+		if (mode == 'hide') distance = distance / (times * 2);
+		if (mode != 'hide') times--;
+		
+		// Animate
+		if (mode == 'show') { // Show Bounce
+			var animation = {opacity: 1};
+			animation[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+			el.animate(animation, speed / 2, o.options.easing);
+			distance = distance / 2;
+			times--;
+		};
+		for (var i = 0; i < times; i++) { // Bounces
+			var animation1 = {}, animation2 = {};
+			animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+			animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+			el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing);
+			distance = (mode == 'hide') ? distance * 2 : distance / 2;
+		};
+		if (mode == 'hide') { // Last Bounce
+			var animation = {opacity: 0};
+			animation[ref] = (motion == 'pos' ? '-=' : '+=')  + distance;
+			el.animate(animation, speed / 2, o.options.easing, function(){
+				el.hide(); // Hide
+				$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+				if(o.callback) o.callback.apply(this, arguments); // Callback
+			});
+		} else {
+			var animation1 = {}, animation2 = {};
+			animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+			animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+			el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing, function(){
+				$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+				if(o.callback) o.callback.apply(this, arguments); // Callback
+			});
+		};
+		el.queue('fx', function() { el.dequeue(); });
+		el.dequeue();
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Clip
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Clip
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.clip = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this), props = ['position','top','left','height','width'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+		var direction = o.options.direction || 'vertical'; // Default direction
+		
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+		var animate = el[0].tagName == 'IMG' ? wrapper : el;
+		var ref = {
+			size: (direction == 'vertical') ? 'height' : 'width',
+			position: (direction == 'vertical') ? 'top' : 'left'
+		};
+		var distance = (direction == 'vertical') ? animate.height() : animate.width();
+		if(mode == 'show') { animate.css(ref.size, 0); animate.css(ref.position, distance / 2); } // Shift
+		
+		// Animation
+		var animation = {};
+		animation[ref.size] = mode == 'show' ? distance : 0;
+		animation[ref.position] = mode == 'show' ? 0 : distance / 2;
+			
+		// Animate
+		animate.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+			if(mode == 'hide') el.hide(); // Hide
+			$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+			if(o.callback) o.callback.apply(el[0], arguments); // Callback
+			el.dequeue();
+		}}); 
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Drop
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Drop
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.drop = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this), props = ['position','top','left','opacity'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+		var direction = o.options.direction || 'left'; // Default Direction
+		
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		$.effects.createWrapper(el); // Create Wrapper
+		var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+		var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+		var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2);
+		if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
+		
+		// Animation
+		var animation = {opacity: mode == 'show' ? 1 : 0};
+		animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
+		
+		// Animate
+		el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+			if(mode == 'hide') el.hide(); // Hide
+			$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+			if(o.callback) o.callback.apply(this, arguments); // Callback
+			el.dequeue();
+		}});
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Explode
+ *
+ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Explode
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.explode = function(o) {
+
+	return this.queue(function() {
+
+	var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
+	var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
+	
+	o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode;
+	var el = $(this).show().css('visibility', 'hidden');
+	var offset = el.offset();
+	
+	//Substract the margins - not fixing the problem yet.
+	offset.top -= parseInt(el.css("marginTop")) || 0;
+	offset.left -= parseInt(el.css("marginLeft")) || 0;
+	
+	var width = el.outerWidth(true);
+	var height = el.outerHeight(true);
+
+	for(var i=0;i<rows;i++) { // =
+		for(var j=0;j<cells;j++) { // ||
+			el
+				.clone()
+				.appendTo('body')
+				.wrap('<div></div>')
+				.css({
+					position: 'absolute',
+					visibility: 'visible',
+					left: -j*(width/cells),
+					top: -i*(height/rows)
+				})
+				.parent()
+				.addClass('effects-explode')
+				.css({
+					position: 'absolute',
+					overflow: 'hidden',
+					width: width/cells,
+					height: height/rows,
+					left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? (j-Math.floor(cells/2))*(width/cells) : 0),
+					top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? (i-Math.floor(rows/2))*(height/rows) : 0),
+					opacity: o.options.mode == 'show' ? 0 : 1
+				}).animate({
+					left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? 0 : (j-Math.floor(cells/2))*(width/cells)),
+					top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? 0 : (i-Math.floor(rows/2))*(height/rows)),
+					opacity: o.options.mode == 'show' ? 1 : 0
+				}, o.duration || 500);
+		}
+	}
+
+	// Set a timeout, to call the callback approx. when the other animations have finished
+	setTimeout(function() {
+		
+		o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide();
+				if(o.callback) o.callback.apply(el[0]); // Callback
+				el.dequeue();
+				
+				$('.effects-explode').remove();
+		
+	}, o.duration || 500);
+	
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Fold
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Fold
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.fold = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this), props = ['position','top','left'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+		var size = o.options.size || 15; // Default fold size
+		var horizFirst = !(!o.options.horizFirst); // Ensure a boolean value
+		
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+		var widthFirst = ((mode == 'show') != horizFirst);
+		var ref = widthFirst ? ['width', 'height'] : ['height', 'width'];
+		var distance = widthFirst ? [wrapper.width(), wrapper.height()] : [wrapper.height(), wrapper.width()];
+		var percent = /([0-9]+)%/.exec(size);
+		if(percent) size = parseInt(percent[1]) / 100 * distance[mode == 'hide' ? 0 : 1];
+		if(mode == 'show') wrapper.css(horizFirst ? {height: 0, width: size} : {height: size, width: 0}); // Shift
+		
+		// Animation
+		var animation1 = {}, animation2 = {};
+		animation1[ref[0]] = mode == 'show' ? distance[0] : size;
+		animation2[ref[1]] = mode == 'show' ? distance[1] : 0;
+		
+		// Animate
+		wrapper.animate(animation1, o.duration / 2, o.options.easing)
+		.animate(animation2, o.duration / 2, o.options.easing, function() {
+			if(mode == 'hide') el.hide(); // Hide
+			$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+			if(o.callback) o.callback.apply(el[0], arguments); // Callback
+			el.dequeue();
+		});
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Highlight
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Highlight
+ *
+ * Depends:
+ *	effects.core.js
+ */
+;(function($) {
+
+$.effects.highlight = function(o) {
+
+	return this.queue(function() {
+		
+		// Create element
+		var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+		var color = o.options.color || "#ffff99"; // Default highlight color
+		var oldColor = el.css("backgroundColor");
+		
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		el.css({backgroundImage: 'none', backgroundColor: color}); // Shift
+		
+		// Animation
+		var animation = {backgroundColor: oldColor };
+		if (mode == "hide") animation['opacity'] = 0;
+		
+		// Animate
+		el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+			if(mode == "hide") el.hide();
+			$.effects.restore(el, props);
+		if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter'); 
+			if(o.callback) o.callback.apply(this, arguments);
+			el.dequeue();
+		}});
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Pulsate
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Pulsate
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.pulsate = function(o) {
+
+	return this.queue(function() {
+		
+		// Create element
+		var el = $(this);
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+		var times = o.options.times || 5; // Default # of times
+		
+		// Adjust
+		if (mode == 'hide') times--;
+		if (el.is(':hidden')) { // Show fadeIn
+			el.css('opacity', 0);
+			el.show(); // Show
+			el.animate({opacity: 1}, o.duration / 2, o.options.easing);
+			times = times-2;
+		}
+		
+		// Animate
+		for (var i = 0; i < times; i++) { // Pulsate
+			el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing);
+		};
+		if (mode == 'hide') { // Last Pulse
+			el.animate({opacity: 0}, o.duration / 2, o.options.easing, function(){
+				el.hide(); // Hide
+				if(o.callback) o.callback.apply(this, arguments); // Callback
+			});
+		} else {
+			el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing, function(){
+				if(o.callback) o.callback.apply(this, arguments); // Callback
+			});
+		};
+		el.queue('fx', function() { el.dequeue(); });
+		el.dequeue();
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Scale
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Scale
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.puff = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this);
+	
+		// Set options
+		var options = $.extend(true, {}, o.options);
+		var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+		var percent = parseInt(o.options.percent) || 150; // Set default puff percent
+		options.fade = true; // It's not a puff if it doesn't fade! :)
+		var original = {height: el.height(), width: el.width()}; // Save original
+	
+		// Adjust
+		var factor = percent / 100;
+		el.from = (mode == 'hide') ? original : {height: original.height * factor, width: original.width * factor};
+	
+		// Animation
+		options.from = el.from;
+		options.percent = (mode == 'hide') ? percent : 100;
+		options.mode = mode;
+	
+		// Animate
+		el.effect('scale', options, o.duration, o.callback);
+		el.dequeue();
+	});
+	
+};
+
+$.effects.scale = function(o) {
+	
+	return this.queue(function() {
+	
+		// Create element
+		var el = $(this);
+
+		// Set options
+		var options = $.extend(true, {}, o.options);
+		var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+		var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent
+		var direction = o.options.direction || 'both'; // Set default axis
+		var origin = o.options.origin; // The origin of the scaling
+		if (mode != 'effect') { // Set default origin and restore for show/hide
+			options.origin = origin || ['middle','center'];
+			options.restore = true;
+		}
+		var original = {height: el.height(), width: el.width()}; // Save original
+		el.from = o.options.from || (mode == 'show' ? {height: 0, width: 0} : original); // Default from state
+	
+		// Adjust
+		var factor = { // Set scaling factor
+			y: direction != 'horizontal' ? (percent / 100) : 1,
+			x: direction != 'vertical' ? (percent / 100) : 1
+		};
+		el.to = {height: original.height * factor.y, width: original.width * factor.x}; // Set to state
+		
+		if (o.options.fade) { // Fade option to support puff
+			if (mode == 'show') {el.from.opacity = 0; el.to.opacity = 1;};
+			if (mode == 'hide') {el.from.opacity = 1; el.to.opacity = 0;};
+		};
+	
+		// Animation
+		options.from = el.from; options.to = el.to; options.mode = mode;
+	
+		// Animate
+		el.effect('size', options, o.duration, o.callback);
+		el.dequeue();
+	});
+	
+};
+
+$.effects.size = function(o) {
+
+	return this.queue(function() {
+		
+		// Create element
+		var el = $(this), props = ['position','top','left','width','height','overflow','opacity'];
+		var props1 = ['position','top','left','overflow','opacity']; // Always restore
+		var props2 = ['width','height','overflow']; // Copy for children
+		var cProps = ['fontSize'];
+		var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'];
+		var hProps = ['borderLeftWidth', 'borderRightWidth', 'paddingLeft', 'paddingRight'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+		var restore = o.options.restore || false; // Default restore
+		var scale = o.options.scale || 'both'; // Default scale mode
+		var origin = o.options.origin; // The origin of the sizing
+		var original = {height: el.height(), width: el.width()}; // Save original
+		el.from = o.options.from || original; // Default from state
+		el.to = o.options.to || original; // Default to state
+		// Adjust
+		if (origin) { // Calculate baseline shifts
+			var baseline = $.effects.getBaseline(origin, original);
+			el.from.top = (original.height - el.from.height) * baseline.y;
+			el.from.left = (original.width - el.from.width) * baseline.x;
+			el.to.top = (original.height - el.to.height) * baseline.y;
+			el.to.left = (original.width - el.to.width) * baseline.x;
+		};
+		var factor = { // Set scaling factor
+			from: {y: el.from.height / original.height, x: el.from.width / original.width},
+			to: {y: el.to.height / original.height, x: el.to.width / original.width}
+		};
+		if (scale == 'box' || scale == 'both') { // Scale the css box
+			if (factor.from.y != factor.to.y) { // Vertical props scaling
+				props = props.concat(vProps);
+				el.from = $.effects.setTransition(el, vProps, factor.from.y, el.from);
+				el.to = $.effects.setTransition(el, vProps, factor.to.y, el.to);
+			};
+			if (factor.from.x != factor.to.x) { // Horizontal props scaling
+				props = props.concat(hProps);
+				el.from = $.effects.setTransition(el, hProps, factor.from.x, el.from);
+				el.to = $.effects.setTransition(el, hProps, factor.to.x, el.to);
+			};
+		};
+		if (scale == 'content' || scale == 'both') { // Scale the content
+			if (factor.from.y != factor.to.y) { // Vertical props scaling
+				props = props.concat(cProps);
+				el.from = $.effects.setTransition(el, cProps, factor.from.y, el.from);
+				el.to = $.effects.setTransition(el, cProps, factor.to.y, el.to);
+			};
+		};
+		$.effects.save(el, restore ? props : props1); el.show(); // Save & Show
+		$.effects.createWrapper(el); // Create Wrapper
+		el.css('overflow','hidden').css(el.from); // Shift
+		
+		// Animate
+		if (scale == 'content' || scale == 'both') { // Scale the children
+			vProps = vProps.concat(['marginTop','marginBottom']).concat(cProps); // Add margins/font-size
+			hProps = hProps.concat(['marginLeft','marginRight']); // Add margins
+			props2 = props.concat(vProps).concat(hProps); // Concat
+			el.find("*[width]").each(function(){
+				child = $(this);
+				if (restore) $.effects.save(child, props2);
+				var c_original = {height: child.height(), width: child.width()}; // Save original
+				child.from = {height: c_original.height * factor.from.y, width: c_original.width * factor.from.x};
+				child.to = {height: c_original.height * factor.to.y, width: c_original.width * factor.to.x};
+				if (factor.from.y != factor.to.y) { // Vertical props scaling
+					child.from = $.effects.setTransition(child, vProps, factor.from.y, child.from);
+					child.to = $.effects.setTransition(child, vProps, factor.to.y, child.to);
+				};
+				if (factor.from.x != factor.to.x) { // Horizontal props scaling
+					child.from = $.effects.setTransition(child, hProps, factor.from.x, child.from);
+					child.to = $.effects.setTransition(child, hProps, factor.to.x, child.to);
+				};
+				child.css(child.from); // Shift children
+				child.animate(child.to, o.duration, o.options.easing, function(){
+					if (restore) $.effects.restore(child, props2); // Restore children
+				}); // Animate children
+			});
+		};
+		
+		// Animate
+		el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+			if(mode == 'hide') el.hide(); // Hide
+			$.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore
+			if(o.callback) o.callback.apply(this, arguments); // Callback
+			el.dequeue();
+		}}); 
+		
+	});
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Shake
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Shake
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.shake = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this), props = ['position','top','left'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+		var direction = o.options.direction || 'left'; // Default direction
+		var distance = o.options.distance || 20; // Default distance
+		var times = o.options.times || 3; // Default # of times
+		var speed = o.duration || o.options.duration || 140; // Default speed per shake
+		
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		$.effects.createWrapper(el); // Create Wrapper
+		var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+		var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+		
+		// Animation
+		var animation = {}, animation1 = {}, animation2 = {};
+		animation[ref] = (motion == 'pos' ? '-=' : '+=')  + distance;
+		animation1[ref] = (motion == 'pos' ? '+=' : '-=')  + distance * 2;
+		animation2[ref] = (motion == 'pos' ? '-=' : '+=')  + distance * 2;
+		
+		// Animate
+		el.animate(animation, speed, o.options.easing);
+		for (var i = 1; i < times; i++) { // Shakes
+			el.animate(animation1, speed, o.options.easing).animate(animation2, speed, o.options.easing);
+		};
+		el.animate(animation1, speed, o.options.easing).
+		animate(animation, speed / 2, o.options.easing, function(){ // Last shake
+			$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+			if(o.callback) o.callback.apply(this, arguments); // Callback
+		});
+		el.queue('fx', function() { el.dequeue(); });
+		el.dequeue();
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Slide
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Slide
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.slide = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this), props = ['position','top','left'];
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+		var direction = o.options.direction || 'left'; // Default Direction
+		
+		// Adjust
+		$.effects.save(el, props); el.show(); // Save & Show
+		$.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+		var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+		var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+		var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true}));
+		if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift
+		
+		// Animation
+		var animation = {};
+		animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
+		
+		// Animate
+		el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+			if(mode == 'hide') el.hide(); // Hide
+			$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+			if(o.callback) o.callback.apply(this, arguments); // Callback
+			el.dequeue();
+		}});
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Transfer
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Effects/Transfer
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function($) {
+
+$.effects.transfer = function(o) {
+
+	return this.queue(function() {
+
+		// Create element
+		var el = $(this);
+		
+		// Set options
+		var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+		var target = $(o.options.to); // Find Target
+		var position = el.offset();
+		var transfer = $('<div class="ui-effects-transfer"></div>').appendTo(document.body);
+		if(o.options.className) transfer.addClass(o.options.className);
+		
+		// Set target css
+		transfer.addClass(o.options.className);
+		transfer.css({
+			top: position.top,
+			left: position.left,
+			height: el.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+			width: el.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')),
+			position: 'absolute'
+		});
+		
+		// Animation
+		position = target.offset();
+		animation = {
+			top: position.top,
+			left: position.left,
+			height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+			width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth'))
+		};
+		
+		// Animate
+		transfer.animate(animation, o.duration, o.options.easing, function() {
+			transfer.remove(); // Remove div
+			if(o.callback) o.callback.apply(el[0], arguments); // Callback
+			el.dequeue();
+		}); 
+		
+	});
+	
+};
+
+})(jQuery);
+/*
+ * jQuery UI Accordion
+ * 
+ * Copyright (c) 2007, 2008 JÃ¶rn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Accordion
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($) {
+
+$.widget("ui.accordion", {
+	init: function() {
+		var options = this.options;
+
+		if ( options.navigation ) {
+			var current = this.element.find("a").filter(options.navigationFilter);
+			if ( current.length ) {
+				if ( current.filter(options.header).length ) {
+					options.active = current;
+				} else {
+					options.active = current.parent().parent().prev();
+					current.addClass("current");
+				}
+			}
+		}
+
+		// calculate active if not specified, using the first header
+		options.headers = this.element.find(options.header);
+		options.active = findActive(options.headers, options.active);
+
+		// IE7-/Win - Extra vertical space in Lists fixed
+		if ($.browser.msie) {
+			this.element.find('a').css('zoom', '1');
+		}
+
+		if (!this.element.hasClass("ui-accordion")) {
+			this.element.addClass("ui-accordion");
+			$("<span class='ui-accordion-left'/>").insertBefore(options.headers);
+			$("<span class='ui-accordion-right'/>").appendTo(options.headers);
+			options.headers.addClass("ui-accordion-header").attr("tabindex", "0");
+		}
+
+		this.size();
+
+		options.headers
+			.not(options.active || "")
+			.next()
+			.hide();
+		options.active.parent().andSelf().addClass(options.selectedClass);
+
+		if (options.event) {
+			this.element.bind((options.event) + ".accordion", clickHandler);
+		}
+	},
+	activate: function(index) {
+		// call clickHandler with custom event
+		clickHandler.call(this.element[0], {
+			target: findActive( this.options.headers, index )[0]
+		});
+	},
+	destroy: function() {
+		this.options.headers.next().css("display", "");
+		if ( this.options.fillSpace || this.options.autoHeight ) {
+			this.options.headers.next().css("height", "");
+		}
+		$.removeData(this.element[0], "accordion");
+		this.element.removeClass("ui-accordion").unbind(".accordion");
+	}
+,	size: function () {
+		var options = this.options;
+		var maxHeight = 0, maxPadding = 0;
+		if ( options.fillSpace ) {
+			maxHeight = this.element.parent().height();
+			options.headers.each(function() {
+				maxHeight -= $(this).outerHeight();
+			});
+			options.headers.next().each(function() {
+				maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height());
+			}).height(maxHeight - maxPadding);
+		} else if ( options.autoHeight ) {
+			options.headers.next().each(function() {
+				maxHeight = Math.max(maxHeight, $(this).outerHeight());
+			}).height(maxHeight);
+		}
+	}
+});
+
+function scopeCallback(callback, scope) {
+	return function() {
+		return callback.apply(scope, arguments);
+	};
+};
+
+function completed(cancel) {
+	// if removed while animated data can be empty
+	if (!$.data(this, "accordion")) {
+		return;
+	}
+	
+	var instance = $.data(this, "accordion");
+	var options = instance.options;
+	options.running = cancel ? 0 : --options.running;
+	if ( options.running ) {
+		return;
+	}
+	if ( options.clearStyle ) {
+		options.toShow.add(options.toHide).css({
+			height: "",
+			overflow: ""
+		});
+	}
+	$(this).triggerHandler("accordionchange", [$.event.fix({type: 'accordionchange', target: instance.element[0]}), options.data], options.change);
+}
+
+function toggle(toShow, toHide, data, clickedActive, down) {
+	var options = $.data(this, "accordion").options;
+	options.toShow = toShow;
+	options.toHide = toHide;
+	options.data = data;
+	var complete = scopeCallback(completed, this);
+	
+	// count elements to animate
+	options.running = toHide.size() === 0 ? toShow.size() : toHide.size();
+	
+	if ( options.animated ) {
+		if ( !options.alwaysOpen && clickedActive ) {
+			$.ui.accordion.animations[options.animated]({
+				toShow: jQuery([]),
+				toHide: toHide,
+				complete: complete,
+				down: down,
+				autoHeight: options.autoHeight
+			});
+		} else {
+			$.ui.accordion.animations[options.animated]({
+				toShow: toShow,
+				toHide: toHide,
+				complete: complete,
+				down: down,
+				autoHeight: options.autoHeight
+			});
+		}
+	} else {
+		if ( !options.alwaysOpen && clickedActive ) {
+			toShow.toggle();
+		} else {
+			toHide.hide();
+			toShow.show();
+		}
+		complete(true);
+	}
+}
+
+function clickHandler(event) {
+	var options = $.data(this, "accordion").options;
+	if (options.disabled) {
+		return false;
+	}
+	
+	// called only when using activate(false) to close all parts programmatically
+	if ( !event.target && !options.alwaysOpen ) {
+		options.active.parent().andSelf().toggleClass(options.selectedClass);
+		var toHide = options.active.next(),
+			data = {
+				options: options,
+				newHeader: jQuery([]),
+				oldHeader: options.active,
+				newContent: jQuery([]),
+				oldContent: toHide
+			},
+			toShow = (options.active = $([]));
+		toggle.call(this, toShow, toHide, data );
+		return false;
+	}
+	// get the click target
+	var clicked = $(event.target);
+	
+	// due to the event delegation model, we have to check if one
+	// of the parent elements is our actual header, and find that
+	// otherwise stick with the initial target
+	clicked = $( clicked.parents(options.header)[0] || clicked );
+	
+	var clickedActive = clicked[0] == options.active[0];
+	
+	// if animations are still active, or the active header is the target, ignore click
+	if (options.running || (options.alwaysOpen && clickedActive)) {
+		return false;
+	}
+	if (!clicked.is(options.header)) {
+		return;
+	}
+	
+	// switch classes
+	options.active.parent().andSelf().toggleClass(options.selectedClass);
+	if ( !clickedActive ) {
+		clicked.parent().andSelf().addClass(options.selectedClass);
+	}
+	
+	// find elements to show and hide
+	var toShow = clicked.next(),
+		toHide = options.active.next(),
+		//data = [clicked, options.active, toShow, toHide],
+		data = {
+			options: options,
+			newHeader: clicked,
+			oldHeader: options.active,
+			newContent: toShow,
+			oldContent: toHide
+		},
+		down = options.headers.index( options.active[0] ) > options.headers.index( clicked[0] );
+	
+	options.active = clickedActive ? $([]) : clicked;
+	toggle.call(this, toShow, toHide, data, clickedActive, down );
+
+	return false;
+};
+
+function findActive(headers, selector) {
+	return selector != undefined
+		? typeof selector == "number"
+			? headers.filter(":eq(" + selector + ")")
+			: headers.not(headers.not(selector))
+		: selector === false
+			? $([])
+			: headers.filter(":eq(0)");
+}
+
+$.extend($.ui.accordion, {
+	defaults: {
+		selectedClass: "selected",
+		alwaysOpen: true,
+		animated: 'slide',
+		event: "click",
+		header: "a",
+		autoHeight: true,
+		running: 0,
+		navigationFilter: function() {
+			return this.href.toLowerCase() == location.href.toLowerCase();
+		}
+	},
+	animations: {
+		slide: function(options, additions) {
+			options = $.extend({
+				easing: "swing",
+				duration: 300
+			}, options, additions);
+			if ( !options.toHide.size() ) {
+				options.toShow.animate({height: "show"}, options);
+				return;
+			}
+			var hideHeight = options.toHide.height(),
+				showHeight = options.toShow.height(),
+				difference = showHeight / hideHeight;
+			options.toShow.css({ height: 0, overflow: 'hidden' }).show();
+			options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{
+				step: function(now) {
+					var current = (hideHeight - now) * difference;
+					if ($.browser.msie || $.browser.opera) {
+						current = Math.ceil(current);
+					}
+					options.toShow.height( current );
+				},
+				duration: options.duration,
+				easing: options.easing,
+				complete: function() {
+					if ( !options.autoHeight ) {
+						options.toShow.css("height", "auto");
+					}
+					options.complete();
+				}
+			});
+		},
+		bounceslide: function(options) {
+			this.slide(options, {
+				easing: options.down ? "bounceout" : "swing",
+				duration: options.down ? 1000 : 200
+			});
+		},
+		easeslide: function(options) {
+			this.slide(options, {
+				easing: "easeinout",
+				duration: 700
+			});
+		}
+	}
+});
+
+// deprecated, use accordion("activate", index) instead
+$.fn.activate = function(index) {
+	return this.accordion("activate", index);
+};
+
+})(jQuery);
+/*
+ * jQuery UI Datepicker
+ *
+ * Copyright (c) 2006, 2007, 2008 Marc Grabanski
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Datepicker
+ *
+ * Depends:
+ *	ui.core.js
+ *
+ * Marc Grabanski (m@marcgrabanski.com) and Keith Wood (kbwood@virginbroadband.com.au).
+ */
+   
+(function($) { // hide the namespace
+
+var PROP_NAME = 'datepicker';
+
+/* Date picker manager.
+   Use the singleton instance of this class, $.datepicker, to interact with the date picker.
+   Settings for (groups of) date pickers are maintained in an instance object,
+   allowing multiple different settings on the same page. */
+
+function Datepicker() {
+	this.debug = false; // Change this to true to start debugging
+	this._curInst = null; // The current instance in use
+	this._disabledInputs = []; // List of date picker inputs that have been disabled
+	this._datepickerShowing = false; // True if the popup picker is showing , false if not
+	this._inDialog = false; // True if showing within a "dialog", false if not
+	this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division
+	this._appendClass = 'ui-datepicker-append'; // The name of the append marker class
+	this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class
+	this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class
+	this._promptClass = 'ui-datepicker-prompt'; // The name of the dialog prompt marker class
+	this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class
+	this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class
+	this.regional = []; // Available regional settings, indexed by language code
+	this.regional[''] = { // Default regional settings
+		clearText: 'Clear', // Display text for clear link
+		clearStatus: 'Erase the current date', // Status text for clear link
+		closeText: 'Close', // Display text for close link
+		closeStatus: 'Close without change', // Status text for close link
+		prevText: '&#x3c;Prev', // Display text for previous month link
+		prevStatus: 'Show the previous month', // Status text for previous month link
+		nextText: 'Next&#x3e;', // Display text for next month link
+		nextStatus: 'Show the next month', // Status text for next month link
+		currentText: 'Today', // Display text for current month link
+		currentStatus: 'Show the current month', // Status text for current month link
+		monthNames: ['January','February','March','April','May','June',
+			'July','August','September','October','November','December'], // Names of months for drop-down and formatting
+		monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting
+		monthStatus: 'Show a different month', // Status text for selecting a month
+		yearStatus: 'Show a different year', // Status text for selecting a year
+		weekHeader: 'Wk', // Header for the week of the year column
+		weekStatus: 'Week of the year', // Status text for the week of the year column
+		dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting
+		dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting
+		dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday
+		dayStatus: 'Set DD as first week day', // Status text for the day of the week selection
+		dateStatus: 'Select DD, M d', // Status text for the date selection
+		dateFormat: 'mm/dd/yy', // See format options on parseDate
+		firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
+		initStatus: 'Select a date', // Initial Status text on opening
+		isRTL: false // True if right-to-left language, false if left-to-right
+	};
+	this._defaults = { // Global defaults for all the date picker instances
+		showOn: 'focus', // 'focus' for popup on focus,
+			// 'button' for trigger button, or 'both' for either
+		showAnim: 'show', // Name of jQuery animation for popup
+		showOptions: {}, // Options for enhanced animations
+		defaultDate: null, // Used when field is blank: actual date,
+			// +/-number for offset from today, null for today
+		appendText: '', // Display text following the input box, e.g. showing the format
+		buttonText: '...', // Text for trigger button
+		buttonImage: '', // URL for trigger button image
+		buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
+		closeAtTop: true, // True to have the clear/close at the top,
+			// false to have them at the bottom
+		mandatory: false, // True to hide the Clear link, false to include it
+		hideIfNoPrevNext: false, // True to hide next/previous month links
+			// if not applicable, false to just disable them
+		navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
+		gotoCurrent: false, // True if today link goes back to current selection instead
+		changeMonth: true, // True if month can be selected directly, false if only prev/next
+		changeYear: true, // True if year can be selected directly, false if only prev/next
+		yearRange: '-10:+10', // Range of years to display in drop-down,
+			// either relative to current year (-nn:+nn) or absolute (nnnn:nnnn)
+		changeFirstDay: true, // True to click on day name to change, false to remain as set
+		highlightWeek: false, // True to highlight the selected week
+		showOtherMonths: false, // True to show dates in other months, false to leave blank
+		showWeeks: false, // True to show week of the year, false to omit
+		calculateWeek: this.iso8601Week, // How to calculate the week of the year,
+			// takes a Date and returns the number of the week for it
+		shortYearCutoff: '+10', // Short year values < this are in the current century,
+			// > this are in the previous century, 
+			// string value starting with '+' for current year + value
+		showStatus: false, // True to show status bar at bottom, false to not show it
+		statusForDate: this.dateStatus, // Function to provide status text for a date -
+			// takes date and instance as parameters, returns display text
+		minDate: null, // The earliest selectable date, or null for no limit
+		maxDate: null, // The latest selectable date, or null for no limit
+		duration: 'normal', // Duration of display/closure
+		beforeShowDay: null, // Function that takes a date and returns an array with
+			// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '', 
+			// [2] = cell title (optional), e.g. $.datepicker.noWeekends
+		beforeShow: null, // Function that takes an input field and
+			// returns a set of custom settings for the date picker
+		onSelect: null, // Define a callback function when a date is selected
+		onChangeMonthYear: null, // Define a callback function when the month or year is changed
+		onClose: null, // Define a callback function when the datepicker is closed
+		numberOfMonths: 1, // Number of months to show at a time
+		stepMonths: 1, // Number of months to step back/forward
+		rangeSelect: false, // Allows for selecting a date range on one date picker
+		rangeSeparator: ' - ', // Text between two dates in a range
+		altField: '', // Selector for an alternate field to store selected dates into
+		altFormat: '' // The date format to use for the alternate field
+	};
+	$.extend(this._defaults, this.regional['']);
+	this.dpDiv = $('<div id="' + this._mainDivId + '" style="display: none;"></div>');
+}
+
+$.extend(Datepicker.prototype, {
+	/* Class name added to elements to indicate already configured with a date picker. */
+	markerClassName: 'hasDatepicker',
+
+	/* Debug logging (if enabled). */
+	log: function () {
+		if (this.debug)
+			console.log.apply('', arguments);
+	},
+	
+	/* Override the default settings for all instances of the date picker. 
+	   @param  settings  object - the new settings to use as defaults (anonymous object)
+	   @return the manager object */
+	setDefaults: function(settings) {
+		extendRemove(this._defaults, settings || {});
+		return this;
+	},
+
+	/* Attach the date picker to a jQuery selection.
+	   @param  target    element - the target input field or division or span
+	   @param  settings  object - the new settings to use for this date picker instance (anonymous) */
+	_attachDatepicker: function(target, settings) {
+		// check for settings on the control itself - in namespace 'date:'
+		var inlineSettings = null;
+		for (attrName in this._defaults) {
+			var attrValue = target.getAttribute('date:' + attrName);
+			if (attrValue) {
+				inlineSettings = inlineSettings || {};
+				try {
+					inlineSettings[attrName] = eval(attrValue);
+				} catch (err) {
+					inlineSettings[attrName] = attrValue;
+				}
+			}
+		}
+		var nodeName = target.nodeName.toLowerCase();
+		var inline = (nodeName == 'div' || nodeName == 'span');
+		if (!target.id)
+			target.id = 'dp' + new Date().getTime();
+		var inst = this._newInst($(target), inline);
+		inst.settings = $.extend({}, settings || {}, inlineSettings || {}); 
+		if (nodeName == 'input') {
+			this._connectDatepicker(target, inst);
+		} else if (inline) {
+			this._inlineDatepicker(target, inst);
+		}
+	},
+
+	/* Create a new instance object. */
+	_newInst: function(target, inline) {
+		return {id: target[0].id, input: target, // associated target
+			selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
+			drawMonth: 0, drawYear: 0, // month being drawn
+			inline: inline, // is datepicker inline or not
+			dpDiv: (!inline ? this.dpDiv : // presentation div
+			$('<div class="ui-datepicker-inline"></div>'))};
+	},
+
+	/* Attach the date picker to an input field. */
+	_connectDatepicker: function(target, inst) {
+		var input = $(target);
+		if (input.hasClass(this.markerClassName))
+			return;
+		var appendText = this._get(inst, 'appendText');
+		var isRTL = this._get(inst, 'isRTL');
+		if (appendText)
+			input[isRTL ? 'before' : 'after']('<span class="' + this._appendClass + '">' + appendText + '</span>');
+		var showOn = this._get(inst, 'showOn');
+		if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field
+			input.focus(this._showDatepicker);
+		if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked
+			var buttonText = this._get(inst, 'buttonText');
+			var buttonImage = this._get(inst, 'buttonImage');
+			var trigger = $(this._get(inst, 'buttonImageOnly') ? 
+				$('<img/>').addClass(this._triggerClass).
+					attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
+				$('<button type="button"></button>').addClass(this._triggerClass).
+					html(buttonImage == '' ? buttonText : $('<img/>').attr(
+					{ src:buttonImage, alt:buttonText, title:buttonText })));
+			input[isRTL ? 'before' : 'after'](trigger);
+			trigger.click(function() {
+				if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target)
+					$.datepicker._hideDatepicker();
+				else
+					$.datepicker._showDatepicker(target);
+				return false;
+			});
+		}
+		input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).
+			bind("setData.datepicker", function(event, key, value) {
+				inst.settings[key] = value;
+			}).bind("getData.datepicker", function(event, key) {
+				return this._get(inst, key);
+			});
+		$.data(target, PROP_NAME, inst);
+	},
+
+	/* Attach an inline date picker to a div. */
+	_inlineDatepicker: function(target, inst) {
+		var input = $(target);
+		if (input.hasClass(this.markerClassName))
+			return;
+		input.addClass(this.markerClassName).append(inst.dpDiv).
+			bind("setData.datepicker", function(event, key, value){
+				inst.settings[key] = value;
+			}).bind("getData.datepicker", function(event, key){
+				return this._get(inst, key);
+			});
+		$.data(target, PROP_NAME, inst);
+		this._setDate(inst, this._getDefaultDate(inst));
+		this._updateDatepicker(inst);
+	},
+
+	/* Tidy up after displaying the date picker. */
+	_inlineShow: function(inst) {
+		var numMonths = this._getNumberOfMonths(inst); // fix width for dynamic number of date pickers
+		inst.dpDiv.width(numMonths[1] * $('.ui-datepicker', inst.dpDiv[0]).width());
+	}, 
+
+	/* Pop-up the date picker in a "dialog" box.
+	   @param  input     element - ignored
+	   @param  dateText  string - the initial date to display (in the current format)
+	   @param  onSelect  function - the function(dateText) to call when a date is selected
+	   @param  settings  object - update the dialog date picker instance's settings (anonymous object)
+	   @param  pos       int[2] - coordinates for the dialog's position within the screen or
+	                     event - with x/y coordinates or
+	                     leave empty for default (screen centre)
+	   @return the manager object */
+	_dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
+		var inst = this._dialogInst; // internal instance
+		if (!inst) {
+			var id = 'dp' + new Date().getTime();
+			this._dialogInput = $('<input type="text" id="' + id +
+				'" size="1" style="position: absolute; top: -100px;"/>');
+			this._dialogInput.keydown(this._doKeyDown);
+			$('body').append(this._dialogInput);
+			inst = this._dialogInst = this._newInst(this._dialogInput, false);
+			inst.settings = {};
+			$.data(this._dialogInput[0], PROP_NAME, inst);
+		}
+		extendRemove(inst.settings, settings || {});
+		this._dialogInput.val(dateText);
+
+		this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
+		if (!this._pos) {
+			var browserWidth = window.innerWidth || document.documentElement.clientWidth ||	document.body.clientWidth;
+			var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
+			var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
+			var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
+			this._pos = // should use actual width/height below
+				[(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
+		}
+
+		// move input on screen for focus, but hidden behind dialog
+		this._dialogInput.css('left', this._pos[0] + 'px').css('top', this._pos[1] + 'px');
+		inst.settings.onSelect = onSelect;
+		this._inDialog = true;
+		this.dpDiv.addClass(this._dialogClass);
+		this._showDatepicker(this._dialogInput[0]);
+		if ($.blockUI)
+			$.blockUI(this.dpDiv);
+		$.data(this._dialogInput[0], PROP_NAME, inst);
+		return this;
+	},
+
+	/* Detach a datepicker from its control.
+	   @param  target    element - the target input field or division or span */
+	_destroyDatepicker: function(target) {
+		var nodeName = target.nodeName.toLowerCase();
+		var $target = $(target);
+		$.removeData(target, PROP_NAME);
+		if (nodeName == 'input') {
+			$target.siblings('.' + this._appendClass).remove().end().
+				siblings('.' + this._triggerClass).remove().end().
+				removeClass(this.markerClassName).
+				unbind('focus', this._showDatepicker).
+				unbind('keydown', this._doKeyDown).
+				unbind('keypress', this._doKeyPress);
+		} else if (nodeName == 'div' || nodeName == 'span')
+			$target.removeClass(this.markerClassName).empty();
+	},
+
+	/* Enable the date picker to a jQuery selection.
+	   @param  target    element - the target input field or division or span */
+	_enableDatepicker: function(target) {
+		target.disabled = false;
+		$(target).siblings('button.' + this._triggerClass).each(function() { this.disabled = false; }).end().
+			siblings('img.' + this._triggerClass).css({opacity: '1.0', cursor: ''});
+		this._disabledInputs = $.map(this._disabledInputs,
+			function(value) { return (value == target ? null : value); }); // delete entry
+	},
+
+	/* Disable the date picker to a jQuery selection.
+	   @param  target    element - the target input field or division or span */
+	_disableDatepicker: function(target) {
+		target.disabled = true;
+		$(target).siblings('button.' + this._triggerClass).each(function() { this.disabled = true; }).end().
+			siblings('img.' + this._triggerClass).css({opacity: '0.5', cursor: 'default'});
+		this._disabledInputs = $.map(this._disabledInputs,
+			function(value) { return (value == target ? null : value); }); // delete entry
+		this._disabledInputs[this._disabledInputs.length] = target;
+	},
+
+	/* Is the first field in a jQuery collection disabled as a datepicker?
+	   @param  target    element - the target input field or division or span
+	   @return boolean - true if disabled, false if enabled */
+	_isDisabledDatepicker: function(target) {
+		if (!target)
+			return false;
+		for (var i = 0; i < this._disabledInputs.length; i++) {
+			if (this._disabledInputs[i] == target)
+				return true;
+		}
+		return false;
+	},
+
+	/* Update the settings for a date picker attached to an input field or division.
+	   @param  target  element - the target input field or division or span
+	   @param  name    object - the new settings to update or
+	                   string - the name of the setting to change or
+	   @param  value   any - the new value for the setting (omit if above is an object) */
+	_changeDatepicker: function(target, name, value) {
+		var settings = name || {};
+		if (typeof name == 'string') {
+			settings = {};
+			settings[name] = value;
+		}
+		if (inst = $.data(target, PROP_NAME)) {
+			extendRemove(inst.settings, settings);
+			this._updateDatepicker(inst);
+		}
+	},
+
+	/* Set the dates for a jQuery selection.
+	   @param  target   element - the target input field or division or span
+	   @param  date     Date - the new date
+	   @param  endDate  Date - the new end date for a range (optional) */
+	_setDateDatepicker: function(target, date, endDate) {
+		var inst = $.data(target, PROP_NAME);
+		if (inst) {
+			this._setDate(inst, date, endDate);
+			this._updateDatepicker(inst);
+		}
+	},
+
+	/* Get the date(s) for the first entry in a jQuery selection.
+	   @param  target  element - the target input field or division or span
+	   @return Date - the current date or
+	           Date[2] - the current dates for a range */
+	_getDateDatepicker: function(target) {
+		var inst = $.data(target, PROP_NAME);
+		if (inst)
+			this._setDateFromField(inst); 
+		return (inst ? this._getDate(inst) : null);
+	},
+
+	/* Handle keystrokes. */
+	_doKeyDown: function(e) {
+		var inst = $.data(e.target, PROP_NAME);
+		var handled = true;
+		if ($.datepicker._datepickerShowing)
+			switch (e.keyCode) {
+				case 9:  $.datepicker._hideDatepicker(null, '');
+						break; // hide on tab out
+				case 13: $.datepicker._selectDay(e.target, inst.selectedMonth, inst.selectedYear,
+							$('td.ui-datepicker-days-cell-over', inst.dpDiv)[0]);
+						return false; // don't submit the form
+						break; // select the value on enter
+				case 27: $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration'));
+						break; // hide on escape
+				case 33: $.datepicker._adjustDate(e.target, (e.ctrlKey ? -1 :
+							-$.datepicker._get(inst, 'stepMonths')), (e.ctrlKey ? 'Y' : 'M'));
+						break; // previous month/year on page up/+ ctrl
+				case 34: $.datepicker._adjustDate(e.target, (e.ctrlKey ? +1 :
+							+$.datepicker._get(inst, 'stepMonths')), (e.ctrlKey ? 'Y' : 'M'));
+						break; // next month/year on page down/+ ctrl
+				case 35: if (e.ctrlKey) $.datepicker._clearDate(e.target);
+						break; // clear on ctrl+end
+				case 36: if (e.ctrlKey) $.datepicker._gotoToday(e.target);
+						break; // current on ctrl+home
+				case 37: if (e.ctrlKey) $.datepicker._adjustDate(e.target, -1, 'D');
+						break; // -1 day on ctrl+left
+				case 38: if (e.ctrlKey) $.datepicker._adjustDate(e.target, -7, 'D');
+						break; // -1 week on ctrl+up
+				case 39: if (e.ctrlKey) $.datepicker._adjustDate(e.target, +1, 'D');
+						break; // +1 day on ctrl+right
+				case 40: if (e.ctrlKey) $.datepicker._adjustDate(e.target, +7, 'D');
+						break; // +1 week on ctrl+down
+				default: handled = false;
+			}
+		else if (e.keyCode == 36 && e.ctrlKey) // display the date picker on ctrl+home
+			$.datepicker._showDatepicker(this);
+		else
+			handled = false;
+		if (handled) {
+			e.preventDefault();
+			e.stopPropagation();
+		}
+	},
+
+	/* Filter entered characters - based on date format. */
+	_doKeyPress: function(e) {
+		var inst = $.data(e.target, PROP_NAME);
+		var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat'));
+		var chr = String.fromCharCode(e.charCode == undefined ? e.keyCode : e.charCode);
+		return e.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1);
+	},
+
+	/* Pop-up the date picker for a given input field.
+	   @param  input  element - the input field attached to the date picker or
+	                  event - if triggered by focus */
+	_showDatepicker: function(input) {
+		input = input.target || input;
+		if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
+			input = $('input', input.parentNode)[0];
+		if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
+			return;
+		var inst = $.data(input, PROP_NAME);
+		var beforeShow = $.datepicker._get(inst, 'beforeShow');
+		extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {}));
+		$.datepicker._hideDatepicker(null, '');
+		$.datepicker._lastInput = input;
+		$.datepicker._setDateFromField(inst);
+		if ($.datepicker._inDialog) // hide cursor
+			input.value = '';
+		if (!$.datepicker._pos) { // position below input
+			$.datepicker._pos = $.datepicker._findPos(input);
+			$.datepicker._pos[1] += input.offsetHeight; // add the height
+		}
+		var isFixed = false;
+		$(input).parents().each(function() {
+			isFixed |= $(this).css('position') == 'fixed';
+			return !isFixed;
+		});
+		if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled
+			$.datepicker._pos[0] -= document.documentElement.scrollLeft;
+			$.datepicker._pos[1] -= document.documentElement.scrollTop;
+		}
+		var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};
+		$.datepicker._pos = null;
+		inst.rangeStart = null;
+		// determine sizing offscreen
+		inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'});
+		$.datepicker._updateDatepicker(inst);
+		// fix width for dynamic number of date pickers
+		inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1] *
+			$('.ui-datepicker', inst.dpDiv[0])[0].offsetWidth);
+		// and adjust position before showing
+		offset = $.datepicker._checkOffset(inst, offset, isFixed);
+		inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?
+			'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none',
+			left: offset.left + 'px', top: offset.top + 'px'});
+		if (!inst.inline) {
+			var showAnim = $.datepicker._get(inst, 'showAnim') || 'show';
+			var duration = $.datepicker._get(inst, 'duration');
+			var postProcess = function() {
+				$.datepicker._datepickerShowing = true;
+				if ($.browser.msie && parseInt($.browser.version) < 7) // fix IE < 7 select problems
+					$('iframe.ui-datepicker-cover').css({width: inst.dpDiv.width() + 4,
+						height: inst.dpDiv.height() + 4});
+			};
+			if ($.effects && $.effects[showAnim])
+				inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
+			else
+				inst.dpDiv[showAnim](duration, postProcess);
+			if (duration == '')
+				postProcess();
+			if (inst.input[0].type != 'hidden')
+				inst.input[0].focus();
+			$.datepicker._curInst = inst;
+		}
+	},
+
+	/* Generate the date picker content. */
+	_updateDatepicker: function(inst) {
+		var dims = {width: inst.dpDiv.width() + 4,
+			height: inst.dpDiv.height() + 4};
+		inst.dpDiv.empty().append(this._generateDatepicker(inst)).
+			find('iframe.ui-datepicker-cover').
+			css({width: dims.width, height: dims.height});
+		var numMonths = this._getNumberOfMonths(inst);
+		inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') +
+			'Class']('ui-datepicker-multi');
+		inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') +
+			'Class']('ui-datepicker-rtl');
+		if (inst.input && inst.input[0].type != 'hidden')
+			$(inst.input[0]).focus();
+	},
+
+	/* Check positioning to remain on screen. */
+	_checkOffset: function(inst, offset, isFixed) {
+		var pos = inst.input ? this._findPos(inst.input[0]) : null;
+		var browserWidth = window.innerWidth || document.documentElement.clientWidth;
+		var browserHeight = window.innerHeight || document.documentElement.clientHeight;
+		var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
+		var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
+		// reposition date picker horizontally if outside the browser window
+		if (this._get(inst, 'isRTL') || (offset.left + inst.dpDiv.width() - scrollX) > browserWidth)
+			offset.left = Math.max((isFixed ? 0 : scrollX),
+				pos[0] + (inst.input ? inst.input.width() : 0) - (isFixed ? scrollX : 0) - inst.dpDiv.width() -
+				(isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0));
+		else
+			offset.left -= (isFixed ? scrollX : 0);
+		// reposition date picker vertically if outside the browser window
+		if ((offset.top + inst.dpDiv.height() - scrollY) > browserHeight)
+			offset.top = Math.max((isFixed ? 0 : scrollY),
+				pos[1] - (isFixed ? scrollY : 0) - (this._inDialog ? 0 : inst.dpDiv.height()) -
+				(isFixed && $.browser.opera ? document.documentElement.scrollTop : 0));
+		else
+			offset.top -= (isFixed ? scrollY : 0);
+		return offset;
+	},
+	
+	/* Find an object's position on the screen. */
+	_findPos: function(obj) {
+        while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
+            obj = obj.nextSibling;
+        }
+        var position = $(obj).offset();
+	    return [position.left, position.top];
+	},
+
+	/* Hide the date picker from view.
+	   @param  input  element - the input field attached to the date picker
+	   @param  duration  string - the duration over which to close the date picker */
+	_hideDatepicker: function(input, duration) {
+		var inst = this._curInst;
+		if (!inst)
+			return;
+		var rangeSelect = this._get(inst, 'rangeSelect');
+		if (rangeSelect && this._stayOpen)
+			this._selectDate('#' + inst.id, this._formatDate(inst,
+				inst.currentDay, inst.currentMonth, inst.currentYear));
+		this._stayOpen = false;
+		if (this._datepickerShowing) {
+			duration = (duration != null ? duration : this._get(inst, 'duration'));
+			var showAnim = this._get(inst, 'showAnim');
+			var postProcess = function() {
+				$.datepicker._tidyDialog(inst);
+			};
+			if (duration != '' && $.effects && $.effects[showAnim])
+				inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'),
+					duration, postProcess);
+			else
+				inst.dpDiv[(duration == '' ? 'hide' : (showAnim == 'slideDown' ? 'slideUp' :
+					(showAnim == 'fadeIn' ? 'fadeOut' : 'hide')))](duration, postProcess);
+			if (duration == '')
+				this._tidyDialog(inst);
+			var onClose = this._get(inst, 'onClose');
+			if (onClose)
+				onClose.apply((inst.input ? inst.input[0] : null),
+					[this._getDate(inst), inst]);  // trigger custom callback
+			this._datepickerShowing = false;
+			this._lastInput = null;
+			inst.settings.prompt = null;
+			if (this._inDialog) {
+				this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });
+				if ($.blockUI) {
+					$.unblockUI();
+					$('body').append(this.dpDiv);
+				}
+			}
+			this._inDialog = false;
+		}
+		this._curInst = null;
+	},
+
+	/* Tidy up after a dialog display. */
+	_tidyDialog: function(inst) {
+		inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker');
+		$('.' + this._promptClass, inst.dpDiv).remove();
+	},
+
+	/* Close date picker if clicked elsewhere. */
+	_checkExternalClick: function(event) {
+		if (!$.datepicker._curInst)
+			return;
+		var $target = $(event.target);
+		if (($target.parents('#' + $.datepicker._mainDivId).length == 0) &&
+				!$target.hasClass($.datepicker.markerClassName) &&
+				!$target.hasClass($.datepicker._triggerClass) &&
+				$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI))
+			$.datepicker._hideDatepicker(null, '');
+	},
+
+	/* Adjust one of the date sub-fields. */
+	_adjustDate: function(id, offset, period) {
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		this._adjustInstDate(inst, offset, period);
+		this._updateDatepicker(inst);
+	},
+
+	/* Action for current link. */
+	_gotoToday: function(id) {
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		if (this._get(inst, 'gotoCurrent') && inst.currentDay) {
+			inst.selectedDay = inst.currentDay;
+			inst.drawMonth = inst.selectedMonth = inst.currentMonth;
+			inst.drawYear = inst.selectedYear = inst.currentYear;
+		}
+		else {
+		var date = new Date();
+		inst.selectedDay = date.getDate();
+		inst.drawMonth = inst.selectedMonth = date.getMonth();
+		inst.drawYear = inst.selectedYear = date.getFullYear();
+		}
+		this._adjustDate(target);
+		this._notifyChange(inst);
+	},
+
+	/* Action for selecting a new month/year. */
+	_selectMonthYear: function(id, select, period) {
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		inst._selectingMonthYear = false;
+		inst[period == 'M' ? 'drawMonth' : 'drawYear'] =
+			select.options[select.selectedIndex].value - 0;
+		this._adjustDate(target);
+		this._notifyChange(inst);
+	},
+
+	/* Restore input focus after not changing month/year. */
+	_clickMonthYear: function(id) {
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		if (inst.input && inst._selectingMonthYear && !$.browser.msie)
+			inst.input[0].focus();
+		inst._selectingMonthYear = !inst._selectingMonthYear;
+	},
+
+	/* Action for changing the first week day. */
+	_changeFirstDay: function(id, day) {
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		inst.settings.firstDay = day;
+		this._updateDatepicker(inst);
+	},
+
+	/* Action for selecting a day. */
+	_selectDay: function(id, month, year, td) {
+		if ($(td).hasClass(this._unselectableClass))
+			return;
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		var rangeSelect = this._get(inst, 'rangeSelect');
+		if (rangeSelect) {
+			this._stayOpen = !this._stayOpen;
+			if (this._stayOpen) {
+				$('.ui-datepicker td').removeClass(this._currentClass);
+				$(td).addClass(this._currentClass);
+			} 
+		}
+		inst.selectedDay = inst.currentDay = $('a', td).html();
+		inst.selectedMonth = inst.currentMonth = month;
+		inst.selectedYear = inst.currentYear = year;
+		if (this._stayOpen) {
+			inst.endDay = inst.endMonth = inst.endYear = null;
+		}
+		else if (rangeSelect) {
+			inst.endDay = inst.currentDay;
+			inst.endMonth = inst.currentMonth;
+			inst.endYear = inst.currentYear;
+		}
+		this._selectDate(id, this._formatDate(inst,
+			inst.currentDay, inst.currentMonth, inst.currentYear));
+		if (this._stayOpen) {
+			inst.rangeStart = new Date(inst.currentYear, inst.currentMonth, inst.currentDay);
+			this._updateDatepicker(inst);
+		}
+		else if (rangeSelect) {
+			inst.selectedDay = inst.currentDay = inst.rangeStart.getDate();
+			inst.selectedMonth = inst.currentMonth = inst.rangeStart.getMonth();
+			inst.selectedYear = inst.currentYear = inst.rangeStart.getFullYear();
+			inst.rangeStart = null;
+			if (inst.inline)
+				this._updateDatepicker(inst);
+		}
+	},
+
+	/* Erase the input field and hide the date picker. */
+	_clearDate: function(id) {
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		if (this._get(inst, 'mandatory'))
+			return;
+		this._stayOpen = false;
+		inst.endDay = inst.endMonth = inst.endYear = inst.rangeStart = null;
+		this._selectDate(target, '');
+	},
+
+	/* Update the input field with the selected date. */
+	_selectDate: function(id, dateStr) {
+		var target = $(id);
+		var inst = $.data(target[0], PROP_NAME);
+		dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
+		if (this._get(inst, 'rangeSelect') && dateStr)
+			dateStr = (inst.rangeStart ? this._formatDate(inst, inst.rangeStart) :
+				dateStr) + this._get(inst, 'rangeSeparator') + dateStr;
+		if (inst.input)
+			inst.input.val(dateStr);
+		this._updateAlternate(inst);
+		var onSelect = this._get(inst, 'onSelect');
+		if (onSelect)
+			onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);  // trigger custom callback
+		else if (inst.input)
+			inst.input.trigger('change'); // fire the change event
+		if (inst.inline)
+			this._updateDatepicker(inst);
+		else if (!this._stayOpen) {
+			this._hideDatepicker(null, this._get(inst, 'duration'));
+			this._lastInput = inst.input[0];
+			if (typeof(inst.input[0]) != 'object')
+				inst.input[0].focus(); // restore focus
+			this._lastInput = null;
+		}
+	},
+	
+	/* Update any alternate field to synchronise with the main field. */
+	_updateAlternate: function(inst) {
+		var altField = this._get(inst, 'altField');
+		if (altField) { // update alternate field too
+			var altFormat = this._get(inst, 'altFormat');
+			var date = this._getDate(inst);
+			dateStr = (isArray(date) ? (!date[0] && !date[1] ? '' :
+				this.formatDate(altFormat, date[0], this._getFormatConfig(inst)) +
+				this._get(inst, 'rangeSeparator') + this.formatDate(
+				altFormat, date[1] || date[0], this._getFormatConfig(inst))) :
+				this.formatDate(altFormat, date, this._getFormatConfig(inst)));
+			$(altField).each(function() { $(this).val(dateStr); });
+		}
+	},
+
+	/* Set as beforeShowDay function to prevent selection of weekends.
+	   @param  date  Date - the date to customise
+	   @return [boolean, string] - is this date selectable?, what is its CSS class? */
+	noWeekends: function(date) {
+		var day = date.getDay();
+		return [(day > 0 && day < 6), ''];
+	},
+	
+	/* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
+	   @param  date  Date - the date to get the week for
+	   @return  number - the number of the week within the year that contains this date */
+	iso8601Week: function(date) {
+		var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate(), (date.getTimezoneOffset() / -60));
+		var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); // First week always contains 4 Jan
+		var firstDay = firstMon.getDay() || 7; // Day of week: Mon = 1, ..., Sun = 7
+		firstMon.setDate(firstMon.getDate() + 1 - firstDay); // Preceding Monday
+		if (firstDay < 4 && checkDate < firstMon) { // Adjust first three days in year if necessary
+			checkDate.setDate(checkDate.getDate() - 3); // Generate for previous year
+			return $.datepicker.iso8601Week(checkDate);
+		} else if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { // Check last three days in year
+			firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7;
+			if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { // Adjust if necessary
+				checkDate.setDate(checkDate.getDate() + 3); // Generate for next year
+				return $.datepicker.iso8601Week(checkDate);
+			}
+		}
+		return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date
+	},
+	
+	/* Provide status text for a particular date.
+	   @param  date  the date to get the status for
+	   @param  inst  the current datepicker instance
+	   @return  the status display text for this date */
+	dateStatus: function(date, inst) {
+		return $.datepicker.formatDate($.datepicker._get(inst, 'dateStatus'),
+			date, $.datepicker._getFormatConfig(inst));
+	},
+
+	/* Parse a string value into a date object.
+	   See formatDate below for the possible formats.
+
+	   @param  format    string - the expected format of the date
+	   @param  value     string - the date in the above format
+	   @param  settings  Object - attributes include:
+	                     shortYearCutoff  number - the cutoff year for determining the century (optional)
+	                     dayNamesShort    string[7] - abbreviated names of the days from Sunday (optional)
+	                     dayNames         string[7] - names of the days from Sunday (optional)
+	                     monthNamesShort  string[12] - abbreviated names of the months (optional)
+	                     monthNames       string[12] - names of the months (optional)
+	   @return  Date - the extracted date value or null if value is blank */
+	parseDate: function (format, value, settings) {
+		if (format == null || value == null)
+			throw 'Invalid arguments';
+		value = (typeof value == 'object' ? value.toString() : value + '');
+		if (value == '')
+			return null;
+		var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
+		var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
+		var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
+		var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
+		var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
+		var year = -1;
+		var month = -1;
+		var day = -1;
+		var literal = false;
+		// Check whether a format character is doubled
+		var lookAhead = function(match) {
+			var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
+			if (matches)
+				iFormat++;
+			return matches;	
+		};
+		// Extract a number from the string value
+		var getNumber = function(match) {
+			lookAhead(match);
+			var origSize = (match == '@' ? 14 : (match == 'y' ? 4 : 2));
+			var size = origSize;
+			var num = 0;
+			while (size > 0 && iValue < value.length &&
+					value.charAt(iValue) >= '0' && value.charAt(iValue) <= '9') {
+				num = num * 10 + (value.charAt(iValue++) - 0);
+				size--;
+			}
+			if (size == origSize)
+				throw 'Missing number at position ' + iValue;
+			return num;
+		};
+		// Extract a name from the string value and convert to an index
+		var getName = function(match, shortNames, longNames) {
+			var names = (lookAhead(match) ? longNames : shortNames);
+			var size = 0;
+			for (var j = 0; j < names.length; j++)
+				size = Math.max(size, names[j].length);
+			var name = '';
+			var iInit = iValue;
+			while (size > 0 && iValue < value.length) {
+				name += value.charAt(iValue++);
+				for (var i = 0; i < names.length; i++)
+					if (name == names[i])
+						return i + 1;
+				size--;
+			}
+			throw 'Unknown name at position ' + iInit;
+		};
+		// Confirm that a literal character matches the string value
+		var checkLiteral = function() {
+			if (value.charAt(iValue) != format.charAt(iFormat))
+				throw 'Unexpected literal at position ' + iValue;
+			iValue++;
+		};
+		var iValue = 0;
+		for (var iFormat = 0; iFormat < format.length; iFormat++) {
+			if (literal)
+				if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+					literal = false;
+				else
+					checkLiteral();
+			else
+				switch (format.charAt(iFormat)) {
+					case 'd':
+						day = getNumber('d');
+						break;
+					case 'D': 
+						getName('D', dayNamesShort, dayNames);
+						break;
+					case 'm': 
+						month = getNumber('m');
+						break;
+					case 'M':
+						month = getName('M', monthNamesShort, monthNames); 
+						break;
+					case 'y':
+						year = getNumber('y');
+						break;
+					case '@':
+						var date = new Date(getNumber('@'));
+						year = date.getFullYear();
+						month = date.getMonth() + 1;
+						day = date.getDate();
+						break;
+					case "'":
+						if (lookAhead("'"))
+							checkLiteral();
+						else
+							literal = true;
+						break;
+					default:
+						checkLiteral();
+				}
+		}
+		if (year < 100)
+			year += new Date().getFullYear() - new Date().getFullYear() % 100 +
+				(year <= shortYearCutoff ? 0 : -100);
+		var date = new Date(year, month - 1, day);
+		if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day)
+			throw 'Invalid date'; // E.g. 31/02/*
+		return date;
+	},
+
+	/* Standard date formats. */
+	ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601)
+	COOKIE: 'D, dd M yy',
+	ISO_8601: 'yy-mm-dd',
+	RFC_822: 'D, d M y',
+	RFC_850: 'DD, dd-M-y',
+	RFC_1036: 'D, d M y',
+	RFC_1123: 'D, d M yy',
+	RFC_2822: 'D, d M yy',
+	RSS: 'D, d M y', // RFC 822
+	TIMESTAMP: '@',
+	W3C: 'yy-mm-dd', // ISO 8601
+
+	/* Format a date object into a string value.
+	   The format can be combinations of the following:
+	   d  - day of month (no leading zero)
+	   dd - day of month (two digit)
+	   D  - day name short
+	   DD - day name long
+	   m  - month of year (no leading zero)
+	   mm - month of year (two digit)
+	   M  - month name short
+	   MM - month name long
+	   y  - year (two digit)
+	   yy - year (four digit)
+	   @ - Unix timestamp (ms since 01/01/1970)
+	   '...' - literal text
+	   '' - single quote
+
+	   @param  format    string - the desired format of the date
+	   @param  date      Date - the date value to format
+	   @param  settings  Object - attributes include:
+	                     dayNamesShort    string[7] - abbreviated names of the days from Sunday (optional)
+	                     dayNames         string[7] - names of the days from Sunday (optional)
+	                     monthNamesShort  string[12] - abbreviated names of the months (optional)
+	                     monthNames       string[12] - names of the months (optional)
+	   @return  string - the date in the above format */
+	formatDate: function (format, date, settings) {
+		if (!date)
+			return '';
+		var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
+		var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
+		var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
+		var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
+		// Check whether a format character is doubled
+		var lookAhead = function(match) {
+			var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
+			if (matches)
+				iFormat++;
+			return matches;	
+		};
+		// Format a number, with leading zero if necessary
+		var formatNumber = function(match, value) {
+			return (lookAhead(match) && value < 10 ? '0' : '') + value;
+		};
+		// Format a name, short or long as requested
+		var formatName = function(match, value, shortNames, longNames) {
+			return (lookAhead(match) ? longNames[value] : shortNames[value]);
+		};
+		var output = '';
+		var literal = false;
+		if (date)
+			for (var iFormat = 0; iFormat < format.length; iFormat++) {
+				if (literal)
+					if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+						literal = false;
+					else
+						output += format.charAt(iFormat);
+				else
+					switch (format.charAt(iFormat)) {
+						case 'd':
+							output += formatNumber('d', date.getDate()); 
+							break;
+						case 'D': 
+							output += formatName('D', date.getDay(), dayNamesShort, dayNames);
+							break;
+						case 'm': 
+							output += formatNumber('m', date.getMonth() + 1); 
+							break;
+						case 'M':
+							output += formatName('M', date.getMonth(), monthNamesShort, monthNames); 
+							break;
+						case 'y':
+							output += (lookAhead('y') ? date.getFullYear() : 
+								(date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);
+							break;
+						case '@':
+							output += date.getTime(); 
+							break;
+						case "'":
+							if (lookAhead("'"))
+								output += "'";
+							else
+								literal = true;
+							break;
+						default:
+							output += format.charAt(iFormat);
+					}
+			}
+		return output;
+	},
+
+	/* Extract all possible characters from the date format. */
+	_possibleChars: function (format) {
+		var chars = '';
+		var literal = false;
+		for (var iFormat = 0; iFormat < format.length; iFormat++)
+			if (literal)
+				if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+					literal = false;
+				else
+					chars += format.charAt(iFormat);
+			else
+				switch (format.charAt(iFormat)) {
+					case 'd': case 'm': case 'y': case '@':
+						chars += '0123456789'; 
+						break;
+					case 'D': case 'M':
+						return null; // Accept anything
+					case "'":
+						if (lookAhead("'"))
+							chars += "'";
+						else
+							literal = true;
+						break;
+					default:
+						chars += format.charAt(iFormat);
+				}
+		return chars;
+	},
+
+	/* Get a setting value, defaulting if necessary. */
+	_get: function(inst, name) {
+		return inst.settings[name] !== undefined ?
+			inst.settings[name] : this._defaults[name];
+	},
+
+	/* Parse existing date and initialise date picker. */
+	_setDateFromField: function(inst) {
+		var dateFormat = this._get(inst, 'dateFormat');
+		var dates = inst.input ? inst.input.val().split(this._get(inst, 'rangeSeparator')) : null; 
+		inst.endDay = inst.endMonth = inst.endYear = null;
+		var date = defaultDate = this._getDefaultDate(inst);
+		if (dates.length > 0) {
+			var settings = this._getFormatConfig(inst);
+			if (dates.length > 1) {
+				date = this.parseDate(dateFormat, dates[1], settings) || defaultDate;
+				inst.endDay = date.getDate();
+				inst.endMonth = date.getMonth();
+				inst.endYear = date.getFullYear();
+			}
+			try {
+				date = this.parseDate(dateFormat, dates[0], settings) || defaultDate;
+			} catch (e) {
+				this.log(e);
+				date = defaultDate;
+			}
+		}
+		inst.selectedDay = date.getDate();
+		inst.drawMonth = inst.selectedMonth = date.getMonth();
+		inst.drawYear = inst.selectedYear = date.getFullYear();
+		inst.currentDay = (dates[0] ? date.getDate() : 0);
+		inst.currentMonth = (dates[0] ? date.getMonth() : 0);
+		inst.currentYear = (dates[0] ? date.getFullYear() : 0);
+		this._adjustInstDate(inst);
+	},
+	
+	/* Retrieve the default date shown on opening. */
+	_getDefaultDate: function(inst) {
+		var date = this._determineDate(this._get(inst, 'defaultDate'), new Date());
+		var minDate = this._getMinMaxDate(inst, 'min', true);
+		var maxDate = this._getMinMaxDate(inst, 'max');
+		date = (minDate && date < minDate ? minDate : date);
+		date = (maxDate && date > maxDate ? maxDate : date);
+		return date;
+	},
+
+	/* A date may be specified as an exact value or a relative one. */
+	_determineDate: function(date, defaultDate) {
+		var offsetNumeric = function(offset) {
+			var date = new Date();
+			date.setUTCDate(date.getUTCDate() + offset);
+			return date;
+		};
+		var offsetString = function(offset, getDaysInMonth) {
+			var date = new Date();
+			var year = date.getFullYear();
+			var month = date.getMonth();
+			var day = date.getDate();
+			var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;
+			var matches = pattern.exec(offset);
+			while (matches) {
+				switch (matches[2] || 'd') {
+					case 'd' : case 'D' :
+						day += (matches[1] - 0); break;
+					case 'w' : case 'W' :
+						day += (matches[1] * 7); break;
+					case 'm' : case 'M' :
+						month += (matches[1] - 0); 
+						day = Math.min(day, getDaysInMonth(year, month));
+						break;
+					case 'y': case 'Y' :
+						year += (matches[1] - 0);
+						day = Math.min(day, getDaysInMonth(year, month));
+						break;
+				}
+				matches = pattern.exec(offset);
+			}
+			return new Date(year, month, day);
+		};
+		return (date == null ? defaultDate :
+			(typeof date == 'string' ? offsetString(date, this._getDaysInMonth) :
+			(typeof date == 'number' ? offsetNumeric(date) : date)));
+	},
+
+	/* Set the date(s) directly. */
+	_setDate: function(inst, date, endDate) {
+		var clear = !(date);
+		date = this._determineDate(date, new Date());
+		inst.selectedDay = inst.currentDay = date.getDate();
+		inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth();
+		inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear();
+		if (this._get(inst, 'rangeSelect')) {
+			if (endDate) {
+				endDate = this._determineDate(endDate, null);
+				inst.endDay = endDate.getDate();
+				inst.endMonth = endDate.getMonth();
+				inst.endYear = endDate.getFullYear();
+			} else {
+				inst.endDay = inst.currentDay;
+				inst.endMonth = inst.currentMonth;
+				inst.endYear = inst.currentYear;
+			}
+		}
+		this._adjustInstDate(inst);
+		if (inst.input)
+			inst.input.val(clear ? '' : this._formatDate(inst) +
+				(!this._get(inst, 'rangeSelect') ? '' : this._get(inst, 'rangeSeparator') +
+				this._formatDate(inst, inst.endDay, inst.endMonth, inst.endYear)));
+	},
+
+	/* Retrieve the date(s) directly. */
+	_getDate: function(inst) {
+		var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null :
+			new Date(inst.currentYear, inst.currentMonth, inst.currentDay));
+		if (this._get(inst, 'rangeSelect')) {
+			return [inst.rangeStart || startDate, (!inst.endYear ? null :
+				new Date(inst.endYear, inst.endMonth, inst.endDay))];
+		} else
+			return startDate;
+	},
+
+	/* Generate the HTML for the current state of the date picker. */
+	_generateDatepicker: function(inst) {
+		var today = new Date();
+		today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); // clear time
+		var showStatus = this._get(inst, 'showStatus');
+		var isRTL = this._get(inst, 'isRTL');
+		// build the date picker HTML
+		var clear = (this._get(inst, 'mandatory') ? '' :
+			'<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(\'#' + inst.id + '\');"' +
+			(showStatus ? this._addStatus(inst, this._get(inst, 'clearStatus') || '&#xa0;') : '') + '>' +
+			this._get(inst, 'clearText') + '</a></div>');
+		var controls = '<div class="ui-datepicker-control">' + (isRTL ? '' : clear) +
+			'<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"' +
+			(showStatus ? this._addStatus(inst, this._get(inst, 'closeStatus') || '&#xa0;') : '') + '>' +
+			this._get(inst, 'closeText') + '</a></div>' + (isRTL ? clear : '')  + '</div>';
+		var prompt = this._get(inst, 'prompt');
+		var closeAtTop = this._get(inst, 'closeAtTop');
+		var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext');
+		var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat');
+		var numMonths = this._getNumberOfMonths(inst);
+		var stepMonths = this._get(inst, 'stepMonths');
+		var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);
+		var currentDate = (!inst.currentDay ? new Date(9999, 9, 9) :
+			new Date(inst.currentYear, inst.currentMonth, inst.currentDay));
+		var minDate = this._getMinMaxDate(inst, 'min', true);
+		var maxDate = this._getMinMaxDate(inst, 'max');
+		var drawMonth = inst.drawMonth;
+		var drawYear = inst.drawYear;
+		if (maxDate) {
+			var maxDraw = new Date(maxDate.getFullYear(),
+				maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate());
+			maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
+			while (new Date(drawYear, drawMonth, 1) > maxDraw) {
+				drawMonth--;
+				if (drawMonth < 0) {
+					drawMonth = 11;
+					drawYear--;
+				}
+			}
+		}
+		// controls and links
+		var prevText = this._get(inst, 'prevText');
+		prevText = (!navigationAsDateFormat ? prevText : this.formatDate(
+			prevText, new Date(drawYear, drawMonth - stepMonths, 1), this._getFormatConfig(inst)));
+		var prev = '<div class="ui-datepicker-prev">' + (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? 
+			'<a onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', -' + stepMonths + ', \'M\');"' +
+			(showStatus ? this._addStatus(inst, this._get(inst, 'prevStatus') || '&#xa0;') : '') + '>' + prevText + '</a>' :
+			(hideIfNoPrevNext ? '' : '<label>' + prevText + '</label>')) + '</div>';
+		var nextText = this._get(inst, 'nextText');
+		nextText = (!navigationAsDateFormat ? nextText : this.formatDate(
+			nextText, new Date(drawYear, drawMonth + stepMonths, 1), this._getFormatConfig(inst)));
+		var next = '<div class="ui-datepicker-next">' + (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
+			'<a onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', +' + stepMonths + ', \'M\');"' +
+			(showStatus ? this._addStatus(inst, this._get(inst, 'nextStatus') || '&#xa0;') : '') + '>' + nextText + '</a>' :
+			(hideIfNoPrevNext ? '' : '<label>' + nextText + '</label>')) + '</div>';
+		var currentText = this._get(inst, 'currentText');
+		currentText = (!navigationAsDateFormat ? currentText: this.formatDate(
+			currentText, today, this._getFormatConfig(inst)));
+		var html = (prompt ? '<div class="' + this._promptClass + '">' + prompt + '</div>' : '') +
+			(closeAtTop && !inst.inline ? controls : '') +
+			'<div class="ui-datepicker-links">' + (isRTL ? next : prev) +
+			(this._isInRange(inst, (this._get(inst, 'gotoCurrent') && inst.currentDay ?
+			currentDate : today)) ? '<div class="ui-datepicker-current">' +
+			'<a onclick="jQuery.datepicker._gotoToday(\'#' + inst.id + '\');"' +
+			(showStatus ? this._addStatus(inst, this._get(inst, 'currentStatus') || '&#xa0;') : '') + '>' +
+			currentText + '</a></div>' : '') + (isRTL ? prev : next) + '</div>';
+		var firstDay = this._get(inst, 'firstDay');
+		var changeFirstDay = this._get(inst, 'changeFirstDay');
+		var dayNames = this._get(inst, 'dayNames');
+		var dayNamesShort = this._get(inst, 'dayNamesShort');
+		var dayNamesMin = this._get(inst, 'dayNamesMin');
+		var monthNames = this._get(inst, 'monthNames');
+		var beforeShowDay = this._get(inst, 'beforeShowDay');
+		var highlightWeek = this._get(inst, 'highlightWeek');
+		var showOtherMonths = this._get(inst, 'showOtherMonths');
+		var showWeeks = this._get(inst, 'showWeeks');
+		var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week;
+		var status = (showStatus ? this._get(inst, 'dayStatus') || '&#xa0;' : '');
+		var dateStatus = this._get(inst, 'statusForDate') || this.dateStatus;
+		var endDate = inst.endDay ? new Date(inst.endYear, inst.endMonth, inst.endDay) : currentDate;
+		for (var row = 0; row < numMonths[0]; row++)
+			for (var col = 0; col < numMonths[1]; col++) {
+				var selectedDate = new Date(drawYear, drawMonth, inst.selectedDay);
+				html += '<div class="ui-datepicker-one-month' + (col == 0 ? ' ui-datepicker-new-row' : '') + '">' +
+					this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
+					selectedDate, row > 0 || col > 0, showStatus, monthNames) + // draw month headers
+					'<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead>' + 
+					'<tr class="ui-datepicker-title-row">' +
+					(showWeeks ? '<td>' + this._get(inst, 'weekHeader') + '</td>' : '');
+				for (var dow = 0; dow < 7; dow++) { // days of the week
+					var day = (dow + firstDay) % 7;
+					var dayStatus = (status.indexOf('DD') > -1 ? status.replace(/DD/, dayNames[day]) :
+						status.replace(/D/, dayNamesShort[day]));
+					html += '<td' + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end-cell"' : '') + '>' +
+						(!changeFirstDay ? '<span' :
+						'<a onclick="jQuery.datepicker._changeFirstDay(\'#' + inst.id + '\', ' + day + ');"') + 
+						(showStatus ? this._addStatus(inst, dayStatus) : '') + ' title="' + dayNames[day] + '">' +
+						dayNamesMin[day] + (changeFirstDay ? '</a>' : '</span>') + '</td>';
+				}
+				html += '</tr></thead><tbody>';
+				var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
+				if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth)
+					inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
+				var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
+				var printDate = new Date(drawYear, drawMonth, 1 - leadDays);
+				var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
+				for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows
+					html += '<tr class="ui-datepicker-days-row">' +
+						(showWeeks ? '<td class="ui-datepicker-week-col">' + calculateWeek(printDate) + '</td>' : '');
+					for (var dow = 0; dow < 7; dow++) { // create date picker days
+						var daySettings = (beforeShowDay ?
+							beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']);
+						var otherMonth = (printDate.getMonth() != drawMonth);
+						var unselectable = otherMonth || !daySettings[0] ||
+							(minDate && printDate < minDate) || (maxDate && printDate > maxDate);
+						html += '<td class="ui-datepicker-days-cell' +
+							((dow + firstDay + 6) % 7 >= 5 ? ' ui-datepicker-week-end-cell' : '') + // highlight weekends
+							(otherMonth ? ' ui-datepicker-otherMonth' : '') + // highlight days from other months
+							(printDate.getTime() == selectedDate.getTime() && drawMonth == inst.selectedMonth ?
+							' ui-datepicker-days-cell-over' : '') + // highlight selected day
+							(unselectable ? ' ' + this._unselectableClass : '') +  // highlight unselectable days
+							(otherMonth && !showOtherMonths ? '' : ' ' + daySettings[1] + // highlight custom dates
+							(printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ?  // in current range
+							' ' + this._currentClass : '') + // highlight selected day
+							(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
+							((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
+							(unselectable ? (highlightWeek ? ' onmouseover="jQuery(this).parent().addClass(\'ui-datepicker-week-over\');"' + // highlight selection week
+							' onmouseout="jQuery(this).parent().removeClass(\'ui-datepicker-week-over\');"' : '') : // unhighlight selection week
+							' onmouseover="jQuery(this).addClass(\'ui-datepicker-days-cell-over\')' + // highlight selection
+							(highlightWeek ? '.parent().addClass(\'ui-datepicker-week-over\')' : '') + ';' + // highlight selection week
+							(!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
+							inst.id + '\').html(\'' + (dateStatus.apply((inst.input ? inst.input[0] : null),
+							[printDate, inst]) || '&#xa0;') +'\');') + '"' +
+							' onmouseout="jQuery(this).removeClass(\'ui-datepicker-days-cell-over\')' + // unhighlight selection
+							(highlightWeek ? '.parent().removeClass(\'ui-datepicker-week-over\')' : '') + ';' + // unhighlight selection week
+							(!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
+							inst.id + '\').html(\'&#xa0;\');') + '" onclick="jQuery.datepicker._selectDay(\'#' +
+							inst.id + '\',' + drawMonth + ',' + drawYear + ', this);"') + '>' + // actions
+							(otherMonth ? (showOtherMonths ? printDate.getDate() : '&#xa0;') : // display for other months
+							(unselectable ? printDate.getDate() : '<a>' + printDate.getDate() + '</a>')) + '</td>'; // display for this month
+						printDate.setUTCDate(printDate.getUTCDate() + 1);
+					}
+					html += '</tr>';
+				}
+				drawMonth++;
+				if (drawMonth > 11) {
+					drawMonth = 0;
+					drawYear++;
+				}
+				html += '</tbody></table></div>';
+			}
+		html += (showStatus ? '<div style="clear: both;"></div><div id="ui-datepicker-status-' + inst.id + 
+			'" class="ui-datepicker-status">' + (this._get(inst, 'initStatus') || '&#xa0;') + '</div>' : '') +
+			(!closeAtTop && !inst.inline ? controls : '') +
+			'<div style="clear: both;"></div>' + 
+			($.browser.msie && parseInt($.browser.version) < 7 && !inst.inline ? 
+			'<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>' : '');
+		return html;
+	},
+	
+	/* Generate the month and year header. */
+	_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
+			selectedDate, secondary, showStatus, monthNames) {
+		minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate);
+		var html = '<div class="ui-datepicker-header">';
+		// month selection
+		if (secondary || !this._get(inst, 'changeMonth'))
+			html += monthNames[drawMonth] + '&#xa0;';
+		else {
+			var inMinYear = (minDate && minDate.getFullYear() == drawYear);
+			var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);
+			html += '<select class="ui-datepicker-new-month" ' +
+				'onchange="jQuery.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'M\');" ' +
+				'onclick="jQuery.datepicker._clickMonthYear(\'#' + inst.id + '\');"' +
+				(showStatus ? this._addStatus(inst, this._get(inst, 'monthStatus') || '&#xa0;') : '') + '>';
+			for (var month = 0; month < 12; month++) {
+				if ((!inMinYear || month >= minDate.getMonth()) &&
+						(!inMaxYear || month <= maxDate.getMonth()))
+					html += '<option value="' + month + '"' +
+						(month == drawMonth ? ' selected="selected"' : '') +
+						'>' + monthNames[month] + '</option>';
+			}
+			html += '</select>';
+		}
+		// year selection
+		if (secondary || !this._get(inst, 'changeYear'))
+			html += drawYear;
+		else {
+			// determine range of years to display
+			var years = this._get(inst, 'yearRange').split(':');
+			var year = 0;
+			var endYear = 0;
+			if (years.length != 2) {
+				year = drawYear - 10;
+				endYear = drawYear + 10;
+			} else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') {
+				year = endYear = new Date().getFullYear();
+				year += parseInt(years[0], 10);
+				endYear += parseInt(years[1], 10);
+			} else {
+				year = parseInt(years[0], 10);
+				endYear = parseInt(years[1], 10);
+			}
+			year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
+			endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
+			html += '<select class="ui-datepicker-new-year" ' +
+				'onchange="jQuery.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'Y\');" ' +
+				'onclick="jQuery.datepicker._clickMonthYear(\'#' + inst.id + '\');"' +
+				(showStatus ? this._addStatus(inst, this._get(inst, 'yearStatus') || '&#xa0;') : '') + '>';
+			for (; year <= endYear; year++) {
+				html += '<option value="' + year + '"' +
+					(year == drawYear ? ' selected="selected"' : '') +
+					'>' + year + '</option>';
+			}
+			html += '</select>';
+		}
+		html += '</div>'; // Close datepicker_header
+		return html;
+	},
+
+	/* Provide code to set and clear the status panel. */
+	_addStatus: function(inst, text) {
+		return ' onmouseover="jQuery(\'#ui-datepicker-status-' + inst.id + '\').html(\'' + text + '\');" ' +
+			'onmouseout="jQuery(\'#ui-datepicker-status-' + inst.id + '\').html(\'&#xa0;\');"';
+	},
+
+	/* Adjust one of the date sub-fields. */
+	_adjustInstDate: function(inst, offset, period) {
+		var year = inst.drawYear + (period == 'Y' ? offset : 0);
+		var month = inst.drawMonth + (period == 'M' ? offset : 0);
+		var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) +
+			(period == 'D' ? offset : 0);
+		var date = new Date(year, month, day);
+		// ensure it is within the bounds set
+		var minDate = this._getMinMaxDate(inst, 'min', true);
+		var maxDate = this._getMinMaxDate(inst, 'max');
+		date = (minDate && date < minDate ? minDate : date);
+		date = (maxDate && date > maxDate ? maxDate : date);
+		inst.selectedDay = date.getDate();
+		inst.drawMonth = inst.selectedMonth = date.getMonth();
+		inst.drawYear = inst.selectedYear = date.getFullYear();
+		if (period == 'M' || period == 'Y')
+			this._notifyChange(inst);
+	},
+
+	/* Notify change of month/year. */
+	_notifyChange: function(inst) {
+		var onChange = this._get(inst, 'onChangeMonthYear');
+		if (onChange)
+			onChange.apply((inst.input ? inst.input[0] : null),
+				[new Date(inst.selectedYear, inst.selectedMonth, 1), inst]);
+	},
+	
+	/* Determine the number of months to show. */
+	_getNumberOfMonths: function(inst) {
+		var numMonths = this._get(inst, 'numberOfMonths');
+		return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths));
+	},
+
+	/* Determine the current maximum date - ensure no time components are set - may be overridden for a range. */
+	_getMinMaxDate: function(inst, minMax, checkRange) {
+		var date = this._determineDate(this._get(inst, minMax + 'Date'), null);
+		if (date) {
+			date.setHours(0);
+			date.setMinutes(0);
+			date.setSeconds(0);
+			date.setMilliseconds(0);
+		}
+		return (!checkRange || !inst.rangeStart ? date :
+			(!date || inst.rangeStart > date ? inst.rangeStart : date));
+	},
+
+	/* Find the number of days in a given month. */
+	_getDaysInMonth: function(year, month) {
+		return 32 - new Date(year, month, 32).getDate();
+	},
+
+	/* Find the day of the week of the first of a month. */
+	_getFirstDayOfMonth: function(year, month) {
+		return new Date(year, month, 1).getDay();
+	},
+
+	/* Determines if we should allow a "next/prev" month display change. */
+	_canAdjustMonth: function(inst, offset, curYear, curMonth) {
+		var numMonths = this._getNumberOfMonths(inst);
+		var date = new Date(curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1);
+		if (offset < 0)
+			date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
+		return this._isInRange(inst, date);
+	},
+
+	/* Is the given date in the accepted range? */
+	_isInRange: function(inst, date) {
+		// during range selection, use minimum of selected date and range start
+		var newMinDate = (!inst.rangeStart ? null :
+			new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay));
+		newMinDate = (newMinDate && inst.rangeStart < newMinDate ? inst.rangeStart : newMinDate);
+		var minDate = newMinDate || this._getMinMaxDate(inst, 'min');
+		var maxDate = this._getMinMaxDate(inst, 'max');
+		return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate));
+	},
+	
+	/* Provide the configuration settings for formatting/parsing. */
+	_getFormatConfig: function(inst) {
+		var shortYearCutoff = this._get(inst, 'shortYearCutoff');
+		shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
+			new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
+		return {shortYearCutoff: shortYearCutoff,
+			dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'),
+			monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')};
+	},
+
+	/* Format the given date for display. */
+	_formatDate: function(inst, day, month, year) {
+		if (!day) {
+			inst.currentDay = inst.selectedDay;
+			inst.currentMonth = inst.selectedMonth;
+			inst.currentYear = inst.selectedYear;
+		}
+		var date = (day ? (typeof day == 'object' ? day : new Date(year, month, day)) :
+			new Date(inst.currentYear, inst.currentMonth, inst.currentDay));
+		return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst));
+	}
+});
+
+/* jQuery extend now ignores nulls! */
+function extendRemove(target, props) {
+	$.extend(target, props);
+	for (var name in props)
+		if (props[name] == null || props[name] == undefined)
+			target[name] = props[name];
+	return target;
+};
+
+/* Determine whether an object is an array. */
+function isArray(a) {
+	return (a && (($.browser.safari && typeof a == 'object' && a.length) ||
+		(a.constructor && a.constructor.toString().match(/\Array\(\)/))));
+};
+
+/* Invoke the datepicker functionality.
+   @param  options  string - a command, optionally followed by additional parameters or
+                    Object - settings for attaching new datepicker functionality
+   @return  jQuery object */
+$.fn.datepicker = function(options){
+	var otherArgs = Array.prototype.slice.call(arguments, 1);
+	if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate'))
+		return $.datepicker['_' + options + 'Datepicker'].
+			apply($.datepicker, [this[0]].concat(otherArgs));
+	return this.each(function() {
+		typeof options == 'string' ?
+			$.datepicker['_' + options + 'Datepicker'].
+				apply($.datepicker, [this].concat(otherArgs)) :
+			$.datepicker._attachDatepicker(this, options);
+	});
+};
+
+$.datepicker = new Datepicker(); // singleton instance
+	
+/* Initialise the date picker. */
+$(document).ready(function() {
+	$(document.body).append($.datepicker.dpDiv).
+		mousedown($.datepicker._checkExternalClick);
+});
+
+})(jQuery);
+/*
+ * jQuery UI Dialog
+ *
+ * Copyright (c) 2008 Richard D. Worth (rdworth.org)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Dialog
+ *
+ * Depends:
+ *	ui.core.js
+ *	ui.draggable.js
+ *	ui.resizable.js
+ */
+(function($) {
+
+var setDataSwitch = {
+	dragStart: "start.draggable",
+	drag: "drag.draggable",
+	dragStop: "stop.draggable",
+	maxHeight: "maxHeight.resizable",
+	minHeight: "minHeight.resizable",
+	maxWidth: "maxWidth.resizable",
+	minWidth: "minWidth.resizable",
+	resizeStart: "start.resizable",
+	resize: "drag.resizable",
+	resizeStop: "stop.resizable"
+};
+
+$.widget("ui.dialog", {
+	init: function() {
+		var self = this,
+			options = this.options,
+			resizeHandles = typeof options.resizable == 'string'
+				? options.resizable
+				: 'n,e,s,w,se,sw,ne,nw',
+			
+			uiDialogContent = this.element
+				.addClass('ui-dialog-content')
+				.wrap('<div/>')
+				.wrap('<div/>'),
+			
+			uiDialogContainer = (this.uiDialogContainer = uiDialogContent.parent()
+				.addClass('ui-dialog-container')
+				.css({position: 'relative', width: '100%', height: '100%'})),
+			
+			title = options.title || uiDialogContent.attr('title') || '',
+			uiDialogTitlebar = (this.uiDialogTitlebar =
+				$('<div class="ui-dialog-titlebar"/>'))
+				.append('<span class="ui-dialog-title">' + title + '</span>')
+				.append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>')
+				.prependTo(uiDialogContainer),
+			
+			uiDialog = (this.uiDialog = uiDialogContainer.parent())
+				.appendTo(document.body)
+				.hide()
+				.addClass('ui-dialog')
+				.addClass(options.dialogClass)
+				// add content classes to dialog
+				// to inherit theme at top level of element
+				.addClass(uiDialogContent.attr('className'))
+					.removeClass('ui-dialog-content')
+				.css({
+					position: 'absolute',
+					width: options.width,
+					height: options.height,
+					overflow: 'hidden',
+					zIndex: options.zIndex
+				})
+				// setting tabIndex makes the div focusable
+				// setting outline to 0 prevents a border on focus in Mozilla
+				.attr('tabIndex', -1).css('outline', 0).keydown(function(ev) {
+					if (options.closeOnEscape) {
+						var ESC = 27;
+						(ev.keyCode && ev.keyCode == ESC && self.close());
+					}
+				})
+				.mousedown(function() {
+					self.moveToTop();
+				}),
+			
+			uiDialogButtonPane = (this.uiDialogButtonPane = $('<div/>'))
+				.addClass('ui-dialog-buttonpane').css({ position: 'absolute', bottom: 0 })
+				.appendTo(uiDialog);
+		
+		this.uiDialogTitlebarClose = $('.ui-dialog-titlebar-close', uiDialogTitlebar)
+			.hover(
+				function() {
+					$(this).addClass('ui-dialog-titlebar-close-hover');
+				},
+				function() {
+					$(this).removeClass('ui-dialog-titlebar-close-hover');
+				}
+			)
+			.mousedown(function(ev) {
+				ev.stopPropagation();
+			})
+			.click(function() {
+				self.close();
+				return false;
+			});
+
+		this.uiDialogTitlebar.find("*").add(this.uiDialogTitlebar).each(function() {
+			$.ui.disableSelection(this);
+		});
+
+		if ($.fn.draggable) {
+			uiDialog.draggable({
+				cancel: '.ui-dialog-content',
+				helper: options.dragHelper,
+				handle: '.ui-dialog-titlebar',
+				start: function(e, ui) {
+					self.moveToTop();
+					(options.dragStart && options.dragStart.apply(self.element[0], arguments));
+				},
+				drag: function(e, ui) {
+					(options.drag && options.drag.apply(self.element[0], arguments));
+				},
+				stop: function(e, ui) {
+					(options.dragStop && options.dragStop.apply(self.element[0], arguments));
+					$.ui.dialog.overlay.resize();
+				}
+			});
+			(options.draggable || uiDialog.draggable('disable'));
+		}
+		
+		if ($.fn.resizable) {
+			uiDialog.resizable({
+				cancel: '.ui-dialog-content',
+				helper: options.resizeHelper,
+				maxWidth: options.maxWidth,
+				maxHeight: options.maxHeight,
+				minWidth: options.minWidth,
+				minHeight: options.minHeight,
+				start: function() {
+					(options.resizeStart && options.resizeStart.apply(self.element[0], arguments));
+				},
+				resize: function(e, ui) {
+					(options.autoResize && self.size.apply(self));
+					(options.resize && options.resize.apply(self.element[0], arguments));
+				},
+				handles: resizeHandles,
+				stop: function(e, ui) {
+					(options.autoResize && self.size.apply(self));
+					(options.resizeStop && options.resizeStop.apply(self.element[0], arguments));
+					$.ui.dialog.overlay.resize();
+				}
+			});
+			(options.resizable || uiDialog.resizable('disable'));
+		}
+		
+		this.createButtons(options.buttons);
+		this.isOpen = false;
+		
+		(options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
+		(options.autoOpen && this.open());
+	},
+	
+	setData: function(key, value){
+		(setDataSwitch[key] && this.uiDialog.data(setDataSwitch[key], value));
+		switch (key) {
+			case "buttons":
+				this.createButtons(value);
+				break;
+			case "draggable":
+				this.uiDialog.draggable(value ? 'enable' : 'disable');
+				break;
+			case "height":
+				this.uiDialog.height(value);
+				break;
+			case "position":
+				this.position(value);
+				break;
+			case "resizable":
+				(typeof value == 'string' && this.uiDialog.data('handles.resizable', value));
+				this.uiDialog.resizable(value ? 'enable' : 'disable');
+				break;
+			case "title":
+				$(".ui-dialog-title", this.uiDialogTitlebar).text(value);
+				break;
+			case "width":
+				this.uiDialog.width(value);
+				break;
+		}
+		
+		$.widget.prototype.setData.apply(this, arguments);
+	},
+	
+	position: function(pos) {
+		var wnd = $(window), doc = $(document),
+			pTop = doc.scrollTop(), pLeft = doc.scrollLeft(),
+			minTop = pTop;
+		
+		if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) {
+			pos = [
+				pos == 'right' || pos == 'left' ? pos : 'center',
+				pos == 'top' || pos == 'bottom' ? pos : 'middle'
+			];
+		}
+		if (pos.constructor != Array) {
+			pos = ['center', 'middle'];
+		}
+		if (pos[0].constructor == Number) {
+			pLeft += pos[0];
+		} else {
+			switch (pos[0]) {
+				case 'left':
+					pLeft += 0;
+					break;
+				case 'right':
+					pLeft += wnd.width() - this.uiDialog.width();
+					break;
+				default:
+				case 'center':
+					pLeft += (wnd.width() - this.uiDialog.width()) / 2;
+			}
+		}
+		if (pos[1].constructor == Number) {
+			pTop += pos[1];
+		} else {
+			switch (pos[1]) {
+				case 'top':
+					pTop += 0;
+					break;
+				case 'bottom':
+					pTop += wnd.height() - this.uiDialog.height();
+					break;
+				default:
+				case 'middle':
+					pTop += (wnd.height() - this.uiDialog.height()) / 2;
+			}
+		}
+		
+		// prevent the dialog from being too high (make sure the titlebar
+		// is accessible)
+		pTop = Math.max(pTop, minTop);
+		this.uiDialog.css({top: pTop, left: pLeft});
+	},
+
+	size: function() {
+		var container = this.uiDialogContainer,
+			titlebar = this.uiDialogTitlebar,
+			content = this.element,
+			tbMargin = parseInt(content.css('margin-top'),10) + parseInt(content.css('margin-bottom'),10),
+			lrMargin = parseInt(content.css('margin-left'),10) + parseInt(content.css('margin-right'),10);
+		content.height(container.height() - titlebar.outerHeight() - tbMargin);
+		content.width(container.width() - lrMargin);
+	},
+	
+	open: function() {
+		if (this.isOpen) { return; }
+		
+		this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
+		(this.uiDialog.next().length > 0) && this.uiDialog.appendTo('body');
+		this.position(this.options.position);
+		this.uiDialog.show(this.options.show);
+		this.options.autoResize && this.size();
+		this.moveToTop(true);
+		
+		// CALLBACK: open
+		var openEV = null;
+		var openUI = {
+			options: this.options
+		};
+		this.uiDialogTitlebarClose.focus();
+		this.element.triggerHandler("dialogopen", [openEV, openUI], this.options.open);
+		
+		this.isOpen = true;
+	},
+	
+	// the force parameter allows us to move modal dialogs to their correct
+	// position on open
+	moveToTop: function(force) {
+		if ((this.options.modal && !force)
+			|| (!this.options.stack && !this.options.modal)) { return this.element.triggerHandler("dialogfocus", [null, { options: this.options }], this.options.focus); }
+		
+		var maxZ = this.options.zIndex, options = this.options;
+		$('.ui-dialog:visible').each(function() {
+			maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10) || options.zIndex);
+		});
+		(this.overlay && this.overlay.$el.css('z-index', ++maxZ));
+		this.uiDialog.css('z-index', ++maxZ);
+		
+		this.element.triggerHandler("dialogfocus", [null, { options: this.options }], this.options.focus);
+	},
+	
+	close: function() {
+		(this.overlay && this.overlay.destroy());
+		this.uiDialog.hide(this.options.hide);
+
+		// CALLBACK: close
+		var closeEV = null;
+		var closeUI = {
+			options: this.options
+		};
+		this.element.triggerHandler("dialogclose", [closeEV, closeUI], this.options.close);
+		$.ui.dialog.overlay.resize();
+		
+		this.isOpen = false;
+	},
+	
+	destroy: function() {
+		(this.overlay && this.overlay.destroy());
+		this.uiDialog.hide();
+		this.element
+			.unbind('.dialog')
+			.removeData('dialog')
+			.removeClass('ui-dialog-content')
+			.hide().appendTo('body');
+		this.uiDialog.remove();
+	},
+	
+	createButtons: function(buttons) {
+		var self = this,
+			hasButtons = false,
+			uiDialogButtonPane = this.uiDialogButtonPane;
+		
+		// remove any existing buttons
+		uiDialogButtonPane.empty().hide();
+		
+		$.each(buttons, function() { return !(hasButtons = true); });
+		if (hasButtons) {
+			uiDialogButtonPane.show();
+			$.each(buttons, function(name, fn) {
+				$('<button/>')
+					.text(name)
+					.click(function() { fn.apply(self.element[0], arguments); })
+					.appendTo(uiDialogButtonPane);
+			});
+		}
+	}
+});
+
+$.extend($.ui.dialog, {
+	defaults: {
+		autoOpen: true,
+		autoResize: true,
+		bgiframe: false,
+		buttons: {},
+		closeOnEscape: true,
+		draggable: true,
+		height: 200,
+		minHeight: 100,
+		minWidth: 150,
+		modal: false,
+		overlay: {},
+		position: 'center',
+		resizable: true,
+		stack: true,
+		width: 300,
+		zIndex: 1000
+	},
+	
+	overlay: function(dialog) {
+		this.$el = $.ui.dialog.overlay.create(dialog);
+	}
+});
+
+$.extend($.ui.dialog.overlay, {
+	instances: [],
+	events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),
+		function(e) { return e + '.dialog-overlay'; }).join(' '),
+	create: function(dialog) {
+		if (this.instances.length === 0) {
+			// prevent use of anchors and inputs
+			// we use a setTimeout in case the overlay is created from an
+			// event that we're going to be cancelling (see #2804)
+			setTimeout(function() {
+				$('a, :input').bind($.ui.dialog.overlay.events, function() {
+					// allow use of the element if inside a dialog and
+					// - there are no modal dialogs
+					// - there are modal dialogs, but we are in front of the topmost modal
+					var allow = false;
+					var $dialog = $(this).parents('.ui-dialog');
+					if ($dialog.length) {
+						var $overlays = $('.ui-dialog-overlay');
+						if ($overlays.length) {
+							var maxZ = parseInt($overlays.css('z-index'), 10);
+							$overlays.each(function() {
+								maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10));
+							});
+							allow = parseInt($dialog.css('z-index'), 10) > maxZ;
+						} else {
+							allow = true;
+						}
+					}
+					return allow;
+				});
+			}, 1);
+			
+			// allow closing by pressing the escape key
+			$(document).bind('keydown.dialog-overlay', function(e) {
+				var ESC = 27;
+				(e.keyCode && e.keyCode == ESC && dialog.close()); 
+			});
+			
+			// handle window resize
+			$(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize);
+		}
+		
+		var $el = $('<div/>').appendTo(document.body)
+			.addClass('ui-dialog-overlay').css($.extend({
+				borderWidth: 0, margin: 0, padding: 0,
+				position: 'absolute', top: 0, left: 0,
+				width: this.width(),
+				height: this.height()
+			}, dialog.options.overlay));
+		
+		(dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe());
+		
+		this.instances.push($el);
+		return $el;
+	},
+	
+	destroy: function($el) {
+		this.instances.splice($.inArray(this.instances, $el), 1);
+		
+		if (this.instances.length === 0) {
+			$('a, :input').add([document, window]).unbind('.dialog-overlay');
+		}
+		
+		$el.remove();
+	},
+	
+	height: function() {
+		if ($.browser.msie && $.browser.version < 7) {
+			var scrollHeight = Math.max(
+				document.documentElement.scrollHeight,
+				document.body.scrollHeight
+			);
+			var offsetHeight = Math.max(
+				document.documentElement.offsetHeight,
+				document.body.offsetHeight
+			);
+			
+			if (scrollHeight < offsetHeight) {
+				return $(window).height() + 'px';
+			} else {
+				return scrollHeight + 'px';
+			}
+		} else {
+			return $(document).height() + 'px';
+		}
+	},
+	
+	width: function() {
+		if ($.browser.msie && $.browser.version < 7) {
+			var scrollWidth = Math.max(
+				document.documentElement.scrollWidth,
+				document.body.scrollWidth
+			);
+			var offsetWidth = Math.max(
+				document.documentElement.offsetWidth,
+				document.body.offsetWidth
+			);
+			
+			if (scrollWidth < offsetWidth) {
+				return $(window).width() + 'px';
+			} else {
+				return scrollWidth + 'px';
+			}
+		} else {
+			return $(document).width() + 'px';
+		}
+	},
+	
+	resize: function() {
+		/* If the dialog is draggable and the user drags it past the
+		 * right edge of the window, the document becomes wider so we
+		 * need to stretch the overlay. If the user then drags the
+		 * dialog back to the left, the document will become narrower,
+		 * so we need to shrink the overlay to the appropriate size.
+		 * This is handled by shrinking the overlay before setting it
+		 * to the full document size.
+		 */
+		var $overlays = $([]);
+		$.each($.ui.dialog.overlay.instances, function() {
+			$overlays = $overlays.add(this);
+		});
+		
+		$overlays.css({
+			width: 0,
+			height: 0
+		}).css({
+			width: $.ui.dialog.overlay.width(),
+			height: $.ui.dialog.overlay.height()
+		});
+	}
+});
+
+$.extend($.ui.dialog.overlay.prototype, {
+	destroy: function() {
+		$.ui.dialog.overlay.destroy(this.$el);
+	}
+});
+
+})(jQuery);
+/*
+ * jQuery UI Slider
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ * 
+ * http://docs.jquery.com/UI/Slider
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($) {
+
+$.fn.unwrap = $.fn.unwrap || function(expr) {
+  return this.each(function(){
+     $(this).parents(expr).eq(0).after(this).remove();
+  });
+};
+
+$.widget("ui.slider", {
+	plugins: {},
+	ui: function(e) {
+		return {
+			options: this.options,
+			handle: this.currentHandle,
+			value: this.options.axis != "both" || !this.options.axis ? Math.round(this.value(null,this.options.axis == "vertical" ? "y" : "x")) : {
+				x: Math.round(this.value(null,"x")),
+				y: Math.round(this.value(null,"y"))
+			},
+			range: this.getRange()
+		};
+	},
+	propagate: function(n,e) {
+		$.ui.plugin.call(this, n, [e, this.ui()]);
+		this.element.triggerHandler(n == "slide" ? n : "slide"+n, [e, this.ui()], this.options[n]);
+	},
+	destroy: function() {
+		
+		this.element
+			.removeClass("ui-slider ui-slider-disabled")
+			.removeData("slider")
+			.unbind(".slider");
+		
+		if(this.handle && this.handle.length) {
+			this.handle
+				.unwrap("a");
+			this.handle.each(function() {
+				$(this).data("mouse").mouseDestroy();
+			});
+		}
+		
+		this.generated && this.generated.remove();
+		
+	},
+	setData: function(key, value) {
+		$.widget.prototype.setData.apply(this, arguments);
+		if (/min|max|steps/.test(key)) {
+			this.initBoundaries();
+		}
+		
+		if(key == "range") {
+			value ? this.handle.length == 2 && this.createRange() : this.removeRange();
+		}
+		
+	},
+
+	init: function() {
+		
+		var self = this;
+		this.element.addClass("ui-slider");
+		this.initBoundaries();
+		
+		// Initialize mouse and key events for interaction
+		this.handle = $(this.options.handle, this.element);
+		if (!this.handle.length) {
+			self.handle = self.generated = $(self.options.handles || [0]).map(function() {
+				var handle = $("<div/>").addClass("ui-slider-handle").appendTo(self.element);
+				if (this.id)
+					handle.attr("id", this.id);
+				return handle[0];
+			});
+		}
+		
+		
+		var handleclass = function(el) {
+			this.element = $(el);
+			this.element.data("mouse", this);
+			this.options = self.options;
+			
+			this.element.bind("mousedown", function() {
+				if(self.currentHandle) this.blur(self.currentHandle);
+				self.focus(this,1);
+			});
+			
+			this.mouseInit();
+		};
+		
+		$.extend(handleclass.prototype, $.ui.mouse, {
+			mouseStart: function(e) { return self.start.call(self, e, this.element[0]); },
+			mouseStop: function(e) { return self.stop.call(self, e, this.element[0]); },
+			mouseDrag: function(e) { return self.drag.call(self, e, this.element[0]); },
+			mouseCapture: function() { return true; },
+			trigger: function(e) { this.mouseDown(e); }
+		});
+		
+		
+		$(this.handle)
+			.each(function() {
+				new handleclass(this);
+			})
+			.wrap('<a href="javascript:void(0)" style="outline:none;border:none;"></a>')
+			.parent()
+				.bind('focus', function(e) { self.focus(this.firstChild); })
+				.bind('blur', function(e) { self.blur(this.firstChild); })
+				.bind('keydown', function(e) { if(!self.options.noKeyboard) self.keydown(e.keyCode, this.firstChild); })
+		;
+		
+		// Bind the click to the slider itself
+		this.element.bind('mousedown.slider', function(e) {
+			self.click.apply(self, [e]);
+			self.currentHandle.data("mouse").trigger(e);
+			self.firstValue = self.firstValue + 1; //This is for always triggering the change event
+		});
+		
+		// Move the first handle to the startValue
+		$.each(this.options.handles || [], function(index, handle) {
+			self.moveTo(handle.start, index, true);
+		});
+		if (!isNaN(this.options.startValue))
+			this.moveTo(this.options.startValue, 0, true);
+
+		this.previousHandle = $(this.handle[0]); //set the previous handle to the first to allow clicking before selecting the handle
+		if(this.handle.length == 2 && this.options.range) this.createRange();
+	},
+	initBoundaries: function() {
+		
+		var element = this.element[0], o = this.options;
+		this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };			
+		
+		$.extend(o, {
+			axis: o.axis || (element.offsetWidth < element.offsetHeight ? 'vertical' : 'horizontal'),
+			max: !isNaN(parseInt(o.max,10)) ? { x: parseInt(o.max, 10), y: parseInt(o.max, 10) } : ({ x: o.max && o.max.x || 100, y: o.max && o.max.y || 100 }),
+			min: !isNaN(parseInt(o.min,10)) ? { x: parseInt(o.min, 10), y: parseInt(o.min, 10) } : ({ x: o.min && o.min.x || 0, y: o.min && o.min.y || 0 })
+		});
+		//Prepare the real maxValue
+		o.realMax = {
+			x: o.max.x - o.min.x,
+			y: o.max.y - o.min.y
+		};
+		//Calculate stepping based on steps
+		o.stepping = {
+			x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps ? o.realMax.x/(o.steps.x || parseInt(o.steps, 10) || o.realMax.x) : 0),
+			y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps ? o.realMax.y/(o.steps.y || parseInt(o.steps, 10) || o.realMax.y) : 0)
+		};
+	},
+
+	
+	keydown: function(keyCode, handle) {
+		if(/(37|38|39|40)/.test(keyCode)) {
+			this.moveTo({
+				x: /(37|39)/.test(keyCode) ? (keyCode == 37 ? '-' : '+') + '=' + this.oneStep("x") : 0,
+				y: /(38|40)/.test(keyCode) ? (keyCode == 38 ? '-' : '+') + '=' + this.oneStep("y") : 0
+			}, handle);
+		}
+	},
+	focus: function(handle,hard) {
+		this.currentHandle = $(handle).addClass('ui-slider-handle-active');
+		if (hard)
+			this.currentHandle.parent()[0].focus();
+	},
+	blur: function(handle) {
+		$(handle).removeClass('ui-slider-handle-active');
+		if(this.currentHandle && this.currentHandle[0] == handle) { this.previousHandle = this.currentHandle; this.currentHandle = null; };
+	},
+	click: function(e) {
+		// This method is only used if:
+		// - The user didn't click a handle
+		// - The Slider is not disabled
+		// - There is a current, or previous selected handle (otherwise we wouldn't know which one to move)
+		
+		var pointer = [e.pageX,e.pageY];
+		
+		var clickedHandle = false;
+		this.handle.each(function() {
+			if(this == e.target)
+				clickedHandle = true;
+		});
+		if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle))
+			return;
+
+		// If a previous handle was focussed, focus it again
+		if (!this.currentHandle && this.previousHandle)
+			this.focus(this.previousHandle, true);
+		
+		// propagate only for distance > 0, otherwise propagation is done my drag
+		this.offset = this.element.offset();
+
+		this.moveTo({
+			y: this.convertValue(e.pageY - this.offset.top - this.currentHandle[0].offsetHeight/2, "y"),
+			x: this.convertValue(e.pageX - this.offset.left - this.currentHandle[0].offsetWidth/2, "x")
+		}, null, !this.options.distance);
+	},
+	
+
+
+	createRange: function() {
+		if(this.rangeElement) return;
+		this.rangeElement = $('<div></div>')
+			.addClass('ui-slider-range')
+			.css({ position: 'absolute' })
+			.appendTo(this.element);
+		this.updateRange();
+	},
+	removeRange: function() {
+		this.rangeElement.remove();
+		this.rangeElement = null;
+	},
+	updateRange: function() {
+			var prop = this.options.axis == "vertical" ? "top" : "left";
+			var size = this.options.axis == "vertical" ? "height" : "width";
+			this.rangeElement.css(prop, (parseInt($(this.handle[0]).css(prop),10) || 0) + this.handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2);
+			this.rangeElement.css(size, (parseInt($(this.handle[1]).css(prop),10) || 0) - (parseInt($(this.handle[0]).css(prop),10) || 0));
+	},
+	getRange: function() {
+		return this.rangeElement ? this.convertValue(parseInt(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width"),10), this.options.axis == "vertical" ? "y" : "x") : null;
+	},
+
+	handleIndex: function() {
+		return this.handle.index(this.currentHandle[0]);
+	},
+	value: function(handle, axis) {
+		if(this.handle.length == 1) this.currentHandle = this.handle;
+		if(!axis) axis = this.options.axis == "vertical" ? "y" : "x";
+
+		var curHandle = $(handle != undefined && handle !== null ? this.handle[handle] || handle : this.currentHandle);
+		
+		if(curHandle.data("mouse").sliderValue) {
+			return parseInt(curHandle.data("mouse").sliderValue[axis],10);
+		} else {
+			return parseInt(((parseInt(curHandle.css(axis == "x" ? "left" : "top"),10) / (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(handle,axis))) * this.options.realMax[axis]) + this.options.min[axis],10);
+		}
+
+	},
+	convertValue: function(value,axis) {
+		return this.options.min[axis] + (value / (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis))) * this.options.realMax[axis];
+	},
+	
+	translateValue: function(value,axis) {
+		return ((value - this.options.min[axis]) / this.options.realMax[axis]) * (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis));
+	},
+	translateRange: function(value,axis) {
+		if (this.rangeElement) {
+			if (this.currentHandle[0] == this.handle[0] && value >= this.translateValue(this.value(1),axis))
+				value = this.translateValue(this.value(1,axis) - this.oneStep(axis), axis);
+			if (this.currentHandle[0] == this.handle[1] && value <= this.translateValue(this.value(0),axis))
+				value = this.translateValue(this.value(0,axis) + this.oneStep(axis), axis);
+		}
+		if (this.options.handles) {
+			var handle = this.options.handles[this.handleIndex()];
+			if (value < this.translateValue(handle.min,axis)) {
+				value = this.translateValue(handle.min,axis);
+			} else if (value > this.translateValue(handle.max,axis)) {
+				value = this.translateValue(handle.max,axis);
+			}
+		}
+		return value;
+	},
+	translateLimits: function(value,axis) {
+		if (value >= this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis))
+			value = this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis);
+		if (value <= 0)
+			value = 0;
+		return value;
+	},
+	handleSize: function(handle,axis) {
+		return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")];	
+	},
+	oneStep: function(axis) {
+		return this.options.stepping[axis] || 1;
+	},
+
+
+	start: function(e, handle) {
+	
+		var o = this.options;
+		if(o.disabled) return false;
+
+		// Prepare the outer size
+		this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+	
+		// This is a especially ugly fix for strange blur events happening on mousemove events
+		if (!this.currentHandle)
+			this.focus(this.previousHandle, true); 
+
+		this.offset = this.element.offset();
+		
+		this.handleOffset = this.currentHandle.offset();
+		this.clickOffset = { top: e.pageY - this.handleOffset.top, left: e.pageX - this.handleOffset.left };
+		
+		this.firstValue = this.value();
+		
+		this.propagate('start', e);
+		this.drag(e, handle);
+		return true;
+					
+	},
+	stop: function(e) {
+		this.propagate('stop', e);
+		if (this.firstValue != this.value())
+			this.propagate('change', e);
+		// This is a especially ugly fix for strange blur events happening on mousemove events
+		this.focus(this.currentHandle, true);
+		return false;
+	},
+	drag: function(e, handle) {
+
+		var o = this.options;
+		var position = { top: e.pageY - this.offset.top - this.clickOffset.top, left: e.pageX - this.offset.left - this.clickOffset.left};
+		if(!this.currentHandle) this.focus(this.previousHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events
+
+		position.left = this.translateLimits(position.left, "x");
+		position.top = this.translateLimits(position.top, "y");
+		
+		if (o.stepping.x) {
+			var value = this.convertValue(position.left, "x");
+			value = Math.round(value / o.stepping.x) * o.stepping.x;
+			position.left = this.translateValue(value, "x");	
+		}
+		if (o.stepping.y) {
+			var value = this.convertValue(position.top, "y");
+			value = Math.round(value / o.stepping.y) * o.stepping.y;
+			position.top = this.translateValue(value, "y");	
+		}
+		
+		position.left = this.translateRange(position.left, "x");
+		position.top = this.translateRange(position.top, "y");
+
+		if(o.axis != "vertical") this.currentHandle.css({ left: position.left });
+		if(o.axis != "horizontal") this.currentHandle.css({ top: position.top });
+		
+		//Store the slider's value
+		this.currentHandle.data("mouse").sliderValue = {
+			x: Math.round(this.convertValue(position.left, "x")) || 0,
+			y: Math.round(this.convertValue(position.top, "y")) || 0
+		};
+		
+		if (this.rangeElement)
+			this.updateRange();
+		this.propagate('slide', e);
+		return false;
+	},
+	
+	moveTo: function(value, handle, noPropagation) {
+
+		var o = this.options;
+
+		// Prepare the outer size
+		this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+
+		//If no handle has been passed, no current handle is available and we have multiple handles, return false
+		if (handle == undefined && !this.currentHandle && this.handle.length != 1)
+			return false; 
+		
+		//If only one handle is available, use it
+		if (handle == undefined && !this.currentHandle)
+			handle = 0;
+		
+		if (handle != undefined)
+			this.currentHandle = this.previousHandle = $(this.handle[handle] || handle);
+
+
+		if(value.x !== undefined && value.y !== undefined) {
+			var x = value.x, y = value.y;
+		} else {
+			var x = value, y = value;
+		}
+
+		if(x !== undefined && x.constructor != Number) {
+			var me = /^\-\=/.test(x), pe = /^\+\=/.test(x);
+			if(me || pe) {
+				x = this.value(null, "x") + parseInt(x.replace(me ? '=' : '+=', ''), 10);
+			} else {
+				x = isNaN(parseInt(x, 10)) ? undefined : parseInt(x, 10);
+			}
+		}
+		
+		if(y !== undefined && y.constructor != Number) {
+			var me = /^\-\=/.test(y), pe = /^\+\=/.test(y);
+			if(me || pe) {
+				y = this.value(null, "y") + parseInt(y.replace(me ? '=' : '+=', ''), 10);
+			} else {
+				y = isNaN(parseInt(y, 10)) ? undefined : parseInt(y, 10);
+			}
+		}
+
+		if(o.axis != "vertical" && x !== undefined) {
+			if(o.stepping.x) x = Math.round(x / o.stepping.x) * o.stepping.x;
+			x = this.translateValue(x, "x");
+			x = this.translateLimits(x, "x");
+			x = this.translateRange(x, "x");
+
+			o.animate ? this.currentHandle.stop().animate({ left: x }, (Math.abs(parseInt(this.currentHandle.css("left")) - x)) * (!isNaN(parseInt(o.animate)) ? o.animate : 5)) : this.currentHandle.css({ left: x });
+		}
+
+		if(o.axis != "horizontal" && y !== undefined) {
+			if(o.stepping.y) y = Math.round(y / o.stepping.y) * o.stepping.y;
+			y = this.translateValue(y, "y");
+			y = this.translateLimits(y, "y");
+			y = this.translateRange(y, "y");
+			o.animate ? this.currentHandle.stop().animate({ top: y }, (Math.abs(parseInt(this.currentHandle.css("top")) - y)) * (!isNaN(parseInt(o.animate)) ? o.animate : 5)) : this.currentHandle.css({ top: y });
+		}
+		
+		if (this.rangeElement)
+			this.updateRange();
+			
+		//Store the slider's value
+		this.currentHandle.data("mouse").sliderValue = {
+			x: Math.round(this.convertValue(x, "x")) || 0,
+			y: Math.round(this.convertValue(y, "y")) || 0
+		};
+	
+		if (!noPropagation) {
+			this.propagate('start', null);
+			this.propagate('stop', null);
+			this.propagate('change', null);
+			this.propagate("slide", null);
+		}
+	}
+});
+
+$.ui.slider.getter = "value";
+
+$.ui.slider.defaults = {
+	handle: ".ui-slider-handle",
+	distance: 1,
+	animate: false
+};
+
+})(jQuery);
+/*
+ * jQuery UI Tabs
+ *
+ * Copyright (c) 2007, 2008 Klaus Hartl (stilbuero.de)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($) {
+
+$.widget("ui.tabs", {
+	init: function() {
+		this.options.event += '.tabs'; // namespace event
+		
+		// create tabs
+		this.tabify(true);
+	},
+	setData: function(key, value) {
+		if ((/^selected/).test(key))
+			this.select(value);
+		else {
+			this.options[key] = value;
+			this.tabify();
+		}
+	},
+	length: function() {
+		return this.$tabs.length;
+	},
+	tabId: function(a) {
+		return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '')
+			|| this.options.idPrefix + $.data(a);
+	},
+	ui: function(tab, panel) {
+		return {
+			options: this.options,
+			tab: tab,
+			panel: panel,
+			index: this.$tabs.index(tab)
+		};
+	},
+	tabify: function(init) {
+
+		this.$lis = $('li:has(a[href])', this.element);
+		this.$tabs = this.$lis.map(function() { return $('a', this)[0]; });
+		this.$panels = $([]);
+
+		var self = this, o = this.options;
+
+		this.$tabs.each(function(i, a) {
+			// inline tab
+			if (a.hash && a.hash.replace('#', '')) // Safari 2 reports '#' for an empty hash
+				self.$panels = self.$panels.add(a.hash);
+			// remote tab
+			else if ($(a).attr('href') != '#') { // prevent loading the page itself if href is just "#"
+				$.data(a, 'href.tabs', a.href); // required for restore on destroy
+				$.data(a, 'load.tabs', a.href); // mutable
+				var id = self.tabId(a);
+				a.href = '#' + id;
+				var $panel = $('#' + id);
+				if (!$panel.length) {
+					$panel = $(o.panelTemplate).attr('id', id).addClass(o.panelClass)
+						.insertAfter( self.$panels[i - 1] || self.element );
+					$panel.data('destroy.tabs', true);
+				}
+				self.$panels = self.$panels.add( $panel );
+			}
+			// invalid tab href
+			else
+				o.disabled.push(i + 1);
+		});
+
+		if (init) {
+
+			// attach necessary classes for styling if not present
+			this.element.addClass(o.navClass);
+			this.$panels.each(function() {
+				var $this = $(this);
+				$this.addClass(o.panelClass);
+			});
+
+			// Selected tab
+			// use "selected" option or try to retrieve:
+			// 1. from fragment identifier in url
+			// 2. from cookie
+			// 3. from selected class attribute on <li>
+			if (o.selected === undefined) {
+				if (location.hash) {
+					this.$tabs.each(function(i, a) {
+						if (a.hash == location.hash) {
+							o.selected = i;
+							// prevent page scroll to fragment
+							if ($.browser.msie || $.browser.opera) { // && !o.remote
+								var $toShow = $(location.hash), toShowId = $toShow.attr('id');
+								$toShow.attr('id', '');
+								setTimeout(function() {
+									$toShow.attr('id', toShowId); // restore id
+								}, 500);
+							}
+							scrollTo(0, 0);
+							return false; // break
+						}
+					});
+				}
+				else if (o.cookie) {
+					var index = parseInt($.cookie('ui-tabs' + $.data(self.element)),10);
+					if (index && self.$tabs[index])
+						o.selected = index;
+				}
+				else if (self.$lis.filter('.' + o.selectedClass).length)
+					o.selected = self.$lis.index( self.$lis.filter('.' + o.selectedClass)[0] );
+			}
+			o.selected = o.selected === null || o.selected !== undefined ? o.selected : 0; // first tab selected by default
+
+			// Take disabling tabs via class attribute from HTML
+			// into account and update option properly.
+			// A selected tab cannot become disabled.
+			o.disabled = $.unique(o.disabled.concat(
+				$.map(this.$lis.filter('.' + o.disabledClass),
+					function(n, i) { return self.$lis.index(n); } )
+			)).sort();
+			if ($.inArray(o.selected, o.disabled) != -1)
+				o.disabled.splice($.inArray(o.selected, o.disabled), 1);
+			
+			// highlight selected tab
+			this.$panels.addClass(o.hideClass);
+			this.$lis.removeClass(o.selectedClass);
+			if (o.selected !== null) {
+				this.$panels.eq(o.selected).show().removeClass(o.hideClass); // use show and remove class to show in any case no matter how it has been hidden before
+				this.$lis.eq(o.selected).addClass(o.selectedClass);
+				
+				// seems to be expected behavior that the show callback is fired
+				var onShow = function() {
+					$(self.element).triggerHandler('tabsshow',
+						[self.fakeEvent('tabsshow'), self.ui(self.$tabs[o.selected], self.$panels[o.selected])], o.show);
+				}; 
+
+				// load if remote tab
+				if ($.data(this.$tabs[o.selected], 'load.tabs'))
+					this.load(o.selected, onShow);
+				// just trigger show event
+				else
+					onShow();
+				
+			}
+			
+			// clean up to avoid memory leaks in certain versions of IE 6
+			$(window).bind('unload', function() {
+				self.$tabs.unbind('.tabs');
+				self.$lis = self.$tabs = self.$panels = null;
+			});
+
+		}
+
+		// disable tabs
+		for (var i = 0, li; li = this.$lis[i]; i++)
+			$(li)[$.inArray(i, o.disabled) != -1 && !$(li).hasClass(o.selectedClass) ? 'addClass' : 'removeClass'](o.disabledClass);
+
+		// reset cache if switching from cached to not cached
+		if (o.cache === false)
+			this.$tabs.removeData('cache.tabs');
+		
+		// set up animations
+		var hideFx, showFx, baseFx = { 'min-width': 0, duration: 1 }, baseDuration = 'normal';
+		if (o.fx && o.fx.constructor == Array)
+			hideFx = o.fx[0] || baseFx, showFx = o.fx[1] || baseFx;
+		else
+			hideFx = showFx = o.fx || baseFx;
+
+		// reset some styles to maintain print style sheets etc.
+		var resetCSS = { display: '', overflow: '', height: '' };
+		if (!$.browser.msie) // not in IE to prevent ClearType font issue
+			resetCSS.opacity = '';
+
+		// Hide a tab, animation prevents browser scrolling to fragment,
+		// $show is optional.
+		function hideTab(clicked, $hide, $show) {
+			$hide.animate(hideFx, hideFx.duration || baseDuration, function() { //
+				$hide.addClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
+				if ($.browser.msie && hideFx.opacity)
+					$hide[0].style.filter = '';
+				if ($show)
+					showTab(clicked, $show, $hide);
+			});
+		}
+
+		// Show a tab, animation prevents browser scrolling to fragment,
+		// $hide is optional.
+		function showTab(clicked, $show, $hide) {
+			if (showFx === baseFx)
+				$show.css('display', 'block'); // prevent occasionally occuring flicker in Firefox cause by gap between showing and hiding the tab panels
+			$show.animate(showFx, showFx.duration || baseDuration, function() {
+				$show.removeClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
+				if ($.browser.msie && showFx.opacity)
+					$show[0].style.filter = '';
+
+				// callback
+				$(self.element).triggerHandler('tabsshow',
+					[self.fakeEvent('tabsshow'), self.ui(clicked, $show[0])], o.show);
+
+			});
+		}
+
+		// switch a tab
+		function switchTab(clicked, $li, $hide, $show) {
+			/*if (o.bookmarkable && trueClick) { // add to history only if true click occured, not a triggered click
+				$.ajaxHistory.update(clicked.hash);
+			}*/
+			$li.addClass(o.selectedClass)
+				.siblings().removeClass(o.selectedClass);
+			hideTab(clicked, $hide, $show);
+		}
+
+		// attach tab event handler, unbind to avoid duplicates from former tabifying...
+		this.$tabs.unbind('.tabs').bind(o.event, function() {
+
+			//var trueClick = e.clientX; // add to history only if true click occured, not a triggered click
+			var $li = $(this).parents('li:eq(0)'),
+				$hide = self.$panels.filter(':visible'),
+				$show = $(this.hash);
+
+			// If tab is already selected and not unselectable or tab disabled or 
+			// or is already loading or click callback returns false stop here.
+			// Check if click handler returns false last so that it is not executed
+			// for a disabled or loading tab!
+			if (($li.hasClass(o.selectedClass) && !o.unselect)
+				|| $li.hasClass(o.disabledClass) 
+				|| $(this).hasClass(o.loadingClass)
+				|| $(self.element).triggerHandler('tabsselect', [self.fakeEvent('tabsselect'), self.ui(this, $show[0])], o.select) === false
+				) {
+				this.blur();
+				return false;
+			}
+
+			self.options.selected = self.$tabs.index(this);
+
+			// if tab may be closed
+			if (o.unselect) {
+				if ($li.hasClass(o.selectedClass)) {
+					self.options.selected = null;
+					$li.removeClass(o.selectedClass);
+					self.$panels.stop();
+					hideTab(this, $hide);
+					this.blur();
+					return false;
+				} else if (!$hide.length) {
+					self.$panels.stop();
+					var a = this;
+					self.load(self.$tabs.index(this), function() {
+						$li.addClass(o.selectedClass).addClass(o.unselectClass);
+						showTab(a, $show);
+					});
+					this.blur();
+					return false;
+				}
+			}
+
+			if (o.cookie)
+				$.cookie('ui-tabs' + $.data(self.element), self.options.selected, o.cookie);
+
+			// stop possibly running animations
+			self.$panels.stop();
+
+			// show new tab
+			if ($show.length) {
+
+				// prevent scrollbar scrolling to 0 and than back in IE7, happens only if bookmarking/history is enabled
+				/*if ($.browser.msie && o.bookmarkable) {
+					var showId = this.hash.replace('#', '');
+					$show.attr('id', '');
+					setTimeout(function() {
+						$show.attr('id', showId); // restore id
+					}, 0);
+				}*/
+
+				var a = this;
+				self.load(self.$tabs.index(this), $hide.length ? 
+					function() {
+						switchTab(a, $li, $hide, $show);
+					} :
+					function() {
+						$li.addClass(o.selectedClass);
+						showTab(a, $show);
+					}
+				);
+
+				// Set scrollbar to saved position - need to use timeout with 0 to prevent browser scroll to target of hash
+				/*var scrollX = window.pageXOffset || document.documentElement && document.documentElement.scrollLeft || document.body.scrollLeft || 0;
+				var scrollY = window.pageYOffset || document.documentElement && document.documentElement.scrollTop || document.body.scrollTop || 0;
+				setTimeout(function() {
+					scrollTo(scrollX, scrollY);
+				}, 0);*/
+
+			} else
+				throw 'jQuery UI Tabs: Mismatching fragment identifier.';
+
+			// Prevent IE from keeping other link focussed when using the back button
+			// and remove dotted border from clicked link. This is controlled in modern
+			// browsers via CSS, also blur removes focus from address bar in Firefox
+			// which can become a usability and annoying problem with tabsRotate.
+			if ($.browser.msie)
+				this.blur();
+
+			//return o.bookmarkable && !!trueClick; // convert trueClick == undefined to Boolean required in IE
+			return false;
+
+		});
+
+		// disable click if event is configured to something else
+		if (!(/^click/).test(o.event))
+			this.$tabs.bind('click.tabs', function() { return false; });
+
+	},
+	add: function(url, label, index) {
+		if (index == undefined) 
+			index = this.$tabs.length; // append by default
+
+		var o = this.options;
+		var $li = $(o.tabTemplate.replace(/#\{href\}/g, url).replace(/#\{label\}/g, label));
+		$li.data('destroy.tabs', true);
+
+		var id = url.indexOf('#') == 0 ? url.replace('#', '') : this.tabId( $('a:first-child', $li)[0] );
+
+		// try to find an existing element before creating a new one
+		var $panel = $('#' + id);
+		if (!$panel.length) {
+			$panel = $(o.panelTemplate).attr('id', id)
+				.addClass(o.hideClass)
+				.data('destroy.tabs', true);
+		}
+		$panel.addClass(o.panelClass);
+		if (index >= this.$lis.length) {
+			$li.appendTo(this.element);
+			$panel.appendTo(this.element[0].parentNode);
+		} else {
+			$li.insertBefore(this.$lis[index]);
+			$panel.insertBefore(this.$panels[index]);
+		}
+		
+		o.disabled = $.map(o.disabled,
+			function(n, i) { return n >= index ? ++n : n });
+			
+		this.tabify();
+
+		if (this.$tabs.length == 1) {
+			$li.addClass(o.selectedClass);
+			$panel.removeClass(o.hideClass);
+			var href = $.data(this.$tabs[0], 'load.tabs');
+			if (href)
+				this.load(index, href);
+		}
+
+		// callback
+		this.element.triggerHandler('tabsadd',
+			[this.fakeEvent('tabsadd'), this.ui(this.$tabs[index], this.$panels[index])], o.add
+		);
+	},
+	remove: function(index) {
+		var o = this.options, $li = this.$lis.eq(index).remove(),
+			$panel = this.$panels.eq(index).remove();
+
+		// If selected tab was removed focus tab to the right or
+		// in case the last tab was removed the tab to the left.
+		if ($li.hasClass(o.selectedClass) && this.$tabs.length > 1)
+			this.select(index + (index + 1 < this.$tabs.length ? 1 : -1));
+
+		o.disabled = $.map($.grep(o.disabled, function(n, i) { return n != index; }),
+			function(n, i) { return n >= index ? --n : n });
+
+		this.tabify();
+
+		// callback
+		this.element.triggerHandler('tabsremove',
+			[this.fakeEvent('tabsremove'), this.ui($li.find('a')[0], $panel[0])], o.remove
+		);
+	},
+	enable: function(index) {
+		var o = this.options;
+		if ($.inArray(index, o.disabled) == -1)
+			return;
+			
+		var $li = this.$lis.eq(index).removeClass(o.disabledClass);
+		if ($.browser.safari) { // fix disappearing tab (that used opacity indicating disabling) after enabling in Safari 2...
+			$li.css('display', 'inline-block');
+			setTimeout(function() {
+				$li.css('display', 'block');
+			}, 0);
+		}
+
+		o.disabled = $.grep(o.disabled, function(n, i) { return n != index; });
+
+		// callback
+		this.element.triggerHandler('tabsenable',
+			[this.fakeEvent('tabsenable'), this.ui(this.$tabs[index], this.$panels[index])], o.enable
+		);
+
+	},
+	disable: function(index) {
+		var self = this, o = this.options;
+		if (index != o.selected) { // cannot disable already selected tab
+			this.$lis.eq(index).addClass(o.disabledClass);
+
+			o.disabled.push(index);
+			o.disabled.sort();
+
+			// callback
+			this.element.triggerHandler('tabsdisable',
+				[this.fakeEvent('tabsdisable'), this.ui(this.$tabs[index], this.$panels[index])], o.disable
+			);
+		}
+	},
+	select: function(index) {
+		if (typeof index == 'string')
+			index = this.$tabs.index( this.$tabs.filter('[href$=' + index + ']')[0] );
+		this.$tabs.eq(index).trigger(this.options.event);
+	},
+	load: function(index, callback) { // callback is for internal usage only
+		
+		var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0],
+				bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs');
+
+		callback = callback || function() {};
+		
+		// no remote or from cache - just finish with callback
+		if (!url || !bypassCache && $.data(a, 'cache.tabs')) {
+			callback();
+			return;
+		}
+
+		// load remote from here on
+		
+		var inner = function(parent) {
+			var $parent = $(parent), $inner = $parent.find('*:last');
+			return $inner.length && $inner.is(':not(img)') && $inner || $parent;
+		};
+		var cleanup = function() {
+			self.$tabs.filter('.' + o.loadingClass).removeClass(o.loadingClass)
+						.each(function() {
+							if (o.spinner)
+								inner(this).parent().html(inner(this).data('label.tabs'));
+						});
+			self.xhr = null;
+		};
+		
+		if (o.spinner) {
+			var label = inner(a).html();
+			inner(a).wrapInner('<em></em>')
+				.find('em').data('label.tabs', label).html(o.spinner);
+		}
+
+		var ajaxOptions = $.extend({}, o.ajaxOptions, {
+			url: url,
+			success: function(r, s) {
+				$(a.hash).html(r);
+				cleanup();
+				
+				if (o.cache)
+					$.data(a, 'cache.tabs', true); // if loaded once do not load them again
+
+				// callbacks
+				$(self.element).triggerHandler('tabsload',
+					[self.fakeEvent('tabsload'), self.ui(self.$tabs[index], self.$panels[index])], o.load
+				);
+				o.ajaxOptions.success && o.ajaxOptions.success(r, s);
+				
+				// This callback is required because the switch has to take
+				// place after loading has completed. Call last in order to 
+				// fire load before show callback...
+				callback();
+			}
+		});
+		if (this.xhr) {
+			// terminate pending requests from other tabs and restore tab label
+			this.xhr.abort();
+			cleanup();
+		}
+		$a.addClass(o.loadingClass);
+		setTimeout(function() { // timeout is again required in IE, "wait" for id being restored
+			self.xhr = $.ajax(ajaxOptions);
+		}, 0);
+
+	},
+	url: function(index, url) {
+		this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs', url);
+	},
+	destroy: function() {
+		var o = this.options;
+		this.element.unbind('.tabs')
+			.removeClass(o.navClass).removeData('tabs');
+		this.$tabs.each(function() {
+			var href = $.data(this, 'href.tabs');
+			if (href)
+				this.href = href;
+			var $this = $(this).unbind('.tabs');
+			$.each(['href', 'load', 'cache'], function(i, prefix) {
+				$this.removeData(prefix + '.tabs');
+			});
+		});
+		this.$lis.add(this.$panels).each(function() {
+			if ($.data(this, 'destroy.tabs'))
+				$(this).remove();
+			else
+				$(this).removeClass([o.selectedClass, o.unselectClass,
+					o.disabledClass, o.panelClass, o.hideClass].join(' '));
+		});
+	},
+	fakeEvent: function(type) {
+		return $.event.fix({
+			type: type,
+			target: this.element[0]
+		});
+	}
+});
+
+$.ui.tabs.defaults = {
+	// basic setup
+	unselect: false,
+	event: 'click',
+	disabled: [],
+	cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }
+	// TODO history: false,
+
+	// Ajax
+	spinner: 'Loading&#8230;',
+	cache: false,
+	idPrefix: 'ui-tabs-',
+	ajaxOptions: {},
+
+	// animations
+	fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 }
+
+	// templates
+	tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>',
+	panelTemplate: '<div></div>',
+
+	// CSS classes
+	navClass: 'ui-tabs-nav',
+	selectedClass: 'ui-tabs-selected',
+	unselectClass: 'ui-tabs-unselect',
+	disabledClass: 'ui-tabs-disabled',
+	panelClass: 'ui-tabs-panel',
+	hideClass: 'ui-tabs-hide',
+	loadingClass: 'ui-tabs-loading'
+};
+
+$.ui.tabs.getter = "length";
+
+/*
+ * Tabs Extensions
+ */
+
+/*
+ * Rotate
+ */
+$.extend($.ui.tabs.prototype, {
+	rotation: null,
+	rotate: function(ms, continuing) {
+		
+		continuing = continuing || false;
+		
+		var self = this, t = this.options.selected;
+		
+		function start() {
+			self.rotation = setInterval(function() {
+				t = ++t < self.$tabs.length ? t : 0;
+				self.select(t);
+			}, ms); 
+		}
+		
+		function stop(e) {
+			if (!e || e.clientX) { // only in case of a true click
+				clearInterval(self.rotation);
+			}
+		}
+		
+		// start interval
+		if (ms) {
+			start();
+			if (!continuing)
+				this.$tabs.bind(this.options.event, stop);
+			else
+				this.$tabs.bind(this.options.event, function() {
+					stop();
+					t = self.options.selected;
+					start();
+				});
+		}
+		// stop interval
+		else {
+			stop();
+			this.$tabs.unbind(this.options.event, stop);
+		}
+	}
+});
+
+})(jQuery);
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/nested.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/nested.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/nested.html	(revision 1516)
@@ -0,0 +1,150 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head> 
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
+
+	<title>Nested Layouts</title> 
+
+	<script type="text/javascript" src="jquery.js"></script> 
+	<script type="text/javascript" src="jquery.layout.js"></script> 
+	<script type="text/javascript" src="jquery.ui.all.js"></script> 
+
+	<script> 
+
+	var outerLayout, middleLayout, innerLayout; 
+
+	$(document).ready(function () { 
+
+		outerLayout = $('body').layout({ 
+			center__paneSelector:	".outer-center" 
+		,	west__paneSelector:		".outer-west" 
+		,	east__paneSelector:		".outer-east" 
+		,	west__size:				125 
+		,	east__size:				125 
+		,	spacing_open:			8 // ALL panes
+		,	spacing_closed:			12 // ALL panes
+		,	north__spacing_open:	0
+		,	south__spacing_open:	0
+		,	center__onresize:		"middleLayout.resizeAll" 
+		}); 
+
+		middleLayout = $('div.outer-center').layout({ 
+			center__paneSelector:	".middle-center" 
+		,	west__paneSelector:		".middle-west" 
+		,	east__paneSelector:		".middle-east" 
+		,	west__size:				100 
+		,	east__size:				100 
+		,	spacing_open:			8  // ALL panes
+		,	spacing_closed:			12 // ALL panes
+		,	center__onresize:		"innerLayout.resizeAll" 
+		}); 
+
+		innerLayout = $('div.middle-center').layout({ 
+			center__paneSelector:	".inner-center" 
+		,	west__paneSelector:		".inner-west" 
+		,	east__paneSelector:		".inner-east" 
+		,	west__size:				75 
+		,	east__size:				75 
+		,	spacing_open:			8  // ALL panes
+		,	spacing_closed:			8  // ALL panes
+		,	west__spacing_closed:	12
+		,	east__spacing_closed:	12
+		}); 
+
+	}); 
+
+
+	</script> 
+
+	<style type="text/css"> 
+
+	.ui-layout-pane { /* all 'panes' */ 
+		padding: 10px; 
+		background: #FFF; 
+		border-top: 1px solid #BBB;
+		border-bottom: 1px solid #BBB;
+		}
+		.ui-layout-pane-north ,
+		.ui-layout-pane-south {
+			border: 1px solid #BBB;
+		} 
+		.ui-layout-pane-west {
+			border-left: 1px solid #BBB;
+		} 
+		.ui-layout-pane-east {
+			border-right: 1px solid #BBB;
+		} 
+		.ui-layout-pane-center {
+			border-left: 0;
+			border-right: 0;
+			} 
+			.inner-center {
+				border: 1px solid #BBB;
+			} 
+
+		.outer-west ,
+		.outer-east {
+			background-color: #EEE;
+		}
+		.middle-west ,
+		.middle-east {
+			background-color: #F8F8F8;
+		}
+
+	.ui-layout-resizer { /* all 'resizer-bars' */ 
+		background: #DDD; 
+		}
+		.ui-layout-resizer:hover { /* all 'resizer-bars' */ 
+			background: #FED; 
+		}
+		.ui-layout-resizer-west {
+			border-left: 1px solid #BBB;
+		}
+		.ui-layout-resizer-east {
+			border-right: 1px solid #BBB;
+		}
+
+	.ui-layout-toggler { /* all 'toggler-buttons' */ 
+		background: #AAA; 
+		} 
+		.ui-layout-toggler:hover { /* all 'toggler-buttons' */ 
+			background: #FC3; 
+		} 
+
+	.outer-center ,
+	.middle-center {
+		/* center pane that are 'containers' for a nested layout */ 
+		padding: 0; 
+		border: 0; 
+	} 
+
+	</style> 
+
+</head> 
+<body> 
+
+<div class="outer-center">
+
+	<div class="middle-center">
+
+		<div class="inner-center">Inner Center</div> 
+		<div class="inner-west">Inner West</div> 
+		<div class="inner-east">Inner East</div>
+		<div class="ui-layout-north">Inner North</div> 
+		<div class="ui-layout-south">Inner South</div> 
+
+	</div> 
+	<div class="middle-west">Middle West</div> 
+	<div class="middle-east">Middle East</div> 
+
+</div> 
+
+<div class="outer-west">Outer West</div> 
+<div class="outer-east">Outer East</div> 
+
+<div class="ui-layout-north">Outer North</div> 
+<div class="ui-layout-south">Outer South</div> 
+
+</body> 
+</html> 
+
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/simple.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/simple.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-layout/simple.html	(revision 1516)
@@ -0,0 +1,201 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+
+	<title>Simple Layout Demo</title>
+
+	<script type="text/javascript" src="jquery.js"></script>
+	<script type="text/javascript" src="jquery.ui.all.js"></script>
+	<script type="text/javascript" src="jquery.layout.js"></script>
+
+	<script type="text/javascript" src="js/complex.js"></script>
+
+	<script type="text/javascript">
+
+	var myLayout; // a var is required because this page utilizes: myLayout.allowOverflow() method
+
+	$(document).ready(function () {
+		myLayout = $('body').layout({
+			// enable showOverflow on west-pane so popups will overlap north pane
+			west__showOverflowOnHover: true
+
+		//,	west__fxSettings_open: { easing: "easeOutBounce", duration: 750 }
+		});
+ 	});
+
+	</script>
+
+
+	<style type="text/css">
+	/**
+	 *	Basic Layout Theme
+	 * 
+	 *	This theme uses the default layout class-names for all classes
+	 *	Add any 'custom class-names', from options: paneClass, resizerClass, togglerClass
+	 */
+
+	.ui-layout-pane { /* all 'panes' */ 
+		background: #FFF; 
+		border: 1px solid #BBB; 
+		padding: 10px; 
+		overflow: auto;
+	} 
+
+	.ui-layout-resizer { /* all 'resizer-bars' */ 
+		background: #DDD; 
+	} 
+
+	.ui-layout-toggler { /* all 'toggler-buttons' */ 
+		background: #AAA; 
+	} 
+
+
+	</style>
+
+
+	<style type="text/css">
+	/**
+	 *	ALL CSS below is only for cosmetic and demo purposes
+	 *	Nothing here affects the appearance of the layout
+	 */
+
+	body {
+		font-family: Arial, sans-serif;
+		font-size: 0.85em;
+	}
+	p {
+		margin: 1em 0;
+	}
+
+	/*
+	 *	Rules below are for simulated drop-down/pop-up lists
+	 */
+
+	ul {
+		/* rules common to BOTH inner and outer UL */
+		z-index:	100000;
+		margin:		1ex 0;
+		padding:	0;
+		list-style:	none;
+		cursor:		pointer;
+		border:		1px solid Black;
+		/* rules for outer UL only */
+		width:		15ex;
+		position:	relative;
+	}
+	ul li {
+		background-color: #EEE;
+		padding: 0.15em 1em 0.3em 5px;
+	}
+	ul ul {
+		display:	none;
+		position:	absolute;
+		width:		100%;
+		left:		-1px;
+		/* Pop-Up */
+		bottom:		0;
+		margin:		0;
+		margin-bottom: 1.55em;
+	}
+	.ui-layout-north ul ul {
+		/* Drop-Down */
+		bottom:		auto;
+		margin:		0;
+		margin-top:	1.45em;
+	}
+	ul ul li		{ padding: 3px 1em 3px 5px; }
+	ul ul li:hover	{ background-color: #FF9; }
+	ul li:hover ul	{ display:	block; background-color: #EEE; }
+
+	</style>
+
+</head>
+<body>
+
+<!-- manually attach allowOverflow method to pane -->
+<div class="ui-layout-north" onmouseover="myLayout.allowOverflow('north')" onmouseout="myLayout.resetOverflow(this)">
+	This is the north pane, closable, slidable and resizable
+
+	<ul>
+		<li>
+			<ul>
+				<li>one</li>
+				<li>two</li>
+				<li>three</li>
+				<li>four</li>
+				<li>five</li>
+			</ul>
+			Drop-Down <!-- put this below so IE and FF render the same! -->
+		</li>
+	</ul>
+
+</div>
+
+<!-- allowOverflow auto-attached by option: west__showOverflowOnHover = true -->
+<div class="ui-layout-west">
+	This is the west pane, closable, slidable and resizable
+
+	<ul>
+		<li>
+			<ul>
+				<li>one</li>
+				<li>two</li>
+				<li>three</li>
+				<li>four</li>
+				<li>five</li>
+			</ul>
+			Pop-Up <!-- put this below so IE and FF render the same! -->
+		</li>
+	</ul>
+
+	<p><button onclick="myLayout.close('west')">Close Me</button></p>
+
+	<p><a href="#" onClick="showOptions(myLayout,'defaults.fxSettings_open');showOptions(myLayout,'west.fxSettings_close')">Show Options.Defaults</a></p>
+
+</div>
+
+<div class="ui-layout-south">
+	This is the south pane, closable, slidable and resizable &nbsp;
+	<button onclick="myLayout.toggle('north')">Toggle North Pane</button>
+</div>
+
+<div class="ui-layout-east">
+	This is the east pane, closable, slidable and resizable
+
+	<!-- attach allowOverflow method to this specific element -->
+	<ul onmouseover="myLayout.allowOverflow(this)" onmouseout="myLayout.resetOverflow('east')">
+		<li>
+			<ul>
+				<li>one</li>
+				<li>two</li>
+				<li>three</li>
+				<li>four</li>
+				<li>five</li>
+			</ul>
+			Pop-Up <!-- put this below so IE and FF render the same! -->
+		</li>
+	</ul>
+
+	<p><button onclick="myLayout.close('east')">Close Me</button></p>
+
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+</div>
+
+<div class="ui-layout-center">
+	This center pane auto-sizes to fit the space <i>between</i> the 'border-panes'
+	<p>This layout was created with only <b>default options</b> - no customization</p>
+	<p>Only the <b>applyDefaultStyles</b> option was enabled for <i>basic</i> formatting</p>
+	<p>The Pop-Up and Drop-Down lists demonstrate the <b>allowOverflow()</b> utility</p>
+	<p>The Close and Toggle buttons are examples of <b>custom buttons</b></p>
+	<p><a href="http://layout.jquery-dev.net/demos.html">Go to the Demos page</a></p>
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+	<p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p><p>...</p>
+</div>
+
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeTable/jquery.treeTable.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeTable/jquery.treeTable.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeTable/jquery.treeTable.js	(revision 1516)
@@ -0,0 +1,219 @@
+/*
+ * jQuery treeTable Plugin 2.3.0
+ * http://ludo.cubicphuse.nl/jquery-plugins/treeTable/
+ *
+ * Copyright 2010, Ludo van den Boom
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ */
+(function($) {
+  // Helps to make options available to all functions
+  // TODO: This gives problems when there are both expandable and non-expandable
+  // trees on a page. The options shouldn't be global to all these instances!
+  var options;
+  var defaultPaddingLeft;
+  
+  $.fn.treeTable = function(opts) {
+    options = $.extend({}, $.fn.treeTable.defaults, opts);
+    
+    return this.each(function() {
+      $(this).addClass("treeTable").find("tbody tr").each(function() {
+        // Initialize root nodes only if possible
+        if(!options.expandable || $(this)[0].className.search(options.childPrefix) == -1) {
+          // To optimize performance of indentation, I retrieve the padding-left
+          // value of the first root node. This way I only have to call +css+ 
+          // once.
+          if (isNaN(defaultPaddingLeft)) {
+            defaultPaddingLeft = parseInt($($(this).children("td")[options.treeColumn]).css('padding-left'), 10);
+          }
+          
+          initialize($(this));
+        } else if(options.initialState == "collapsed") {
+          this.style.display = "none"; // Performance! $(this).hide() is slow...
+        }
+      });
+    });
+  };
+  
+  $.fn.treeTable.defaults = {
+    childPrefix: "child-of-",
+    clickableNodeNames: false,
+    expandable: true,
+    indent: 19,
+    initialState: "collapsed",
+    treeColumn: 0
+  };
+  
+  // Recursively hide all node's children in a tree
+  $.fn.collapse = function() {
+    $(this).addClass("collapsed");
+    
+    childrenOf($(this)).each(function() {
+      if(!$(this).hasClass("collapsed")) {
+        $(this).collapse();
+      }
+      
+      this.style.display = "none"; // Performance! $(this).hide() is slow...
+    });
+    
+    return this;
+  };
+  
+  // Recursively show all node's children in a tree
+  $.fn.expand = function() {
+    $(this).removeClass("collapsed").addClass("expanded");
+    
+    childrenOf($(this)).each(function() {
+      initialize($(this));
+      
+      if($(this).is(".expanded.parent")) {
+        $(this).expand();
+      }
+      
+      // this.style.display = "table-row"; // Unfortunately this is not possible with IE :-(
+      $(this).show();
+    });
+    
+    return this;
+  };
+
+  // Reveal a node by expanding all ancestors
+  $.fn.reveal = function() {
+    $(ancestorsOf($(this)).reverse()).each(function() {
+      initialize($(this));
+      $(this).expand().show();
+    });
+    
+    return this;
+  };
+
+  // Add an entire branch to +destination+
+  $.fn.appendBranchTo = function(destination) {
+    var node = $(this);
+    var parent = parentOf(node);
+    
+    var ancestorNames = $.map(ancestorsOf($(destination)), function(a) { return a.id; });
+    
+    // Conditions:
+    // 1: +node+ should not be inserted in a location in a branch if this would
+    //    result in +node+ being an ancestor of itself.
+    // 2: +node+ should not have a parent OR the destination should not be the
+    //    same as +node+'s current parent (this last condition prevents +node+
+    //    from being moved to the same location where it already is).
+    // 3: +node+ should not be inserted as a child of +node+ itself.
+    if($.inArray(node[0].id, ancestorNames) == -1 && (!parent || (destination.id != parent[0].id)) && destination.id != node[0].id) {
+      indent(node, ancestorsOf(node).length * options.indent * -1); // Remove indentation
+      
+      if(parent) { node.removeClass(options.childPrefix + parent[0].id); }
+      
+      node.addClass(options.childPrefix + destination.id);
+      move(node, destination); // Recursively move nodes to new location
+      indent(node, ancestorsOf(node).length * options.indent);
+    }
+    
+    return this;
+  };
+  
+  // Add reverse() function from JS Arrays
+  $.fn.reverse = function() {
+    return this.pushStack(this.get().reverse(), arguments);
+  };
+  
+  // Toggle an entire branch
+  $.fn.toggleBranch = function() {
+    if($(this).hasClass("collapsed")) {
+      $(this).expand();
+    } else {
+      $(this).removeClass("expanded").collapse();
+    }
+    
+    return this;
+  };
+  
+  // === Private functions
+  
+  function ancestorsOf(node) {
+    var ancestors = [];
+    while(node = parentOf(node)) {
+      ancestors[ancestors.length] = node[0];
+    }
+    return ancestors;
+  };
+  
+  function childrenOf(node) {
+    return $("table.treeTable tbody tr." + options.childPrefix + node[0].id);
+  };
+  
+  function getPaddingLeft(node) {
+    var paddingLeft = parseInt(node[0].style.paddingLeft, 10);
+    return (isNaN(paddingLeft)) ? defaultPaddingLeft : paddingLeft;
+  }
+  
+  function indent(node, value) {
+    var cell = $(node.children("td")[options.treeColumn]);
+    cell[0].style.paddingLeft = getPaddingLeft(cell) + value + "px";
+    
+    childrenOf(node).each(function() {
+      indent($(this), value);
+    });
+  };
+  
+  function initialize(node) {
+    if(!node.hasClass("initialized")) {
+      node.addClass("initialized");
+      
+      var childNodes = childrenOf(node);
+      
+      if(!node.hasClass("parent") && childNodes.length > 0) {
+        node.addClass("parent");
+      }
+      
+      if(node.hasClass("parent")) {
+        var cell = $(node.children("td")[options.treeColumn]);
+        var padding = getPaddingLeft(cell) + options.indent;
+        
+        childNodes.each(function() {
+          $(this).children("td")[options.treeColumn].style.paddingLeft = padding + "px";
+        });
+        
+        if(options.expandable) {
+          cell.prepend('<span style="margin-left: -' + options.indent + 'px; padding-left: ' + options.indent + 'px" class="expander"></span>');
+          $(cell[0].firstChild).click(function() { node.toggleBranch(); });
+          
+          if(options.clickableNodeNames) {
+            cell[0].style.cursor = "pointer";
+            $(cell).click(function(e) {
+              // Don't double-toggle if the click is on the existing expander icon
+              if (e.target.className != 'expander') {
+                node.toggleBranch();
+              }
+            });
+          }
+          
+          // Check for a class set explicitly by the user, otherwise set the default class
+          if(!(node.hasClass("expanded") || node.hasClass("collapsed"))) {
+            node.addClass(options.initialState);
+          }
+
+          if(node.hasClass("expanded")) {
+            node.expand();
+          }
+        }
+      }
+    }
+  };
+  
+  function move(node, destination) {
+    node.insertAfter(destination);
+    childrenOf(node).reverse().each(function() { move($(this), node[0]); });
+  };
+  
+  function parentOf(node) {
+    var classNames = node[0].className.split(' ');
+    
+    for(key in classNames) {
+      if(classNames[key].match(options.childPrefix)) {
+        return $("#" + classNames[key].substring(9));
+      }
+    }
+  };
+})(jQuery);
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeview/jquery.treeview.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeview/jquery.treeview.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeview/jquery.treeview.css	(revision 1516)
@@ -0,0 +1,71 @@
+.treeview, .treeview ul { 
+	padding: 0;
+	margin: 0;
+	list-style: none;
+}
+
+.treeview ul {
+	background-color: white;
+	margin-top: 4px;
+}
+
+.treeview .hitarea {
+	background: url(images/treeview-default.gif) -64px -25px no-repeat;
+	height: 16px;
+	width: 16px;
+	margin-left: -16px;
+	float: left;
+	cursor: pointer;
+}
+/* fix for IE6 */
+* html .hitarea {
+	display: inline;
+	float:none;
+}
+
+.treeview li { 
+	margin: 0;
+	padding: 3px 0pt 3px 16px;
+}
+
+.treeview a.selected {
+	background-color: #eee;
+}
+
+#treecontrol { margin: 1em 0; display: none; }
+
+.treeview .hover { color: red; cursor: pointer; }
+
+.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; }
+.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
+
+.treeview .expandable-hitarea { background-position: -80px -3px; }
+
+.treeview li.last { background-position: 0 -1766px }
+.treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(images/treeview-default.gif); }  
+.treeview li.lastCollapsable { background-position: 0 -111px }
+.treeview li.lastExpandable { background-position: -32px -67px }
+
+.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
+
+.treeview-red li { background-image: url(images/treeview-red-line.gif); }
+.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(images/treeview-red.gif); } 
+
+.treeview-black li { background-image: url(images/treeview-black-line.gif); }
+.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(images/treeview-black.gif); }  
+
+.treeview-gray li { background-image: url(images/treeview-gray-line.gif); }
+.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(images/treeview-gray.gif); } 
+
+.treeview-famfamfam li { background-image: url(images/treeview-famfamfam-line.gif); }
+.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(images/treeview-famfamfam.gif); } 
+
+
+.filetree li { padding: 3px 0 2px 16px; }
+.filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; }
+.filetree span.folder { background: url(images/folder.gif) 0 0 no-repeat; }
+.filetree li.expandable span.folder { background: url(images/folder-closed.gif) 0 0 no-repeat; }
+.filetree span.file { background: url(images/file.gif) 0 0 no-repeat; }
+
+.treeview .showselection[some_selection="1"] {color: red}
+.treeview .showselection[some_selection="0"] {color: white}
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeview/jquery.treeview.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeview/jquery.treeview.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jquery-treeview/jquery.treeview.js	(revision 1516)
@@ -0,0 +1,254 @@
+/*
+ * Treeview 1.4 - jQuery plugin to hide and show branches of a tree
+ * 
+ * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
+ * http://docs.jquery.com/Plugins/Treeview
+ *
+ * Copyright (c) 2007 JÃ¶rn Zaefferer
+ *
+ * Dual licensed under the MIT and GPL licenses:
+ *   http://www.opensource.org/licenses/mit-license.php
+ *   http://www.gnu.org/licenses/gpl.html
+ *
+ * Revision: $Id: jquery.treeview.js 4684 2008-02-07 19:08:06Z joern.zaefferer $
+ *
+ */
+
+;(function($) {
+
+	$.extend($.fn, {
+		swapClass: function(c1, c2) {
+			var c1Elements = this.filter('.' + c1);
+			this.filter('.' + c2).removeClass(c2).addClass(c1);
+			c1Elements.removeClass(c1).addClass(c2);
+			return this;
+		},
+		replaceClass: function(c1, c2) {
+			return this.filter('.' + c1).removeClass(c1).addClass(c2).end();
+		},
+		hoverClass: function(className) {
+			className = className || "hover";
+			return this.hover(function() {
+				$(this).addClass(className);
+			}, function() {
+				$(this).removeClass(className);
+			});
+		},
+		heightToggle: function(animated, callback) {
+			animated ?
+				this.animate({ height: "toggle" }, animated, callback) :
+				this.each(function(){
+					jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
+					if(callback)
+						callback.apply(this, arguments);
+				});
+		},
+		heightHide: function(animated, callback) {
+			if (animated) {
+				this.animate({ height: "hide" }, animated, callback);
+			} else {
+				this.hide();
+				if (callback)
+					this.each(callback);				
+			}
+		},
+		prepareBranches: function(settings) {
+			if (!settings.prerendered) {
+				// mark last tree items
+				this.filter(":last-child:not(ul)").addClass(CLASSES.last);
+				// collapse whole tree, or only those marked as closed, anyway except those marked as open
+				this.filter((settings.collapsed ? "" : "." + CLASSES.closed) + ":not(." + CLASSES.open + ")").find(">ul").hide();
+			}
+			// return all items with sublists
+			return this.filter(":has(>ul)");
+		},
+		applyClasses: function(settings, toggler) {
+			this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event) {
+				toggler.apply($(this).next());
+			}).add( $("a", this) ).hoverClass();
+			
+			if (!settings.prerendered) {
+				// handle closed ones first
+				this.filter(":has(>ul:hidden)")
+						.addClass(CLASSES.expandable)
+						.replaceClass(CLASSES.last, CLASSES.lastExpandable);
+						
+				// handle open ones
+				this.not(":has(>ul:hidden)")
+						.addClass(CLASSES.collapsable)
+						.replaceClass(CLASSES.last, CLASSES.lastCollapsable);
+						
+	            // create hitarea
+				this.prepend("<div class=\"" + CLASSES.hitarea + "\"/>").find("div." + CLASSES.hitarea).each(function() {
+					var classes = "";
+					$.each($(this).parent().attr("class").split(" "), function() {
+						classes += this + "-hitarea ";
+					});
+					$(this).addClass( classes );
+				});
+			}
+			
+			// apply event to hitarea
+			this.find("div." + CLASSES.hitarea).click( toggler );
+		},
+		treeview: function(settings) {
+		
+			settings = $.extend({
+				cookieId: "treeview"
+			}, settings);
+			
+			if (settings.add) {
+				return this.trigger("add", [settings.add]);
+			}
+			
+			if ( settings.toggle ) {
+				var callback = settings.toggle;
+				settings.toggle = function() {
+					return callback.apply($(this).parent()[0], arguments);
+				};
+			}
+		
+				
+			
+			
+			// factory for treecontroller
+			function treeController(tree, control) {
+				// factory for click handlers
+				function handler(filter) {
+					return function() {
+						// reuse toggle event handler, applying the elements to toggle
+						// start searching for all hitareas
+						toggler.apply( $("div." + CLASSES.hitarea, tree).filter(function() {
+							// for plain toggle, no filter is provided, otherwise we need to check the parent element
+							return filter ? $(this).parent("." + filter).length : true;
+						}) );
+						return false;
+					};
+				}
+				// click on first element to collapse tree
+				$("a:eq(0)", control).click( handler(CLASSES.collapsable) );
+				// click on second to expand tree
+				$("a:eq(1)", control).click( handler(CLASSES.expandable) );
+				// click on third to toggle tree
+				$("a:eq(2)", control).click( handler() ); 
+			}
+		
+			// handle toggle event
+			function toggler() {
+				$(this)
+					.parent()
+					// swap classes for hitarea
+					.find(">.hitarea")
+						.swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
+						.swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
+					.end()
+					// swap classes for parent li
+					.swapClass( CLASSES.collapsable, CLASSES.expandable )
+					.swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
+					// find child lists
+					.find( ">ul" )
+					// toggle them
+					.heightToggle( settings.animated, settings.toggle );
+				if ( settings.unique ) {
+					$(this).parent()
+						.siblings()
+						// swap classes for hitarea
+						.find(">.hitarea")
+							.replaceClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
+							.replaceClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
+						.end()
+						.replaceClass( CLASSES.collapsable, CLASSES.expandable )
+						.replaceClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
+						.find( ">ul" )
+						.heightHide( settings.animated, settings.toggle );
+				}
+			}
+			
+			function serialize() {
+				function binary(arg) {
+					return arg ? 1 : 0;
+				}
+				var data = [];
+				branches.each(function(i, e) {
+					data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0;
+				});
+				$.cookie(settings.cookieId, data.join("") );
+			}
+			
+			function deserialize() {
+				var stored = $.cookie(settings.cookieId);
+				if ( stored ) {
+					var data = stored.split("");
+					branches.each(function(i, e) {
+						$(e).find(">ul")[ parseInt(data[i]) ? "show" : "hide" ]();
+					});
+				}
+			}
+			
+			// add treeview class to activate styles
+			this.addClass("treeview");
+			
+			// prepare branches and find all tree items with child lists
+			var branches = this.find("li").prepareBranches(settings);
+			
+			switch(settings.persist) {
+			case "cookie":
+				var toggleCallback = settings.toggle;
+				settings.toggle = function() {
+					serialize();
+					if (toggleCallback) {
+						toggleCallback.apply(this, arguments);
+					}
+				};
+				deserialize();
+				break;
+			case "location":
+				var current = this.find("a").filter(function() { return this.href.toLowerCase() == location.href.toLowerCase(); });
+				if ( current.length ) {
+					current.addClass("selected").parents("ul, li").add( current.next() ).show();
+				}
+				break;
+			}
+			
+			branches.applyClasses(settings, toggler);
+				
+			// if control option is set, create the treecontroller and show it
+			if ( settings.control ) {
+				treeController(this, settings.control);
+				$(settings.control).show();
+			}
+			
+			return this.bind("add", function(event, branches) {
+				$(branches).prev()
+					.removeClass(CLASSES.last)
+					.removeClass(CLASSES.lastCollapsable)
+					.removeClass(CLASSES.lastExpandable)
+				.find(">.hitarea")
+					.removeClass(CLASSES.lastCollapsableHitarea)
+					.removeClass(CLASSES.lastExpandableHitarea);
+				$(branches).find("li").andSelf().prepareBranches(settings).applyClasses(settings, toggler);
+			});
+		}
+	});
+	
+	// classes used by the plugin
+	// need to be styled via external stylesheet, see first example
+	var CLASSES = $.fn.treeview.classes = {
+		open: "open",
+		closed: "closed",
+		expandable: "expandable",
+		expandableHitarea: "expandable-hitarea",
+		lastExpandableHitarea: "lastExpandable-hitarea",
+		collapsable: "collapsable",
+		collapsableHitarea: "collapsable-hitarea",
+		lastCollapsableHitarea: "lastCollapsable-hitarea",
+		lastCollapsable: "lastCollapsable",
+		lastExpandable: "lastExpandable",
+		last: "last",
+		hitarea: "hitarea"
+	};
+	
+	// provide backwards compability
+	$.fn.Treeview = $.fn.treeview;
+	
+})(jQuery);
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-1.3.2.min.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-1.3.2.min.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-1.3.2.min.js	(revision 1516)
@@ -0,0 +1,19 @@
+/*
+ * jQuery JavaScript Library v1.3.2
+ * http://jquery.com/
+ *
+ * Copyright (c) 2009 John Resig
+ * Dual licensed under the MIT and GPL licenses.
+ * http://docs.jquery.com/License
+ *
+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
+ * Revision: 6246
+ */
+(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
+/*
+ * Sizzle CSS Selector Engine - v0.9.3
+ *  Copyright 2009, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-1.4.2.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-1.4.2.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-1.4.2.js	(revision 1516)
@@ -0,0 +1,6240 @@
+/*!
+ * jQuery JavaScript Library v1.4.2
+ * http://jquery.com/
+ *
+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2010, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Sat Feb 13 22:33:48 2010 -0500
+ */
+(function( window, undefined ) {
+
+// Define a local copy of jQuery
+var jQuery = function( selector, context ) {
+		// The jQuery object is actually just the init constructor 'enhanced'
+		return new jQuery.fn.init( selector, context );
+	},
+
+	// Map over jQuery in case of overwrite
+	_jQuery = window.jQuery,
+
+	// Map over the $ in case of overwrite
+	_$ = window.$,
+
+	// Use the correct document accordingly with window argument (sandbox)
+	document = window.document,
+
+	// A central reference to the root jQuery(document)
+	rootjQuery,
+
+	// A simple way to check for HTML strings or ID strings
+	// (both of which we optimize for)
+	quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,
+
+	// Is it a simple selector
+	isSimple = /^.[^:#\[\.,]*$/,
+
+	// Check if a string has a non-whitespace character in it
+	rnotwhite = /\S/,
+
+	// Used for trimming whitespace
+	rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
+
+	// Match a standalone tag
+	rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+	// Keep a UserAgent string for use with jQuery.browser
+	userAgent = navigator.userAgent,
+
+	// For matching the engine and version of the browser
+	browserMatch,
+	
+	// Has the ready events already been bound?
+	readyBound = false,
+	
+	// The functions to execute on DOM ready
+	readyList = [],
+
+	// The ready event handler
+	DOMContentLoaded,
+
+	// Save a reference to some core methods
+	toString = Object.prototype.toString,
+	hasOwnProperty = Object.prototype.hasOwnProperty,
+	push = Array.prototype.push,
+	slice = Array.prototype.slice,
+	indexOf = Array.prototype.indexOf;
+
+jQuery.fn = jQuery.prototype = {
+	init: function( selector, context ) {
+		var match, elem, ret, doc;
+
+		// Handle $(""), $(null), or $(undefined)
+		if ( !selector ) {
+			return this;
+		}
+
+		// Handle $(DOMElement)
+		if ( selector.nodeType ) {
+			this.context = this[0] = selector;
+			this.length = 1;
+			return this;
+		}
+		
+		// The body element only exists once, optimize finding it
+		if ( selector === "body" && !context ) {
+			this.context = document;
+			this[0] = document.body;
+			this.selector = "body";
+			this.length = 1;
+			return this;
+		}
+
+		// Handle HTML strings
+		if ( typeof selector === "string" ) {
+			// Are we dealing with HTML string or an ID?
+			match = quickExpr.exec( selector );
+
+			// Verify a match, and that no context was specified for #id
+			if ( match && (match[1] || !context) ) {
+
+				// HANDLE: $(html) -> $(array)
+				if ( match[1] ) {
+					doc = (context ? context.ownerDocument || context : document);
+
+					// If a single string is passed in and it's a single tag
+					// just do a createElement and skip the rest
+					ret = rsingleTag.exec( selector );
+
+					if ( ret ) {
+						if ( jQuery.isPlainObject( context ) ) {
+							selector = [ document.createElement( ret[1] ) ];
+							jQuery.fn.attr.call( selector, context, true );
+
+						} else {
+							selector = [ doc.createElement( ret[1] ) ];
+						}
+
+					} else {
+						ret = buildFragment( [ match[1] ], [ doc ] );
+						selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
+					}
+					
+					return jQuery.merge( this, selector );
+					
+				// HANDLE: $("#id")
+				} else {
+					elem = document.getElementById( match[2] );
+
+					if ( elem ) {
+						// Handle the case where IE and Opera return items
+						// by name instead of ID
+						if ( elem.id !== match[2] ) {
+							return rootjQuery.find( selector );
+						}
+
+						// Otherwise, we inject the element directly into the jQuery object
+						this.length = 1;
+						this[0] = elem;
+					}
+
+					this.context = document;
+					this.selector = selector;
+					return this;
+				}
+
+			// HANDLE: $("TAG")
+			} else if ( !context && /^\w+$/.test( selector ) ) {
+				this.selector = selector;
+				this.context = document;
+				selector = document.getElementsByTagName( selector );
+				return jQuery.merge( this, selector );
+
+			// HANDLE: $(expr, $(...))
+			} else if ( !context || context.jquery ) {
+				return (context || rootjQuery).find( selector );
+
+			// HANDLE: $(expr, context)
+			// (which is just equivalent to: $(context).find(expr)
+			} else {
+				return jQuery( context ).find( selector );
+			}
+
+		// HANDLE: $(function)
+		// Shortcut for document ready
+		} else if ( jQuery.isFunction( selector ) ) {
+			return rootjQuery.ready( selector );
+		}
+
+		if (selector.selector !== undefined) {
+			this.selector = selector.selector;
+			this.context = selector.context;
+		}
+
+		return jQuery.makeArray( selector, this );
+	},
+
+	// Start with an empty selector
+	selector: "",
+
+	// The current version of jQuery being used
+	jquery: "1.4.2",
+
+	// The default length of a jQuery object is 0
+	length: 0,
+
+	// The number of elements contained in the matched element set
+	size: function() {
+		return this.length;
+	},
+
+	toArray: function() {
+		return slice.call( this, 0 );
+	},
+
+	// Get the Nth element in the matched element set OR
+	// Get the whole matched element set as a clean array
+	get: function( num ) {
+		return num == null ?
+
+			// Return a 'clean' array
+			this.toArray() :
+
+			// Return just the object
+			( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
+	},
+
+	// Take an array of elements and push it onto the stack
+	// (returning the new matched element set)
+	pushStack: function( elems, name, selector ) {
+		// Build a new jQuery matched element set
+		var ret = jQuery();
+
+		if ( jQuery.isArray( elems ) ) {
+			push.apply( ret, elems );
+		
+		} else {
+			jQuery.merge( ret, elems );
+		}
+
+		// Add the old object onto the stack (as a reference)
+		ret.prevObject = this;
+
+		ret.context = this.context;
+
+		if ( name === "find" ) {
+			ret.selector = this.selector + (this.selector ? " " : "") + selector;
+		} else if ( name ) {
+			ret.selector = this.selector + "." + name + "(" + selector + ")";
+		}
+
+		// Return the newly-formed element set
+		return ret;
+	},
+
+	// Execute a callback for every element in the matched set.
+	// (You can seed the arguments with an array of args, but this is
+	// only used internally.)
+	each: function( callback, args ) {
+		return jQuery.each( this, callback, args );
+	},
+	
+	ready: function( fn ) {
+		// Attach the listeners
+		jQuery.bindReady();
+
+		// If the DOM is already ready
+		if ( jQuery.isReady ) {
+			// Execute the function immediately
+			fn.call( document, jQuery );
+
+		// Otherwise, remember the function for later
+		} else if ( readyList ) {
+			// Add the function to the wait list
+			readyList.push( fn );
+		}
+
+		return this;
+	},
+	
+	eq: function( i ) {
+		return i === -1 ?
+			this.slice( i ) :
+			this.slice( i, +i + 1 );
+	},
+
+	first: function() {
+		return this.eq( 0 );
+	},
+
+	last: function() {
+		return this.eq( -1 );
+	},
+
+	slice: function() {
+		return this.pushStack( slice.apply( this, arguments ),
+			"slice", slice.call(arguments).join(",") );
+	},
+
+	map: function( callback ) {
+		return this.pushStack( jQuery.map(this, function( elem, i ) {
+			return callback.call( elem, i, elem );
+		}));
+	},
+	
+	end: function() {
+		return this.prevObject || jQuery(null);
+	},
+
+	// For internal use only.
+	// Behaves like an Array's method, not like a jQuery method.
+	push: push,
+	sort: [].sort,
+	splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+	// copy reference to target object
+	var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy;
+
+	// Handle a deep copy situation
+	if ( typeof target === "boolean" ) {
+		deep = target;
+		target = arguments[1] || {};
+		// skip the boolean and the target
+		i = 2;
+	}
+
+	// Handle case when target is a string or something (possible in deep copy)
+	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+		target = {};
+	}
+
+	// extend jQuery itself if only one argument is passed
+	if ( length === i ) {
+		target = this;
+		--i;
+	}
+
+	for ( ; i < length; i++ ) {
+		// Only deal with non-null/undefined values
+		if ( (options = arguments[ i ]) != null ) {
+			// Extend the base object
+			for ( name in options ) {
+				src = target[ name ];
+				copy = options[ name ];
+
+				// Prevent never-ending loop
+				if ( target === copy ) {
+					continue;
+				}
+
+				// Recurse if we're merging object literal values or arrays
+				if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) {
+					var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src
+						: jQuery.isArray(copy) ? [] : {};
+
+					// Never move original objects, clone them
+					target[ name ] = jQuery.extend( deep, clone, copy );
+
+				// Don't bring in undefined values
+				} else if ( copy !== undefined ) {
+					target[ name ] = copy;
+				}
+			}
+		}
+	}
+
+	// Return the modified object
+	return target;
+};
+
+jQuery.extend({
+	noConflict: function( deep ) {
+		window.$ = _$;
+
+		if ( deep ) {
+			window.jQuery = _jQuery;
+		}
+
+		return jQuery;
+	},
+	
+	// Is the DOM ready to be used? Set to true once it occurs.
+	isReady: false,
+	
+	// Handle when the DOM is ready
+	ready: function() {
+		// Make sure that the DOM is not already loaded
+		if ( !jQuery.isReady ) {
+			// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+			if ( !document.body ) {
+				return setTimeout( jQuery.ready, 13 );
+			}
+
+			// Remember that the DOM is ready
+			jQuery.isReady = true;
+
+			// If there are functions bound, to execute
+			if ( readyList ) {
+				// Execute all of them
+				var fn, i = 0;
+				while ( (fn = readyList[ i++ ]) ) {
+					fn.call( document, jQuery );
+				}
+
+				// Reset the list of functions
+				readyList = null;
+			}
+
+			// Trigger any bound ready events
+			if ( jQuery.fn.triggerHandler ) {
+				jQuery( document ).triggerHandler( "ready" );
+			}
+		}
+	},
+	
+	bindReady: function() {
+		if ( readyBound ) {
+			return;
+		}
+
+		readyBound = true;
+
+		// Catch cases where $(document).ready() is called after the
+		// browser event has already occurred.
+		if ( document.readyState === "complete" ) {
+			return jQuery.ready();
+		}
+
+		// Mozilla, Opera and webkit nightlies currently support this event
+		if ( document.addEventListener ) {
+			// Use the handy event callback
+			document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+			
+			// A fallback to window.onload, that will always work
+			window.addEventListener( "load", jQuery.ready, false );
+
+		// If IE event model is used
+		} else if ( document.attachEvent ) {
+			// ensure firing before onload,
+			// maybe late but safe also for iframes
+			document.attachEvent("onreadystatechange", DOMContentLoaded);
+			
+			// A fallback to window.onload, that will always work
+			window.attachEvent( "onload", jQuery.ready );
+
+			// If IE and not a frame
+			// continually check to see if the document is ready
+			var toplevel = false;
+
+			try {
+				toplevel = window.frameElement == null;
+			} catch(e) {}
+
+			if ( document.documentElement.doScroll && toplevel ) {
+				doScrollCheck();
+			}
+		}
+	},
+
+	// See test/unit/core.js for details concerning isFunction.
+	// Since version 1.3, DOM methods and functions like alert
+	// aren't supported. They return false on IE (#2968).
+	isFunction: function( obj ) {
+		return toString.call(obj) === "[object Function]";
+	},
+
+	isArray: function( obj ) {
+		return toString.call(obj) === "[object Array]";
+	},
+
+	isPlainObject: function( obj ) {
+		// Must be an Object.
+		// Because of IE, we also have to check the presence of the constructor property.
+		// Make sure that DOM nodes and window objects don't pass through, as well
+		if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) {
+			return false;
+		}
+		
+		// Not own constructor property must be Object
+		if ( obj.constructor
+			&& !hasOwnProperty.call(obj, "constructor")
+			&& !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) {
+			return false;
+		}
+		
+		// Own properties are enumerated firstly, so to speed up,
+		// if last one is own, then all properties are own.
+	
+		var key;
+		for ( key in obj ) {}
+		
+		return key === undefined || hasOwnProperty.call( obj, key );
+	},
+
+	isEmptyObject: function( obj ) {
+		for ( var name in obj ) {
+			return false;
+		}
+		return true;
+	},
+	
+	error: function( msg ) {
+		throw msg;
+	},
+	
+	parseJSON: function( data ) {
+		if ( typeof data !== "string" || !data ) {
+			return null;
+		}
+
+		// Make sure leading/trailing whitespace is removed (IE can't handle it)
+		data = jQuery.trim( data );
+		
+		// Make sure the incoming data is actual JSON
+		// Logic borrowed from http://json.org/json2.js
+		if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@")
+			.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]")
+			.replace(/(?:^|:|,)(?:\s*\[)+/g, "")) ) {
+
+			// Try to use the native JSON parser first
+			return window.JSON && window.JSON.parse ?
+				window.JSON.parse( data ) :
+				(new Function("return " + data))();
+
+		} else {
+			jQuery.error( "Invalid JSON: " + data );
+		}
+	},
+
+	noop: function() {},
+
+	// Evalulates a script in a global context
+	globalEval: function( data ) {
+		if ( data && rnotwhite.test(data) ) {
+			// Inspired by code by Andrea Giammarchi
+			// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
+			var head = document.getElementsByTagName("head")[0] || document.documentElement,
+				script = document.createElement("script");
+
+			script.type = "text/javascript";
+
+			if ( jQuery.support.scriptEval ) {
+				script.appendChild( document.createTextNode( data ) );
+			} else {
+				script.text = data;
+			}
+
+			// Use insertBefore instead of appendChild to circumvent an IE6 bug.
+			// This arises when a base node is used (#2709).
+			head.insertBefore( script, head.firstChild );
+			head.removeChild( script );
+		}
+	},
+
+	nodeName: function( elem, name ) {
+		return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+	},
+
+	// args is for internal usage only
+	each: function( object, callback, args ) {
+		var name, i = 0,
+			length = object.length,
+			isObj = length === undefined || jQuery.isFunction(object);
+
+		if ( args ) {
+			if ( isObj ) {
+				for ( name in object ) {
+					if ( callback.apply( object[ name ], args ) === false ) {
+						break;
+					}
+				}
+			} else {
+				for ( ; i < length; ) {
+					if ( callback.apply( object[ i++ ], args ) === false ) {
+						break;
+					}
+				}
+			}
+
+		// A special, fast, case for the most common use of each
+		} else {
+			if ( isObj ) {
+				for ( name in object ) {
+					if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+						break;
+					}
+				}
+			} else {
+				for ( var value = object[0];
+					i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
+			}
+		}
+
+		return object;
+	},
+
+	trim: function( text ) {
+		return (text || "").replace( rtrim, "" );
+	},
+
+	// results is for internal usage only
+	makeArray: function( array, results ) {
+		var ret = results || [];
+
+		if ( array != null ) {
+			// The window, strings (and functions) also have 'length'
+			// The extra typeof function check is to prevent crashes
+			// in Safari 2 (See: #3039)
+			if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) {
+				push.call( ret, array );
+			} else {
+				jQuery.merge( ret, array );
+			}
+		}
+
+		return ret;
+	},
+
+	inArray: function( elem, array ) {
+		if ( array.indexOf ) {
+			return array.indexOf( elem );
+		}
+
+		for ( var i = 0, length = array.length; i < length; i++ ) {
+			if ( array[ i ] === elem ) {
+				return i;
+			}
+		}
+
+		return -1;
+	},
+
+	merge: function( first, second ) {
+		var i = first.length, j = 0;
+
+		if ( typeof second.length === "number" ) {
+			for ( var l = second.length; j < l; j++ ) {
+				first[ i++ ] = second[ j ];
+			}
+		
+		} else {
+			while ( second[j] !== undefined ) {
+				first[ i++ ] = second[ j++ ];
+			}
+		}
+
+		first.length = i;
+
+		return first;
+	},
+
+	grep: function( elems, callback, inv ) {
+		var ret = [];
+
+		// Go through the array, only saving the items
+		// that pass the validator function
+		for ( var i = 0, length = elems.length; i < length; i++ ) {
+			if ( !inv !== !callback( elems[ i ], i ) ) {
+				ret.push( elems[ i ] );
+			}
+		}
+
+		return ret;
+	},
+
+	// arg is for internal usage only
+	map: function( elems, callback, arg ) {
+		var ret = [], value;
+
+		// Go through the array, translating each of the items to their
+		// new value (or values).
+		for ( var i = 0, length = elems.length; i < length; i++ ) {
+			value = callback( elems[ i ], i, arg );
+
+			if ( value != null ) {
+				ret[ ret.length ] = value;
+			}
+		}
+
+		return ret.concat.apply( [], ret );
+	},
+
+	// A global GUID counter for objects
+	guid: 1,
+
+	proxy: function( fn, proxy, thisObject ) {
+		if ( arguments.length === 2 ) {
+			if ( typeof proxy === "string" ) {
+				thisObject = fn;
+				fn = thisObject[ proxy ];
+				proxy = undefined;
+
+			} else if ( proxy && !jQuery.isFunction( proxy ) ) {
+				thisObject = proxy;
+				proxy = undefined;
+			}
+		}
+
+		if ( !proxy && fn ) {
+			proxy = function() {
+				return fn.apply( thisObject || this, arguments );
+			};
+		}
+
+		// Set the guid of unique handler to the same of original handler, so it can be removed
+		if ( fn ) {
+			proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+		}
+
+		// So proxy can be declared as an argument
+		return proxy;
+	},
+
+	// Use of jQuery.browser is frowned upon.
+	// More details: http://docs.jquery.com/Utilities/jQuery.browser
+	uaMatch: function( ua ) {
+		ua = ua.toLowerCase();
+
+		var match = /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
+			/(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) ||
+			/(msie) ([\w.]+)/.exec( ua ) ||
+			!/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) ||
+		  	[];
+
+		return { browser: match[1] || "", version: match[2] || "0" };
+	},
+
+	browser: {}
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+	jQuery.browser[ browserMatch.browser ] = true;
+	jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+	jQuery.browser.safari = true;
+}
+
+if ( indexOf ) {
+	jQuery.inArray = function( elem, array ) {
+		return indexOf.call( array, elem );
+	};
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+	DOMContentLoaded = function() {
+		document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+		jQuery.ready();
+	};
+
+} else if ( document.attachEvent ) {
+	DOMContentLoaded = function() {
+		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+		if ( document.readyState === "complete" ) {
+			document.detachEvent( "onreadystatechange", DOMContentLoaded );
+			jQuery.ready();
+		}
+	};
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+	if ( jQuery.isReady ) {
+		return;
+	}
+
+	try {
+		// If IE is used, use the trick by Diego Perini
+		// http://javascript.nwbox.com/IEContentLoaded/
+		document.documentElement.doScroll("left");
+	} catch( error ) {
+		setTimeout( doScrollCheck, 1 );
+		return;
+	}
+
+	// and execute any waiting functions
+	jQuery.ready();
+}
+
+function evalScript( i, elem ) {
+	if ( elem.src ) {
+		jQuery.ajax({
+			url: elem.src,
+			async: false,
+			dataType: "script"
+		});
+	} else {
+		jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
+	}
+
+	if ( elem.parentNode ) {
+		elem.parentNode.removeChild( elem );
+	}
+}
+
+// Mutifunctional method to get and set values to a collection
+// The value/s can be optionally by executed if its a function
+function access( elems, key, value, exec, fn, pass ) {
+	var length = elems.length;
+	
+	// Setting many attributes
+	if ( typeof key === "object" ) {
+		for ( var k in key ) {
+			access( elems, k, key[k], exec, fn, value );
+		}
+		return elems;
+	}
+	
+	// Setting one attribute
+	if ( value !== undefined ) {
+		// Optionally, function values get executed if exec is true
+		exec = !pass && exec && jQuery.isFunction(value);
+		
+		for ( var i = 0; i < length; i++ ) {
+			fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+		}
+		
+		return elems;
+	}
+	
+	// Getting an attribute
+	return length ? fn( elems[0], key ) : undefined;
+}
+
+function now() {
+	return (new Date).getTime();
+}
+(function() {
+
+	jQuery.support = {};
+
+	var root = document.documentElement,
+		script = document.createElement("script"),
+		div = document.createElement("div"),
+		id = "script" + now();
+
+	div.style.display = "none";
+	div.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+
+	var all = div.getElementsByTagName("*"),
+		a = div.getElementsByTagName("a")[0];
+
+	// Can't get basic test support
+	if ( !all || !all.length || !a ) {
+		return;
+	}
+
+	jQuery.support = {
+		// IE strips leading whitespace when .innerHTML is used
+		leadingWhitespace: div.firstChild.nodeType === 3,
+
+		// Make sure that tbody elements aren't automatically inserted
+		// IE will insert them into empty tables
+		tbody: !div.getElementsByTagName("tbody").length,
+
+		// Make sure that link elements get serialized correctly by innerHTML
+		// This requires a wrapper element in IE
+		htmlSerialize: !!div.getElementsByTagName("link").length,
+
+		// Get the style information from getAttribute
+		// (IE uses .cssText insted)
+		style: /red/.test( a.getAttribute("style") ),
+
+		// Make sure that URLs aren't manipulated
+		// (IE normalizes it by default)
+		hrefNormalized: a.getAttribute("href") === "/a",
+
+		// Make sure that element opacity exists
+		// (IE uses filter instead)
+		// Use a regex to work around a WebKit issue. See #5145
+		opacity: /^0.55$/.test( a.style.opacity ),
+
+		// Verify style float existence
+		// (IE uses styleFloat instead of cssFloat)
+		cssFloat: !!a.style.cssFloat,
+
+		// Make sure that if no value is specified for a checkbox
+		// that it defaults to "on".
+		// (WebKit defaults to "" instead)
+		checkOn: div.getElementsByTagName("input")[0].value === "on",
+
+		// Make sure that a selected-by-default option has a working selected property.
+		// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+		optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected,
+
+		parentNode: div.removeChild( div.appendChild( document.createElement("div") ) ).parentNode === null,
+
+		// Will be defined later
+		deleteExpando: true,
+		checkClone: false,
+		scriptEval: false,
+		noCloneEvent: true,
+		boxModel: null
+	};
+
+	script.type = "text/javascript";
+	try {
+		script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
+	} catch(e) {}
+
+	root.insertBefore( script, root.firstChild );
+
+	// Make sure that the execution of code works by injecting a script
+	// tag with appendChild/createTextNode
+	// (IE doesn't support this, fails, and uses .text instead)
+	if ( window[ id ] ) {
+		jQuery.support.scriptEval = true;
+		delete window[ id ];
+	}
+
+	// Test to see if it's possible to delete an expando from an element
+	// Fails in Internet Explorer
+	try {
+		delete script.test;
+	
+	} catch(e) {
+		jQuery.support.deleteExpando = false;
+	}
+
+	root.removeChild( script );
+
+	if ( div.attachEvent && div.fireEvent ) {
+		div.attachEvent("onclick", function click() {
+			// Cloning a node shouldn't copy over any
+			// bound event handlers (IE does this)
+			jQuery.support.noCloneEvent = false;
+			div.detachEvent("onclick", click);
+		});
+		div.cloneNode(true).fireEvent("onclick");
+	}
+
+	div = document.createElement("div");
+	div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
+
+	var fragment = document.createDocumentFragment();
+	fragment.appendChild( div.firstChild );
+
+	// WebKit doesn't clone checked state correctly in fragments
+	jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
+
+	// Figure out if the W3C box model works as expected
+	// document.body must exist before we can do this
+	jQuery(function() {
+		var div = document.createElement("div");
+		div.style.width = div.style.paddingLeft = "1px";
+
+		document.body.appendChild( div );
+		jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
+		document.body.removeChild( div ).style.display = 'none';
+
+		div = null;
+	});
+
+	// Technique from Juriy Zaytsev
+	// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
+	var eventSupported = function( eventName ) { 
+		var el = document.createElement("div"); 
+		eventName = "on" + eventName; 
+
+		var isSupported = (eventName in el); 
+		if ( !isSupported ) { 
+			el.setAttribute(eventName, "return;"); 
+			isSupported = typeof el[eventName] === "function"; 
+		} 
+		el = null; 
+
+		return isSupported; 
+	};
+	
+	jQuery.support.submitBubbles = eventSupported("submit");
+	jQuery.support.changeBubbles = eventSupported("change");
+
+	// release memory in IE
+	root = script = div = all = a = null;
+})();
+
+jQuery.props = {
+	"for": "htmlFor",
+	"class": "className",
+	readonly: "readOnly",
+	maxlength: "maxLength",
+	cellspacing: "cellSpacing",
+	rowspan: "rowSpan",
+	colspan: "colSpan",
+	tabindex: "tabIndex",
+	usemap: "useMap",
+	frameborder: "frameBorder"
+};
+var expando = "jQuery" + now(), uuid = 0, windowData = {};
+
+jQuery.extend({
+	cache: {},
+	
+	expando:expando,
+
+	// The following elements throw uncatchable exceptions if you
+	// attempt to add expando properties to them.
+	noData: {
+		"embed": true,
+		"object": true,
+		"applet": true
+	},
+
+	data: function( elem, name, data ) {
+		if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+			return;
+		}
+
+		elem = elem == window ?
+			windowData :
+			elem;
+
+		var id = elem[ expando ], cache = jQuery.cache, thisCache;
+
+		if ( !id && typeof name === "string" && data === undefined ) {
+			return null;
+		}
+
+		// Compute a unique ID for the element
+		if ( !id ) { 
+			id = ++uuid;
+		}
+
+		// Avoid generating a new cache unless none exists and we
+		// want to manipulate it.
+		if ( typeof name === "object" ) {
+			elem[ expando ] = id;
+			thisCache = cache[ id ] = jQuery.extend(true, {}, name);
+
+		} else if ( !cache[ id ] ) {
+			elem[ expando ] = id;
+			cache[ id ] = {};
+		}
+
+		thisCache = cache[ id ];
+
+		// Prevent overriding the named cache with undefined values
+		if ( data !== undefined ) {
+			thisCache[ name ] = data;
+		}
+
+		return typeof name === "string" ? thisCache[ name ] : thisCache;
+	},
+
+	removeData: function( elem, name ) {
+		if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+			return;
+		}
+
+		elem = elem == window ?
+			windowData :
+			elem;
+
+		var id = elem[ expando ], cache = jQuery.cache, thisCache = cache[ id ];
+
+		// If we want to remove a specific section of the element's data
+		if ( name ) {
+			if ( thisCache ) {
+				// Remove the section of cache data
+				delete thisCache[ name ];
+
+				// If we've removed all the data, remove the element's cache
+				if ( jQuery.isEmptyObject(thisCache) ) {
+					jQuery.removeData( elem );
+				}
+			}
+
+		// Otherwise, we want to remove all of the element's data
+		} else {
+			if ( jQuery.support.deleteExpando ) {
+				delete elem[ jQuery.expando ];
+
+			} else if ( elem.removeAttribute ) {
+				elem.removeAttribute( jQuery.expando );
+			}
+
+			// Completely remove the data cache
+			delete cache[ id ];
+		}
+	}
+});
+
+jQuery.fn.extend({
+	data: function( key, value ) {
+		if ( typeof key === "undefined" && this.length ) {
+			return jQuery.data( this[0] );
+
+		} else if ( typeof key === "object" ) {
+			return this.each(function() {
+				jQuery.data( this, key );
+			});
+		}
+
+		var parts = key.split(".");
+		parts[1] = parts[1] ? "." + parts[1] : "";
+
+		if ( value === undefined ) {
+			var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+			if ( data === undefined && this.length ) {
+				data = jQuery.data( this[0], key );
+			}
+			return data === undefined && parts[1] ?
+				this.data( parts[0] ) :
+				data;
+		} else {
+			return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() {
+				jQuery.data( this, key, value );
+			});
+		}
+	},
+
+	removeData: function( key ) {
+		return this.each(function() {
+			jQuery.removeData( this, key );
+		});
+	}
+});
+jQuery.extend({
+	queue: function( elem, type, data ) {
+		if ( !elem ) {
+			return;
+		}
+
+		type = (type || "fx") + "queue";
+		var q = jQuery.data( elem, type );
+
+		// Speed up dequeue by getting out quickly if this is just a lookup
+		if ( !data ) {
+			return q || [];
+		}
+
+		if ( !q || jQuery.isArray(data) ) {
+			q = jQuery.data( elem, type, jQuery.makeArray(data) );
+
+		} else {
+			q.push( data );
+		}
+
+		return q;
+	},
+
+	dequeue: function( elem, type ) {
+		type = type || "fx";
+
+		var queue = jQuery.queue( elem, type ), fn = queue.shift();
+
+		// If the fx queue is dequeued, always remove the progress sentinel
+		if ( fn === "inprogress" ) {
+			fn = queue.shift();
+		}
+
+		if ( fn ) {
+			// Add a progress sentinel to prevent the fx queue from being
+			// automatically dequeued
+			if ( type === "fx" ) {
+				queue.unshift("inprogress");
+			}
+
+			fn.call(elem, function() {
+				jQuery.dequeue(elem, type);
+			});
+		}
+	}
+});
+
+jQuery.fn.extend({
+	queue: function( type, data ) {
+		if ( typeof type !== "string" ) {
+			data = type;
+			type = "fx";
+		}
+
+		if ( data === undefined ) {
+			return jQuery.queue( this[0], type );
+		}
+		return this.each(function( i, elem ) {
+			var queue = jQuery.queue( this, type, data );
+
+			if ( type === "fx" && queue[0] !== "inprogress" ) {
+				jQuery.dequeue( this, type );
+			}
+		});
+	},
+	dequeue: function( type ) {
+		return this.each(function() {
+			jQuery.dequeue( this, type );
+		});
+	},
+
+	// Based off of the plugin by Clint Helfers, with permission.
+	// http://blindsignals.com/index.php/2009/07/jquery-delay/
+	delay: function( time, type ) {
+		time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
+		type = type || "fx";
+
+		return this.queue( type, function() {
+			var elem = this;
+			setTimeout(function() {
+				jQuery.dequeue( elem, type );
+			}, time );
+		});
+	},
+
+	clearQueue: function( type ) {
+		return this.queue( type || "fx", [] );
+	}
+});
+var rclass = /[\n\t]/g,
+	rspace = /\s+/,
+	rreturn = /\r/g,
+	rspecialurl = /href|src|style/,
+	rtype = /(button|input)/i,
+	rfocusable = /(button|input|object|select|textarea)/i,
+	rclickable = /^(a|area)$/i,
+	rradiocheck = /radio|checkbox/;
+
+jQuery.fn.extend({
+	attr: function( name, value ) {
+		return access( this, name, value, true, jQuery.attr );
+	},
+
+	removeAttr: function( name, fn ) {
+		return this.each(function(){
+			jQuery.attr( this, name, "" );
+			if ( this.nodeType === 1 ) {
+				this.removeAttribute( name );
+			}
+		});
+	},
+
+	addClass: function( value ) {
+		if ( jQuery.isFunction(value) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.addClass( value.call(this, i, self.attr("class")) );
+			});
+		}
+
+		if ( value && typeof value === "string" ) {
+			var classNames = (value || "").split( rspace );
+
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var elem = this[i];
+
+				if ( elem.nodeType === 1 ) {
+					if ( !elem.className ) {
+						elem.className = value;
+
+					} else {
+						var className = " " + elem.className + " ", setClass = elem.className;
+						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
+							if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
+								setClass += " " + classNames[c];
+							}
+						}
+						elem.className = jQuery.trim( setClass );
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	removeClass: function( value ) {
+		if ( jQuery.isFunction(value) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.removeClass( value.call(this, i, self.attr("class")) );
+			});
+		}
+
+		if ( (value && typeof value === "string") || value === undefined ) {
+			var classNames = (value || "").split(rspace);
+
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var elem = this[i];
+
+				if ( elem.nodeType === 1 && elem.className ) {
+					if ( value ) {
+						var className = (" " + elem.className + " ").replace(rclass, " ");
+						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
+							className = className.replace(" " + classNames[c] + " ", " ");
+						}
+						elem.className = jQuery.trim( className );
+
+					} else {
+						elem.className = "";
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	toggleClass: function( value, stateVal ) {
+		var type = typeof value, isBool = typeof stateVal === "boolean";
+
+		if ( jQuery.isFunction( value ) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
+			});
+		}
+
+		return this.each(function() {
+			if ( type === "string" ) {
+				// toggle individual class names
+				var className, i = 0, self = jQuery(this),
+					state = stateVal,
+					classNames = value.split( rspace );
+
+				while ( (className = classNames[ i++ ]) ) {
+					// check each className given, space seperated list
+					state = isBool ? state : !self.hasClass( className );
+					self[ state ? "addClass" : "removeClass" ]( className );
+				}
+
+			} else if ( type === "undefined" || type === "boolean" ) {
+				if ( this.className ) {
+					// store className if set
+					jQuery.data( this, "__className__", this.className );
+				}
+
+				// toggle whole className
+				this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
+			}
+		});
+	},
+
+	hasClass: function( selector ) {
+		var className = " " + selector + " ";
+		for ( var i = 0, l = this.length; i < l; i++ ) {
+			if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+				return true;
+			}
+		}
+
+		return false;
+	},
+
+	val: function( value ) {
+		if ( value === undefined ) {
+			var elem = this[0];
+
+			if ( elem ) {
+				if ( jQuery.nodeName( elem, "option" ) ) {
+					return (elem.attributes.value || {}).specified ? elem.value : elem.text;
+				}
+
+				// We need to handle select boxes special
+				if ( jQuery.nodeName( elem, "select" ) ) {
+					var index = elem.selectedIndex,
+						values = [],
+						options = elem.options,
+						one = elem.type === "select-one";
+
+					// Nothing was selected
+					if ( index < 0 ) {
+						return null;
+					}
+
+					// Loop through all the selected options
+					for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
+						var option = options[ i ];
+
+						if ( option.selected ) {
+							// Get the specifc value for the option
+							value = jQuery(option).val();
+
+							// We don't need an array for one selects
+							if ( one ) {
+								return value;
+							}
+
+							// Multi-Selects return an array
+							values.push( value );
+						}
+					}
+
+					return values;
+				}
+
+				// Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+				if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
+					return elem.getAttribute("value") === null ? "on" : elem.value;
+				}
+				
+
+				// Everything else, we just grab the value
+				return (elem.value || "").replace(rreturn, "");
+
+			}
+
+			return undefined;
+		}
+
+		var isFunction = jQuery.isFunction(value);
+
+		return this.each(function(i) {
+			var self = jQuery(this), val = value;
+
+			if ( this.nodeType !== 1 ) {
+				return;
+			}
+
+			if ( isFunction ) {
+				val = value.call(this, i, self.val());
+			}
+
+			// Typecast each time if the value is a Function and the appended
+			// value is therefore different each time.
+			if ( typeof val === "number" ) {
+				val += "";
+			}
+
+			if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
+				this.checked = jQuery.inArray( self.val(), val ) >= 0;
+
+			} else if ( jQuery.nodeName( this, "select" ) ) {
+				var values = jQuery.makeArray(val);
+
+				jQuery( "option", this ).each(function() {
+					this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+				});
+
+				if ( !values.length ) {
+					this.selectedIndex = -1;
+				}
+
+			} else {
+				this.value = val;
+			}
+		});
+	}
+});
+
+jQuery.extend({
+	attrFn: {
+		val: true,
+		css: true,
+		html: true,
+		text: true,
+		data: true,
+		width: true,
+		height: true,
+		offset: true
+	},
+		
+	attr: function( elem, name, value, pass ) {
+		// don't set attributes on text and comment nodes
+		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return undefined;
+		}
+
+		if ( pass && name in jQuery.attrFn ) {
+			return jQuery(elem)[name](value);
+		}
+
+		var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
+			// Whether we are setting (or getting)
+			set = value !== undefined;
+
+		// Try to normalize/fix the name
+		name = notxml && jQuery.props[ name ] || name;
+
+		// Only do all the following if this is a node (faster for style)
+		if ( elem.nodeType === 1 ) {
+			// These attributes require special treatment
+			var special = rspecialurl.test( name );
+
+			// Safari mis-reports the default selected property of an option
+			// Accessing the parent's selectedIndex property fixes it
+			if ( name === "selected" && !jQuery.support.optSelected ) {
+				var parent = elem.parentNode;
+				if ( parent ) {
+					parent.selectedIndex;
+	
+					// Make sure that it also works with optgroups, see #5701
+					if ( parent.parentNode ) {
+						parent.parentNode.selectedIndex;
+					}
+				}
+			}
+
+			// If applicable, access the attribute via the DOM 0 way
+			if ( name in elem && notxml && !special ) {
+				if ( set ) {
+					// We can't allow the type property to be changed (since it causes problems in IE)
+					if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
+						jQuery.error( "type property can't be changed" );
+					}
+
+					elem[ name ] = value;
+				}
+
+				// browsers index elements by id/name on forms, give priority to attributes.
+				if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
+					return elem.getAttributeNode( name ).nodeValue;
+				}
+
+				// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+				if ( name === "tabIndex" ) {
+					var attributeNode = elem.getAttributeNode( "tabIndex" );
+
+					return attributeNode && attributeNode.specified ?
+						attributeNode.value :
+						rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+							0 :
+							undefined;
+				}
+
+				return elem[ name ];
+			}
+
+			if ( !jQuery.support.style && notxml && name === "style" ) {
+				if ( set ) {
+					elem.style.cssText = "" + value;
+				}
+
+				return elem.style.cssText;
+			}
+
+			if ( set ) {
+				// convert the value to a string (all browsers do this but IE) see #1070
+				elem.setAttribute( name, "" + value );
+			}
+
+			var attr = !jQuery.support.hrefNormalized && notxml && special ?
+					// Some attributes require a special call on IE
+					elem.getAttribute( name, 2 ) :
+					elem.getAttribute( name );
+
+			// Non-existent attributes return null, we normalize to undefined
+			return attr === null ? undefined : attr;
+		}
+
+		// elem is actually elem.style ... set the style
+		// Using attr for specific style information is now deprecated. Use style instead.
+		return jQuery.style( elem, name, value );
+	}
+});
+var rnamespaces = /\.(.*)$/,
+	fcleanup = function( nm ) {
+		return nm.replace(/[^\w\s\.\|`]/g, function( ch ) {
+			return "\\" + ch;
+		});
+	};
+
+/*
+ * A number of helper functions used for managing events.
+ * Many of the ideas behind this code originated from
+ * Dean Edwards' addEvent library.
+ */
+jQuery.event = {
+
+	// Bind an event to an element
+	// Original by Dean Edwards
+	add: function( elem, types, handler, data ) {
+		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return;
+		}
+
+		// For whatever reason, IE has trouble passing the window object
+		// around, causing it to be cloned in the process
+		if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) {
+			elem = window;
+		}
+
+		var handleObjIn, handleObj;
+
+		if ( handler.handler ) {
+			handleObjIn = handler;
+			handler = handleObjIn.handler;
+		}
+
+		// Make sure that the function being executed has a unique ID
+		if ( !handler.guid ) {
+			handler.guid = jQuery.guid++;
+		}
+
+		// Init the element's event structure
+		var elemData = jQuery.data( elem );
+
+		// If no elemData is found then we must be trying to bind to one of the
+		// banned noData elements
+		if ( !elemData ) {
+			return;
+		}
+
+		var events = elemData.events = elemData.events || {},
+			eventHandle = elemData.handle, eventHandle;
+
+		if ( !eventHandle ) {
+			elemData.handle = eventHandle = function() {
+				// Handle the second event of a trigger and when
+				// an event is called after a page has unloaded
+				return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
+					jQuery.event.handle.apply( eventHandle.elem, arguments ) :
+					undefined;
+			};
+		}
+
+		// Add elem as a property of the handle function
+		// This is to prevent a memory leak with non-native events in IE.
+		eventHandle.elem = elem;
+
+		// Handle multiple events separated by a space
+		// jQuery(...).bind("mouseover mouseout", fn);
+		types = types.split(" ");
+
+		var type, i = 0, namespaces;
+
+		while ( (type = types[ i++ ]) ) {
+			handleObj = handleObjIn ?
+				jQuery.extend({}, handleObjIn) :
+				{ handler: handler, data: data };
+
+			// Namespaced event handlers
+			if ( type.indexOf(".") > -1 ) {
+				namespaces = type.split(".");
+				type = namespaces.shift();
+				handleObj.namespace = namespaces.slice(0).sort().join(".");
+
+			} else {
+				namespaces = [];
+				handleObj.namespace = "";
+			}
+
+			handleObj.type = type;
+			handleObj.guid = handler.guid;
+
+			// Get the current list of functions bound to this event
+			var handlers = events[ type ],
+				special = jQuery.event.special[ type ] || {};
+
+			// Init the event handler queue
+			if ( !handlers ) {
+				handlers = events[ type ] = [];
+
+				// Check for a special event handler
+				// Only use addEventListener/attachEvent if the special
+				// events handler returns false
+				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+					// Bind the global event handler to the element
+					if ( elem.addEventListener ) {
+						elem.addEventListener( type, eventHandle, false );
+
+					} else if ( elem.attachEvent ) {
+						elem.attachEvent( "on" + type, eventHandle );
+					}
+				}
+			}
+			
+			if ( special.add ) { 
+				special.add.call( elem, handleObj ); 
+
+				if ( !handleObj.handler.guid ) {
+					handleObj.handler.guid = handler.guid;
+				}
+			}
+
+			// Add the function to the element's handler list
+			handlers.push( handleObj );
+
+			// Keep track of which events have been used, for global triggering
+			jQuery.event.global[ type ] = true;
+		}
+
+		// Nullify elem to prevent memory leaks in IE
+		elem = null;
+	},
+
+	global: {},
+
+	// Detach an event or set of events from an element
+	remove: function( elem, types, handler, pos ) {
+		// don't do events on text and comment nodes
+		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return;
+		}
+
+		var ret, type, fn, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
+			elemData = jQuery.data( elem ),
+			events = elemData && elemData.events;
+
+		if ( !elemData || !events ) {
+			return;
+		}
+
+		// types is actually an event object here
+		if ( types && types.type ) {
+			handler = types.handler;
+			types = types.type;
+		}
+
+		// Unbind all events for the element
+		if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
+			types = types || "";
+
+			for ( type in events ) {
+				jQuery.event.remove( elem, type + types );
+			}
+
+			return;
+		}
+
+		// Handle multiple events separated by a space
+		// jQuery(...).unbind("mouseover mouseout", fn);
+		types = types.split(" ");
+
+		while ( (type = types[ i++ ]) ) {
+			origType = type;
+			handleObj = null;
+			all = type.indexOf(".") < 0;
+			namespaces = [];
+
+			if ( !all ) {
+				// Namespaced event handlers
+				namespaces = type.split(".");
+				type = namespaces.shift();
+
+				namespace = new RegExp("(^|\\.)" + 
+					jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)")
+			}
+
+			eventType = events[ type ];
+
+			if ( !eventType ) {
+				continue;
+			}
+
+			if ( !handler ) {
+				for ( var j = 0; j < eventType.length; j++ ) {
+					handleObj = eventType[ j ];
+
+					if ( all || namespace.test( handleObj.namespace ) ) {
+						jQuery.event.remove( elem, origType, handleObj.handler, j );
+						eventType.splice( j--, 1 );
+					}
+				}
+
+				continue;
+			}
+
+			special = jQuery.event.special[ type ] || {};
+
+			for ( var j = pos || 0; j < eventType.length; j++ ) {
+				handleObj = eventType[ j ];
+
+				if ( handler.guid === handleObj.guid ) {
+					// remove the given handler for the given type
+					if ( all || namespace.test( handleObj.namespace ) ) {
+						if ( pos == null ) {
+							eventType.splice( j--, 1 );
+						}
+
+						if ( special.remove ) {
+							special.remove.call( elem, handleObj );
+						}
+					}
+
+					if ( pos != null ) {
+						break;
+					}
+				}
+			}
+
+			// remove generic event handler if no more handlers exist
+			if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
+				if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+					removeEvent( elem, type, elemData.handle );
+				}
+
+				ret = null;
+				delete events[ type ];
+			}
+		}
+
+		// Remove the expando if it's no longer used
+		if ( jQuery.isEmptyObject( events ) ) {
+			var handle = elemData.handle;
+			if ( handle ) {
+				handle.elem = null;
+			}
+
+			delete elemData.events;
+			delete elemData.handle;
+
+			if ( jQuery.isEmptyObject( elemData ) ) {
+				jQuery.removeData( elem );
+			}
+		}
+	},
+
+	// bubbling is internal
+	trigger: function( event, data, elem /*, bubbling */ ) {
+		// Event object or event type
+		var type = event.type || event,
+			bubbling = arguments[3];
+
+		if ( !bubbling ) {
+			event = typeof event === "object" ?
+				// jQuery.Event object
+				event[expando] ? event :
+				// Object literal
+				jQuery.extend( jQuery.Event(type), event ) :
+				// Just the event type (string)
+				jQuery.Event(type);
+
+			if ( type.indexOf("!") >= 0 ) {
+				event.type = type = type.slice(0, -1);
+				event.exclusive = true;
+			}
+
+			// Handle a global trigger
+			if ( !elem ) {
+				// Don't bubble custom events when global (to avoid too much overhead)
+				event.stopPropagation();
+
+				// Only trigger if we've ever bound an event for it
+				if ( jQuery.event.global[ type ] ) {
+					jQuery.each( jQuery.cache, function() {
+						if ( this.events && this.events[type] ) {
+							jQuery.event.trigger( event, data, this.handle.elem );
+						}
+					});
+				}
+			}
+
+			// Handle triggering a single element
+
+			// don't do events on text and comment nodes
+			if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
+				return undefined;
+			}
+
+			// Clean up in case it is reused
+			event.result = undefined;
+			event.target = elem;
+
+			// Clone the incoming data, if any
+			data = jQuery.makeArray( data );
+			data.unshift( event );
+		}
+
+		event.currentTarget = elem;
+
+		// Trigger the event, it is assumed that "handle" is a function
+		var handle = jQuery.data( elem, "handle" );
+		if ( handle ) {
+			handle.apply( elem, data );
+		}
+
+		var parent = elem.parentNode || elem.ownerDocument;
+
+		// Trigger an inline bound script
+		try {
+			if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
+				if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
+					event.result = false;
+				}
+			}
+
+		// prevent IE from throwing an error for some elements with some event types, see #3533
+		} catch (e) {}
+
+		if ( !event.isPropagationStopped() && parent ) {
+			jQuery.event.trigger( event, data, parent, true );
+
+		} else if ( !event.isDefaultPrevented() ) {
+			var target = event.target, old,
+				isClick = jQuery.nodeName(target, "a") && type === "click",
+				special = jQuery.event.special[ type ] || {};
+
+			if ( (!special._default || special._default.call( elem, event ) === false) && 
+				!isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
+
+				try {
+					if ( target[ type ] ) {
+						// Make sure that we don't accidentally re-trigger the onFOO events
+						old = target[ "on" + type ];
+
+						if ( old ) {
+							target[ "on" + type ] = null;
+						}
+
+						jQuery.event.triggered = true;
+						target[ type ]();
+					}
+
+				// prevent IE from throwing an error for some elements with some event types, see #3533
+				} catch (e) {}
+
+				if ( old ) {
+					target[ "on" + type ] = old;
+				}
+
+				jQuery.event.triggered = false;
+			}
+		}
+	},
+
+	handle: function( event ) {
+		var all, handlers, namespaces, namespace, events;
+
+		event = arguments[0] = jQuery.event.fix( event || window.event );
+		event.currentTarget = this;
+
+		// Namespaced event handlers
+		all = event.type.indexOf(".") < 0 && !event.exclusive;
+
+		if ( !all ) {
+			namespaces = event.type.split(".");
+			event.type = namespaces.shift();
+			namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)");
+		}
+
+		var events = jQuery.data(this, "events"), handlers = events[ event.type ];
+
+		if ( events && handlers ) {
+			// Clone the handlers to prevent manipulation
+			handlers = handlers.slice(0);
+
+			for ( var j = 0, l = handlers.length; j < l; j++ ) {
+				var handleObj = handlers[ j ];
+
+				// Filter the functions by class
+				if ( all || namespace.test( handleObj.namespace ) ) {
+					// Pass in a reference to the handler function itself
+					// So that we can later remove it
+					event.handler = handleObj.handler;
+					event.data = handleObj.data;
+					event.handleObj = handleObj;
+	
+					var ret = handleObj.handler.apply( this, arguments );
+
+					if ( ret !== undefined ) {
+						event.result = ret;
+						if ( ret === false ) {
+							event.preventDefault();
+							event.stopPropagation();
+						}
+					}
+
+					if ( event.isImmediatePropagationStopped() ) {
+						break;
+					}
+				}
+			}
+		}
+
+		return event.result;
+	},
+
+	props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+
+	fix: function( event ) {
+		if ( event[ expando ] ) {
+			return event;
+		}
+
+		// store a copy of the original event object
+		// and "clone" to set read-only properties
+		var originalEvent = event;
+		event = jQuery.Event( originalEvent );
+
+		for ( var i = this.props.length, prop; i; ) {
+			prop = this.props[ --i ];
+			event[ prop ] = originalEvent[ prop ];
+		}
+
+		// Fix target property, if necessary
+		if ( !event.target ) {
+			event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
+		}
+
+		// check if target is a textnode (safari)
+		if ( event.target.nodeType === 3 ) {
+			event.target = event.target.parentNode;
+		}
+
+		// Add relatedTarget, if necessary
+		if ( !event.relatedTarget && event.fromElement ) {
+			event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
+		}
+
+		// Calculate pageX/Y if missing and clientX/Y available
+		if ( event.pageX == null && event.clientX != null ) {
+			var doc = document.documentElement, body = document.body;
+			event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
+			event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
+		}
+
+		// Add which for key events
+		if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) {
+			event.which = event.charCode || event.keyCode;
+		}
+
+		// Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
+		if ( !event.metaKey && event.ctrlKey ) {
+			event.metaKey = event.ctrlKey;
+		}
+
+		// Add which for click: 1 === left; 2 === middle; 3 === right
+		// Note: button is not normalized, so don't use it
+		if ( !event.which && event.button !== undefined ) {
+			event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
+		}
+
+		return event;
+	},
+
+	// Deprecated, use jQuery.guid instead
+	guid: 1E8,
+
+	// Deprecated, use jQuery.proxy instead
+	proxy: jQuery.proxy,
+
+	special: {
+		ready: {
+			// Make sure the ready event is setup
+			setup: jQuery.bindReady,
+			teardown: jQuery.noop
+		},
+
+		live: {
+			add: function( handleObj ) {
+				jQuery.event.add( this, handleObj.origType, jQuery.extend({}, handleObj, {handler: liveHandler}) ); 
+			},
+
+			remove: function( handleObj ) {
+				var remove = true,
+					type = handleObj.origType.replace(rnamespaces, "");
+				
+				jQuery.each( jQuery.data(this, "events").live || [], function() {
+					if ( type === this.origType.replace(rnamespaces, "") ) {
+						remove = false;
+						return false;
+					}
+				});
+
+				if ( remove ) {
+					jQuery.event.remove( this, handleObj.origType, liveHandler );
+				}
+			}
+
+		},
+
+		beforeunload: {
+			setup: function( data, namespaces, eventHandle ) {
+				// We only want to do this special case on windows
+				if ( this.setInterval ) {
+					this.onbeforeunload = eventHandle;
+				}
+
+				return false;
+			},
+			teardown: function( namespaces, eventHandle ) {
+				if ( this.onbeforeunload === eventHandle ) {
+					this.onbeforeunload = null;
+				}
+			}
+		}
+	}
+};
+
+var removeEvent = document.removeEventListener ?
+	function( elem, type, handle ) {
+		elem.removeEventListener( type, handle, false );
+	} : 
+	function( elem, type, handle ) {
+		elem.detachEvent( "on" + type, handle );
+	};
+
+jQuery.Event = function( src ) {
+	// Allow instantiation without the 'new' keyword
+	if ( !this.preventDefault ) {
+		return new jQuery.Event( src );
+	}
+
+	// Event object
+	if ( src && src.type ) {
+		this.originalEvent = src;
+		this.type = src.type;
+	// Event type
+	} else {
+		this.type = src;
+	}
+
+	// timeStamp is buggy for some events on Firefox(#3843)
+	// So we won't rely on the native value
+	this.timeStamp = now();
+
+	// Mark it as fixed
+	this[ expando ] = true;
+};
+
+function returnFalse() {
+	return false;
+}
+function returnTrue() {
+	return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+	preventDefault: function() {
+		this.isDefaultPrevented = returnTrue;
+
+		var e = this.originalEvent;
+		if ( !e ) {
+			return;
+		}
+		
+		// if preventDefault exists run it on the original event
+		if ( e.preventDefault ) {
+			e.preventDefault();
+		}
+		// otherwise set the returnValue property of the original event to false (IE)
+		e.returnValue = false;
+	},
+	stopPropagation: function() {
+		this.isPropagationStopped = returnTrue;
+
+		var e = this.originalEvent;
+		if ( !e ) {
+			return;
+		}
+		// if stopPropagation exists run it on the original event
+		if ( e.stopPropagation ) {
+			e.stopPropagation();
+		}
+		// otherwise set the cancelBubble property of the original event to true (IE)
+		e.cancelBubble = true;
+	},
+	stopImmediatePropagation: function() {
+		this.isImmediatePropagationStopped = returnTrue;
+		this.stopPropagation();
+	},
+	isDefaultPrevented: returnFalse,
+	isPropagationStopped: returnFalse,
+	isImmediatePropagationStopped: returnFalse
+};
+
+// Checks if an event happened on an element within another element
+// Used in jQuery.event.special.mouseenter and mouseleave handlers
+var withinElement = function( event ) {
+	// Check if mouse(over|out) are still within the same parent element
+	var parent = event.relatedTarget;
+
+	// Firefox sometimes assigns relatedTarget a XUL element
+	// which we cannot access the parentNode property of
+	try {
+		// Traverse up the tree
+		while ( parent && parent !== this ) {
+			parent = parent.parentNode;
+		}
+
+		if ( parent !== this ) {
+			// set the correct event type
+			event.type = event.data;
+
+			// handle event if we actually just moused on to a non sub-element
+			jQuery.event.handle.apply( this, arguments );
+		}
+
+	// assuming we've left the element since we most likely mousedover a xul element
+	} catch(e) { }
+},
+
+// In case of event delegation, we only need to rename the event.type,
+// liveHandler will take care of the rest.
+delegate = function( event ) {
+	event.type = event.data;
+	jQuery.event.handle.apply( this, arguments );
+};
+
+// Create mouseenter and mouseleave events
+jQuery.each({
+	mouseenter: "mouseover",
+	mouseleave: "mouseout"
+}, function( orig, fix ) {
+	jQuery.event.special[ orig ] = {
+		setup: function( data ) {
+			jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
+		},
+		teardown: function( data ) {
+			jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
+		}
+	};
+});
+
+// submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+	jQuery.event.special.submit = {
+		setup: function( data, namespaces ) {
+			if ( this.nodeName.toLowerCase() !== "form" ) {
+				jQuery.event.add(this, "click.specialSubmit", function( e ) {
+					var elem = e.target, type = elem.type;
+
+					if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
+						return trigger( "submit", this, arguments );
+					}
+				});
+	 
+				jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
+					var elem = e.target, type = elem.type;
+
+					if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
+						return trigger( "submit", this, arguments );
+					}
+				});
+
+			} else {
+				return false;
+			}
+		},
+
+		teardown: function( namespaces ) {
+			jQuery.event.remove( this, ".specialSubmit" );
+		}
+	};
+
+}
+
+// change delegation, happens here so we have bind.
+if ( !jQuery.support.changeBubbles ) {
+
+	var formElems = /textarea|input|select/i,
+
+	changeFilters,
+
+	getVal = function( elem ) {
+		var type = elem.type, val = elem.value;
+
+		if ( type === "radio" || type === "checkbox" ) {
+			val = elem.checked;
+
+		} else if ( type === "select-multiple" ) {
+			val = elem.selectedIndex > -1 ?
+				jQuery.map( elem.options, function( elem ) {
+					return elem.selected;
+				}).join("-") :
+				"";
+
+		} else if ( elem.nodeName.toLowerCase() === "select" ) {
+			val = elem.selectedIndex;
+		}
+
+		return val;
+	},
+
+	testChange = function testChange( e ) {
+		var elem = e.target, data, val;
+
+		if ( !formElems.test( elem.nodeName ) || elem.readOnly ) {
+			return;
+		}
+
+		data = jQuery.data( elem, "_change_data" );
+		val = getVal(elem);
+
+		// the current data will be also retrieved by beforeactivate
+		if ( e.type !== "focusout" || elem.type !== "radio" ) {
+			jQuery.data( elem, "_change_data", val );
+		}
+		
+		if ( data === undefined || val === data ) {
+			return;
+		}
+
+		if ( data != null || val ) {
+			e.type = "change";
+			return jQuery.event.trigger( e, arguments[1], elem );
+		}
+	};
+
+	jQuery.event.special.change = {
+		filters: {
+			focusout: testChange, 
+
+			click: function( e ) {
+				var elem = e.target, type = elem.type;
+
+				if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
+					return testChange.call( this, e );
+				}
+			},
+
+			// Change has to be called before submit
+			// Keydown will be called before keypress, which is used in submit-event delegation
+			keydown: function( e ) {
+				var elem = e.target, type = elem.type;
+
+				if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
+					(e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
+					type === "select-multiple" ) {
+					return testChange.call( this, e );
+				}
+			},
+
+			// Beforeactivate happens also before the previous element is blurred
+			// with this event you can't trigger a change event, but you can store
+			// information/focus[in] is not needed anymore
+			beforeactivate: function( e ) {
+				var elem = e.target;
+				jQuery.data( elem, "_change_data", getVal(elem) );
+			}
+		},
+
+		setup: function( data, namespaces ) {
+			if ( this.type === "file" ) {
+				return false;
+			}
+
+			for ( var type in changeFilters ) {
+				jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
+			}
+
+			return formElems.test( this.nodeName );
+		},
+
+		teardown: function( namespaces ) {
+			jQuery.event.remove( this, ".specialChange" );
+
+			return formElems.test( this.nodeName );
+		}
+	};
+
+	changeFilters = jQuery.event.special.change.filters;
+}
+
+function trigger( type, elem, args ) {
+	args[0].type = type;
+	return jQuery.event.handle.apply( elem, args );
+}
+
+// Create "bubbling" focus and blur events
+if ( document.addEventListener ) {
+	jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+		jQuery.event.special[ fix ] = {
+			setup: function() {
+				this.addEventListener( orig, handler, true );
+			}, 
+			teardown: function() { 
+				this.removeEventListener( orig, handler, true );
+			}
+		};
+
+		function handler( e ) { 
+			e = jQuery.event.fix( e );
+			e.type = fix;
+			return jQuery.event.handle.call( this, e );
+		}
+	});
+}
+
+jQuery.each(["bind", "one"], function( i, name ) {
+	jQuery.fn[ name ] = function( type, data, fn ) {
+		// Handle object literals
+		if ( typeof type === "object" ) {
+			for ( var key in type ) {
+				this[ name ](key, data, type[key], fn);
+			}
+			return this;
+		}
+		
+		if ( jQuery.isFunction( data ) ) {
+			fn = data;
+			data = undefined;
+		}
+
+		var handler = name === "one" ? jQuery.proxy( fn, function( event ) {
+			jQuery( this ).unbind( event, handler );
+			return fn.apply( this, arguments );
+		}) : fn;
+
+		if ( type === "unload" && name !== "one" ) {
+			this.one( type, data, fn );
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				jQuery.event.add( this[i], type, handler, data );
+			}
+		}
+
+		return this;
+	};
+});
+
+jQuery.fn.extend({
+	unbind: function( type, fn ) {
+		// Handle object literals
+		if ( typeof type === "object" && !type.preventDefault ) {
+			for ( var key in type ) {
+				this.unbind(key, type[key]);
+			}
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				jQuery.event.remove( this[i], type, fn );
+			}
+		}
+
+		return this;
+	},
+	
+	delegate: function( selector, types, data, fn ) {
+		return this.live( types, data, fn, selector );
+	},
+	
+	undelegate: function( selector, types, fn ) {
+		if ( arguments.length === 0 ) {
+				return this.unbind( "live" );
+		
+		} else {
+			return this.die( types, null, fn, selector );
+		}
+	},
+	
+	trigger: function( type, data ) {
+		return this.each(function() {
+			jQuery.event.trigger( type, data, this );
+		});
+	},
+
+	triggerHandler: function( type, data ) {
+		if ( this[0] ) {
+			var event = jQuery.Event( type );
+			event.preventDefault();
+			event.stopPropagation();
+			jQuery.event.trigger( event, data, this[0] );
+			return event.result;
+		}
+	},
+
+	toggle: function( fn ) {
+		// Save reference to arguments for access in closure
+		var args = arguments, i = 1;
+
+		// link all the functions, so any of them can unbind this click handler
+		while ( i < args.length ) {
+			jQuery.proxy( fn, args[ i++ ] );
+		}
+
+		return this.click( jQuery.proxy( fn, function( event ) {
+			// Figure out which function to execute
+			var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+			jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+			// Make sure that clicks stop
+			event.preventDefault();
+
+			// and execute the function
+			return args[ lastToggle ].apply( this, arguments ) || false;
+		}));
+	},
+
+	hover: function( fnOver, fnOut ) {
+		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+	}
+});
+
+var liveMap = {
+	focus: "focusin",
+	blur: "focusout",
+	mouseenter: "mouseover",
+	mouseleave: "mouseout"
+};
+
+jQuery.each(["live", "die"], function( i, name ) {
+	jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
+		var type, i = 0, match, namespaces, preType,
+			selector = origSelector || this.selector,
+			context = origSelector ? this : jQuery( this.context );
+
+		if ( jQuery.isFunction( data ) ) {
+			fn = data;
+			data = undefined;
+		}
+
+		types = (types || "").split(" ");
+
+		while ( (type = types[ i++ ]) != null ) {
+			match = rnamespaces.exec( type );
+			namespaces = "";
+
+			if ( match )  {
+				namespaces = match[0];
+				type = type.replace( rnamespaces, "" );
+			}
+
+			if ( type === "hover" ) {
+				types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
+				continue;
+			}
+
+			preType = type;
+
+			if ( type === "focus" || type === "blur" ) {
+				types.push( liveMap[ type ] + namespaces );
+				type = type + namespaces;
+
+			} else {
+				type = (liveMap[ type ] || type) + namespaces;
+			}
+
+			if ( name === "live" ) {
+				// bind live handler
+				context.each(function(){
+					jQuery.event.add( this, liveConvert( type, selector ),
+						{ data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
+				});
+
+			} else {
+				// unbind live handler
+				context.unbind( liveConvert( type, selector ), fn );
+			}
+		}
+		
+		return this;
+	}
+});
+
+function liveHandler( event ) {
+	var stop, elems = [], selectors = [], args = arguments,
+		related, match, handleObj, elem, j, i, l, data,
+		events = jQuery.data( this, "events" );
+
+	// Make sure we avoid non-left-click bubbling in Firefox (#3861)
+	if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
+		return;
+	}
+
+	event.liveFired = this;
+
+	var live = events.live.slice(0);
+
+	for ( j = 0; j < live.length; j++ ) {
+		handleObj = live[j];
+
+		if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
+			selectors.push( handleObj.selector );
+
+		} else {
+			live.splice( j--, 1 );
+		}
+	}
+
+	match = jQuery( event.target ).closest( selectors, event.currentTarget );
+
+	for ( i = 0, l = match.length; i < l; i++ ) {
+		for ( j = 0; j < live.length; j++ ) {
+			handleObj = live[j];
+
+			if ( match[i].selector === handleObj.selector ) {
+				elem = match[i].elem;
+				related = null;
+
+				// Those two events require additional checking
+				if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
+					related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
+				}
+
+				if ( !related || related !== elem ) {
+					elems.push({ elem: elem, handleObj: handleObj });
+				}
+			}
+		}
+	}
+
+	for ( i = 0, l = elems.length; i < l; i++ ) {
+		match = elems[i];
+		event.currentTarget = match.elem;
+		event.data = match.handleObj.data;
+		event.handleObj = match.handleObj;
+
+		if ( match.handleObj.origHandler.apply( match.elem, args ) === false ) {
+			stop = false;
+			break;
+		}
+	}
+
+	return stop;
+}
+
+function liveConvert( type, selector ) {
+	return "live." + (type && type !== "*" ? type + "." : "") + selector.replace(/\./g, "`").replace(/ /g, "&");
+}
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+	"change select submit keydown keypress keyup error").split(" "), function( i, name ) {
+
+	// Handle event binding
+	jQuery.fn[ name ] = function( fn ) {
+		return fn ? this.bind( name, fn ) : this.trigger( name );
+	};
+
+	if ( jQuery.attrFn ) {
+		jQuery.attrFn[ name ] = true;
+	}
+});
+
+// Prevent memory leaks in IE
+// Window isn't included so as not to unbind existing unload events
+// More info:
+//  - http://isaacschlueter.com/2006/10/msie-memory-leaks/
+if ( window.attachEvent && !window.addEventListener ) {
+	window.attachEvent("onunload", function() {
+		for ( var id in jQuery.cache ) {
+			if ( jQuery.cache[ id ].handle ) {
+				// Try/Catch is to handle iframes being unloaded, see #4280
+				try {
+					jQuery.event.remove( jQuery.cache[ id ].handle.elem );
+				} catch(e) {}
+			}
+		}
+	});
+}
+/*!
+ * Sizzle CSS Selector Engine - v1.0
+ *  Copyright 2009, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+	done = 0,
+	toString = Object.prototype.toString,
+	hasDuplicate = false,
+	baseHasDuplicate = true;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+//   Thus far that includes Google Chrome.
+[0, 0].sort(function(){
+	baseHasDuplicate = false;
+	return 0;
+});
+
+var Sizzle = function(selector, context, results, seed) {
+	results = results || [];
+	var origContext = context = context || document;
+
+	if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+		return [];
+	}
+	
+	if ( !selector || typeof selector !== "string" ) {
+		return results;
+	}
+
+	var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context),
+		soFar = selector;
+	
+	// Reset the position of the chunker regexp (start from head)
+	while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) {
+		soFar = m[3];
+		
+		parts.push( m[1] );
+		
+		if ( m[2] ) {
+			extra = m[3];
+			break;
+		}
+	}
+
+	if ( parts.length > 1 && origPOS.exec( selector ) ) {
+		if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+			set = posProcess( parts[0] + parts[1], context );
+		} else {
+			set = Expr.relative[ parts[0] ] ?
+				[ context ] :
+				Sizzle( parts.shift(), context );
+
+			while ( parts.length ) {
+				selector = parts.shift();
+
+				if ( Expr.relative[ selector ] ) {
+					selector += parts.shift();
+				}
+				
+				set = posProcess( selector, set );
+			}
+		}
+	} else {
+		// Take a shortcut and set the context if the root selector is an ID
+		// (but not if it'll be faster if the inner selector is an ID)
+		if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+				Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+			var ret = Sizzle.find( parts.shift(), context, contextXML );
+			context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0];
+		}
+
+		if ( context ) {
+			var ret = seed ?
+				{ expr: parts.pop(), set: makeArray(seed) } :
+				Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+			set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set;
+
+			if ( parts.length > 0 ) {
+				checkSet = makeArray(set);
+			} else {
+				prune = false;
+			}
+
+			while ( parts.length ) {
+				var cur = parts.pop(), pop = cur;
+
+				if ( !Expr.relative[ cur ] ) {
+					cur = "";
+				} else {
+					pop = parts.pop();
+				}
+
+				if ( pop == null ) {
+					pop = context;
+				}
+
+				Expr.relative[ cur ]( checkSet, pop, contextXML );
+			}
+		} else {
+			checkSet = parts = [];
+		}
+	}
+
+	if ( !checkSet ) {
+		checkSet = set;
+	}
+
+	if ( !checkSet ) {
+		Sizzle.error( cur || selector );
+	}
+
+	if ( toString.call(checkSet) === "[object Array]" ) {
+		if ( !prune ) {
+			results.push.apply( results, checkSet );
+		} else if ( context && context.nodeType === 1 ) {
+			for ( var i = 0; checkSet[i] != null; i++ ) {
+				if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
+					results.push( set[i] );
+				}
+			}
+		} else {
+			for ( var i = 0; checkSet[i] != null; i++ ) {
+				if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+					results.push( set[i] );
+				}
+			}
+		}
+	} else {
+		makeArray( checkSet, results );
+	}
+
+	if ( extra ) {
+		Sizzle( extra, origContext, results, seed );
+		Sizzle.uniqueSort( results );
+	}
+
+	return results;
+};
+
+Sizzle.uniqueSort = function(results){
+	if ( sortOrder ) {
+		hasDuplicate = baseHasDuplicate;
+		results.sort(sortOrder);
+
+		if ( hasDuplicate ) {
+			for ( var i = 1; i < results.length; i++ ) {
+				if ( results[i] === results[i-1] ) {
+					results.splice(i--, 1);
+				}
+			}
+		}
+	}
+
+	return results;
+};
+
+Sizzle.matches = function(expr, set){
+	return Sizzle(expr, null, null, set);
+};
+
+Sizzle.find = function(expr, context, isXML){
+	var set, match;
+
+	if ( !expr ) {
+		return [];
+	}
+
+	for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
+		var type = Expr.order[i], match;
+		
+		if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+			var left = match[1];
+			match.splice(1,1);
+
+			if ( left.substr( left.length - 1 ) !== "\\" ) {
+				match[1] = (match[1] || "").replace(/\\/g, "");
+				set = Expr.find[ type ]( match, context, isXML );
+				if ( set != null ) {
+					expr = expr.replace( Expr.match[ type ], "" );
+					break;
+				}
+			}
+		}
+	}
+
+	if ( !set ) {
+		set = context.getElementsByTagName("*");
+	}
+
+	return {set: set, expr: expr};
+};
+
+Sizzle.filter = function(expr, set, inplace, not){
+	var old = expr, result = [], curLoop = set, match, anyFound,
+		isXMLFilter = set && set[0] && isXML(set[0]);
+
+	while ( expr && set.length ) {
+		for ( var type in Expr.filter ) {
+			if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+				var filter = Expr.filter[ type ], found, item, left = match[1];
+				anyFound = false;
+
+				match.splice(1,1);
+
+				if ( left.substr( left.length - 1 ) === "\\" ) {
+					continue;
+				}
+
+				if ( curLoop === result ) {
+					result = [];
+				}
+
+				if ( Expr.preFilter[ type ] ) {
+					match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+					if ( !match ) {
+						anyFound = found = true;
+					} else if ( match === true ) {
+						continue;
+					}
+				}
+
+				if ( match ) {
+					for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
+						if ( item ) {
+							found = filter( item, match, i, curLoop );
+							var pass = not ^ !!found;
+
+							if ( inplace && found != null ) {
+								if ( pass ) {
+									anyFound = true;
+								} else {
+									curLoop[i] = false;
+								}
+							} else if ( pass ) {
+								result.push( item );
+								anyFound = true;
+							}
+						}
+					}
+				}
+
+				if ( found !== undefined ) {
+					if ( !inplace ) {
+						curLoop = result;
+					}
+
+					expr = expr.replace( Expr.match[ type ], "" );
+
+					if ( !anyFound ) {
+						return [];
+					}
+
+					break;
+				}
+			}
+		}
+
+		// Improper expression
+		if ( expr === old ) {
+			if ( anyFound == null ) {
+				Sizzle.error( expr );
+			} else {
+				break;
+			}
+		}
+
+		old = expr;
+	}
+
+	return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+	throw "Syntax error, unrecognized expression: " + msg;
+};
+
+var Expr = Sizzle.selectors = {
+	order: [ "ID", "NAME", "TAG" ],
+	match: {
+		ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
+		CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
+		NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,
+		ATTR: /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
+		TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
+		CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
+		POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
+		PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+	},
+	leftMatch: {},
+	attrMap: {
+		"class": "className",
+		"for": "htmlFor"
+	},
+	attrHandle: {
+		href: function(elem){
+			return elem.getAttribute("href");
+		}
+	},
+	relative: {
+		"+": function(checkSet, part){
+			var isPartStr = typeof part === "string",
+				isTag = isPartStr && !/\W/.test(part),
+				isPartStrNotTag = isPartStr && !isTag;
+
+			if ( isTag ) {
+				part = part.toLowerCase();
+			}
+
+			for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+				if ( (elem = checkSet[i]) ) {
+					while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+					checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+						elem || false :
+						elem === part;
+				}
+			}
+
+			if ( isPartStrNotTag ) {
+				Sizzle.filter( part, checkSet, true );
+			}
+		},
+		">": function(checkSet, part){
+			var isPartStr = typeof part === "string";
+
+			if ( isPartStr && !/\W/.test(part) ) {
+				part = part.toLowerCase();
+
+				for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+					var elem = checkSet[i];
+					if ( elem ) {
+						var parent = elem.parentNode;
+						checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+					}
+				}
+			} else {
+				for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+					var elem = checkSet[i];
+					if ( elem ) {
+						checkSet[i] = isPartStr ?
+							elem.parentNode :
+							elem.parentNode === part;
+					}
+				}
+
+				if ( isPartStr ) {
+					Sizzle.filter( part, checkSet, true );
+				}
+			}
+		},
+		"": function(checkSet, part, isXML){
+			var doneName = done++, checkFn = dirCheck;
+
+			if ( typeof part === "string" && !/\W/.test(part) ) {
+				var nodeCheck = part = part.toLowerCase();
+				checkFn = dirNodeCheck;
+			}
+
+			checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
+		},
+		"~": function(checkSet, part, isXML){
+			var doneName = done++, checkFn = dirCheck;
+
+			if ( typeof part === "string" && !/\W/.test(part) ) {
+				var nodeCheck = part = part.toLowerCase();
+				checkFn = dirNodeCheck;
+			}
+
+			checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
+		}
+	},
+	find: {
+		ID: function(match, context, isXML){
+			if ( typeof context.getElementById !== "undefined" && !isXML ) {
+				var m = context.getElementById(match[1]);
+				return m ? [m] : [];
+			}
+		},
+		NAME: function(match, context){
+			if ( typeof context.getElementsByName !== "undefined" ) {
+				var ret = [], results = context.getElementsByName(match[1]);
+
+				for ( var i = 0, l = results.length; i < l; i++ ) {
+					if ( results[i].getAttribute("name") === match[1] ) {
+						ret.push( results[i] );
+					}
+				}
+
+				return ret.length === 0 ? null : ret;
+			}
+		},
+		TAG: function(match, context){
+			return context.getElementsByTagName(match[1]);
+		}
+	},
+	preFilter: {
+		CLASS: function(match, curLoop, inplace, result, not, isXML){
+			match = " " + match[1].replace(/\\/g, "") + " ";
+
+			if ( isXML ) {
+				return match;
+			}
+
+			for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+				if ( elem ) {
+					if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) {
+						if ( !inplace ) {
+							result.push( elem );
+						}
+					} else if ( inplace ) {
+						curLoop[i] = false;
+					}
+				}
+			}
+
+			return false;
+		},
+		ID: function(match){
+			return match[1].replace(/\\/g, "");
+		},
+		TAG: function(match, curLoop){
+			return match[1].toLowerCase();
+		},
+		CHILD: function(match){
+			if ( match[1] === "nth" ) {
+				// parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+				var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
+					match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+					!/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+				// calculate the numbers (first)n+(last) including if they are negative
+				match[2] = (test[1] + (test[2] || 1)) - 0;
+				match[3] = test[3] - 0;
+			}
+
+			// TODO: Move to normal caching system
+			match[0] = done++;
+
+			return match;
+		},
+		ATTR: function(match, curLoop, inplace, result, not, isXML){
+			var name = match[1].replace(/\\/g, "");
+			
+			if ( !isXML && Expr.attrMap[name] ) {
+				match[1] = Expr.attrMap[name];
+			}
+
+			if ( match[2] === "~=" ) {
+				match[4] = " " + match[4] + " ";
+			}
+
+			return match;
+		},
+		PSEUDO: function(match, curLoop, inplace, result, not){
+			if ( match[1] === "not" ) {
+				// If we're dealing with a complex expression, or a simple one
+				if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+					match[3] = Sizzle(match[3], null, null, curLoop);
+				} else {
+					var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+					if ( !inplace ) {
+						result.push.apply( result, ret );
+					}
+					return false;
+				}
+			} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+				return true;
+			}
+			
+			return match;
+		},
+		POS: function(match){
+			match.unshift( true );
+			return match;
+		}
+	},
+	filters: {
+		enabled: function(elem){
+			return elem.disabled === false && elem.type !== "hidden";
+		},
+		disabled: function(elem){
+			return elem.disabled === true;
+		},
+		checked: function(elem){
+			return elem.checked === true;
+		},
+		selected: function(elem){
+			// Accessing this property makes selected-by-default
+			// options in Safari work properly
+			elem.parentNode.selectedIndex;
+			return elem.selected === true;
+		},
+		parent: function(elem){
+			return !!elem.firstChild;
+		},
+		empty: function(elem){
+			return !elem.firstChild;
+		},
+		has: function(elem, i, match){
+			return !!Sizzle( match[3], elem ).length;
+		},
+		header: function(elem){
+			return /h\d/i.test( elem.nodeName );
+		},
+		text: function(elem){
+			return "text" === elem.type;
+		},
+		radio: function(elem){
+			return "radio" === elem.type;
+		},
+		checkbox: function(elem){
+			return "checkbox" === elem.type;
+		},
+		file: function(elem){
+			return "file" === elem.type;
+		},
+		password: function(elem){
+			return "password" === elem.type;
+		},
+		submit: function(elem){
+			return "submit" === elem.type;
+		},
+		image: function(elem){
+			return "image" === elem.type;
+		},
+		reset: function(elem){
+			return "reset" === elem.type;
+		},
+		button: function(elem){
+			return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
+		},
+		input: function(elem){
+			return /input|select|textarea|button/i.test(elem.nodeName);
+		}
+	},
+	setFilters: {
+		first: function(elem, i){
+			return i === 0;
+		},
+		last: function(elem, i, match, array){
+			return i === array.length - 1;
+		},
+		even: function(elem, i){
+			return i % 2 === 0;
+		},
+		odd: function(elem, i){
+			return i % 2 === 1;
+		},
+		lt: function(elem, i, match){
+			return i < match[3] - 0;
+		},
+		gt: function(elem, i, match){
+			return i > match[3] - 0;
+		},
+		nth: function(elem, i, match){
+			return match[3] - 0 === i;
+		},
+		eq: function(elem, i, match){
+			return match[3] - 0 === i;
+		}
+	},
+	filter: {
+		PSEUDO: function(elem, match, i, array){
+			var name = match[1], filter = Expr.filters[ name ];
+
+			if ( filter ) {
+				return filter( elem, i, match, array );
+			} else if ( name === "contains" ) {
+				return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
+			} else if ( name === "not" ) {
+				var not = match[3];
+
+				for ( var i = 0, l = not.length; i < l; i++ ) {
+					if ( not[i] === elem ) {
+						return false;
+					}
+				}
+
+				return true;
+			} else {
+				Sizzle.error( "Syntax error, unrecognized expression: " + name );
+			}
+		},
+		CHILD: function(elem, match){
+			var type = match[1], node = elem;
+			switch (type) {
+				case 'only':
+				case 'first':
+					while ( (node = node.previousSibling) )	 {
+						if ( node.nodeType === 1 ) { 
+							return false; 
+						}
+					}
+					if ( type === "first" ) { 
+						return true; 
+					}
+					node = elem;
+				case 'last':
+					while ( (node = node.nextSibling) )	 {
+						if ( node.nodeType === 1 ) { 
+							return false; 
+						}
+					}
+					return true;
+				case 'nth':
+					var first = match[2], last = match[3];
+
+					if ( first === 1 && last === 0 ) {
+						return true;
+					}
+					
+					var doneName = match[0],
+						parent = elem.parentNode;
+	
+					if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
+						var count = 0;
+						for ( node = parent.firstChild; node; node = node.nextSibling ) {
+							if ( node.nodeType === 1 ) {
+								node.nodeIndex = ++count;
+							}
+						} 
+						parent.sizcache = doneName;
+					}
+					
+					var diff = elem.nodeIndex - last;
+					if ( first === 0 ) {
+						return diff === 0;
+					} else {
+						return ( diff % first === 0 && diff / first >= 0 );
+					}
+			}
+		},
+		ID: function(elem, match){
+			return elem.nodeType === 1 && elem.getAttribute("id") === match;
+		},
+		TAG: function(elem, match){
+			return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
+		},
+		CLASS: function(elem, match){
+			return (" " + (elem.className || elem.getAttribute("class")) + " ")
+				.indexOf( match ) > -1;
+		},
+		ATTR: function(elem, match){
+			var name = match[1],
+				result = Expr.attrHandle[ name ] ?
+					Expr.attrHandle[ name ]( elem ) :
+					elem[ name ] != null ?
+						elem[ name ] :
+						elem.getAttribute( name ),
+				value = result + "",
+				type = match[2],
+				check = match[4];
+
+			return result == null ?
+				type === "!=" :
+				type === "=" ?
+				value === check :
+				type === "*=" ?
+				value.indexOf(check) >= 0 :
+				type === "~=" ?
+				(" " + value + " ").indexOf(check) >= 0 :
+				!check ?
+				value && result !== false :
+				type === "!=" ?
+				value !== check :
+				type === "^=" ?
+				value.indexOf(check) === 0 :
+				type === "$=" ?
+				value.substr(value.length - check.length) === check :
+				type === "|=" ?
+				value === check || value.substr(0, check.length + 1) === check + "-" :
+				false;
+		},
+		POS: function(elem, match, i, array){
+			var name = match[2], filter = Expr.setFilters[ name ];
+
+			if ( filter ) {
+				return filter( elem, i, match, array );
+			}
+		}
+	}
+};
+
+var origPOS = Expr.match.POS;
+
+for ( var type in Expr.match ) {
+	Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
+	Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, function(all, num){
+		return "\\" + (num - 0 + 1);
+	}));
+}
+
+var makeArray = function(array, results) {
+	array = Array.prototype.slice.call( array, 0 );
+
+	if ( results ) {
+		results.push.apply( results, array );
+		return results;
+	}
+	
+	return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+	Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch(e){
+	makeArray = function(array, results) {
+		var ret = results || [];
+
+		if ( toString.call(array) === "[object Array]" ) {
+			Array.prototype.push.apply( ret, array );
+		} else {
+			if ( typeof array.length === "number" ) {
+				for ( var i = 0, l = array.length; i < l; i++ ) {
+					ret.push( array[i] );
+				}
+			} else {
+				for ( var i = 0; array[i]; i++ ) {
+					ret.push( array[i] );
+				}
+			}
+		}
+
+		return ret;
+	};
+}
+
+var sortOrder;
+
+if ( document.documentElement.compareDocumentPosition ) {
+	sortOrder = function( a, b ) {
+		if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+			if ( a == b ) {
+				hasDuplicate = true;
+			}
+			return a.compareDocumentPosition ? -1 : 1;
+		}
+
+		var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
+		if ( ret === 0 ) {
+			hasDuplicate = true;
+		}
+		return ret;
+	};
+} else if ( "sourceIndex" in document.documentElement ) {
+	sortOrder = function( a, b ) {
+		if ( !a.sourceIndex || !b.sourceIndex ) {
+			if ( a == b ) {
+				hasDuplicate = true;
+			}
+			return a.sourceIndex ? -1 : 1;
+		}
+
+		var ret = a.sourceIndex - b.sourceIndex;
+		if ( ret === 0 ) {
+			hasDuplicate = true;
+		}
+		return ret;
+	};
+} else if ( document.createRange ) {
+	sortOrder = function( a, b ) {
+		if ( !a.ownerDocument || !b.ownerDocument ) {
+			if ( a == b ) {
+				hasDuplicate = true;
+			}
+			return a.ownerDocument ? -1 : 1;
+		}
+
+		var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
+		aRange.setStart(a, 0);
+		aRange.setEnd(a, 0);
+		bRange.setStart(b, 0);
+		bRange.setEnd(b, 0);
+		var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
+		if ( ret === 0 ) {
+			hasDuplicate = true;
+		}
+		return ret;
+	};
+}
+
+// Utility function for retreiving the text value of an array of DOM nodes
+function getText( elems ) {
+	var ret = "", elem;
+
+	for ( var i = 0; elems[i]; i++ ) {
+		elem = elems[i];
+
+		// Get the text from text nodes and CDATA nodes
+		if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
+			ret += elem.nodeValue;
+
+		// Traverse everything else, except comment nodes
+		} else if ( elem.nodeType !== 8 ) {
+			ret += getText( elem.childNodes );
+		}
+	}
+
+	return ret;
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+	// We're going to inject a fake input element with a specified name
+	var form = document.createElement("div"),
+		id = "script" + (new Date).getTime();
+	form.innerHTML = "<a name='" + id + "'/>";
+
+	// Inject it into the root element, check its status, and remove it quickly
+	var root = document.documentElement;
+	root.insertBefore( form, root.firstChild );
+
+	// The workaround has to do additional checks after a getElementById
+	// Which slows things down for other browsers (hence the branching)
+	if ( document.getElementById( id ) ) {
+		Expr.find.ID = function(match, context, isXML){
+			if ( typeof context.getElementById !== "undefined" && !isXML ) {
+				var m = context.getElementById(match[1]);
+				return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
+			}
+		};
+
+		Expr.filter.ID = function(elem, match){
+			var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+			return elem.nodeType === 1 && node && node.nodeValue === match;
+		};
+	}
+
+	root.removeChild( form );
+	root = form = null; // release memory in IE
+})();
+
+(function(){
+	// Check to see if the browser returns only elements
+	// when doing getElementsByTagName("*")
+
+	// Create a fake element
+	var div = document.createElement("div");
+	div.appendChild( document.createComment("") );
+
+	// Make sure no comments are found
+	if ( div.getElementsByTagName("*").length > 0 ) {
+		Expr.find.TAG = function(match, context){
+			var results = context.getElementsByTagName(match[1]);
+
+			// Filter out possible comments
+			if ( match[1] === "*" ) {
+				var tmp = [];
+
+				for ( var i = 0; results[i]; i++ ) {
+					if ( results[i].nodeType === 1 ) {
+						tmp.push( results[i] );
+					}
+				}
+
+				results = tmp;
+			}
+
+			return results;
+		};
+	}
+
+	// Check to see if an attribute returns normalized href attributes
+	div.innerHTML = "<a href='#'></a>";
+	if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+			div.firstChild.getAttribute("href") !== "#" ) {
+		Expr.attrHandle.href = function(elem){
+			return elem.getAttribute("href", 2);
+		};
+	}
+
+	div = null; // release memory in IE
+})();
+
+if ( document.querySelectorAll ) {
+	(function(){
+		var oldSizzle = Sizzle, div = document.createElement("div");
+		div.innerHTML = "<p class='TEST'></p>";
+
+		// Safari can't handle uppercase or unicode characters when
+		// in quirks mode.
+		if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+			return;
+		}
+	
+		Sizzle = function(query, context, extra, seed){
+			context = context || document;
+
+			// Only use querySelectorAll on non-XML documents
+			// (ID selectors don't work in non-HTML documents)
+			if ( !seed && context.nodeType === 9 && !isXML(context) ) {
+				try {
+					return makeArray( context.querySelectorAll(query), extra );
+				} catch(e){}
+			}
+		
+			return oldSizzle(query, context, extra, seed);
+		};
+
+		for ( var prop in oldSizzle ) {
+			Sizzle[ prop ] = oldSizzle[ prop ];
+		}
+
+		div = null; // release memory in IE
+	})();
+}
+
+(function(){
+	var div = document.createElement("div");
+
+	div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+	// Opera can't find a second classname (in 9.6)
+	// Also, make sure that getElementsByClassName actually exists
+	if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+		return;
+	}
+
+	// Safari caches class attributes, doesn't catch changes (in 3.2)
+	div.lastChild.className = "e";
+
+	if ( div.getElementsByClassName("e").length === 1 ) {
+		return;
+	}
+	
+	Expr.order.splice(1, 0, "CLASS");
+	Expr.find.CLASS = function(match, context, isXML) {
+		if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+			return context.getElementsByClassName(match[1]);
+		}
+	};
+
+	div = null; // release memory in IE
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+		var elem = checkSet[i];
+		if ( elem ) {
+			elem = elem[dir];
+			var match = false;
+
+			while ( elem ) {
+				if ( elem.sizcache === doneName ) {
+					match = checkSet[elem.sizset];
+					break;
+				}
+
+				if ( elem.nodeType === 1 && !isXML ){
+					elem.sizcache = doneName;
+					elem.sizset = i;
+				}
+
+				if ( elem.nodeName.toLowerCase() === cur ) {
+					match = elem;
+					break;
+				}
+
+				elem = elem[dir];
+			}
+
+			checkSet[i] = match;
+		}
+	}
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+		var elem = checkSet[i];
+		if ( elem ) {
+			elem = elem[dir];
+			var match = false;
+
+			while ( elem ) {
+				if ( elem.sizcache === doneName ) {
+					match = checkSet[elem.sizset];
+					break;
+				}
+
+				if ( elem.nodeType === 1 ) {
+					if ( !isXML ) {
+						elem.sizcache = doneName;
+						elem.sizset = i;
+					}
+					if ( typeof cur !== "string" ) {
+						if ( elem === cur ) {
+							match = true;
+							break;
+						}
+
+					} else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+						match = elem;
+						break;
+					}
+				}
+
+				elem = elem[dir];
+			}
+
+			checkSet[i] = match;
+		}
+	}
+}
+
+var contains = document.compareDocumentPosition ? function(a, b){
+	return !!(a.compareDocumentPosition(b) & 16);
+} : function(a, b){
+	return a !== b && (a.contains ? a.contains(b) : true);
+};
+
+var isXML = function(elem){
+	// documentElement is verified for cases where it doesn't yet exist
+	// (such as loading iframes in IE - #4833) 
+	var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+	return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function(selector, context){
+	var tmpSet = [], later = "", match,
+		root = context.nodeType ? [context] : context;
+
+	// Position selectors must be done after the filter
+	// And so must :not(positional) so we move all PSEUDOs to the end
+	while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+		later += match[0];
+		selector = selector.replace( Expr.match.PSEUDO, "" );
+	}
+
+	selector = Expr.relative[selector] ? selector + "*" : selector;
+
+	for ( var i = 0, l = root.length; i < l; i++ ) {
+		Sizzle( selector, root[i], tmpSet );
+	}
+
+	return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = getText;
+jQuery.isXMLDoc = isXML;
+jQuery.contains = contains;
+
+return;
+
+window.Sizzle = Sizzle;
+
+})();
+var runtil = /Until$/,
+	rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+	// Note: This RegExp should be improved, or likely pulled from Sizzle
+	rmultiselector = /,/,
+	slice = Array.prototype.slice;
+
+// Implement the identical functionality for filter and not
+var winnow = function( elements, qualifier, keep ) {
+	if ( jQuery.isFunction( qualifier ) ) {
+		return jQuery.grep(elements, function( elem, i ) {
+			return !!qualifier.call( elem, i, elem ) === keep;
+		});
+
+	} else if ( qualifier.nodeType ) {
+		return jQuery.grep(elements, function( elem, i ) {
+			return (elem === qualifier) === keep;
+		});
+
+	} else if ( typeof qualifier === "string" ) {
+		var filtered = jQuery.grep(elements, function( elem ) {
+			return elem.nodeType === 1;
+		});
+
+		if ( isSimple.test( qualifier ) ) {
+			return jQuery.filter(qualifier, filtered, !keep);
+		} else {
+			qualifier = jQuery.filter( qualifier, filtered );
+		}
+	}
+
+	return jQuery.grep(elements, function( elem, i ) {
+		return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
+	});
+};
+
+jQuery.fn.extend({
+	find: function( selector ) {
+		var ret = this.pushStack( "", "find", selector ), length = 0;
+
+		for ( var i = 0, l = this.length; i < l; i++ ) {
+			length = ret.length;
+			jQuery.find( selector, this[i], ret );
+
+			if ( i > 0 ) {
+				// Make sure that the results are unique
+				for ( var n = length; n < ret.length; n++ ) {
+					for ( var r = 0; r < length; r++ ) {
+						if ( ret[r] === ret[n] ) {
+							ret.splice(n--, 1);
+							break;
+						}
+					}
+				}
+			}
+		}
+
+		return ret;
+	},
+
+	has: function( target ) {
+		var targets = jQuery( target );
+		return this.filter(function() {
+			for ( var i = 0, l = targets.length; i < l; i++ ) {
+				if ( jQuery.contains( this, targets[i] ) ) {
+					return true;
+				}
+			}
+		});
+	},
+
+	not: function( selector ) {
+		return this.pushStack( winnow(this, selector, false), "not", selector);
+	},
+
+	filter: function( selector ) {
+		return this.pushStack( winnow(this, selector, true), "filter", selector );
+	},
+	
+	is: function( selector ) {
+		return !!selector && jQuery.filter( selector, this ).length > 0;
+	},
+
+	closest: function( selectors, context ) {
+		if ( jQuery.isArray( selectors ) ) {
+			var ret = [], cur = this[0], match, matches = {}, selector;
+
+			if ( cur && selectors.length ) {
+				for ( var i = 0, l = selectors.length; i < l; i++ ) {
+					selector = selectors[i];
+
+					if ( !matches[selector] ) {
+						matches[selector] = jQuery.expr.match.POS.test( selector ) ? 
+							jQuery( selector, context || this.context ) :
+							selector;
+					}
+				}
+
+				while ( cur && cur.ownerDocument && cur !== context ) {
+					for ( selector in matches ) {
+						match = matches[selector];
+
+						if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
+							ret.push({ selector: selector, elem: cur });
+							delete matches[selector];
+						}
+					}
+					cur = cur.parentNode;
+				}
+			}
+
+			return ret;
+		}
+
+		var pos = jQuery.expr.match.POS.test( selectors ) ? 
+			jQuery( selectors, context || this.context ) : null;
+
+		return this.map(function( i, cur ) {
+			while ( cur && cur.ownerDocument && cur !== context ) {
+				if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selectors) ) {
+					return cur;
+				}
+				cur = cur.parentNode;
+			}
+			return null;
+		});
+	},
+	
+	// Determine the position of an element within
+	// the matched set of elements
+	index: function( elem ) {
+		if ( !elem || typeof elem === "string" ) {
+			return jQuery.inArray( this[0],
+				// If it receives a string, the selector is used
+				// If it receives nothing, the siblings are used
+				elem ? jQuery( elem ) : this.parent().children() );
+		}
+		// Locate the position of the desired element
+		return jQuery.inArray(
+			// If it receives a jQuery object, the first element is used
+			elem.jquery ? elem[0] : elem, this );
+	},
+
+	add: function( selector, context ) {
+		var set = typeof selector === "string" ?
+				jQuery( selector, context || this.context ) :
+				jQuery.makeArray( selector ),
+			all = jQuery.merge( this.get(), set );
+
+		return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+			all :
+			jQuery.unique( all ) );
+	},
+
+	andSelf: function() {
+		return this.add( this.prevObject );
+	}
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+	return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+	parent: function( elem ) {
+		var parent = elem.parentNode;
+		return parent && parent.nodeType !== 11 ? parent : null;
+	},
+	parents: function( elem ) {
+		return jQuery.dir( elem, "parentNode" );
+	},
+	parentsUntil: function( elem, i, until ) {
+		return jQuery.dir( elem, "parentNode", until );
+	},
+	next: function( elem ) {
+		return jQuery.nth( elem, 2, "nextSibling" );
+	},
+	prev: function( elem ) {
+		return jQuery.nth( elem, 2, "previousSibling" );
+	},
+	nextAll: function( elem ) {
+		return jQuery.dir( elem, "nextSibling" );
+	},
+	prevAll: function( elem ) {
+		return jQuery.dir( elem, "previousSibling" );
+	},
+	nextUntil: function( elem, i, until ) {
+		return jQuery.dir( elem, "nextSibling", until );
+	},
+	prevUntil: function( elem, i, until ) {
+		return jQuery.dir( elem, "previousSibling", until );
+	},
+	siblings: function( elem ) {
+		return jQuery.sibling( elem.parentNode.firstChild, elem );
+	},
+	children: function( elem ) {
+		return jQuery.sibling( elem.firstChild );
+	},
+	contents: function( elem ) {
+		return jQuery.nodeName( elem, "iframe" ) ?
+			elem.contentDocument || elem.contentWindow.document :
+			jQuery.makeArray( elem.childNodes );
+	}
+}, function( name, fn ) {
+	jQuery.fn[ name ] = function( until, selector ) {
+		var ret = jQuery.map( this, fn, until );
+		
+		if ( !runtil.test( name ) ) {
+			selector = until;
+		}
+
+		if ( selector && typeof selector === "string" ) {
+			ret = jQuery.filter( selector, ret );
+		}
+
+		ret = this.length > 1 ? jQuery.unique( ret ) : ret;
+
+		if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+			ret = ret.reverse();
+		}
+
+		return this.pushStack( ret, name, slice.call(arguments).join(",") );
+	};
+});
+
+jQuery.extend({
+	filter: function( expr, elems, not ) {
+		if ( not ) {
+			expr = ":not(" + expr + ")";
+		}
+
+		return jQuery.find.matches(expr, elems);
+	},
+	
+	dir: function( elem, dir, until ) {
+		var matched = [], cur = elem[dir];
+		while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+			if ( cur.nodeType === 1 ) {
+				matched.push( cur );
+			}
+			cur = cur[dir];
+		}
+		return matched;
+	},
+
+	nth: function( cur, result, dir, elem ) {
+		result = result || 1;
+		var num = 0;
+
+		for ( ; cur; cur = cur[dir] ) {
+			if ( cur.nodeType === 1 && ++num === result ) {
+				break;
+			}
+		}
+
+		return cur;
+	},
+
+	sibling: function( n, elem ) {
+		var r = [];
+
+		for ( ; n; n = n.nextSibling ) {
+			if ( n.nodeType === 1 && n !== elem ) {
+				r.push( n );
+			}
+		}
+
+		return r;
+	}
+});
+var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+	rleadingWhitespace = /^\s+/,
+	rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g,
+	rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
+	rtagName = /<([\w:]+)/,
+	rtbody = /<tbody/i,
+	rhtml = /<|&#?\w+;/,
+	rnocache = /<script|<object|<embed|<option|<style/i,
+	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,  // checked="checked" or checked (html5)
+	fcloseTag = function( all, front, tag ) {
+		return rselfClosing.test( tag ) ?
+			all :
+			front + "></" + tag + ">";
+	},
+	wrapMap = {
+		option: [ 1, "<select multiple='multiple'>", "</select>" ],
+		legend: [ 1, "<fieldset>", "</fieldset>" ],
+		thead: [ 1, "<table>", "</table>" ],
+		tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+		td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+		col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+		area: [ 1, "<map>", "</map>" ],
+		_default: [ 0, "", "" ]
+	};
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize <link> and <script> tags normally
+if ( !jQuery.support.htmlSerialize ) {
+	wrapMap._default = [ 1, "div<div>", "</div>" ];
+}
+
+jQuery.fn.extend({
+	text: function( text ) {
+		if ( jQuery.isFunction(text) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.text( text.call(this, i, self.text()) );
+			});
+		}
+
+		if ( typeof text !== "object" && text !== undefined ) {
+			return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+		}
+
+		return jQuery.text( this );
+	},
+
+	wrapAll: function( html ) {
+		if ( jQuery.isFunction( html ) ) {
+			return this.each(function(i) {
+				jQuery(this).wrapAll( html.call(this, i) );
+			});
+		}
+
+		if ( this[0] ) {
+			// The elements to wrap the target around
+			var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+			if ( this[0].parentNode ) {
+				wrap.insertBefore( this[0] );
+			}
+
+			wrap.map(function() {
+				var elem = this;
+
+				while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+					elem = elem.firstChild;
+				}
+
+				return elem;
+			}).append(this);
+		}
+
+		return this;
+	},
+
+	wrapInner: function( html ) {
+		if ( jQuery.isFunction( html ) ) {
+			return this.each(function(i) {
+				jQuery(this).wrapInner( html.call(this, i) );
+			});
+		}
+
+		return this.each(function() {
+			var self = jQuery( this ), contents = self.contents();
+
+			if ( contents.length ) {
+				contents.wrapAll( html );
+
+			} else {
+				self.append( html );
+			}
+		});
+	},
+
+	wrap: function( html ) {
+		return this.each(function() {
+			jQuery( this ).wrapAll( html );
+		});
+	},
+
+	unwrap: function() {
+		return this.parent().each(function() {
+			if ( !jQuery.nodeName( this, "body" ) ) {
+				jQuery( this ).replaceWith( this.childNodes );
+			}
+		}).end();
+	},
+
+	append: function() {
+		return this.domManip(arguments, true, function( elem ) {
+			if ( this.nodeType === 1 ) {
+				this.appendChild( elem );
+			}
+		});
+	},
+
+	prepend: function() {
+		return this.domManip(arguments, true, function( elem ) {
+			if ( this.nodeType === 1 ) {
+				this.insertBefore( elem, this.firstChild );
+			}
+		});
+	},
+
+	before: function() {
+		if ( this[0] && this[0].parentNode ) {
+			return this.domManip(arguments, false, function( elem ) {
+				this.parentNode.insertBefore( elem, this );
+			});
+		} else if ( arguments.length ) {
+			var set = jQuery(arguments[0]);
+			set.push.apply( set, this.toArray() );
+			return this.pushStack( set, "before", arguments );
+		}
+	},
+
+	after: function() {
+		if ( this[0] && this[0].parentNode ) {
+			return this.domManip(arguments, false, function( elem ) {
+				this.parentNode.insertBefore( elem, this.nextSibling );
+			});
+		} else if ( arguments.length ) {
+			var set = this.pushStack( this, "after", arguments );
+			set.push.apply( set, jQuery(arguments[0]).toArray() );
+			return set;
+		}
+	},
+	
+	// keepData is for internal use only--do not document
+	remove: function( selector, keepData ) {
+		for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+			if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+				if ( !keepData && elem.nodeType === 1 ) {
+					jQuery.cleanData( elem.getElementsByTagName("*") );
+					jQuery.cleanData( [ elem ] );
+				}
+
+				if ( elem.parentNode ) {
+					 elem.parentNode.removeChild( elem );
+				}
+			}
+		}
+		
+		return this;
+	},
+
+	empty: function() {
+		for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+			// Remove element nodes and prevent memory leaks
+			if ( elem.nodeType === 1 ) {
+				jQuery.cleanData( elem.getElementsByTagName("*") );
+			}
+
+			// Remove any remaining nodes
+			while ( elem.firstChild ) {
+				elem.removeChild( elem.firstChild );
+			}
+		}
+		
+		return this;
+	},
+
+	clone: function( events ) {
+		// Do the clone
+		var ret = this.map(function() {
+			if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
+				// IE copies events bound via attachEvent when
+				// using cloneNode. Calling detachEvent on the
+				// clone will also remove the events from the orignal
+				// In order to get around this, we use innerHTML.
+				// Unfortunately, this means some modifications to
+				// attributes in IE that are actually only stored
+				// as properties will not be copied (such as the
+				// the name attribute on an input).
+				var html = this.outerHTML, ownerDocument = this.ownerDocument;
+				if ( !html ) {
+					var div = ownerDocument.createElement("div");
+					div.appendChild( this.cloneNode(true) );
+					html = div.innerHTML;
+				}
+
+				return jQuery.clean([html.replace(rinlinejQuery, "")
+					// Handle the case in IE 8 where action=/test/> self-closes a tag
+					.replace(/=([^="'>\s]+\/)>/g, '="$1">')
+					.replace(rleadingWhitespace, "")], ownerDocument)[0];
+			} else {
+				return this.cloneNode(true);
+			}
+		});
+
+		// Copy the events from the original to the clone
+		if ( events === true ) {
+			cloneCopyEvent( this, ret );
+			cloneCopyEvent( this.find("*"), ret.find("*") );
+		}
+
+		// Return the cloned set
+		return ret;
+	},
+
+	html: function( value ) {
+		if ( value === undefined ) {
+			return this[0] && this[0].nodeType === 1 ?
+				this[0].innerHTML.replace(rinlinejQuery, "") :
+				null;
+
+		// See if we can take a shortcut and just use innerHTML
+		} else if ( typeof value === "string" && !rnocache.test( value ) &&
+			(jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+			!wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
+
+			value = value.replace(rxhtmlTag, fcloseTag);
+
+			try {
+				for ( var i = 0, l = this.length; i < l; i++ ) {
+					// Remove element nodes and prevent memory leaks
+					if ( this[i].nodeType === 1 ) {
+						jQuery.cleanData( this[i].getElementsByTagName("*") );
+						this[i].innerHTML = value;
+					}
+				}
+
+			// If using innerHTML throws an exception, use the fallback method
+			} catch(e) {
+				this.empty().append( value );
+			}
+
+		} else if ( jQuery.isFunction( value ) ) {
+			this.each(function(i){
+				var self = jQuery(this), old = self.html();
+				self.empty().append(function(){
+					return value.call( this, i, old );
+				});
+			});
+
+		} else {
+			this.empty().append( value );
+		}
+
+		return this;
+	},
+
+	replaceWith: function( value ) {
+		if ( this[0] && this[0].parentNode ) {
+			// Make sure that the elements are removed from the DOM before they are inserted
+			// this can help fix replacing a parent with child elements
+			if ( jQuery.isFunction( value ) ) {
+				return this.each(function(i) {
+					var self = jQuery(this), old = self.html();
+					self.replaceWith( value.call( this, i, old ) );
+				});
+			}
+
+			if ( typeof value !== "string" ) {
+				value = jQuery(value).detach();
+			}
+
+			return this.each(function() {
+				var next = this.nextSibling, parent = this.parentNode;
+
+				jQuery(this).remove();
+
+				if ( next ) {
+					jQuery(next).before( value );
+				} else {
+					jQuery(parent).append( value );
+				}
+			});
+		} else {
+			return this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value );
+		}
+	},
+
+	detach: function( selector ) {
+		return this.remove( selector, true );
+	},
+
+	domManip: function( args, table, callback ) {
+		var results, first, value = args[0], scripts = [], fragment, parent;
+
+		// We can't cloneNode fragments that contain checked, in WebKit
+		if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
+			return this.each(function() {
+				jQuery(this).domManip( args, table, callback, true );
+			});
+		}
+
+		if ( jQuery.isFunction(value) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				args[0] = value.call(this, i, table ? self.html() : undefined);
+				self.domManip( args, table, callback );
+			});
+		}
+
+		if ( this[0] ) {
+			parent = value && value.parentNode;
+
+			// If we're in a fragment, just use that instead of building a new one
+			if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+				results = { fragment: parent };
+
+			} else {
+				results = buildFragment( args, this, scripts );
+			}
+			
+			fragment = results.fragment;
+			
+			if ( fragment.childNodes.length === 1 ) {
+				first = fragment = fragment.firstChild;
+			} else {
+				first = fragment.firstChild;
+			}
+
+			if ( first ) {
+				table = table && jQuery.nodeName( first, "tr" );
+
+				for ( var i = 0, l = this.length; i < l; i++ ) {
+					callback.call(
+						table ?
+							root(this[i], first) :
+							this[i],
+						i > 0 || results.cacheable || this.length > 1  ?
+							fragment.cloneNode(true) :
+							fragment
+					);
+				}
+			}
+
+			if ( scripts.length ) {
+				jQuery.each( scripts, evalScript );
+			}
+		}
+
+		return this;
+
+		function root( elem, cur ) {
+			return jQuery.nodeName(elem, "table") ?
+				(elem.getElementsByTagName("tbody")[0] ||
+				elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+				elem;
+		}
+	}
+});
+
+function cloneCopyEvent(orig, ret) {
+	var i = 0;
+
+	ret.each(function() {
+		if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
+			return;
+		}
+
+		var oldData = jQuery.data( orig[i++] ), curData = jQuery.data( this, oldData ), events = oldData && oldData.events;
+
+		if ( events ) {
+			delete curData.handle;
+			curData.events = {};
+
+			for ( var type in events ) {
+				for ( var handler in events[ type ] ) {
+					jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
+				}
+			}
+		}
+	});
+}
+
+function buildFragment( args, nodes, scripts ) {
+	var fragment, cacheable, cacheresults,
+		doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);
+
+	// Only cache "small" (1/2 KB) strings that are associated with the main document
+	// Cloning options loses the selected state, so don't cache them
+	// IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
+	// Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+	if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
+		!rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
+
+		cacheable = true;
+		cacheresults = jQuery.fragments[ args[0] ];
+		if ( cacheresults ) {
+			if ( cacheresults !== 1 ) {
+				fragment = cacheresults;
+			}
+		}
+	}
+
+	if ( !fragment ) {
+		fragment = doc.createDocumentFragment();
+		jQuery.clean( args, doc, fragment, scripts );
+	}
+
+	if ( cacheable ) {
+		jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
+	}
+
+	return { fragment: fragment, cacheable: cacheable };
+}
+
+jQuery.fragments = {};
+
+jQuery.each({
+	appendTo: "append",
+	prependTo: "prepend",
+	insertBefore: "before",
+	insertAfter: "after",
+	replaceAll: "replaceWith"
+}, function( name, original ) {
+	jQuery.fn[ name ] = function( selector ) {
+		var ret = [], insert = jQuery( selector ),
+			parent = this.length === 1 && this[0].parentNode;
+		
+		if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+			insert[ original ]( this[0] );
+			return this;
+			
+		} else {
+			for ( var i = 0, l = insert.length; i < l; i++ ) {
+				var elems = (i > 0 ? this.clone(true) : this).get();
+				jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
+				ret = ret.concat( elems );
+			}
+		
+			return this.pushStack( ret, name, insert.selector );
+		}
+	};
+});
+
+jQuery.extend({
+	clean: function( elems, context, fragment, scripts ) {
+		context = context || document;
+
+		// !context.createElement fails in IE with an error but returns typeof 'object'
+		if ( typeof context.createElement === "undefined" ) {
+			context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+		}
+
+		var ret = [];
+
+		for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+			if ( typeof elem === "number" ) {
+				elem += "";
+			}
+
+			if ( !elem ) {
+				continue;
+			}
+
+			// Convert html string into DOM nodes
+			if ( typeof elem === "string" && !rhtml.test( elem ) ) {
+				elem = context.createTextNode( elem );
+
+			} else if ( typeof elem === "string" ) {
+				// Fix "XHTML"-style tags in all browsers
+				elem = elem.replace(rxhtmlTag, fcloseTag);
+
+				// Trim whitespace, otherwise indexOf won't work as expected
+				var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
+					wrap = wrapMap[ tag ] || wrapMap._default,
+					depth = wrap[0],
+					div = context.createElement("div");
+
+				// Go to html and back, then peel off extra wrappers
+				div.innerHTML = wrap[1] + elem + wrap[2];
+
+				// Move to the right depth
+				while ( depth-- ) {
+					div = div.lastChild;
+				}
+
+				// Remove IE's autoinserted <tbody> from table fragments
+				if ( !jQuery.support.tbody ) {
+
+					// String was a <table>, *may* have spurious <tbody>
+					var hasBody = rtbody.test(elem),
+						tbody = tag === "table" && !hasBody ?
+							div.firstChild && div.firstChild.childNodes :
+
+							// String was a bare <thead> or <tfoot>
+							wrap[1] === "<table>" && !hasBody ?
+								div.childNodes :
+								[];
+
+					for ( var j = tbody.length - 1; j >= 0 ; --j ) {
+						if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+							tbody[ j ].parentNode.removeChild( tbody[ j ] );
+						}
+					}
+
+				}
+
+				// IE completely kills leading whitespace when innerHTML is used
+				if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+					div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+				}
+
+				elem = div.childNodes;
+			}
+
+			if ( elem.nodeType ) {
+				ret.push( elem );
+			} else {
+				ret = jQuery.merge( ret, elem );
+			}
+		}
+
+		if ( fragment ) {
+			for ( var i = 0; ret[i]; i++ ) {
+				if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+					scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+				
+				} else {
+					if ( ret[i].nodeType === 1 ) {
+						ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
+					}
+					fragment.appendChild( ret[i] );
+				}
+			}
+		}
+
+		return ret;
+	},
+	
+	cleanData: function( elems ) {
+		var data, id, cache = jQuery.cache,
+			special = jQuery.event.special,
+			deleteExpando = jQuery.support.deleteExpando;
+		
+		for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+			id = elem[ jQuery.expando ];
+			
+			if ( id ) {
+				data = cache[ id ];
+				
+				if ( data.events ) {
+					for ( var type in data.events ) {
+						if ( special[ type ] ) {
+							jQuery.event.remove( elem, type );
+
+						} else {
+							removeEvent( elem, type, data.handle );
+						}
+					}
+				}
+				
+				if ( deleteExpando ) {
+					delete elem[ jQuery.expando ];
+
+				} else if ( elem.removeAttribute ) {
+					elem.removeAttribute( jQuery.expando );
+				}
+				
+				delete cache[ id ];
+			}
+		}
+	}
+});
+// exclude the following css properties to add px
+var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
+	ralpha = /alpha\([^)]*\)/,
+	ropacity = /opacity=([^)]*)/,
+	rfloat = /float/i,
+	rdashAlpha = /-([a-z])/ig,
+	rupper = /([A-Z])/g,
+	rnumpx = /^-?\d+(?:px)?$/i,
+	rnum = /^-?\d/,
+
+	cssShow = { position: "absolute", visibility: "hidden", display:"block" },
+	cssWidth = [ "Left", "Right" ],
+	cssHeight = [ "Top", "Bottom" ],
+
+	// cache check for defaultView.getComputedStyle
+	getComputedStyle = document.defaultView && document.defaultView.getComputedStyle,
+	// normalize float css property
+	styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat",
+	fcamelCase = function( all, letter ) {
+		return letter.toUpperCase();
+	};
+
+jQuery.fn.css = function( name, value ) {
+	return access( this, name, value, true, function( elem, name, value ) {
+		if ( value === undefined ) {
+			return jQuery.curCSS( elem, name );
+		}
+		
+		if ( typeof value === "number" && !rexclude.test(name) ) {
+			value += "px";
+		}
+
+		jQuery.style( elem, name, value );
+	});
+};
+
+jQuery.extend({
+	style: function( elem, name, value ) {
+		// don't set styles on text and comment nodes
+		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return undefined;
+		}
+
+		// ignore negative width and height values #1599
+		if ( (name === "width" || name === "height") && parseFloat(value) < 0 ) {
+			value = undefined;
+		}
+
+		var style = elem.style || elem, set = value !== undefined;
+
+		// IE uses filters for opacity
+		if ( !jQuery.support.opacity && name === "opacity" ) {
+			if ( set ) {
+				// IE has trouble with opacity if it does not have layout
+				// Force it by setting the zoom level
+				style.zoom = 1;
+
+				// Set the alpha filter to set the opacity
+				var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")";
+				var filter = style.filter || jQuery.curCSS( elem, "filter" ) || "";
+				style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
+			}
+
+			return style.filter && style.filter.indexOf("opacity=") >= 0 ?
+				(parseFloat( ropacity.exec(style.filter)[1] ) / 100) + "":
+				"";
+		}
+
+		// Make sure we're using the right name for getting the float value
+		if ( rfloat.test( name ) ) {
+			name = styleFloat;
+		}
+
+		name = name.replace(rdashAlpha, fcamelCase);
+
+		if ( set ) {
+			style[ name ] = value;
+		}
+
+		return style[ name ];
+	},
+
+	css: function( elem, name, force, extra ) {
+		if ( name === "width" || name === "height" ) {
+			var val, props = cssShow, which = name === "width" ? cssWidth : cssHeight;
+
+			function getWH() {
+				val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
+
+				if ( extra === "border" ) {
+					return;
+				}
+
+				jQuery.each( which, function() {
+					if ( !extra ) {
+						val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
+					}
+
+					if ( extra === "margin" ) {
+						val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
+					} else {
+						val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
+					}
+				});
+			}
+
+			if ( elem.offsetWidth !== 0 ) {
+				getWH();
+			} else {
+				jQuery.swap( elem, props, getWH );
+			}
+
+			return Math.max(0, Math.round(val));
+		}
+
+		return jQuery.curCSS( elem, name, force );
+	},
+
+	curCSS: function( elem, name, force ) {
+		var ret, style = elem.style, filter;
+
+		// IE uses filters for opacity
+		if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
+			ret = ropacity.test(elem.currentStyle.filter || "") ?
+				(parseFloat(RegExp.$1) / 100) + "" :
+				"";
+
+			return ret === "" ?
+				"1" :
+				ret;
+		}
+
+		// Make sure we're using the right name for getting the float value
+		if ( rfloat.test( name ) ) {
+			name = styleFloat;
+		}
+
+		if ( !force && style && style[ name ] ) {
+			ret = style[ name ];
+
+		} else if ( getComputedStyle ) {
+
+			// Only "float" is needed here
+			if ( rfloat.test( name ) ) {
+				name = "float";
+			}
+
+			name = name.replace( rupper, "-$1" ).toLowerCase();
+
+			var defaultView = elem.ownerDocument.defaultView;
+
+			if ( !defaultView ) {
+				return null;
+			}
+
+			var computedStyle = defaultView.getComputedStyle( elem, null );
+
+			if ( computedStyle ) {
+				ret = computedStyle.getPropertyValue( name );
+			}
+
+			// We should always get a number back from opacity
+			if ( name === "opacity" && ret === "" ) {
+				ret = "1";
+			}
+
+		} else if ( elem.currentStyle ) {
+			var camelCase = name.replace(rdashAlpha, fcamelCase);
+
+			ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
+
+			// From the awesome hack by Dean Edwards
+			// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+			// If we're not dealing with a regular pixel number
+			// but a number that has a weird ending, we need to convert it to pixels
+			if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
+				// Remember the original values
+				var left = style.left, rsLeft = elem.runtimeStyle.left;
+
+				// Put in the new values to get a computed value out
+				elem.runtimeStyle.left = elem.currentStyle.left;
+				style.left = camelCase === "fontSize" ? "1em" : (ret || 0);
+				ret = style.pixelLeft + "px";
+
+				// Revert the changed values
+				style.left = left;
+				elem.runtimeStyle.left = rsLeft;
+			}
+		}
+
+		return ret;
+	},
+
+	// A method for quickly swapping in/out CSS properties to get correct calculations
+	swap: function( elem, options, callback ) {
+		var old = {};
+
+		// Remember the old values, and insert the new ones
+		for ( var name in options ) {
+			old[ name ] = elem.style[ name ];
+			elem.style[ name ] = options[ name ];
+		}
+
+		callback.call( elem );
+
+		// Revert the old values
+		for ( var name in options ) {
+			elem.style[ name ] = old[ name ];
+		}
+	}
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+	jQuery.expr.filters.hidden = function( elem ) {
+		var width = elem.offsetWidth, height = elem.offsetHeight,
+			skip = elem.nodeName.toLowerCase() === "tr";
+
+		return width === 0 && height === 0 && !skip ?
+			true :
+			width > 0 && height > 0 && !skip ?
+				false :
+				jQuery.curCSS(elem, "display") === "none";
+	};
+
+	jQuery.expr.filters.visible = function( elem ) {
+		return !jQuery.expr.filters.hidden( elem );
+	};
+}
+var jsc = now(),
+	rscript = /<script(.|\s)*?\/script>/gi,
+	rselectTextarea = /select|textarea/i,
+	rinput = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
+	jsre = /=\?(&|$)/,
+	rquery = /\?/,
+	rts = /(\?|&)_=.*?(&|$)/,
+	rurl = /^(\w+:)?\/\/([^\/?#]+)/,
+	r20 = /%20/g,
+
+	// Keep a copy of the old load method
+	_load = jQuery.fn.load;
+
+jQuery.fn.extend({
+	load: function( url, params, callback ) {
+		if ( typeof url !== "string" ) {
+			return _load.call( this, url );
+
+		// Don't do a request if no elements are being requested
+		} else if ( !this.length ) {
+			return this;
+		}
+
+		var off = url.indexOf(" ");
+		if ( off >= 0 ) {
+			var selector = url.slice(off, url.length);
+			url = url.slice(0, off);
+		}
+
+		// Default to a GET request
+		var type = "GET";
+
+		// If the second parameter was provided
+		if ( params ) {
+			// If it's a function
+			if ( jQuery.isFunction( params ) ) {
+				// We assume that it's the callback
+				callback = params;
+				params = null;
+
+			// Otherwise, build a param string
+			} else if ( typeof params === "object" ) {
+				params = jQuery.param( params, jQuery.ajaxSettings.traditional );
+				type = "POST";
+			}
+		}
+
+		var self = this;
+
+		// Request the remote document
+		jQuery.ajax({
+			url: url,
+			type: type,
+			dataType: "html",
+			data: params,
+			complete: function( res, status ) {
+				// If successful, inject the HTML into all the matched elements
+				if ( status === "success" || status === "notmodified" ) {
+					// See if a selector was specified
+					self.html( selector ?
+						// Create a dummy div to hold the results
+						jQuery("<div />")
+							// inject the contents of the document in, removing the scripts
+							// to avoid any 'Permission Denied' errors in IE
+							.append(res.responseText.replace(rscript, ""))
+
+							// Locate the specified elements
+							.find(selector) :
+
+						// If not, just inject the full result
+						res.responseText );
+				}
+
+				if ( callback ) {
+					self.each( callback, [res.responseText, status, res] );
+				}
+			}
+		});
+
+		return this;
+	},
+
+	serialize: function() {
+		return jQuery.param(this.serializeArray());
+	},
+	serializeArray: function() {
+		return this.map(function() {
+			return this.elements ? jQuery.makeArray(this.elements) : this;
+		})
+		.filter(function() {
+			return this.name && !this.disabled &&
+				(this.checked || rselectTextarea.test(this.nodeName) ||
+					rinput.test(this.type));
+		})
+		.map(function( i, elem ) {
+			var val = jQuery(this).val();
+
+			return val == null ?
+				null :
+				jQuery.isArray(val) ?
+					jQuery.map( val, function( val, i ) {
+						return { name: elem.name, value: val };
+					}) :
+					{ name: elem.name, value: val };
+		}).get();
+	}
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function( i, o ) {
+	jQuery.fn[o] = function( f ) {
+		return this.bind(o, f);
+	};
+});
+
+jQuery.extend({
+
+	get: function( url, data, callback, type ) {
+		// shift arguments if data argument was omited
+		if ( jQuery.isFunction( data ) ) {
+			type = type || callback;
+			callback = data;
+			data = null;
+		}
+
+		return jQuery.ajax({
+			type: "GET",
+			url: url,
+			data: data,
+			success: callback,
+			dataType: type
+		});
+	},
+
+	getScript: function( url, callback ) {
+		return jQuery.get(url, null, callback, "script");
+	},
+
+	getJSON: function( url, data, callback ) {
+		return jQuery.get(url, data, callback, "json");
+	},
+
+	post: function( url, data, callback, type ) {
+		// shift arguments if data argument was omited
+		if ( jQuery.isFunction( data ) ) {
+			type = type || callback;
+			callback = data;
+			data = {};
+		}
+
+		return jQuery.ajax({
+			type: "POST",
+			url: url,
+			data: data,
+			success: callback,
+			dataType: type
+		});
+	},
+
+	ajaxSetup: function( settings ) {
+		jQuery.extend( jQuery.ajaxSettings, settings );
+	},
+
+	ajaxSettings: {
+		url: location.href,
+		global: true,
+		type: "GET",
+		contentType: "application/x-www-form-urlencoded",
+		processData: true,
+		async: true,
+		/*
+		timeout: 0,
+		data: null,
+		username: null,
+		password: null,
+		traditional: false,
+		*/
+		// Create the request object; Microsoft failed to properly
+		// implement the XMLHttpRequest in IE7 (can't request local files),
+		// so we use the ActiveXObject when it is available
+		// This function can be overriden by calling jQuery.ajaxSetup
+		xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ?
+			function() {
+				return new window.XMLHttpRequest();
+			} :
+			function() {
+				try {
+					return new window.ActiveXObject("Microsoft.XMLHTTP");
+				} catch(e) {}
+			},
+		accepts: {
+			xml: "application/xml, text/xml",
+			html: "text/html",
+			script: "text/javascript, application/javascript",
+			json: "application/json, text/javascript",
+			text: "text/plain",
+			_default: "*/*"
+		}
+	},
+
+	// Last-Modified header cache for next request
+	lastModified: {},
+	etag: {},
+
+	ajax: function( origSettings ) {
+		var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings);
+		
+		var jsonp, status, data,
+			callbackContext = origSettings && origSettings.context || s,
+			type = s.type.toUpperCase();
+
+		// convert data if not already a string
+		if ( s.data && s.processData && typeof s.data !== "string" ) {
+			s.data = jQuery.param( s.data, s.traditional );
+		}
+
+		// Handle JSONP Parameter Callbacks
+		if ( s.dataType === "jsonp" ) {
+			if ( type === "GET" ) {
+				if ( !jsre.test( s.url ) ) {
+					s.url += (rquery.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?";
+				}
+			} else if ( !s.data || !jsre.test(s.data) ) {
+				s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
+			}
+			s.dataType = "json";
+		}
+
+		// Build temporary JSONP function
+		if ( s.dataType === "json" && (s.data && jsre.test(s.data) || jsre.test(s.url)) ) {
+			jsonp = s.jsonpCallback || ("jsonp" + jsc++);
+
+			// Replace the =? sequence both in the query string and the data
+			if ( s.data ) {
+				s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
+			}
+
+			s.url = s.url.replace(jsre, "=" + jsonp + "$1");
+
+			// We need to make sure
+			// that a JSONP style response is executed properly
+			s.dataType = "script";
+
+			// Handle JSONP-style loading
+			window[ jsonp ] = window[ jsonp ] || function( tmp ) {
+				data = tmp;
+				success();
+				complete();
+				// Garbage collect
+				window[ jsonp ] = undefined;
+
+				try {
+					delete window[ jsonp ];
+				} catch(e) {}
+
+				if ( head ) {
+					head.removeChild( script );
+				}
+			};
+		}
+
+		if ( s.dataType === "script" && s.cache === null ) {
+			s.cache = false;
+		}
+
+		if ( s.cache === false && type === "GET" ) {
+			var ts = now();
+
+			// try replacing _= if it is there
+			var ret = s.url.replace(rts, "$1_=" + ts + "$2");
+
+			// if nothing was replaced, add timestamp to the end
+			s.url = ret + ((ret === s.url) ? (rquery.test(s.url) ? "&" : "?") + "_=" + ts : "");
+		}
+
+		// If data is available, append data to url for get requests
+		if ( s.data && type === "GET" ) {
+			s.url += (rquery.test(s.url) ? "&" : "?") + s.data;
+		}
+
+		// Watch for a new set of requests
+		if ( s.global && ! jQuery.active++ ) {
+			jQuery.event.trigger( "ajaxStart" );
+		}
+
+		// Matches an absolute URL, and saves the domain
+		var parts = rurl.exec( s.url ),
+			remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host);
+
+		// If we're requesting a remote document
+		// and trying to load JSON or Script with a GET
+		if ( s.dataType === "script" && type === "GET" && remote ) {
+			var head = document.getElementsByTagName("head")[0] || document.documentElement;
+			var script = document.createElement("script");
+			script.src = s.url;
+			if ( s.scriptCharset ) {
+				script.charset = s.scriptCharset;
+			}
+
+			// Handle Script loading
+			if ( !jsonp ) {
+				var done = false;
+
+				// Attach handlers for all browsers
+				script.onload = script.onreadystatechange = function() {
+					if ( !done && (!this.readyState ||
+							this.readyState === "loaded" || this.readyState === "complete") ) {
+						done = true;
+						success();
+						complete();
+
+						// Handle memory leak in IE
+						script.onload = script.onreadystatechange = null;
+						if ( head && script.parentNode ) {
+							head.removeChild( script );
+						}
+					}
+				};
+			}
+
+			// Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+			// This arises when a base node is used (#2709 and #4378).
+			head.insertBefore( script, head.firstChild );
+
+			// We handle everything using the script element injection
+			return undefined;
+		}
+
+		var requestDone = false;
+
+		// Create the request object
+		var xhr = s.xhr();
+
+		if ( !xhr ) {
+			return;
+		}
+
+		// Open the socket
+		// Passing null username, generates a login popup on Opera (#2865)
+		if ( s.username ) {
+			xhr.open(type, s.url, s.async, s.username, s.password);
+		} else {
+			xhr.open(type, s.url, s.async);
+		}
+
+		// Need an extra try/catch for cross domain requests in Firefox 3
+		try {
+			// Set the correct header, if data is being sent
+			if ( s.data || origSettings && origSettings.contentType ) {
+				xhr.setRequestHeader("Content-Type", s.contentType);
+			}
+
+			// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+			if ( s.ifModified ) {
+				if ( jQuery.lastModified[s.url] ) {
+					xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]);
+				}
+
+				if ( jQuery.etag[s.url] ) {
+					xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]);
+				}
+			}
+
+			// Set header so the called script knows that it's an XMLHttpRequest
+			// Only send the header if it's not a remote XHR
+			if ( !remote ) {
+				xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
+			}
+
+			// Set the Accepts header for the server, depending on the dataType
+			xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
+				s.accepts[ s.dataType ] + ", */*" :
+				s.accepts._default );
+		} catch(e) {}
+
+		// Allow custom headers/mimetypes and early abort
+		if ( s.beforeSend && s.beforeSend.call(callbackContext, xhr, s) === false ) {
+			// Handle the global AJAX counter
+			if ( s.global && ! --jQuery.active ) {
+				jQuery.event.trigger( "ajaxStop" );
+			}
+
+			// close opended socket
+			xhr.abort();
+			return false;
+		}
+
+		if ( s.global ) {
+			trigger("ajaxSend", [xhr, s]);
+		}
+
+		// Wait for a response to come back
+		var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) {
+			// The request was aborted
+			if ( !xhr || xhr.readyState === 0 || isTimeout === "abort" ) {
+				// Opera doesn't call onreadystatechange before this point
+				// so we simulate the call
+				if ( !requestDone ) {
+					complete();
+				}
+
+				requestDone = true;
+				if ( xhr ) {
+					xhr.onreadystatechange = jQuery.noop;
+				}
+
+			// The transfer is complete and the data is available, or the request timed out
+			} else if ( !requestDone && xhr && (xhr.readyState === 4 || isTimeout === "timeout") ) {
+				requestDone = true;
+				xhr.onreadystatechange = jQuery.noop;
+
+				status = isTimeout === "timeout" ?
+					"timeout" :
+					!jQuery.httpSuccess( xhr ) ?
+						"error" :
+						s.ifModified && jQuery.httpNotModified( xhr, s.url ) ?
+							"notmodified" :
+							"success";
+
+				var errMsg;
+
+				if ( status === "success" ) {
+					// Watch for, and catch, XML document parse errors
+					try {
+						// process the data (runs the xml through httpData regardless of callback)
+						data = jQuery.httpData( xhr, s.dataType, s );
+					} catch(err) {
+						status = "parsererror";
+						errMsg = err;
+					}
+				}
+
+				// Make sure that the request was successful or notmodified
+				if ( status === "success" || status === "notmodified" ) {
+					// JSONP handles its own success callback
+					if ( !jsonp ) {
+						success();
+					}
+				} else {
+					jQuery.handleError(s, xhr, status, errMsg);
+				}
+
+				// Fire the complete handlers
+				complete();
+
+				if ( isTimeout === "timeout" ) {
+					xhr.abort();
+				}
+
+				// Stop memory leaks
+				if ( s.async ) {
+					xhr = null;
+				}
+			}
+		};
+
+		// Override the abort handler, if we can (IE doesn't allow it, but that's OK)
+		// Opera doesn't fire onreadystatechange at all on abort
+		try {
+			var oldAbort = xhr.abort;
+			xhr.abort = function() {
+				if ( xhr ) {
+					oldAbort.call( xhr );
+				}
+
+				onreadystatechange( "abort" );
+			};
+		} catch(e) { }
+
+		// Timeout checker
+		if ( s.async && s.timeout > 0 ) {
+			setTimeout(function() {
+				// Check to see if the request is still happening
+				if ( xhr && !requestDone ) {
+					onreadystatechange( "timeout" );
+				}
+			}, s.timeout);
+		}
+
+		// Send the data
+		try {
+			xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
+		} catch(e) {
+			jQuery.handleError(s, xhr, null, e);
+			// Fire the complete handlers
+			complete();
+		}
+
+		// firefox 1.5 doesn't fire statechange for sync requests
+		if ( !s.async ) {
+			onreadystatechange();
+		}
+
+		function success() {
+			// If a local callback was specified, fire it and pass it the data
+			if ( s.success ) {
+				s.success.call( callbackContext, data, status, xhr );
+			}
+
+			// Fire the global callback
+			if ( s.global ) {
+				trigger( "ajaxSuccess", [xhr, s] );
+			}
+		}
+
+		function complete() {
+			// Process result
+			if ( s.complete ) {
+				s.complete.call( callbackContext, xhr, status);
+			}
+
+			// The request was completed
+			if ( s.global ) {
+				trigger( "ajaxComplete", [xhr, s] );
+			}
+
+			// Handle the global AJAX counter
+			if ( s.global && ! --jQuery.active ) {
+				jQuery.event.trigger( "ajaxStop" );
+			}
+		}
+		
+		function trigger(type, args) {
+			(s.context ? jQuery(s.context) : jQuery.event).trigger(type, args);
+		}
+
+		// return XMLHttpRequest to allow aborting the request etc.
+		return xhr;
+	},
+
+	handleError: function( s, xhr, status, e ) {
+		// If a local callback was specified, fire it
+		if ( s.error ) {
+			s.error.call( s.context || s, xhr, status, e );
+		}
+
+		// Fire the global callback
+		if ( s.global ) {
+			(s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] );
+		}
+	},
+
+	// Counter for holding the number of active queries
+	active: 0,
+
+	// Determines if an XMLHttpRequest was successful or not
+	httpSuccess: function( xhr ) {
+		try {
+			// IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
+			return !xhr.status && location.protocol === "file:" ||
+				// Opera returns 0 when status is 304
+				( xhr.status >= 200 && xhr.status < 300 ) ||
+				xhr.status === 304 || xhr.status === 1223 || xhr.status === 0;
+		} catch(e) {}
+
+		return false;
+	},
+
+	// Determines if an XMLHttpRequest returns NotModified
+	httpNotModified: function( xhr, url ) {
+		var lastModified = xhr.getResponseHeader("Last-Modified"),
+			etag = xhr.getResponseHeader("Etag");
+
+		if ( lastModified ) {
+			jQuery.lastModified[url] = lastModified;
+		}
+
+		if ( etag ) {
+			jQuery.etag[url] = etag;
+		}
+
+		// Opera returns 0 when status is 304
+		return xhr.status === 304 || xhr.status === 0;
+	},
+
+	httpData: function( xhr, type, s ) {
+		var ct = xhr.getResponseHeader("content-type") || "",
+			xml = type === "xml" || !type && ct.indexOf("xml") >= 0,
+			data = xml ? xhr.responseXML : xhr.responseText;
+
+		if ( xml && data.documentElement.nodeName === "parsererror" ) {
+			jQuery.error( "parsererror" );
+		}
+
+		// Allow a pre-filtering function to sanitize the response
+		// s is checked to keep backwards compatibility
+		if ( s && s.dataFilter ) {
+			data = s.dataFilter( data, type );
+		}
+
+		// The filter can actually parse the response
+		if ( typeof data === "string" ) {
+			// Get the JavaScript object, if JSON is used.
+			if ( type === "json" || !type && ct.indexOf("json") >= 0 ) {
+				data = jQuery.parseJSON( data );
+
+			// If the type is "script", eval it in global context
+			} else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) {
+				jQuery.globalEval( data );
+			}
+		}
+
+		return data;
+	},
+
+	// Serialize an array of form elements or a set of
+	// key/values into a query string
+	param: function( a, traditional ) {
+		var s = [];
+		
+		// Set traditional to true for jQuery <= 1.3.2 behavior.
+		if ( traditional === undefined ) {
+			traditional = jQuery.ajaxSettings.traditional;
+		}
+		
+		// If an array was passed in, assume that it is an array of form elements.
+		if ( jQuery.isArray(a) || a.jquery ) {
+			// Serialize the form elements
+			jQuery.each( a, function() {
+				add( this.name, this.value );
+			});
+			
+		} else {
+			// If traditional, encode the "old" way (the way 1.3.2 or older
+			// did it), otherwise encode params recursively.
+			for ( var prefix in a ) {
+				buildParams( prefix, a[prefix] );
+			}
+		}
+
+		// Return the resulting serialization
+		return s.join("&").replace(r20, "+");
+
+		function buildParams( prefix, obj ) {
+			if ( jQuery.isArray(obj) ) {
+				// Serialize array item.
+				jQuery.each( obj, function( i, v ) {
+					if ( traditional || /\[\]$/.test( prefix ) ) {
+						// Treat each array item as a scalar.
+						add( prefix, v );
+					} else {
+						// If array item is non-scalar (array or object), encode its
+						// numeric index to resolve deserialization ambiguity issues.
+						// Note that rack (as of 1.0.0) can't currently deserialize
+						// nested arrays properly, and attempting to do so may cause
+						// a server error. Possible fixes are to modify rack's
+						// deserialization algorithm or to provide an option or flag
+						// to force array serialization to be shallow.
+						buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v );
+					}
+				});
+					
+			} else if ( !traditional && obj != null && typeof obj === "object" ) {
+				// Serialize object item.
+				jQuery.each( obj, function( k, v ) {
+					buildParams( prefix + "[" + k + "]", v );
+				});
+					
+			} else {
+				// Serialize scalar item.
+				add( prefix, obj );
+			}
+		}
+
+		function add( key, value ) {
+			// If value is a function, invoke it and return its value
+			value = jQuery.isFunction(value) ? value() : value;
+			s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
+		}
+	}
+});
+var elemdisplay = {},
+	rfxtypes = /toggle|show|hide/,
+	rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/,
+	timerId,
+	fxAttrs = [
+		// height animations
+		[ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+		// width animations
+		[ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+		// opacity animations
+		[ "opacity" ]
+	];
+
+jQuery.fn.extend({
+	show: function( speed, callback ) {
+		if ( speed || speed === 0) {
+			return this.animate( genFx("show", 3), speed, callback);
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var old = jQuery.data(this[i], "olddisplay");
+
+				this[i].style.display = old || "";
+
+				if ( jQuery.css(this[i], "display") === "none" ) {
+					var nodeName = this[i].nodeName, display;
+
+					if ( elemdisplay[ nodeName ] ) {
+						display = elemdisplay[ nodeName ];
+
+					} else {
+						var elem = jQuery("<" + nodeName + " />").appendTo("body");
+
+						display = elem.css("display");
+
+						if ( display === "none" ) {
+							display = "block";
+						}
+
+						elem.remove();
+
+						elemdisplay[ nodeName ] = display;
+					}
+
+					jQuery.data(this[i], "olddisplay", display);
+				}
+			}
+
+			// Set the display of the elements in a second loop
+			// to avoid the constant reflow
+			for ( var j = 0, k = this.length; j < k; j++ ) {
+				this[j].style.display = jQuery.data(this[j], "olddisplay") || "";
+			}
+
+			return this;
+		}
+	},
+
+	hide: function( speed, callback ) {
+		if ( speed || speed === 0 ) {
+			return this.animate( genFx("hide", 3), speed, callback);
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var old = jQuery.data(this[i], "olddisplay");
+				if ( !old && old !== "none" ) {
+					jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
+				}
+			}
+
+			// Set the display of the elements in a second loop
+			// to avoid the constant reflow
+			for ( var j = 0, k = this.length; j < k; j++ ) {
+				this[j].style.display = "none";
+			}
+
+			return this;
+		}
+	},
+
+	// Save the old toggle function
+	_toggle: jQuery.fn.toggle,
+
+	toggle: function( fn, fn2 ) {
+		var bool = typeof fn === "boolean";
+
+		if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
+			this._toggle.apply( this, arguments );
+
+		} else if ( fn == null || bool ) {
+			this.each(function() {
+				var state = bool ? fn : jQuery(this).is(":hidden");
+				jQuery(this)[ state ? "show" : "hide" ]();
+			});
+
+		} else {
+			this.animate(genFx("toggle", 3), fn, fn2);
+		}
+
+		return this;
+	},
+
+	fadeTo: function( speed, to, callback ) {
+		return this.filter(":hidden").css("opacity", 0).show().end()
+					.animate({opacity: to}, speed, callback);
+	},
+
+	animate: function( prop, speed, easing, callback ) {
+		var optall = jQuery.speed(speed, easing, callback);
+
+		if ( jQuery.isEmptyObject( prop ) ) {
+			return this.each( optall.complete );
+		}
+
+		return this[ optall.queue === false ? "each" : "queue" ](function() {
+			var opt = jQuery.extend({}, optall), p,
+				hidden = this.nodeType === 1 && jQuery(this).is(":hidden"),
+				self = this;
+
+			for ( p in prop ) {
+				var name = p.replace(rdashAlpha, fcamelCase);
+
+				if ( p !== name ) {
+					prop[ name ] = prop[ p ];
+					delete prop[ p ];
+					p = name;
+				}
+
+				if ( prop[p] === "hide" && hidden || prop[p] === "show" && !hidden ) {
+					return opt.complete.call(this);
+				}
+
+				if ( ( p === "height" || p === "width" ) && this.style ) {
+					// Store display property
+					opt.display = jQuery.css(this, "display");
+
+					// Make sure that nothing sneaks out
+					opt.overflow = this.style.overflow;
+				}
+
+				if ( jQuery.isArray( prop[p] ) ) {
+					// Create (if needed) and add to specialEasing
+					(opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1];
+					prop[p] = prop[p][0];
+				}
+			}
+
+			if ( opt.overflow != null ) {
+				this.style.overflow = "hidden";
+			}
+
+			opt.curAnim = jQuery.extend({}, prop);
+
+			jQuery.each( prop, function( name, val ) {
+				var e = new jQuery.fx( self, opt, name );
+
+				if ( rfxtypes.test(val) ) {
+					e[ val === "toggle" ? hidden ? "show" : "hide" : val ]( prop );
+
+				} else {
+					var parts = rfxnum.exec(val),
+						start = e.cur(true) || 0;
+
+					if ( parts ) {
+						var end = parseFloat( parts[2] ),
+							unit = parts[3] || "px";
+
+						// We need to compute starting value
+						if ( unit !== "px" ) {
+							self.style[ name ] = (end || 1) + unit;
+							start = ((end || 1) / e.cur(true)) * start;
+							self.style[ name ] = start + unit;
+						}
+
+						// If a +=/-= token was provided, we're doing a relative animation
+						if ( parts[1] ) {
+							end = ((parts[1] === "-=" ? -1 : 1) * end) + start;
+						}
+
+						e.custom( start, end, unit );
+
+					} else {
+						e.custom( start, val, "" );
+					}
+				}
+			});
+
+			// For JS strict compliance
+			return true;
+		});
+	},
+
+	stop: function( clearQueue, gotoEnd ) {
+		var timers = jQuery.timers;
+
+		if ( clearQueue ) {
+			this.queue([]);
+		}
+
+		this.each(function() {
+			// go in reverse order so anything added to the queue during the loop is ignored
+			for ( var i = timers.length - 1; i >= 0; i-- ) {
+				if ( timers[i].elem === this ) {
+					if (gotoEnd) {
+						// force the next step to be the last
+						timers[i](true);
+					}
+
+					timers.splice(i, 1);
+				}
+			}
+		});
+
+		// start the next in the queue if the last step wasn't forced
+		if ( !gotoEnd ) {
+			this.dequeue();
+		}
+
+		return this;
+	}
+
+});
+
+// Generate shortcuts for custom animations
+jQuery.each({
+	slideDown: genFx("show", 1),
+	slideUp: genFx("hide", 1),
+	slideToggle: genFx("toggle", 1),
+	fadeIn: { opacity: "show" },
+	fadeOut: { opacity: "hide" }
+}, function( name, props ) {
+	jQuery.fn[ name ] = function( speed, callback ) {
+		return this.animate( props, speed, callback );
+	};
+});
+
+jQuery.extend({
+	speed: function( speed, easing, fn ) {
+		var opt = speed && typeof speed === "object" ? speed : {
+			complete: fn || !fn && easing ||
+				jQuery.isFunction( speed ) && speed,
+			duration: speed,
+			easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
+		};
+
+		opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+			jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
+
+		// Queueing
+		opt.old = opt.complete;
+		opt.complete = function() {
+			if ( opt.queue !== false ) {
+				jQuery(this).dequeue();
+			}
+			if ( jQuery.isFunction( opt.old ) ) {
+				opt.old.call( this );
+			}
+		};
+
+		return opt;
+	},
+
+	easing: {
+		linear: function( p, n, firstNum, diff ) {
+			return firstNum + diff * p;
+		},
+		swing: function( p, n, firstNum, diff ) {
+			return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
+		}
+	},
+
+	timers: [],
+
+	fx: function( elem, options, prop ) {
+		this.options = options;
+		this.elem = elem;
+		this.prop = prop;
+
+		if ( !options.orig ) {
+			options.orig = {};
+		}
+	}
+
+});
+
+jQuery.fx.prototype = {
+	// Simple function for setting a style value
+	update: function() {
+		if ( this.options.step ) {
+			this.options.step.call( this.elem, this.now, this );
+		}
+
+		(jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
+
+		// Set display property to block for height/width animations
+		if ( ( this.prop === "height" || this.prop === "width" ) && this.elem.style ) {
+			this.elem.style.display = "block";
+		}
+	},
+
+	// Get the current size
+	cur: function( force ) {
+		if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
+			return this.elem[ this.prop ];
+		}
+
+		var r = parseFloat(jQuery.css(this.elem, this.prop, force));
+		return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
+	},
+
+	// Start an animation from one number to another
+	custom: function( from, to, unit ) {
+		this.startTime = now();
+		this.start = from;
+		this.end = to;
+		this.unit = unit || this.unit || "px";
+		this.now = this.start;
+		this.pos = this.state = 0;
+
+		var self = this;
+		function t( gotoEnd ) {
+			return self.step(gotoEnd);
+		}
+
+		t.elem = this.elem;
+
+		if ( t() && jQuery.timers.push(t) && !timerId ) {
+			timerId = setInterval(jQuery.fx.tick, 13);
+		}
+	},
+
+	// Simple 'show' function
+	show: function() {
+		// Remember where we started, so that we can go back to it later
+		this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
+		this.options.show = true;
+
+		// Begin the animation
+		// Make sure that we start at a small width/height to avoid any
+		// flash of content
+		this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
+
+		// Start by showing the element
+		jQuery( this.elem ).show();
+	},
+
+	// Simple 'hide' function
+	hide: function() {
+		// Remember where we started, so that we can go back to it later
+		this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
+		this.options.hide = true;
+
+		// Begin the animation
+		this.custom(this.cur(), 0);
+	},
+
+	// Each step of an animation
+	step: function( gotoEnd ) {
+		var t = now(), done = true;
+
+		if ( gotoEnd || t >= this.options.duration + this.startTime ) {
+			this.now = this.end;
+			this.pos = this.state = 1;
+			this.update();
+
+			this.options.curAnim[ this.prop ] = true;
+
+			for ( var i in this.options.curAnim ) {
+				if ( this.options.curAnim[i] !== true ) {
+					done = false;
+				}
+			}
+
+			if ( done ) {
+				if ( this.options.display != null ) {
+					// Reset the overflow
+					this.elem.style.overflow = this.options.overflow;
+
+					// Reset the display
+					var old = jQuery.data(this.elem, "olddisplay");
+					this.elem.style.display = old ? old : this.options.display;
+
+					if ( jQuery.css(this.elem, "display") === "none" ) {
+						this.elem.style.display = "block";
+					}
+				}
+
+				// Hide the element if the "hide" operation was done
+				if ( this.options.hide ) {
+					jQuery(this.elem).hide();
+				}
+
+				// Reset the properties, if the item has been hidden or shown
+				if ( this.options.hide || this.options.show ) {
+					for ( var p in this.options.curAnim ) {
+						jQuery.style(this.elem, p, this.options.orig[p]);
+					}
+				}
+
+				// Execute the complete function
+				this.options.complete.call( this.elem );
+			}
+
+			return false;
+
+		} else {
+			var n = t - this.startTime;
+			this.state = n / this.options.duration;
+
+			// Perform the easing function, defaults to swing
+			var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop];
+			var defaultEasing = this.options.easing || (jQuery.easing.swing ? "swing" : "linear");
+			this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);
+			this.now = this.start + ((this.end - this.start) * this.pos);
+
+			// Perform the next step of the animation
+			this.update();
+		}
+
+		return true;
+	}
+};
+
+jQuery.extend( jQuery.fx, {
+	tick: function() {
+		var timers = jQuery.timers;
+
+		for ( var i = 0; i < timers.length; i++ ) {
+			if ( !timers[i]() ) {
+				timers.splice(i--, 1);
+			}
+		}
+
+		if ( !timers.length ) {
+			jQuery.fx.stop();
+		}
+	},
+		
+	stop: function() {
+		clearInterval( timerId );
+		timerId = null;
+	},
+	
+	speeds: {
+		slow: 600,
+ 		fast: 200,
+ 		// Default speed
+ 		_default: 400
+	},
+
+	step: {
+		opacity: function( fx ) {
+			jQuery.style(fx.elem, "opacity", fx.now);
+		},
+
+		_default: function( fx ) {
+			if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
+				fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
+			} else {
+				fx.elem[ fx.prop ] = fx.now;
+			}
+		}
+	}
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+	jQuery.expr.filters.animated = function( elem ) {
+		return jQuery.grep(jQuery.timers, function( fn ) {
+			return elem === fn.elem;
+		}).length;
+	};
+}
+
+function genFx( type, num ) {
+	var obj = {};
+
+	jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
+		obj[ this ] = type;
+	});
+
+	return obj;
+}
+if ( "getBoundingClientRect" in document.documentElement ) {
+	jQuery.fn.offset = function( options ) {
+		var elem = this[0];
+
+		if ( options ) { 
+			return this.each(function( i ) {
+				jQuery.offset.setOffset( this, options, i );
+			});
+		}
+
+		if ( !elem || !elem.ownerDocument ) {
+			return null;
+		}
+
+		if ( elem === elem.ownerDocument.body ) {
+			return jQuery.offset.bodyOffset( elem );
+		}
+
+		var box = elem.getBoundingClientRect(), doc = elem.ownerDocument, body = doc.body, docElem = doc.documentElement,
+			clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
+			top  = box.top  + (self.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop,
+			left = box.left + (self.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
+
+		return { top: top, left: left };
+	};
+
+} else {
+	jQuery.fn.offset = function( options ) {
+		var elem = this[0];
+
+		if ( options ) { 
+			return this.each(function( i ) {
+				jQuery.offset.setOffset( this, options, i );
+			});
+		}
+
+		if ( !elem || !elem.ownerDocument ) {
+			return null;
+		}
+
+		if ( elem === elem.ownerDocument.body ) {
+			return jQuery.offset.bodyOffset( elem );
+		}
+
+		jQuery.offset.initialize();
+
+		var offsetParent = elem.offsetParent, prevOffsetParent = elem,
+			doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
+			body = doc.body, defaultView = doc.defaultView,
+			prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
+			top = elem.offsetTop, left = elem.offsetLeft;
+
+		while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+			if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
+				break;
+			}
+
+			computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
+			top  -= elem.scrollTop;
+			left -= elem.scrollLeft;
+
+			if ( elem === offsetParent ) {
+				top  += elem.offsetTop;
+				left += elem.offsetLeft;
+
+				if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.nodeName)) ) {
+					top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+					left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+				}
+
+				prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
+			}
+
+			if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
+				top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+				left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+			}
+
+			prevComputedStyle = computedStyle;
+		}
+
+		if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
+			top  += body.offsetTop;
+			left += body.offsetLeft;
+		}
+
+		if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
+			top  += Math.max( docElem.scrollTop, body.scrollTop );
+			left += Math.max( docElem.scrollLeft, body.scrollLeft );
+		}
+
+		return { top: top, left: left };
+	};
+}
+
+jQuery.offset = {
+	initialize: function() {
+		var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.curCSS(body, "marginTop", true) ) || 0,
+			html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
+
+		jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
+
+		container.innerHTML = html;
+		body.insertBefore( container, body.firstChild );
+		innerDiv = container.firstChild;
+		checkDiv = innerDiv.firstChild;
+		td = innerDiv.nextSibling.firstChild.firstChild;
+
+		this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
+		this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
+
+		checkDiv.style.position = "fixed", checkDiv.style.top = "20px";
+		// safari subtracts parent border width here which is 5px
+		this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
+		checkDiv.style.position = checkDiv.style.top = "";
+
+		innerDiv.style.overflow = "hidden", innerDiv.style.position = "relative";
+		this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
+
+		this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
+
+		body.removeChild( container );
+		body = container = innerDiv = checkDiv = table = td = null;
+		jQuery.offset.initialize = jQuery.noop;
+	},
+
+	bodyOffset: function( body ) {
+		var top = body.offsetTop, left = body.offsetLeft;
+
+		jQuery.offset.initialize();
+
+		if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
+			top  += parseFloat( jQuery.curCSS(body, "marginTop",  true) ) || 0;
+			left += parseFloat( jQuery.curCSS(body, "marginLeft", true) ) || 0;
+		}
+
+		return { top: top, left: left };
+	},
+	
+	setOffset: function( elem, options, i ) {
+		// set position first, in-case top/left are set even on static elem
+		if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) {
+			elem.style.position = "relative";
+		}
+		var curElem   = jQuery( elem ),
+			curOffset = curElem.offset(),
+			curTop    = parseInt( jQuery.curCSS( elem, "top",  true ), 10 ) || 0,
+			curLeft   = parseInt( jQuery.curCSS( elem, "left", true ), 10 ) || 0;
+
+		if ( jQuery.isFunction( options ) ) {
+			options = options.call( elem, i, curOffset );
+		}
+
+		var props = {
+			top:  (options.top  - curOffset.top)  + curTop,
+			left: (options.left - curOffset.left) + curLeft
+		};
+		
+		if ( "using" in options ) {
+			options.using.call( elem, props );
+		} else {
+			curElem.css( props );
+		}
+	}
+};
+
+
+jQuery.fn.extend({
+	position: function() {
+		if ( !this[0] ) {
+			return null;
+		}
+
+		var elem = this[0],
+
+		// Get *real* offsetParent
+		offsetParent = this.offsetParent(),
+
+		// Get correct offsets
+		offset       = this.offset(),
+		parentOffset = /^body|html$/i.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+		// Subtract element margins
+		// note: when an element has margin: auto the offsetLeft and marginLeft
+		// are the same in Safari causing offset.left to incorrectly be 0
+		offset.top  -= parseFloat( jQuery.curCSS(elem, "marginTop",  true) ) || 0;
+		offset.left -= parseFloat( jQuery.curCSS(elem, "marginLeft", true) ) || 0;
+
+		// Add offsetParent borders
+		parentOffset.top  += parseFloat( jQuery.curCSS(offsetParent[0], "borderTopWidth",  true) ) || 0;
+		parentOffset.left += parseFloat( jQuery.curCSS(offsetParent[0], "borderLeftWidth", true) ) || 0;
+
+		// Subtract the two offsets
+		return {
+			top:  offset.top  - parentOffset.top,
+			left: offset.left - parentOffset.left
+		};
+	},
+
+	offsetParent: function() {
+		return this.map(function() {
+			var offsetParent = this.offsetParent || document.body;
+			while ( offsetParent && (!/^body|html$/i.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
+				offsetParent = offsetParent.offsetParent;
+			}
+			return offsetParent;
+		});
+	}
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ["Left", "Top"], function( i, name ) {
+	var method = "scroll" + name;
+
+	jQuery.fn[ method ] = function(val) {
+		var elem = this[0], win;
+		
+		if ( !elem ) {
+			return null;
+		}
+
+		if ( val !== undefined ) {
+			// Set the scroll offset
+			return this.each(function() {
+				win = getWindow( this );
+
+				if ( win ) {
+					win.scrollTo(
+						!i ? val : jQuery(win).scrollLeft(),
+						 i ? val : jQuery(win).scrollTop()
+					);
+
+				} else {
+					this[ method ] = val;
+				}
+			});
+		} else {
+			win = getWindow( elem );
+
+			// Return the scroll offset
+			return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
+				jQuery.support.boxModel && win.document.documentElement[ method ] ||
+					win.document.body[ method ] :
+				elem[ method ];
+		}
+	};
+});
+
+function getWindow( elem ) {
+	return ("scrollTo" in elem && elem.document) ?
+		elem :
+		elem.nodeType === 9 ?
+			elem.defaultView || elem.parentWindow :
+			false;
+}
+// Create innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function( i, name ) {
+
+	var type = name.toLowerCase();
+
+	// innerHeight and innerWidth
+	jQuery.fn["inner" + name] = function() {
+		return this[0] ?
+			jQuery.css( this[0], type, false, "padding" ) :
+			null;
+	};
+
+	// outerHeight and outerWidth
+	jQuery.fn["outer" + name] = function( margin ) {
+		return this[0] ?
+			jQuery.css( this[0], type, false, margin ? "margin" : "border" ) :
+			null;
+	};
+
+	jQuery.fn[ type ] = function( size ) {
+		// Get window width or height
+		var elem = this[0];
+		if ( !elem ) {
+			return size == null ? null : this;
+		}
+		
+		if ( jQuery.isFunction( size ) ) {
+			return this.each(function( i ) {
+				var self = jQuery( this );
+				self[ type ]( size.call( this, i, self[ type ]() ) );
+			});
+		}
+
+		return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window?
+			// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+			elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
+			elem.document.body[ "client" + name ] :
+
+			// Get document width or height
+			(elem.nodeType === 9) ? // is it a document
+				// Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+				Math.max(
+					elem.documentElement["client" + name],
+					elem.body["scroll" + name], elem.documentElement["scroll" + name],
+					elem.body["offset" + name], elem.documentElement["offset" + name]
+				) :
+
+				// Get or set width or height on the element
+				size === undefined ?
+					// Get width or height on the element
+					jQuery.css( elem, type ) :
+
+					// Set the width or height on the element (default to pixels if value is unitless)
+					this.css( type, typeof size === "string" ? size : size + "px" );
+	};
+
+});
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+
+})(window);
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-ui-1.8.5.custom.min.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-ui-1.8.5.custom.min.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/js/jquery-ui-1.8.5.custom.min.js	(revision 1516)
@@ -0,0 +1,589 @@
+/*!
+ * jQuery UI 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI
+ */
+(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.5",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,
+NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,
+"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");
+if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"));if(!isNaN(b)&&b!=0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(l)g-=parseFloat(c.curCSS(f,
+"border"+this+"Width",true))||0;if(m)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c.style(this,h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c.style(this,
+h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}});
+c(function(){var a=document.createElement("div"),b=document.body;c.extend(a.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.appendChild(a).offsetHeight===100;b.removeChild(a).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,
+d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);
+;/*!
+ * jQuery UI Widget 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler("remove");k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,
+a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substring(0,1)===
+"_")return h;e?this.each(function(){var g=b.data(this,a);if(!g)throw"cannot call methods on "+a+" prior to initialization; attempted to call method '"+d+"'";if(!b.isFunction(g[d]))throw"no such method '"+d+"' for "+a+" widget instance";var i=g[d].apply(g,f);if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",
+widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}b.each(d,function(f,h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",
+false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
+;/*!
+ * jQuery UI Mouse 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ *	jquery.ui.widget.js
+ */
+(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&
+this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
+return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&
+this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
+a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
+;/*
+ * jQuery UI Position 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Position
+ */
+(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.scrollTo&&d.document){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j=
+{top:b.of.pageY,left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/
+2;if(b.at[1]==="bottom")j.top+=k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+parseInt(c.curCSS(this,"marginRight",true))||0,w=m+q+parseInt(c.curCSS(this,"marginBottom",true))||0,i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]===
+"center")i.top-=m/2;i.left=parseInt(i.left);i.top=parseInt(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();
+b.left=d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];
+b.left+=a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=
+c(b),g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
+;/*
+ * jQuery UI Draggable 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Draggables
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.mouse.js
+ *	jquery.ui.widget.js
+ */
+(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
+"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
+this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
+this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
+d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
+this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,
+b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
+a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||
+0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
+this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-
+(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment==
+"parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&
+a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),
+10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
+this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
+f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+
+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;e=this.originalPageX+
+Math.round((e-this.originalPageX)/b.grid[0])*b.grid[0];e=this.containment?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-
+this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=
+this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.5"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var g=d.data(this,"sortable");
+if(g&&!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;
+c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
+1;this.instance.currentItem=d(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;
+this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=
+this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){var a=
+d(this).data("draggable").options;d(a.iframeFix===true?"iframe":a.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;
+if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!=
+"HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-
+b.overflowOffset.left<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-
+c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this,
+width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,g=b.offset.left,n=g+c.helperProportions.width,m=b.offset.top,o=m+c.helperProportions.height,h=c.snapElements.length-1;h>=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e<g&&g<k+e&&j-e<m&&m<l+e||i-e<g&&g<k+e&&j-e<o&&o<l+e||i-e<n&&n<k+e&&j-e<m&&m<l+e||i-e<n&&n<k+e&&j-e<o&&
+o<l+e){if(f.snapMode!="inner"){var p=Math.abs(j-o)<=e,q=Math.abs(l-m)<=e,r=Math.abs(i-n)<=e,s=Math.abs(k-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k}).left-c.margins.left}var t=
+p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(j-m)<=e;q=Math.abs(l-o)<=e;r=Math.abs(i-g)<=e;s=Math.abs(k-n)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[h].snapping&&
+(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=p||q||r||s||t}else{c.snapElements[h].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"),
+10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);
+;/*
+ * jQuery UI Droppable 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Droppables
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.widget.js
+ *	jquery.ui.mouse.js
+ *	jquery.ui.draggable.js
+ */
+(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this);
+a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&
+this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
+this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=
+d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
+a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.5"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height;
+switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>=
+i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!=
+"none";if(c[f].visible){c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight};e=="mousedown"&&c[f]._activate.call(c[f],b)}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||
+a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance);if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=
+d.data(g[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})}}})(jQuery);
+;/*
+ * jQuery UI Resizable 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizables
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.mouse.js
+ *	jquery.ui.widget.js
+ */
+(function(e){e.widget("ui.resizable",e.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
+_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&e.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
+top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
+this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
+nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle '+("ui-resizable-"+f)+'"></div>');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
+String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,k);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();
+this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){e(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
+if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),
+d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=
+this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:
+this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",
+b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;
+f={width:c.size.width-(f?0:c.sizeDiff.width),height:c.size.height-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",
+b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(l(b.left))this.position.left=b.left;if(l(b.top))this.position.top=b.top;if(l(b.height))this.size.height=b.height;if(l(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top=
+a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,d=l(b.width)&&a.maxWidth&&a.maxWidth<b.width,f=l(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=l(b.width)&&a.minWidth&&a.minWidth>b.width,h=l(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,
+k=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&k)b.left=i-a.minWidth;if(d&&k)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css("borderTopWidth"),
+c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)||0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=
+this.element.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+
+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,
+arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,
+{version:"1.8.5"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,
+function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var k=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:k.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=
+(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(k.css("position"))){c._revertToRelativePosition=true;k.css({position:"absolute",top:"auto",left:"auto"})}k.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=
+false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-
+a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",
+b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top",
+"Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,
+f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=
+a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+
+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&
+e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",
+height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=
+d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},l=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
+;/*
+ * jQuery UI Selectable 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectables
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.mouse.js
+ *	jquery.ui.widget.js
+ */
+(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),
+selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX,
+c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting",
+c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d=
+this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.right<b||a.top>i||a.bottom<g);else if(d.tolerance=="fit")k=a.left>b&&a.right<h&&a.top>g&&a.bottom<i;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting");
+a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&&
+!a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var d=e.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selecting",this.element[0]).each(function(){var d=
+e.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",c,{selected:d.element})});this._trigger("stop",c);this.helper.remove();return false}});e.extend(e.ui.selectable,{version:"1.8.5"})})(jQuery);
+;/*
+ * jQuery UI Sortable 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Sortables
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.mouse.js
+ *	jquery.ui.widget.js
+ */
+(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
+this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,
+arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=
+c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,
+{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();
+if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
+a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
+if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+
+this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+
+b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,
+c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==
+document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",
+null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):
+d(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||
+"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+
+this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection();var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?
+2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},
+_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=
+this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=
+this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");
+if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=
+0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=
+this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},
+update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=
+null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));
+this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,
+null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||
+d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a==
+"string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==
+"absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
+"relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
+_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
+this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),
+10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
+this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=
+this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+
+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?
+g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
+e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==
+f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",
+f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove",f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",
+g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=
+0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
+this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});
+d.extend(d.ui.sortable,{version:"1.8.5"})})(jQuery);
+;/*
+ * jQuery UI Accordion 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.widget.js
+ */
+(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
+a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
+if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var f=d.closest(".ui-accordion-header");a.active=f.length?f:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",function(g){return a._keydown(g)}).next().attr("role",
+"tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(g){a._clickHandler.call(a,g,this);g.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);
+this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
+this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();
+b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,f=this.headers.index(a.target),g=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:g=this.headers[(f+1)%d];break;case b.LEFT:case b.UP:g=this.headers[(f-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);
+a.preventDefault()}if(g){c(a.target).attr("tabIndex",-1);c(g).attr("tabIndex",0);g.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+
+c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;
+if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);
+a.next().addClass("ui-accordion-content-active")}h=a.next();f=this.active.next();g={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):h,oldContent:f};d=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(h,f,g,b,d)}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
+this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:f},h=this.active=c([]);this._toggle(h,f,g)}},_toggle:function(a,b,d,f,g){var h=this,e=h.options;h.toShow=a;h.toHide=b;h.data=d;var j=function(){if(h)return h._completed.apply(h,arguments)};h._trigger("changestart",null,h.data);h.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&f?{toShow:c([]),toHide:b,complete:j,
+down:g,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:g,autoHeight:e.autoHeight||e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;f=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!f[k]&&!c.easing[k])k="slide";f[k]||(f[k]=function(l){this.slide(l,{easing:k,duration:i||700})});
+f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.5",animations:{slide:function(a,
+b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),f=0,g={},h={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){h[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);g[i]={value:j[1],
+unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(h,{step:function(j,i){if(i.prop=="height")f=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=f*g[i.prop].value+g[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide",
+paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
+;/*
+ * jQuery UI Autocomplete 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.widget.js
+ *	jquery.ui.position.js
+ */
+(function(e){e.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var a=this,b=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!a.options.disabled){var d=e.ui.keyCode;switch(c.keyCode){case d.PAGE_UP:a._move("previousPage",
+c);break;case d.PAGE_DOWN:a._move("nextPage",c);break;case d.UP:a._move("previous",c);c.preventDefault();break;case d.DOWN:a._move("next",c);c.preventDefault();break;case d.ENTER:case d.NUMPAD_ENTER:a.menu.element.is(":visible")&&c.preventDefault();case d.TAB:if(!a.menu.active)return;a.menu.select(c);break;case d.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);
+break}}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};this.menu=e("<ul></ul>").addClass("ui-autocomplete").appendTo(e(this.options.appendTo||"body",b)[0]).mousedown(function(c){var d=a.menu.element[0];
+c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete");var f=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();
+a.previous=f}if(false!==a._trigger("select",c,{item:d})){a.term=d.value;a.element.val(d.value)}a.close(c);a.selectedItem=d},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
+this.menu.element.remove();e.Widget.prototype.destroy.call(this)},_setOption:function(a,b){e.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(e(b||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var a=this,b,c;if(e.isArray(this.options.source)){b=this.options.source;this.source=function(d,f){f(e.ui.autocomplete.filter(b,d.term))}}else if(typeof this.options.source==="string"){c=this.options.source;this.source=
+function(d,f){a.xhr&&a.xhr.abort();a.xhr=e.getJSON(c,d,function(g,i,h){h===a.xhr&&f(g);a.xhr=null})}}else this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(a)},_search:function(a){this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(a.length){a=
+this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",a);this.menu.element.hide();this.menu.deactivate()}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return e.map(a,function(b){if(typeof b===
+"string")return{label:b,value:b};return e.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1),c;this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(e.extend({of:this.element},this.options.position));a=b.width("").outerWidth();c=this.element.outerWidth();b.outerWidth(Math.max(a,c))},_renderMenu:function(a,b){var c=this;e.each(b,function(d,f){c._renderItem(a,f)})},
+_renderItem:function(a,b){return e("<li></li>").data("item.autocomplete",b).append(e("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},
+filter:function(a,b){var c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value||d)})}})})(jQuery);
+(function(e){e.widget("ui.menu",{_create:function(){var a=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(b){if(e(b.target).closest(".ui-menu-item a").length){b.preventDefault();a.select(b)}});this.refresh()},refresh:function(){var a=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
+-1).mouseenter(function(b){a.activate(b,e(this).parent())}).mouseleave(function(){a.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.attr("scrollTop"),f=this.element.height();if(c<0)this.element.attr("scrollTop",d+c);else c>=f&&this.element.attr("scrollTop",d+c-f+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:b})},
+deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0);
+a.length?this.activate(c,a):this.activate(c,this.element.children(b))}else this.activate(c,this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active||
+this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||this.first())this.activate(a,this.element.children(":last"));else{var b=this.active.offset().top,c=this.element.height();result=this.element.children("li").filter(function(){var d=e(this).offset().top-b+c-e(this).height();return d<10&&d>-10});result.length||(result=this.element.children(":first"));this.activate(a,result)}else this.activate(a,this.element.children(!this.active||this.first()?":last":":first"))},
+hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})})(jQuery);
+;/*
+ * jQuery UI Button 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.widget.js
+ */
+(function(a){var g,i=function(b){a(":ui-button",b.target.form).each(function(){var c=a(this).data("button");setTimeout(function(){c.refresh()},1)})},h=function(b){var c=b.name,d=b.form,e=a([]);if(c)e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form});return e};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",
+i);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var b=this,c=this.options,d=this.type==="checkbox"||this.type==="radio",e="ui-state-hover"+(!d?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
+function(){if(!c.disabled){a(this).addClass("ui-state-hover");this===g&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||a(this).removeClass(e)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});d&&this.element.bind("change.button",function(){b.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.disabled)return false;a(this).toggleClass("ui-state-active");
+b.buttonElement.attr("aria-pressed",b.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(c.disabled)return false;a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pressed",true);var f=b.element[0];h(f).not(f).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;a(this).addClass("ui-state-active");
+g=this;a(document).one("mouseup",function(){g=null})}).bind("mouseup.button",function(){if(c.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(f){if(c.disabled)return false;if(f.keyCode==a.ui.keyCode.SPACE||f.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(f){f.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",
+c.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var b=this.element.is(":checked");b&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",b)}else this.buttonElement=
+this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
+this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled")c?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio")h(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
+true):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var b=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
+c=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary;if(d.primary||d.secondary){b.addClass("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary"));d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>");d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>");if(!this.options.text){b.addClass(e?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
+this.hasTitle||b.attr("title",c)}}else b.addClass("ui-button-text-only")}}});a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()},
+destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);
+;/*
+ * jQuery UI Dialog 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.widget.js
+ *  jquery.ui.button.js
+ *	jquery.ui.draggable.js
+ *	jquery.ui.mouse.js
+ *	jquery.ui.position.js
+ *	jquery.ui.resizable.js
+ */
+(function(c,j){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");
+if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||"&#160;",f=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog",
+"aria-labelledby":f}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var e=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);
+return false}).appendTo(e);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id",f).html(d).prependTo(e);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;e.find("*").add(e).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&
+g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");
+b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!==b.uiDialog[0])d=Math.max(d,c(this).css("z-index"))});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,f=d.options;if(f.modal&&!a||!f.stack&&!f.modal)return d._trigger("focus",b);if(f.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=
+f.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;d.next().length&&d.appendTo("body");a._size();a._position(b.position);d.show(b.show);
+a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(f){if(f.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),e=g.filter(":first");g=g.filter(":last");if(f.target===g[0]&&!f.shiftKey){e.focus(1);return false}else if(f.target===e[0]&&f.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,
+f=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(f);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,function(){return!(d=true)});if(d){c.each(a,function(e,h){h=c.isFunction(h)?{click:h,text:e}:h;e=c("<button></button>",h).unbind("click").click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.fn.button&&e.button()});f.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(e){return{position:e.position,
+offset:e.offset}}var b=this,d=b.options,f=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",e,a(h))},drag:function(e,h){b._trigger("drag",e,a(h))},stop:function(e,h){d.position=[h.position.left-f.scrollLeft(),h.position.top-f.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);
+b._trigger("dragStop",e,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}a=a===j?this.options.resizable:a;var d=this,f=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:d._minHeight(),
+handles:a,start:function(e,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",e,b(h))},resize:function(e,h){d._trigger("resize",e,b(h))},stop:function(e,h){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();d._trigger("resizeStop",e,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,
+a.height)},_position:function(a){var b=[],d=[0,0],f;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "):[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,e){if(+b[g]===b[g]){d[g]=b[g];b[g]=e}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(f=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a);
+f||this.uiDialog.hide()},_setOption:function(a,b){var d=this,f=d.uiDialog,g=f.is(":data(resizable)"),e=false;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);e=true;break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":f.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case "draggable":b?
+d._makeDraggable():f.draggable("destroy");break;case "height":e=true;break;case "maxHeight":g&&f.resizable("option","maxHeight",b);e=true;break;case "maxWidth":g&&f.resizable("option","maxWidth",b);e=true;break;case "minHeight":g&&f.resizable("option","minHeight",b);e=true;break;case "minWidth":g&&f.resizable("option","minWidth",b);e=true;break;case "position":d._position(b);break;case "resizable":g&&!b&&f.resizable("destroy");g&&typeof b==="string"&&f.resizable("option","handles",b);!g&&b!==false&&
+d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break;case "width":e=true;break}c.Widget.prototype._setOption.apply(d,arguments);e&&d._size()},_size:function(){var a=this.options,b;this.element.css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();this.element.css(a.height==="auto"?{minHeight:Math.max(a.minHeight-b,0),height:c.support.minHeight?"auto":Math.max(a.minHeight-
+b,0)}:{minHeight:0,height:Math.max(a.height-b,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.5",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),
+function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=
+(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var a,
+b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<
+b?c(window).width()+"px":a+"px"}else return c(document).width()+"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
+;/*
+ * jQuery UI Slider 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.mouse.js
+ *	jquery.ui.widget.js
+ */
+(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");b.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
+this.range=d([]);if(b.range){if(b.range===true){this.range=d("<div></div>");if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}else this.range=d("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(b.range==="min"||b.range==="max")this.range.addClass("ui-slider-range-"+b.range);this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
+if(b.values&&b.values.length)for(;d(".ui-slider-handle",this.element).length<b.values.length;)d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=d(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();
+else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var e=true,f=d(this).data("index.ui-slider-handle"),h,g,i;if(!a.options.disabled){switch(c.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e=
+false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");h=a._start(c,f);if(h===false)return}break}i=a.options.step;h=a.options.values&&a.options.values.length?(g=a.values(f)):(g=a.value());switch(c.keyCode){case d.ui.keyCode.HOME:g=a._valueMin();break;case d.ui.keyCode.END:g=a._valueMax();break;case d.ui.keyCode.PAGE_UP:g=a._trimAlignValue(h+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:g=a._trimAlignValue(h-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(h===
+a._valueMax())return;g=a._trimAlignValue(h+i);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(h===a._valueMin())return;g=a._trimAlignValue(h-i);break}a._slide(c,f,g);return e}}).keyup(function(c){var e=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(c,e);a._change(c,e);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
+this._mouseDestroy();return this},_mouseCapture:function(a){var b=this.options,c,e,f,h,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});e=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(i){var j=Math.abs(c-h.values(i));if(e>j){e=j;f=d(this);g=i}});if(b.range===true&&this.values(1)===b.min){g+=1;f=d(this.handles[g])}if(this._start(a,
+g)===false)return false;this._mouseSliding=true;h._handleIndex=g;f.addClass("ui-state-active").focus();b=f.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-f.width()/2,top:a.pageY-b.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=
+this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=
+this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);
+c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var e;if(this.options.values&&this.options.values.length){e=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>e||b===1&&c<e))c=e;if(c!==this.values(b)){e=this.values();e[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c});
+a!==false&&this.value(c)}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=
+this._trimAlignValue(a);this._refreshValue();this._change(null,0)}return this._value()},values:function(a,b){var c,e,f;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;e=arguments[0];for(f=0;f<c.length;f+=1){c[f]=this._trimAlignValue(e[f]);this._change(null,f)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a):this.value();
+else return this._values()},_setOption:function(a,b){var c,e=0;if(d.isArray(this.options.values))e=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
+this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<e;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a];
+return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1)b[c]=this._trimAlignValue(b[c]);return b}},_trimAlignValue:function(a){if(a<this._valueMin())return this._valueMin();if(a>this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=a%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=
+this.options.range,b=this.options,c=this,e=!this._animateOff?b.animate:false,f,h={},g,i,j,l;if(this.options.values&&this.options.values.length)this.handles.each(function(k){f=(c.values(k)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";d(this).stop(1,1)[e?"animate":"css"](h,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(k===0)c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({width:f-
+g+"%"},{queue:false,duration:b.animate})}else{if(k===0)c.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({height:f-g+"%"},{queue:false,duration:b.animate})}g=f});else{i=this.value();j=this._valueMin();l=this._valueMax();f=l!==j?(i-j)/(l-j)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[e?"animate":"css"](h,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},
+b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[e?"animate":"css"]({height:100-f+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.5"})})(jQuery);
+;/*
+ * jQuery UI Tabs 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.widget.js
+ */
+(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(a,e){if(a=="selected")this.options.collapsible&&
+e==this.options.selected||this.select(e);else{this.options[a]=e;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[a].concat(d.makeArray(arguments)))},_ui:function(a,e){return{tab:a,panel:e,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var a=
+d(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var b=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
+(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))b.panels=b.panels.add(b._sanitizeSelector(i));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=b._tabId(f);f.href="#"+i;f=d("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(b.panels[g-1]||b.list);f.data("destroy.tabs",true)}b.panels=b.panels.add(f)}else c.disabled.push(g)});if(a){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
+this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(b._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=
+this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return b.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
+if(c.selected>=0&&this.anchors.length){this.panels.eq(c.selected).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");b.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[c.selected],b.panels[c.selected]))});this.load(c.selected)}d(window).bind("unload",function(){b.lis.add(b.anchors).unbind(".tabs");b.lis=b.anchors=b.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[c.collapsible?"addClass":
+"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);a=0;for(var j;j=this.lis[a];a++)d(j)[d.inArray(a,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+g)};this.lis.bind("mouseover.tabs",
+function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",function(){e(f,o);b._trigger("show",
+null,b._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");b._trigger("show",null,b._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);b.element.dequeue("tabs")})}:function(g,f){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");b.element.dequeue("tabs")};this.anchors.bind(c.event+".tabs",
+function(){var g=this,f=d(g).closest("li"),i=b.panels.filter(":not(.ui-tabs-hide)"),l=d(b._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||b.panels.filter(":animated").length||b._trigger("select",null,b._ui(this,l[0]))===false){this.blur();return false}c.selected=b.anchors.index(this);b.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=-1;c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs",
+function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs",function(){r(g,l)});b.load(b.anchors.index(this));this.blur();return false}c.cookie&&b._cookie(c.selected,c.cookie);if(l.length){i.length&&b.element.queue("tabs",function(){s(g,i)});b.element.queue("tabs",function(){r(g,l)});b.load(b.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",
+function(){return false})},_getIndex:function(a){if(typeof a=="string")a=this.anchors.index(this.anchors.filter("[href$="+a+"]"));return a},destroy:function(){var a=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=d.data(this,"href.tabs");if(e)this.href=
+e;var b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});a.cookie&&this._cookie(null,a.cookie);return this},add:function(a,e,b){if(b===p)b=this.anchors.length;
+var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,a).replace(/#\{label\}/g,e));a=!a.indexOf("#")?a.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=d("#"+a);j.length||(j=d(h.panelTemplate).attr("id",a).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(b>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[b]);
+j.insertBefore(this.panels[b])}h.disabled=d.map(h.disabled,function(k){return k>=b?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[b],this.panels[b]));return this},remove:function(a){a=this._getIndex(a);var e=this.options,b=this.lis.eq(a).remove(),c=this.panels.eq(a).remove();
+if(b.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(a+(a+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=a}),function(h){return h>=a?--h:h});this._tabify();this._trigger("remove",null,this._ui(b.find("a")[0],c[0]));return this},enable:function(a){a=this._getIndex(a);var e=this.options;if(d.inArray(a,e.disabled)!=-1){this.lis.eq(a).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(b){return b!=a});this._trigger("enable",null,
+this._ui(this.anchors[a],this.panels[a]));return this}},disable:function(a){a=this._getIndex(a);var e=this.options;if(a!=e.selected){this.lis.eq(a).addClass("ui-state-disabled");e.disabled.push(a);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this},
+load:function(a){a=this._getIndex(a);var e=this,b=this.options,c=this.anchors.eq(a)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(a).addClass("ui-state-processing");if(b.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(b.spinner)}this.xhr=d.ajax(d.extend({},b.ajaxOptions,{url:h,success:function(k,n){d(e._sanitizeSelector(c.hash)).html(k);e._cleanup();b.cache&&d.data(c,"cache.tabs",
+true);e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.error(k,n,a,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(a,
+e){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.5"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(a,e){var b=this,c=this.options,h=b._rotate||(b._rotate=function(j){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var k=c.selected;b.select(++k<b.anchors.length?k:0)},a);j&&j.stopPropagation()});e=b._unrotate||(b._unrotate=!e?function(j){j.clientX&&b.rotate(null)}:
+function(){t=c.selected;h()});if(a){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(b.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
+;/*
+ * jQuery UI Datepicker 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ */
+(function(d,G){function L(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
+"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
+"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
+minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function E(a,b){d.extend(a,
+b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.5"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=
+f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
+_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&
+b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==
+""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,
+c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),
+true);this._updateDatepicker(b);this._updateAlternate(b)}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}E(a.settings,e||{});b=b&&b.constructor==
+Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
+d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},
+_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=
+d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;
+for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&
+this._hideDatepicker();var h=this._getDateDatepicker(a,true);E(e.settings,f);this._attachments(d(a),e);this._autoSize(e);this._setDateDatepicker(a,h);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&
+!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass,b.dpDiv).add(d("td."+d.datepicker._currentClass,b.dpDiv));c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();
+return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||
+a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,
+a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));
+var c=String.fromCharCode(a.charCode==G?a.keyCode:a.charCode);return a.ctrlKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||
+a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);
+d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&
+d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=d.datepicker._getBorders(b.dpDiv);b.dpDiv.find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,
+h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");
+this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");
+this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);var e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
+a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input.focus()},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),
+k=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>k&&k>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1);)a=a[b?"previousSibling":"nextSibling"];
+a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val():
+"",b]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&
+!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;
+b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=
+this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=
+d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,
+"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b==
+"object"?b.toString():b+"";if(b=="")return null;for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,k=c=-1,l=-1,u=-1,j=false,o=function(p){(p=z+1<a.length&&a.charAt(z+1)==p)&&z++;return p},m=function(p){o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"?4:p=="o"?
+3:2)+"}");p=b.substring(s).match(p);if(!p)throw"Missing number at position "+s;s+=p[0].length;return parseInt(p[0],10)},n=function(p,w,H){p=o(p)?H:w;for(w=0;w<p.length;w++)if(b.substr(s,p[w].length).toLowerCase()==p[w].toLowerCase()){s+=p[w].length;return w+1}throw"Unknown name at position "+s;},r=function(){if(b.charAt(s)!=a.charAt(z))throw"Unexpected literal at position "+s;s++},s=0,z=0;z<a.length;z++)if(j)if(a.charAt(z)=="'"&&!o("'"))j=false;else r();else switch(a.charAt(z)){case "d":l=m("d");
+break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":k=m("m");break;case "M":k=n("M",i,g);break;case "y":c=m("y");break;case "@":var v=new Date(m("@"));c=v.getFullYear();k=v.getMonth()+1;l=v.getDate();break;case "!":v=new Date((m("!")-this._ticksTo1970)/1E4);c=v.getFullYear();k=v.getMonth()+1;l=v.getDate();break;case "'":if(o("'"))r();else j=true;break;default:r()}if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>
+-1){k=1;l=u;do{e=this._getDaysInMonth(c,k-1);if(l<=e)break;k++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,k-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=k||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*
+60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=j+1<a.length&&a.charAt(j+1)==o)&&j++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},k=function(o,m,n,r){return i(o)?r[m]:n[m]},l="",u=false;if(b)for(var j=0;j<a.length;j++)if(u)if(a.charAt(j)==
+"'"&&!i("'"))u=false;else l+=a.charAt(j);else switch(a.charAt(j)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=k("D",b.getDay(),e,f);break;case "o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=k("M",b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+=
+"'";else u=true;break;default:l+=a.charAt(j)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==G?a.settings[b]:this._defaults[b]},
+_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,
+this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,k=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=u.exec(h);j;){switch(j[2]||"d"){case "d":case "D":g+=
+parseInt(j[1],10);break;case "w":case "W":g+=parseInt(j[1],10)*7;break;case "m":case "M":l+=parseInt(j[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(k,l));break;case "y":case "Y":k+=parseInt(j[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(k,l));break}j=u.exec(h)}return new Date(k,l,g)};if(b=(b=b==null?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):b)&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},
+_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?
+"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),k=
+this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),j=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=j&&n<j?j:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,
+"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-k,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+k+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+
+n+"</span></a>";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+k,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+k+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+
+(c?"w":"e")+'">'+r+"</span></a>";k=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;k=!h?k:this.formatDate(k,r,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
+y+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;k=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var M=this._getDefaultDate(a),I="",C=0;C<i[0];C++){for(var N=
+"",D=0;D<i[1];D++){var J=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",x="";if(l){x+='<div class="ui-datepicker-group';if(i[1]>1)switch(D){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}x+='">'}x+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&C==0?c?
+f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,j,o,C>0||D>0,z,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var A=k?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var q=(t+h)%7;A+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"}x+=A+"</tr></thead><tbody>";A=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,
+A);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;A=l?6:Math.ceil((t+A)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O<A;O++){x+="<tr>";var P=!k?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";for(t=0;t<7;t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,K=B&&!H||!F[0]||j&&q<j||o&&q>o;P+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==J.getTime()&&g==a.selectedMonth&&
+a._keyEvent||M.getTime()==q.getTime()&&M.getTime()==J.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!w?"":" "+F[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!B||w)&&F[2]?' title="'+F[2]+'"':"")+(K?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!w?"&#xa0;":K?'<span class="ui-state-default">'+q.getDate()+
+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==J.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+"</tr>"}g++;if(g>11){g=0;m++}x+="</tbody></table>"+(l?"</div>"+(i[0]>0&&D==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");N+=x}I+=N}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
+"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var k=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),j='<div class="ui-datepicker-title">',o="";if(h||!k)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+
+a.id+"');\">";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(j+=o+(h||!(k&&l)?"&#xa0;":""));if(h||!l)j+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b,
+i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(j+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++)j+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";j+="</select>"}j+=this._get(a,"yearSuffix");if(u)j+=(h||!(k&&l)?"&#xa0;":"")+o;j+="</div>";return j},_adjustInstDate:function(a,b,c){var e=
+a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,
+"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);
+c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,
+"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=
+function(a){if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));
+return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new L;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.5";window["DP_jQuery_"+y]=d})(jQuery);
+;/*
+ * jQuery UI Progressbar 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar
+ *
+ * Depends:
+ *   jquery.ui.core.js
+ *   jquery.ui.widget.js
+ */
+(function(b,c){b.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
+this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===c)return this._value();this._setOption("value",a);return this},_setOption:function(a,d){if(a==="value"){this.options.value=d;this._refreshValue();this._trigger("change")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.max,Math.max(this.min,a))},_refreshValue:function(){var a=this.value();this.valueDiv.toggleClass("ui-corner-right",
+a===this.max).width(a+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.5"})})(jQuery);
+;/*
+ * jQuery UI Effects 1.8.5
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/
+ */
+jQuery.effects||function(f,j){function l(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
+16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return l(b)}function n(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
+a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
+a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:f.fx.speeds[b]||f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=r(b.elem,a);b.end=l(b.end);b.colorInit=
+true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var m={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,
+183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,
+165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},p=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,d){if(f.isFunction(b)){d=b;b=null}return this.each(function(){var e=f(this),g=e.attr("style")||" ",h=o(n.call(this)),q,u=e.attr("className");f.each(p,function(v,
+i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?
+f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.5",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==
+null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();
+var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});
+c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c||
+typeof c=="number"||f.fx.speeds[c]||!f.effects[c])return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||!f.effects[c])return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||!f.effects[c]||typeof c==
+"boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,
+a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=
+e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+
+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/
+2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*
+a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;
+return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,
+a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
+;
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_dump.sql
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_dump.sql	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_dump.sql	(revision 1516)
@@ -0,0 +1,20 @@
+CREATE TABLE IF NOT EXISTS `tree` (
+  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+  `parent_id` bigint(20) unsigned NOT NULL,
+  `position` bigint(20) unsigned NOT NULL,
+  `left` bigint(20) unsigned NOT NULL,
+  `right` bigint(20) unsigned NOT NULL,
+  `level` bigint(20) unsigned NOT NULL,
+  `title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
+  `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
+
+INSERT INTO `tree` (`id`, `parent_id`, `position`, `left`, `right`, `level`, `title`, `type`) VALUES
+(1, 0, 2, 1, 14, 0, 'ROOT', ''),
+(2, 1, 0, 2, 11, 1, 'C:', 'drive'),
+(3, 2, 0, 3, 6, 2, '_demo', 'folder'),
+(4, 3, 0, 4, 5, 3, 'index.html', 'default'),
+(5, 2, 1, 7, 10, 2, '_docs', 'folder'),
+(6, 1, 1, 12, 13, 1, 'D:', 'drive'),
+(12, 5, 0, 8, 9, 3, 'zmei.html', 'default');
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class._database.php
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class._database.php	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class._database.php	(revision 1516)
@@ -0,0 +1,146 @@
+<?php
+class _database {
+	private $link		= false;
+	private $result		= false;
+	private $row		= false;
+
+	public $settings	= array(
+			"servername"=> "localhost",
+			"serverport"=> "3306",
+			"username"	=> false,
+			"password"	=> false,
+			"database"	=> false,
+			"persist"	=> false,
+			"dieonerror"=> false,
+			"showerror"	=> false,
+			"error_file"=> true
+		);
+
+	function __construct() {
+		global $db_config;
+		$this->settings = array_merge($this->settings, $db_config);
+		if($this->settings["error_file"] === true) $this->settings["error_file"] = dirname(__FILE__)."/__mysql_errors.log";
+	}
+
+	function connect() {
+		if (!$this->link) {
+			$this->link = ($this->settings["persist"]) ? 
+				mysql_pconnect(
+					$this->settings["servername"].":".$this->settings["serverport"], 
+					$this->settings["username"], 
+					$this->settings["password"]
+				) : 
+				mysql_connect(
+					$this->settings["servername"].":".$this->settings["serverport"], 
+					$this->settings["username"], 
+					$this->settings["password"]
+				) or $this->error();
+		}
+		if (!mysql_select_db($this->settings["database"], $this->link)) $this->error();
+		if($this->link) mysql_query("SET NAMES 'utf8'");
+		return ($this->link) ? true : false;
+	}
+
+	function query($sql) {
+		if (!$this->link && !$this->connect()) $this->error();
+		if (!($this->result = mysql_query($sql, $this->link))) $this->error($sql);
+		return ($this->result) ? true : false;
+	}
+	
+	function nextr() {
+		if(!$this->result) {
+			$this->error("No query pending");
+			return false;
+		}
+		unset($this->row);
+		$this->row = mysql_fetch_array($this->result, MYSQL_BOTH);
+		return ($this->row) ? true : false ;
+	}
+
+	function get_row($mode = "both") {
+		if(!$this->row) return false;
+
+		$return = array();
+		switch($mode) {
+			case "assoc":
+				foreach($this->row as $k => $v) {
+					if(!is_int($k)) $return[$k] = $v;
+				}
+				break;
+			case "num":
+				foreach($this->row as $k => $v) {
+					if(is_int($k)) $return[$k] = $v;
+				}
+				break;
+			default:
+				$return = $this->row;
+				break;
+		}
+		return array_map("stripslashes",$return);
+	}
+
+	function get_all($mode = "both", $key = false) {
+		if(!$this->result) {
+			$this->error("No query pending");
+			return false;
+		}
+		$return = array();
+		while($this->nextr()) {
+			if($key !== false) $return[$this->f($key)] = $this->get_row($mode);
+			else $return[] = $this->get_row($mode);
+		}
+		return $return;
+	}
+
+	function f($index) {
+		return stripslashes($this->row[$index]);
+	}
+
+	function go_to($row) {
+		if(!$this->result) {
+			$this->error("No query pending");
+			return false;
+		}
+		if(!mysql_data_seek($this->result, $row)) $this->error();
+	}
+
+	function nf() {
+		if ($numb = mysql_num_rows($this->result) === false) $this->error();
+		return mysql_num_rows($this->result);
+	}
+	function af() {
+		return mysql_affected_rows();
+	}
+	function error($string="") {
+		$error = mysql_error();
+		if($this->settings["show_error"]) echo $error;
+		if($this->settings["error_file"] !== false) {
+			$handle = @fopen($this->settings["error_file"], "a+");
+			if($handle) {
+				@fwrite($handle, "[".date("Y-m-d H:i:s")."] ".$string." <".$error.">\n");
+				@fclose($handle);
+			}
+		}
+		if($this->settings["dieonerror"]) {
+			if(isset($this->result)) mysql_free_result($this->result);
+			mysql_close($this->link);
+			die();
+		}
+	}
+	function insert_id() {
+		if(!$this->link) return false;
+		return mysql_insert_id();
+	}
+	function escape($string){
+		if(!$this->link) return addslashes($string);
+		return mysql_real_escape_string($string);
+	}
+
+	function destroy(){
+		if (isset($this->result)) mysql_free_result($this->result);
+		if (isset($this->link)) mysql_close($this->link);
+	}
+
+
+}
+?>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class._database_i.php
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class._database_i.php	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class._database_i.php	(revision 1516)
@@ -0,0 +1,152 @@
+<?php
+class _database {
+	private $data		= false;
+	private $result		= false;
+	private $row		= false;
+
+	public $settings	= array(
+			"servername"=> "localhost",
+			"serverport"=> "3306",
+			"username"	=> false,
+			"password"	=> false,
+			"database"	=> false,
+			"persist"	=> false,
+			"dieonerror"=> false,
+			"showerror"	=> false,
+			"error_file"=> true
+		);
+
+	function __construct() {
+		global $db_config;
+		$this->settings = array_merge($this->settings, $db_config);
+		if($this->settings["error_file"] === true) $this->settings["error_file"] = dirname(__FILE__)."/__mysql_errors.log";
+	}
+
+	function connect() {
+		$this->data = new mysqli(
+			$this->settings["servername"], 
+			$this->settings["username"], 
+			$this->settings["password"], 
+			$this->settings["database"],
+			$this->settings["serverport"]
+		);
+
+		if(mysqli_connect_errno()) { 
+			$this->error("Connection error: ".mysqli_connect_error() ); 
+			return false; 
+		}
+		if(!$this->data->set_charset("utf8")) {
+			$this->error("Error loading character set utf8");
+			return false;
+		}
+		return true;
+	}
+
+	function query($sql) {
+		if(!$this->data && !$this->connect()) {
+			$this->error("Could node connect for query: ".$sql);
+			return false;
+		}
+		//echo $sql."<br />:";
+		if(!($this->result = $this->data->query($sql))) $this->error($sql);
+		return ($this->result) ? true : false;
+	}
+	
+	function nextr(){
+		if(!$this->result) {
+			$this->error("No query pending");
+			return false;
+		}
+		unset($this->row);
+		$this->row = $this->result->fetch_array(MYSQL_BOTH);
+		return ($this->row) ? true : false ;
+	}
+
+	function get_row($mode = "both") {
+		if(!$this->row) return false;
+
+		$return = array();
+		switch($mode) {
+			case "assoc":
+				foreach($this->row as $k => $v) {
+					if(!is_int($k)) $return[$k] = $v;
+				}
+				break;
+			case "num":
+				foreach($this->row as $k => $v) {
+					if(is_int($k)) $return[$k] = $v;
+				}
+				break;
+			default:
+				$return = $this->row;
+				break;
+		}
+		return array_map("stripslashes",$return);
+	}
+
+	function get_all($mode = "both", $key = false) {
+		if(!$this->result) {
+			$this->error("No query pending");
+			return false;
+		}
+		$return = array();
+		while($this->nextr()) {
+			if($key !== false) $return[$this->f($key)] = $this->get_row($mode);
+			else $return[] = $this->get_row($mode);
+		}
+		return $return;
+	}
+
+	function f($index) {
+		return stripslashes($this->row[$index]);
+	}
+
+	function go_to($row) {
+		if(!$this->result) {
+			$this->error("No query pending");
+			return false;
+		}
+		if(!$this->data->data_seek($row)) $this->error();
+	}
+
+	function nf() {
+		if (!$this->result) {
+			$this->error("nf: no result set");
+			return false;
+		}
+		return $this->result->num_rows;
+	}
+	function af() {
+		return $this->data->affected_rows;
+	}
+	function error($string = "") {
+		$error = $this->data->error;
+		if($this->settings["show_error"]) echo $error;
+		if($this->settings["error_file"] !== false) {
+			$handle = @fopen($this->settings["error_file"], "a+");
+			if($handle) {
+				@fwrite($handle, "[".date("Y-m-d H:i:s")."] ".$string." <".$error.">\n");
+				@fclose($handle);
+			}
+		}
+		if($this->settings["dieonerror"]) {
+			if(isset($this->result)) $this->result->free();
+			@$this->data->close();
+			die();
+		}
+	}
+	function insert_id() {
+		return $this->data->insert_id;
+	}
+	function escape($string) {
+		if(!$this->data) return addslashes($string);
+		return $this->data->escape_string($string);
+	}
+
+	function destroy() {
+		if(isset($this->result)) $this->result->free();
+		if($this->data) $this->data->close();
+	}
+
+
+}
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class.tree.php
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class.tree.php	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_inc/class.tree.php	(revision 1516)
@@ -0,0 +1,602 @@
+<?php
+class _tree_struct {
+	// Structure table and fields
+	protected $table	= "";
+	protected $fields	= array(
+			"id"		=> false,
+			"parent_id"	=> false,
+			"position"	=> false,
+			"left"		=> false,
+			"right"		=> false,
+			"level"		=> false
+		);
+
+	// Constructor
+	function __construct($table = "tree", $fields = array()) {
+		$this->table = $table;
+		if(!count($fields)) {
+			foreach($this->fields as $k => &$v) { $v = $k; }
+		}
+		else {
+			foreach($fields as $key => $field) {
+				switch($key) {
+					case "id":
+					case "parent_id":
+					case "position":
+					case "left":
+					case "right":
+					case "level":
+						$this->fields[$key] = $field;
+						break;
+				}
+			}
+		}
+		// Database
+		$this->db = new _database;
+	}
+
+	function _get_node($id) {
+		$this->db->query("SELECT `".implode("` , `", $this->fields)."` FROM `".$this->table."` WHERE `".$this->fields["id"]."` = ".(int) $id);
+		$this->db->nextr();
+		return $this->db->nf() === 0 ? false : $this->db->get_row("assoc");
+	}
+	function _get_children($id, $recursive = false) {
+		$children = array();
+		if($recursive) {
+			$node = $this->_get_node($id);
+			$this->db->query("SELECT `".implode("` , `", $this->fields)."` FROM `".$this->table."` WHERE `".$this->fields["left"]."` >= ".(int) $node[$this->fields["left"]]." AND `".$this->fields["right"]."` <= ".(int) $node[$this->fields["right"]]." ORDER BY `".$this->fields["left"]."` ASC");
+		}
+		else {
+			$this->db->query("SELECT `".implode("` , `", $this->fields)."` FROM `".$this->table."` WHERE `".$this->fields["parent_id"]."` = ".(int) $id." ORDER BY `".$this->fields["position"]."` ASC");
+		}
+		while($this->db->nextr()) $children[$this->db->f($this->fields["id"])] = $this->db->get_row("assoc");
+		return $children;
+	}
+	function _get_path($id) {
+		$node = $this->_get_node($id);
+		$path = array();
+		if(!$node === false) return false;
+		$this->db->query("SELECT `".implode("` , `", $this->fields)."` FROM `".$this->table."` WHERE `".$this->fields["left"]."` <= ".(int) $node[$this->fields["left"]]." AND `".$this->fields["right"]."` >= ".(int) $node[$this->fields["right"]]);
+		while($this->db->nextr()) $path[$this->db->f($this->fields["id"])] = $this->db->get_row("assoc");
+		return $path;
+	}
+
+	function _create($parent, $position) {
+		return $this->_move(0, $parent, $position);
+	}
+	function _remove($id) {
+		if((int)$id === 1) { return false; }
+		$data = $this->_get_node($id);
+		$lft = (int)$data[$this->fields["left"]];
+		$rgt = (int)$data[$this->fields["right"]];
+		$dif = $rgt - $lft + 1;
+
+		// deleting node and its children
+		$this->db->query("" . 
+			"DELETE FROM `".$this->table."` " . 
+			"WHERE `".$this->fields["left"]."` >= ".$lft." AND `".$this->fields["right"]."` <= ".$rgt
+		);
+		// shift left indexes of nodes right of the node
+		$this->db->query("".
+			"UPDATE `".$this->table."` " . 
+				"SET `".$this->fields["left"]."` = `".$this->fields["left"]."` - ".$dif." " . 
+			"WHERE `".$this->fields["left"]."` > ".$rgt
+		);
+		// shift right indexes of nodes right of the node and the node's parents
+		$this->db->query("" . 
+			"UPDATE `".$this->table."` " . 
+				"SET `".$this->fields["right"]."` = `".$this->fields["right"]."` - ".$dif." " . 
+			"WHERE `".$this->fields["right"]."` > ".$lft
+		);
+
+		$pid = (int)$data[$this->fields["parent_id"]];
+		$pos = (int)$data[$this->fields["position"]];
+
+		// Update position of siblings below the deleted node
+		$this->db->query("" . 
+			"UPDATE `".$this->table."` " . 
+				"SET `".$this->fields["position"]."` = `".$this->fields["position"]."` - 1 " . 
+			"WHERE `".$this->fields["parent_id"]."` = ".$pid." AND `".$this->fields["position"]."` > ".$pos
+		);
+		return true;
+	}
+	function _move($id, $ref_id, $position = 0, $is_copy = false) {
+		if((int)$ref_id === 0 || (int)$id === 1) { return false; }
+		$sql		= array();						// Queries executed at the end
+		$node		= $this->_get_node($id);		// Node data
+		$nchildren	= $this->_get_children($id);	// Node children
+		$ref_node	= $this->_get_node($ref_id);	// Ref node data
+		$rchildren	= $this->_get_children($ref_id);// Ref node children
+
+		$ndif = 2;
+		$node_ids = array(-1);
+		if($node !== false) {
+			$node_ids = array_keys($this->_get_children($id, true));
+			// TODO: should be !$is_copy && , but if copied to self - screws some right indexes
+			if(in_array($ref_id, $node_ids)) return false;
+			$ndif = $node[$this->fields["right"]] - $node[$this->fields["left"]] + 1;
+		}
+		if($position >= count($rchildren)) {
+			$position = count($rchildren);
+		}
+
+		// Not creating or copying - old parent is cleaned
+		if($node !== false && $is_copy == false) {
+			$sql[] = "" . 
+				"UPDATE `".$this->table."` " . 
+					"SET `".$this->fields["position"]."` = `".$this->fields["position"]."` - 1 " . 
+				"WHERE " . 
+					"`".$this->fields["parent_id"]."` = ".$node[$this->fields["parent_id"]]." AND " . 
+					"`".$this->fields["position"]."` > ".$node[$this->fields["position"]];
+			$sql[] = "" . 
+				"UPDATE `".$this->table."` " . 
+					"SET `".$this->fields["left"]."` = `".$this->fields["left"]."` - ".$ndif." " . 
+				"WHERE `".$this->fields["left"]."` > ".$node[$this->fields["right"]];
+			$sql[] = "" . 
+				"UPDATE `".$this->table."` " . 
+					"SET `".$this->fields["right"]."` = `".$this->fields["right"]."` - ".$ndif." " . 
+				"WHERE " . 
+					"`".$this->fields["right"]."` > ".$node[$this->fields["left"]]." AND " . 
+					"`".$this->fields["id"]."` NOT IN (".implode(",", $node_ids).") ";
+		}
+		// Preparing new parent
+		$sql[] = "" . 
+			"UPDATE `".$this->table."` " . 
+				"SET `".$this->fields["position"]."` = `".$this->fields["position"]."` + 1 " . 
+			"WHERE " . 
+				"`".$this->fields["parent_id"]."` = ".$ref_id." AND " . 
+				"`".$this->fields["position"]."` >= ".$position." " . 
+				( $is_copy ? "" : " AND `".$this->fields["id"]."` NOT IN (".implode(",", $node_ids).") ");
+
+		$ref_ind = $ref_id === 0 ? (int)$rchildren[count($rchildren) - 1][$this->fields["right"]] + 1 : (int)$ref_node[$this->fields["right"]];
+		$ref_ind = max($ref_ind, 1);
+
+		$self = ($node !== false && !$is_copy && (int)$node[$this->fields["parent_id"]] == $ref_id && $position > $node[$this->fields["position"]]) ? 1 : 0;
+		foreach($rchildren as $k => $v) {
+			if($v[$this->fields["position"]] - $self == $position) {
+				$ref_ind = (int)$v[$this->fields["left"]];
+				break;
+			}
+		}
+		if($node !== false && !$is_copy && $node[$this->fields["left"]] < $ref_ind) {
+			$ref_ind -= $ndif;
+		}
+
+		$sql[] = "" . 
+			"UPDATE `".$this->table."` " . 
+				"SET `".$this->fields["left"]."` = `".$this->fields["left"]."` + ".$ndif." " . 
+			"WHERE " . 
+				"`".$this->fields["left"]."` >= ".$ref_ind." " . 
+				( $is_copy ? "" : " AND `".$this->fields["id"]."` NOT IN (".implode(",", $node_ids).") ");
+		$sql[] = "" . 
+			"UPDATE `".$this->table."` " . 
+				"SET `".$this->fields["right"]."` = `".$this->fields["right"]."` + ".$ndif." " . 
+			"WHERE " . 
+				"`".$this->fields["right"]."` >= ".$ref_ind." " . 
+				( $is_copy ? "" : " AND `".$this->fields["id"]."` NOT IN (".implode(",", $node_ids).") ");
+
+		$ldif = $ref_id == 0 ? 0 : $ref_node[$this->fields["level"]] + 1;
+		$idif = $ref_ind;
+		if($node !== false) {
+			$ldif = $node[$this->fields["level"]] - ($ref_node[$this->fields["level"]] + 1);
+			$idif = $node[$this->fields["left"]] - $ref_ind;
+			if($is_copy) {
+				$sql[] = "" . 
+					"INSERT INTO `".$this->table."` (" . 
+						"`".$this->fields["parent_id"]."`, " . 
+						"`".$this->fields["position"]."`, " . 
+						"`".$this->fields["left"]."`, " . 
+						"`".$this->fields["right"]."`, " . 
+						"`".$this->fields["level"]."`" . 
+					") " . 
+						"SELECT " . 
+							"".$ref_id.", " . 
+							"`".$this->fields["position"]."`, " . 
+							"`".$this->fields["left"]."` - (".($idif + ($node[$this->fields["left"]] >= $ref_ind ? $ndif : 0))."), " . 
+							"`".$this->fields["right"]."` - (".($idif + ($node[$this->fields["left"]] >= $ref_ind ? $ndif : 0))."), " . 
+							"`".$this->fields["level"]."` - (".$ldif.") " . 
+						"FROM `".$this->table."` " . 
+						"WHERE " . 
+							"`".$this->fields["id"]."` IN (".implode(",", $node_ids).") " . 
+						"ORDER BY `".$this->fields["level"]."` ASC";
+			}
+			else {
+				$sql[] = "" . 
+					"UPDATE `".$this->table."` SET " . 
+						"`".$this->fields["parent_id"]."` = ".$ref_id.", " . 
+						"`".$this->fields["position"]."` = ".$position." " . 
+					"WHERE " . 
+						"`".$this->fields["id"]."` = ".$id;
+				$sql[] = "" . 
+					"UPDATE `".$this->table."` SET " . 
+						"`".$this->fields["left"]."` = `".$this->fields["left"]."` - (".$idif."), " . 
+						"`".$this->fields["right"]."` = `".$this->fields["right"]."` - (".$idif."), " . 
+						"`".$this->fields["level"]."` = `".$this->fields["level"]."` - (".$ldif.") " . 
+					"WHERE " . 
+						"`".$this->fields["id"]."` IN (".implode(",", $node_ids).") ";
+			}
+		}
+		else {
+			$sql[] = "" . 
+				"INSERT INTO `".$this->table."` (" . 
+					"`".$this->fields["parent_id"]."`, " . 
+					"`".$this->fields["position"]."`, " . 
+					"`".$this->fields["left"]."`, " . 
+					"`".$this->fields["right"]."`, " . 
+					"`".$this->fields["level"]."` " . 
+					") " . 
+				"VALUES (" . 
+					$ref_id.", " . 
+					$position.", " . 
+					$idif.", " . 
+					($idif + 1).", " . 
+					$ldif. 
+				")";
+		}
+		foreach($sql as $q) { $this->db->query($q); }
+		$ind = $this->db->insert_id();
+		if($is_copy) $this->_fix_copy($ind, $position);
+		return $node === false || $is_copy ? $ind : true;
+	}
+	function _fix_copy($id, $position) {
+		$node = $this->_get_node($id);
+		$children = $this->_get_children($id, true);
+
+		$map = array();
+		for($i = $node[$this->fields["left"]] + 1; $i < $node[$this->fields["right"]]; $i++) {
+			$map[$i] = $id;
+		}
+		foreach($children as $cid => $child) {
+			if((int)$cid == (int)$id) {
+				$this->db->query("UPDATE `".$this->table."` SET `".$this->fields["position"]."` = ".$position." WHERE `".$this->fields["id"]."` = ".$cid);
+				continue;
+			}
+			$this->db->query("UPDATE `".$this->table."` SET `".$this->fields["parent_id"]."` = ".$map[(int)$child[$this->fields["left"]]]." WHERE `".$this->fields["id"]."` = ".$cid);
+			for($i = $child[$this->fields["left"]] + 1; $i < $child[$this->fields["right"]]; $i++) {
+				$map[$i] = $cid;
+			}
+		}
+	}
+
+	function _reconstruct() {
+		$this->db->query("" . 
+			"CREATE TEMPORARY TABLE `temp_tree` (" . 
+				"`".$this->fields["id"]."` INTEGER NOT NULL, " . 
+				"`".$this->fields["parent_id"]."` INTEGER NOT NULL, " . 
+				"`". $this->fields["position"]."` INTEGER NOT NULL" . 
+			") type=HEAP"
+		);
+		$this->db->query("" . 
+			"INSERT INTO `temp_tree` " . 
+				"SELECT " . 
+					"`".$this->fields["id"]."`, " . 
+					"`".$this->fields["parent_id"]."`, " . 
+					"`".$this->fields["position"]."` " . 
+				"FROM `".$this->table."`"
+		);
+
+		$this->db->query("" . 
+			"CREATE TEMPORARY TABLE `temp_stack` (" . 
+				"`".$this->fields["id"]."` INTEGER NOT NULL, " . 
+				"`".$this->fields["left"]."` INTEGER, " . 
+				"`".$this->fields["right"]."` INTEGER, " . 
+				"`".$this->fields["level"]."` INTEGER, " . 
+				"`stack_top` INTEGER NOT NULL, " . 
+				"`".$this->fields["parent_id"]."` INTEGER, " . 
+				"`".$this->fields["position"]."` INTEGER " . 
+			") type=HEAP"
+		);
+		$counter = 2;
+		$this->db->query("SELECT COUNT(*) FROM temp_tree");
+		$this->db->nextr();
+		$maxcounter = (int) $this->db->f(0) * 2;
+		$currenttop = 1;
+		$this->db->query("" . 
+			"INSERT INTO `temp_stack` " . 
+				"SELECT " . 
+					"`".$this->fields["id"]."`, " . 
+					"1, " . 
+					"NULL, " . 
+					"0, " . 
+					"1, " . 
+					"`".$this->fields["parent_id"]."`, " . 
+					"`".$this->fields["position"]."` " . 
+				"FROM `temp_tree` " . 
+				"WHERE `".$this->fields["parent_id"]."` = 0"
+		);
+		$this->db->query("DELETE FROM `temp_tree` WHERE `".$this->fields["parent_id"]."` = 0");
+
+		while ($counter <= $maxcounter) {
+			$this->db->query("" . 
+				"SELECT " . 
+					"`temp_tree`.`".$this->fields["id"]."` AS tempmin, " . 
+					"`temp_tree`.`".$this->fields["parent_id"]."` AS pid, " . 
+					"`temp_tree`.`".$this->fields["position"]."` AS lid " . 
+				"FROM `temp_stack`, `temp_tree` " . 
+				"WHERE " . 
+					"`temp_stack`.`".$this->fields["id"]."` = `temp_tree`.`".$this->fields["parent_id"]."` AND " . 
+					"`temp_stack`.`stack_top` = ".$currenttop." " . 
+				"ORDER BY `temp_tree`.`".$this->fields["position"]."` ASC LIMIT 1"
+			);
+
+			if ($this->db->nextr()) {
+				$tmp = $this->db->f("tempmin");
+
+				$q = "INSERT INTO temp_stack (stack_top, `".$this->fields["id"]."`, `".$this->fields["left"]."`, `".$this->fields["right"]."`, `".$this->fields["level"]."`, `".$this->fields["parent_id"]."`, `".$this->fields["position"]."`) VALUES(".($currenttop + 1).", ".$tmp.", ".$counter.", NULL, ".$currenttop.", ".$this->db->f("pid").", ".$this->db->f("lid").")";
+				$this->db->query($q);
+				$this->db->query("DELETE FROM `temp_tree` WHERE `".$this->fields["id"]."` = ".$tmp);
+				$counter++;
+				$currenttop++;
+			}
+			else {
+				$this->db->query("" . 
+					"UPDATE temp_stack SET " . 
+						"`".$this->fields["right"]."` = ".$counter.", " . 
+						"`stack_top` = -`stack_top` " . 
+					"WHERE `stack_top` = ".$currenttop
+				);
+				$counter++;
+				$currenttop--;
+			}
+		}
+
+		$temp_fields = $this->fields;
+		unset($temp_fields["parent_id"]);
+		unset($temp_fields["position"]);
+		unset($temp_fields["left"]);
+		unset($temp_fields["right"]);
+		unset($temp_fields["level"]);
+		if(count($temp_fields) > 1) {
+			$this->db->query("" . 
+				"CREATE TEMPORARY TABLE `temp_tree2` " . 
+					"SELECT `".implode("`, `", $temp_fields)."` FROM `".$this->table."` "
+			);
+		}
+		$this->db->query("TRUNCATE TABLE `".$this->table."`");
+		$this->db->query("" . 
+			"INSERT INTO ".$this->table." (" . 
+					"`".$this->fields["id"]."`, " . 
+					"`".$this->fields["parent_id"]."`, " . 
+					"`".$this->fields["position"]."`, " . 
+					"`".$this->fields["left"]."`, " . 
+					"`".$this->fields["right"]."`, " . 
+					"`".$this->fields["level"]."` " . 
+				") " . 
+				"SELECT " . 
+					"`".$this->fields["id"]."`, " . 
+					"`".$this->fields["parent_id"]."`, " . 
+					"`".$this->fields["position"]."`, " . 
+					"`".$this->fields["left"]."`, " . 
+					"`".$this->fields["right"]."`, " . 
+					"`".$this->fields["level"]."` " . 
+				"FROM temp_stack " . 
+				"ORDER BY `".$this->fields["id"]."`"
+		);
+		if(count($temp_fields) > 1) {
+			$sql = "" . 
+				"UPDATE `".$this->table."` v, `temp_tree2` SET v.`".$this->fields["id"]."` = v.`".$this->fields["id"]."` ";
+			foreach($temp_fields as $k => $v) {
+				if($k == "id") continue;
+				$sql .= ", v.`".$v."` = `temp_tree2`.`".$v."` ";
+			}
+			$sql .= " WHERE v.`".$this->fields["id"]."` = `temp_tree2`.`".$this->fields["id"]."` ";
+			$this->db->query($sql);
+		}
+	}
+
+	function _analyze() {
+		$report = array();
+
+		$this->db->query("" . 
+			"SELECT " . 
+				"`".$this->fields["left"]."` FROM `".$this->table."` s " . 
+			"WHERE " . 
+				"`".$this->fields["parent_id"]."` = 0 "
+		);
+		$this->db->nextr();
+		if($this->db->nf() == 0) {
+			$report[] = "[FAIL]\tNo root node.";
+		}
+		else {
+			$report[] = ($this->db->nf() > 1) ? "[FAIL]\tMore than one root node." : "[OK]\tJust one root node.";
+		}
+		$report[] = ($this->db->f(0) != 1) ? "[FAIL]\tRoot node's left index is not 1." : "[OK]\tRoot node's left index is 1.";
+
+		$this->db->query("" . 
+			"SELECT " . 
+				"COUNT(*) FROM `".$this->table."` s " . 
+			"WHERE " . 
+				"`".$this->fields["parent_id"]."` != 0 AND " . 
+				"(SELECT COUNT(*) FROM `".$this->table."` WHERE `".$this->fields["id"]."` = s.`".$this->fields["parent_id"]."`) = 0 ");
+		$this->db->nextr();
+		$report[] = ($this->db->f(0) > 0) ? "[FAIL]\tMissing parents." : "[OK]\tNo missing parents.";
+
+		$this->db->query("SELECT MAX(`".$this->fields["right"]."`) FROM `".$this->table."`");
+		$this->db->nextr();
+		$n = $this->db->f(0);
+		$this->db->query("SELECT COUNT(*) FROM `".$this->table."`");
+		$this->db->nextr();
+		$c = $this->db->f(0);
+		$report[] = ($n/2 != $c) ? "[FAIL]\tRight index does not match node count." : "[OK]\tRight index matches count.";
+
+		$this->db->query("" . 
+			"SELECT COUNT(`".$this->fields["id"]."`) FROM `".$this->table."` s " . 
+			"WHERE " . 
+				"(SELECT COUNT(*) FROM `".$this->table."` WHERE " . 
+					"`".$this->fields["right"]."` < s.`".$this->fields["right"]."` AND " . 
+					"`".$this->fields["left"]."` > s.`".$this->fields["left"]."` AND " . 
+					"`".$this->fields["level"]."` = s.`".$this->fields["level"]."` + 1" . 
+				") != " .
+				"(SELECT COUNT(*) FROM `".$this->table."` WHERE " . 
+					"`".$this->fields["parent_id"]."` = s.`".$this->fields["id"]."`" . 
+				") "
+			);
+		$this->db->nextr();
+		$report[] = ($this->db->f(0) > 0) ? "[FAIL]\tAdjacency and nested set do not match." : "[OK]\tNS and AJ match";
+
+		return implode("<br />",$report);
+	}
+
+	function _dump($output = false) {
+		$nodes = array();
+		$this->db->query("SELECT * FROM ".$this->table." ORDER BY `".$this->fields["left"]."`");
+		while($this->db->nextr()) $nodes[] = $this->db->get_row("assoc");
+		if($output) {
+			echo "<pre>";
+			foreach($nodes as $node) {
+				echo str_repeat("&#160;",(int)$node[$this->fields["level"]] * 2);
+				echo $node[$this->fields["id"]]." (".$node[$this->fields["left"]].",".$node[$this->fields["right"]].",".$node[$this->fields["level"]].",".$node[$this->fields["parent_id"]].",".$node[$this->fields["position"]].")<br />";
+			}
+			echo str_repeat("-",40);
+			echo "</pre>";
+		}
+		return $nodes;
+	}
+	function _drop() {
+		$this->db->query("TRUNCATE TABLE `".$this->table."`");
+		$this->db->query("" . 
+				"INSERT INTO `".$this->table."` (" . 
+					"`".$this->fields["id"]."`, " . 
+					"`".$this->fields["parent_id"]."`, " . 
+					"`".$this->fields["position"]."`, " . 
+					"`".$this->fields["left"]."`, " . 
+					"`".$this->fields["right"]."`, " . 
+					"`".$this->fields["level"]."` " . 
+					") " . 
+				"VALUES (" . 
+					"1, " . 
+					"0, " . 
+					"0, " . 
+					"1, " . 
+					"2, " . 
+					"0 ". 
+				")");
+	}
+}
+
+class json_tree extends _tree_struct { 
+	function __construct($table = "tree", $fields = array(), $add_fields = array("title" => "title", "type" => "type")) {
+		parent::__construct($table, $fields);
+		$this->fields = array_merge($this->fields, $add_fields);
+		$this->add_fields = $add_fields;
+	}
+
+	function create_node($data) {
+		$id = parent::_create((int)$data[$this->fields["id"]], (int)$data[$this->fields["position"]]);
+		if($id) {
+			$data["id"] = $id;
+			$this->set_data($data);
+			return  "{ \"status\" : 1, \"id\" : ".(int)$id." }";
+		}
+		return "{ \"status\" : 0 }";
+	}
+	function set_data($data) {
+		if(count($this->add_fields) == 0) { return "{ \"status\" : 1 }"; }
+		$s = "UPDATE `".$this->table."` SET `".$this->fields["id"]."` = `".$this->fields["id"]."` "; 
+		foreach($this->add_fields as $k => $v) {
+			if(isset($data[$k]))	$s .= ", `".$this->fields[$v]."` = \"".$this->db->escape($data[$k])."\" ";
+			else					$s .= ", `".$this->fields[$v]."` = `".$this->fields[$v]."` ";
+		}
+		$s .= "WHERE `".$this->fields["id"]."` = ".(int)$data["id"];
+		$this->db->query($s);
+		return "{ \"status\" : 1 }";
+	}
+	function rename_node($data) { return $this->set_data($data); }
+
+	function move_node($data) { 
+		$id = parent::_move((int)$data["id"], (int)$data["ref"], (int)$data["position"], (int)$data["copy"]);
+		if(!$id) return "{ \"status\" : 0 }";
+		if((int)$data["copy"] && count($this->add_fields)) {
+			$ids	= array_keys($this->_get_children($id, true));
+			$data	= $this->_get_children((int)$data["id"], true);
+
+			$i = 0;
+			foreach($data as $dk => $dv) {
+				$s = "UPDATE `".$this->table."` SET `".$this->fields["id"]."` = `".$this->fields["id"]."` "; 
+				foreach($this->add_fields as $k => $v) {
+					if(isset($dv[$k]))	$s .= ", `".$this->fields[$v]."` = \"".$this->db->escape($dv[$k])."\" ";
+					else				$s .= ", `".$this->fields[$v]."` = `".$this->fields[$v]."` ";
+				}
+				$s .= "WHERE `".$this->fields["id"]."` = ".$ids[$i];
+				$this->db->query($s);
+				$i++;
+			}
+		}
+		return "{ \"status\" : 1, \"id\" : ".$id." }";
+	}
+	function remove_node($data) {
+		$id = parent::_remove((int)$data["id"]);
+		return "{ \"status\" : 1 }";
+	}
+	function get_children($data) {
+		$tmp = $this->_get_children((int)$data["id"]);
+		if((int)$data["id"] === 1 && count($tmp) === 0) {
+			$this->_create_default();
+			$tmp = $this->_get_children((int)$data["id"]);
+		}
+		$result = array();
+		if((int)$data["id"] === 0) return json_encode($result);
+		foreach($tmp as $k => $v) {
+			$result[] = array(
+				"attr" => array("id" => "node_".$k, "rel" => $v[$this->fields["type"]]),
+				"data" => $v[$this->fields["title"]],
+				"state" => ((int)$v[$this->fields["right"]] - (int)$v[$this->fields["left"]] > 1) ? "closed" : ""
+			);
+		}
+		return json_encode($result);
+	}
+	function search($data) {
+		$this->db->query("SELECT `".$this->fields["left"]."`, `".$this->fields["right"]."` FROM `".$this->table."` WHERE `".$this->fields["title"]."` LIKE '%".$this->db->escape($data["search_str"])."%'");
+		if($this->db->nf() === 0) return "[]";
+		$q = "SELECT DISTINCT `".$this->fields["id"]."` FROM `".$this->table."` WHERE 0 ";
+		while($this->db->nextr()) {
+			$q .= " OR (`".$this->fields["left"]."` < ".(int)$this->db->f(0)." AND `".$this->fields["right"]."` > ".(int)$this->db->f(1).") ";
+		}
+		$result = array();
+		$this->db->query($q);
+		while($this->db->nextr()) { $result[] = "#node_".$this->db->f(0); }
+		return json_encode($result);
+	}
+
+	function _create_default() {
+		$this->_drop();
+		$this->create_node(array(
+			"id" => 1,
+			"position" => 0,
+			"title" => "C:",
+			"type" => "drive"
+		));
+		$this->create_node(array(
+			"id" => 1,
+			"position" => 1,
+			"title" => "D:",
+			"type" => "drive"
+		));
+		$this->create_node(array(
+			"id" => 2,
+			"position" => 0,
+			"title" => "_demo",
+			"type" => "folder"
+		));
+		$this->create_node(array(
+			"id" => 2,
+			"position" => 1,
+			"title" => "_docs",
+			"type" => "folder"
+		));
+		$this->create_node(array(
+			"id" => 4,
+			"position" => 0,
+			"title" => "index.html",
+			"type" => "default"
+		));
+		$this->create_node(array(
+			"id" => 5,
+			"position" => 1,
+			"title" => "doc.html",
+			"type" => "default"
+		));
+	}
+}
+
+?>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_install.txt
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_install.txt	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/_install.txt	(revision 1516)
@@ -0,0 +1,6 @@
+1) Create a database and a user with all privileges for this database.
+2) Edit the config.php file and update the configuration for the database at the top of the file
+3) Import the _dump.sql in your newly created database
+4) You are ready to go
+
+*) PLEASE NOTE THAT THE PHP TREE CLASS HAS NOT BEEN THOROUGHLY TESTED
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/config.php
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/config.php	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/config.php	(revision 1516)
@@ -0,0 +1,14 @@
+<?php
+// Database config & class
+$db_config = array(
+	"servername"=> "localhost",
+	"username"	=> "root",
+	"password"	=> "",
+	"database"	=> "jstree"
+);
+if(extension_loaded("mysqli")) require_once("_inc/class._database_i.php"); 
+else require_once("_inc/class._database.php"); 
+
+// Tree class
+require_once("_inc/class.tree.php"); 
+?>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/index.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/index.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/index.html	(revision 1516)
@@ -0,0 +1,262 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - full featured demo</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<style type="text/css">
+	html, body { margin:0; padding:0; }
+	body, td, th, pre, code, select, option, input, textarea { font-family:verdana,arial,sans-serif; font-size:10px; }
+	.demo, .demo input, .jstree-dnd-helper, #vakata-contextmenu { font-size:10px; font-family:Verdana; }
+	#container { width:780px; margin:10px auto; overflow:hidden; position:relative; }
+	#demo { width:auto; height:400px; overflow:auto; border:1px solid gray; }
+
+	#text { margin-top:1px; }
+
+	#alog { font-size:9px !important; margin:5px; border:1px solid silver; }
+	</style>
+</head>
+<body>
+<div id="container">
+
+<div id="mmenu" style="height:30px; overflow:auto;">
+<input type="button" id="add_folder" value="add folder" style="display:block; float:left;"/>
+<input type="button" id="add_default" value="add file" style="display:block; float:left;"/>
+<input type="button" id="rename" value="rename" style="display:block; float:left;"/>
+<input type="button" id="remove" value="remove" style="display:block; float:left;"/>
+<input type="button" id="cut" value="cut" style="display:block; float:left;"/>
+<input type="button" id="copy" value="copy" style="display:block; float:left;"/>
+<input type="button" id="paste" value="paste" style="display:block; float:left;"/>
+<input type="button" id="clear_search" value="clear" style="display:block; float:right;"/>
+<input type="button" id="search" value="search" style="display:block; float:right;"/>
+<input type="text" id="text" value="" style="display:block; float:right;" />
+</div>
+
+<!-- the tree container (notice NOT an UL node) -->
+<div id="demo" class="demo"></div>
+<!-- JavaScript neccessary for the tree -->
+<script type="text/javascript">
+$(function () {
+	// Settings up the tree - using $(selector).jstree(options);
+	// All those configuration options are documented in the _docs folder
+	$("#demo")
+		.jstree({ 
+			// the list of plugins to include
+			"plugins" : [ "themes", "json_data", "ui", "crrm", "cookies", "dnd", "search", "types", "hotkeys", "contextmenu" ],
+			// Plugin configuration
+
+			// I usually configure the plugin that handles the data first - in this case JSON as it is most common
+			"json_data" : { 
+				// I chose an ajax enabled tree - again - as this is most common, and maybe a bit more complex
+				// All the options are the same as jQuery's except for `data` which CAN (not should) be a function
+				"ajax" : {
+					// the URL to fetch the data
+					"url" : "./server.php",
+					// this function is executed in the instance's scope (this refers to the tree instance)
+					// the parameter is the node being loaded (may be -1, 0, or undefined when loading the root nodes)
+					"data" : function (n) { 
+						// the result is fed to the AJAX request `data` option
+						return { 
+							"operation" : "get_children", 
+							"id" : n.attr ? n.attr("id").replace("node_","") : 1 
+						}; 
+					}
+				}
+			},
+			// Configuring the search plugin
+			"search" : {
+				// As this has been a common question - async search
+				// Same as above - the `ajax` config option is actually jQuery's object (only `data` can be a function)
+				"ajax" : {
+					"url" : "./server.php",
+					// You get the search string as a parameter
+					"data" : function (str) {
+						return { 
+							"operation" : "search", 
+							"search_str" : str 
+						}; 
+					}
+				}
+			},
+			// Using types - most of the time this is an overkill
+			// Still meny people use them - here is how
+			"types" : {
+				// I set both options to -2, as I do not need depth and children count checking
+				// Those two checks may slow jstree a lot, so use only when needed
+				"max_depth" : -2,
+				"max_children" : -2,
+				// I want only `drive` nodes to be root nodes 
+				// This will prevent moving or creating any other type as a root node
+				"valid_children" : [ "drive" ],
+				"types" : {
+					// The default type
+					"default" : {
+						// I want this type to have no children (so only leaf nodes)
+						// In my case - those are files
+						"valid_children" : "none",
+						// If we specify an icon for the default type it WILL OVERRIDE the theme icons
+						"icon" : {
+							"image" : "./file.png"
+						}
+					},
+					// The `folder` type
+					"folder" : {
+						// can have files and other folders inside of it, but NOT `drive` nodes
+						"valid_children" : [ "default", "folder" ],
+						"icon" : {
+							"image" : "./folder.png"
+						}
+					},
+					// The `drive` nodes 
+					"drive" : {
+						// can have files and folders inside, but NOT other `drive` nodes
+						"valid_children" : [ "default", "folder" ],
+						"icon" : {
+							"image" : "./root.png"
+						},
+						// those options prevent the functions with the same name to be used on the `drive` type nodes
+						// internally the `before` event is used
+						"start_drag" : false,
+						"move_node" : false,
+						"delete_node" : false,
+						"remove" : false
+					}
+				}
+			},
+			// For UI & core - the nodes to initially select and open will be overwritten by the cookie plugin
+
+			// the UI plugin - it handles selecting/deselecting/hovering nodes
+			"ui" : {
+				// this makes the node with ID node_4 selected onload
+				"initially_select" : [ "node_4" ]
+			},
+			// the core plugin - not many options here
+			"core" : { 
+				// just open those two nodes up
+				// as this is an AJAX enabled tree, both will be downloaded from the server
+				"initially_open" : [ "node_2" , "node_3" ] 
+			}
+		})
+		.bind("create.jstree", function (e, data) {
+			$.post(
+				"./server.php", 
+				{ 
+					"operation" : "create_node", 
+					"id" : data.rslt.parent.attr("id").replace("node_",""), 
+					"position" : data.rslt.position,
+					"title" : data.rslt.name,
+					"type" : data.rslt.obj.attr("rel")
+				}, 
+				function (r) {
+					if(r.status) {
+						$(data.rslt.obj).attr("id", "node_" + r.id);
+					}
+					else {
+						$.jstree.rollback(data.rlbk);
+					}
+				}
+			);
+		})
+		.bind("remove.jstree", function (e, data) {
+			data.rslt.obj.each(function () {
+				$.ajax({
+					async : false,
+					type: 'POST',
+					url: "./server.php",
+					data : { 
+						"operation" : "remove_node", 
+						"id" : this.id.replace("node_","")
+					}, 
+					success : function (r) {
+						if(!r.status) {
+							data.inst.refresh();
+						}
+					}
+				});
+			});
+		})
+		.bind("rename.jstree", function (e, data) {
+			$.post(
+				"./server.php", 
+				{ 
+					"operation" : "rename_node", 
+					"id" : data.rslt.obj.attr("id").replace("node_",""),
+					"title" : data.rslt.new_name
+				}, 
+				function (r) {
+					if(!r.status) {
+						$.jstree.rollback(data.rlbk);
+					}
+				}
+			);
+		})
+		.bind("move_node.jstree", function (e, data) {
+			data.rslt.o.each(function (i) {
+				$.ajax({
+					async : false,
+					type: 'POST',
+					url: "./server.php",
+					data : { 
+						"operation" : "move_node", 
+						"id" : $(this).attr("id").replace("node_",""), 
+						"ref" : data.rslt.np.attr("id").replace("node_",""), 
+						"position" : data.rslt.cp + i,
+						"title" : data.rslt.name,
+						"copy" : data.rslt.cy ? 1 : 0
+					},
+					success : function (r) {
+						if(!r.status) {
+							$.jstree.rollback(data.rlbk);
+						}
+						else {
+							$(data.rslt.oc).attr("id", "node_" + r.id);
+							if(data.rslt.cy && $(data.rslt.oc).children("UL").length) {
+								data.inst.refresh(data.inst._get_parent(data.rslt.oc));
+							}
+						}
+						$("#analyze").click();
+					}
+				});
+			});
+		});
+});
+</script>
+<script type="text/javascript">
+$(function () { 
+	$("#mmenu input").click(function () {
+		switch(this.id) {
+			case "add_default":
+			case "add_folder":
+				$("#demo").jstree("create", null, "last", { "attr" : { "rel" : this.id.toString().replace("add_", "") } });
+				break;
+			case "search":
+				$("#demo").jstree("search", document.getElementById("text").value);
+				break;
+			case "text": break;
+			default:
+				$("#demo").jstree(this.id);
+				break;
+		}
+	});
+});
+</script>
+
+<div style="position:absolute; right:30px; top:120px; width:220px; border:1px solid silver; min-height:160px;">
+	<input type="button" style='display:block; width:170px; height:24px; margin:5px auto;' value="reconstruct" onclick="$.get('./server.php?reconstruct', function () { $('#demo').jstree('refresh',-1); });" />
+	<input type="button" style='display:block; width:170px; height:24px; margin:5px auto;' id="analyze" value="analyze" onclick="$('#alog').load('./server.php?analyze');" />
+	<input type="button" style='display:block; width:170px; height:24px; margin:5px auto;' value="refresh" onclick="$('#demo').jstree('refresh',-1);" />
+	<div id='alog'></div>
+</div>
+
+<p style="margin:1em 2em 3em 2em; text-align:center; ">If you like the project - consider <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@vakata.com&currency_code=USD&amount=&return=http://jstree.com/donation&item_name=Buy+me+a+coffee+for+jsTree">supporting jstree</a>.</p>
+
+</div>
+
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/server.php
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/server.php	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_demo/server.php	(revision 1516)
@@ -0,0 +1,69 @@
+<?php
+require_once("config.php");
+$jstree = new json_tree();
+
+//$jstree->_create_default();
+//die();
+
+if(isset($_GET["reconstruct"])) {
+	$jstree->_reconstruct();
+	die();
+}
+if(isset($_GET["analyze"])) {
+	echo $jstree->_analyze();
+	die();
+}
+
+if($_REQUEST["operation"] && strpos("_", $_REQUEST["operation"]) !== 0 && method_exists($jstree, $_REQUEST["operation"])) {
+	header("HTTP/1.0 200 OK");
+	header('Content-type: text/json; charset=utf-8');
+	header("Cache-Control: no-cache, must-revalidate");
+	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+	header("Pragma: no-cache");
+	echo $jstree->{$_REQUEST["operation"]}($_REQUEST);
+	die();
+}
+header("HTTP/1.0 404 Not Found"); 
+?>
+
+<?php
+/*
+$jstree->_drop();
+$jstree->create_node(array("id"=>0,"position"=>0));
+$jstree->create_node(array("id"=>1,"position"=>0));
+$jstree->create_node(array("id"=>1,"position"=>0));
+$jstree->create_node(array("id"=>3,"position"=>0,"name"=>"Pesho"));
+$jstree->move(3,2,0,true);
+$jstree->_dump(true);
+$jstree->_reconstruct();
+echo $jstree->_analyze();
+die();
+
+$tree = new _tree_struct;
+$tree->drop();
+$tree->create(0, 0);
+$tree->create(0, 0);
+$tree->create(1, 0);
+$tree->create(0, 3);
+$tree->create(2, 3);
+$tree->create(2, 0);
+$tree->dump(true);
+$tree->move(6,4,0);
+$tree->move(1,0,0);
+$tree->move(3,2,99,true);
+$tree->move(7,1,0,true);
+$tree->move(1,7,0);
+$tree->move(1,0,1,true);
+$tree->move(2, 0, 0, true);
+$tree->move(13, 12, 2, true);
+$tree->dump(true);
+$tree->move(15, 16, 2, true);
+$tree->dump(true);
+$tree->move(4, 0, 0);
+$tree->dump(true);
+$tree->move(4, 0, 2);
+$tree->dump(true);
+echo $tree->analyze();
+$tree->drop();
+*/
+?>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/!style.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/!style.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/!style.css	(revision 1516)
@@ -0,0 +1,37 @@
+html, body { margin:0; padding:0; }
+body, td, th, pre, code, select, option, input, textarea { font-family:"lucida grande",tahoma,verdana,arial,sans-serif; font-size:10pt; }
+h1 { margin:0; padding:0.2em 0 0.5em 0; font-size:14pt; font-family:Georgia; /*text-shadow:1px 1px 2px gray;*/ border-bottom:2px solid; margin-bottom:0.5em; text-align:center;  }
+h2 { margin:0.5em 0 0.5em 0; padding:0.5em 0 0.5em 20px; font-size:12pt; font-family:Georgia; color:white; background:silver; text-shadow:1px 1px 2px gray; clear:both; -moz-border-radius:5px; }
+h3 { margin:0; padding:0.5em 0 0.5em 0; font-size:11.5pt; font-family:Georgia; color:gray; clear:both; }
+p { padding:0em 0 0.5em 0; margin:0; line-height:1.8em; }
+p.meta { font-size:9pt; color:gray; margin-top:-5px; }
+.arguments .tp, p code { color:green; padding:0 4px; font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size:13px; }
+#description, .panel { margin:0 20px; }
+#container { width:800px; margin:10px auto; overflow:hidden; }
+.demo { width:255px; float:left; margin:0; border:1px solid gray; background:white; overflow:auto; }
+.code { width:490px; float:right; margin:0 0 10px 0; border:1px solid gray; font-size:12px; }
+pre { display:block; }
+.code_f { border:1px solid gray; margin-bottom:1em; }
+.syntaxhighlighter { margin:0 0 0 0 !important; padding:0 !important; line-height:18px; }
+
+.log { padding:4px; border:1px solid gray; margin-bottom:1em; }
+.button { display:block; margin-bottom:0.5em; }
+.arguments { margin:0em 1em; padding:0; list-style-type:none; }
+.arguments .tp { padding:0 0 0 0; float:left; width:70px;  }
+.arguments strong { display:block; }
+
+.api h3 { margin-left:-10px; color:black; font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-weight: normal !important; font-size:14px; margin-top:2em; border-top:1px solid; width:780px; }
+.api .arguments li strong {  color:black; font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-weight: normal !important; font-size:13px; }
+
+.configuration h3 { margin-left:-10px; color:black; font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-weight: normal !important; font-size:14px; margin-top:2em; border-top:1px solid; width:780px; }
+.note { background:#ffffee; padding:10px 20px; border:1px solid #333; -moz-border-radius:5px; border-radius:5px; -webkit-border-radius:5px; margin-bottom:15px; text-align:center; font-weight:bold; }
+
+ul.columns { list-style-type:none; width:700px; margin:5px auto 15px auto; padding:0; overflow:hidden; }
+ul.columns li { float:left; margin:0; padding:0 0 0 0px; line-height:18px; width:345px; }
+ul.plugins li { width:220px; text-align:left; padding:5px 0; }
+ul.plugins li a { text-decoration:none; color:#3B5998; }
+ul.plugins li a:hover { text-decoration:underline; }
+ul.plugins li p { text-align:left; font-size:9px; color:#333; margin:0 5px 0 0; }
+
+.demo, .demo input, .jstree-dnd-helper, #vakata-contextmenu { font-size:10px; font-family:Verdana; }
+
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_html_data.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_html_data.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_html_data.html	(revision 1516)
@@ -0,0 +1,2 @@
+<li class="jstree-closed"><a href="#">Node 1</a></li>
+<li><a href="#">Node 2</a></li>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_json_data.json
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_json_data.json	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_json_data.json	(revision 1516)
@@ -0,0 +1,4 @@
+[
+	{ "data" : "A node", "children" : [ { "data" : "Only child", "state" : "closed" } ], "state" : "open" },
+	"Ajax node"
+]
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_search_data.json
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_search_data.json	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_search_data.json	(revision 1516)
@@ -0,0 +1,6 @@
+[
+	"Ajax node 1",
+	"Ajax node 2",
+	"TARGET",
+	"Ajax node 4"
+]
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_search_result.json
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_search_result.json	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_search_result.json	(revision 1516)
@@ -0,0 +1,1 @@
+[ "#root_node" ]
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_xml_flat.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_xml_flat.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_xml_flat.xml	(revision 1516)
@@ -0,0 +1,12 @@
+<root>
+	<item parent_id="0" id="node_1" state="closed">
+		<content>
+			<name><![CDATA[Node 1]]></name>
+		</content>
+	</item>
+	<item parent_id="0" id="node_2">
+		<content>
+			<name><![CDATA[Node 2]]></name>
+		</content>
+	</item>
+</root>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_xml_nest.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_xml_nest.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/_xml_nest.xml	(revision 1516)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+	<item id="pxml_1">
+		<content><name><![CDATA[Root node 1]]></name></content>
+		<item id="pxml_2">
+			<content><name><![CDATA[Child node 1]]></name></content>
+		</item>
+		<item id="pxml_3">
+			<content><name><![CDATA[Child node 2]]></name></content>
+		</item>
+		<item id="pxml_4">
+			<content><name><![CDATA[Some other child node]]></name></content>
+		</item>
+	</item>
+	<item id="pxml_5">
+		<content><name ><![CDATA[Root node 2]]></name></content>
+	</item>
+</root>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/checkbox.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/checkbox.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/checkbox.html	(revision 1516)
@@ -0,0 +1,148 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - checkbox documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - checkbox plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>checkbox</code> plugin makes multiselection possible using three-state checkboxes.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<p>No configuration possible</p>
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+<h3>Using the checkbox plugin - all you need to do is include it in the list of active plugins.</h3>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2" class="jstree-checked">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"plugins" : [ "themes", "html_data", "checkbox" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+<p>The checkbox plugin maps UI's <a href="ui.html#get_selected">get_selected function</a> to its own <a href="#get_checked">get_checked function</a> and overwrites the <a href="ui.html#reselect">UI reselect function</a>. It also disables the <code>select_node</code>, <code>deselect_node</code> and <code>deselect_all</code> functions.
+
+<h3 id="_prepare_checkboxes">._prepare_checkboxes ( node )</h3>
+<p>Inserts the checkbox icons on the node. Used internally.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="_repair_state">._repair_state ( node )</h3>
+<p>Repairs the checkbox state inside the node. Used internally.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="change_state">.change_state ( node , uncheck )</h3>
+<p>Changes the state of a node. Used mostly internally - you'd be better off using the <code>check_node</code> and <code>uncheck_node</code> functions. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+	<li>
+		<code class="tp">boolean</code> <strong>uncheck</strong>
+		<p>If set to <code>true</code> the node is unchecked, if set to <code>false</code> the node is checked, otherwise - the state is toggled.</p>
+	</li>
+</ul>
+
+<h3 id="check_node">.check_node ( node )</h3>
+<p>Checks a node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="uncheck_node">.uncheck_node ( node )</h3>
+<p>Unchecks a node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="check_all">.check_all ( )</h3>
+<p>Checks all nodes.</p>
+
+<h3 id="uncheck_all">.uncheck_all ( )</h3>
+<p>Unchecks all nodes.</p>
+
+<h3 id="is_checked">.is_checked ( node )</h3>
+<p>Checks if a node is checked. Returns boolean.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<div style="height:1px; visibility:hidden; overflow:hidden;"><span id="get_unchecked">&#160;</span></div>
+<h3 id="get_checked">.get_checked ( context ), .get_unchecked ( context )</h3>
+<p>Both functions return jQuery collections.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>context</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree. If specified only nodes inside the specified context are returned, otherwise the whole tree is searched.</p>
+	</li>
+</ul>
+
+<div style="height:1px; visibility:hidden; overflow:hidden;"><span id="hide_checkboxes">&#160;</span></div>
+<h3 id="show_checkboxes">.show_checkboxes ( ), .get_unchecked ( )</h3>
+<p>Show or hide the checkbox icons.</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/contextmenu.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/contextmenu.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/contextmenu.html	(revision 1516)
@@ -0,0 +1,120 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - contextmenu documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - contextmenu plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>contextmenu</code> plugin enables a contextual menu to be shown, when the user right-clicks a node (or when triggered programatically by the developer).</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>select_node</h3>
+<p class="meta">Boolean. Default is <code>false</code>.</p>
+<p>Whether to select the right clicked node when showing the context menu. If this is set to <code>true</code> and the node is not selected all currently selected nodes will be deselected.</p>
+
+<h3>show_at_node</h3>
+<p class="meta">Boolean. Default is <code>true</code>.</p>
+<p>Whether to show the context menu just below the node, or at the clicked point exactly.</p>
+
+<h3>items</h3>
+<p>Expects an object or a function, which should return an object. If a function is used it fired in the tree's context and receives one argument - the node that was right clicked. The object format is:</p>
+<div style="border:1px solid gray">
+<pre class="brush:js">
+{
+// Some key
+"rename" : {
+	// The item label
+	"label"				: "Rename",
+	// The function to execute upon a click
+	"action"			: function (obj) { this.rename(obj); },
+	// All below are optional 
+	"_disabled"			: true,		// clicking the item won't do a thing
+	"_class"			: "class",	// class is applied to the item LI node
+	"separator_before"	: false,	// Insert a separator before the item
+	"separator_after"	: true,		// Insert a separator after the item
+	// false or string - if does not contain `/` - used as classname
+	"icon"				: false,
+	"submenu"			: { 
+		/* Collection of objects (the same structure) */
+	}
+}
+/* MORE ENTRIES ... */
+}
+</pre>
+</div>
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using the contextmenu</h3>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"plugins" : [ "themes", "html_data", "ui", "crrm", "contextmenu" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="show_contextmenu">.show_contextmenu ( node , x, y )</h3>
+<p>Shows the contextmenu next to a node. Triggered automatically when right-clicking a node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+	<li>
+		<code class="tp">number</code> <strong>x</strong>
+		<p>The X-coordinate to show the menu at - may be overwritten by <code>show_at_node</code>. If you omit this the menu is shown aligned with the left of the node.</p>
+	</li>
+	<li>
+		<code class="tp">number</code> <strong>y</strong>
+		<p>The Y-coordinate to show the menu at - may be overwritten by <code>show_at_node</code>. If you omit this the menu is shown just below the node.</p>
+	</li>
+</ul>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/cookies.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/cookies.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/cookies.html	(revision 1516)
@@ -0,0 +1,96 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - cookies documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - cookies plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>cookies</code> enables jstree to save the state of the tree across sessions. What this does is save the opened and selected nodes in a cookie, and reopen &amp; reselect them the next time the user loads the tree. Depends on the <a href="http://plugins.jquery.com/project/cookie">jQuery.cookie</a> plugin.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+
+<h3>save_opened</h3>
+<p class="meta">A string (or <code>false</code>). Default is <code>"jstree_open"</code>.</p>
+<p>The name of the cookie to save opened nodes in. If set to <code>false</code> - opened nodes won't be saved.</p>
+
+<h3>save_selected</h3>
+<p class="meta">A string (or <code>false</code>). Default is <code>"jstree_select"</code>.</p>
+<p>The name of the cookie to save selected nodes in. If set to <code>false</code> - selected nodes won't be saved.</p>
+
+<h3>auto_save</h3>
+<p class="meta">A Boolean. Default is <code>true</code>.</p>
+<p>If set to <code>true</code> jstree will automatically update the cookies every time a change in the state occurs.</p>
+
+<h3>cookie_options</h3>
+<p class="meta">An object. Default is <code>{}</code>.</p>
+<p>The options accepted by the <a href="http://plugins.jquery.com/project/cookie">jQuery.cookie</a> plugin.</p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+<p>Check your data plugin documentation (<a href="html_data.html">html_data</a>, <a href="xml_data.html">xml_data</a>, <a href="json_data.html">json_data</a>) or take a close look at these examples for information on how to specify multilanguage nodes.</p>
+
+<h3>Using the cookies plugin</h3>
+<p>Go ahead and make changes to the tree and then <a href="javascript:document.location.reload();">refresh this page</a>.</p>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"plugins" : [ "themes", "html_data", "ui", "cookies" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="save_cookie">.save_cookie ( event )</h3>
+<p>Save the current state.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>event</strong>
+		<p>Used internally with the <code>auto_save</code> option. Do not set this manually.</p>
+	</li>
+</ul>
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/core.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/core.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/core.html	(revision 1516)
@@ -0,0 +1,622 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree Testing</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - Core</h1>
+<h2>Description</h2>
+<div id="description">
+<h3>Including the files</h3>
+<p>First of all, as jsTree is a jQuery component, you need to include jQuery itself. jsTree v.1.0 requires jQuery version 1.4.2</p>
+
+<div class="code_f"><pre class="brush:xml;">
+&lt;script type="text/javascript" src="_lib/jquery.js"&gt;&lt;/script&gt;
+</pre></div>
+
+<p>Then you need to include jsTree:</p>
+
+<div class="code_f"><pre class="brush:xml;">
+&lt;script type="text/javascript" src="jquery.jstree.js"&gt;&lt;/script&gt;
+</pre></div>
+
+<p>Or you could use the minified version:</p>
+
+<div class="code_f"><pre class="brush:xml;">
+&lt;script type="text/javascript" src="jquery.jstree.min.js"&gt;&lt/script&gt;
+</pre></div>
+
+<p>You may change the path to whatever you like, but it is recommended not to rename <code>jquery.tree.js</code> or <code>jquery.tree.min.js</code> as the filenames may be used for path autodetection (for example in the <code>themes</code> plugin, but if you really need to rename the file most plugins will give you the option to set the path manually).</p>
+
+<p>Additionally some plugins have dependencies - plugins that detect a dependency is missing will throw an error.</p>
+
+<h3>Creating and configuring an instance</h3>
+<p>You can create a tree in the following manner:</p>
+
+<div class="code_f"><pre class="brush:js;">
+jQuery("some-selector-to-container-node-here").jstree([ config_object ]);
+</pre></div>
+
+<p>In the optional config object you specify all the options that you want to set. Each plugin will describe its configuration and defaults. In the <a href="#configuration">configuration section</a> below you will find the options defined by the core. Each plugin's options (even the core) are set in their own subobject, which is named after the plugin. For example all of the core's options are set in the <code>core</code> key of the config object:</p>
+<div class="code_f"><pre class="brush:js;">
+jQuery("some-selector-to-container-node-here")
+	.jstree({
+		core : {
+			/* core options go here */
+		}
+	});
+</pre></div>
+
+<p class="note">Please note that if your options for a given plugin are the same as the defaults you may omit those options or omit the subobject completely (if you do not need to modify the defaults).</p>
+
+<p>There is only one special config option that is not a part of any plugin - this is the <code>plugins</code> option, which defines a list of active plugins for the instance being created. Although many plugins may be included, only the ones listed in this option will be active. The only autoincluded "plugin" is the jstree core.</p>
+
+<div class="code_f"><pre class="brush:js;">
+jQuery("some-selector-to-container-node-here")
+	.jstree({
+		core : { /* core options go here */ },
+		plugins : [ "themes", "html_data", "some-other-plugin" ]
+	});
+</pre></div>
+
+<h3>Interacting with the tree</h3>
+
+<p>To perform an operation programatically on a given instance you can use two methods:</p>
+<div class="code_f"><pre class="brush:js;">
+/* METHOD ONE */
+jQuery("some-selector-to-container-node-here")
+	.jstree("operation_name" [, argument_1, argument_2, ...]);
+
+/* METHOD TWO */
+jQuery.jstree._reference(needle) 
+	/* NEEDLE can be a DOM node or selector for the container or a node within the container */
+	.operation_name([ argument_1, argument_2, ...]);
+</pre></div>
+<p class="note">NOTE: Functions prefixed with <code>_</code> can not be called with method one.</p>
+
+<p>jsTree uses events to notify of any changes happening in the tree. All events fire on the tree container in the <code>jstree</code> namespace and are named after the function that triggered them. Please note that for some events it is best to bind before creating the instance. For example:</p>
+<div class="code_f"><pre class="brush:js;">
+jQuery("some-container")
+	.bind("loaded.jstree", function (event, data) {
+		alert("TREE IS LOADED");
+	})
+	.jstree({ /* configuration here */ });
+</pre></div>
+<p>Please note the second parameter <code>data</code>. Its structure is as follows:</p>
+<div class="code_f"><pre class="brush:js;">
+{ 
+	"inst" : /* the actual tree instance */, 
+	"args" : /* arguments passed to the function */, 
+	"rslt" : /* any data the function passed to the event */, 
+	"rlbk" : /* an optional rollback object - it is not always present */
+}
+</pre></div>
+<p>There is also one special event - <code>before.jstree</code>. This events enables you to prevent an operation from executing. Look at the <a href="#demos">demo</a> below.</p>
+
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+
+<h3>html_titles</h3>
+<p class="meta">Boolean. Default is <code>false</code>.</p>
+<p>Defines whether titles can contain HTML code.</p>
+
+<h3>animation</h3>
+<p class="meta">A number. Default is <code>500</code>.</p>
+<p>Defines the duration of open/close animations. <code>0</code> means no animation.</p>
+
+<h3>initially_open</h3>
+<p class="meta">An array. Default is <code>[]</code>.</p>
+<p>Defines which nodes are to be automatically opened when the tree finishes loading - a list of IDs is expected.</p>
+
+<h3>rtl</h3>
+<p class="meta">Boolean. Default is <code>false</code>.</p>
+<p>Defines whether the tree is in right-to-left mode (also make sure you are using a RTL theme - for example the included <code>default-rtl</code>).</p>
+
+<h3>strings</h3>
+<p class="meta">Object. Default is <code>{ loading : "Loading ...", new_node : "New node" }</code>.</p>
+<p>Contains strings needed for the operation of the tree so that you can localize.</p>
+
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Binding to an event and executing an action</h3>
+<input type="button" class="button" value="toggle_node" id="toggle_node" style="clear:both;" />
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#toggle_node").click(function () { 
+		$("#demo1").jstree("toggle_node","#phtml_1");
+	});
+	$("#demo1")
+		.bind("open_node.jstree close_node.jstree", function (e) {
+			$("#log1").html("Last operation: " + e.type);
+		})
+		.jstree({ "plugins" : [ "themes", "html_data" ] });
+	});
+</script>
+<p class="log" id="log1" style="clear:both;">&#160;</p>
+
+<h3>Preventing an action</h3>
+<p>This is the same demo as above, but this time the operation will be prevented.</p>
+<input type="button" class="button" value="toggle_node" id="toggle_node2" style="clear:both;" />
+<div id="demo2" class="demo">
+	<ul>
+		<li id="html_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="html_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="html_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="html_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript">
+$(function () {
+	$("#toggle_node2").click(function () { 
+		$("#demo2").jstree("toggle_node","#html_1");
+	});
+	$("#demo2")
+		.bind("open_node.jstree close_node.jstree", function (e) {
+			$("#log2").html("Last operation: " + e.type);
+		})
+		.jstree({ "plugins" : [ "themes", "html_data" ] });
+	});
+</script>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo2").bind("before.jstree", function (e, data) {
+		if(data.func === "open_node") {
+			$("#log2").html(data.args[0].attr("id"));
+			e.stopImmediatePropagation();
+			return false;
+		}
+	});
+});
+</script>
+<p class="log" id="log2" style="clear:both;">&#160;</p>
+<p>The important part is <code>e.stopImmediatePropagation(); return false</code>.</p>
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+<p class="note">Use extra caution when working with functions prefixed with an underscore - <code>_</code>!<br />Those functions are probably for internal usage only.</p>
+
+
+<h3 id="jstree.defaults">jQuery.jstree.defaults</h3>
+<p class="meta">An object. Default is a collection of all included plugin's defaults.</p>
+<p>This object is exposed so that you can apply standart settings to all future instances</p>
+
+<h3 id="jstree.plugin">jQuery.jstree.plugin ( plugin_name , plugin_data )</h3>
+<p>This function is used by developers to extend jstree (add "plugins").</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>plugin_name</strong>
+		<p>The plugin name - it should be unique.</p>
+	</li>
+	<li>
+		<code class="tp">object</code> <strong>plugin_data</strong>
+		<p>The plugin itself. It consists of <code>__init</code> &amp; <code>__destroy</code> functions, <code>defaults</code> object (that of course could be an array or a simple value) and a <code>_fn</code> object, whose keys are all the functions you are extending jstree with. You can overwrite functions (but you can in your function call the overriden old function), and you are responsible for triggering events and setting rollback points. You can omit any of the elements in the <code>plugin_data</code> param. Keep in mind jstree will automatically clear classes prepended with <code>jstree-</code> and all events in the <code>jstree</code> namespace when destroying a tree, so you do not need to worry about those.</p>
+		<p>Read jstree's code for examples on how to develop plugins.</p>
+	</li>
+</ul>
+
+<h3 id="jstree.rollback">jQuery.jstree.rollback ( rollback_object )</h3>
+<p>This function will roll the tree back to the state specified by the rollback object</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>rollback_object</strong>
+		<p>Normally you will get this object from the event you are handling. You can of course use <code>.get_rollback()</code> to get the current state of the tree as a rollback object.</p>
+		<div class="code_f"><pre class="brush:js;">
+$("some-container").bind("some-event.jstree", function (e, data) {
+	$.jstree.rollback(data.rlbk);
+});</pre></div>
+		<p>Keep in mind that not all events will give you a rollback object - sometimes <code>data.rlbk</code> will be <code>false</code>.</p>
+	</li>
+</ul>
+
+<h3 id="jstree._focused">jQuery.jstree._focused ()</h3>
+<p>Returns the currently focused tree instance on the page. If not interaction has been made - it is the last one to be created.</p>
+
+<h3 id="jstree._reference">jQuery.jstree._reference ( needle )</h3>
+<p>Returns the tree instance for the specified <code>needle</code>.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>needle</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the tree container, or an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="jstree._instance">jQuery.jstree._instance ( index , container , settings )</h3>
+<p>This function is used internally when creating new tree instances. Calling this function by itself is not enough to create a new instance. To create a tree use the documented method <code>$("selector").jstree([ options ])</code>.</p>
+
+<h3 id="jstree._fn">jQuery.jstree._fn</h3>
+<p>This object stores all functions included by plugins. It is used internally as a prototype for all instances - do not modify manually.</p>
+
+<h3 id="data">.data</h3>
+<p>An object where all plugins store instance specific data. Do not modify manually.</p>
+
+<h3 id="get_settings">.get_settings ()</h3>
+<p>Returns a copy of the instance's settings object - the defaults, extended by your own config object.</p>
+
+<h3 id="_get_settings">._get_settings ()</h3>
+<p>Returns the instance's settings object - the defaults, extended by your own config object.</p>
+
+<h3 id="get_index">.get_index ()</h3>
+<p>Returns the internal instance index.</p>
+
+<h3 id="get_container">.get_container ()</h3>
+<p>Returns the jQuery extended container node of the tree.</p>
+
+<h3 id="_set_settings">._set_settings ( settings )</h3>
+<p>Replace the settings object with the <code>settings</code> param. Please note that not all plugins will react to the change. Unless you know exactly what you are doing you'd be better off recreating the tree with the new settings.</p>
+
+<h3 id="init">.init ()</h3>
+<p>This function is used internally when creating a new instance. Triggers an event, which fires after the tree is initialized, but not yet loaded.</p>
+
+<h3 id="destroy">.destroy ()</h3>
+<p>Destroys the instance - it will automatically remove all bound events in the <code>jstree</code> namespace &amp; remove all classes starting with <code>jstree-</code>. Triggers an event.</p>
+
+<h3 id="save_opened">.save_opened ()</h3>
+<p>Stores the currently open nodes before refreshing. Used internally. Triggers an event.</p>
+
+<h3 id="reopen">.reopen ( is_callback )</h3>
+<p>Reopens all the nodes stored by <code>save_opened</code> or set in the <code>initially_open</code> config option on first load. It is called multiple times while reopening nodes - the <code>is_callback</code> param determines if this is the first call (<code>false</code>) or not. Used internally. Triggers an event.</p>
+
+<h3 id="refresh">.refresh ( node )</h3>
+<p>Refreshes the tree. Saves all open nodes, and reloads and then reopens all saved nodes. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree. If set this will reload only the given node - otherwise - the whole tree. Passing <code>-1</code> also reloads the whole tree.</p>
+	</li>
+</ul>
+
+<h3 id="loaded">.loaded ()</h3>
+<p>A dummy function, whose purpose is only to trigger the loaded event. This event is triggered once after the tree's root nodes are loaded, but before any nodes set in <code>initially_open</code> are opened.</p>
+
+<h3 id="set_focus">.set_focus ()</h3>
+<p>Makes the current instance the focused one on the page. Triggers an event.</p>
+
+<h3 id="is_focused">.is_focused ()</h3>
+<p>Returns <code>true</code> if the current instance is the focused one, otherwise returns <code>false</code>.</p>
+
+<h3 id="_get_node">._get_node ( node )</h3>
+<p>Return the jQuery extended <code>LI</code> element of the node, <code>-1</code> if the container node is passed, or <code>false</code> otherwise.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="_get_next">._get_next ( node , strict )</h3>
+<p>Gets the <code>LI</code> element representing the node next to the passed <code>node</code>. Returns <code>false</code> on failure.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree, whose next sibling we want.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>strict</strong>
+		<p>If set to <code>true</code> only immediate siblings are calculated. Otherwise if the <code>node</code> is the last child of its parent this function will "jump out" and return the parent's next sibling, etc. Default is <code>false</code>.</p>
+	</li>
+</ul>
+
+<h3 id="_get_prev">._get_prev ( node , strict )</h3>
+<p>Gets the <code>LI</code> element representing the node previous to the passed <code>node</code>. Returns <code>false</code> on failure.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree, whose previous sibling we want.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>strict</strong>
+		<p>If set to <code>true</code> only immediate siblings are calculated. Otherwise if the <code>node</code> is the first child of its parent this function will "jump out" and return the parent itself. Default is <code>false</code>.</p>
+	</li>
+</ul>
+
+<h3 id="_get_parent">._get_parent ( node )</h3>
+<p>Gets the <code>LI</code> element representing the parent of the passed <code>node</code>. Returns <code>false</code> on failure.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree, whose parent we want.</p>
+	</li>
+</ul>
+
+<h3 id="_get_children">._get_children ( node )</h3>
+<p>Gets the <code>LI</code> elements representing the children of the passed <code>node</code>. Returns <code>false</code> on failure (or if the node has no children).</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree, whose children we want. Use <code>-1</code> to return all root nodes.</p>
+	</li>
+</ul>
+
+<h3 id="get_path">.get_path ( node , id_mode )</h3>
+<p>Return the path to a node, either as an array of IDs or as an array of node names.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree, whose path we want.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>id_mode</strong>
+		<p>If set to <code>true</code> IDs are returned instead of the names of the parents. Default is <code>false</code>.</p>
+	</li>
+</ul>
+
+<h3 id="open_node">.open_node ( node , callback , skip_animation )</h3>
+<p>Opens a closed node, so that its children are visible. If the <code>animation</code> config option is greater than <code>0</code> the children are revealed using a slide down animation, whose duration is the value of the <code>animation</code> config option in milliseconds. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element we want opened.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>callback</strong>
+		<p>A callback function executed once the node is opened. Used mostly internally, you'd be better of waiting for the event. You can skip this, by not specifying it, or by passing <code>false</code>.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>skip_animation</strong>
+		<p>If set to <code>true</code> the animation set in the <code>animation</code> config option is skipped. Default is <code>false</code>.</p>
+	</li>
+</ul>
+
+<h3 id="close_node">.close_node ( node , skip_animation )</h3>
+<p>Closes an open node, so that its children are not visible. If the <code>animation</code> config option is greater than <code>0</code> the children are hidden using a slide up animation, whose duration is the value of the <code>animation</code> config option in milliseconds. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element we want closed.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>skip_animation</strong>
+		<p>If set to <code>true</code> the animation set in the <code>animation</code> config option is skipped. Default is <code>false</code>.</p>
+	</li>
+</ul>
+
+<h3 id="toggle_node">.toggle_node ( node )</h3>
+<p>If a node is closed - this function opens it, if it is open - calling this function will close it.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element we want toggled.</p>
+	</li>
+</ul>
+
+<h3 id="open_all">.open_all ( node , original_obj )</h3>
+<p>Opens all descendants of the <code>node</code> node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element whose descendants you want opened. If this param is omitted or set to <code>-1</code> all nodes in the tree are opened.</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>original_obj</strong>
+		<p>Used internally when recursively calling the same function - do not pass this param.</p>
+	</li>
+</ul>
+
+<h3 id="close_all">.close_all ( node )</h3>
+<p>Closes all descendants of the <code>node</code> node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element whose descendants you want closed. If this param is omitted or set to <code>-1</code> all nodes in the tree are closed.</p>
+	</li>
+</ul>
+
+<div style="height:1px; visibility:hidden;"><span id="is_leaf">&nbsp;</span><span id="is_closed">&nbsp;</span></div>
+<h3 id="is_open">.is_open ( node ), .is_closed ( node ), .is_leaf ( node )</h3>
+<p>Those function check if the <code>node</code> is in a state.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want checked.</p>
+	</li>
+</ul>
+
+<h3 id="clean_node">.clean_node ( node )</h3>
+<p>Applies all necessary classes to the <code>node</code> and its descendants. Used internally. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want cleaned. If this param is omitted or set to <code>-1</code> all nodes in the tree are cleaned.</p>
+	</li>
+</ul>
+
+<h3 id="get_rollback">.get_rollback ()</h3>
+<p>Get the current tree's state in the rollback format. Used mainly internally by plugins.</p>
+
+<h3 id="set_rollback">.set_rollback ( html , data )</h3>
+<p>Rollback the tree. Used ONLY internally! Both arguments are part of the rollback object. If you need to rollback - take a look at <a href="#jstree.rollback">jQuery.jstree.rollback()</a>. Triggers event.</p>
+
+<h3 id="load_node">.load_node ( node , success_callback , error_callback )</h3>
+<p>A dummy function that is overwritten by data plugins. Triggers event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want loaded. Use <code>-1</code> for root nodes.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>success_callback</strong>
+		<p>A function to be executed once the node is loaded successfully - used internally. You should wait for the event.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>error_callback</strong>
+		<p>A function to be executed if the node is not loaded due to an error - used internally. You should wait for the event.</p>
+	</li>
+</ul>
+
+<h3 id="_is_loaded">._is_loaded ( node )</h3>
+<p>A dummy function that should return <code>true</code> if the node's children are loaded or <code>false</code> otherwise.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want to check.</p>
+	</li>
+</ul>
+
+<h3 id="create_node">.create_node ( node , position , js , callback , is_loaded )</h3>
+<p>Creates the DOM structure necessary for a new node. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element you want to create in (or next to).</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>position</strong>
+		<p>The position of the newly created node. This can be a zero based index to position the element at a specific point among the current children. You can also pass in one of those strings: <code>"before"</code>, <code>"after"</code>, <code>"inside"</code>, <code>"first"</code>, <code>"last"</code>.</p>
+	</li>
+	<li>
+		<code class="tp">object</code> <strong>js</strong>
+		<p>The data for the newly created node. Consists of three keys:</p><p style="margin-left:25px;"><code class="tp">attr</code> - an object of attributes (same used for <code>jQuery.attr()</code>. You can omit this key;<br /><code class="tp">state</code> - a string - either <code>"open"</code> or <code>"closed"</code>, for a leaf node - omit this key;<br /><code class="tp">data</code> - a string or an object - if a string is passed it is used for the title of the node, if an object is passed there are two keys you can specify: <code>attr</code> and <code>title</code>;</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>callback</strong>
+		<p>A function to be executed once the node is created - used internally. You should wait for the event.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>is_loaded</strong>
+		<p>Specifies if the parent of the node is loaded or not - used ONLY internally.</p>
+	</li>
+</ul>
+
+<h3 id="get_text">.get_text ( node )</h3>
+<p>Returns the title of a node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element whose title you need.</p>
+	</li>
+</ul>
+
+<h3 id="set_text">.set_text ( node , text )</h3>
+<p>Sets the title of a node. Triggers an event. This is used mostly internally - wait for a <a href="#rename_node">.rename_node event</a> to avoid confusion.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element whose title you want to change.</p>
+	</li>
+	<li>
+		<code class="tp">string</code> <strong>text</strong>
+		<p>The new title.</p>
+	</li>
+</ul>
+
+<h3 id="rename_node">.rename_node ( node , text )</h3>
+<p>Sets the title of a node. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element whose title you want to change.</p>
+	</li>
+	<li>
+		<code class="tp">string</code> <strong>text</strong>
+		<p>The new title.</p>
+	</li>
+</ul>
+
+<h3 id="delete_node">.delete_node ( node )</h3>
+<p>Removes a node. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element you want to remove.</p>
+	</li>
+</ul>
+
+<h3 id="prepare_move">.prepare_move ( o , r , pos , cb , is_cb )</h3>
+<p>This function is used internally to prepare all necessary variables and nodes when moving a node around. It is automatically called as needed - you do not need to call it manually. Triggers an event.</p>
+
+<h3 id="check_move">.check_move ()</h3>
+<p>Checks if the prepared move is a valid one.</p>
+
+<h3 id="move_node">.move_node ( node , ref , position , is_copy , is_prepared , skip_check )</h3>
+<p>Moves a node to a new place. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element you want to move.</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>ref</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element which will be the reference element in the move. <code>-1</code> may be used too (to indicate the container node).</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>position</strong>
+		<p>The new position of the moved node. This can be a zero based index to position the element at a specific point among the reference node's current children. You can also use one of these strings: <code>"before"</code>, <code>"after"</code>, <code>"inside"</code>, <code>"first"</code>, <code>"last"</code>.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>is_copy</strong>
+		<p>Should this be a copy or a move operation.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>is_prepared</strong>
+		<p>Used internally when this function is called recursively.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>skip_check</strong>
+		<p>If this is set to <code>true</code> <a href="#check_move">check_move</a> is not called.</p>
+	</li>
+</ul>
+
+<h3 id="_get_move">._get_move ()</h3>
+<p>Returns the lastly prepared move. The returned object contains:<br />
+<code>.o</code> - the node being moved<br />
+<code>.r</code> - the reference node in the move<br />
+<code>.ot</code> - the origin tree instance<br />
+<code>.rt</code> - the reference tree instance<br />
+<code>.p</code> - the position to move to (may be a string - <code>"last"</code>, <code>"first"</code>, etc)<br />
+<code>.cp</code> - the calculated position to move to (always a number)<br />
+<code>.np</code> - the new parent<br />
+</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/crrm.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/crrm.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/crrm.html	(revision 1516)
@@ -0,0 +1,315 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - CRRM documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - CRRM plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>CRRM</code> plugin handles creating, renaming, removing and moving nodes by the user.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>input_width_limit</h3>
+<p class="meta">A number. Default is <code>200</code>.</p>
+<p>When renaming (or creating) nodes the input for the text will autosize - this number sets the maximum size for the input.</p>
+
+<h3>move</h3>
+<p class="meta">An object, containing various settings - see below for more.</p>
+
+<h3>move.always_copy</h3>
+<p class="meta"><code>true</code>, <code>false</code> or <code>"multitree"</code>. Default is <code>false</code>.</p>
+<p>Defines how moves are handled - if set to <code>true</code> every move will be forced to a copy (leaving the original node in place). If set to <code>"multitree"</code> only moves between trees will be forced to a copy.</p>
+
+<h3>move.open_onmove</h3>
+<p class="meta">A Boolean. Default is <code>true</code>.</p>
+<p>If set to true, when moving a node to a new, closed parent, the parent node will be opened when the move completes.</p>
+
+<h3>move.default_position</h3>
+<p class="meta">A string or a number. Default is <code>"last"</code>.</p>
+<p>The default position to move to if no position is specified. This can be a zero based index to position the element at a specific point among the new parent's current children. You can also use one of these strings: <code>"before"</code>, <code>"after"</code>, <code>"inside"</code>, <code>"first"</code>, <code>"last"</code>.</p>
+
+<h3>move.check_move</h3>
+<p class="meta">A function. Default is <code>function (m) { return true; }</code>.</p>
+<p>The callback function enabling you to prevent some moves - just return <code>false</code>. The <code>m</code> parameter is the move object generated by jstree. The object follows the structure described in <a href="core.html#_get_move">._get_move</a>.</p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Creating nodes</h3>
+<input type="button" class="button" value="create_1" id="create_1" style="float:left;" />
+<input type="button" class="button" value="create_2" id="create_2" style="float:left;" />
+<input type="button" class="button" value="create_3" id="create_3" style="" />
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#create_1").click(function () { 
+		$("#demo1").jstree("create"); 
+	});
+	$("#create_2").click(function () { 
+		$("#demo1").jstree("create","#phtml_1","first","Enter a new name"); 
+	});
+	$("#create_3").click(function () { 
+		$("#demo1").jstree("create",-1,false,"No rename",false,true); 
+	});
+	$("#demo1").jstree({ 
+		"ui" : {
+			"initially_select" : [ "phtml_2" ]
+		},
+		"core" : { "initially_open" : [ "phtml_1" ] },
+		"plugins" : [ "themes", "html_data", "ui", "crrm" ]
+	});
+});
+</script>
+
+<h3>Removing nodes</h3>
+<input type="button" class="button" value="remove_1" id="remove_1" style="float:left;" />
+<input type="button" class="button" value="remove_2" id="remove_2" style="" />
+<div id="demo2" class="demo">
+	<ul>
+		<li id="rhtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="rhtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="rhtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="rhtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#remove_1").click(function () { 
+		$("#demo2").jstree("remove"); 
+	});
+	$("#remove_2").click(function () { 
+		$("#demo2").jstree("remove","#rhtml_1"); 
+	});
+	$("#demo2").jstree({ 
+		"ui" : {
+			"initially_select" : [ "rhtml_2" ]
+		},
+		"core" : { "initially_open" : [ "rhtml_1" ] },
+		"plugins" : [ "themes", "html_data", "ui", "crrm" ]
+	});
+});
+</script>
+
+<h3>Renaming nodes</h3>
+<input type="button" class="button" value="rename_1" id="rename_1" style="float:left;" />
+<input type="button" class="button" value="rename_2" id="rename_2" style="" />
+<div id="demo3" class="demo">
+	<ul>
+		<li id="shtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="shtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="shtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="shtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#rename_1").click(function () { 
+		$("#demo3").jstree("rename"); 
+	});
+	$("#rename_2").click(function () { 
+		$("#demo3").jstree("rename","#shtml_1"); 
+	});
+	$("#demo3").jstree({ 
+		"ui" : {
+			"initially_select" : [ "shtml_2" ]
+		},
+		"core" : { "initially_open" : [ "shtml_1" ] },
+		"plugins" : [ "themes", "html_data", "ui", "crrm" ]
+	});
+});
+</script>
+
+<h3>Moving nodes</h3>
+<p><strong>move_1</strong> uses the default position - <code>"first"</code></p>
+<p><strong>move_2</strong> specifies a position - <code>"before"</code> - meaning that the node specified as a first argument will come above the node specified as the second argument</p>
+<p><strong>move_3</strong> will never work, because of the specified <code>check_move</code> function which prevents the first root node from being moved</p>
+<input type="button" class="button" value="move_1" id="move_1" style="float:left;" />
+<input type="button" class="button" value="move_2" id="move_2" style="float:left;" />
+<input type="button" class="button" value="move_3" id="move_3" style="" />
+<div id="demo4" class="demo">
+	<ul>
+		<li id="thtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="thtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="thtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="thtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#move_1").click(function () { 
+		$("#demo4").jstree("move_node","#thtml_4","#thtml_1"); 
+	});
+	$("#move_2").click(function () { 
+		$("#demo4").jstree("move_node","#thtml_4","#thtml_1", "before"); 
+	});
+	$("#move_3").click(function () { 
+		$("#demo4").jstree("move_node","#thtml_1","#thtml_4"); 
+	});
+	$("#demo4").jstree({ 
+		"crrm" : {
+			"move" : {
+				"default_position" : "first",
+				"check_move" : function (m) { return (m.o[0].id === "thtml_1") ? false : true;  }
+			}
+		},
+		"ui" : {
+			"initially_select" : [ "thtml_2" ]
+		},
+		"core" : { "initially_open" : [ "thtml_1" ] },
+		"plugins" : [ "themes", "html_data", "ui", "crrm" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="_show_input">._show_input ( node , callback )</h3>
+<p>Renders an input field in a node. Used only internally.</p>
+
+<h3 id="rename">.rename ( node )</h3>
+<p>Sets a node in rename mode and when the user has entered changes, an event is triggered.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree. If you use the UI plugin - pass <code>null</code> to use the currently selected item.</p>
+	</li>
+</ul>
+
+<h3 id="create">.create ( node , position , js , callback , skip_rename )</h3>
+<p>Creates a new node. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element you want to create in (or next to). If you use the UI plugin - pass <code>null</code> to use the currently selected item.</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>position</strong>
+		<p>The position of the newly created node. This can be a zero based index to position the element at a specific point among the current children. You can also pass in one of those strings: <code>"before"</code>, <code>"after"</code>, <code>"inside"</code>, <code>"first"</code>, <code>"last"</code>.</p>
+	</li>
+	<li>
+		<code class="tp">object</code> <strong>js</strong>
+		<p>The data for the newly created node. Consists of three keys:</p><p style="margin-left:25px;"><code class="tp">attr</code> - an object of attributes (same used for <code>jQuery.attr()</code>. You can omit this key;<br /><code class="tp">state</code> - a string - either <code>"open"</code> or <code>"closed"</code>, for a leaf node - omit this key;<br /><code class="tp">data</code> - a string or an object - if a string is passed it is used for the title of the node, if an object is passed there are two keys you can specify: <code>attr</code> and <code>title</code>;</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>callback</strong>
+		<p>A function to be executed once the node is created. You'd be better off waiting for the event.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>skip_rename</strong>
+		<p>Skips the user input step. The node is created with the data you have supplied.</p>
+	</li>
+</ul>
+
+<h3 id="remove">.remove ( node )</h3>
+<p>Removes a node. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree. If you use the UI plugin - pass <code>null</code> to use the currently selected items.</p>
+	</li>
+</ul>
+
+<div style="height:1px; visibility:hidden; overflow:hidden;"><span id="check_move">&#160;</span></div>
+<h3 id="move_node">.check_move ( ), .move_node ( )</h3>
+<p>Both functions are overwritten from the <a href="core.html#check_move">core</a> in order to implement the new functionality.</p>
+
+<h3 id="cut">.cut ( node )</h3>
+<p>Cuts a node (prepares it for pasting).</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree. If you use the UI plugin - pass <code>null</code> to use the currently selected item.</p>
+	</li>
+</ul>
+
+<h3 id="copy">.copy ( node )</h3>
+<p>Copies a node (prepares it for pasting).</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree. If you use the UI plugin - pass <code>null</code> to use the currently selected item.</p>
+	</li>
+</ul>
+
+<h3 id="paste">.paste ( node )</h3>
+<p>Pastes copied or cut nodes inside a node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree. If you use the UI plugin - pass <code>null</code> to use the currently selected item.</p>
+	</li>
+</ul>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/dnd.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/dnd.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/dnd.html	(revision 1516)
@@ -0,0 +1,197 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - dnd documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - drag'n'drop plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>dnd</code> plugin enables drag'n'drop support for jstree, also using foreign nodes and drop targets.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+
+<h3>copy_modifier</h3>
+<p class="meta">A string. Default is <code>"ctrl"</code>.</p>
+<p>The special key used to make a drag copy instead of move (<code>"ctrl"</code>, <code>"shift"</code>, <code>"alt"</code>, <code>"meta"</code>).</p>
+
+<h3>check_timeout</h3>
+<p class="meta">A number. Default is <code>200</code>.</p>
+<p>The number of milliseconds to wait before checking if a move is valid upon hovering a node (while dragging). <code>200</code> is a reasonable value - a higher number means better performance but slow feedback to the user, a lower number means lower performance (possibly) but the user will get feedback faster.</p>
+
+<h3>open_timeout</h3>
+<p class="meta">A number. Default is <code>500</code>.</p>
+<p>The number of milliseconds to wait before opening a hovered if it has children (while dragging). This means that the user has to stop over the node for half a second in order to trigger the open operation. Keep in mind that a low value in combination with async data could mean a lot of unneeded traffic, so <code>500</code> is quite reasonable.</p>
+
+<h3>drop_target</h3>
+<p class="meta">A string (jQuery selector) (or <code>false</code>). Default is <code>".jstree-drop"</code>.</p>
+<p>A jquery selector matching all drop targets (you can also use the comma <code>,</code> in the string to specify multiple valid targets). If set to <code>false</code> drop targets are disabled.</p>
+
+<h3>drop_check</h3>
+<p class="meta">A function. Default is <code>function (data) { return true; }</code>.</p>
+<p>Return <code>false</code> to mark the move as invalid, otherwise return <code>true</code>. The <code>data</code> parameter is as follows:</p>
+<p style="margin-left:2em;"><code>data.o</code> - the object being dragged</p>
+<p style="margin-left:2em;"><code>data.r</code> - the drop target</p>
+
+<h3>drop_finish</h3>
+<p class="meta">A function. Default is <code>$.noop</code>.</p>
+<p>Gets executed after a valid drop, you get one parameter, which is as follows:</p>
+<p style="margin-left:2em;"><code>data.o</code> - the object being dragged</p>
+<p style="margin-left:2em;"><code>data.r</code> - the drop target</p>
+
+<h3>drag_target</h3>
+<p class="meta">A string (jQuery selector) (or <code>false</code>). Default is <code>".jstree-draggable"</code>.</p>
+<p>A jquery selector matching all foreign nodes that can be dropped on the tree (you can also use the comma <code>,</code> in the string to specify multiple valid foreign nodes). If set to <code>false</code> dragging foreign nodes is disabled.</p>
+
+<h3>drag_check</h3>
+<p class="meta">A function. Default is <code>function (data) { return { after : false, before : false, inside : true }; }</code>.</p>
+<p>Return a boolean for each position. The <code>data</code> parameter is as follows:</p>
+<p style="margin-left:2em;"><code>data.o</code> - the foreign object being dragged</p>
+<p style="margin-left:2em;"><code>data.r</code> - the hovered node</p>
+
+<h3>drag_finish</h3>
+<p class="meta">A function. Default is <code>$.noop</code>.</p>
+<p>Gets executed after a dropping a foreign element on a tree item, you get one parameter, which is as follows:</p>
+<p style="margin-left:2em;"><code>data.o</code> - the foreign object being dragged</p>
+<p style="margin-left:2em;"><code>data.r</code> - the target node</p>
+
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+<h3>Using the dnd plugin</h3>
+<p>Drag stuff around!</p>
+<div class="jstree-drop" style="clear:both; border:5px solid green; background:lime; color:green; height:40px; line-height:40px; text-align:center; font-size:20px;">I have the jstree-drop class</div>
+<div class="jstree-draggable" style="margin:10px 0; clear:both; border:5px solid navy; background:aqua; color:navy; height:40px; line-height:40px; text-align:center; font-size:20px;">I have the jstree-draggable class</div>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"dnd" : {
+			"drop_finish" : function () { 
+				alert("DROP"); 
+			},
+			"drag_check" : function (data) {
+				if(data.r.attr("id") == "phtml_1") {
+					return false;
+				}
+				return { 
+					after : false, 
+					before : false, 
+					inside : true 
+				};
+			},
+			"drag_finish" : function () { 
+				alert("DRAG OK"); 
+			}
+		},
+		"plugins" : [ "themes", "html_data", "dnd" ]
+	});
+});
+</script>
+
+<h3>Reorder only demo</h3>
+<div id="demo2" class="demo">
+	<ul>
+		<li id="rhtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="rhtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="rhtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+				<li id="rhtml_4">
+					<a href="#">Child node 3</a>
+				</li>
+				<li id="rhtml_5">
+					<a href="#">Child node 4</a>
+				</li>
+			</ul>
+		</li>
+		<li id="rhtml_6">
+			<a href="#">Root node 2</a>
+		</li>
+		<li id="rhtml_7">
+			<a href="#">Root node 3</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo2").jstree({ 
+		"crrm" : { 
+			"move" : {
+				"check_move" : function (m) { 
+					var p = this._get_parent(m.o);
+					if(!p) return false;
+					p = p == -1 ? this.get_container() : p;
+					if(p === m.np) return true;
+					if(p[0] && m.np[0] && p[0] === m.np[0]) return true;
+					return false;
+				}
+			}
+		},
+		"dnd" : {
+			"drop_target" : false,
+			"drag_target" : false
+		},
+		"plugins" : [ "themes", "html_data", "crrm", "dnd" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<div style="height:1px; visibility:hidden;">
+	<span id="dnd_show">&nbsp;</span>
+	<span id="dnd_open">&nbsp;</span>
+	<span id="dnd_finish">&nbsp;</span>
+	<span id="dnd_enter">&nbsp;</span>
+	<span id="start_drag">&nbsp;</span>
+</div>
+<h3 id="dnd_prepare">.dnd_prepare ( ), .dnd_show ( ), .dnd_open ( ), .dnd_finish ( ), .dnd_enter ( ), .start_drag ( )</h3>
+<p>All those functions are used internally only. If you want more information - examine the source code.</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/hotkeys.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/hotkeys.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/hotkeys.html	(revision 1516)
@@ -0,0 +1,81 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - hotkeys documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - hotkeys plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>hotkeys</code> plugin enables keyboard navigation and shortcuts. Depends on the  <a href="http://github.com/jeresig/jquery.hotkeys/">jquery.hotkeys plugin</a></p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<p>Expects an object:<br />each key is the keyboard shortcut (for possible values check <a href="http://github.com/jeresig/jquery.hotkeys/">the hotkeys plugin</a>)<br />each values is a function executed in the instance's context, the return value is used as a return value for the event.</p>
+<p>Simple example:</p>
+<p><code>"del" : function () { this.remove(); }</code></p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using the hotkeys plugin</h3>
+<p>Try pressing <code>up</code>/<code>down</code>/<code>left</code>/<code>right</code>/<code>space</code>/<code>f2</code>/<code>del</code>.</p>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+	  "core" : { "initially_open" : [ "phtml_1" ] },
+	  "plugins" : ["themes","html_data","ui","crrm","hotkeys"]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="enable_hotkeys">.enable_hotkeys ( )</h3>
+<p>Enable shortcuts on the instance (enabled by default).</p>
+
+<h3 id="disable_hotkeys">.disable_hotkeys ( )</h3>
+<p>Disable shortcuts on the instance.</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/html_data.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/html_data.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/html_data.html	(revision 1516)
@@ -0,0 +1,174 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - html_data documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - html_data plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>html_data</code> plugin enables jsTree to convert nested unordered lists to interactive trees. jsTree can also get HTML from the server insert it into the DOM and convert that to a tree.</p>
+<p>The basic structure you need to follow when supplying data in the HTML format is:</p>
+<div class="code_f">
+<pre class="brush:xml;">
+&lt;li&gt;
+	&lt;a href="some_value_here"&gt;Node title&lt;/a&gt;
+	&lt;!-- UL node only needed for children - omit if there are no children --&gt;
+	&lt;ul&gt;
+		&lt;!-- Children LI nodes here --&gt;
+	&lt;/ul&gt;
+&lt;/li&gt;
+</pre>
+</div>
+<p>If you inspect the resulting structure you will find it a bit different - that is because jstree will automatically do some corrections.</p>
+<div class="code_f">
+<pre class="brush:xml;">
+&lt;!-- one of the three classes will be applied depending on node structure --&gt;
+&lt;li class="[ jstree-open | jstree-closed | jstree-leaf ]"&gt;
+	&lt;!-- an INS element is inserted --&gt;
+	&lt;ins class="jstree-icon"&gt;&amp;#160;&lt;/ins&gt;
+	&lt;a href="some_value_here"&gt;
+		&lt;!-- another INS element is inserted --&gt;
+		&lt;ins class="jstree-icon"&gt;&amp;#160;&lt;/ins&gt;
+		Node title
+	&lt;/a&gt;
+&lt;/li&gt;
+</pre>
+</div>
+<p>Both <code>ins</code> elements are inserted for visualization purposes. As for the class (<code>jstree-open</code>, <code>jstree-closed</code>) - you can specify that yourself to force the node to appear either closed or opened. Making a node with no children appear closed is often used - if you use ajax, opening a closed node with no children will result in jstree making a server call for the children (see the <a href="#demo3">demo below</a>).</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>data</h3>
+<p class="meta">A HTML string (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>Specifies the content to load into the container and convert to a tree.</p>
+<h3>ajax</h3>
+<p class="meta">An object (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>The ajax config object is pretty much the same as the <a href="http://api.jquery.com/jQuery.ajax/">jQuery ajax settings object</a>.</p>
+<p>You can set the <code>data</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the node about to be open as a paramater (or <code>-1</code> for initial load). Whatever you return in the function will be sent to the server as data (so for example you can send the node's ID).</p>
+<p>You can set the <code>url</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the node about to be open as a paramater (or <code>-1</code> for initial load). Whatever you return in the <code>url</code> function will be used as the ajax URL (so that you can accomodate pretty paths such as /get_children/node_2).</p>
+<p>The <code>error</code> and <code>success</code> functions (if present) also fire in the context of the tree, and if you return a value in the <code>success</code> function it will be used to populate the tree - this can be useful if you want to somehow change what the server returned on the client side before it is displayed in the tree.</p>
+<h3>correct_state</h3>
+<p class="meta">A Boolean. Default is <code>true</code>.</p>
+<p>If this option is set to <code>true</code> if an AJAX request returns an empty result, the node that was about to be opened will be converted to a leaf node (the open icon will no longer be displayed).</p>
+
+<p class="note"><strong>NOTE:</strong><br />If both <code>data</code> and <code>ajax</code> are not set, the current container's HTML is used to build the tree.<br />If both <code>data</code> and <code>ajax</code> are set the initial tree is rendered from the <code>data</code> string. When opening a closed node (that has no loaded children) an AJAX request is made.</p>
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using initial content (convert an existing list)</h3>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"plugins" : [ "themes", "html_data" ]
+	});
+});
+</script>
+
+<h3>Using the data config option</h3>
+<div id="demo2" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo2").jstree({ 
+		"core" : { "initially_open" : [ "root" ] },
+		"html_data" : {
+			"data" : "<li id='root'><a href='#'>Root node</a><ul><li><a href='#'>Child node</a></li></ul></li>"
+		},
+		"plugins" : [ "themes", "html_data" ]
+	});
+});
+</script>
+
+<h3>Using the ajax config option</h3>
+<div id="demo3" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo3").jstree({ 
+		"html_data" : {
+			"ajax" : {
+				"url" : "_html_data.html",
+				"data" : function (n) { 
+					return { id : n.attr ? n.attr("id") : 0 }; 
+				}
+			}
+		},
+		"plugins" : [ "themes", "html_data" ]
+	});
+});
+</script>
+
+<h3>Using both the data &amp; ajax config options</h3>
+<div id="demo4" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo4").jstree({ 
+		"core" : { "initially_open" : [ "root2" ] },
+		"html_data" : {
+			"data" : "<li class='jstree-closed' id='root2'><a href='#'>Root node</a></li>",
+			"ajax" : { "url" : "_html_data.html" }
+		},
+		"plugins" : [ "themes", "html_data" ]
+	});
+});
+</script>
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+<p>Both dummy functions - <code>_is_loaded</code> and <code>load_node</code> are overwritten.</p>
+<h3 id="load_node_html">.load_node_html ( node , success_callback , error_callback )</h3>
+<p>This function is called instead of <code>load_node</code>.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want loaded. Use <code>-1</code> for root nodes.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>success_callback</strong>
+		<p>A function to be executed once the node is loaded successfully - used internally. You should wait for the <code>load_node</code> event.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>error_callback</strong>
+		<p>A function to be executed if the node is not loaded due to an error - used internally. You should wait for the <code>load_node</code> event.</p>
+	</li>
+</ul>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/index.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/index.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/index.html	(revision 1516)
@@ -0,0 +1,75 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 Documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0</h1>
+<h2>Description</h2>
+<div id="description">
+<p>jsTree is a javascript based, cross browser tree component. It is packaged as a <a href="http://jquery.com">jQuery</a> plugin.</p>
+<p>jsTree is absolutely free (licensed same as jQuery â under both GPL and MIT â whichever suits your needs).</p>
+<h3>Features at a glance</h3>
+<ul class="columns">
+	<li>Various data sources - HTML, JSON, XML</li>
+	<li>Supports AJAX loading</li>
+	<li>Drag &amp; drop support</li>
+	<li>Highly configurable</li>
+	<li>Theme support + included themes</li> 
+	<li>Uses jQuery's event system</li> 
+	<li>Optional keyboard navigation</li> 
+	<li>Maintain the same tree in many languages</li>
+	<li>Inline editing</li>
+	<li>Open/close optional animation</li>
+	<li>Define node types and fine tune them</li>
+	<li>Configurable multitree drag &amp; drop</li>
+	<li>Optional checkbox tree support</li>
+	<li>Search function</li>
+	<li>Supports plugins</li>
+	<li>Optional state saving using cookies</li>
+	<li>RTL support</li>
+	<li>Optional sorting / unique management</li>
+</ul>
+<p>As of version 1.0 jsTree is extremely plugin friendly, so all functionality is now wrapped in plugins, which take care of various aspects of the tree and can be removed without affecting the functionality of other plugins. Below you will find a list of plugins - each with its own documentation page. Probably a good place to start is the <a href="core.html">core</a>.</p>
+</div>
+
+<h2 id="plugins">Plugins</h2>
+<div class="panel">
+<ul class="columns plugins">
+	<li style="float:none; width:660px;"><a href="core.html" style="font-weight:bold;">Core functionality</a><p>all core functions for manipulating the tree + basic examples of including, configuring and working with the tree, along with demos of the new event system</p></li>
+	<li><a href="html_data.html">HTML_DATA plugin</a><p>enables jsTree to convert nested unordered lists to interactive trees, an already existing UL may be used or data could be retrieved from a server</p></li>
+	<li><a href="json_data.html">JSON_DATA plugin</a><p>enables jsTree to convert JSON objects to interactive trees, data can be set up in the config or retrieved from a server</p></li>
+	<li><a href="xml_data.html">XML_DATA plugin</a><p>enables jsTree to convert XML objects to interactive trees (using XSL), data can be set up in the config or retrieved from a server</p></li>
+	<li><a href="themes.html">Themes plugin</a><p>controls the looks of jstree - without this plugin you will get a functional tree, but it will look just like an ordinary UL list</p></li>
+	<li><a href="ui.html">UI plugin</a><p>handles selecting, deselecting and hovering tree items</p></li>
+	<li><a href="crrm.html">CRRM plugin</a><p>handles creating, renaming, removing and moving nodes by the user, also includes cut/copy/paste functions</p></li>
+	<li><a href="hotkeys.html">Hotkeys plugin</a><p>enables support for keyboard navigation &amp; shortcuts, highly configurable</p></li>
+	<li><a href="languages.html">Languages plugin</a><p>enables multilanguage support - each node can have multiple titles, but only one is visible</p></li>
+	<li><a href="cookies.html">Cookies plugin</a><p>enables jstree to save the state of the tree across sessions, by saving selected and opened nodes in a cookie</p></li>
+	<li><a href="sort.html">Sort plugin</a><p>enables jstree to automatically sort all nodes<br />using a specified function</p></li>
+	<li><a href="dnd.html">DND plugin</a><p>enables drag'n'drop support for jstree, also using foreign nodes and drop targets</p></li>
+	<li><a href="checkbox.html">Checkbox plugin</a><p>makes multiselection possible using three-state checkboxes</p></li>
+	<li><a href="search.html">Search plugin</a><p>enables searching for nodes whose title contains a given string, works on async trees too</p></li>
+	<li><a href="contextmenu.html">Contextmenu plugin</a><p>enables a multilevel context menu on tree items</p></li>
+	<li><a href="types.html">Types plugin</a><p>each node can have a type, and you can define rules on how that type should behave</p></li>
+	<li><a href="themeroller.html">Themeroller plugin</a><p>adds support for jQuery UI's themes</p></li>
+	<li><a href="unique.html">Unique plugin</a><p>adds unique checking to jsTree</p></li>
+</ul>
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/json_data.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/json_data.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/json_data.html	(revision 1516)
@@ -0,0 +1,240 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - json_data documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - json_data plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>json_data</code> plugin enables jsTree to convert JSON objects to interactive trees. The data (JSON) can be set up in the config or retrieved from a server (also ondemand). Version 1.0 also introduces the experimental progressive render feature, which is suitable for large heavy trees, when the DOM would be too heavy to manipulate.</p>
+<p>The basic structure you need to follow when supplying data in the JSON format is:</p>
+<div class="code_f">
+<pre class="brush:js;">
+{ 
+	data : "node_title", 
+	// omit `attr` if not needed; the `attr` object gets passed to the jQuery `attr` function
+	attr : { id : "node_identificator", some-other-attribute : "attribute_value" }, 
+	// `state` and `children` are only used for NON-leaf nodes
+	state: "closed", // or "open", defaults to "closed"
+	children: [ /* an array of child nodes objects */ ]
+}
+</pre>
+</div>
+<p>The attr object will appear as attributes on the resulting <code>li</code> node.</p>
+<p>You may need to pass some attributes to the <code>a</code> node, or set some metadata, or use language versions (for the <a href="languages.html">languages plugin</a>):</p>
+<div class="code_f">
+<pre class="brush:js;">
+{
+	// `data` can also be an object
+	data : { 
+		title : "The node title", 
+		// omit when not needed
+		attr : {}, 
+		// if `icon` contains a slash <code>/</code> it is treated as a file, used for background
+		// otherwise - it is added as a class to the &lt;ins&gt; node
+		icon : "folder"
+	},
+
+	// the `metadata` property will be saved using the jQuery `data` function on the `li` node
+	metadata : "a string, array, object, etc",
+
+	// if you use the language plugin - just set this property
+	// also make sure that `data` is an array of objects
+	language : "en" // any code you are using
+}
+</pre>
+</div>
+<p>As seen in the first example below - you can also use a simple string to define a node (Child 1 &amp; Child 2).</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>data</h3>
+<p class="meta">A JSON object (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>Specifies the content to load into the container and convert to a tree.</p>
+<h3>ajax</h3>
+<p class="meta">An object (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>The ajax config object is pretty much the same as the <a href="http://api.jquery.com/jQuery.ajax/">jQuery ajax settings object</a>.</p>
+<p>You can set the <code>data</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the node about to be open as a paramater (or <code>-1</code> for initial load). Whatever you return in the <code>data</code> function will be sent to the server as data (so for example you can send the node's ID).</p>
+<p>You can set the <code>url</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the node about to be open as a paramater (or <code>-1</code> for initial load). Whatever you return in the <code>url</code> function will be used as the ajax URL (so that you can accomodate pretty paths such as /get_children/node_2).</p>
+<p>The <code>error</code> and <code>success</code> functions (if present) also fire in the context of the tree, and if you return a value in the <code>success</code> function it will be used to populate the tree - this can be useful if you want to somehow change what the server returned on the client side before it is displayed in the tree (for example some .NET json implementations require this to work: <code>"success" : function (data) { return data.d; }</code>.</p>
+<h3>correct_state</h3>
+<p class="meta">A Boolean. Default is <code>true</code>.</p>
+<p>If this option is set to <code>true</code> if an AJAX returns an empty result, the node that was about to be opened will be converted to a leaf node (the open icon will no longer be displayed).</p>
+<h3>progressive_render</h3>
+<p class="meta">A Boolean. Default is <code>false</code>.</p>
+<p>If this option is set to <code>true</code> only the visible (open nodes) parts of the returned JSON are converted to DOM nodes, any hidden parts are saved away and parsed ondemand (when a node becomes visible). This is useful when you have a large nested tree which would result in a heavy DOM.</p>
+
+<p class="note"><strong>NOTE:</strong><br />If both <code>data</code> and <code>ajax</code> are set the initial tree is rendered from the <code>data</code> string. When opening a closed node (that has no loaded children) an AJAX request is made.</p>
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using the data config option</h3>
+<div id="demo1" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"json_data" : {
+			"data" : [
+				{ 
+					"data" : "A node", 
+					"children" : [ "Child 1", "Child 2" ]
+				},
+				{ 
+					"attr" : { "id" : "li.node.id" }, 
+					"data" : { 
+						"title" : "Long format demo", 
+						"attr" : { "href" : "#" } 
+					} 
+				}
+			]
+		},
+		"plugins" : [ "themes", "json_data" ]
+	});
+});
+</script>
+
+<h3>Using the ajax config option</h3>
+<div id="demo2" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo2").jstree({ 
+		"json_data" : {
+			"ajax" : {
+				"url" : "_json_data.json",
+				"data" : function (n) { 
+					return { id : n.attr ? n.attr("id") : 0 }; 
+				}
+			}
+		},
+		"plugins" : [ "themes", "json_data" ]
+	});
+});
+</script>
+
+<h3>Using the progressive render config option</h3>
+<div id="demo3" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo3").jstree({ 
+		"json_data" : {
+			"data" : [
+				{ 
+					"data" : "A node", 
+					"children" : [ "Child 1", "Child 2" ]
+				},
+				{ 
+					"attr" : { "id" : "li.node.id" }, 
+					"data" : { 
+						"title" : "Long format demo", 
+						"attr" : { "href" : "#" } 
+					} 
+				}
+			],
+			"progressive_render" : true
+		},
+		"plugins" : [ "themes", "json_data" ]
+	});
+});
+</script>
+
+<h3>Using both the data &amp; ajax config options</h3>
+<div id="demo4" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo4").jstree({ 
+		"json_data" : {
+			"data" : [
+				{ 
+					"data" : "A node", 
+					"state" : "closed"
+				},
+				{ 
+					"attr" : { "id" : "li.node.id" }, 
+					"data" : { 
+						"title" : "Long format demo", 
+						"attr" : { "href" : "#" } 
+					} 
+				}
+			],
+			"ajax" : { "url" : "_json_data.json" }
+		},
+		"plugins" : [ "themes", "json_data" ]
+	});
+});
+</script>
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+<p>Both dummy functions - <code>_is_loaded</code> and <code>load_node</code> are overwritten.</p>
+<h3 id="load_node_json">.load_node_json ( node , success_callback , error_callback )</h3>
+<p>This function is called instead of <code>load_node</code>.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want loaded. Use <code>-1</code> for root nodes.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>success_callback</strong>
+		<p>A function to be executed once the node is loaded successfully - used internally. You should wait for the <code>load_node</code> event.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>error_callback</strong>
+		<p>A function to be executed if the node is not loaded due to an error - used internally. You should wait for the <code>load_node</code> event.</p>
+	</li>
+</ul>
+<h3 id="_parse_json">._parse_json ( data , is_callback )</h3>
+<p>This function converts JSON nodes to the DOM structure required by jstree. Returns a jQuery object.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a tree node in the JSON format described above, or an array of such JSON nodes, may also be a string.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>is_callback</strong>
+		<p>Specifies if the function is called recursively - used ONLY internally.</p>
+	</li>
+</ul>
+<h3 id="get_json">.get_json ( node , li_attr , a_attr )</h3>
+<p>This function returns an array of tree nodes converted back to JSON.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want returned. Use <code>-1</code> or omit to get the whole tree.</p>
+	</li>
+	<li>
+		<code class="tp">array</code> <strong>li_attr</strong>
+		<p>The attributes to collect from the <code>LI</code> node. Defaults to <code>[ "id" , "class" ]</p>
+	</li>
+	<li>
+		<code class="tp">array</code> <strong>a_attr</strong>
+		<p>The attributes to collect from the <code>A</code> node. Defaults to <code>[ ]</p>
+	</li>
+	<li>
+		<code class="tp">boolean</code> <strong>is_callback</strong>
+		<p>Used internally.</p>
+	</li>
+</ul>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/languages.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/languages.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/languages.html	(revision 1516)
@@ -0,0 +1,138 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - languages documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - languages plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>languages</code> plugin enables multilanguage trees. This means that each node has a specified number of titles - each in a different "language". Only one language set is visible at any given time. This is useful for maintaining the same structure in many languages (hence the name of the plugin)</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<p>Expects an array of language codes. Each of the items is used as a CSS class name, so make sure you specify only valid CSS class name strings.  The first langauge will be visible onload. For example:</p>
+<p><code>[ "en", "de", "bg" ]</code></p>
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+<p>Check your data plugin documentation (<a href="html_data.html">html_data</a>, <a href="xml_data.html">xml_data</a>, <a href="json_data.html">json_data</a>) or take a close look at these examples for information on how to specify multilanguage nodes.</p>
+
+<h3>Using the languages plugin with HTML data</h3>
+<input type="button" class="button" value="en" id="en_1" style="float:left;" />
+<input type="button" class="button" value="bg" id="bg_1" style="float:left;" />
+<input type="button" class="button" value="rename_1" id="rename_1" style="float:left;" />
+<input type="button" class="button" value="rename_2" id="rename_2" style="" />
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#" class="en">Root node 1</a>
+			<a href="#" class="bg">ÐÐŸÑÐµÐœ 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#" class="en">Child node 1</a>
+					<a href="#" class="bg">ÐÐµÑÐµ 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#" class="en">Child node 2</a>
+					<a href="#" class="bg">ÐÐµÑÐµ 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#" class="en">Root node 2</a>
+			<a href="#" class="bg">ÐÐŸÑÐµÐœ 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#en_1, #bg_1").click(function () { 
+		$("#demo1").jstree("set_lang", this.value);
+	});
+	$("#rename_1").click(function () { 
+		$("#demo1").jstree("rename_node", "#phtml_1", "Rename visible lang");
+	});
+	$("#rename_2").click(function () { 
+		$("#demo1").jstree("rename_node", "#phtml_1", "Rename `bg`", "bg");
+	});
+	$("#demo1").jstree({ 
+		"languages" : [ "en", "bg" ],
+		"plugins" : [ "themes", "html_data", "languages"]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="set_lang">.set_lang ( lang )</h3>
+<p>Set the tree's visible language. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string <br />number</code> <strong>lang</strong>
+		<p>Either the language code string (as specified in the config) or an index from the config array.</p>
+	</li>
+</ul>
+<h3 id="get_lang">.get_lang ( )</h3>
+<p>Returns the name of the currently visible language.</p>
+
+<h3 id="get_text">.get_text ( node , lang )</h3>
+<p>Returns the title of a node. Overwrites the <a href="core.html#get_text">get_text function</a> from the core.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element whose title you need.</p>
+	</li>
+	<li>
+		<code class="tp">string</code> <strong>lang</strong>
+		<p>The language code string (as specified in the config) to get the title in. If you omit this - the currently visible language is used.</p>
+	</li>
+</ul>
+
+<h3 id="set_text">.set_text ( node , text , lang )</h3>
+<p>Sets the title of a node. Overwrites the <a href="core.html#set_text">set_text function</a> from the core. This is used internally - you should use <a href="core.html#rename_node">rename_node</a>. Since <code>rename_node</code> uses <code>set_text</code> internally you can pass a language string as a third parameter to rename_node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element whose title you want to change.</p>
+	</li>
+	<li>
+		<code class="tp">string</code> <strong>text</strong>
+		<p>The new title.</p>
+	</li>
+	<li>
+		<code class="tp">string</code> <strong>lang</strong>
+		<p>The language code string (as specified in the config) to get the title in. If you omit this - the currently visible language is used.</p>
+	</li>
+</ul>
+
+<h3 id="_load_css">._load_css ( )</h3>
+<p>used only internally to include the CSS necessary for the plugin onload.</p>
+
+<h3 id="create_node">.create_node ( obj , position , js , callback )</h3>
+<p>Overwrites the <a href="core.html#create_node">create_node</a> function from the core. To create a node with a few titles use an array for the <code>data</code> property of the <code>js</code> parameter:</p>
+<p><code>{ "data" : [ { "title" : "EN title", language : "en" }, { "title" : "BG Ð·Ð°Ð³Ð»Ð°Ð²ÐžÐµ", language : "bg" } ] }</code></p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/search.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/search.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/search.html	(revision 1516)
@@ -0,0 +1,114 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - Search documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - search plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>search</code> plugin enables searching for nodes whose title contains a given string, works on async trees too. All found nodes get the <code>jstree-search</code> class applied to their contained <code>a</code> nodes - you can use that class to style search results.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+
+<h3>case_insensitive</h3>
+<p class="meta">A boolean. Default is <code>false</code>.</p>
+<p>Whether to search in a case-insensitive manner or not.</p>
+
+<h3>ajax</h3>
+<p class="meta">An object (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>This object can be used to make a request to the server on each search - useful if you are using async trees. That way you can return an array of IDs that need to be loaded before the actual DOM search is performed (so that all the nodes that will match the search are loaded). For example if the user searches for "string", you get that on the server side, check the database and find out that there is a node containing that string. But the node is the child of some other node, etc - so in your response you must return the path to the node (without the node itself) as ids: <code>["#root_node","#child_node_3"]</code>. This means that jstree will load those two nodes before doing the client side search, ensuring that your node will be visible.</p>
+<p>The ajax config object is pretty much the same as the <a href="http://api.jquery.com/jQuery.ajax/">jQuery ajax settings object</a>.</p>
+<p>You can set the <code>data</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the search string as a paramater. Whatever you return in the function will be sent to the server as data.</p>
+<p>You can set the <code>url</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the search string as a paramater. Whatever you return in the function will be used as the URL of the ajax request.</p>
+<p>The <code>error</code> and <code>success</code> functions (if present) also fire in the context of the tree, and if you return a value in the <code>success</code> function it will be used as the array of IDs.</p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Searching nodes</h3>
+<p>Do not open the node - instead - just press the button.</p>
+<input type="button" class="button" value="Search" id="search" style="" />
+<div id="demo1" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#search").click(function () {
+		$("#demo1").jstree("search","TARGEt");
+	});
+	$("#demo1")
+		.jstree({ 
+			"json_data" : {
+				"data" : [
+					{ 
+						"attr" : { "id" : "root_node" },
+						"data" : "A closed node", 
+						"state" : "closed"
+					}
+				],
+				"ajax" : {
+					"url" : "_search_data.json",
+					"data" : function (n) { 
+						return { id : n.attr ? n.attr("id") : 0 }; 
+					}
+				}
+			},
+			"search" : {
+				"case_insensitive" : true,
+				"ajax" : {
+					"url" : "_search_result.json"
+				}
+			},
+			"plugins" : [ "themes", "json_data", "search" ]
+		})
+		.bind("search.jstree", function (e, data) {
+			alert("Found " + data.rslt.nodes.length + " nodes matching '" + data.rslt.str + "'.");
+		});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="search">.search ( str , skip_async )</h3>
+<p>Searches for nodes matching the supplied string. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>str</strong>
+		<p>The string to search for.</p>
+	</li>
+	<li>
+		<code class="tp">boolean</code> <strong>skip_async</strong>
+		<p>If set to <code>true</code> - skip the async search (if setup in the config). This is used mostly internally.</p>
+	</li>
+</ul>
+
+<h3 id="clear_search">.clear_search ( )</h3>
+<p>Clears the current search. This function is automatically called when doing a new search. Triggers an event.</p>
+
+<h3 id="_search_open">._search_open ( is_callback )</h3>
+<p>Used internally if async is setup in the config. This functions loads the nodes returned by the server one by one.</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/sort.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/sort.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/sort.html	(revision 1516)
@@ -0,0 +1,84 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - sort documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - sort plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>sort</code> enables jstree to automatically sort all nodes using a specified function. This means that when the user creates, renames or moves nodes around - they will automatically sort.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+
+<p>Expects a function. The functions receives two arguments - two nodes to be compared. Return <code>-1</code> or <code>1</code>. Default is: </p>
+<p><code>function (a, b) { return this.get_text(a) > this.get_text(b) ? 1 : -1; }</code></p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+<h3>Using the sort plugin</h3>
+<input type="button" class="button" value="rename" id="rename" style="" />
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#rename").click(function () { 
+		$("#demo1").jstree("rename");
+	});
+	$("#demo1").jstree({ 
+		"plugins" : [ "themes", "html_data", "ui", "crrm", "sort" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="sort">.sort ( node )</h3>
+<p>Sorts the children of the specified node - this function is called automatically.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element.</p>
+	</li>
+</ul>
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/syntax/!script.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/syntax/!script.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/syntax/!script.js	(revision 1516)
@@ -0,0 +1,2232 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
+ *
+ * @version
+ * 2.1.364 (October 15 2009)
+ * 
+ * @copyright
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
+ *
+ * @license
+ * This file is part of SyntaxHighlighter.
+ * 
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
+ */
+//
+// Begin anonymous function. This is used to contain local scope variables without polutting global scope.
+//
+if (!window.SyntaxHighlighter) var SyntaxHighlighter = function() { 
+
+// Shortcut object which will be assigned to the SyntaxHighlighter variable.
+// This is a shorthand for local reference in order to avoid long namespace 
+// references to SyntaxHighlighter.whatever...
+var sh = {
+	defaults : {
+		/** Additional CSS class names to be added to highlighter elements. */
+		'class-name' : '',
+		
+		/** First line number. */
+		'first-line' : 1,
+		
+		/**
+		 * Pads line numbers. Possible values are:
+		 *
+		 *   false - don't pad line numbers.
+		 *   true  - automaticaly pad numbers with minimum required number of leading zeroes.
+		 *   [int] - length up to which pad line numbers.
+		 */
+		'pad-line-numbers' : true,
+		
+		/** Lines to highlight. */
+		'highlight' : null,
+		
+		/** Enables or disables smart tabs. */
+		'smart-tabs' : true,
+		
+		/** Gets or sets tab size. */
+		'tab-size' : 4,
+		
+		/** Enables or disables gutter. */
+		'gutter' : true,
+		
+		/** Enables or disables toolbar. */
+		'toolbar' : true,
+		
+		/** Forces code view to be collapsed. */
+		'collapse' : false,
+		
+		/** Enables or disables automatic links. */
+		'auto-links' : true,
+		
+		/** Gets or sets light mode. Equavalent to turning off gutter and toolbar. */
+		'light' : false,
+		
+		/** Enables or disables automatic line wrapping. */
+		'wrap-lines' : true,
+		
+		'html-script' : false
+	},
+	
+	config : {
+		/** Enables use of <SCRIPT type="syntaxhighlighter" /> tags. */
+		useScriptTags : true,
+		
+		/** Path to the copy to clipboard SWF file. */
+		clipboardSwf : null,
+
+		/** Width of an item in the toolbar. */
+		toolbarItemWidth : 16,
+
+		/** Height of an item in the toolbar. */
+		toolbarItemHeight : 16,
+		
+		/** Blogger mode flag. */
+		bloggerMode : false,
+		
+		stripBrs : false,
+		
+		/** Name of the tag that SyntaxHighlighter will automatically look for. */
+		tagName : 'pre',
+		
+		strings : {
+			expandSource : 'show source',
+			viewSource : 'view source',
+			copyToClipboard : 'copy to clipboard',
+			copyToClipboardConfirmation : 'The code is in your clipboard now',
+			print : 'print',
+			help : '?',
+			alert: 'SyntaxHighlighter\n\n',
+			noBrush : 'Can\'t find brush for: ',
+			brushNotHtmlScript : 'Brush wasn\'t configured for html-script option: ',
+			
+			// this is populated by the build script
+			aboutDialog : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>About SyntaxHighlighter</title></head><body style="font-family:Geneva,Arial,Helvetica,sans-serif;background-color:#fff;color:#000;font-size:1em;text-align:center;"><div style="text-align:center;margin-top:3em;"><div style="font-size:xx-large;">SyntaxHighlighter</div><div style="font-size:.75em;margin-bottom:4em;"><div>version 2.1.364 (October 15 2009)</div><div><a href="http://alexgorbatchev.com" target="_blank" style="color:#0099FF;text-decoration:none;">http://alexgorbatchev.com</a></div><div>If you like this script, please <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2930402" style="color:#0099FF;text-decoration:none;">donate</a> to keep development active!</div></div><div>JavaScript code syntax highlighter.</div><div>Copyright 2004-2009 Alex Gorbatchev.</div></div></body></html>'
+		},
+
+		/** If true, output will show HTML produces instead. */
+		debug : false
+	},
+	
+	/** Internal 'global' variables. */
+	vars : {
+		discoveredBrushes : null,
+		spaceWidth : null,
+		printFrame : null,
+		highlighters : {}
+	},
+	
+	/** This object is populated by user included external brush files. */
+	brushes : {},
+
+	/** Common regular expressions. */
+	regexLib : {
+		multiLineCComments			: /\/\*[\s\S]*?\*\//gm,
+		singleLineCComments			: /\/\/.*$/gm,
+		singleLinePerlComments		: /#.*$/gm,
+		doubleQuotedString			: /"([^\\"\n]|\\.)*"/g,
+		singleQuotedString			: /'([^\\'\n]|\\.)*'/g,
+		multiLineDoubleQuotedString	: /"([^\\"]|\\.)*"/g,
+		multiLineSingleQuotedString	: /'([^\\']|\\.)*'/g,
+		xmlComments					: /(&lt;|<)!--[\s\S]*?--(&gt;|>)/gm,
+		url							: /&lt;\w+:\/\/[\w-.\/?%&=@:;]*&gt;|\w+:\/\/[\w-.\/?%&=@:;]*/g,
+		
+		/** <?= ?> tags. */
+		phpScriptTags 				: { left: /(&lt;|<)\?=?/g, right: /\?(&gt;|>)/g },
+		
+		/** <%= %> tags. */
+		aspScriptTags				: { left: /(&lt;|<)%=?/g, right: /%(&gt;|>)/g },
+		
+		/** <script></script> tags. */
+		scriptScriptTags			: { left: /(&lt;|<)\s*script.*?(&gt;|>)/gi, right: /(&lt;|<)\/\s*script\s*(&gt;|>)/gi }
+	},
+
+	toolbar : {
+		/**
+		 * Creates new toolbar for a highlighter.
+		 * @param {Highlighter} highlighter    Target highlighter.
+		 */
+		create : function(highlighter)
+		{
+			var div = document.createElement('DIV'),
+				items = sh.toolbar.items
+				;
+			
+			div.className = 'toolbar';
+			
+			for (var name in items) 
+			{
+				var constructor = items[name],
+					command = new constructor(highlighter),
+					element = command.create()
+					;
+				
+				highlighter.toolbarCommands[name] = command;
+				
+				if (element == null)
+					continue;
+					
+				if (typeof(element) == 'string')
+					element = sh.toolbar.createButton(element, highlighter.id, name);
+				
+				element.className += 'item ' + name;
+				div.appendChild(element);
+			}
+			
+			return div;
+		},
+		
+		/**
+		 * Create a standard anchor button for the toolbar.
+		 * @param {String} label			Label text to display.
+		 * @param {String} highlighterId	Highlighter ID that this button would belong to.
+		 * @param {String} commandName		Command name that would be executed.
+		 * @return {Element}				Returns an 'A' element.
+		 */
+		createButton : function(label, highlighterId, commandName)
+		{
+			var a = document.createElement('a'),
+				style = a.style,
+				config = sh.config,
+				width = config.toolbarItemWidth,
+				height = config.toolbarItemHeight
+				;
+			
+			a.href = '#' + commandName;
+			a.title = label;
+			a.highlighterId = highlighterId;
+			a.commandName = commandName;
+			a.innerHTML = label;
+			
+			if (isNaN(width) == false)
+				style.width = width + 'px';
+
+			if (isNaN(height) == false)
+				style.height = height + 'px';
+			
+			a.onclick = function(e)
+			{
+				try
+				{
+					sh.toolbar.executeCommand(
+						this, 
+						e || window.event,
+						this.highlighterId, 
+						this.commandName
+					);
+				}
+				catch(e)
+				{
+					sh.utils.alert(e.message);
+				}
+				
+				return false;
+			};
+			
+			return a;
+		},
+		
+		/**
+		 * Executes a toolbar command.
+		 * @param {Element}		sender  		Sender element.
+		 * @param {MouseEvent}	event			Original mouse event object.
+		 * @param {String}		highlighterId	Highlighter DIV element ID.
+		 * @param {String}		commandName		Name of the command to execute.
+		 * @return {Object} Passes out return value from command execution.
+		 */
+		executeCommand : function(sender, event, highlighterId, commandName, args)
+		{
+			var highlighter = sh.vars.highlighters[highlighterId], 
+				command
+				;
+
+			if (highlighter == null || (command = highlighter.toolbarCommands[commandName]) == null) 
+				return null;
+
+			return command.execute(sender, event, args);
+		},
+		
+		/** Collection of toolbar items. */
+		items : {
+			expandSource : function(highlighter)
+			{
+				this.create = function()
+				{
+					if (highlighter.getParam('collapse') != true)
+						return;
+					
+					return sh.config.strings.expandSource;
+				};
+			
+				this.execute = function(sender, event, args)
+				{
+					var div = highlighter.div;
+					
+					sender.parentNode.removeChild(sender);
+					div.className = div.className.replace('collapsed', '');
+				};
+			},
+		
+			/** 
+			 * Command to open a new window and display the original unformatted source code inside.
+			 */
+			viewSource : function(highlighter)
+			{
+				this.create = function()
+				{
+					return sh.config.strings.viewSource;
+				};
+				
+				this.execute = function(sender, event, args)
+				{
+					var code = sh.utils.fixInputString(highlighter.originalCode).replace(/</g, '&lt;'),
+						wnd = sh.utils.popup('', '_blank', 750, 400, 'location=0, resizable=1, menubar=0, scrollbars=1')
+						;
+					
+					code = sh.utils.unindent(code);
+					
+					wnd.document.write('<pre>' + code + '</pre>');
+					wnd.document.close();
+				};
+			},
+			
+			/**
+			 * Command to copy the original source code in to the clipboard.
+			 * Uses Flash method if <code>clipboardSwf</code> is configured.
+			 */
+			copyToClipboard : function(highlighter)
+			{
+				var flashDiv, flashSwf,
+					highlighterId = highlighter.id
+					;
+				
+				this.create = function()
+				{
+					var config = sh.config;
+					
+					// disable functionality if running locally
+					if (config.clipboardSwf == null)
+						return null;
+
+					function params(list)
+					{
+						var result = '';
+						
+						for (var name in list)
+							result += "<param name='" + name + "' value='" + list[name] + "'/>";
+							
+						return result;
+					};
+					
+					function attributes(list)
+					{
+						var result = '';
+						
+						for (var name in list)
+							result += " " + name + "='" + list[name] + "'";
+							
+						return result;
+					};
+					
+					var args1 = {
+							width				: config.toolbarItemWidth,
+							height				: config.toolbarItemHeight,
+							id					: highlighterId + '_clipboard',
+							type				: 'application/x-shockwave-flash',
+							title				: sh.config.strings.copyToClipboard
+						},
+						
+						// these arguments are used in IE's <param /> collection
+						args2 = {
+							allowScriptAccess	: 'always',
+							wmode				: 'transparent',
+							flashVars			: 'highlighterId=' + highlighterId,
+							menu				: 'false'
+						},
+						swf = config.clipboardSwf,
+						html
+					;
+
+					if (/msie/i.test(navigator.userAgent))
+					{
+						html = '<object'
+							+ attributes({
+								classid : 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
+								codebase : 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'
+							})
+							+ attributes(args1)
+							+ '>'
+							+ params(args2)
+							+ params({ movie : swf })
+							+ '</object>'
+						;
+					}
+					else
+					{
+						html = '<embed'
+							+ attributes(args1)
+							+ attributes(args2)
+							+ attributes({ src : swf })
+							+ '/>'
+						;
+					}
+
+					flashDiv = document.createElement('div');
+					flashDiv.innerHTML = html;
+					
+					return flashDiv;
+				};
+				
+				this.execute = function(sender, event, args)
+				{
+					var command = args.command;
+
+					switch (command)
+					{
+						case 'get':
+							var code = sh.utils.unindent(
+								sh.utils.fixInputString(highlighter.originalCode)
+									.replace(/&lt;/g, '<')
+									.replace(/&gt;/g, '>')
+									.replace(/&amp;/g, '&')
+								);
+
+							if(window.clipboardData)
+								// will fall through to the confirmation because there isn't a break
+								window.clipboardData.setData('text', code);
+							else
+								return sh.utils.unindent(code);
+							
+						case 'ok':
+							sh.utils.alert(sh.config.strings.copyToClipboardConfirmation);
+							break;
+							
+						case 'error':
+							sh.utils.alert(args.message);
+							break;
+					}
+				};
+			},
+			
+			/** Command to print the colored source code. */
+			printSource : function(highlighter)
+			{
+				this.create = function()
+				{
+					return sh.config.strings.print;
+				};
+				
+				this.execute = function(sender, event, args)
+				{
+					var iframe = document.createElement('IFRAME'),
+						doc = null
+						;
+					
+					// make sure there is never more than one hidden iframe created by SH
+					if (sh.vars.printFrame != null)
+						document.body.removeChild(sh.vars.printFrame);
+					
+					sh.vars.printFrame = iframe;
+					
+					// this hides the iframe
+					iframe.style.cssText = 'position:absolute;width:0px;height:0px;left:-500px;top:-500px;';
+				
+					document.body.appendChild(iframe);
+					doc = iframe.contentWindow.document;
+					
+					copyStyles(doc, window.document);
+					doc.write('<div class="' + highlighter.div.className.replace('collapsed', '') + ' printing">' + highlighter.div.innerHTML + '</div>');
+					doc.close();
+					
+					iframe.contentWindow.focus();
+					iframe.contentWindow.print();
+					
+					function copyStyles(destDoc, sourceDoc)
+					{
+						var links = sourceDoc.getElementsByTagName('link');
+					
+						for(var i = 0; i < links.length; i++)
+							if(links[i].rel.toLowerCase() == 'stylesheet' && /shCore\.css$/.test(links[i].href))
+								destDoc.write('<link type="text/css" rel="stylesheet" href="' + links[i].href + '"></link>');
+					};
+				};
+			},
+
+			/** Command to display the about dialog window. */
+			about : function(highlighter)
+			{
+				this.create = function()
+				{	
+					return sh.config.strings.help;
+				};
+
+				this.execute = function(sender, event)
+				{	
+					var wnd = sh.utils.popup('', '_blank', 500, 250, 'scrollbars=0'),
+						doc = wnd.document
+						;
+					
+					doc.write(sh.config.strings.aboutDialog);
+					doc.close();
+					wnd.focus();
+				};
+			}
+		}
+	},
+
+	utils : {
+		/**
+		 * Finds an index of element in the array.
+		 * @ignore
+		 * @param {Object} searchElement
+		 * @param {Number} fromIndex
+		 * @return {Number} Returns index of element if found; -1 otherwise.
+		 */
+		indexOf : function(array, searchElement, fromIndex)
+		{
+			fromIndex = Math.max(fromIndex || 0, 0);
+
+			for (var i = fromIndex; i < array.length; i++)
+				if(array[i] == searchElement)
+					return i;
+
+			return -1;
+		},
+		
+		/**
+		 * Generates a unique element ID.
+		 */
+		guid : function(prefix)
+		{
+			return prefix + Math.round(Math.random() * 1000000).toString();
+		},
+		
+		/**
+		 * Merges two objects. Values from obj2 override values in obj1.
+		 * Function is NOT recursive and works only for one dimensional objects.
+		 * @param {Object} obj1 First object.
+		 * @param {Object} obj2 Second object.
+		 * @return {Object} Returns combination of both objects.
+		 */
+		merge: function(obj1, obj2)
+		{
+			var result = {}, name;
+
+			for (name in obj1) 
+				result[name] = obj1[name];
+			
+			for (name in obj2) 
+				result[name] = obj2[name];
+				
+			return result;
+		},
+		
+		/**
+		 * Attempts to convert string to boolean.
+		 * @param {String} value Input string.
+		 * @return {Boolean} Returns true if input was "true", false if input was "false" and value otherwise.
+		 */
+		toBoolean: function(value)
+		{
+			switch (value)
+			{
+				case "true":
+					return true;
+					
+				case "false":
+					return false;
+			}
+			
+			return value;
+		},
+		
+		/**
+		 * Opens up a centered popup window.
+		 * @param {String} url		URL to open in the window.
+		 * @param {String} name		Popup name.
+		 * @param {int} width		Popup width.
+		 * @param {int} height		Popup height.
+		 * @param {String} options	window.open() options.
+		 * @return {Window}			Returns window instance.
+		 */
+		popup: function(url, name, width, height, options)
+		{
+			var x = (screen.width - width) / 2,
+				y = (screen.height - height) / 2
+				;
+				
+			options +=	', left=' + x + 
+						', top=' + y +
+						', width=' + width +
+						', height=' + height
+				;
+			options = options.replace(/^,/, '');
+
+			var win = window.open(url, name, options);
+			win.focus();
+			return win;
+		},
+		
+		/**
+		 * Adds event handler to the target object.
+		 * @param {Object} obj		Target object.
+		 * @param {String} type		Name of the event.
+		 * @param {Function} func	Handling function.
+		 */
+		addEvent: function(obj, type, func)
+		{
+			if (obj.attachEvent) 
+			{
+				obj['e' + type + func] = func;
+				obj[type + func] = function()
+				{
+					obj['e' + type + func](window.event);
+				}
+				obj.attachEvent('on' + type, obj[type + func]);
+			}
+			else 
+			{
+				obj.addEventListener(type, func, false);
+			}
+		},
+		
+		/**
+		 * Displays an alert.
+		 * @param {String} str String to display.
+		 */
+		alert: function(str)
+		{
+			alert(sh.config.strings.alert + str)
+		},
+		
+		/**
+		 * Finds a brush by its alias.
+		 *
+		 * @param {String} alias	Brush alias.
+		 * @param {Boolean} alert	Suppresses the alert if false.
+		 * @return {Brush}			Returns bursh constructor if found, null otherwise.
+		 */
+		findBrush: function(alias, alert)
+		{
+			var brushes = sh.vars.discoveredBrushes,
+				result = null
+				;
+			
+			if (brushes == null) 
+			{
+				brushes = {};
+				
+				// Find all brushes
+				for (var brush in sh.brushes) 
+				{
+					var aliases = sh.brushes[brush].aliases;
+					
+					if (aliases == null) 
+						continue;
+					
+					// keep the brush name
+					sh.brushes[brush].name = brush.toLowerCase();
+					
+					for (var i = 0; i < aliases.length; i++) 
+						brushes[aliases[i]] = brush;
+				}
+				
+				sh.vars.discoveredBrushes = brushes;
+			}
+			
+			result = sh.brushes[brushes[alias]];
+
+			if (result == null && alert != false)
+				sh.utils.alert(sh.config.strings.noBrush + alias);
+			
+			return result;
+		},
+		
+		/**
+		 * Executes a callback on each line and replaces each line with result from the callback.
+		 * @param {Object} str			Input string.
+		 * @param {Object} callback		Callback function taking one string argument and returning a string.
+		 */
+		eachLine: function(str, callback)
+		{
+			var lines = str.split('\n');
+			
+			for (var i = 0; i < lines.length; i++)
+				lines[i] = callback(lines[i]);
+				
+			return lines.join('\n');
+		},
+		
+		/**
+		 * This is a special trim which only removes first and last empty lines
+		 * and doesn't affect valid leading space on the first line.
+		 * 
+		 * @param {String} str   Input string
+		 * @return {String}      Returns string without empty first and last lines.
+		 */
+		trimFirstAndLastLines: function(str)
+		{
+			return str.replace(/^[ ]*[\n]+|[\n]*[ ]*$/g, '');
+		},
+		
+		/**
+		 * Parses key/value pairs into hash object.
+		 * 
+		 * Understands the following formats:
+		 * - name: word;
+		 * - name: [word, word];
+		 * - name: "string";
+		 * - name: 'string';
+		 * 
+		 * For example:
+		 *   name1: value; name2: [value, value]; name3: 'value'
+		 *   
+		 * @param {String} str    Input string.
+		 * @return {Object}       Returns deserialized object.
+		 */
+		parseParams: function(str)
+		{
+			var match, 
+				result = {},
+				arrayRegex = new XRegExp("^\\[(?<values>(.*?))\\]$"),
+				regex = new XRegExp(
+					"(?<name>[\\w-]+)" +
+					"\\s*:\\s*" +
+					"(?<value>" +
+						"[\\w-%#]+|" +		// word
+						"\\[.*?\\]|" +		// [] array
+						'".*?"|' +			// "" string
+						"'.*?'" +			// '' string
+					")\\s*;?",
+					"g"
+				)
+				;
+
+			while ((match = regex.exec(str)) != null) 
+			{
+				var value = match.value
+					.replace(/^['"]|['"]$/g, '') // strip quotes from end of strings
+					;
+				
+				// try to parse array value
+				if (value != null && arrayRegex.test(value))
+				{
+					var m = arrayRegex.exec(value);
+					value = m.values.length > 0 ? m.values.split(/\s*,\s*/) : [];
+				}
+				
+				result[match.name] = value;
+			}
+			
+			return result;
+		},
+	
+		/**
+		 * Wraps each line of the string into <code/> tag with given style applied to it.
+		 * 
+		 * @param {String} str   Input string.
+		 * @param {String} css   Style name to apply to the string.
+		 * @return {String}      Returns input string with each line surrounded by <span/> tag.
+		 */
+		decorate: function(str, css)
+		{
+			if (str == null || str.length == 0 || str == '\n') 
+				return str;
+	
+			str = str.replace(/</g, '&lt;');
+	
+			// Replace two or more sequential spaces with &nbsp; leaving last space untouched.
+			str = str.replace(/ {2,}/g, function(m)
+			{
+				var spaces = '';
+				
+				for (var i = 0; i < m.length - 1; i++)
+					spaces += '&nbsp;';
+				
+				return spaces + ' ';
+			});
+
+			// Split each line and apply <span class="...">...</span> to them so that
+			// leading spaces aren't included.
+			if (css != null) 
+				str = sh.utils.eachLine(str, function(line)
+				{
+					if (line.length == 0) 
+						return '';
+					
+					var spaces = '';
+					
+					line = line.replace(/^(&nbsp;| )+/, function(s)
+					{
+						spaces = s;
+						return '';
+					});
+					
+					if (line.length == 0) 
+						return spaces;
+					
+					return spaces + '<code class="' + css + '">' + line + '</code>';
+				});
+
+			return str;
+		},
+	
+		/**
+		 * Pads number with zeros until it's length is the same as given length.
+		 * 
+		 * @param {Number} number	Number to pad.
+		 * @param {Number} length	Max string length with.
+		 * @return {String}			Returns a string padded with proper amount of '0'.
+		 */
+		padNumber : function(number, length)
+		{
+			var result = number.toString();
+			
+			while (result.length < length)
+				result = '0' + result;
+			
+			return result;
+		},
+		
+		/**
+		 * Measures width of a single space character.
+		 * @return {Number} Returns width of a single space character.
+		 */
+		measureSpace : function()
+		{
+			var container = document.createElement('div'),
+				span,
+				result = 0,
+				body = document.body,
+				id = sh.utils.guid('measureSpace'),
+				
+				// variable names will be compressed, so it's better than a plain string
+				divOpen = '<div class="',
+				closeDiv = '</div>',
+				closeSpan = '</span>'
+				;
+
+			// we have to duplicate highlighter nested structure in order to get an acurate space measurment
+			container.innerHTML = 
+				divOpen + 'syntaxhighlighter">' 
+					+ divOpen + 'lines">' 
+						+ divOpen + 'line">' 
+							+ divOpen + 'content'
+								+ '"><span class="block"><span id="' + id + '">&nbsp;' + closeSpan + closeSpan
+							+ closeDiv 
+						+ closeDiv 
+					+ closeDiv 
+				+ closeDiv
+				;
+			
+			body.appendChild(container);
+			span = document.getElementById(id);
+			
+			if (/opera/i.test(navigator.userAgent))
+			{
+				var style = window.getComputedStyle(span, null);
+				result = parseInt(style.getPropertyValue("width"));
+			}
+			else
+			{
+				result = span.offsetWidth;
+			}
+
+			body.removeChild(container);
+
+			return result;
+		},
+		
+		/**
+		 * Replaces tabs with spaces.
+		 * 
+		 * @param {String} code		Source code.
+		 * @param {Number} tabSize	Size of the tab.
+		 * @return {String}			Returns code with all tabs replaces by spaces.
+		 */
+		processTabs : function(code, tabSize)
+		{
+			var tab = '';
+			
+			for (var i = 0; i < tabSize; i++)
+				tab += ' ';
+
+			return code.replace(/\t/g, tab);
+		},
+		
+		/**
+		 * Replaces tabs with smart spaces.
+		 * 
+		 * @param {String} code    Code to fix the tabs in.
+		 * @param {Number} tabSize Number of spaces in a column.
+		 * @return {String}        Returns code with all tabs replaces with roper amount of spaces.
+		 */
+		processSmartTabs : function(code, tabSize)
+		{
+			var lines = code.split('\n'),
+				tab = '\t',
+				spaces = ''
+				;
+			
+			// Create a string with 1000 spaces to copy spaces from... 
+			// It's assumed that there would be no indentation longer than that.
+			for (var i = 0; i < 50; i++) 
+				spaces += '                    '; // 20 spaces * 50
+					
+			// This function inserts specified amount of spaces in the string
+			// where a tab is while removing that given tab.
+			function insertSpaces(line, pos, count)
+			{
+				return line.substr(0, pos)
+					+ spaces.substr(0, count)
+					+ line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab
+					;
+			};
+	
+			// Go through all the lines and do the 'smart tabs' magic.
+			code = sh.utils.eachLine(code, function(line)
+			{
+				if (line.indexOf(tab) == -1) 
+					return line;
+				
+				var pos = 0;
+				
+				while ((pos = line.indexOf(tab)) != -1) 
+				{
+					// This is pretty much all there is to the 'smart tabs' logic.
+					// Based on the position within the line and size of a tab,
+					// calculate the amount of spaces we need to insert.
+					var spaces = tabSize - pos % tabSize;
+					line = insertSpaces(line, pos, spaces);
+				}
+				
+				return line;
+			});
+			
+			return code;
+		},
+		
+		/**
+		 * Performs various string fixes based on configuration.
+		 */
+		fixInputString : function(str)
+		{
+			var br = /<br\s*\/?>|&lt;br\s*\/?&gt;/gi;
+			
+			if (sh.config.bloggerMode == true)
+				str = str.replace(br, '\n');
+
+			if (sh.config.stripBrs == true)
+				str = str.replace(br, '');
+				
+			return str;
+		},
+		
+		/**
+		 * Removes all white space at the begining and end of a string.
+		 * 
+		 * @param {String} str   String to trim.
+		 * @return {String}      Returns string without leading and following white space characters.
+		 */
+		trim: function(str)
+		{
+			return str.replace(/^\s+|\s+$/g, '');
+		},
+		
+		/**
+		 * Unindents a block of text by the lowest common indent amount.
+		 * @param {String} str   Text to unindent.
+		 * @return {String}      Returns unindented text block.
+		 */
+		unindent: function(str)
+		{
+			var lines = sh.utils.fixInputString(str).split('\n'),
+				indents = new Array(),
+				regex = /^\s*/,
+				min = 1000
+				;
+			
+			// go through every line and check for common number of indents
+			for (var i = 0; i < lines.length && min > 0; i++) 
+			{
+				var line = lines[i];
+				
+				if (sh.utils.trim(line).length == 0) 
+					continue;
+				
+				var matches = regex.exec(line);
+				
+				// In the event that just one line doesn't have leading white space
+				// we can't unindent anything, so bail completely.
+				if (matches == null) 
+					return str;
+					
+				min = Math.min(matches[0].length, min);
+			}
+			
+			// trim minimum common number of white space from the begining of every line
+			if (min > 0) 
+				for (var i = 0; i < lines.length; i++) 
+					lines[i] = lines[i].substr(min);
+			
+			return lines.join('\n');
+		},
+	
+		/**
+		 * Callback method for Array.sort() which sorts matches by
+		 * index position and then by length.
+		 * 
+		 * @param {Match} m1	Left object.
+		 * @param {Match} m2    Right object.
+		 * @return {Number}     Returns -1, 0 or -1 as a comparison result.
+		 */
+		matchesSortCallback: function(m1, m2)
+		{
+			// sort matches by index first
+			if(m1.index < m2.index)
+				return -1;
+			else if(m1.index > m2.index)
+				return 1;
+			else
+			{
+				// if index is the same, sort by length
+				if(m1.length < m2.length)
+					return -1;
+				else if(m1.length > m2.length)
+					return 1;
+			}
+			
+			return 0;
+		},
+	
+		/**
+		 * Executes given regular expression on provided code and returns all
+		 * matches that are found.
+		 * 
+		 * @param {String} code    Code to execute regular expression on.
+		 * @param {Object} regex   Regular expression item info from <code>regexList</code> collection.
+		 * @return {Array}         Returns a list of Match objects.
+		 */ 
+		getMatches: function(code, regexInfo)
+		{
+			function defaultAdd(match, regexInfo)
+			{
+				return [new sh.Match(match[0], match.index, regexInfo.css)];
+			};
+			
+			var index = 0,
+				match = null,
+				result = [],
+				func = regexInfo.func ? regexInfo.func : defaultAdd
+				;
+			
+			while((match = regexInfo.regex.exec(code)) != null)
+				result = result.concat(func(match, regexInfo));
+				
+			return result;
+		},
+		
+		processUrls: function(code)
+		{
+			var lt = '&lt;',
+				gt = '&gt;'
+				;
+			
+			return code.replace(sh.regexLib.url, function(m)
+			{
+				var suffix = '', prefix = '';
+				
+				// We include &lt; and &gt; in the URL for the common cases like <http://google.com>
+				// The problem is that they get transformed into &lt;http://google.com&gt;
+				// Where as &gt; easily looks like part of the URL string.
+				
+				if (m.indexOf(lt) == 0)
+				{
+					prefix = lt;
+					m = m.substring(lt.length);
+				}
+
+				if (m.indexOf(gt) == m.length - gt.length)
+				{
+					m = m.substring(0, m.length - gt.length);
+					suffix = gt;
+				}
+				
+				return prefix + '<a href="' + m + '">' + m + '</a>' + suffix;
+			});
+		},
+		
+		/**
+		 * Finds all <SCRIPT TYPE="syntaxhighlighter" /> elements.
+		 * @return {Array} Returns array of all found SyntaxHighlighter tags.
+		 */
+		getSyntaxHighlighterScriptTags: function()
+		{
+			var tags = document.getElementsByTagName('script'),
+				result = []
+				;
+			
+			for (var i = 0; i < tags.length; i++)
+				if (tags[i].type == 'syntaxhighlighter')
+					result.push(tags[i]);
+					
+			return result;
+		},
+		
+		/**
+		 * Strips <![CDATA[]]> from <SCRIPT /> content because it should be used
+		 * there in most cases for XHTML compliance.
+		 * @param {String} original	Input code.
+		 * @return {String} Returns code without leading <![CDATA[]]> tags.
+		 */
+		stripCData: function(original)
+		{
+			var left = '<![CDATA[',
+				right = ']]>',
+				// for some reason IE inserts some leading blanks here
+				copy = sh.utils.trim(original),
+				changed = false
+				;
+			
+			if (copy.indexOf(left) == 0)
+			{
+				copy = copy.substring(left.length);
+				changed = true;
+			}
+			
+			if (copy.indexOf(right) == copy.length - right.length)
+			{
+				copy = copy.substring(0, copy.length - right.length);
+				changed = true;
+			}
+			
+			return changed ? copy : original;
+		}
+	}, // end of utils
+	
+	/**
+	 * Shorthand to highlight all elements on the page that are marked as 
+	 * SyntaxHighlighter source code.
+	 * 
+	 * @param {Object} globalParams		Optional parameters which override element's 
+	 * 									parameters. Only used if element is specified.
+	 * 
+	 * @param {Object} element	Optional element to highlight. If none is
+	 * 							provided, all elements in the current document 
+	 * 							are highlighted.
+	 */ 
+	highlight : function(globalParams, element)
+	{
+		function toArray(source)
+		{
+			var result = [];
+			
+			for (var i = 0; i < source.length; i++) 
+				result.push(source[i]);
+				
+			return result;
+		};
+		
+		var elements = element ? [element] : toArray(document.getElementsByTagName(sh.config.tagName)), 
+			propertyName = 'innerHTML', 
+			highlighter = null,
+			conf = sh.config
+			;
+
+		// support for <SCRIPT TYPE="syntaxhighlighter" /> feature
+		if (conf.useScriptTags)
+			elements = elements.concat(sh.utils.getSyntaxHighlighterScriptTags());
+
+		if (elements.length === 0) 
+			return;
+	
+		for (var i = 0; i < elements.length; i++) 
+		{
+			var target = elements[i], 
+				params = sh.utils.parseParams(target.className),
+				brushName,
+				code,
+				result
+				;
+
+			// local params take precedence over globals
+			params = sh.utils.merge(globalParams, params);
+			brushName = params['brush'];
+
+			if (brushName == null)
+				continue;
+
+			// Instantiate a brush
+			if (params['html-script'] == 'true' || sh.defaults['html-script'] == true) 
+			{
+				highlighter = new sh.HtmlScript(brushName);
+				brushName = 'htmlscript';
+			}
+			else
+			{
+				var brush = sh.utils.findBrush(brushName);
+				
+				if (brush)
+				{
+					brushName = brush.name;
+					highlighter = new brush();
+				}
+				else
+				{
+					continue;
+				}
+			}
+			
+			code = target[propertyName];
+			
+			// remove CDATA from <SCRIPT/> tags if it's present
+			if (conf.useScriptTags)
+				code = sh.utils.stripCData(code);
+			
+			params['brush-name'] = brushName;
+			highlighter.highlight(code, params);
+			
+			result = highlighter.div;
+			
+			if (sh.config.debug) 
+			{
+				result = document.createElement('textarea');
+				result.value = highlighter.div.innerHTML;
+				result.style.width = '70em';
+				result.style.height = '30em';
+			}
+			
+			target.parentNode.replaceChild(result, target);
+		}
+	},
+
+	/**
+	 * Main entry point for the SyntaxHighlighter.
+	 * @param {Object} params Optional params to apply to all highlighted elements.
+	 */
+	all : function(params)
+	{
+		sh.utils.addEvent(
+			window,
+			'load',
+			function() { sh.highlight(params); }
+		);
+	}
+}; // end of sh
+
+/**
+ * Match object.
+ */
+sh.Match = function(value, index, css)
+{
+	this.value = value;
+	this.index = index;
+	this.length = value.length;
+	this.css = css;
+	this.brushName = null;
+};
+
+sh.Match.prototype.toString = function()
+{
+	return this.value;
+};
+
+/**
+ * Simulates HTML code with a scripting language embedded.
+ * 
+ * @param {String} scriptBrushName Brush name of the scripting language.
+ */
+sh.HtmlScript = function(scriptBrushName)
+{
+	var brushClass = sh.utils.findBrush(scriptBrushName),
+		scriptBrush,
+		xmlBrush = new sh.brushes.Xml(),
+		bracketsRegex = null
+		;
+
+	if (brushClass == null)
+		return;
+	
+	scriptBrush = new brushClass();
+	this.xmlBrush = xmlBrush;
+	
+	if (scriptBrush.htmlScript == null)
+	{
+		sh.utils.alert(sh.config.strings.brushNotHtmlScript + scriptBrushName);
+		return;
+	}
+	
+	xmlBrush.regexList.push(
+		{ regex: scriptBrush.htmlScript.code, func: process }
+	);
+	
+	function offsetMatches(matches, offset)
+	{
+		for (var j = 0; j < matches.length; j++) 
+			matches[j].index += offset;
+	}
+	
+	function process(match, info)
+	{
+		var code = match.code,
+			matches = [],
+			regexList = scriptBrush.regexList,
+			offset = match.index + match.left.length,
+			htmlScript = scriptBrush.htmlScript,
+			result
+			;
+
+		// add all matches from the code
+		for (var i = 0; i < regexList.length; i++)
+		{
+			result = sh.utils.getMatches(code, regexList[i]);
+			offsetMatches(result, offset);
+			matches = matches.concat(result);
+		}
+		
+		// add left script bracket
+		if (htmlScript.left != null && match.left != null)
+		{
+			result = sh.utils.getMatches(match.left, htmlScript.left);
+			offsetMatches(result, match.index);
+			matches = matches.concat(result);
+		}
+		
+		// add right script bracket
+		if (htmlScript.right != null && match.right != null)
+		{
+			result = sh.utils.getMatches(match.right, htmlScript.right);
+			offsetMatches(result, match.index + match[0].lastIndexOf(match.right));
+			matches = matches.concat(result);
+		}
+		
+		for (var j = 0; j < matches.length; j++)
+			matches[j].brushName = brushClass.name;
+
+		return matches;
+	}
+};
+
+sh.HtmlScript.prototype.highlight = function(code, params)
+{
+	this.xmlBrush.highlight(code, params);
+	this.div = this.xmlBrush.div;
+}
+
+/**
+ * Main Highlither class.
+ * @constructor
+ */
+sh.Highlighter = function()
+{
+};
+
+sh.Highlighter.prototype = {
+	/**
+	 * Returns value of the parameter passed to the highlighter.
+	 * @param {String} name				Name of the parameter.
+	 * @param {Object} defaultValue		Default value.
+	 * @return {Object}					Returns found value or default value otherwise.
+	 */
+	getParam : function(name, defaultValue)
+	{
+		var result = this.params[name];
+		return sh.utils.toBoolean(result == null ? defaultValue : result);
+	},
+	
+	/**
+	 * Shortcut to document.createElement().
+	 * @param {String} name		Name of the element to create (DIV, A, etc).
+	 * @return {HTMLElement}	Returns new HTML element.
+	 */
+	create: function(name)
+	{
+		return document.createElement(name);
+	},
+	
+	/**
+	 * Applies all regular expression to the code and stores all found
+	 * matches in the `this.matches` array.
+	 * @param {Array} regexList		List of regular expressions.
+	 * @param {String} code			Source code.
+	 * @return {Array}				Returns list of matches.
+	 */
+	findMatches: function(regexList, code)
+	{
+		var result = [];
+		
+		if (regexList != null)
+			for (var i = 0; i < regexList.length; i++) 
+				// BUG: length returns len+1 for array if methods added to prototype chain (oising@gmail.com)
+				if (typeof (regexList[i]) == "object")
+					result = result.concat(sh.utils.getMatches(code, regexList[i]));
+		
+		// sort the matches
+		return result.sort(sh.utils.matchesSortCallback);
+	},
+	
+	/**
+	 * Checks to see if any of the matches are inside of other matches. 
+	 * This process would get rid of highligted strings inside comments, 
+	 * keywords inside strings and so on.
+	 */
+	removeNestedMatches: function()
+	{
+		var matches = this.matches;
+		
+		// Optimized by Jose Prado (http://joseprado.com)
+		for (var i = 0; i < matches.length; i++) 
+		{ 
+			if (matches[i] === null)
+				continue;
+			
+			var itemI = matches[i],
+				itemIEndPos = itemI.index + itemI.length
+				;
+			
+			for (var j = i + 1; j < matches.length && matches[i] !== null; j++) 
+			{
+				var itemJ = matches[j];
+				
+				if (itemJ === null) 
+					continue;
+				else if (itemJ.index > itemIEndPos) 
+					break;
+				else if (itemJ.index == itemI.index && itemJ.length > itemI.length)
+					this.matches[i] = null;
+				else if (itemJ.index >= itemI.index && itemJ.index < itemIEndPos) 
+					this.matches[j] = null;
+			}
+		}
+	},
+	
+	/**
+	 * Splits block of text into individual DIV lines.
+	 * @param {String} code     Code to highlight.
+	 * @return {String}         Returns highlighted code in HTML form.
+	 */
+	createDisplayLines : function(code)
+	{
+		var lines = code.split(/\n/g),
+			firstLine = parseInt(this.getParam('first-line')),
+			padLength = this.getParam('pad-line-numbers'),
+			highlightedLines = this.getParam('highlight', []),
+			hasGutter = this.getParam('gutter')
+			;
+		
+		code = '';
+		
+		if (padLength == true)
+			padLength = (firstLine + lines.length - 1).toString().length;
+		else if (isNaN(padLength) == true)
+			padLength = 0;
+
+		for (var i = 0; i < lines.length; i++)
+		{
+			var line = lines[i],
+				indent = /^(&nbsp;|\s)+/.exec(line),
+				lineClass = 'alt' + (i % 2 == 0 ? 1 : 2),
+				lineNumber = sh.utils.padNumber(firstLine + i, padLength),
+				highlighted = sh.utils.indexOf(highlightedLines, (firstLine + i).toString()) != -1,
+				spaces = null
+				;
+
+			if (indent != null)
+			{
+				spaces = indent[0].toString();
+				line = line.substr(spaces.length);
+			}
+
+			line = sh.utils.trim(line);
+			
+			if (line.length == 0)
+				line = '&nbsp;';
+			
+			if (highlighted)
+				lineClass += ' highlighted';
+			
+			code += 
+				'<div class="line ' + lineClass + '">'
+					+ '<table>'
+						+ '<tr>'
+							+ (hasGutter ? '<td class="number"><code>' + lineNumber + '</code></td>' : '')
+							+ '<td class="content">'
+								+ (spaces != null ? '<code class="spaces">' + spaces.replace(' ', '&nbsp;') + '</code>' : '')
+								+ line
+							+ '</td>'
+						+ '</tr>'
+					+ '</table>'
+				+ '</div>'
+				;
+		}
+		
+		return code;
+	},
+	
+	/**
+	 * Finds all matches in the source code.
+	 * @param {String} code		Source code to process matches in.
+	 * @param {Array} matches	Discovered regex matches.
+	 * @return {String} Returns formatted HTML with processed mathes.
+	 */
+	processMatches: function(code, matches)
+	{
+		var pos = 0, 
+			result = '',
+			decorate = sh.utils.decorate, // make an alias to save some bytes
+			brushName = this.getParam('brush-name', '')
+			;
+		
+		function getBrushNameCss(match)
+		{
+			var result = match ? (match.brushName || brushName) : brushName;
+			return result ? result + ' ' : '';
+		};
+		
+		// Finally, go through the final list of matches and pull the all
+		// together adding everything in between that isn't a match.
+		for (var i = 0; i < matches.length; i++) 
+		{
+			var match = matches[i],
+				matchBrushName
+				;
+			
+			if (match === null || match.length === 0) 
+				continue;
+			
+			matchBrushName = getBrushNameCss(match);
+			
+			result += decorate(code.substr(pos, match.index - pos), matchBrushName + 'plain')
+					+ decorate(match.value, matchBrushName + match.css)
+					;
+
+			pos = match.index + match.length;
+		}
+
+		// don't forget to add whatever's remaining in the string
+		result += decorate(code.substr(pos), getBrushNameCss() + 'plain');
+
+		return result;
+	},
+	
+	/**
+	 * Highlights the code and returns complete HTML.
+	 * @param {String} code     Code to highlight.
+	 * @param {Object} params   Parameters object.
+	 */
+	highlight: function(code, params)
+	{
+		// using variables for shortcuts because JS compressor will shorten local variable names
+		var conf = sh.config,
+			vars = sh.vars,
+			div,
+			divClassName,
+			tabSize,
+			important = 'important'
+			;
+
+		this.params = {};
+		this.div = null;
+		this.lines = null;
+		this.code = null;
+		this.bar = null;
+		this.toolbarCommands = {};
+		this.id = sh.utils.guid('highlighter_');
+
+		// register this instance in the highlighters list
+		vars.highlighters[this.id] = this;
+
+		if (code === null) 
+			code = '';
+		
+		// local params take precedence over defaults
+		this.params = sh.utils.merge(sh.defaults, params || {});
+
+		// process light mode
+		if (this.getParam('light') == true)
+			this.params.toolbar = this.params.gutter = false;
+		
+		this.div = div = this.create('DIV');
+		this.lines = this.create('DIV');
+		this.lines.className = 'lines';
+
+		className = 'syntaxhighlighter';
+		div.id = this.id;
+		
+		// make collapsed
+		if (this.getParam('collapse'))
+			className += ' collapsed';
+		
+		// disable gutter
+		if (this.getParam('gutter') == false)
+			className += ' nogutter';
+		
+		// disable line wrapping
+		if (this.getParam('wrap-lines') == false)
+		 	this.lines.className += ' no-wrap';
+
+		// add custom user style name
+		className += ' ' + this.getParam('class-name');
+		
+		// add brush alias to the class name for custom CSS
+		className += ' ' + this.getParam('brush-name');
+		
+		div.className = className;
+		
+		this.originalCode = code;
+		this.code = sh.utils.trimFirstAndLastLines(code)
+			.replace(/\r/g, ' ') // IE lets these buggers through
+			;
+		
+		tabSize = this.getParam('tab-size');
+		
+		// replace tabs with spaces
+		this.code = this.getParam('smart-tabs') == true
+			? sh.utils.processSmartTabs(this.code, tabSize)
+			: sh.utils.processTabs(this.code, tabSize)
+			;
+
+		this.code = sh.utils.unindent(this.code);
+
+		// add controls toolbar
+		if (this.getParam('toolbar')) 
+		{
+			this.bar = this.create('DIV');
+			this.bar.className = 'bar';
+			this.bar.appendChild(sh.toolbar.create(this));
+			div.appendChild(this.bar);
+			
+			// set up toolbar rollover
+			var bar = this.bar;
+			function hide() { bar.className = bar.className.replace('show', ''); }
+			div.onmouseover = function() { hide(); bar.className += ' show'; };
+			div.onmouseout = function() { hide(); }
+		}
+		
+		div.appendChild(this.lines);
+	
+		this.matches = this.findMatches(this.regexList, this.code);
+		this.removeNestedMatches();
+		
+		code = this.processMatches(this.code, this.matches);
+		
+		// finally, split all lines so that they wrap well
+		code = this.createDisplayLines(sh.utils.trim(code));
+		
+		// finally, process the links
+		if (this.getParam('auto-links'))
+			code = sh.utils.processUrls(code);
+
+		this.lines.innerHTML = code;
+	},
+	
+	/**
+	 * Converts space separated list of keywords into a regular expression string.
+	 * @param {String} str    Space separated keywords.
+	 * @return {String}       Returns regular expression string.
+	 */	
+	getKeywords: function(str)
+	{
+		str = str
+			.replace(/^\s+|\s+$/g, '')
+			.replace(/\s+/g, '|')
+			;
+		
+		return '\\b(?:' + str + ')\\b';
+	},
+	
+	/**
+	 * Makes a brush compatible with the `html-script` functionality.
+	 * @param {Object} regexGroup Object containing `left` and `right` regular expressions.
+	 */
+	forHtmlScript: function(regexGroup)
+	{
+		this.htmlScript = {
+			left : { regex: regexGroup.left, css: 'script' },
+			right : { regex: regexGroup.right, css: 'script' },
+			code : new XRegExp(
+				"(?<left>" + regexGroup.left.source + ")" +
+				"(?<code>.*?)" +
+				"(?<right>" + regexGroup.right.source + ")",
+				"sgi"
+				)
+		};
+	}
+}; // end of Highlighter
+
+return sh;
+}(); // end of anonymous function
+
+
+/**
+ * XRegExp 0.6.1
+ * (c) 2007-2008 Steven Levithan
+ * <http://stevenlevithan.com/regex/xregexp/>
+ * MIT License
+ * 
+ * provides an augmented, cross-browser implementation of regular expressions
+ * including support for additional modifiers and syntax. several convenience
+ * methods and a recursive-construct parser are also included.
+ */
+
+// prevent running twice, which would break references to native globals
+if (!window.XRegExp) {
+// anonymous function to avoid global variables
+(function () {
+// copy various native globals for reference. can't use the name ``native``
+// because it's a reserved JavaScript keyword.
+var real = {
+        exec:    RegExp.prototype.exec,
+        match:   String.prototype.match,
+        replace: String.prototype.replace,
+        split:   String.prototype.split
+    },
+    /* regex syntax parsing with support for all the necessary cross-
+       browser and context issues (escapings, character classes, etc.) */
+    lib = {
+        part:       /(?:[^\\([#\s.]+|\\(?!k<[\w$]+>|[pP]{[^}]+})[\S\s]?|\((?=\?(?!#|<[\w$]+>)))+|(\()(?:\?(?:(#)[^)]*\)|<([$\w]+)>))?|\\(?:k<([\w$]+)>|[pP]{([^}]+)})|(\[\^?)|([\S\s])/g,
+        replaceVar: /(?:[^$]+|\$(?![1-9$&`']|{[$\w]+}))+|\$(?:([1-9]\d*|[$&`'])|{([$\w]+)})/g,
+        extended:   /^(?:\s+|#.*)+/,
+        quantifier: /^(?:[?*+]|{\d+(?:,\d*)?})/,
+        classLeft:  /&&\[\^?/g,
+        classRight: /]/g
+    },
+    indexOf = function (array, item, from) {
+        for (var i = from || 0; i < array.length; i++)
+            if (array[i] === item) return i;
+        return -1;
+    },
+    brokenExecUndef = /()??/.exec("")[1] !== undefined,
+    plugins = {};
+
+/**
+ * Accepts a pattern and flags, returns a new, extended RegExp object.
+ * differs from a native regex in that additional flags and syntax are
+ * supported and browser inconsistencies are ameliorated.
+ * @ignore
+ */
+XRegExp = function (pattern, flags) {
+    if (pattern instanceof RegExp) {
+        if (flags !== undefined)
+            throw TypeError("can't supply flags when constructing one RegExp from another");
+        return pattern.addFlags(); // new copy
+    }
+
+    var flags           = flags || "",
+        singleline      = flags.indexOf("s") > -1,
+        extended        = flags.indexOf("x") > -1,
+        hasNamedCapture = false,
+        captureNames    = [],
+        output          = [],
+        part            = lib.part,
+        match, cc, len, index, regex;
+
+    part.lastIndex = 0; // in case the last XRegExp compilation threw an error (unbalanced character class)
+
+    while (match = real.exec.call(part, pattern)) {
+        // comment pattern. this check must come before the capturing group check,
+        // because both match[1] and match[2] will be non-empty.
+        if (match[2]) {
+            // keep tokens separated unless the following token is a quantifier
+            if (!lib.quantifier.test(pattern.slice(part.lastIndex)))
+                output.push("(?:)");
+        // capturing group
+        } else if (match[1]) {
+            captureNames.push(match[3] || null);
+            if (match[3])
+                hasNamedCapture = true;
+            output.push("(");
+        // named backreference
+        } else if (match[4]) {
+            index = indexOf(captureNames, match[4]);
+            // keep backreferences separate from subsequent literal numbers
+            // preserve backreferences to named groups that are undefined at this point as literal strings
+            output.push(index > -1 ?
+                "\\" + (index + 1) + (isNaN(pattern.charAt(part.lastIndex)) ? "" : "(?:)") :
+                match[0]
+            );
+        // unicode element (requires plugin)
+        } else if (match[5]) {
+            output.push(plugins.unicode ?
+                plugins.unicode.get(match[5], match[0].charAt(1) === "P") :
+                match[0]
+            );
+        // character class opening delimiter ("[" or "[^")
+        // (non-native unicode elements are not supported within character classes)
+        } else if (match[6]) {
+            if (pattern.charAt(part.lastIndex) === "]") {
+                // for cross-browser compatibility with ECMA-262 v3 behavior,
+                // convert [] to (?!) and [^] to [\S\s].
+                output.push(match[6] === "[" ? "(?!)" : "[\\S\\s]");
+                part.lastIndex++;
+            } else {
+                // parse the character class with support for inner escapes and
+                // ES4's infinitely nesting intersection syntax ([&&[^&&[]]]).
+                cc = XRegExp.matchRecursive("&&" + pattern.slice(match.index), lib.classLeft, lib.classRight, "", {escapeChar: "\\"})[0];
+                output.push(match[6] + cc + "]");
+                part.lastIndex += cc.length + 1;
+            }
+        // dot ("."), pound sign ("#"), or whitespace character
+        } else if (match[7]) {
+            if (singleline && match[7] === ".") {
+                output.push("[\\S\\s]");
+            } else if (extended && lib.extended.test(match[7])) {
+                len = real.exec.call(lib.extended, pattern.slice(part.lastIndex - 1))[0].length;
+                // keep tokens separated unless the following token is a quantifier
+                if (!lib.quantifier.test(pattern.slice(part.lastIndex - 1 + len)))
+                    output.push("(?:)");
+                part.lastIndex += len - 1;
+            } else {
+                output.push(match[7]);
+            }
+        } else {
+            output.push(match[0]);
+        }
+    }
+
+    regex = RegExp(output.join(""), real.replace.call(flags, /[sx]+/g, ""));
+    regex._x = {
+        source:       pattern,
+        captureNames: hasNamedCapture ? captureNames : null
+    };
+    return regex;
+};
+
+/**
+ * Barebones plugin support for now (intentionally undocumented)
+ * @ignore
+ * @param {Object} name
+ * @param {Object} o
+ */
+XRegExp.addPlugin = function (name, o) {
+    plugins[name] = o;
+};
+
+/**
+ * Adds named capture support, with values returned as ``result.name``.
+ * 
+ * Also fixes two cross-browser issues, following the ECMA-262 v3 spec:
+ *  - captured values for non-participating capturing groups should be returned
+ *    as ``undefined``, rather than the empty string.
+ *  - the regex's ``lastIndex`` should not be incremented after zero-length
+ *    matches.
+ * @ignore
+ */
+RegExp.prototype.exec = function (str) {
+    var match = real.exec.call(this, str),
+        name, i, r2;
+    if (match) {
+        // fix browsers whose exec methods don't consistently return
+        // undefined for non-participating capturing groups
+        if (brokenExecUndef && match.length > 1) {
+            // r2 doesn't need /g or /y, but they shouldn't hurt
+            r2 = new RegExp("^" + this.source + "$(?!\\s)", this.getNativeFlags());
+            real.replace.call(match[0], r2, function () {
+                for (i = 1; i < arguments.length - 2; i++) {
+                    if (arguments[i] === undefined) match[i] = undefined;
+                }
+            });
+        }
+        // attach named capture properties
+        if (this._x && this._x.captureNames) {
+            for (i = 1; i < match.length; i++) {
+                name = this._x.captureNames[i - 1];
+                if (name) match[name] = match[i];
+            }
+        }
+        // fix browsers that increment lastIndex after zero-length matches
+        if (this.global && this.lastIndex > (match.index + match[0].length))
+            this.lastIndex--;
+    }
+    return match;
+};
+})(); // end anonymous function
+} // end if(!window.XRegExp)
+
+/**
+ * intentionally undocumented
+ * @ignore
+ */
+RegExp.prototype.getNativeFlags = function () {
+    return (this.global     ? "g" : "") +
+           (this.ignoreCase ? "i" : "") +
+           (this.multiline  ? "m" : "") +
+           (this.extended   ? "x" : "") +
+           (this.sticky     ? "y" : "");
+};
+
+/**
+ * Accepts flags; returns a new XRegExp object generated by recompiling
+ * the regex with the additional flags (may include non-native flags).
+ * The original regex object is not altered.
+ * @ignore
+ */
+RegExp.prototype.addFlags = function (flags) {
+    var regex = new XRegExp(this.source, (flags || "") + this.getNativeFlags());
+    if (this._x) {
+        regex._x = {
+            source:       this._x.source,
+            captureNames: this._x.captureNames ? this._x.captureNames.slice(0) : null
+        };
+    }
+    return regex;
+};
+
+/**
+ * Accepts a context object and string; returns the result of calling
+ * ``exec`` with the provided string. the context is ignored but is
+ * accepted for congruity with ``Function.prototype.call``.
+ * @ignore
+ */
+RegExp.prototype.call = function (context, str) {
+    return this.exec(str);
+};
+
+/**
+ * Accepts a context object and arguments array; returns the result of
+ * calling ``exec`` with the first value in the arguments array. the context
+ * is ignored but is accepted for congruity with ``Function.prototype.apply``.
+ * @ignore
+ */
+RegExp.prototype.apply = function (context, args) {
+    return this.exec(args[0]);
+};
+
+/**
+ * Accepts a pattern and flags; returns an XRegExp object. if the pattern
+ * and flag combination has previously been cached, the cached copy is
+ * returned, otherwise the new object is cached.
+ * @ignore
+ */
+XRegExp.cache = function (pattern, flags) {
+    var key = "/" + pattern + "/" + (flags || "");
+    return XRegExp.cache[key] || (XRegExp.cache[key] = new XRegExp(pattern, flags));
+};
+
+/**
+ * Accepts a string; returns the string with regex metacharacters escaped.
+ * the returned string can safely be used within a regex to match a literal
+ * string. escaped characters are [, ], {, }, (, ), -, *, +, ?, ., \, ^, $,
+ * |, #, [comma], and whitespace.
+ * @ignore
+ */
+XRegExp.escape = function (str) {
+    return str.replace(/[-[\]{}()*+?.\\^$|,#\s]/g, "\\$&");
+};
+
+/**
+ * Accepts a string to search, left and right delimiters as regex pattern
+ * strings, optional regex flags (may include non-native s, x, and y flags),
+ * and an options object which allows setting an escape character and changing
+ * the return format from an array of matches to a two-dimensional array of
+ * string parts with extended position data. returns an array of matches
+ * (optionally with extended data), allowing nested instances of left and right
+ * delimiters. use the g flag to return all matches, otherwise only the first
+ * is returned. if delimiters are unbalanced within the subject data, an error
+ * is thrown.
+ * 
+ * This function admittedly pushes the boundaries of what can be accomplished
+ * sensibly without a "real" parser. however, by doing so it provides flexible
+ * and powerful recursive parsing capabilities with minimal code weight.
+ * 
+ * Warning: the ``escapeChar`` option is considered experimental and might be
+ * changed or removed in future versions of XRegExp.
+ * 
+ * unsupported features:
+ *  - backreferences within delimiter patterns when using ``escapeChar``.
+ *  - although providing delimiters as regex objects adds the minor feature of
+ *    independent delimiter flags, it introduces other limitations and is only
+ *    intended to be done by the ``XRegExp`` constructor (which can't call
+ *    itself while building a regex).
+ * 
+ * @ignore
+ */
+XRegExp.matchRecursive = function (str, left, right, flags, options) {
+    var options      = options || {},
+        escapeChar   = options.escapeChar,
+        vN           = options.valueNames,
+        flags        = flags || "",
+        global       = flags.indexOf("g") > -1,
+        ignoreCase   = flags.indexOf("i") > -1,
+        multiline    = flags.indexOf("m") > -1,
+        sticky       = flags.indexOf("y") > -1,
+        /* sticky mode has its own handling in this function, which means you
+           can use flag "y" even in browsers which don't support it natively */
+        flags        = flags.replace(/y/g, ""),
+        left         = left  instanceof RegExp ? (left.global  ? left  : left.addFlags("g"))  : new XRegExp(left,  "g" + flags),
+        right        = right instanceof RegExp ? (right.global ? right : right.addFlags("g")) : new XRegExp(right, "g" + flags),
+        output       = [],
+        openTokens   = 0,
+        delimStart   = 0,
+        delimEnd     = 0,
+        lastOuterEnd = 0,
+        outerStart, innerStart, leftMatch, rightMatch, escaped, esc;
+
+    if (escapeChar) {
+        if (escapeChar.length > 1) throw SyntaxError("can't supply more than one escape character");
+        if (multiline)             throw TypeError("can't supply escape character when using the multiline flag");
+        escaped = XRegExp.escape(escapeChar);
+        /* Escape pattern modifiers:
+            /g - not needed here
+            /i - included
+            /m - **unsupported**, throws error
+            /s - handled by XRegExp when delimiters are provided as strings
+            /x - handled by XRegExp when delimiters are provided as strings
+            /y - not needed here; supported by other handling in this function
+        */
+        esc = new RegExp(
+            "^(?:" + escaped + "[\\S\\s]|(?:(?!" + left.source + "|" + right.source + ")[^" + escaped + "])+)+",
+            ignoreCase ? "i" : ""
+        );
+    }
+
+    while (true) {
+        /* advance the starting search position to the end of the last delimiter match.
+           a couple special cases are also covered:
+            - if using an escape character, advance to the next delimiter's starting position,
+              skipping any escaped characters
+            - first time through, reset lastIndex in case delimiters were provided as regexes
+        */
+        left.lastIndex = right.lastIndex = delimEnd +
+            (escapeChar ? (esc.exec(str.slice(delimEnd)) || [""])[0].length : 0);
+
+        leftMatch  = left.exec(str);
+        rightMatch = right.exec(str);
+
+        // only keep the result which matched earlier in the string
+        if (leftMatch && rightMatch) {
+            if (leftMatch.index <= rightMatch.index)
+                 rightMatch = null;
+            else leftMatch  = null;
+        }
+
+        /* paths*:
+        leftMatch | rightMatch | openTokens | result
+        1         | 0          | 1          | ...
+        1         | 0          | 0          | ...
+        0         | 1          | 1          | ...
+        0         | 1          | 0          | throw
+        0         | 0          | 1          | throw
+        0         | 0          | 0          | break
+        * - does not include the sticky mode special case
+          - the loop ends after the first completed match if not in global mode
+        */
+
+        if (leftMatch || rightMatch) {
+            delimStart = (leftMatch || rightMatch).index;
+            delimEnd   = (leftMatch ? left : right).lastIndex;
+        } else if (!openTokens) {
+            break;
+        }
+
+        if (sticky && !openTokens && delimStart > lastOuterEnd)
+            break;
+
+        if (leftMatch) {
+            if (!openTokens++) {
+                outerStart = delimStart;
+                innerStart = delimEnd;
+            }
+        } else if (rightMatch && openTokens) {
+            if (!--openTokens) {
+                if (vN) {
+                    if (vN[0] && outerStart > lastOuterEnd)
+                               output.push([vN[0], str.slice(lastOuterEnd, outerStart), lastOuterEnd, outerStart]);
+                    if (vN[1]) output.push([vN[1], str.slice(outerStart,   innerStart), outerStart,   innerStart]);
+                    if (vN[2]) output.push([vN[2], str.slice(innerStart,   delimStart), innerStart,   delimStart]);
+                    if (vN[3]) output.push([vN[3], str.slice(delimStart,   delimEnd),   delimStart,   delimEnd]);
+                } else {
+                    output.push(str.slice(innerStart, delimStart));
+                }
+                lastOuterEnd = delimEnd;
+                if (!global)
+                    break;
+            }
+        } else {
+            // reset lastIndex in case delimiters were provided as regexes
+            left.lastIndex = right.lastIndex = 0;
+            throw Error("subject data contains unbalanced delimiters");
+        }
+
+        // if the delimiter matched an empty string, advance delimEnd to avoid an infinite loop
+        if (delimStart === delimEnd)
+            delimEnd++;
+    }
+
+    if (global && !sticky && vN && vN[0] && str.length > lastOuterEnd)
+        output.push([vN[0], str.slice(lastOuterEnd), lastOuterEnd, str.length]);
+
+    // reset lastIndex in case delimiters were provided as regexes
+    left.lastIndex = right.lastIndex = 0;
+
+    return output;
+};
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
+ *
+ * @version
+ * 2.0.320 (May 03 2009)
+ * 
+ * @copyright
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
+ *
+ * @license
+ * This file is part of SyntaxHighlighter.
+ * 
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
+ */
+SyntaxHighlighter.brushes.Xml = function()
+{
+	function process(match, regexInfo)
+	{
+		var constructor = SyntaxHighlighter.Match,
+			code = match[0],
+			tag = new XRegExp('(&lt;|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
+			result = []
+			;
+		
+		if (match.attributes != null) 
+		{
+			var attributes,
+				regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
+									'\\s*=\\s*' +
+									'(?<value> ".*?"|\'.*?\'|\\w+)',
+									'xg');
+
+			while ((attributes = regex.exec(code)) != null) 
+			{
+				result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
+				result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
+			}
+		}
+
+		if (tag != null)
+			result.push(
+				new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
+			);
+
+		return result;
+	}
+	
+	this.regexList = [
+		{ regex: new XRegExp('(\\&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\&gt;|>)', 'gm'),			css: 'color2' },	// <![ ... [ ... ]]>
+		{ regex: new XRegExp('(\\&lt;|<)!--\\s*.*?\\s*--(\\&gt;|>)', 'gm'),								css: 'comments' },	// <!-- ... -->
+		{ regex: new XRegExp('(&lt;|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(&gt;|>)', 'sg'), func: process }
+	];
+};
+
+SyntaxHighlighter.brushes.Xml.prototype	= new SyntaxHighlighter.Highlighter();
+SyntaxHighlighter.brushes.Xml.aliases	= ['xml', 'xhtml', 'xslt', 'html', 'xhtml'];
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
+ *
+ * @version
+ * 2.0.320 (May 03 2009)
+ * 
+ * @copyright
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
+ *
+ * @license
+ * This file is part of SyntaxHighlighter.
+ * 
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
+ */
+SyntaxHighlighter.brushes.JScript = function()
+{
+	var keywords =	'break case catch continue ' +
+					'default delete do else false  ' +
+					'for function if in instanceof ' +
+					'new null return super switch ' +
+					'this throw true try typeof var while with'
+					;
+
+	this.regexList = [
+		{ regex: SyntaxHighlighter.regexLib.singleLineCComments,	css: 'comments' },			// one line comments
+		{ regex: SyntaxHighlighter.regexLib.multiLineCComments,		css: 'comments' },			// multiline comments
+		{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,		css: 'string' },			// double quoted strings
+		{ regex: SyntaxHighlighter.regexLib.singleQuotedString,		css: 'string' },			// single quoted strings
+		{ regex: /\s*#.*/gm,										css: 'preprocessor' },		// preprocessor tags like #region and #endregion
+		{ regex: new RegExp(this.getKeywords(keywords), 'gm'),		css: 'keyword' }			// keywords
+		];
+	
+	this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
+};
+
+SyntaxHighlighter.brushes.JScript.prototype	= new SyntaxHighlighter.Highlighter();
+SyntaxHighlighter.brushes.JScript.aliases	= ['js', 'jscript', 'javascript'];
+
+
+SyntaxHighlighter.config.clipboardSwf = 'syntax/clipboard.swf';
+$(function () {
+	var divs = $([]);
+	$("#container .source").each(function () {
+		var code = $(this).html().replace(/</g,'&lt;').replace(/>/g,'&gt;'),
+			div  = $('<div class="code"><pre class="brush:' + ( $(this).is("script") ? 'js' : 'xml' ) + ';">' + code + '</pre></div>'),
+			demo = $(this).prevAll(".demo:eq(0)");
+		$(this).after(div);
+		divs = divs.add(div);
+	});
+	SyntaxHighlighter.all();
+
+	setTimeout((function (divs) { 
+		return function () {
+			divs.each(function () {
+				var div		= $(this),
+					demo	= $(this).prevAll(".demo:eq(0)"),
+					h		= false;
+				var h = Math.max(demo[0].offsetHeight, div[0].offsetHeight);
+				if(h) {
+					if(h < 198) h = 198;
+					div.height(h);
+					demo.height(h);
+				}
+			});
+		}
+	})(divs), 500);
+
+	// $(".panel").hide().prev().click(function () { $(this).next().toggle(); }).css("cursor","pointer");
+});
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/syntax/!style.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/syntax/!style.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/syntax/!style.css	(revision 1516)
@@ -0,0 +1,511 @@
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
+ *
+ * @version
+ * 2.1.364 (October 15 2009)
+ * 
+ * @copyright
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
+ *
+ * @license
+ * This file is part of SyntaxHighlighter.
+ * 
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
+ */
+.syntaxhighlighter,
+.syntaxhighlighter div,
+.syntaxhighlighter code,
+.syntaxhighlighter table,
+.syntaxhighlighter table td,
+.syntaxhighlighter table tr,
+.syntaxhighlighter table tbody
+{
+	margin: 0 !important;
+	padding: 0 !important;
+	border: 0 !important;
+	outline: 0 !important;
+	background: none !important;
+	text-align: left !important;
+	float: none !important;
+	vertical-align: baseline !important;
+	position: static !important;
+	left: auto !important;
+	top: auto !important;
+	right: auto !important;
+	bottom: auto !important;
+	height: auto !important;
+	width: auto !important;
+	font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
+	font-weight: normal !important;
+	font-style: normal !important;
+	min-height: inherit !important; /* For IE8, FF & WebKit */
+	min-height: auto !important; /* For IE7 */
+
+
+/*
+	line-height: 1.1em !important;
+	font-size: 1em !important;
+*/
+
+	font-size:12px !important;
+	line-height:18px !important;
+
+}
+
+.syntaxhighlighter
+{
+	width: 99.9% !important; /* 99% fixes IE8 horizontal scrollbar */
+	margin: 1em 0 1em 0 !important;
+	padding: 1px !important; /* adds a little border on top and bottom */
+	position: relative !important;
+}
+
+.syntaxhighlighter .bold 
+{
+	font-weight: bold !important;
+}
+
+.syntaxhighlighter .italic 
+{
+	font-style: italic !important;
+}
+
+.syntaxhighlighter .line
+{
+}
+
+.syntaxhighlighter .no-wrap .line .content
+{
+	white-space: pre !important;
+}
+
+.syntaxhighlighter .line table 
+{
+	border-collapse: collapse !important;
+}
+
+.syntaxhighlighter .line td
+{
+	vertical-align: top !important;
+}
+
+.syntaxhighlighter .line .number
+{
+	width: 3em !important;
+}
+
+.syntaxhighlighter .line .number code
+{
+	width: 2.7em !important;
+	padding-right: .3em !important;
+	text-align: right !important;
+	display: block !important;
+}
+
+.syntaxhighlighter .line .content
+{
+	padding-left: .5em !important;
+}
+
+.syntaxhighlighter .line .spaces
+{
+}
+
+/* Disable border and margin on the lines when no gutter option is set */
+.syntaxhighlighter.nogutter .line .content
+{
+	border-left: none !important;
+}
+
+.syntaxhighlighter .bar
+{
+	display: none !important;
+}
+
+.syntaxhighlighter .bar.show 
+{
+	display: block !important;
+}
+
+.syntaxhighlighter.collapsed .bar
+{
+	display: block !important;
+}
+
+/* Adjust some properties when collapsed */
+
+.syntaxhighlighter.collapsed .lines
+{
+	display: none !important;
+}
+
+.syntaxhighlighter .lines.no-wrap
+{
+	overflow: auto !important;
+	overflow-y: hidden !important;
+}
+
+/* Styles for the toolbar */
+
+.syntaxhighlighter .toolbar
+{
+	position: absolute !important;
+	right: 0px !important;
+	top: 0px !important;
+	font-size: 1px !important;
+	padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
+}
+
+.syntaxhighlighter.collapsed .toolbar
+{
+	font-size: 80% !important;
+	padding: .2em 0 .5em .5em !important;
+	position: static !important;
+}
+
+.syntaxhighlighter .toolbar a.item,
+.syntaxhighlighter .toolbar .item
+{
+	display: block !important;
+	float: left !important;
+	margin-left: 8px !important;
+	background-repeat: no-repeat !important;
+	overflow: hidden !important;
+	text-indent: -5000px !important;
+}
+
+.syntaxhighlighter.collapsed .toolbar .item
+{
+	display: none !important;
+}
+
+.syntaxhighlighter.collapsed .toolbar .item.expandSource
+{
+	background-image: url(magnifier.png) !important;
+	display: inline !important;
+	text-indent: 0 !important;
+	width: auto !important;
+	float: none !important;
+	height: 16px !important;
+	padding-left: 20px !important;
+}
+
+.syntaxhighlighter .toolbar .item.viewSource
+{
+	background-image: url(page_white_code.png) !important;
+}
+
+.syntaxhighlighter .toolbar .item.printSource
+{
+	background-image: url(printer.png) !important;
+}
+
+.syntaxhighlighter .toolbar .item.copyToClipboard
+{
+	text-indent: 0 !important;
+	background: none !important;
+	overflow: visible !important;
+}
+
+.syntaxhighlighter .toolbar .item.about
+{
+	background-image: url(help.png) !important;
+}
+
+/** 
+ * Print view.
+ * Colors are based on the default theme without background.
+ */
+
+.syntaxhighlighter.printing,
+.syntaxhighlighter.printing .line.alt1 .content,
+.syntaxhighlighter.printing .line.alt2 .content,
+.syntaxhighlighter.printing .line.highlighted .number,
+.syntaxhighlighter.printing .line.highlighted.alt1 .content,
+.syntaxhighlighter.printing .line.highlighted.alt2 .content,
+{
+	background: none !important;
+}
+
+/* Gutter line numbers */
+.syntaxhighlighter.printing .line .number
+{
+	color: #bbb !important;
+}
+
+/* Add border to the lines */
+.syntaxhighlighter.printing .line .content
+{
+	color: #000 !important;
+}
+
+/* Toolbar when visible */
+.syntaxhighlighter.printing .toolbar
+{
+	display: none !important;
+}
+
+.syntaxhighlighter.printing a
+{
+	text-decoration: none !important;
+}
+
+.syntaxhighlighter.printing .plain,
+.syntaxhighlighter.printing .plain a
+{ 
+	color: #000 !important;
+}
+
+.syntaxhighlighter.printing .comments,
+.syntaxhighlighter.printing .comments a
+{ 
+	color: #008200 !important;
+}
+
+.syntaxhighlighter.printing .string,
+.syntaxhighlighter.printing .string a
+{
+	color: blue !important; 
+}
+
+.syntaxhighlighter.printing .keyword
+{ 
+	color: #069 !important; 
+	font-weight: bold !important; 
+}
+
+.syntaxhighlighter.printing .preprocessor 
+{ 
+	color: gray !important; 
+}
+
+.syntaxhighlighter.printing .variable 
+{ 
+	color: #a70 !important; 
+}
+
+.syntaxhighlighter.printing .value
+{ 
+	color: #090 !important; 
+}
+
+.syntaxhighlighter.printing .functions
+{ 
+	color: #ff1493 !important; 
+}
+
+.syntaxhighlighter.printing .constants
+{ 
+	color: #0066CC !important; 
+}
+
+.syntaxhighlighter.printing .script
+{
+	font-weight: bold !important;
+}
+
+.syntaxhighlighter.printing .color1,
+.syntaxhighlighter.printing .color1 a
+{ 
+	color: #808080 !important; 
+}
+
+.syntaxhighlighter.printing .color2,
+.syntaxhighlighter.printing .color2 a
+{ 
+	color: #ff1493 !important; 
+}
+
+.syntaxhighlighter.printing .color3,
+.syntaxhighlighter.printing .color3 a
+{ 
+	color: red !important; 
+}
+/**
+ * SyntaxHighlighter
+ * http://alexgorbatchev.com/
+ *
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
+ *
+ * @version
+ * 2.1.364 (October 15 2009)
+ * 
+ * @copyright
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
+ *
+ * @license
+ * This file is part of SyntaxHighlighter.
+ * 
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
+ */
+/************************************
+ * Default Syntax Highlighter theme.
+ * 
+ * Interface elements.
+ ************************************/
+
+.syntaxhighlighter
+{
+	background-color: #fff !important;
+}
+
+/* Highlighed line number */
+.syntaxhighlighter .line.highlighted .number
+{
+	color: black !important;
+}
+
+/* Highlighed line */
+.syntaxhighlighter .line.highlighted.alt1,
+.syntaxhighlighter .line.highlighted.alt2
+{
+	background-color: #e0e0e0 !important;
+}
+
+/* Gutter line numbers */
+.syntaxhighlighter .line .number
+{
+	color: #afafaf !important;
+}
+
+/* Add border to the lines */
+.syntaxhighlighter .line .content
+{
+	border-left: 1px solid gray !important;
+	color: #000 !important;
+}
+
+.syntaxhighlighter.printing .line .content 
+{
+	border: 0 !important;
+}
+
+/* First line */
+.syntaxhighlighter .line.alt1
+{
+	background-color: #fff !important;
+}
+
+/* Second line */
+.syntaxhighlighter .line.alt2
+{
+	background-color: #F8F8F8 !important;
+}
+
+.syntaxhighlighter .toolbar
+{
+	background-color: #F8F8F8 !important;
+	border: #E7E5DC solid 1px !important;
+}
+
+.syntaxhighlighter .toolbar a
+{
+	color: #a0a0a0 !important;
+}
+
+.syntaxhighlighter .toolbar a:hover
+{
+	color: red !important;
+}
+
+/************************************
+ * Actual syntax highlighter colors.
+ ************************************/
+.syntaxhighlighter .plain,
+.syntaxhighlighter .plain a
+{ 
+	color: #000 !important;
+}
+
+.syntaxhighlighter .comments,
+.syntaxhighlighter .comments a
+{ 
+	color: #008200 !important;
+}
+
+.syntaxhighlighter .string,
+.syntaxhighlighter .string a
+{
+	color: blue !important; 
+}
+
+.syntaxhighlighter .keyword
+{ 
+	color: #069 !important; 
+	font-weight: bold !important; 
+}
+
+.syntaxhighlighter .preprocessor 
+{ 
+	color: gray !important; 
+}
+
+.syntaxhighlighter .variable 
+{ 
+	color: #a70 !important; 
+}
+
+.syntaxhighlighter .value
+{ 
+	color: #090 !important; 
+}
+
+.syntaxhighlighter .functions
+{ 
+	color: #ff1493 !important; 
+}
+
+.syntaxhighlighter .constants
+{ 
+	color: #0066CC !important; 
+}
+
+.syntaxhighlighter .script
+{ 
+	background-color: yellow !important;
+}
+
+.syntaxhighlighter .color1,
+.syntaxhighlighter .color1 a
+{ 
+	color: #808080 !important; 
+}
+
+.syntaxhighlighter .color2,
+.syntaxhighlighter .color2 a
+{ 
+	color: #ff1493 !important; 
+}
+
+.syntaxhighlighter .color3,
+.syntaxhighlighter .color3 a
+{ 
+	color: red !important; 
+}
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/themeroller.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/themeroller.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/themeroller.html	(revision 1516)
@@ -0,0 +1,98 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - themeroller documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+
+	<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - themeroller plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>themeroller</code> plugin adds support for jQuery UI's themes. Add the plugin as last in your <code>plugins</code> config option. Also make sure that you have included the jquery theme you'd like to use and you should NOT use the native jstree <code>themes</code> plugin.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>opened</h3>
+<p class="meta">A string. Default is <code>"ui-icon-triangle-1-se"</code>.</p>
+<p>The class name to use for open nodes (shows the arrow to close).</p>
+
+<h3>closed</h3>
+<p class="meta">A string. Default is <code>"ui-icon-triangle-1-e"</code>.</p>
+<p>The class name to use for closed nodes (shows the arrow to open).</p>
+
+<h3>item</h3>
+<p class="meta">A string. Default is <code>"ui-state-default"</code>.</p>
+<p>The class name to use for the actual items.</p>
+
+<h3>item_h</h3>
+<p class="meta">A string. Default is <code>"ui-state-hover"</code>.</p>
+<p>The class name to use for the hovered item.</p>
+
+<h3>item_a</h3>
+<p class="meta">A string. Default is <code>"ui-state-active"</code>.</p>
+<p>The class name to use for selected items (UI plugin).</p>
+
+<h3>item_icon</h3>
+<p class="meta">A string. Default is <code>"ui-icon-folder-collapsed"</code>.</p>
+<p>The class name to use for the default icon.</p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using the themeroller plugin</h3>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"plugins" : [ "html_data", "ui", "themeroller" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="_themeroller">._themeroller ( obj )</h3>
+<p>Fixes the tree on various events by applying the configured classes - used internally only.</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/themes.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/themes.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/themes.html	(revision 1516)
@@ -0,0 +1,126 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - themes documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - themes plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>themes</code> plugin controls the looks of jstree - without this plugin you will get a functional tree, but it will look just like an ordinary UL list.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>theme</h3>
+<p class="meta">A string. Default is <code>"default"</code>.</p>
+<p>The name of the theme to use to style the tree.</p>
+
+<h3>url</h3>
+<p class="meta">A string (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>The location of the theme's CSS file, if set to <code>false</code> jstree will look for the file in <code><em>&lt; theme folder &gt;</em>/themes/<em>&lt; theme name &gt;</em>/style.css</code>. You can set the theme folder using <code>$.jstree._themes = "PATH/TO/FOLDER/";</code>, otherwise it is autodetected as <code><em>&lt;jquery.tree.js location&gt;</em>/themes/</code>.</p>
+
+<h3>dots</h3>
+<p class="meta">A Boolean. Default is <code>true</code>.</p>
+<p>Whether to show the connecting dots or not.</p>
+
+<h3>icons</h3>
+<p class="meta">A Boolean. Default is <code>true</code>.</p>
+<p>Whether to show the node icons or not.</p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using the themes plugin</h3>
+<input type="button" class="button" value="toggle_dots" id="toggle_dots" style="float:left;" />
+<input type="button" class="button" value="toggle_icons" id="toggle_icons" style="float:left;" />
+<input type="button" class="button" value="set_theme1" id="set_theme1" style="float:left;" />
+<input type="button" class="button" value="set_theme2" id="set_theme2" style="" />
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#toggle_dots, #toggle_icons").click(function () { 
+		$("#demo1").jstree(this.value);
+	});
+	$("#set_theme1").click(function () { 
+		$("#demo1").jstree("set_theme","apple");
+	});
+	$("#set_theme2").click(function () { 
+		$("#demo1").jstree("set_theme","default");
+	});
+	$("#demo1").jstree({ 
+		"themes" : {
+			"theme" : "default",
+			"dots" : false,
+			"icons" : false
+		},
+		"plugins" : [ "themes", "html_data" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="set_theme">.set_theme ( name , url )</h3>
+<p>Set the tree's theme. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>name</strong>
+		<p>The name of the theme to use to style the tree.</p>
+	</li>
+	<li>
+		<code class="tp">string</code> <strong>url</strong>
+		<p>The location of the theme's CSS file, if omitted jstree will look for the file in:<br /><code><em>&lt; theme folder &gt;</em>/themes/<em>&lt; name &gt;</em>/style.css</code>.<br />You can set the theme folder using:<br /><code>$.jstree._themes = "PATH/TO/FOLDER/";</code>, otherwise it is autodetected as <code><em>&lt;jquery.tree.js location&gt;</em>/themes/</code>.</p>
+	</li>
+</ul>
+<h3 id="get_theme">.get_theme ( )</h3>
+<p>Returns the name of the currently active theme.</p>
+
+<div style="height:1px; visibility:hidden;"><span id="hide_dots">&nbsp;</span><span id="toggle_dots">&nbsp;</span></div>
+<h3 id="show_dots">.show_dots ( ), .hide_dots ( ), .toggle_dots ( )</h3>
+<p>Show, hide or toggle the visibility of the dots connecting the tree's nodes.</p>
+
+<div style="height:1px; visibility:hidden;"><span id="hide_icons">&nbsp;</span><span id="toggle_icons">&nbsp;</span></div>
+<h3 id="show_icons">.show_icons ( ), .hide_icons ( ), .toggle_icons ( )</h3>
+<p>Show, hide or toggle the visibility of the icons next to the title of each the tree node.</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/types.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/types.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/types.html	(revision 1516)
@@ -0,0 +1,173 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - types documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - types plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>types</code> enables node types - each node can have a type, and you can define rules on how that type should behave - maximum children count, maximum depth, valid children types, selectable or not, etc.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+
+<h3>max_children</h3>
+<p class="meta">A number. Default is <code>-1</code>.</p>
+<p>Defines maximum number of root nodes (<code>-1</code> means unlimited, <code>-2</code> means disable max_children checking in the tree).</p>
+
+<h3>max_depth</h3>
+<p class="meta">A number. Default is <code>-1</code>.</p>
+<p>Defines maximum depth of the tree (<code>-1</code> means unlimited, <code>-2</code> means disable max_depth checking in the tree).</p>
+
+<h3>valid_children</h3>
+<p class="meta">A string or array. Default is <code>"all"</code>.</p>
+<p>Defines valid root node types (could be <code>"all"</code>, <code>"none"</code>, or an array of type strings).</p>
+
+<h3>type_attr</h3>
+<p class="meta">A string. Default is <code>"rel"</code>.</p>
+<p>Defines the attribute on each <code>li</code> node, where the type attribute will be stored.</p>
+
+<h3>types</h3>
+<p class="meta">An object.</p>
+<p>Defines all the active types in the tree. Each key is the type name, and each value represents the rules for this type. A <code>default</code> type is defined - all nodes with no explicit type set are treated as if they were of the <code>default</code> type.</p>
+<div style="border:1px solid gray;">
+<pre class="brush:js">
+types : {
+	// the default type
+	"default" : {
+		"max_children"	: -1,
+		"max_depth"		: -1,
+		"valid_children": "all"
+
+		// Bound functions - you can bind any other function here (using boolean or function)
+		//"select_node"	: true,
+		//"open_node"	: true,
+		//"close_node"	: true,
+		//"create_node"	: true,
+		//"delete_node"	: true
+	}
+}
+</pre>
+</div>
+<p>For <code>max_children</code>, <code>max_depth</code> &amp; <code>valid_children</code> use the same values as for the tree, but the value you set will only apply for that node type.</p>
+<p>You can set an <code>icon</code> key - it should be an object consisting of two keys - <code>image</code> (string - location of the image to be used as an icon) &amp; <code>position</code> (string - left and top pixels of the image - 10px 40px, only useful when using sprites - omit otherwise).</p>
+<p>You can set more keys in that object - each key should be a function name, and each value - either a boolean (in order to allow or disallow that operation, on that node type) or a function. If you supply a function - your function will be called with two arguments - the name of the called function (the key) and the arguments passed to that function - you can then decide whether to return <code>true</code> or <code>false</code>.</p>
+<p class="note">For any type - for now you can control only functions that take the node being manipulated as the first argument.</p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+<h3>Using the types plugin</h3>
+
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1" rel="root">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4" rel="root">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"types" : {
+			"valid_children" : [ "root" ],
+			"types" : {
+				"root" : {
+					"icon" : { 
+						"image" : "http://static.jstree.com/v.1.0rc/_docs/_drive.png" 
+					},
+					"valid_children" : [ "default" ],
+					"max_depth" : 2,
+					"hover_node" : false,
+					"select_node" : function () {return false;}
+				},
+				"default" : {
+					"valid_children" : [ "default" ]
+				}
+			}
+		},
+		"plugins" : ["themes","html_data","dnd","ui","types"]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="_get_type">._get_type ( node )</h3>
+<p>Get the type of a node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element.</p>
+	</li>
+</ul>
+
+<h3 id="set_type">.set_type ( type , node )</h3>
+<p>Set the type of a node.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>type</strong>
+		<p>The new type.</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element.</p>
+	</li>
+</ul>
+
+<h3 id="_check">._check ( rule , node , opts )</h3>
+<p>Checks a rule on a give node. Used mostly internally.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>rule</strong>
+		<p>The rule to check.</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to the element.</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>opts</strong>
+		<p>Any additional options regarding the rule. Used internally.</p>
+	</li>
+</ul>
+
+<div style="height:1px; visibility:hidden;"><span id="check_move">&nbsp;</span></div>
+<h3 id="create_node">.create_node ( ), .check_move ( )</h3>
+<p>Both functions are overwritten to accomodate the new functionality presented by the plugin.</p>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/ui.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/ui.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/ui.html	(revision 1516)
@@ -0,0 +1,188 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - UI documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - UI plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>UI</code> plugin handles selecting, deselecting and hovering tree items.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>select_limit</h3>
+<p class="meta">A number. Default is <code>-1</code>.</p>
+<p>Defines how many nodes can be selected at a given time (<code>-1</code> means unlimited).</p>
+
+<h3>select_multiple_modifier</h3>
+<p class="meta">A string. Default is <code>"ctrl"</code>.</p>
+<p>The special key used to make a click add to the selection and not replace it (<code>"ctrl"</code>, <code>"shift"</code>, <code>"alt"</code>, <code>"meta"</code>).<br />You can also set this to <code>"on"</code> making every click add to the selection.</p>
+
+<h3>selected_parent_close</h3>
+<p class="meta">A string (or <code>false</code>). Default is <code>"select_parent"</code>.</p>
+<p>What action to take when a selected node's parent is closed (making the selected node invisible). Possible values are <code>false</code> - do nothing, <code>"select_parent"</code> - select the closed node's parent and <code>"deselect"</code> - deselect the node.</p>
+
+<h3>select_prev_on_delete</h3>
+<p class="meta">A boolean. Default is <code>true</code>.</p>
+<p>If set to <code>true</code> when a selected node is deleted, its previous sibling (or parent) is selected.</p>
+
+<h3>disable_selecting_children</h3>
+<p class="meta">A boolean. Default is <code>false</code>.</p>
+<p>If set to <code>true</code> you will not be able to select children of already selected nodes.</p>
+
+<h3>initially_select</h3>
+<p class="meta">An array. Default is <code>[]</code>.</p>
+<p>Defines which nodes are to be automatically selected when the tree finishes loading - a list of IDs is expected.</p>
+
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using the UI plugin</h3>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+				<li id="phtml_3">
+					<a href="#">Child node 2</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"ui" : {
+			"select_limit" : 2,
+			"select_multiple_modifier" : "alt",
+			"selected_parent_close" : "select_parent",
+			"initially_select" : [ "phtml_2" ]
+		},
+		"core" : { "initially_open" : [ "phtml_1" ] },
+		"plugins" : [ "themes", "html_data", "ui" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="_get_node">._get_node ( node , allow_multiple )</h3>
+<p>Overrides the function form the <a href="core.html#_get_node">core</a> module.<br />if <code>node</code> is <code>undefined</code> or <code>null</code> and <code>allow_multiple</code> is <code>true</code> all the currently selected nodes are returned<br />if <code>node</code> is <code>undefined</code> or <code>null</code> and <code>allow_multiple</code> is NOT <code>true</code> only the last selected node is returned.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+	<li>
+		<code class="tp">boolean</code> <strong>allow_multiple</strong>
+		<p>Whether to return all selected nodes or only the last selected one if <code>node</code> is <code>null</code>.</p>
+	</li>
+</ul>
+
+<h3 id="save_selected">.save_selected ( )</h3>
+<p>Saves away the current selection state of the tree (saves it in a variable, so do not expect a restore after a refresh - for that functionality refer to the <a href="cookies.html">cookies plugin</a>. Used mostly internally. Triggers an event.</p>
+
+<h3 id="reselect">.reselect ( )</h3>
+<p>Restores the state of the tree using the variable saved in the above function. Used mostly internally. Triggers an event.</p>
+
+<h3 id="refresh">.refresh ( node )</h3>
+<p>Overrides the function form the <a href="core.html#refresh">core</a> module.<br />Enables saving the selection state before the refresh and restoring it afterwards.</p>
+
+<h3 id="hover_node">.hover_node ( node )</h3>
+<p>Sets the specified node as hovered. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="dehover_node">.dehover_node ( )</h3>
+<p>Removes the hover state from the currently hovered node (if there is one). Triggers an event.</p>
+
+
+<h3 id="select_node">.select_node ( node , check , event )</h3>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+	<li>
+		<code class="tp">bool</code> <strong>check</strong>
+		<p>Whether to check the specified rules and do appropriate actions (check <code>select_limit</code>, deselect other nodes respectively, etc) or to just force selection of the node regardless of <code>select_limit</code>.</p>
+	</li>
+	<li>
+		<code class="tp">event</code> <strong>event</strong>
+		<p>Used internally - when a click on a node caused this function to be executed.</p>
+	</li>
+</ul>
+
+<div style="height:1px; visibility:hidden; overflow:hidden;"><span id="toggle_select">&#160;</span></div>
+<h3 id="deselect_node">.deselect_node ( node ), .toggle_select ( node )</h3>
+<p>There functions control the selected state on a node. <code>deselect_node</code> triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="deselect_all">.deselect_all ( context )</h3>
+<p>Deselects all selected nodes. If context is set - only the selected nodes within that context are deselected. Triggers an event.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>context</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="get_selected">.get_selected ( context )</h3>
+<p>Returns all selected nodes. If context is set - only the selected nodes within that context are returned.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>context</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+<h3 id="is_selected">.is_selected ( node )</h3>
+<p>Returns whether the specified node is selected or not.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
+	</li>
+</ul>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/unique.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/unique.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/unique.html	(revision 1516)
@@ -0,0 +1,70 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - unique documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - unique plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>unique</code> plugin prevents from nodes with same titles coexisting (create/move/rename) in the same parent.</p>
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+<p>Try moving the child nodes together (drag'n'drop).</p>
+
+<h3>Using the unique plugin</h3>
+<div id="demo1" class="demo">
+	<ul>
+		<li id="phtml_1">
+			<a href="#">Root node 1</a>
+			<ul>
+				<li id="phtml_2">
+					<a href="#">Child node 1</a>
+				</li>
+			</ul>
+		</li>
+		<li id="phtml_4">
+			<a href="#">Root node 2</a>
+			<ul>
+				<li id="phtml_3">
+					<a href="#">Child node 1</a>
+				</li>
+			</ul>
+		</li>
+	</ul>
+</div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"plugins" : [ "themes", "html_data", "dnd", "unique" ]
+	});
+});
+</script>
+
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+
+<h3 id="save_cookie">._check_unique ( names, siblings )</h3>
+<p>Used internally - checks the names array against the sibling nodes for matches.</p>
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/xml_data.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/xml_data.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_docs/xml_data.html	(revision 1516)
@@ -0,0 +1,214 @@
+<!DOCTYPE html
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<title>jsTree v.1.0 - xml_data documentation</title>
+	<script type="text/javascript" src="../_lib/jquery.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
+	<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
+	<script type="text/javascript" src="../jquery.jstree.js"></script>
+
+	<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
+	<link type="text/css" rel="stylesheet" href="!style.css"/>
+	<script type="text/javascript" src="syntax/!script.js"></script>
+</head>
+<body>
+<div id="container">
+
+<h1>jsTree v.1.0 - xml_data plugin</h1>
+<h2>Description</h2>
+<div id="description">
+<p>The <code>xml_data</code> plugin enables jsTree to convert XML objects to interactive trees (using XSL). The data (XML) can be set up in the config (as a string) or retrieved from a server (also ondemand).</p>
+<p>Two types of XML structures are supported - flat and nested:</p>
+<div class="code_f">
+<pre class="brush:xml;">
+&lt;!-- FLAT --&gt;
+&lt;root&gt;
+	&lt;item id="root_1" parent_id="0" state="closed"&gt;
+		&lt;content&gt;
+			&lt;name&gt;&lt;![CDATA[Node 1]]&gt;&lt;/name&gt;
+		&lt;/content&gt;
+	&lt;/item&gt;
+	&lt;item id="node_2" parent_id="root_1"&gt;
+		&lt;content&gt;
+			&lt;name&gt;&lt;![CDATA[Node 2]]&gt;&lt;/name&gt;
+		&lt;/content&gt;
+	&lt;/item&gt;
+&lt;/root&gt;
+
+&lt;!-- NESTED --&gt;
+&lt;root&gt;
+	&lt;item id="xml_1"&gt;
+		&lt;content&gt;&lt;name&gt;&lt;![CDATA[Root node 1]]&gt;&lt;/name&gt;&lt;/content&gt;
+		&lt;item id="xml_2"&gt;
+			&lt;content&gt;&lt;name&gt;&lt;![CDATA[Child node 1]]&gt;&lt;/name&gt;&lt;/content&gt;
+		&lt;/item&gt;
+	&lt;/item&gt;
+&lt;/root&gt;
+</pre>
+</div>
+<p>Aside from nesting the only difference is the <code>parent_id</code> attribute used in <code>xml_flat</code>.</p>
+<p><code>parent_id</code> defines the parent of the node in XML flat, use <code>0</code> for root nodes. Also when using async - use <code>0</code> for the first level.</p>
+<p><code>state</code> defines the state of the node (<code>open</code> or <code>closed</code>). You can omit it too - jstree will handle the data automatically - nodes with no children will be leaf nodes, nodes with children will be closed.</p>
+<p>All attributes you set on the <code>item</code> node will be transfered to the resulting <code>li</code> node. All attributes you set on the <code>name</code> node will be transfered to the resulting <code>a</code> node.</p>
+<p>If you are using the <a href="languages.html">languages plugin</a> you can have multiple <code>name</code> nodes in a every <code>item</code> node, just set a <code>language</code> attribute on each one (<code>&lt;name language="en" ...</code>).</p>
+<p class="note">Remember to always set the XML header on your XML files.</p>
+</div>
+
+<h2 id="configuration">Configuration</h2>
+<div class="panel configuration">
+<h3>data</h3>
+<p class="meta">A XML string (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>Specifies the content to load into the container and convert to a tree.</p>
+<h3>ajax</h3>
+<p class="meta">An object (or <code>false</code> if not used). Default is <code>false</code>.</p>
+<p>The ajax config object is pretty much the same as the <a href="http://api.jquery.com/jQuery.ajax/">jQuery ajax settings object</a>.</p>
+<p>You can set the <code>data</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the node about to be open as a paramater (or <code>-1</code> for initial load). Whatever you return in the function will be sent to the server as data (so for example you can send the node's ID).</p>
+<p>You can set the <code>url</code> option to a function, that will be executed in the current tree's scope (<code>this</code> will be the tree instance) and gets the node about to be open as a paramater (or <code>-1</code> for initial load). Whatever you return in the <code>url</code> function will be used as the ajax URL (so that you can accomodate pretty paths such as /get_children/node_2).</p>
+<p>The <code>error</code> and <code>success</code> functions (if present) also fire in the context of the tree, and if you return a value in the <code>success</code> function it will be used to populate the tree - this can be useful if you want to somehow change what the server returned on the client side before it is displayed in the tree.</p>
+<h3>correct_state</h3>
+<p class="meta">A Boolean. Default is <code>true</code>.</p>
+<p>If this option is set to <code>true</code> if an AJAX returns an empty result, the node that was about to be opened will be converted to a leaf node (the open icon will no longer be displayed).</p>
+<h3>clean_node</h3>
+<p class="meta">A Boolean. Default is <code>false</code>.</p>
+<p>Set to true if node needs to be cleaned - usually you should leave this to <code>false</code>.</p>
+<h3>xsl</h3>
+<p class="meta">A string. Default is <code>"flat"</code>.</p>
+<p>The type of structure you wiil be using - set either to <code>"flat"</code> or <code>"nest"</code>.</p>
+
+<p class="note"><strong>NOTE:</strong><br />If both <code>data</code> and <code>ajax</code> are set the initial tree is rendered from the <code>data</code> string. When opening a closed node (that has no loaded children) an AJAX request is made.</p>
+</div>
+
+<h2 id="demos">Demos</h2>
+<div class="panel">
+
+<h3>Using the data config option (flat)</h3>
+<div id="demo1" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo1").jstree({ 
+		"xml_data" : {
+			"data" : "" + 
+"<root>" + 
+	"<item id='node_1'>" + 
+		"<content><name>Root node 1</name></content>" + 
+	"</item>" + 
+	"<item>" + 
+		"<content><name>Root node 2</name></content>" + 
+	"</item>" + 
+	"<item parent_id='node_1'>" + 
+		"<content><name>Child node</name></content>" + 
+	"</item>" + 
+"</root>"
+		},
+		"plugins" : [ "themes", "xml_data" ]
+	});
+});
+</script>
+
+<h3>Using the ajax config option (nested)</h3>
+<div id="demo2" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo2").jstree({ 
+		"xml_data" : {
+			"ajax" : {
+				"url" : "_xml_nest.xml"
+			},
+			"xsl" : "nest"
+		},
+		"plugins" : [ "themes", "xml_data" ]
+	});
+});
+</script>
+
+<h3>Using both the data &amp; ajax config options (flat)</h3>
+<div id="demo4" class="demo"></div>
+<script type="text/javascript" class="source">
+$(function () {
+	$("#demo4").jstree({ 
+		"xml_data" : {
+			"data" : "" + 
+"<root>" + 
+	"<item id='node_1' state='closed'>" + 
+		"<content><name>Root node 1</name></content>" + 
+	"</item>" + 
+	"<item>" + 
+		"<content><name>Root node 2</name></content>" + 
+	"</item>" + 
+"</root>",
+			"ajax" : {
+				"url" : "_xml_flat.xml",
+				"data" : function (n) { 
+					return { 
+						id : n.attr ? n.attr("id") : 0, 
+						rand : new Date().getTime()
+					}; 
+				}
+			}
+		},
+		"plugins" : [ "themes", "xml_data" ]
+	});
+});
+</script>
+</div>
+
+<h2 id="api">API</h2>
+<div class="panel api">
+<p>Both dummy functions - <code>_is_loaded</code> and <code>load_node</code> are overwritten.</p>
+<h3 id="load_node_xml">.load_node_xml ( node , success_callback , error_callback )</h3>
+<p>This function is called instead of <code>load_node</code>.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want loaded. Use <code>-1</code> for root nodes.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>success_callback</strong>
+		<p>A function to be executed once the node is loaded successfully - used internally. You should wait for the <code>load_node</code> event.</p>
+	</li>
+	<li>
+		<code class="tp">function</code> <strong>error_callback</strong>
+		<p>A function to be executed if the node is not loaded due to an error - used internally. You should wait for the <code>load_node</code> event.</p>
+	</li>
+</ul>
+<h3 id="parse_xml">.parse_xml ( data )</h3>
+<p>This function converts XML strings or objects to the DOM structure required by jstree. Returns a jQuery object.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">mixed</code> <strong>data</strong>
+		<p>The XML string/object.</p>
+	</li>
+</ul>
+<h3 id="get_xml">.get_xml ( type , node , li_attr , a_attr , is_callback )</h3>
+<p>This function returns an array of tree nodes converted back to XML.</p>
+<ul class="arguments">
+	<li>
+		<code class="tp">string</code> <strong>type</strong>
+		<p>Either <code>"flat"</code> or <code>"nest"</code>. Default is <code>"flat"</code>.</p>
+	</li>
+	<li>
+		<code class="tp">mixed</code> <strong>node</strong>
+		<p>This can be a DOM node, jQuery node or selector pointing to an element you want returned. Use <code>-1</code> or omit to get the whole tree.</p>
+	</li>
+	<li>
+		<code class="tp">array</code> <strong>li_attr</strong>
+		<p>The attributes to collect from the <code>LI</code> node. Defaults to <code>[ "id" , "class" ]</p>
+	</li>
+	<li>
+		<code class="tp">array</code> <strong>a_attr</strong>
+		<p>The attributes to collect from the <code>A</code> node. Defaults to <code>[ ]</p>
+	</li>
+	<li>
+		<code class="tp">string</code> <strong>is_callback</strong>
+		<p>Used internally.</p>
+	</li>
+</ul>
+
+</div>
+
+</div>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.cookie.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.cookie.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.cookie.js	(revision 1516)
@@ -0,0 +1,96 @@
+/**
+ * Cookie plugin
+ *
+ * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ *
+ */
+
+/**
+ * Create a cookie with the given name and value and other optional parameters.
+ *
+ * @example $.cookie('the_cookie', 'the_value');
+ * @desc Set the value of a cookie.
+ * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
+ * @desc Create a cookie with all available options.
+ * @example $.cookie('the_cookie', 'the_value');
+ * @desc Create a session cookie.
+ * @example $.cookie('the_cookie', null);
+ * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
+ *       used when the cookie was set.
+ *
+ * @param String name The name of the cookie.
+ * @param String value The value of the cookie.
+ * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
+ * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
+ *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
+ *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
+ *                             when the the browser exits.
+ * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
+ * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
+ * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
+ *                        require a secure protocol (like HTTPS).
+ * @type undefined
+ *
+ * @name $.cookie
+ * @cat Plugins/Cookie
+ * @author Klaus Hartl/klaus.hartl@stilbuero.de
+ */
+
+/**
+ * Get the value of a cookie with the given name.
+ *
+ * @example $.cookie('the_cookie');
+ * @desc Get the value of a cookie.
+ *
+ * @param String name The name of the cookie.
+ * @return The value of the cookie.
+ * @type String
+ *
+ * @name $.cookie
+ * @cat Plugins/Cookie
+ * @author Klaus Hartl/klaus.hartl@stilbuero.de
+ */
+jQuery.cookie = function(name, value, options) {
+    if (typeof value != 'undefined') { // name and value given, set cookie
+        options = options || {};
+        if (value === null) {
+            value = '';
+            options.expires = -1;
+        }
+        var expires = '';
+        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
+            var date;
+            if (typeof options.expires == 'number') {
+                date = new Date();
+                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
+            } else {
+                date = options.expires;
+            }
+            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
+        }
+        // CAUTION: Needed to parenthesize options.path and options.domain
+        // in the following expressions, otherwise they evaluate to undefined
+        // in the packed version for some reason...
+        var path = options.path ? '; path=' + (options.path) : '';
+        var domain = options.domain ? '; domain=' + (options.domain) : '';
+        var secure = options.secure ? '; secure' : '';
+        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
+    } else { // only name given, get cookie
+        var cookieValue = null;
+        if (document.cookie && document.cookie != '') {
+            var cookies = document.cookie.split(';');
+            for (var i = 0; i < cookies.length; i++) {
+                var cookie = jQuery.trim(cookies[i]);
+                // Does this cookie string begin with the name we want?
+                if (cookie.substring(0, name.length + 1) == (name + '=')) {
+                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
+                    break;
+                }
+            }
+        }
+        return cookieValue;
+    }
+};
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.hotkeys.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.hotkeys.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.hotkeys.js	(revision 1516)
@@ -0,0 +1,99 @@
+/*
+ * jQuery Hotkeys Plugin
+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ *
+ * Based upon the plugin by Tzury Bar Yochay:
+ * http://github.com/tzuryby/hotkeys
+ *
+ * Original idea by:
+ * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
+*/
+
+(function(jQuery){
+	
+	jQuery.hotkeys = {
+		version: "0.8",
+
+		specialKeys: {
+			8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
+			20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
+			37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", 
+			96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",
+			104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", 
+			112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", 
+			120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 191: "/", 224: "meta"
+		},
+	
+		shiftNums: {
+			"`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", 
+			"8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", 
+			".": ">",  "/": "?",  "\\": "|"
+		}
+	};
+
+	function keyHandler( handleObj ) {
+		// Only care when a possible input has been specified
+		if ( typeof handleObj.data !== "string" ) {
+			return;
+		}
+		
+		var origHandler = handleObj.handler,
+			keys = handleObj.data.toLowerCase().split(" ");
+	
+		handleObj.handler = function( event ) {
+			// Don't fire in text-accepting inputs that we didn't directly bind to
+			if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||
+				 event.target.type === "text") ) {
+				return;
+			}
+			
+			// Keypress represents characters, not special keys
+			var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ],
+				character = String.fromCharCode( event.which ).toLowerCase(),
+				key, modif = "", possible = {};
+
+			// check combinations (alt|ctrl|shift+anything)
+			if ( event.altKey && special !== "alt" ) {
+				modif += "alt+";
+			}
+
+			if ( event.ctrlKey && special !== "ctrl" ) {
+				modif += "ctrl+";
+			}
+			
+			// TODO: Need to make sure this works consistently across platforms
+			if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {
+				modif += "meta+";
+			}
+
+			if ( event.shiftKey && special !== "shift" ) {
+				modif += "shift+";
+			}
+
+			if ( special ) {
+				possible[ modif + special ] = true;
+
+			} else {
+				possible[ modif + character ] = true;
+				possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;
+
+				// "$" can be triggered as "Shift+4" or "Shift+$" or just "$"
+				if ( modif === "shift+" ) {
+					possible[ jQuery.hotkeys.shiftNums[ character ] ] = true;
+				}
+			}
+
+			for ( var i = 0, l = keys.length; i < l; i++ ) {
+				if ( possible[ keys[i] ] ) {
+					return origHandler.apply( this, arguments );
+				}
+			}
+		};
+	}
+
+	jQuery.each([ "keydown", "keyup", "keypress" ], function() {
+		jQuery.event.special[ this ] = { add: keyHandler };
+	});
+
+})( jQuery );
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/_lib/jquery.js	(revision 1516)
@@ -0,0 +1,6240 @@
+/*!
+ * jQuery JavaScript Library v1.4.2
+ * http://jquery.com/
+ *
+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2010, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Sat Feb 13 22:33:48 2010 -0500
+ */
+(function( window, undefined ) {
+
+// Define a local copy of jQuery
+var jQuery = function( selector, context ) {
+		// The jQuery object is actually just the init constructor 'enhanced'
+		return new jQuery.fn.init( selector, context );
+	},
+
+	// Map over jQuery in case of overwrite
+	_jQuery = window.jQuery,
+
+	// Map over the $ in case of overwrite
+	_$ = window.$,
+
+	// Use the correct document accordingly with window argument (sandbox)
+	document = window.document,
+
+	// A central reference to the root jQuery(document)
+	rootjQuery,
+
+	// A simple way to check for HTML strings or ID strings
+	// (both of which we optimize for)
+	quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,
+
+	// Is it a simple selector
+	isSimple = /^.[^:#\[\.,]*$/,
+
+	// Check if a string has a non-whitespace character in it
+	rnotwhite = /\S/,
+
+	// Used for trimming whitespace
+	rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
+
+	// Match a standalone tag
+	rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+	// Keep a UserAgent string for use with jQuery.browser
+	userAgent = navigator.userAgent,
+
+	// For matching the engine and version of the browser
+	browserMatch,
+	
+	// Has the ready events already been bound?
+	readyBound = false,
+	
+	// The functions to execute on DOM ready
+	readyList = [],
+
+	// The ready event handler
+	DOMContentLoaded,
+
+	// Save a reference to some core methods
+	toString = Object.prototype.toString,
+	hasOwnProperty = Object.prototype.hasOwnProperty,
+	push = Array.prototype.push,
+	slice = Array.prototype.slice,
+	indexOf = Array.prototype.indexOf;
+
+jQuery.fn = jQuery.prototype = {
+	init: function( selector, context ) {
+		var match, elem, ret, doc;
+
+		// Handle $(""), $(null), or $(undefined)
+		if ( !selector ) {
+			return this;
+		}
+
+		// Handle $(DOMElement)
+		if ( selector.nodeType ) {
+			this.context = this[0] = selector;
+			this.length = 1;
+			return this;
+		}
+		
+		// The body element only exists once, optimize finding it
+		if ( selector === "body" && !context ) {
+			this.context = document;
+			this[0] = document.body;
+			this.selector = "body";
+			this.length = 1;
+			return this;
+		}
+
+		// Handle HTML strings
+		if ( typeof selector === "string" ) {
+			// Are we dealing with HTML string or an ID?
+			match = quickExpr.exec( selector );
+
+			// Verify a match, and that no context was specified for #id
+			if ( match && (match[1] || !context) ) {
+
+				// HANDLE: $(html) -> $(array)
+				if ( match[1] ) {
+					doc = (context ? context.ownerDocument || context : document);
+
+					// If a single string is passed in and it's a single tag
+					// just do a createElement and skip the rest
+					ret = rsingleTag.exec( selector );
+
+					if ( ret ) {
+						if ( jQuery.isPlainObject( context ) ) {
+							selector = [ document.createElement( ret[1] ) ];
+							jQuery.fn.attr.call( selector, context, true );
+
+						} else {
+							selector = [ doc.createElement( ret[1] ) ];
+						}
+
+					} else {
+						ret = buildFragment( [ match[1] ], [ doc ] );
+						selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
+					}
+					
+					return jQuery.merge( this, selector );
+					
+				// HANDLE: $("#id")
+				} else {
+					elem = document.getElementById( match[2] );
+
+					if ( elem ) {
+						// Handle the case where IE and Opera return items
+						// by name instead of ID
+						if ( elem.id !== match[2] ) {
+							return rootjQuery.find( selector );
+						}
+
+						// Otherwise, we inject the element directly into the jQuery object
+						this.length = 1;
+						this[0] = elem;
+					}
+
+					this.context = document;
+					this.selector = selector;
+					return this;
+				}
+
+			// HANDLE: $("TAG")
+			} else if ( !context && /^\w+$/.test( selector ) ) {
+				this.selector = selector;
+				this.context = document;
+				selector = document.getElementsByTagName( selector );
+				return jQuery.merge( this, selector );
+
+			// HANDLE: $(expr, $(...))
+			} else if ( !context || context.jquery ) {
+				return (context || rootjQuery).find( selector );
+
+			// HANDLE: $(expr, context)
+			// (which is just equivalent to: $(context).find(expr)
+			} else {
+				return jQuery( context ).find( selector );
+			}
+
+		// HANDLE: $(function)
+		// Shortcut for document ready
+		} else if ( jQuery.isFunction( selector ) ) {
+			return rootjQuery.ready( selector );
+		}
+
+		if (selector.selector !== undefined) {
+			this.selector = selector.selector;
+			this.context = selector.context;
+		}
+
+		return jQuery.makeArray( selector, this );
+	},
+
+	// Start with an empty selector
+	selector: "",
+
+	// The current version of jQuery being used
+	jquery: "1.4.2",
+
+	// The default length of a jQuery object is 0
+	length: 0,
+
+	// The number of elements contained in the matched element set
+	size: function() {
+		return this.length;
+	},
+
+	toArray: function() {
+		return slice.call( this, 0 );
+	},
+
+	// Get the Nth element in the matched element set OR
+	// Get the whole matched element set as a clean array
+	get: function( num ) {
+		return num == null ?
+
+			// Return a 'clean' array
+			this.toArray() :
+
+			// Return just the object
+			( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
+	},
+
+	// Take an array of elements and push it onto the stack
+	// (returning the new matched element set)
+	pushStack: function( elems, name, selector ) {
+		// Build a new jQuery matched element set
+		var ret = jQuery();
+
+		if ( jQuery.isArray( elems ) ) {
+			push.apply( ret, elems );
+		
+		} else {
+			jQuery.merge( ret, elems );
+		}
+
+		// Add the old object onto the stack (as a reference)
+		ret.prevObject = this;
+
+		ret.context = this.context;
+
+		if ( name === "find" ) {
+			ret.selector = this.selector + (this.selector ? " " : "") + selector;
+		} else if ( name ) {
+			ret.selector = this.selector + "." + name + "(" + selector + ")";
+		}
+
+		// Return the newly-formed element set
+		return ret;
+	},
+
+	// Execute a callback for every element in the matched set.
+	// (You can seed the arguments with an array of args, but this is
+	// only used internally.)
+	each: function( callback, args ) {
+		return jQuery.each( this, callback, args );
+	},
+	
+	ready: function( fn ) {
+		// Attach the listeners
+		jQuery.bindReady();
+
+		// If the DOM is already ready
+		if ( jQuery.isReady ) {
+			// Execute the function immediately
+			fn.call( document, jQuery );
+
+		// Otherwise, remember the function for later
+		} else if ( readyList ) {
+			// Add the function to the wait list
+			readyList.push( fn );
+		}
+
+		return this;
+	},
+	
+	eq: function( i ) {
+		return i === -1 ?
+			this.slice( i ) :
+			this.slice( i, +i + 1 );
+	},
+
+	first: function() {
+		return this.eq( 0 );
+	},
+
+	last: function() {
+		return this.eq( -1 );
+	},
+
+	slice: function() {
+		return this.pushStack( slice.apply( this, arguments ),
+			"slice", slice.call(arguments).join(",") );
+	},
+
+	map: function( callback ) {
+		return this.pushStack( jQuery.map(this, function( elem, i ) {
+			return callback.call( elem, i, elem );
+		}));
+	},
+	
+	end: function() {
+		return this.prevObject || jQuery(null);
+	},
+
+	// For internal use only.
+	// Behaves like an Array's method, not like a jQuery method.
+	push: push,
+	sort: [].sort,
+	splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+	// copy reference to target object
+	var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy;
+
+	// Handle a deep copy situation
+	if ( typeof target === "boolean" ) {
+		deep = target;
+		target = arguments[1] || {};
+		// skip the boolean and the target
+		i = 2;
+	}
+
+	// Handle case when target is a string or something (possible in deep copy)
+	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+		target = {};
+	}
+
+	// extend jQuery itself if only one argument is passed
+	if ( length === i ) {
+		target = this;
+		--i;
+	}
+
+	for ( ; i < length; i++ ) {
+		// Only deal with non-null/undefined values
+		if ( (options = arguments[ i ]) != null ) {
+			// Extend the base object
+			for ( name in options ) {
+				src = target[ name ];
+				copy = options[ name ];
+
+				// Prevent never-ending loop
+				if ( target === copy ) {
+					continue;
+				}
+
+				// Recurse if we're merging object literal values or arrays
+				if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) {
+					var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src
+						: jQuery.isArray(copy) ? [] : {};
+
+					// Never move original objects, clone them
+					target[ name ] = jQuery.extend( deep, clone, copy );
+
+				// Don't bring in undefined values
+				} else if ( copy !== undefined ) {
+					target[ name ] = copy;
+				}
+			}
+		}
+	}
+
+	// Return the modified object
+	return target;
+};
+
+jQuery.extend({
+	noConflict: function( deep ) {
+		window.$ = _$;
+
+		if ( deep ) {
+			window.jQuery = _jQuery;
+		}
+
+		return jQuery;
+	},
+	
+	// Is the DOM ready to be used? Set to true once it occurs.
+	isReady: false,
+	
+	// Handle when the DOM is ready
+	ready: function() {
+		// Make sure that the DOM is not already loaded
+		if ( !jQuery.isReady ) {
+			// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+			if ( !document.body ) {
+				return setTimeout( jQuery.ready, 13 );
+			}
+
+			// Remember that the DOM is ready
+			jQuery.isReady = true;
+
+			// If there are functions bound, to execute
+			if ( readyList ) {
+				// Execute all of them
+				var fn, i = 0;
+				while ( (fn = readyList[ i++ ]) ) {
+					fn.call( document, jQuery );
+				}
+
+				// Reset the list of functions
+				readyList = null;
+			}
+
+			// Trigger any bound ready events
+			if ( jQuery.fn.triggerHandler ) {
+				jQuery( document ).triggerHandler( "ready" );
+			}
+		}
+	},
+	
+	bindReady: function() {
+		if ( readyBound ) {
+			return;
+		}
+
+		readyBound = true;
+
+		// Catch cases where $(document).ready() is called after the
+		// browser event has already occurred.
+		if ( document.readyState === "complete" ) {
+			return jQuery.ready();
+		}
+
+		// Mozilla, Opera and webkit nightlies currently support this event
+		if ( document.addEventListener ) {
+			// Use the handy event callback
+			document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+			
+			// A fallback to window.onload, that will always work
+			window.addEventListener( "load", jQuery.ready, false );
+
+		// If IE event model is used
+		} else if ( document.attachEvent ) {
+			// ensure firing before onload,
+			// maybe late but safe also for iframes
+			document.attachEvent("onreadystatechange", DOMContentLoaded);
+			
+			// A fallback to window.onload, that will always work
+			window.attachEvent( "onload", jQuery.ready );
+
+			// If IE and not a frame
+			// continually check to see if the document is ready
+			var toplevel = false;
+
+			try {
+				toplevel = window.frameElement == null;
+			} catch(e) {}
+
+			if ( document.documentElement.doScroll && toplevel ) {
+				doScrollCheck();
+			}
+		}
+	},
+
+	// See test/unit/core.js for details concerning isFunction.
+	// Since version 1.3, DOM methods and functions like alert
+	// aren't supported. They return false on IE (#2968).
+	isFunction: function( obj ) {
+		return toString.call(obj) === "[object Function]";
+	},
+
+	isArray: function( obj ) {
+		return toString.call(obj) === "[object Array]";
+	},
+
+	isPlainObject: function( obj ) {
+		// Must be an Object.
+		// Because of IE, we also have to check the presence of the constructor property.
+		// Make sure that DOM nodes and window objects don't pass through, as well
+		if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) {
+			return false;
+		}
+		
+		// Not own constructor property must be Object
+		if ( obj.constructor
+			&& !hasOwnProperty.call(obj, "constructor")
+			&& !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) {
+			return false;
+		}
+		
+		// Own properties are enumerated firstly, so to speed up,
+		// if last one is own, then all properties are own.
+	
+		var key;
+		for ( key in obj ) {}
+		
+		return key === undefined || hasOwnProperty.call( obj, key );
+	},
+
+	isEmptyObject: function( obj ) {
+		for ( var name in obj ) {
+			return false;
+		}
+		return true;
+	},
+	
+	error: function( msg ) {
+		throw msg;
+	},
+	
+	parseJSON: function( data ) {
+		if ( typeof data !== "string" || !data ) {
+			return null;
+		}
+
+		// Make sure leading/trailing whitespace is removed (IE can't handle it)
+		data = jQuery.trim( data );
+		
+		// Make sure the incoming data is actual JSON
+		// Logic borrowed from http://json.org/json2.js
+		if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@")
+			.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]")
+			.replace(/(?:^|:|,)(?:\s*\[)+/g, "")) ) {
+
+			// Try to use the native JSON parser first
+			return window.JSON && window.JSON.parse ?
+				window.JSON.parse( data ) :
+				(new Function("return " + data))();
+
+		} else {
+			jQuery.error( "Invalid JSON: " + data );
+		}
+	},
+
+	noop: function() {},
+
+	// Evalulates a script in a global context
+	globalEval: function( data ) {
+		if ( data && rnotwhite.test(data) ) {
+			// Inspired by code by Andrea Giammarchi
+			// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
+			var head = document.getElementsByTagName("head")[0] || document.documentElement,
+				script = document.createElement("script");
+
+			script.type = "text/javascript";
+
+			if ( jQuery.support.scriptEval ) {
+				script.appendChild( document.createTextNode( data ) );
+			} else {
+				script.text = data;
+			}
+
+			// Use insertBefore instead of appendChild to circumvent an IE6 bug.
+			// This arises when a base node is used (#2709).
+			head.insertBefore( script, head.firstChild );
+			head.removeChild( script );
+		}
+	},
+
+	nodeName: function( elem, name ) {
+		return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+	},
+
+	// args is for internal usage only
+	each: function( object, callback, args ) {
+		var name, i = 0,
+			length = object.length,
+			isObj = length === undefined || jQuery.isFunction(object);
+
+		if ( args ) {
+			if ( isObj ) {
+				for ( name in object ) {
+					if ( callback.apply( object[ name ], args ) === false ) {
+						break;
+					}
+				}
+			} else {
+				for ( ; i < length; ) {
+					if ( callback.apply( object[ i++ ], args ) === false ) {
+						break;
+					}
+				}
+			}
+
+		// A special, fast, case for the most common use of each
+		} else {
+			if ( isObj ) {
+				for ( name in object ) {
+					if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+						break;
+					}
+				}
+			} else {
+				for ( var value = object[0];
+					i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
+			}
+		}
+
+		return object;
+	},
+
+	trim: function( text ) {
+		return (text || "").replace( rtrim, "" );
+	},
+
+	// results is for internal usage only
+	makeArray: function( array, results ) {
+		var ret = results || [];
+
+		if ( array != null ) {
+			// The window, strings (and functions) also have 'length'
+			// The extra typeof function check is to prevent crashes
+			// in Safari 2 (See: #3039)
+			if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) {
+				push.call( ret, array );
+			} else {
+				jQuery.merge( ret, array );
+			}
+		}
+
+		return ret;
+	},
+
+	inArray: function( elem, array ) {
+		if ( array.indexOf ) {
+			return array.indexOf( elem );
+		}
+
+		for ( var i = 0, length = array.length; i < length; i++ ) {
+			if ( array[ i ] === elem ) {
+				return i;
+			}
+		}
+
+		return -1;
+	},
+
+	merge: function( first, second ) {
+		var i = first.length, j = 0;
+
+		if ( typeof second.length === "number" ) {
+			for ( var l = second.length; j < l; j++ ) {
+				first[ i++ ] = second[ j ];
+			}
+		
+		} else {
+			while ( second[j] !== undefined ) {
+				first[ i++ ] = second[ j++ ];
+			}
+		}
+
+		first.length = i;
+
+		return first;
+	},
+
+	grep: function( elems, callback, inv ) {
+		var ret = [];
+
+		// Go through the array, only saving the items
+		// that pass the validator function
+		for ( var i = 0, length = elems.length; i < length; i++ ) {
+			if ( !inv !== !callback( elems[ i ], i ) ) {
+				ret.push( elems[ i ] );
+			}
+		}
+
+		return ret;
+	},
+
+	// arg is for internal usage only
+	map: function( elems, callback, arg ) {
+		var ret = [], value;
+
+		// Go through the array, translating each of the items to their
+		// new value (or values).
+		for ( var i = 0, length = elems.length; i < length; i++ ) {
+			value = callback( elems[ i ], i, arg );
+
+			if ( value != null ) {
+				ret[ ret.length ] = value;
+			}
+		}
+
+		return ret.concat.apply( [], ret );
+	},
+
+	// A global GUID counter for objects
+	guid: 1,
+
+	proxy: function( fn, proxy, thisObject ) {
+		if ( arguments.length === 2 ) {
+			if ( typeof proxy === "string" ) {
+				thisObject = fn;
+				fn = thisObject[ proxy ];
+				proxy = undefined;
+
+			} else if ( proxy && !jQuery.isFunction( proxy ) ) {
+				thisObject = proxy;
+				proxy = undefined;
+			}
+		}
+
+		if ( !proxy && fn ) {
+			proxy = function() {
+				return fn.apply( thisObject || this, arguments );
+			};
+		}
+
+		// Set the guid of unique handler to the same of original handler, so it can be removed
+		if ( fn ) {
+			proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+		}
+
+		// So proxy can be declared as an argument
+		return proxy;
+	},
+
+	// Use of jQuery.browser is frowned upon.
+	// More details: http://docs.jquery.com/Utilities/jQuery.browser
+	uaMatch: function( ua ) {
+		ua = ua.toLowerCase();
+
+		var match = /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
+			/(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) ||
+			/(msie) ([\w.]+)/.exec( ua ) ||
+			!/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) ||
+		  	[];
+
+		return { browser: match[1] || "", version: match[2] || "0" };
+	},
+
+	browser: {}
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+	jQuery.browser[ browserMatch.browser ] = true;
+	jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+	jQuery.browser.safari = true;
+}
+
+if ( indexOf ) {
+	jQuery.inArray = function( elem, array ) {
+		return indexOf.call( array, elem );
+	};
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+	DOMContentLoaded = function() {
+		document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+		jQuery.ready();
+	};
+
+} else if ( document.attachEvent ) {
+	DOMContentLoaded = function() {
+		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+		if ( document.readyState === "complete" ) {
+			document.detachEvent( "onreadystatechange", DOMContentLoaded );
+			jQuery.ready();
+		}
+	};
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+	if ( jQuery.isReady ) {
+		return;
+	}
+
+	try {
+		// If IE is used, use the trick by Diego Perini
+		// http://javascript.nwbox.com/IEContentLoaded/
+		document.documentElement.doScroll("left");
+	} catch( error ) {
+		setTimeout( doScrollCheck, 1 );
+		return;
+	}
+
+	// and execute any waiting functions
+	jQuery.ready();
+}
+
+function evalScript( i, elem ) {
+	if ( elem.src ) {
+		jQuery.ajax({
+			url: elem.src,
+			async: false,
+			dataType: "script"
+		});
+	} else {
+		jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
+	}
+
+	if ( elem.parentNode ) {
+		elem.parentNode.removeChild( elem );
+	}
+}
+
+// Mutifunctional method to get and set values to a collection
+// The value/s can be optionally by executed if its a function
+function access( elems, key, value, exec, fn, pass ) {
+	var length = elems.length;
+	
+	// Setting many attributes
+	if ( typeof key === "object" ) {
+		for ( var k in key ) {
+			access( elems, k, key[k], exec, fn, value );
+		}
+		return elems;
+	}
+	
+	// Setting one attribute
+	if ( value !== undefined ) {
+		// Optionally, function values get executed if exec is true
+		exec = !pass && exec && jQuery.isFunction(value);
+		
+		for ( var i = 0; i < length; i++ ) {
+			fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+		}
+		
+		return elems;
+	}
+	
+	// Getting an attribute
+	return length ? fn( elems[0], key ) : undefined;
+}
+
+function now() {
+	return (new Date).getTime();
+}
+(function() {
+
+	jQuery.support = {};
+
+	var root = document.documentElement,
+		script = document.createElement("script"),
+		div = document.createElement("div"),
+		id = "script" + now();
+
+	div.style.display = "none";
+	div.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+
+	var all = div.getElementsByTagName("*"),
+		a = div.getElementsByTagName("a")[0];
+
+	// Can't get basic test support
+	if ( !all || !all.length || !a ) {
+		return;
+	}
+
+	jQuery.support = {
+		// IE strips leading whitespace when .innerHTML is used
+		leadingWhitespace: div.firstChild.nodeType === 3,
+
+		// Make sure that tbody elements aren't automatically inserted
+		// IE will insert them into empty tables
+		tbody: !div.getElementsByTagName("tbody").length,
+
+		// Make sure that link elements get serialized correctly by innerHTML
+		// This requires a wrapper element in IE
+		htmlSerialize: !!div.getElementsByTagName("link").length,
+
+		// Get the style information from getAttribute
+		// (IE uses .cssText insted)
+		style: /red/.test( a.getAttribute("style") ),
+
+		// Make sure that URLs aren't manipulated
+		// (IE normalizes it by default)
+		hrefNormalized: a.getAttribute("href") === "/a",
+
+		// Make sure that element opacity exists
+		// (IE uses filter instead)
+		// Use a regex to work around a WebKit issue. See #5145
+		opacity: /^0.55$/.test( a.style.opacity ),
+
+		// Verify style float existence
+		// (IE uses styleFloat instead of cssFloat)
+		cssFloat: !!a.style.cssFloat,
+
+		// Make sure that if no value is specified for a checkbox
+		// that it defaults to "on".
+		// (WebKit defaults to "" instead)
+		checkOn: div.getElementsByTagName("input")[0].value === "on",
+
+		// Make sure that a selected-by-default option has a working selected property.
+		// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+		optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected,
+
+		parentNode: div.removeChild( div.appendChild( document.createElement("div") ) ).parentNode === null,
+
+		// Will be defined later
+		deleteExpando: true,
+		checkClone: false,
+		scriptEval: false,
+		noCloneEvent: true,
+		boxModel: null
+	};
+
+	script.type = "text/javascript";
+	try {
+		script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
+	} catch(e) {}
+
+	root.insertBefore( script, root.firstChild );
+
+	// Make sure that the execution of code works by injecting a script
+	// tag with appendChild/createTextNode
+	// (IE doesn't support this, fails, and uses .text instead)
+	if ( window[ id ] ) {
+		jQuery.support.scriptEval = true;
+		delete window[ id ];
+	}
+
+	// Test to see if it's possible to delete an expando from an element
+	// Fails in Internet Explorer
+	try {
+		delete script.test;
+	
+	} catch(e) {
+		jQuery.support.deleteExpando = false;
+	}
+
+	root.removeChild( script );
+
+	if ( div.attachEvent && div.fireEvent ) {
+		div.attachEvent("onclick", function click() {
+			// Cloning a node shouldn't copy over any
+			// bound event handlers (IE does this)
+			jQuery.support.noCloneEvent = false;
+			div.detachEvent("onclick", click);
+		});
+		div.cloneNode(true).fireEvent("onclick");
+	}
+
+	div = document.createElement("div");
+	div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
+
+	var fragment = document.createDocumentFragment();
+	fragment.appendChild( div.firstChild );
+
+	// WebKit doesn't clone checked state correctly in fragments
+	jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
+
+	// Figure out if the W3C box model works as expected
+	// document.body must exist before we can do this
+	jQuery(function() {
+		var div = document.createElement("div");
+		div.style.width = div.style.paddingLeft = "1px";
+
+		document.body.appendChild( div );
+		jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
+		document.body.removeChild( div ).style.display = 'none';
+
+		div = null;
+	});
+
+	// Technique from Juriy Zaytsev
+	// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
+	var eventSupported = function( eventName ) { 
+		var el = document.createElement("div"); 
+		eventName = "on" + eventName; 
+
+		var isSupported = (eventName in el); 
+		if ( !isSupported ) { 
+			el.setAttribute(eventName, "return;"); 
+			isSupported = typeof el[eventName] === "function"; 
+		} 
+		el = null; 
+
+		return isSupported; 
+	};
+	
+	jQuery.support.submitBubbles = eventSupported("submit");
+	jQuery.support.changeBubbles = eventSupported("change");
+
+	// release memory in IE
+	root = script = div = all = a = null;
+})();
+
+jQuery.props = {
+	"for": "htmlFor",
+	"class": "className",
+	readonly: "readOnly",
+	maxlength: "maxLength",
+	cellspacing: "cellSpacing",
+	rowspan: "rowSpan",
+	colspan: "colSpan",
+	tabindex: "tabIndex",
+	usemap: "useMap",
+	frameborder: "frameBorder"
+};
+var expando = "jQuery" + now(), uuid = 0, windowData = {};
+
+jQuery.extend({
+	cache: {},
+	
+	expando:expando,
+
+	// The following elements throw uncatchable exceptions if you
+	// attempt to add expando properties to them.
+	noData: {
+		"embed": true,
+		"object": true,
+		"applet": true
+	},
+
+	data: function( elem, name, data ) {
+		if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+			return;
+		}
+
+		elem = elem == window ?
+			windowData :
+			elem;
+
+		var id = elem[ expando ], cache = jQuery.cache, thisCache;
+
+		if ( !id && typeof name === "string" && data === undefined ) {
+			return null;
+		}
+
+		// Compute a unique ID for the element
+		if ( !id ) { 
+			id = ++uuid;
+		}
+
+		// Avoid generating a new cache unless none exists and we
+		// want to manipulate it.
+		if ( typeof name === "object" ) {
+			elem[ expando ] = id;
+			thisCache = cache[ id ] = jQuery.extend(true, {}, name);
+
+		} else if ( !cache[ id ] ) {
+			elem[ expando ] = id;
+			cache[ id ] = {};
+		}
+
+		thisCache = cache[ id ];
+
+		// Prevent overriding the named cache with undefined values
+		if ( data !== undefined ) {
+			thisCache[ name ] = data;
+		}
+
+		return typeof name === "string" ? thisCache[ name ] : thisCache;
+	},
+
+	removeData: function( elem, name ) {
+		if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+			return;
+		}
+
+		elem = elem == window ?
+			windowData :
+			elem;
+
+		var id = elem[ expando ], cache = jQuery.cache, thisCache = cache[ id ];
+
+		// If we want to remove a specific section of the element's data
+		if ( name ) {
+			if ( thisCache ) {
+				// Remove the section of cache data
+				delete thisCache[ name ];
+
+				// If we've removed all the data, remove the element's cache
+				if ( jQuery.isEmptyObject(thisCache) ) {
+					jQuery.removeData( elem );
+				}
+			}
+
+		// Otherwise, we want to remove all of the element's data
+		} else {
+			if ( jQuery.support.deleteExpando ) {
+				delete elem[ jQuery.expando ];
+
+			} else if ( elem.removeAttribute ) {
+				elem.removeAttribute( jQuery.expando );
+			}
+
+			// Completely remove the data cache
+			delete cache[ id ];
+		}
+	}
+});
+
+jQuery.fn.extend({
+	data: function( key, value ) {
+		if ( typeof key === "undefined" && this.length ) {
+			return jQuery.data( this[0] );
+
+		} else if ( typeof key === "object" ) {
+			return this.each(function() {
+				jQuery.data( this, key );
+			});
+		}
+
+		var parts = key.split(".");
+		parts[1] = parts[1] ? "." + parts[1] : "";
+
+		if ( value === undefined ) {
+			var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+			if ( data === undefined && this.length ) {
+				data = jQuery.data( this[0], key );
+			}
+			return data === undefined && parts[1] ?
+				this.data( parts[0] ) :
+				data;
+		} else {
+			return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() {
+				jQuery.data( this, key, value );
+			});
+		}
+	},
+
+	removeData: function( key ) {
+		return this.each(function() {
+			jQuery.removeData( this, key );
+		});
+	}
+});
+jQuery.extend({
+	queue: function( elem, type, data ) {
+		if ( !elem ) {
+			return;
+		}
+
+		type = (type || "fx") + "queue";
+		var q = jQuery.data( elem, type );
+
+		// Speed up dequeue by getting out quickly if this is just a lookup
+		if ( !data ) {
+			return q || [];
+		}
+
+		if ( !q || jQuery.isArray(data) ) {
+			q = jQuery.data( elem, type, jQuery.makeArray(data) );
+
+		} else {
+			q.push( data );
+		}
+
+		return q;
+	},
+
+	dequeue: function( elem, type ) {
+		type = type || "fx";
+
+		var queue = jQuery.queue( elem, type ), fn = queue.shift();
+
+		// If the fx queue is dequeued, always remove the progress sentinel
+		if ( fn === "inprogress" ) {
+			fn = queue.shift();
+		}
+
+		if ( fn ) {
+			// Add a progress sentinel to prevent the fx queue from being
+			// automatically dequeued
+			if ( type === "fx" ) {
+				queue.unshift("inprogress");
+			}
+
+			fn.call(elem, function() {
+				jQuery.dequeue(elem, type);
+			});
+		}
+	}
+});
+
+jQuery.fn.extend({
+	queue: function( type, data ) {
+		if ( typeof type !== "string" ) {
+			data = type;
+			type = "fx";
+		}
+
+		if ( data === undefined ) {
+			return jQuery.queue( this[0], type );
+		}
+		return this.each(function( i, elem ) {
+			var queue = jQuery.queue( this, type, data );
+
+			if ( type === "fx" && queue[0] !== "inprogress" ) {
+				jQuery.dequeue( this, type );
+			}
+		});
+	},
+	dequeue: function( type ) {
+		return this.each(function() {
+			jQuery.dequeue( this, type );
+		});
+	},
+
+	// Based off of the plugin by Clint Helfers, with permission.
+	// http://blindsignals.com/index.php/2009/07/jquery-delay/
+	delay: function( time, type ) {
+		time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
+		type = type || "fx";
+
+		return this.queue( type, function() {
+			var elem = this;
+			setTimeout(function() {
+				jQuery.dequeue( elem, type );
+			}, time );
+		});
+	},
+
+	clearQueue: function( type ) {
+		return this.queue( type || "fx", [] );
+	}
+});
+var rclass = /[\n\t]/g,
+	rspace = /\s+/,
+	rreturn = /\r/g,
+	rspecialurl = /href|src|style/,
+	rtype = /(button|input)/i,
+	rfocusable = /(button|input|object|select|textarea)/i,
+	rclickable = /^(a|area)$/i,
+	rradiocheck = /radio|checkbox/;
+
+jQuery.fn.extend({
+	attr: function( name, value ) {
+		return access( this, name, value, true, jQuery.attr );
+	},
+
+	removeAttr: function( name, fn ) {
+		return this.each(function(){
+			jQuery.attr( this, name, "" );
+			if ( this.nodeType === 1 ) {
+				this.removeAttribute( name );
+			}
+		});
+	},
+
+	addClass: function( value ) {
+		if ( jQuery.isFunction(value) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.addClass( value.call(this, i, self.attr("class")) );
+			});
+		}
+
+		if ( value && typeof value === "string" ) {
+			var classNames = (value || "").split( rspace );
+
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var elem = this[i];
+
+				if ( elem.nodeType === 1 ) {
+					if ( !elem.className ) {
+						elem.className = value;
+
+					} else {
+						var className = " " + elem.className + " ", setClass = elem.className;
+						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
+							if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
+								setClass += " " + classNames[c];
+							}
+						}
+						elem.className = jQuery.trim( setClass );
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	removeClass: function( value ) {
+		if ( jQuery.isFunction(value) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.removeClass( value.call(this, i, self.attr("class")) );
+			});
+		}
+
+		if ( (value && typeof value === "string") || value === undefined ) {
+			var classNames = (value || "").split(rspace);
+
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var elem = this[i];
+
+				if ( elem.nodeType === 1 && elem.className ) {
+					if ( value ) {
+						var className = (" " + elem.className + " ").replace(rclass, " ");
+						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
+							className = className.replace(" " + classNames[c] + " ", " ");
+						}
+						elem.className = jQuery.trim( className );
+
+					} else {
+						elem.className = "";
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	toggleClass: function( value, stateVal ) {
+		var type = typeof value, isBool = typeof stateVal === "boolean";
+
+		if ( jQuery.isFunction( value ) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
+			});
+		}
+
+		return this.each(function() {
+			if ( type === "string" ) {
+				// toggle individual class names
+				var className, i = 0, self = jQuery(this),
+					state = stateVal,
+					classNames = value.split( rspace );
+
+				while ( (className = classNames[ i++ ]) ) {
+					// check each className given, space seperated list
+					state = isBool ? state : !self.hasClass( className );
+					self[ state ? "addClass" : "removeClass" ]( className );
+				}
+
+			} else if ( type === "undefined" || type === "boolean" ) {
+				if ( this.className ) {
+					// store className if set
+					jQuery.data( this, "__className__", this.className );
+				}
+
+				// toggle whole className
+				this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
+			}
+		});
+	},
+
+	hasClass: function( selector ) {
+		var className = " " + selector + " ";
+		for ( var i = 0, l = this.length; i < l; i++ ) {
+			if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+				return true;
+			}
+		}
+
+		return false;
+	},
+
+	val: function( value ) {
+		if ( value === undefined ) {
+			var elem = this[0];
+
+			if ( elem ) {
+				if ( jQuery.nodeName( elem, "option" ) ) {
+					return (elem.attributes.value || {}).specified ? elem.value : elem.text;
+				}
+
+				// We need to handle select boxes special
+				if ( jQuery.nodeName( elem, "select" ) ) {
+					var index = elem.selectedIndex,
+						values = [],
+						options = elem.options,
+						one = elem.type === "select-one";
+
+					// Nothing was selected
+					if ( index < 0 ) {
+						return null;
+					}
+
+					// Loop through all the selected options
+					for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
+						var option = options[ i ];
+
+						if ( option.selected ) {
+							// Get the specifc value for the option
+							value = jQuery(option).val();
+
+							// We don't need an array for one selects
+							if ( one ) {
+								return value;
+							}
+
+							// Multi-Selects return an array
+							values.push( value );
+						}
+					}
+
+					return values;
+				}
+
+				// Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+				if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
+					return elem.getAttribute("value") === null ? "on" : elem.value;
+				}
+				
+
+				// Everything else, we just grab the value
+				return (elem.value || "").replace(rreturn, "");
+
+			}
+
+			return undefined;
+		}
+
+		var isFunction = jQuery.isFunction(value);
+
+		return this.each(function(i) {
+			var self = jQuery(this), val = value;
+
+			if ( this.nodeType !== 1 ) {
+				return;
+			}
+
+			if ( isFunction ) {
+				val = value.call(this, i, self.val());
+			}
+
+			// Typecast each time if the value is a Function and the appended
+			// value is therefore different each time.
+			if ( typeof val === "number" ) {
+				val += "";
+			}
+
+			if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
+				this.checked = jQuery.inArray( self.val(), val ) >= 0;
+
+			} else if ( jQuery.nodeName( this, "select" ) ) {
+				var values = jQuery.makeArray(val);
+
+				jQuery( "option", this ).each(function() {
+					this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+				});
+
+				if ( !values.length ) {
+					this.selectedIndex = -1;
+				}
+
+			} else {
+				this.value = val;
+			}
+		});
+	}
+});
+
+jQuery.extend({
+	attrFn: {
+		val: true,
+		css: true,
+		html: true,
+		text: true,
+		data: true,
+		width: true,
+		height: true,
+		offset: true
+	},
+		
+	attr: function( elem, name, value, pass ) {
+		// don't set attributes on text and comment nodes
+		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return undefined;
+		}
+
+		if ( pass && name in jQuery.attrFn ) {
+			return jQuery(elem)[name](value);
+		}
+
+		var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
+			// Whether we are setting (or getting)
+			set = value !== undefined;
+
+		// Try to normalize/fix the name
+		name = notxml && jQuery.props[ name ] || name;
+
+		// Only do all the following if this is a node (faster for style)
+		if ( elem.nodeType === 1 ) {
+			// These attributes require special treatment
+			var special = rspecialurl.test( name );
+
+			// Safari mis-reports the default selected property of an option
+			// Accessing the parent's selectedIndex property fixes it
+			if ( name === "selected" && !jQuery.support.optSelected ) {
+				var parent = elem.parentNode;
+				if ( parent ) {
+					parent.selectedIndex;
+	
+					// Make sure that it also works with optgroups, see #5701
+					if ( parent.parentNode ) {
+						parent.parentNode.selectedIndex;
+					}
+				}
+			}
+
+			// If applicable, access the attribute via the DOM 0 way
+			if ( name in elem && notxml && !special ) {
+				if ( set ) {
+					// We can't allow the type property to be changed (since it causes problems in IE)
+					if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
+						jQuery.error( "type property can't be changed" );
+					}
+
+					elem[ name ] = value;
+				}
+
+				// browsers index elements by id/name on forms, give priority to attributes.
+				if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
+					return elem.getAttributeNode( name ).nodeValue;
+				}
+
+				// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+				if ( name === "tabIndex" ) {
+					var attributeNode = elem.getAttributeNode( "tabIndex" );
+
+					return attributeNode && attributeNode.specified ?
+						attributeNode.value :
+						rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+							0 :
+							undefined;
+				}
+
+				return elem[ name ];
+			}
+
+			if ( !jQuery.support.style && notxml && name === "style" ) {
+				if ( set ) {
+					elem.style.cssText = "" + value;
+				}
+
+				return elem.style.cssText;
+			}
+
+			if ( set ) {
+				// convert the value to a string (all browsers do this but IE) see #1070
+				elem.setAttribute( name, "" + value );
+			}
+
+			var attr = !jQuery.support.hrefNormalized && notxml && special ?
+					// Some attributes require a special call on IE
+					elem.getAttribute( name, 2 ) :
+					elem.getAttribute( name );
+
+			// Non-existent attributes return null, we normalize to undefined
+			return attr === null ? undefined : attr;
+		}
+
+		// elem is actually elem.style ... set the style
+		// Using attr for specific style information is now deprecated. Use style instead.
+		return jQuery.style( elem, name, value );
+	}
+});
+var rnamespaces = /\.(.*)$/,
+	fcleanup = function( nm ) {
+		return nm.replace(/[^\w\s\.\|`]/g, function( ch ) {
+			return "\\" + ch;
+		});
+	};
+
+/*
+ * A number of helper functions used for managing events.
+ * Many of the ideas behind this code originated from
+ * Dean Edwards' addEvent library.
+ */
+jQuery.event = {
+
+	// Bind an event to an element
+	// Original by Dean Edwards
+	add: function( elem, types, handler, data ) {
+		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return;
+		}
+
+		// For whatever reason, IE has trouble passing the window object
+		// around, causing it to be cloned in the process
+		if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) {
+			elem = window;
+		}
+
+		var handleObjIn, handleObj;
+
+		if ( handler.handler ) {
+			handleObjIn = handler;
+			handler = handleObjIn.handler;
+		}
+
+		// Make sure that the function being executed has a unique ID
+		if ( !handler.guid ) {
+			handler.guid = jQuery.guid++;
+		}
+
+		// Init the element's event structure
+		var elemData = jQuery.data( elem );
+
+		// If no elemData is found then we must be trying to bind to one of the
+		// banned noData elements
+		if ( !elemData ) {
+			return;
+		}
+
+		var events = elemData.events = elemData.events || {},
+			eventHandle = elemData.handle, eventHandle;
+
+		if ( !eventHandle ) {
+			elemData.handle = eventHandle = function() {
+				// Handle the second event of a trigger and when
+				// an event is called after a page has unloaded
+				return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
+					jQuery.event.handle.apply( eventHandle.elem, arguments ) :
+					undefined;
+			};
+		}
+
+		// Add elem as a property of the handle function
+		// This is to prevent a memory leak with non-native events in IE.
+		eventHandle.elem = elem;
+
+		// Handle multiple events separated by a space
+		// jQuery(...).bind("mouseover mouseout", fn);
+		types = types.split(" ");
+
+		var type, i = 0, namespaces;
+
+		while ( (type = types[ i++ ]) ) {
+			handleObj = handleObjIn ?
+				jQuery.extend({}, handleObjIn) :
+				{ handler: handler, data: data };
+
+			// Namespaced event handlers
+			if ( type.indexOf(".") > -1 ) {
+				namespaces = type.split(".");
+				type = namespaces.shift();
+				handleObj.namespace = namespaces.slice(0).sort().join(".");
+
+			} else {
+				namespaces = [];
+				handleObj.namespace = "";
+			}
+
+			handleObj.type = type;
+			handleObj.guid = handler.guid;
+
+			// Get the current list of functions bound to this event
+			var handlers = events[ type ],
+				special = jQuery.event.special[ type ] || {};
+
+			// Init the event handler queue
+			if ( !handlers ) {
+				handlers = events[ type ] = [];
+
+				// Check for a special event handler
+				// Only use addEventListener/attachEvent if the special
+				// events handler returns false
+				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+					// Bind the global event handler to the element
+					if ( elem.addEventListener ) {
+						elem.addEventListener( type, eventHandle, false );
+
+					} else if ( elem.attachEvent ) {
+						elem.attachEvent( "on" + type, eventHandle );
+					}
+				}
+			}
+			
+			if ( special.add ) { 
+				special.add.call( elem, handleObj ); 
+
+				if ( !handleObj.handler.guid ) {
+					handleObj.handler.guid = handler.guid;
+				}
+			}
+
+			// Add the function to the element's handler list
+			handlers.push( handleObj );
+
+			// Keep track of which events have been used, for global triggering
+			jQuery.event.global[ type ] = true;
+		}
+
+		// Nullify elem to prevent memory leaks in IE
+		elem = null;
+	},
+
+	global: {},
+
+	// Detach an event or set of events from an element
+	remove: function( elem, types, handler, pos ) {
+		// don't do events on text and comment nodes
+		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return;
+		}
+
+		var ret, type, fn, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
+			elemData = jQuery.data( elem ),
+			events = elemData && elemData.events;
+
+		if ( !elemData || !events ) {
+			return;
+		}
+
+		// types is actually an event object here
+		if ( types && types.type ) {
+			handler = types.handler;
+			types = types.type;
+		}
+
+		// Unbind all events for the element
+		if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
+			types = types || "";
+
+			for ( type in events ) {
+				jQuery.event.remove( elem, type + types );
+			}
+
+			return;
+		}
+
+		// Handle multiple events separated by a space
+		// jQuery(...).unbind("mouseover mouseout", fn);
+		types = types.split(" ");
+
+		while ( (type = types[ i++ ]) ) {
+			origType = type;
+			handleObj = null;
+			all = type.indexOf(".") < 0;
+			namespaces = [];
+
+			if ( !all ) {
+				// Namespaced event handlers
+				namespaces = type.split(".");
+				type = namespaces.shift();
+
+				namespace = new RegExp("(^|\\.)" + 
+					jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)")
+			}
+
+			eventType = events[ type ];
+
+			if ( !eventType ) {
+				continue;
+			}
+
+			if ( !handler ) {
+				for ( var j = 0; j < eventType.length; j++ ) {
+					handleObj = eventType[ j ];
+
+					if ( all || namespace.test( handleObj.namespace ) ) {
+						jQuery.event.remove( elem, origType, handleObj.handler, j );
+						eventType.splice( j--, 1 );
+					}
+				}
+
+				continue;
+			}
+
+			special = jQuery.event.special[ type ] || {};
+
+			for ( var j = pos || 0; j < eventType.length; j++ ) {
+				handleObj = eventType[ j ];
+
+				if ( handler.guid === handleObj.guid ) {
+					// remove the given handler for the given type
+					if ( all || namespace.test( handleObj.namespace ) ) {
+						if ( pos == null ) {
+							eventType.splice( j--, 1 );
+						}
+
+						if ( special.remove ) {
+							special.remove.call( elem, handleObj );
+						}
+					}
+
+					if ( pos != null ) {
+						break;
+					}
+				}
+			}
+
+			// remove generic event handler if no more handlers exist
+			if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
+				if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+					removeEvent( elem, type, elemData.handle );
+				}
+
+				ret = null;
+				delete events[ type ];
+			}
+		}
+
+		// Remove the expando if it's no longer used
+		if ( jQuery.isEmptyObject( events ) ) {
+			var handle = elemData.handle;
+			if ( handle ) {
+				handle.elem = null;
+			}
+
+			delete elemData.events;
+			delete elemData.handle;
+
+			if ( jQuery.isEmptyObject( elemData ) ) {
+				jQuery.removeData( elem );
+			}
+		}
+	},
+
+	// bubbling is internal
+	trigger: function( event, data, elem /*, bubbling */ ) {
+		// Event object or event type
+		var type = event.type || event,
+			bubbling = arguments[3];
+
+		if ( !bubbling ) {
+			event = typeof event === "object" ?
+				// jQuery.Event object
+				event[expando] ? event :
+				// Object literal
+				jQuery.extend( jQuery.Event(type), event ) :
+				// Just the event type (string)
+				jQuery.Event(type);
+
+			if ( type.indexOf("!") >= 0 ) {
+				event.type = type = type.slice(0, -1);
+				event.exclusive = true;
+			}
+
+			// Handle a global trigger
+			if ( !elem ) {
+				// Don't bubble custom events when global (to avoid too much overhead)
+				event.stopPropagation();
+
+				// Only trigger if we've ever bound an event for it
+				if ( jQuery.event.global[ type ] ) {
+					jQuery.each( jQuery.cache, function() {
+						if ( this.events && this.events[type] ) {
+							jQuery.event.trigger( event, data, this.handle.elem );
+						}
+					});
+				}
+			}
+
+			// Handle triggering a single element
+
+			// don't do events on text and comment nodes
+			if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
+				return undefined;
+			}
+
+			// Clean up in case it is reused
+			event.result = undefined;
+			event.target = elem;
+
+			// Clone the incoming data, if any
+			data = jQuery.makeArray( data );
+			data.unshift( event );
+		}
+
+		event.currentTarget = elem;
+
+		// Trigger the event, it is assumed that "handle" is a function
+		var handle = jQuery.data( elem, "handle" );
+		if ( handle ) {
+			handle.apply( elem, data );
+		}
+
+		var parent = elem.parentNode || elem.ownerDocument;
+
+		// Trigger an inline bound script
+		try {
+			if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
+				if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
+					event.result = false;
+				}
+			}
+
+		// prevent IE from throwing an error for some elements with some event types, see #3533
+		} catch (e) {}
+
+		if ( !event.isPropagationStopped() && parent ) {
+			jQuery.event.trigger( event, data, parent, true );
+
+		} else if ( !event.isDefaultPrevented() ) {
+			var target = event.target, old,
+				isClick = jQuery.nodeName(target, "a") && type === "click",
+				special = jQuery.event.special[ type ] || {};
+
+			if ( (!special._default || special._default.call( elem, event ) === false) && 
+				!isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
+
+				try {
+					if ( target[ type ] ) {
+						// Make sure that we don't accidentally re-trigger the onFOO events
+						old = target[ "on" + type ];
+
+						if ( old ) {
+							target[ "on" + type ] = null;
+						}
+
+						jQuery.event.triggered = true;
+						target[ type ]();
+					}
+
+				// prevent IE from throwing an error for some elements with some event types, see #3533
+				} catch (e) {}
+
+				if ( old ) {
+					target[ "on" + type ] = old;
+				}
+
+				jQuery.event.triggered = false;
+			}
+		}
+	},
+
+	handle: function( event ) {
+		var all, handlers, namespaces, namespace, events;
+
+		event = arguments[0] = jQuery.event.fix( event || window.event );
+		event.currentTarget = this;
+
+		// Namespaced event handlers
+		all = event.type.indexOf(".") < 0 && !event.exclusive;
+
+		if ( !all ) {
+			namespaces = event.type.split(".");
+			event.type = namespaces.shift();
+			namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)");
+		}
+
+		var events = jQuery.data(this, "events"), handlers = events[ event.type ];
+
+		if ( events && handlers ) {
+			// Clone the handlers to prevent manipulation
+			handlers = handlers.slice(0);
+
+			for ( var j = 0, l = handlers.length; j < l; j++ ) {
+				var handleObj = handlers[ j ];
+
+				// Filter the functions by class
+				if ( all || namespace.test( handleObj.namespace ) ) {
+					// Pass in a reference to the handler function itself
+					// So that we can later remove it
+					event.handler = handleObj.handler;
+					event.data = handleObj.data;
+					event.handleObj = handleObj;
+	
+					var ret = handleObj.handler.apply( this, arguments );
+
+					if ( ret !== undefined ) {
+						event.result = ret;
+						if ( ret === false ) {
+							event.preventDefault();
+							event.stopPropagation();
+						}
+					}
+
+					if ( event.isImmediatePropagationStopped() ) {
+						break;
+					}
+				}
+			}
+		}
+
+		return event.result;
+	},
+
+	props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+
+	fix: function( event ) {
+		if ( event[ expando ] ) {
+			return event;
+		}
+
+		// store a copy of the original event object
+		// and "clone" to set read-only properties
+		var originalEvent = event;
+		event = jQuery.Event( originalEvent );
+
+		for ( var i = this.props.length, prop; i; ) {
+			prop = this.props[ --i ];
+			event[ prop ] = originalEvent[ prop ];
+		}
+
+		// Fix target property, if necessary
+		if ( !event.target ) {
+			event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
+		}
+
+		// check if target is a textnode (safari)
+		if ( event.target.nodeType === 3 ) {
+			event.target = event.target.parentNode;
+		}
+
+		// Add relatedTarget, if necessary
+		if ( !event.relatedTarget && event.fromElement ) {
+			event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
+		}
+
+		// Calculate pageX/Y if missing and clientX/Y available
+		if ( event.pageX == null && event.clientX != null ) {
+			var doc = document.documentElement, body = document.body;
+			event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
+			event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
+		}
+
+		// Add which for key events
+		if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) {
+			event.which = event.charCode || event.keyCode;
+		}
+
+		// Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
+		if ( !event.metaKey && event.ctrlKey ) {
+			event.metaKey = event.ctrlKey;
+		}
+
+		// Add which for click: 1 === left; 2 === middle; 3 === right
+		// Note: button is not normalized, so don't use it
+		if ( !event.which && event.button !== undefined ) {
+			event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
+		}
+
+		return event;
+	},
+
+	// Deprecated, use jQuery.guid instead
+	guid: 1E8,
+
+	// Deprecated, use jQuery.proxy instead
+	proxy: jQuery.proxy,
+
+	special: {
+		ready: {
+			// Make sure the ready event is setup
+			setup: jQuery.bindReady,
+			teardown: jQuery.noop
+		},
+
+		live: {
+			add: function( handleObj ) {
+				jQuery.event.add( this, handleObj.origType, jQuery.extend({}, handleObj, {handler: liveHandler}) ); 
+			},
+
+			remove: function( handleObj ) {
+				var remove = true,
+					type = handleObj.origType.replace(rnamespaces, "");
+				
+				jQuery.each( jQuery.data(this, "events").live || [], function() {
+					if ( type === this.origType.replace(rnamespaces, "") ) {
+						remove = false;
+						return false;
+					}
+				});
+
+				if ( remove ) {
+					jQuery.event.remove( this, handleObj.origType, liveHandler );
+				}
+			}
+
+		},
+
+		beforeunload: {
+			setup: function( data, namespaces, eventHandle ) {
+				// We only want to do this special case on windows
+				if ( this.setInterval ) {
+					this.onbeforeunload = eventHandle;
+				}
+
+				return false;
+			},
+			teardown: function( namespaces, eventHandle ) {
+				if ( this.onbeforeunload === eventHandle ) {
+					this.onbeforeunload = null;
+				}
+			}
+		}
+	}
+};
+
+var removeEvent = document.removeEventListener ?
+	function( elem, type, handle ) {
+		elem.removeEventListener( type, handle, false );
+	} : 
+	function( elem, type, handle ) {
+		elem.detachEvent( "on" + type, handle );
+	};
+
+jQuery.Event = function( src ) {
+	// Allow instantiation without the 'new' keyword
+	if ( !this.preventDefault ) {
+		return new jQuery.Event( src );
+	}
+
+	// Event object
+	if ( src && src.type ) {
+		this.originalEvent = src;
+		this.type = src.type;
+	// Event type
+	} else {
+		this.type = src;
+	}
+
+	// timeStamp is buggy for some events on Firefox(#3843)
+	// So we won't rely on the native value
+	this.timeStamp = now();
+
+	// Mark it as fixed
+	this[ expando ] = true;
+};
+
+function returnFalse() {
+	return false;
+}
+function returnTrue() {
+	return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+	preventDefault: function() {
+		this.isDefaultPrevented = returnTrue;
+
+		var e = this.originalEvent;
+		if ( !e ) {
+			return;
+		}
+		
+		// if preventDefault exists run it on the original event
+		if ( e.preventDefault ) {
+			e.preventDefault();
+		}
+		// otherwise set the returnValue property of the original event to false (IE)
+		e.returnValue = false;
+	},
+	stopPropagation: function() {
+		this.isPropagationStopped = returnTrue;
+
+		var e = this.originalEvent;
+		if ( !e ) {
+			return;
+		}
+		// if stopPropagation exists run it on the original event
+		if ( e.stopPropagation ) {
+			e.stopPropagation();
+		}
+		// otherwise set the cancelBubble property of the original event to true (IE)
+		e.cancelBubble = true;
+	},
+	stopImmediatePropagation: function() {
+		this.isImmediatePropagationStopped = returnTrue;
+		this.stopPropagation();
+	},
+	isDefaultPrevented: returnFalse,
+	isPropagationStopped: returnFalse,
+	isImmediatePropagationStopped: returnFalse
+};
+
+// Checks if an event happened on an element within another element
+// Used in jQuery.event.special.mouseenter and mouseleave handlers
+var withinElement = function( event ) {
+	// Check if mouse(over|out) are still within the same parent element
+	var parent = event.relatedTarget;
+
+	// Firefox sometimes assigns relatedTarget a XUL element
+	// which we cannot access the parentNode property of
+	try {
+		// Traverse up the tree
+		while ( parent && parent !== this ) {
+			parent = parent.parentNode;
+		}
+
+		if ( parent !== this ) {
+			// set the correct event type
+			event.type = event.data;
+
+			// handle event if we actually just moused on to a non sub-element
+			jQuery.event.handle.apply( this, arguments );
+		}
+
+	// assuming we've left the element since we most likely mousedover a xul element
+	} catch(e) { }
+},
+
+// In case of event delegation, we only need to rename the event.type,
+// liveHandler will take care of the rest.
+delegate = function( event ) {
+	event.type = event.data;
+	jQuery.event.handle.apply( this, arguments );
+};
+
+// Create mouseenter and mouseleave events
+jQuery.each({
+	mouseenter: "mouseover",
+	mouseleave: "mouseout"
+}, function( orig, fix ) {
+	jQuery.event.special[ orig ] = {
+		setup: function( data ) {
+			jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
+		},
+		teardown: function( data ) {
+			jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
+		}
+	};
+});
+
+// submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+	jQuery.event.special.submit = {
+		setup: function( data, namespaces ) {
+			if ( this.nodeName.toLowerCase() !== "form" ) {
+				jQuery.event.add(this, "click.specialSubmit", function( e ) {
+					var elem = e.target, type = elem.type;
+
+					if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
+						return trigger( "submit", this, arguments );
+					}
+				});
+	 
+				jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
+					var elem = e.target, type = elem.type;
+
+					if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
+						return trigger( "submit", this, arguments );
+					}
+				});
+
+			} else {
+				return false;
+			}
+		},
+
+		teardown: function( namespaces ) {
+			jQuery.event.remove( this, ".specialSubmit" );
+		}
+	};
+
+}
+
+// change delegation, happens here so we have bind.
+if ( !jQuery.support.changeBubbles ) {
+
+	var formElems = /textarea|input|select/i,
+
+	changeFilters,
+
+	getVal = function( elem ) {
+		var type = elem.type, val = elem.value;
+
+		if ( type === "radio" || type === "checkbox" ) {
+			val = elem.checked;
+
+		} else if ( type === "select-multiple" ) {
+			val = elem.selectedIndex > -1 ?
+				jQuery.map( elem.options, function( elem ) {
+					return elem.selected;
+				}).join("-") :
+				"";
+
+		} else if ( elem.nodeName.toLowerCase() === "select" ) {
+			val = elem.selectedIndex;
+		}
+
+		return val;
+	},
+
+	testChange = function testChange( e ) {
+		var elem = e.target, data, val;
+
+		if ( !formElems.test( elem.nodeName ) || elem.readOnly ) {
+			return;
+		}
+
+		data = jQuery.data( elem, "_change_data" );
+		val = getVal(elem);
+
+		// the current data will be also retrieved by beforeactivate
+		if ( e.type !== "focusout" || elem.type !== "radio" ) {
+			jQuery.data( elem, "_change_data", val );
+		}
+		
+		if ( data === undefined || val === data ) {
+			return;
+		}
+
+		if ( data != null || val ) {
+			e.type = "change";
+			return jQuery.event.trigger( e, arguments[1], elem );
+		}
+	};
+
+	jQuery.event.special.change = {
+		filters: {
+			focusout: testChange, 
+
+			click: function( e ) {
+				var elem = e.target, type = elem.type;
+
+				if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
+					return testChange.call( this, e );
+				}
+			},
+
+			// Change has to be called before submit
+			// Keydown will be called before keypress, which is used in submit-event delegation
+			keydown: function( e ) {
+				var elem = e.target, type = elem.type;
+
+				if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
+					(e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
+					type === "select-multiple" ) {
+					return testChange.call( this, e );
+				}
+			},
+
+			// Beforeactivate happens also before the previous element is blurred
+			// with this event you can't trigger a change event, but you can store
+			// information/focus[in] is not needed anymore
+			beforeactivate: function( e ) {
+				var elem = e.target;
+				jQuery.data( elem, "_change_data", getVal(elem) );
+			}
+		},
+
+		setup: function( data, namespaces ) {
+			if ( this.type === "file" ) {
+				return false;
+			}
+
+			for ( var type in changeFilters ) {
+				jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
+			}
+
+			return formElems.test( this.nodeName );
+		},
+
+		teardown: function( namespaces ) {
+			jQuery.event.remove( this, ".specialChange" );
+
+			return formElems.test( this.nodeName );
+		}
+	};
+
+	changeFilters = jQuery.event.special.change.filters;
+}
+
+function trigger( type, elem, args ) {
+	args[0].type = type;
+	return jQuery.event.handle.apply( elem, args );
+}
+
+// Create "bubbling" focus and blur events
+if ( document.addEventListener ) {
+	jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+		jQuery.event.special[ fix ] = {
+			setup: function() {
+				this.addEventListener( orig, handler, true );
+			}, 
+			teardown: function() { 
+				this.removeEventListener( orig, handler, true );
+			}
+		};
+
+		function handler( e ) { 
+			e = jQuery.event.fix( e );
+			e.type = fix;
+			return jQuery.event.handle.call( this, e );
+		}
+	});
+}
+
+jQuery.each(["bind", "one"], function( i, name ) {
+	jQuery.fn[ name ] = function( type, data, fn ) {
+		// Handle object literals
+		if ( typeof type === "object" ) {
+			for ( var key in type ) {
+				this[ name ](key, data, type[key], fn);
+			}
+			return this;
+		}
+		
+		if ( jQuery.isFunction( data ) ) {
+			fn = data;
+			data = undefined;
+		}
+
+		var handler = name === "one" ? jQuery.proxy( fn, function( event ) {
+			jQuery( this ).unbind( event, handler );
+			return fn.apply( this, arguments );
+		}) : fn;
+
+		if ( type === "unload" && name !== "one" ) {
+			this.one( type, data, fn );
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				jQuery.event.add( this[i], type, handler, data );
+			}
+		}
+
+		return this;
+	};
+});
+
+jQuery.fn.extend({
+	unbind: function( type, fn ) {
+		// Handle object literals
+		if ( typeof type === "object" && !type.preventDefault ) {
+			for ( var key in type ) {
+				this.unbind(key, type[key]);
+			}
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				jQuery.event.remove( this[i], type, fn );
+			}
+		}
+
+		return this;
+	},
+	
+	delegate: function( selector, types, data, fn ) {
+		return this.live( types, data, fn, selector );
+	},
+	
+	undelegate: function( selector, types, fn ) {
+		if ( arguments.length === 0 ) {
+				return this.unbind( "live" );
+		
+		} else {
+			return this.die( types, null, fn, selector );
+		}
+	},
+	
+	trigger: function( type, data ) {
+		return this.each(function() {
+			jQuery.event.trigger( type, data, this );
+		});
+	},
+
+	triggerHandler: function( type, data ) {
+		if ( this[0] ) {
+			var event = jQuery.Event( type );
+			event.preventDefault();
+			event.stopPropagation();
+			jQuery.event.trigger( event, data, this[0] );
+			return event.result;
+		}
+	},
+
+	toggle: function( fn ) {
+		// Save reference to arguments for access in closure
+		var args = arguments, i = 1;
+
+		// link all the functions, so any of them can unbind this click handler
+		while ( i < args.length ) {
+			jQuery.proxy( fn, args[ i++ ] );
+		}
+
+		return this.click( jQuery.proxy( fn, function( event ) {
+			// Figure out which function to execute
+			var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+			jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+			// Make sure that clicks stop
+			event.preventDefault();
+
+			// and execute the function
+			return args[ lastToggle ].apply( this, arguments ) || false;
+		}));
+	},
+
+	hover: function( fnOver, fnOut ) {
+		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+	}
+});
+
+var liveMap = {
+	focus: "focusin",
+	blur: "focusout",
+	mouseenter: "mouseover",
+	mouseleave: "mouseout"
+};
+
+jQuery.each(["live", "die"], function( i, name ) {
+	jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
+		var type, i = 0, match, namespaces, preType,
+			selector = origSelector || this.selector,
+			context = origSelector ? this : jQuery( this.context );
+
+		if ( jQuery.isFunction( data ) ) {
+			fn = data;
+			data = undefined;
+		}
+
+		types = (types || "").split(" ");
+
+		while ( (type = types[ i++ ]) != null ) {
+			match = rnamespaces.exec( type );
+			namespaces = "";
+
+			if ( match )  {
+				namespaces = match[0];
+				type = type.replace( rnamespaces, "" );
+			}
+
+			if ( type === "hover" ) {
+				types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
+				continue;
+			}
+
+			preType = type;
+
+			if ( type === "focus" || type === "blur" ) {
+				types.push( liveMap[ type ] + namespaces );
+				type = type + namespaces;
+
+			} else {
+				type = (liveMap[ type ] || type) + namespaces;
+			}
+
+			if ( name === "live" ) {
+				// bind live handler
+				context.each(function(){
+					jQuery.event.add( this, liveConvert( type, selector ),
+						{ data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
+				});
+
+			} else {
+				// unbind live handler
+				context.unbind( liveConvert( type, selector ), fn );
+			}
+		}
+		
+		return this;
+	}
+});
+
+function liveHandler( event ) {
+	var stop, elems = [], selectors = [], args = arguments,
+		related, match, handleObj, elem, j, i, l, data,
+		events = jQuery.data( this, "events" );
+
+	// Make sure we avoid non-left-click bubbling in Firefox (#3861)
+	if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
+		return;
+	}
+
+	event.liveFired = this;
+
+	var live = events.live.slice(0);
+
+	for ( j = 0; j < live.length; j++ ) {
+		handleObj = live[j];
+
+		if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
+			selectors.push( handleObj.selector );
+
+		} else {
+			live.splice( j--, 1 );
+		}
+	}
+
+	match = jQuery( event.target ).closest( selectors, event.currentTarget );
+
+	for ( i = 0, l = match.length; i < l; i++ ) {
+		for ( j = 0; j < live.length; j++ ) {
+			handleObj = live[j];
+
+			if ( match[i].selector === handleObj.selector ) {
+				elem = match[i].elem;
+				related = null;
+
+				// Those two events require additional checking
+				if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
+					related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
+				}
+
+				if ( !related || related !== elem ) {
+					elems.push({ elem: elem, handleObj: handleObj });
+				}
+			}
+		}
+	}
+
+	for ( i = 0, l = elems.length; i < l; i++ ) {
+		match = elems[i];
+		event.currentTarget = match.elem;
+		event.data = match.handleObj.data;
+		event.handleObj = match.handleObj;
+
+		if ( match.handleObj.origHandler.apply( match.elem, args ) === false ) {
+			stop = false;
+			break;
+		}
+	}
+
+	return stop;
+}
+
+function liveConvert( type, selector ) {
+	return "live." + (type && type !== "*" ? type + "." : "") + selector.replace(/\./g, "`").replace(/ /g, "&");
+}
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+	"change select submit keydown keypress keyup error").split(" "), function( i, name ) {
+
+	// Handle event binding
+	jQuery.fn[ name ] = function( fn ) {
+		return fn ? this.bind( name, fn ) : this.trigger( name );
+	};
+
+	if ( jQuery.attrFn ) {
+		jQuery.attrFn[ name ] = true;
+	}
+});
+
+// Prevent memory leaks in IE
+// Window isn't included so as not to unbind existing unload events
+// More info:
+//  - http://isaacschlueter.com/2006/10/msie-memory-leaks/
+if ( window.attachEvent && !window.addEventListener ) {
+	window.attachEvent("onunload", function() {
+		for ( var id in jQuery.cache ) {
+			if ( jQuery.cache[ id ].handle ) {
+				// Try/Catch is to handle iframes being unloaded, see #4280
+				try {
+					jQuery.event.remove( jQuery.cache[ id ].handle.elem );
+				} catch(e) {}
+			}
+		}
+	});
+}
+/*!
+ * Sizzle CSS Selector Engine - v1.0
+ *  Copyright 2009, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+	done = 0,
+	toString = Object.prototype.toString,
+	hasDuplicate = false,
+	baseHasDuplicate = true;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+//   Thus far that includes Google Chrome.
+[0, 0].sort(function(){
+	baseHasDuplicate = false;
+	return 0;
+});
+
+var Sizzle = function(selector, context, results, seed) {
+	results = results || [];
+	var origContext = context = context || document;
+
+	if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+		return [];
+	}
+	
+	if ( !selector || typeof selector !== "string" ) {
+		return results;
+	}
+
+	var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context),
+		soFar = selector;
+	
+	// Reset the position of the chunker regexp (start from head)
+	while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) {
+		soFar = m[3];
+		
+		parts.push( m[1] );
+		
+		if ( m[2] ) {
+			extra = m[3];
+			break;
+		}
+	}
+
+	if ( parts.length > 1 && origPOS.exec( selector ) ) {
+		if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+			set = posProcess( parts[0] + parts[1], context );
+		} else {
+			set = Expr.relative[ parts[0] ] ?
+				[ context ] :
+				Sizzle( parts.shift(), context );
+
+			while ( parts.length ) {
+				selector = parts.shift();
+
+				if ( Expr.relative[ selector ] ) {
+					selector += parts.shift();
+				}
+				
+				set = posProcess( selector, set );
+			}
+		}
+	} else {
+		// Take a shortcut and set the context if the root selector is an ID
+		// (but not if it'll be faster if the inner selector is an ID)
+		if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+				Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+			var ret = Sizzle.find( parts.shift(), context, contextXML );
+			context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0];
+		}
+
+		if ( context ) {
+			var ret = seed ?
+				{ expr: parts.pop(), set: makeArray(seed) } :
+				Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+			set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set;
+
+			if ( parts.length > 0 ) {
+				checkSet = makeArray(set);
+			} else {
+				prune = false;
+			}
+
+			while ( parts.length ) {
+				var cur = parts.pop(), pop = cur;
+
+				if ( !Expr.relative[ cur ] ) {
+					cur = "";
+				} else {
+					pop = parts.pop();
+				}
+
+				if ( pop == null ) {
+					pop = context;
+				}
+
+				Expr.relative[ cur ]( checkSet, pop, contextXML );
+			}
+		} else {
+			checkSet = parts = [];
+		}
+	}
+
+	if ( !checkSet ) {
+		checkSet = set;
+	}
+
+	if ( !checkSet ) {
+		Sizzle.error( cur || selector );
+	}
+
+	if ( toString.call(checkSet) === "[object Array]" ) {
+		if ( !prune ) {
+			results.push.apply( results, checkSet );
+		} else if ( context && context.nodeType === 1 ) {
+			for ( var i = 0; checkSet[i] != null; i++ ) {
+				if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
+					results.push( set[i] );
+				}
+			}
+		} else {
+			for ( var i = 0; checkSet[i] != null; i++ ) {
+				if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+					results.push( set[i] );
+				}
+			}
+		}
+	} else {
+		makeArray( checkSet, results );
+	}
+
+	if ( extra ) {
+		Sizzle( extra, origContext, results, seed );
+		Sizzle.uniqueSort( results );
+	}
+
+	return results;
+};
+
+Sizzle.uniqueSort = function(results){
+	if ( sortOrder ) {
+		hasDuplicate = baseHasDuplicate;
+		results.sort(sortOrder);
+
+		if ( hasDuplicate ) {
+			for ( var i = 1; i < results.length; i++ ) {
+				if ( results[i] === results[i-1] ) {
+					results.splice(i--, 1);
+				}
+			}
+		}
+	}
+
+	return results;
+};
+
+Sizzle.matches = function(expr, set){
+	return Sizzle(expr, null, null, set);
+};
+
+Sizzle.find = function(expr, context, isXML){
+	var set, match;
+
+	if ( !expr ) {
+		return [];
+	}
+
+	for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
+		var type = Expr.order[i], match;
+		
+		if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+			var left = match[1];
+			match.splice(1,1);
+
+			if ( left.substr( left.length - 1 ) !== "\\" ) {
+				match[1] = (match[1] || "").replace(/\\/g, "");
+				set = Expr.find[ type ]( match, context, isXML );
+				if ( set != null ) {
+					expr = expr.replace( Expr.match[ type ], "" );
+					break;
+				}
+			}
+		}
+	}
+
+	if ( !set ) {
+		set = context.getElementsByTagName("*");
+	}
+
+	return {set: set, expr: expr};
+};
+
+Sizzle.filter = function(expr, set, inplace, not){
+	var old = expr, result = [], curLoop = set, match, anyFound,
+		isXMLFilter = set && set[0] && isXML(set[0]);
+
+	while ( expr && set.length ) {
+		for ( var type in Expr.filter ) {
+			if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+				var filter = Expr.filter[ type ], found, item, left = match[1];
+				anyFound = false;
+
+				match.splice(1,1);
+
+				if ( left.substr( left.length - 1 ) === "\\" ) {
+					continue;
+				}
+
+				if ( curLoop === result ) {
+					result = [];
+				}
+
+				if ( Expr.preFilter[ type ] ) {
+					match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+					if ( !match ) {
+						anyFound = found = true;
+					} else if ( match === true ) {
+						continue;
+					}
+				}
+
+				if ( match ) {
+					for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
+						if ( item ) {
+							found = filter( item, match, i, curLoop );
+							var pass = not ^ !!found;
+
+							if ( inplace && found != null ) {
+								if ( pass ) {
+									anyFound = true;
+								} else {
+									curLoop[i] = false;
+								}
+							} else if ( pass ) {
+								result.push( item );
+								anyFound = true;
+							}
+						}
+					}
+				}
+
+				if ( found !== undefined ) {
+					if ( !inplace ) {
+						curLoop = result;
+					}
+
+					expr = expr.replace( Expr.match[ type ], "" );
+
+					if ( !anyFound ) {
+						return [];
+					}
+
+					break;
+				}
+			}
+		}
+
+		// Improper expression
+		if ( expr === old ) {
+			if ( anyFound == null ) {
+				Sizzle.error( expr );
+			} else {
+				break;
+			}
+		}
+
+		old = expr;
+	}
+
+	return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+	throw "Syntax error, unrecognized expression: " + msg;
+};
+
+var Expr = Sizzle.selectors = {
+	order: [ "ID", "NAME", "TAG" ],
+	match: {
+		ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
+		CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
+		NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,
+		ATTR: /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
+		TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
+		CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
+		POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
+		PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+	},
+	leftMatch: {},
+	attrMap: {
+		"class": "className",
+		"for": "htmlFor"
+	},
+	attrHandle: {
+		href: function(elem){
+			return elem.getAttribute("href");
+		}
+	},
+	relative: {
+		"+": function(checkSet, part){
+			var isPartStr = typeof part === "string",
+				isTag = isPartStr && !/\W/.test(part),
+				isPartStrNotTag = isPartStr && !isTag;
+
+			if ( isTag ) {
+				part = part.toLowerCase();
+			}
+
+			for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+				if ( (elem = checkSet[i]) ) {
+					while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+					checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+						elem || false :
+						elem === part;
+				}
+			}
+
+			if ( isPartStrNotTag ) {
+				Sizzle.filter( part, checkSet, true );
+			}
+		},
+		">": function(checkSet, part){
+			var isPartStr = typeof part === "string";
+
+			if ( isPartStr && !/\W/.test(part) ) {
+				part = part.toLowerCase();
+
+				for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+					var elem = checkSet[i];
+					if ( elem ) {
+						var parent = elem.parentNode;
+						checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+					}
+				}
+			} else {
+				for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+					var elem = checkSet[i];
+					if ( elem ) {
+						checkSet[i] = isPartStr ?
+							elem.parentNode :
+							elem.parentNode === part;
+					}
+				}
+
+				if ( isPartStr ) {
+					Sizzle.filter( part, checkSet, true );
+				}
+			}
+		},
+		"": function(checkSet, part, isXML){
+			var doneName = done++, checkFn = dirCheck;
+
+			if ( typeof part === "string" && !/\W/.test(part) ) {
+				var nodeCheck = part = part.toLowerCase();
+				checkFn = dirNodeCheck;
+			}
+
+			checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
+		},
+		"~": function(checkSet, part, isXML){
+			var doneName = done++, checkFn = dirCheck;
+
+			if ( typeof part === "string" && !/\W/.test(part) ) {
+				var nodeCheck = part = part.toLowerCase();
+				checkFn = dirNodeCheck;
+			}
+
+			checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
+		}
+	},
+	find: {
+		ID: function(match, context, isXML){
+			if ( typeof context.getElementById !== "undefined" && !isXML ) {
+				var m = context.getElementById(match[1]);
+				return m ? [m] : [];
+			}
+		},
+		NAME: function(match, context){
+			if ( typeof context.getElementsByName !== "undefined" ) {
+				var ret = [], results = context.getElementsByName(match[1]);
+
+				for ( var i = 0, l = results.length; i < l; i++ ) {
+					if ( results[i].getAttribute("name") === match[1] ) {
+						ret.push( results[i] );
+					}
+				}
+
+				return ret.length === 0 ? null : ret;
+			}
+		},
+		TAG: function(match, context){
+			return context.getElementsByTagName(match[1]);
+		}
+	},
+	preFilter: {
+		CLASS: function(match, curLoop, inplace, result, not, isXML){
+			match = " " + match[1].replace(/\\/g, "") + " ";
+
+			if ( isXML ) {
+				return match;
+			}
+
+			for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+				if ( elem ) {
+					if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) {
+						if ( !inplace ) {
+							result.push( elem );
+						}
+					} else if ( inplace ) {
+						curLoop[i] = false;
+					}
+				}
+			}
+
+			return false;
+		},
+		ID: function(match){
+			return match[1].replace(/\\/g, "");
+		},
+		TAG: function(match, curLoop){
+			return match[1].toLowerCase();
+		},
+		CHILD: function(match){
+			if ( match[1] === "nth" ) {
+				// parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+				var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
+					match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+					!/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+				// calculate the numbers (first)n+(last) including if they are negative
+				match[2] = (test[1] + (test[2] || 1)) - 0;
+				match[3] = test[3] - 0;
+			}
+
+			// TODO: Move to normal caching system
+			match[0] = done++;
+
+			return match;
+		},
+		ATTR: function(match, curLoop, inplace, result, not, isXML){
+			var name = match[1].replace(/\\/g, "");
+			
+			if ( !isXML && Expr.attrMap[name] ) {
+				match[1] = Expr.attrMap[name];
+			}
+
+			if ( match[2] === "~=" ) {
+				match[4] = " " + match[4] + " ";
+			}
+
+			return match;
+		},
+		PSEUDO: function(match, curLoop, inplace, result, not){
+			if ( match[1] === "not" ) {
+				// If we're dealing with a complex expression, or a simple one
+				if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+					match[3] = Sizzle(match[3], null, null, curLoop);
+				} else {
+					var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+					if ( !inplace ) {
+						result.push.apply( result, ret );
+					}
+					return false;
+				}
+			} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+				return true;
+			}
+			
+			return match;
+		},
+		POS: function(match){
+			match.unshift( true );
+			return match;
+		}
+	},
+	filters: {
+		enabled: function(elem){
+			return elem.disabled === false && elem.type !== "hidden";
+		},
+		disabled: function(elem){
+			return elem.disabled === true;
+		},
+		checked: function(elem){
+			return elem.checked === true;
+		},
+		selected: function(elem){
+			// Accessing this property makes selected-by-default
+			// options in Safari work properly
+			elem.parentNode.selectedIndex;
+			return elem.selected === true;
+		},
+		parent: function(elem){
+			return !!elem.firstChild;
+		},
+		empty: function(elem){
+			return !elem.firstChild;
+		},
+		has: function(elem, i, match){
+			return !!Sizzle( match[3], elem ).length;
+		},
+		header: function(elem){
+			return /h\d/i.test( elem.nodeName );
+		},
+		text: function(elem){
+			return "text" === elem.type;
+		},
+		radio: function(elem){
+			return "radio" === elem.type;
+		},
+		checkbox: function(elem){
+			return "checkbox" === elem.type;
+		},
+		file: function(elem){
+			return "file" === elem.type;
+		},
+		password: function(elem){
+			return "password" === elem.type;
+		},
+		submit: function(elem){
+			return "submit" === elem.type;
+		},
+		image: function(elem){
+			return "image" === elem.type;
+		},
+		reset: function(elem){
+			return "reset" === elem.type;
+		},
+		button: function(elem){
+			return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
+		},
+		input: function(elem){
+			return /input|select|textarea|button/i.test(elem.nodeName);
+		}
+	},
+	setFilters: {
+		first: function(elem, i){
+			return i === 0;
+		},
+		last: function(elem, i, match, array){
+			return i === array.length - 1;
+		},
+		even: function(elem, i){
+			return i % 2 === 0;
+		},
+		odd: function(elem, i){
+			return i % 2 === 1;
+		},
+		lt: function(elem, i, match){
+			return i < match[3] - 0;
+		},
+		gt: function(elem, i, match){
+			return i > match[3] - 0;
+		},
+		nth: function(elem, i, match){
+			return match[3] - 0 === i;
+		},
+		eq: function(elem, i, match){
+			return match[3] - 0 === i;
+		}
+	},
+	filter: {
+		PSEUDO: function(elem, match, i, array){
+			var name = match[1], filter = Expr.filters[ name ];
+
+			if ( filter ) {
+				return filter( elem, i, match, array );
+			} else if ( name === "contains" ) {
+				return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
+			} else if ( name === "not" ) {
+				var not = match[3];
+
+				for ( var i = 0, l = not.length; i < l; i++ ) {
+					if ( not[i] === elem ) {
+						return false;
+					}
+				}
+
+				return true;
+			} else {
+				Sizzle.error( "Syntax error, unrecognized expression: " + name );
+			}
+		},
+		CHILD: function(elem, match){
+			var type = match[1], node = elem;
+			switch (type) {
+				case 'only':
+				case 'first':
+					while ( (node = node.previousSibling) )	 {
+						if ( node.nodeType === 1 ) { 
+							return false; 
+						}
+					}
+					if ( type === "first" ) { 
+						return true; 
+					}
+					node = elem;
+				case 'last':
+					while ( (node = node.nextSibling) )	 {
+						if ( node.nodeType === 1 ) { 
+							return false; 
+						}
+					}
+					return true;
+				case 'nth':
+					var first = match[2], last = match[3];
+
+					if ( first === 1 && last === 0 ) {
+						return true;
+					}
+					
+					var doneName = match[0],
+						parent = elem.parentNode;
+	
+					if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
+						var count = 0;
+						for ( node = parent.firstChild; node; node = node.nextSibling ) {
+							if ( node.nodeType === 1 ) {
+								node.nodeIndex = ++count;
+							}
+						} 
+						parent.sizcache = doneName;
+					}
+					
+					var diff = elem.nodeIndex - last;
+					if ( first === 0 ) {
+						return diff === 0;
+					} else {
+						return ( diff % first === 0 && diff / first >= 0 );
+					}
+			}
+		},
+		ID: function(elem, match){
+			return elem.nodeType === 1 && elem.getAttribute("id") === match;
+		},
+		TAG: function(elem, match){
+			return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
+		},
+		CLASS: function(elem, match){
+			return (" " + (elem.className || elem.getAttribute("class")) + " ")
+				.indexOf( match ) > -1;
+		},
+		ATTR: function(elem, match){
+			var name = match[1],
+				result = Expr.attrHandle[ name ] ?
+					Expr.attrHandle[ name ]( elem ) :
+					elem[ name ] != null ?
+						elem[ name ] :
+						elem.getAttribute( name ),
+				value = result + "",
+				type = match[2],
+				check = match[4];
+
+			return result == null ?
+				type === "!=" :
+				type === "=" ?
+				value === check :
+				type === "*=" ?
+				value.indexOf(check) >= 0 :
+				type === "~=" ?
+				(" " + value + " ").indexOf(check) >= 0 :
+				!check ?
+				value && result !== false :
+				type === "!=" ?
+				value !== check :
+				type === "^=" ?
+				value.indexOf(check) === 0 :
+				type === "$=" ?
+				value.substr(value.length - check.length) === check :
+				type === "|=" ?
+				value === check || value.substr(0, check.length + 1) === check + "-" :
+				false;
+		},
+		POS: function(elem, match, i, array){
+			var name = match[2], filter = Expr.setFilters[ name ];
+
+			if ( filter ) {
+				return filter( elem, i, match, array );
+			}
+		}
+	}
+};
+
+var origPOS = Expr.match.POS;
+
+for ( var type in Expr.match ) {
+	Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
+	Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, function(all, num){
+		return "\\" + (num - 0 + 1);
+	}));
+}
+
+var makeArray = function(array, results) {
+	array = Array.prototype.slice.call( array, 0 );
+
+	if ( results ) {
+		results.push.apply( results, array );
+		return results;
+	}
+	
+	return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+	Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch(e){
+	makeArray = function(array, results) {
+		var ret = results || [];
+
+		if ( toString.call(array) === "[object Array]" ) {
+			Array.prototype.push.apply( ret, array );
+		} else {
+			if ( typeof array.length === "number" ) {
+				for ( var i = 0, l = array.length; i < l; i++ ) {
+					ret.push( array[i] );
+				}
+			} else {
+				for ( var i = 0; array[i]; i++ ) {
+					ret.push( array[i] );
+				}
+			}
+		}
+
+		return ret;
+	};
+}
+
+var sortOrder;
+
+if ( document.documentElement.compareDocumentPosition ) {
+	sortOrder = function( a, b ) {
+		if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+			if ( a == b ) {
+				hasDuplicate = true;
+			}
+			return a.compareDocumentPosition ? -1 : 1;
+		}
+
+		var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
+		if ( ret === 0 ) {
+			hasDuplicate = true;
+		}
+		return ret;
+	};
+} else if ( "sourceIndex" in document.documentElement ) {
+	sortOrder = function( a, b ) {
+		if ( !a.sourceIndex || !b.sourceIndex ) {
+			if ( a == b ) {
+				hasDuplicate = true;
+			}
+			return a.sourceIndex ? -1 : 1;
+		}
+
+		var ret = a.sourceIndex - b.sourceIndex;
+		if ( ret === 0 ) {
+			hasDuplicate = true;
+		}
+		return ret;
+	};
+} else if ( document.createRange ) {
+	sortOrder = function( a, b ) {
+		if ( !a.ownerDocument || !b.ownerDocument ) {
+			if ( a == b ) {
+				hasDuplicate = true;
+			}
+			return a.ownerDocument ? -1 : 1;
+		}
+
+		var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
+		aRange.setStart(a, 0);
+		aRange.setEnd(a, 0);
+		bRange.setStart(b, 0);
+		bRange.setEnd(b, 0);
+		var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
+		if ( ret === 0 ) {
+			hasDuplicate = true;
+		}
+		return ret;
+	};
+}
+
+// Utility function for retreiving the text value of an array of DOM nodes
+function getText( elems ) {
+	var ret = "", elem;
+
+	for ( var i = 0; elems[i]; i++ ) {
+		elem = elems[i];
+
+		// Get the text from text nodes and CDATA nodes
+		if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
+			ret += elem.nodeValue;
+
+		// Traverse everything else, except comment nodes
+		} else if ( elem.nodeType !== 8 ) {
+			ret += getText( elem.childNodes );
+		}
+	}
+
+	return ret;
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+	// We're going to inject a fake input element with a specified name
+	var form = document.createElement("div"),
+		id = "script" + (new Date).getTime();
+	form.innerHTML = "<a name='" + id + "'/>";
+
+	// Inject it into the root element, check its status, and remove it quickly
+	var root = document.documentElement;
+	root.insertBefore( form, root.firstChild );
+
+	// The workaround has to do additional checks after a getElementById
+	// Which slows things down for other browsers (hence the branching)
+	if ( document.getElementById( id ) ) {
+		Expr.find.ID = function(match, context, isXML){
+			if ( typeof context.getElementById !== "undefined" && !isXML ) {
+				var m = context.getElementById(match[1]);
+				return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
+			}
+		};
+
+		Expr.filter.ID = function(elem, match){
+			var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+			return elem.nodeType === 1 && node && node.nodeValue === match;
+		};
+	}
+
+	root.removeChild( form );
+	root = form = null; // release memory in IE
+})();
+
+(function(){
+	// Check to see if the browser returns only elements
+	// when doing getElementsByTagName("*")
+
+	// Create a fake element
+	var div = document.createElement("div");
+	div.appendChild( document.createComment("") );
+
+	// Make sure no comments are found
+	if ( div.getElementsByTagName("*").length > 0 ) {
+		Expr.find.TAG = function(match, context){
+			var results = context.getElementsByTagName(match[1]);
+
+			// Filter out possible comments
+			if ( match[1] === "*" ) {
+				var tmp = [];
+
+				for ( var i = 0; results[i]; i++ ) {
+					if ( results[i].nodeType === 1 ) {
+						tmp.push( results[i] );
+					}
+				}
+
+				results = tmp;
+			}
+
+			return results;
+		};
+	}
+
+	// Check to see if an attribute returns normalized href attributes
+	div.innerHTML = "<a href='#'></a>";
+	if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+			div.firstChild.getAttribute("href") !== "#" ) {
+		Expr.attrHandle.href = function(elem){
+			return elem.getAttribute("href", 2);
+		};
+	}
+
+	div = null; // release memory in IE
+})();
+
+if ( document.querySelectorAll ) {
+	(function(){
+		var oldSizzle = Sizzle, div = document.createElement("div");
+		div.innerHTML = "<p class='TEST'></p>";
+
+		// Safari can't handle uppercase or unicode characters when
+		// in quirks mode.
+		if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+			return;
+		}
+	
+		Sizzle = function(query, context, extra, seed){
+			context = context || document;
+
+			// Only use querySelectorAll on non-XML documents
+			// (ID selectors don't work in non-HTML documents)
+			if ( !seed && context.nodeType === 9 && !isXML(context) ) {
+				try {
+					return makeArray( context.querySelectorAll(query), extra );
+				} catch(e){}
+			}
+		
+			return oldSizzle(query, context, extra, seed);
+		};
+
+		for ( var prop in oldSizzle ) {
+			Sizzle[ prop ] = oldSizzle[ prop ];
+		}
+
+		div = null; // release memory in IE
+	})();
+}
+
+(function(){
+	var div = document.createElement("div");
+
+	div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+	// Opera can't find a second classname (in 9.6)
+	// Also, make sure that getElementsByClassName actually exists
+	if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+		return;
+	}
+
+	// Safari caches class attributes, doesn't catch changes (in 3.2)
+	div.lastChild.className = "e";
+
+	if ( div.getElementsByClassName("e").length === 1 ) {
+		return;
+	}
+	
+	Expr.order.splice(1, 0, "CLASS");
+	Expr.find.CLASS = function(match, context, isXML) {
+		if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+			return context.getElementsByClassName(match[1]);
+		}
+	};
+
+	div = null; // release memory in IE
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+		var elem = checkSet[i];
+		if ( elem ) {
+			elem = elem[dir];
+			var match = false;
+
+			while ( elem ) {
+				if ( elem.sizcache === doneName ) {
+					match = checkSet[elem.sizset];
+					break;
+				}
+
+				if ( elem.nodeType === 1 && !isXML ){
+					elem.sizcache = doneName;
+					elem.sizset = i;
+				}
+
+				if ( elem.nodeName.toLowerCase() === cur ) {
+					match = elem;
+					break;
+				}
+
+				elem = elem[dir];
+			}
+
+			checkSet[i] = match;
+		}
+	}
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+		var elem = checkSet[i];
+		if ( elem ) {
+			elem = elem[dir];
+			var match = false;
+
+			while ( elem ) {
+				if ( elem.sizcache === doneName ) {
+					match = checkSet[elem.sizset];
+					break;
+				}
+
+				if ( elem.nodeType === 1 ) {
+					if ( !isXML ) {
+						elem.sizcache = doneName;
+						elem.sizset = i;
+					}
+					if ( typeof cur !== "string" ) {
+						if ( elem === cur ) {
+							match = true;
+							break;
+						}
+
+					} else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+						match = elem;
+						break;
+					}
+				}
+
+				elem = elem[dir];
+			}
+
+			checkSet[i] = match;
+		}
+	}
+}
+
+var contains = document.compareDocumentPosition ? function(a, b){
+	return !!(a.compareDocumentPosition(b) & 16);
+} : function(a, b){
+	return a !== b && (a.contains ? a.contains(b) : true);
+};
+
+var isXML = function(elem){
+	// documentElement is verified for cases where it doesn't yet exist
+	// (such as loading iframes in IE - #4833) 
+	var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+	return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function(selector, context){
+	var tmpSet = [], later = "", match,
+		root = context.nodeType ? [context] : context;
+
+	// Position selectors must be done after the filter
+	// And so must :not(positional) so we move all PSEUDOs to the end
+	while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+		later += match[0];
+		selector = selector.replace( Expr.match.PSEUDO, "" );
+	}
+
+	selector = Expr.relative[selector] ? selector + "*" : selector;
+
+	for ( var i = 0, l = root.length; i < l; i++ ) {
+		Sizzle( selector, root[i], tmpSet );
+	}
+
+	return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = getText;
+jQuery.isXMLDoc = isXML;
+jQuery.contains = contains;
+
+return;
+
+window.Sizzle = Sizzle;
+
+})();
+var runtil = /Until$/,
+	rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+	// Note: This RegExp should be improved, or likely pulled from Sizzle
+	rmultiselector = /,/,
+	slice = Array.prototype.slice;
+
+// Implement the identical functionality for filter and not
+var winnow = function( elements, qualifier, keep ) {
+	if ( jQuery.isFunction( qualifier ) ) {
+		return jQuery.grep(elements, function( elem, i ) {
+			return !!qualifier.call( elem, i, elem ) === keep;
+		});
+
+	} else if ( qualifier.nodeType ) {
+		return jQuery.grep(elements, function( elem, i ) {
+			return (elem === qualifier) === keep;
+		});
+
+	} else if ( typeof qualifier === "string" ) {
+		var filtered = jQuery.grep(elements, function( elem ) {
+			return elem.nodeType === 1;
+		});
+
+		if ( isSimple.test( qualifier ) ) {
+			return jQuery.filter(qualifier, filtered, !keep);
+		} else {
+			qualifier = jQuery.filter( qualifier, filtered );
+		}
+	}
+
+	return jQuery.grep(elements, function( elem, i ) {
+		return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
+	});
+};
+
+jQuery.fn.extend({
+	find: function( selector ) {
+		var ret = this.pushStack( "", "find", selector ), length = 0;
+
+		for ( var i = 0, l = this.length; i < l; i++ ) {
+			length = ret.length;
+			jQuery.find( selector, this[i], ret );
+
+			if ( i > 0 ) {
+				// Make sure that the results are unique
+				for ( var n = length; n < ret.length; n++ ) {
+					for ( var r = 0; r < length; r++ ) {
+						if ( ret[r] === ret[n] ) {
+							ret.splice(n--, 1);
+							break;
+						}
+					}
+				}
+			}
+		}
+
+		return ret;
+	},
+
+	has: function( target ) {
+		var targets = jQuery( target );
+		return this.filter(function() {
+			for ( var i = 0, l = targets.length; i < l; i++ ) {
+				if ( jQuery.contains( this, targets[i] ) ) {
+					return true;
+				}
+			}
+		});
+	},
+
+	not: function( selector ) {
+		return this.pushStack( winnow(this, selector, false), "not", selector);
+	},
+
+	filter: function( selector ) {
+		return this.pushStack( winnow(this, selector, true), "filter", selector );
+	},
+	
+	is: function( selector ) {
+		return !!selector && jQuery.filter( selector, this ).length > 0;
+	},
+
+	closest: function( selectors, context ) {
+		if ( jQuery.isArray( selectors ) ) {
+			var ret = [], cur = this[0], match, matches = {}, selector;
+
+			if ( cur && selectors.length ) {
+				for ( var i = 0, l = selectors.length; i < l; i++ ) {
+					selector = selectors[i];
+
+					if ( !matches[selector] ) {
+						matches[selector] = jQuery.expr.match.POS.test( selector ) ? 
+							jQuery( selector, context || this.context ) :
+							selector;
+					}
+				}
+
+				while ( cur && cur.ownerDocument && cur !== context ) {
+					for ( selector in matches ) {
+						match = matches[selector];
+
+						if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
+							ret.push({ selector: selector, elem: cur });
+							delete matches[selector];
+						}
+					}
+					cur = cur.parentNode;
+				}
+			}
+
+			return ret;
+		}
+
+		var pos = jQuery.expr.match.POS.test( selectors ) ? 
+			jQuery( selectors, context || this.context ) : null;
+
+		return this.map(function( i, cur ) {
+			while ( cur && cur.ownerDocument && cur !== context ) {
+				if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selectors) ) {
+					return cur;
+				}
+				cur = cur.parentNode;
+			}
+			return null;
+		});
+	},
+	
+	// Determine the position of an element within
+	// the matched set of elements
+	index: function( elem ) {
+		if ( !elem || typeof elem === "string" ) {
+			return jQuery.inArray( this[0],
+				// If it receives a string, the selector is used
+				// If it receives nothing, the siblings are used
+				elem ? jQuery( elem ) : this.parent().children() );
+		}
+		// Locate the position of the desired element
+		return jQuery.inArray(
+			// If it receives a jQuery object, the first element is used
+			elem.jquery ? elem[0] : elem, this );
+	},
+
+	add: function( selector, context ) {
+		var set = typeof selector === "string" ?
+				jQuery( selector, context || this.context ) :
+				jQuery.makeArray( selector ),
+			all = jQuery.merge( this.get(), set );
+
+		return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+			all :
+			jQuery.unique( all ) );
+	},
+
+	andSelf: function() {
+		return this.add( this.prevObject );
+	}
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+	return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+	parent: function( elem ) {
+		var parent = elem.parentNode;
+		return parent && parent.nodeType !== 11 ? parent : null;
+	},
+	parents: function( elem ) {
+		return jQuery.dir( elem, "parentNode" );
+	},
+	parentsUntil: function( elem, i, until ) {
+		return jQuery.dir( elem, "parentNode", until );
+	},
+	next: function( elem ) {
+		return jQuery.nth( elem, 2, "nextSibling" );
+	},
+	prev: function( elem ) {
+		return jQuery.nth( elem, 2, "previousSibling" );
+	},
+	nextAll: function( elem ) {
+		return jQuery.dir( elem, "nextSibling" );
+	},
+	prevAll: function( elem ) {
+		return jQuery.dir( elem, "previousSibling" );
+	},
+	nextUntil: function( elem, i, until ) {
+		return jQuery.dir( elem, "nextSibling", until );
+	},
+	prevUntil: function( elem, i, until ) {
+		return jQuery.dir( elem, "previousSibling", until );
+	},
+	siblings: function( elem ) {
+		return jQuery.sibling( elem.parentNode.firstChild, elem );
+	},
+	children: function( elem ) {
+		return jQuery.sibling( elem.firstChild );
+	},
+	contents: function( elem ) {
+		return jQuery.nodeName( elem, "iframe" ) ?
+			elem.contentDocument || elem.contentWindow.document :
+			jQuery.makeArray( elem.childNodes );
+	}
+}, function( name, fn ) {
+	jQuery.fn[ name ] = function( until, selector ) {
+		var ret = jQuery.map( this, fn, until );
+		
+		if ( !runtil.test( name ) ) {
+			selector = until;
+		}
+
+		if ( selector && typeof selector === "string" ) {
+			ret = jQuery.filter( selector, ret );
+		}
+
+		ret = this.length > 1 ? jQuery.unique( ret ) : ret;
+
+		if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+			ret = ret.reverse();
+		}
+
+		return this.pushStack( ret, name, slice.call(arguments).join(",") );
+	};
+});
+
+jQuery.extend({
+	filter: function( expr, elems, not ) {
+		if ( not ) {
+			expr = ":not(" + expr + ")";
+		}
+
+		return jQuery.find.matches(expr, elems);
+	},
+	
+	dir: function( elem, dir, until ) {
+		var matched = [], cur = elem[dir];
+		while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+			if ( cur.nodeType === 1 ) {
+				matched.push( cur );
+			}
+			cur = cur[dir];
+		}
+		return matched;
+	},
+
+	nth: function( cur, result, dir, elem ) {
+		result = result || 1;
+		var num = 0;
+
+		for ( ; cur; cur = cur[dir] ) {
+			if ( cur.nodeType === 1 && ++num === result ) {
+				break;
+			}
+		}
+
+		return cur;
+	},
+
+	sibling: function( n, elem ) {
+		var r = [];
+
+		for ( ; n; n = n.nextSibling ) {
+			if ( n.nodeType === 1 && n !== elem ) {
+				r.push( n );
+			}
+		}
+
+		return r;
+	}
+});
+var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+	rleadingWhitespace = /^\s+/,
+	rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g,
+	rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
+	rtagName = /<([\w:]+)/,
+	rtbody = /<tbody/i,
+	rhtml = /<|&#?\w+;/,
+	rnocache = /<script|<object|<embed|<option|<style/i,
+	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,  // checked="checked" or checked (html5)
+	fcloseTag = function( all, front, tag ) {
+		return rselfClosing.test( tag ) ?
+			all :
+			front + "></" + tag + ">";
+	},
+	wrapMap = {
+		option: [ 1, "<select multiple='multiple'>", "</select>" ],
+		legend: [ 1, "<fieldset>", "</fieldset>" ],
+		thead: [ 1, "<table>", "</table>" ],
+		tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+		td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+		col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+		area: [ 1, "<map>", "</map>" ],
+		_default: [ 0, "", "" ]
+	};
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize <link> and <script> tags normally
+if ( !jQuery.support.htmlSerialize ) {
+	wrapMap._default = [ 1, "div<div>", "</div>" ];
+}
+
+jQuery.fn.extend({
+	text: function( text ) {
+		if ( jQuery.isFunction(text) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				self.text( text.call(this, i, self.text()) );
+			});
+		}
+
+		if ( typeof text !== "object" && text !== undefined ) {
+			return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+		}
+
+		return jQuery.text( this );
+	},
+
+	wrapAll: function( html ) {
+		if ( jQuery.isFunction( html ) ) {
+			return this.each(function(i) {
+				jQuery(this).wrapAll( html.call(this, i) );
+			});
+		}
+
+		if ( this[0] ) {
+			// The elements to wrap the target around
+			var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+			if ( this[0].parentNode ) {
+				wrap.insertBefore( this[0] );
+			}
+
+			wrap.map(function() {
+				var elem = this;
+
+				while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+					elem = elem.firstChild;
+				}
+
+				return elem;
+			}).append(this);
+		}
+
+		return this;
+	},
+
+	wrapInner: function( html ) {
+		if ( jQuery.isFunction( html ) ) {
+			return this.each(function(i) {
+				jQuery(this).wrapInner( html.call(this, i) );
+			});
+		}
+
+		return this.each(function() {
+			var self = jQuery( this ), contents = self.contents();
+
+			if ( contents.length ) {
+				contents.wrapAll( html );
+
+			} else {
+				self.append( html );
+			}
+		});
+	},
+
+	wrap: function( html ) {
+		return this.each(function() {
+			jQuery( this ).wrapAll( html );
+		});
+	},
+
+	unwrap: function() {
+		return this.parent().each(function() {
+			if ( !jQuery.nodeName( this, "body" ) ) {
+				jQuery( this ).replaceWith( this.childNodes );
+			}
+		}).end();
+	},
+
+	append: function() {
+		return this.domManip(arguments, true, function( elem ) {
+			if ( this.nodeType === 1 ) {
+				this.appendChild( elem );
+			}
+		});
+	},
+
+	prepend: function() {
+		return this.domManip(arguments, true, function( elem ) {
+			if ( this.nodeType === 1 ) {
+				this.insertBefore( elem, this.firstChild );
+			}
+		});
+	},
+
+	before: function() {
+		if ( this[0] && this[0].parentNode ) {
+			return this.domManip(arguments, false, function( elem ) {
+				this.parentNode.insertBefore( elem, this );
+			});
+		} else if ( arguments.length ) {
+			var set = jQuery(arguments[0]);
+			set.push.apply( set, this.toArray() );
+			return this.pushStack( set, "before", arguments );
+		}
+	},
+
+	after: function() {
+		if ( this[0] && this[0].parentNode ) {
+			return this.domManip(arguments, false, function( elem ) {
+				this.parentNode.insertBefore( elem, this.nextSibling );
+			});
+		} else if ( arguments.length ) {
+			var set = this.pushStack( this, "after", arguments );
+			set.push.apply( set, jQuery(arguments[0]).toArray() );
+			return set;
+		}
+	},
+	
+	// keepData is for internal use only--do not document
+	remove: function( selector, keepData ) {
+		for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+			if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+				if ( !keepData && elem.nodeType === 1 ) {
+					jQuery.cleanData( elem.getElementsByTagName("*") );
+					jQuery.cleanData( [ elem ] );
+				}
+
+				if ( elem.parentNode ) {
+					 elem.parentNode.removeChild( elem );
+				}
+			}
+		}
+		
+		return this;
+	},
+
+	empty: function() {
+		for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+			// Remove element nodes and prevent memory leaks
+			if ( elem.nodeType === 1 ) {
+				jQuery.cleanData( elem.getElementsByTagName("*") );
+			}
+
+			// Remove any remaining nodes
+			while ( elem.firstChild ) {
+				elem.removeChild( elem.firstChild );
+			}
+		}
+		
+		return this;
+	},
+
+	clone: function( events ) {
+		// Do the clone
+		var ret = this.map(function() {
+			if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
+				// IE copies events bound via attachEvent when
+				// using cloneNode. Calling detachEvent on the
+				// clone will also remove the events from the orignal
+				// In order to get around this, we use innerHTML.
+				// Unfortunately, this means some modifications to
+				// attributes in IE that are actually only stored
+				// as properties will not be copied (such as the
+				// the name attribute on an input).
+				var html = this.outerHTML, ownerDocument = this.ownerDocument;
+				if ( !html ) {
+					var div = ownerDocument.createElement("div");
+					div.appendChild( this.cloneNode(true) );
+					html = div.innerHTML;
+				}
+
+				return jQuery.clean([html.replace(rinlinejQuery, "")
+					// Handle the case in IE 8 where action=/test/> self-closes a tag
+					.replace(/=([^="'>\s]+\/)>/g, '="$1">')
+					.replace(rleadingWhitespace, "")], ownerDocument)[0];
+			} else {
+				return this.cloneNode(true);
+			}
+		});
+
+		// Copy the events from the original to the clone
+		if ( events === true ) {
+			cloneCopyEvent( this, ret );
+			cloneCopyEvent( this.find("*"), ret.find("*") );
+		}
+
+		// Return the cloned set
+		return ret;
+	},
+
+	html: function( value ) {
+		if ( value === undefined ) {
+			return this[0] && this[0].nodeType === 1 ?
+				this[0].innerHTML.replace(rinlinejQuery, "") :
+				null;
+
+		// See if we can take a shortcut and just use innerHTML
+		} else if ( typeof value === "string" && !rnocache.test( value ) &&
+			(jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+			!wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
+
+			value = value.replace(rxhtmlTag, fcloseTag);
+
+			try {
+				for ( var i = 0, l = this.length; i < l; i++ ) {
+					// Remove element nodes and prevent memory leaks
+					if ( this[i].nodeType === 1 ) {
+						jQuery.cleanData( this[i].getElementsByTagName("*") );
+						this[i].innerHTML = value;
+					}
+				}
+
+			// If using innerHTML throws an exception, use the fallback method
+			} catch(e) {
+				this.empty().append( value );
+			}
+
+		} else if ( jQuery.isFunction( value ) ) {
+			this.each(function(i){
+				var self = jQuery(this), old = self.html();
+				self.empty().append(function(){
+					return value.call( this, i, old );
+				});
+			});
+
+		} else {
+			this.empty().append( value );
+		}
+
+		return this;
+	},
+
+	replaceWith: function( value ) {
+		if ( this[0] && this[0].parentNode ) {
+			// Make sure that the elements are removed from the DOM before they are inserted
+			// this can help fix replacing a parent with child elements
+			if ( jQuery.isFunction( value ) ) {
+				return this.each(function(i) {
+					var self = jQuery(this), old = self.html();
+					self.replaceWith( value.call( this, i, old ) );
+				});
+			}
+
+			if ( typeof value !== "string" ) {
+				value = jQuery(value).detach();
+			}
+
+			return this.each(function() {
+				var next = this.nextSibling, parent = this.parentNode;
+
+				jQuery(this).remove();
+
+				if ( next ) {
+					jQuery(next).before( value );
+				} else {
+					jQuery(parent).append( value );
+				}
+			});
+		} else {
+			return this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value );
+		}
+	},
+
+	detach: function( selector ) {
+		return this.remove( selector, true );
+	},
+
+	domManip: function( args, table, callback ) {
+		var results, first, value = args[0], scripts = [], fragment, parent;
+
+		// We can't cloneNode fragments that contain checked, in WebKit
+		if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
+			return this.each(function() {
+				jQuery(this).domManip( args, table, callback, true );
+			});
+		}
+
+		if ( jQuery.isFunction(value) ) {
+			return this.each(function(i) {
+				var self = jQuery(this);
+				args[0] = value.call(this, i, table ? self.html() : undefined);
+				self.domManip( args, table, callback );
+			});
+		}
+
+		if ( this[0] ) {
+			parent = value && value.parentNode;
+
+			// If we're in a fragment, just use that instead of building a new one
+			if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+				results = { fragment: parent };
+
+			} else {
+				results = buildFragment( args, this, scripts );
+			}
+			
+			fragment = results.fragment;
+			
+			if ( fragment.childNodes.length === 1 ) {
+				first = fragment = fragment.firstChild;
+			} else {
+				first = fragment.firstChild;
+			}
+
+			if ( first ) {
+				table = table && jQuery.nodeName( first, "tr" );
+
+				for ( var i = 0, l = this.length; i < l; i++ ) {
+					callback.call(
+						table ?
+							root(this[i], first) :
+							this[i],
+						i > 0 || results.cacheable || this.length > 1  ?
+							fragment.cloneNode(true) :
+							fragment
+					);
+				}
+			}
+
+			if ( scripts.length ) {
+				jQuery.each( scripts, evalScript );
+			}
+		}
+
+		return this;
+
+		function root( elem, cur ) {
+			return jQuery.nodeName(elem, "table") ?
+				(elem.getElementsByTagName("tbody")[0] ||
+				elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+				elem;
+		}
+	}
+});
+
+function cloneCopyEvent(orig, ret) {
+	var i = 0;
+
+	ret.each(function() {
+		if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
+			return;
+		}
+
+		var oldData = jQuery.data( orig[i++] ), curData = jQuery.data( this, oldData ), events = oldData && oldData.events;
+
+		if ( events ) {
+			delete curData.handle;
+			curData.events = {};
+
+			for ( var type in events ) {
+				for ( var handler in events[ type ] ) {
+					jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
+				}
+			}
+		}
+	});
+}
+
+function buildFragment( args, nodes, scripts ) {
+	var fragment, cacheable, cacheresults,
+		doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);
+
+	// Only cache "small" (1/2 KB) strings that are associated with the main document
+	// Cloning options loses the selected state, so don't cache them
+	// IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
+	// Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+	if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
+		!rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
+
+		cacheable = true;
+		cacheresults = jQuery.fragments[ args[0] ];
+		if ( cacheresults ) {
+			if ( cacheresults !== 1 ) {
+				fragment = cacheresults;
+			}
+		}
+	}
+
+	if ( !fragment ) {
+		fragment = doc.createDocumentFragment();
+		jQuery.clean( args, doc, fragment, scripts );
+	}
+
+	if ( cacheable ) {
+		jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
+	}
+
+	return { fragment: fragment, cacheable: cacheable };
+}
+
+jQuery.fragments = {};
+
+jQuery.each({
+	appendTo: "append",
+	prependTo: "prepend",
+	insertBefore: "before",
+	insertAfter: "after",
+	replaceAll: "replaceWith"
+}, function( name, original ) {
+	jQuery.fn[ name ] = function( selector ) {
+		var ret = [], insert = jQuery( selector ),
+			parent = this.length === 1 && this[0].parentNode;
+		
+		if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+			insert[ original ]( this[0] );
+			return this;
+			
+		} else {
+			for ( var i = 0, l = insert.length; i < l; i++ ) {
+				var elems = (i > 0 ? this.clone(true) : this).get();
+				jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
+				ret = ret.concat( elems );
+			}
+		
+			return this.pushStack( ret, name, insert.selector );
+		}
+	};
+});
+
+jQuery.extend({
+	clean: function( elems, context, fragment, scripts ) {
+		context = context || document;
+
+		// !context.createElement fails in IE with an error but returns typeof 'object'
+		if ( typeof context.createElement === "undefined" ) {
+			context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+		}
+
+		var ret = [];
+
+		for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+			if ( typeof elem === "number" ) {
+				elem += "";
+			}
+
+			if ( !elem ) {
+				continue;
+			}
+
+			// Convert html string into DOM nodes
+			if ( typeof elem === "string" && !rhtml.test( elem ) ) {
+				elem = context.createTextNode( elem );
+
+			} else if ( typeof elem === "string" ) {
+				// Fix "XHTML"-style tags in all browsers
+				elem = elem.replace(rxhtmlTag, fcloseTag);
+
+				// Trim whitespace, otherwise indexOf won't work as expected
+				var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
+					wrap = wrapMap[ tag ] || wrapMap._default,
+					depth = wrap[0],
+					div = context.createElement("div");
+
+				// Go to html and back, then peel off extra wrappers
+				div.innerHTML = wrap[1] + elem + wrap[2];
+
+				// Move to the right depth
+				while ( depth-- ) {
+					div = div.lastChild;
+				}
+
+				// Remove IE's autoinserted <tbody> from table fragments
+				if ( !jQuery.support.tbody ) {
+
+					// String was a <table>, *may* have spurious <tbody>
+					var hasBody = rtbody.test(elem),
+						tbody = tag === "table" && !hasBody ?
+							div.firstChild && div.firstChild.childNodes :
+
+							// String was a bare <thead> or <tfoot>
+							wrap[1] === "<table>" && !hasBody ?
+								div.childNodes :
+								[];
+
+					for ( var j = tbody.length - 1; j >= 0 ; --j ) {
+						if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+							tbody[ j ].parentNode.removeChild( tbody[ j ] );
+						}
+					}
+
+				}
+
+				// IE completely kills leading whitespace when innerHTML is used
+				if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+					div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+				}
+
+				elem = div.childNodes;
+			}
+
+			if ( elem.nodeType ) {
+				ret.push( elem );
+			} else {
+				ret = jQuery.merge( ret, elem );
+			}
+		}
+
+		if ( fragment ) {
+			for ( var i = 0; ret[i]; i++ ) {
+				if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+					scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+				
+				} else {
+					if ( ret[i].nodeType === 1 ) {
+						ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
+					}
+					fragment.appendChild( ret[i] );
+				}
+			}
+		}
+
+		return ret;
+	},
+	
+	cleanData: function( elems ) {
+		var data, id, cache = jQuery.cache,
+			special = jQuery.event.special,
+			deleteExpando = jQuery.support.deleteExpando;
+		
+		for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+			id = elem[ jQuery.expando ];
+			
+			if ( id ) {
+				data = cache[ id ];
+				
+				if ( data.events ) {
+					for ( var type in data.events ) {
+						if ( special[ type ] ) {
+							jQuery.event.remove( elem, type );
+
+						} else {
+							removeEvent( elem, type, data.handle );
+						}
+					}
+				}
+				
+				if ( deleteExpando ) {
+					delete elem[ jQuery.expando ];
+
+				} else if ( elem.removeAttribute ) {
+					elem.removeAttribute( jQuery.expando );
+				}
+				
+				delete cache[ id ];
+			}
+		}
+	}
+});
+// exclude the following css properties to add px
+var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
+	ralpha = /alpha\([^)]*\)/,
+	ropacity = /opacity=([^)]*)/,
+	rfloat = /float/i,
+	rdashAlpha = /-([a-z])/ig,
+	rupper = /([A-Z])/g,
+	rnumpx = /^-?\d+(?:px)?$/i,
+	rnum = /^-?\d/,
+
+	cssShow = { position: "absolute", visibility: "hidden", display:"block" },
+	cssWidth = [ "Left", "Right" ],
+	cssHeight = [ "Top", "Bottom" ],
+
+	// cache check for defaultView.getComputedStyle
+	getComputedStyle = document.defaultView && document.defaultView.getComputedStyle,
+	// normalize float css property
+	styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat",
+	fcamelCase = function( all, letter ) {
+		return letter.toUpperCase();
+	};
+
+jQuery.fn.css = function( name, value ) {
+	return access( this, name, value, true, function( elem, name, value ) {
+		if ( value === undefined ) {
+			return jQuery.curCSS( elem, name );
+		}
+		
+		if ( typeof value === "number" && !rexclude.test(name) ) {
+			value += "px";
+		}
+
+		jQuery.style( elem, name, value );
+	});
+};
+
+jQuery.extend({
+	style: function( elem, name, value ) {
+		// don't set styles on text and comment nodes
+		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return undefined;
+		}
+
+		// ignore negative width and height values #1599
+		if ( (name === "width" || name === "height") && parseFloat(value) < 0 ) {
+			value = undefined;
+		}
+
+		var style = elem.style || elem, set = value !== undefined;
+
+		// IE uses filters for opacity
+		if ( !jQuery.support.opacity && name === "opacity" ) {
+			if ( set ) {
+				// IE has trouble with opacity if it does not have layout
+				// Force it by setting the zoom level
+				style.zoom = 1;
+
+				// Set the alpha filter to set the opacity
+				var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")";
+				var filter = style.filter || jQuery.curCSS( elem, "filter" ) || "";
+				style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
+			}
+
+			return style.filter && style.filter.indexOf("opacity=") >= 0 ?
+				(parseFloat( ropacity.exec(style.filter)[1] ) / 100) + "":
+				"";
+		}
+
+		// Make sure we're using the right name for getting the float value
+		if ( rfloat.test( name ) ) {
+			name = styleFloat;
+		}
+
+		name = name.replace(rdashAlpha, fcamelCase);
+
+		if ( set ) {
+			style[ name ] = value;
+		}
+
+		return style[ name ];
+	},
+
+	css: function( elem, name, force, extra ) {
+		if ( name === "width" || name === "height" ) {
+			var val, props = cssShow, which = name === "width" ? cssWidth : cssHeight;
+
+			function getWH() {
+				val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
+
+				if ( extra === "border" ) {
+					return;
+				}
+
+				jQuery.each( which, function() {
+					if ( !extra ) {
+						val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
+					}
+
+					if ( extra === "margin" ) {
+						val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
+					} else {
+						val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
+					}
+				});
+			}
+
+			if ( elem.offsetWidth !== 0 ) {
+				getWH();
+			} else {
+				jQuery.swap( elem, props, getWH );
+			}
+
+			return Math.max(0, Math.round(val));
+		}
+
+		return jQuery.curCSS( elem, name, force );
+	},
+
+	curCSS: function( elem, name, force ) {
+		var ret, style = elem.style, filter;
+
+		// IE uses filters for opacity
+		if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
+			ret = ropacity.test(elem.currentStyle.filter || "") ?
+				(parseFloat(RegExp.$1) / 100) + "" :
+				"";
+
+			return ret === "" ?
+				"1" :
+				ret;
+		}
+
+		// Make sure we're using the right name for getting the float value
+		if ( rfloat.test( name ) ) {
+			name = styleFloat;
+		}
+
+		if ( !force && style && style[ name ] ) {
+			ret = style[ name ];
+
+		} else if ( getComputedStyle ) {
+
+			// Only "float" is needed here
+			if ( rfloat.test( name ) ) {
+				name = "float";
+			}
+
+			name = name.replace( rupper, "-$1" ).toLowerCase();
+
+			var defaultView = elem.ownerDocument.defaultView;
+
+			if ( !defaultView ) {
+				return null;
+			}
+
+			var computedStyle = defaultView.getComputedStyle( elem, null );
+
+			if ( computedStyle ) {
+				ret = computedStyle.getPropertyValue( name );
+			}
+
+			// We should always get a number back from opacity
+			if ( name === "opacity" && ret === "" ) {
+				ret = "1";
+			}
+
+		} else if ( elem.currentStyle ) {
+			var camelCase = name.replace(rdashAlpha, fcamelCase);
+
+			ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
+
+			// From the awesome hack by Dean Edwards
+			// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+			// If we're not dealing with a regular pixel number
+			// but a number that has a weird ending, we need to convert it to pixels
+			if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
+				// Remember the original values
+				var left = style.left, rsLeft = elem.runtimeStyle.left;
+
+				// Put in the new values to get a computed value out
+				elem.runtimeStyle.left = elem.currentStyle.left;
+				style.left = camelCase === "fontSize" ? "1em" : (ret || 0);
+				ret = style.pixelLeft + "px";
+
+				// Revert the changed values
+				style.left = left;
+				elem.runtimeStyle.left = rsLeft;
+			}
+		}
+
+		return ret;
+	},
+
+	// A method for quickly swapping in/out CSS properties to get correct calculations
+	swap: function( elem, options, callback ) {
+		var old = {};
+
+		// Remember the old values, and insert the new ones
+		for ( var name in options ) {
+			old[ name ] = elem.style[ name ];
+			elem.style[ name ] = options[ name ];
+		}
+
+		callback.call( elem );
+
+		// Revert the old values
+		for ( var name in options ) {
+			elem.style[ name ] = old[ name ];
+		}
+	}
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+	jQuery.expr.filters.hidden = function( elem ) {
+		var width = elem.offsetWidth, height = elem.offsetHeight,
+			skip = elem.nodeName.toLowerCase() === "tr";
+
+		return width === 0 && height === 0 && !skip ?
+			true :
+			width > 0 && height > 0 && !skip ?
+				false :
+				jQuery.curCSS(elem, "display") === "none";
+	};
+
+	jQuery.expr.filters.visible = function( elem ) {
+		return !jQuery.expr.filters.hidden( elem );
+	};
+}
+var jsc = now(),
+	rscript = /<script(.|\s)*?\/script>/gi,
+	rselectTextarea = /select|textarea/i,
+	rinput = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
+	jsre = /=\?(&|$)/,
+	rquery = /\?/,
+	rts = /(\?|&)_=.*?(&|$)/,
+	rurl = /^(\w+:)?\/\/([^\/?#]+)/,
+	r20 = /%20/g,
+
+	// Keep a copy of the old load method
+	_load = jQuery.fn.load;
+
+jQuery.fn.extend({
+	load: function( url, params, callback ) {
+		if ( typeof url !== "string" ) {
+			return _load.call( this, url );
+
+		// Don't do a request if no elements are being requested
+		} else if ( !this.length ) {
+			return this;
+		}
+
+		var off = url.indexOf(" ");
+		if ( off >= 0 ) {
+			var selector = url.slice(off, url.length);
+			url = url.slice(0, off);
+		}
+
+		// Default to a GET request
+		var type = "GET";
+
+		// If the second parameter was provided
+		if ( params ) {
+			// If it's a function
+			if ( jQuery.isFunction( params ) ) {
+				// We assume that it's the callback
+				callback = params;
+				params = null;
+
+			// Otherwise, build a param string
+			} else if ( typeof params === "object" ) {
+				params = jQuery.param( params, jQuery.ajaxSettings.traditional );
+				type = "POST";
+			}
+		}
+
+		var self = this;
+
+		// Request the remote document
+		jQuery.ajax({
+			url: url,
+			type: type,
+			dataType: "html",
+			data: params,
+			complete: function( res, status ) {
+				// If successful, inject the HTML into all the matched elements
+				if ( status === "success" || status === "notmodified" ) {
+					// See if a selector was specified
+					self.html( selector ?
+						// Create a dummy div to hold the results
+						jQuery("<div />")
+							// inject the contents of the document in, removing the scripts
+							// to avoid any 'Permission Denied' errors in IE
+							.append(res.responseText.replace(rscript, ""))
+
+							// Locate the specified elements
+							.find(selector) :
+
+						// If not, just inject the full result
+						res.responseText );
+				}
+
+				if ( callback ) {
+					self.each( callback, [res.responseText, status, res] );
+				}
+			}
+		});
+
+		return this;
+	},
+
+	serialize: function() {
+		return jQuery.param(this.serializeArray());
+	},
+	serializeArray: function() {
+		return this.map(function() {
+			return this.elements ? jQuery.makeArray(this.elements) : this;
+		})
+		.filter(function() {
+			return this.name && !this.disabled &&
+				(this.checked || rselectTextarea.test(this.nodeName) ||
+					rinput.test(this.type));
+		})
+		.map(function( i, elem ) {
+			var val = jQuery(this).val();
+
+			return val == null ?
+				null :
+				jQuery.isArray(val) ?
+					jQuery.map( val, function( val, i ) {
+						return { name: elem.name, value: val };
+					}) :
+					{ name: elem.name, value: val };
+		}).get();
+	}
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function( i, o ) {
+	jQuery.fn[o] = function( f ) {
+		return this.bind(o, f);
+	};
+});
+
+jQuery.extend({
+
+	get: function( url, data, callback, type ) {
+		// shift arguments if data argument was omited
+		if ( jQuery.isFunction( data ) ) {
+			type = type || callback;
+			callback = data;
+			data = null;
+		}
+
+		return jQuery.ajax({
+			type: "GET",
+			url: url,
+			data: data,
+			success: callback,
+			dataType: type
+		});
+	},
+
+	getScript: function( url, callback ) {
+		return jQuery.get(url, null, callback, "script");
+	},
+
+	getJSON: function( url, data, callback ) {
+		return jQuery.get(url, data, callback, "json");
+	},
+
+	post: function( url, data, callback, type ) {
+		// shift arguments if data argument was omited
+		if ( jQuery.isFunction( data ) ) {
+			type = type || callback;
+			callback = data;
+			data = {};
+		}
+
+		return jQuery.ajax({
+			type: "POST",
+			url: url,
+			data: data,
+			success: callback,
+			dataType: type
+		});
+	},
+
+	ajaxSetup: function( settings ) {
+		jQuery.extend( jQuery.ajaxSettings, settings );
+	},
+
+	ajaxSettings: {
+		url: location.href,
+		global: true,
+		type: "GET",
+		contentType: "application/x-www-form-urlencoded",
+		processData: true,
+		async: true,
+		/*
+		timeout: 0,
+		data: null,
+		username: null,
+		password: null,
+		traditional: false,
+		*/
+		// Create the request object; Microsoft failed to properly
+		// implement the XMLHttpRequest in IE7 (can't request local files),
+		// so we use the ActiveXObject when it is available
+		// This function can be overriden by calling jQuery.ajaxSetup
+		xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ?
+			function() {
+				return new window.XMLHttpRequest();
+			} :
+			function() {
+				try {
+					return new window.ActiveXObject("Microsoft.XMLHTTP");
+				} catch(e) {}
+			},
+		accepts: {
+			xml: "application/xml, text/xml",
+			html: "text/html",
+			script: "text/javascript, application/javascript",
+			json: "application/json, text/javascript",
+			text: "text/plain",
+			_default: "*/*"
+		}
+	},
+
+	// Last-Modified header cache for next request
+	lastModified: {},
+	etag: {},
+
+	ajax: function( origSettings ) {
+		var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings);
+		
+		var jsonp, status, data,
+			callbackContext = origSettings && origSettings.context || s,
+			type = s.type.toUpperCase();
+
+		// convert data if not already a string
+		if ( s.data && s.processData && typeof s.data !== "string" ) {
+			s.data = jQuery.param( s.data, s.traditional );
+		}
+
+		// Handle JSONP Parameter Callbacks
+		if ( s.dataType === "jsonp" ) {
+			if ( type === "GET" ) {
+				if ( !jsre.test( s.url ) ) {
+					s.url += (rquery.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?";
+				}
+			} else if ( !s.data || !jsre.test(s.data) ) {
+				s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
+			}
+			s.dataType = "json";
+		}
+
+		// Build temporary JSONP function
+		if ( s.dataType === "json" && (s.data && jsre.test(s.data) || jsre.test(s.url)) ) {
+			jsonp = s.jsonpCallback || ("jsonp" + jsc++);
+
+			// Replace the =? sequence both in the query string and the data
+			if ( s.data ) {
+				s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
+			}
+
+			s.url = s.url.replace(jsre, "=" + jsonp + "$1");
+
+			// We need to make sure
+			// that a JSONP style response is executed properly
+			s.dataType = "script";
+
+			// Handle JSONP-style loading
+			window[ jsonp ] = window[ jsonp ] || function( tmp ) {
+				data = tmp;
+				success();
+				complete();
+				// Garbage collect
+				window[ jsonp ] = undefined;
+
+				try {
+					delete window[ jsonp ];
+				} catch(e) {}
+
+				if ( head ) {
+					head.removeChild( script );
+				}
+			};
+		}
+
+		if ( s.dataType === "script" && s.cache === null ) {
+			s.cache = false;
+		}
+
+		if ( s.cache === false && type === "GET" ) {
+			var ts = now();
+
+			// try replacing _= if it is there
+			var ret = s.url.replace(rts, "$1_=" + ts + "$2");
+
+			// if nothing was replaced, add timestamp to the end
+			s.url = ret + ((ret === s.url) ? (rquery.test(s.url) ? "&" : "?") + "_=" + ts : "");
+		}
+
+		// If data is available, append data to url for get requests
+		if ( s.data && type === "GET" ) {
+			s.url += (rquery.test(s.url) ? "&" : "?") + s.data;
+		}
+
+		// Watch for a new set of requests
+		if ( s.global && ! jQuery.active++ ) {
+			jQuery.event.trigger( "ajaxStart" );
+		}
+
+		// Matches an absolute URL, and saves the domain
+		var parts = rurl.exec( s.url ),
+			remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host);
+
+		// If we're requesting a remote document
+		// and trying to load JSON or Script with a GET
+		if ( s.dataType === "script" && type === "GET" && remote ) {
+			var head = document.getElementsByTagName("head")[0] || document.documentElement;
+			var script = document.createElement("script");
+			script.src = s.url;
+			if ( s.scriptCharset ) {
+				script.charset = s.scriptCharset;
+			}
+
+			// Handle Script loading
+			if ( !jsonp ) {
+				var done = false;
+
+				// Attach handlers for all browsers
+				script.onload = script.onreadystatechange = function() {
+					if ( !done && (!this.readyState ||
+							this.readyState === "loaded" || this.readyState === "complete") ) {
+						done = true;
+						success();
+						complete();
+
+						// Handle memory leak in IE
+						script.onload = script.onreadystatechange = null;
+						if ( head && script.parentNode ) {
+							head.removeChild( script );
+						}
+					}
+				};
+			}
+
+			// Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+			// This arises when a base node is used (#2709 and #4378).
+			head.insertBefore( script, head.firstChild );
+
+			// We handle everything using the script element injection
+			return undefined;
+		}
+
+		var requestDone = false;
+
+		// Create the request object
+		var xhr = s.xhr();
+
+		if ( !xhr ) {
+			return;
+		}
+
+		// Open the socket
+		// Passing null username, generates a login popup on Opera (#2865)
+		if ( s.username ) {
+			xhr.open(type, s.url, s.async, s.username, s.password);
+		} else {
+			xhr.open(type, s.url, s.async);
+		}
+
+		// Need an extra try/catch for cross domain requests in Firefox 3
+		try {
+			// Set the correct header, if data is being sent
+			if ( s.data || origSettings && origSettings.contentType ) {
+				xhr.setRequestHeader("Content-Type", s.contentType);
+			}
+
+			// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+			if ( s.ifModified ) {
+				if ( jQuery.lastModified[s.url] ) {
+					xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]);
+				}
+
+				if ( jQuery.etag[s.url] ) {
+					xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]);
+				}
+			}
+
+			// Set header so the called script knows that it's an XMLHttpRequest
+			// Only send the header if it's not a remote XHR
+			if ( !remote ) {
+				xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
+			}
+
+			// Set the Accepts header for the server, depending on the dataType
+			xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
+				s.accepts[ s.dataType ] + ", */*" :
+				s.accepts._default );
+		} catch(e) {}
+
+		// Allow custom headers/mimetypes and early abort
+		if ( s.beforeSend && s.beforeSend.call(callbackContext, xhr, s) === false ) {
+			// Handle the global AJAX counter
+			if ( s.global && ! --jQuery.active ) {
+				jQuery.event.trigger( "ajaxStop" );
+			}
+
+			// close opended socket
+			xhr.abort();
+			return false;
+		}
+
+		if ( s.global ) {
+			trigger("ajaxSend", [xhr, s]);
+		}
+
+		// Wait for a response to come back
+		var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) {
+			// The request was aborted
+			if ( !xhr || xhr.readyState === 0 || isTimeout === "abort" ) {
+				// Opera doesn't call onreadystatechange before this point
+				// so we simulate the call
+				if ( !requestDone ) {
+					complete();
+				}
+
+				requestDone = true;
+				if ( xhr ) {
+					xhr.onreadystatechange = jQuery.noop;
+				}
+
+			// The transfer is complete and the data is available, or the request timed out
+			} else if ( !requestDone && xhr && (xhr.readyState === 4 || isTimeout === "timeout") ) {
+				requestDone = true;
+				xhr.onreadystatechange = jQuery.noop;
+
+				status = isTimeout === "timeout" ?
+					"timeout" :
+					!jQuery.httpSuccess( xhr ) ?
+						"error" :
+						s.ifModified && jQuery.httpNotModified( xhr, s.url ) ?
+							"notmodified" :
+							"success";
+
+				var errMsg;
+
+				if ( status === "success" ) {
+					// Watch for, and catch, XML document parse errors
+					try {
+						// process the data (runs the xml through httpData regardless of callback)
+						data = jQuery.httpData( xhr, s.dataType, s );
+					} catch(err) {
+						status = "parsererror";
+						errMsg = err;
+					}
+				}
+
+				// Make sure that the request was successful or notmodified
+				if ( status === "success" || status === "notmodified" ) {
+					// JSONP handles its own success callback
+					if ( !jsonp ) {
+						success();
+					}
+				} else {
+					jQuery.handleError(s, xhr, status, errMsg);
+				}
+
+				// Fire the complete handlers
+				complete();
+
+				if ( isTimeout === "timeout" ) {
+					xhr.abort();
+				}
+
+				// Stop memory leaks
+				if ( s.async ) {
+					xhr = null;
+				}
+			}
+		};
+
+		// Override the abort handler, if we can (IE doesn't allow it, but that's OK)
+		// Opera doesn't fire onreadystatechange at all on abort
+		try {
+			var oldAbort = xhr.abort;
+			xhr.abort = function() {
+				if ( xhr ) {
+					oldAbort.call( xhr );
+				}
+
+				onreadystatechange( "abort" );
+			};
+		} catch(e) { }
+
+		// Timeout checker
+		if ( s.async && s.timeout > 0 ) {
+			setTimeout(function() {
+				// Check to see if the request is still happening
+				if ( xhr && !requestDone ) {
+					onreadystatechange( "timeout" );
+				}
+			}, s.timeout);
+		}
+
+		// Send the data
+		try {
+			xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
+		} catch(e) {
+			jQuery.handleError(s, xhr, null, e);
+			// Fire the complete handlers
+			complete();
+		}
+
+		// firefox 1.5 doesn't fire statechange for sync requests
+		if ( !s.async ) {
+			onreadystatechange();
+		}
+
+		function success() {
+			// If a local callback was specified, fire it and pass it the data
+			if ( s.success ) {
+				s.success.call( callbackContext, data, status, xhr );
+			}
+
+			// Fire the global callback
+			if ( s.global ) {
+				trigger( "ajaxSuccess", [xhr, s] );
+			}
+		}
+
+		function complete() {
+			// Process result
+			if ( s.complete ) {
+				s.complete.call( callbackContext, xhr, status);
+			}
+
+			// The request was completed
+			if ( s.global ) {
+				trigger( "ajaxComplete", [xhr, s] );
+			}
+
+			// Handle the global AJAX counter
+			if ( s.global && ! --jQuery.active ) {
+				jQuery.event.trigger( "ajaxStop" );
+			}
+		}
+		
+		function trigger(type, args) {
+			(s.context ? jQuery(s.context) : jQuery.event).trigger(type, args);
+		}
+
+		// return XMLHttpRequest to allow aborting the request etc.
+		return xhr;
+	},
+
+	handleError: function( s, xhr, status, e ) {
+		// If a local callback was specified, fire it
+		if ( s.error ) {
+			s.error.call( s.context || s, xhr, status, e );
+		}
+
+		// Fire the global callback
+		if ( s.global ) {
+			(s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] );
+		}
+	},
+
+	// Counter for holding the number of active queries
+	active: 0,
+
+	// Determines if an XMLHttpRequest was successful or not
+	httpSuccess: function( xhr ) {
+		try {
+			// IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
+			return !xhr.status && location.protocol === "file:" ||
+				// Opera returns 0 when status is 304
+				( xhr.status >= 200 && xhr.status < 300 ) ||
+				xhr.status === 304 || xhr.status === 1223 || xhr.status === 0;
+		} catch(e) {}
+
+		return false;
+	},
+
+	// Determines if an XMLHttpRequest returns NotModified
+	httpNotModified: function( xhr, url ) {
+		var lastModified = xhr.getResponseHeader("Last-Modified"),
+			etag = xhr.getResponseHeader("Etag");
+
+		if ( lastModified ) {
+			jQuery.lastModified[url] = lastModified;
+		}
+
+		if ( etag ) {
+			jQuery.etag[url] = etag;
+		}
+
+		// Opera returns 0 when status is 304
+		return xhr.status === 304 || xhr.status === 0;
+	},
+
+	httpData: function( xhr, type, s ) {
+		var ct = xhr.getResponseHeader("content-type") || "",
+			xml = type === "xml" || !type && ct.indexOf("xml") >= 0,
+			data = xml ? xhr.responseXML : xhr.responseText;
+
+		if ( xml && data.documentElement.nodeName === "parsererror" ) {
+			jQuery.error( "parsererror" );
+		}
+
+		// Allow a pre-filtering function to sanitize the response
+		// s is checked to keep backwards compatibility
+		if ( s && s.dataFilter ) {
+			data = s.dataFilter( data, type );
+		}
+
+		// The filter can actually parse the response
+		if ( typeof data === "string" ) {
+			// Get the JavaScript object, if JSON is used.
+			if ( type === "json" || !type && ct.indexOf("json") >= 0 ) {
+				data = jQuery.parseJSON( data );
+
+			// If the type is "script", eval it in global context
+			} else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) {
+				jQuery.globalEval( data );
+			}
+		}
+
+		return data;
+	},
+
+	// Serialize an array of form elements or a set of
+	// key/values into a query string
+	param: function( a, traditional ) {
+		var s = [];
+		
+		// Set traditional to true for jQuery <= 1.3.2 behavior.
+		if ( traditional === undefined ) {
+			traditional = jQuery.ajaxSettings.traditional;
+		}
+		
+		// If an array was passed in, assume that it is an array of form elements.
+		if ( jQuery.isArray(a) || a.jquery ) {
+			// Serialize the form elements
+			jQuery.each( a, function() {
+				add( this.name, this.value );
+			});
+			
+		} else {
+			// If traditional, encode the "old" way (the way 1.3.2 or older
+			// did it), otherwise encode params recursively.
+			for ( var prefix in a ) {
+				buildParams( prefix, a[prefix] );
+			}
+		}
+
+		// Return the resulting serialization
+		return s.join("&").replace(r20, "+");
+
+		function buildParams( prefix, obj ) {
+			if ( jQuery.isArray(obj) ) {
+				// Serialize array item.
+				jQuery.each( obj, function( i, v ) {
+					if ( traditional || /\[\]$/.test( prefix ) ) {
+						// Treat each array item as a scalar.
+						add( prefix, v );
+					} else {
+						// If array item is non-scalar (array or object), encode its
+						// numeric index to resolve deserialization ambiguity issues.
+						// Note that rack (as of 1.0.0) can't currently deserialize
+						// nested arrays properly, and attempting to do so may cause
+						// a server error. Possible fixes are to modify rack's
+						// deserialization algorithm or to provide an option or flag
+						// to force array serialization to be shallow.
+						buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v );
+					}
+				});
+					
+			} else if ( !traditional && obj != null && typeof obj === "object" ) {
+				// Serialize object item.
+				jQuery.each( obj, function( k, v ) {
+					buildParams( prefix + "[" + k + "]", v );
+				});
+					
+			} else {
+				// Serialize scalar item.
+				add( prefix, obj );
+			}
+		}
+
+		function add( key, value ) {
+			// If value is a function, invoke it and return its value
+			value = jQuery.isFunction(value) ? value() : value;
+			s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
+		}
+	}
+});
+var elemdisplay = {},
+	rfxtypes = /toggle|show|hide/,
+	rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/,
+	timerId,
+	fxAttrs = [
+		// height animations
+		[ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+		// width animations
+		[ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+		// opacity animations
+		[ "opacity" ]
+	];
+
+jQuery.fn.extend({
+	show: function( speed, callback ) {
+		if ( speed || speed === 0) {
+			return this.animate( genFx("show", 3), speed, callback);
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var old = jQuery.data(this[i], "olddisplay");
+
+				this[i].style.display = old || "";
+
+				if ( jQuery.css(this[i], "display") === "none" ) {
+					var nodeName = this[i].nodeName, display;
+
+					if ( elemdisplay[ nodeName ] ) {
+						display = elemdisplay[ nodeName ];
+
+					} else {
+						var elem = jQuery("<" + nodeName + " />").appendTo("body");
+
+						display = elem.css("display");
+
+						if ( display === "none" ) {
+							display = "block";
+						}
+
+						elem.remove();
+
+						elemdisplay[ nodeName ] = display;
+					}
+
+					jQuery.data(this[i], "olddisplay", display);
+				}
+			}
+
+			// Set the display of the elements in a second loop
+			// to avoid the constant reflow
+			for ( var j = 0, k = this.length; j < k; j++ ) {
+				this[j].style.display = jQuery.data(this[j], "olddisplay") || "";
+			}
+
+			return this;
+		}
+	},
+
+	hide: function( speed, callback ) {
+		if ( speed || speed === 0 ) {
+			return this.animate( genFx("hide", 3), speed, callback);
+
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ) {
+				var old = jQuery.data(this[i], "olddisplay");
+				if ( !old && old !== "none" ) {
+					jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
+				}
+			}
+
+			// Set the display of the elements in a second loop
+			// to avoid the constant reflow
+			for ( var j = 0, k = this.length; j < k; j++ ) {
+				this[j].style.display = "none";
+			}
+
+			return this;
+		}
+	},
+
+	// Save the old toggle function
+	_toggle: jQuery.fn.toggle,
+
+	toggle: function( fn, fn2 ) {
+		var bool = typeof fn === "boolean";
+
+		if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
+			this._toggle.apply( this, arguments );
+
+		} else if ( fn == null || bool ) {
+			this.each(function() {
+				var state = bool ? fn : jQuery(this).is(":hidden");
+				jQuery(this)[ state ? "show" : "hide" ]();
+			});
+
+		} else {
+			this.animate(genFx("toggle", 3), fn, fn2);
+		}
+
+		return this;
+	},
+
+	fadeTo: function( speed, to, callback ) {
+		return this.filter(":hidden").css("opacity", 0).show().end()
+					.animate({opacity: to}, speed, callback);
+	},
+
+	animate: function( prop, speed, easing, callback ) {
+		var optall = jQuery.speed(speed, easing, callback);
+
+		if ( jQuery.isEmptyObject( prop ) ) {
+			return this.each( optall.complete );
+		}
+
+		return this[ optall.queue === false ? "each" : "queue" ](function() {
+			var opt = jQuery.extend({}, optall), p,
+				hidden = this.nodeType === 1 && jQuery(this).is(":hidden"),
+				self = this;
+
+			for ( p in prop ) {
+				var name = p.replace(rdashAlpha, fcamelCase);
+
+				if ( p !== name ) {
+					prop[ name ] = prop[ p ];
+					delete prop[ p ];
+					p = name;
+				}
+
+				if ( prop[p] === "hide" && hidden || prop[p] === "show" && !hidden ) {
+					return opt.complete.call(this);
+				}
+
+				if ( ( p === "height" || p === "width" ) && this.style ) {
+					// Store display property
+					opt.display = jQuery.css(this, "display");
+
+					// Make sure that nothing sneaks out
+					opt.overflow = this.style.overflow;
+				}
+
+				if ( jQuery.isArray( prop[p] ) ) {
+					// Create (if needed) and add to specialEasing
+					(opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1];
+					prop[p] = prop[p][0];
+				}
+			}
+
+			if ( opt.overflow != null ) {
+				this.style.overflow = "hidden";
+			}
+
+			opt.curAnim = jQuery.extend({}, prop);
+
+			jQuery.each( prop, function( name, val ) {
+				var e = new jQuery.fx( self, opt, name );
+
+				if ( rfxtypes.test(val) ) {
+					e[ val === "toggle" ? hidden ? "show" : "hide" : val ]( prop );
+
+				} else {
+					var parts = rfxnum.exec(val),
+						start = e.cur(true) || 0;
+
+					if ( parts ) {
+						var end = parseFloat( parts[2] ),
+							unit = parts[3] || "px";
+
+						// We need to compute starting value
+						if ( unit !== "px" ) {
+							self.style[ name ] = (end || 1) + unit;
+							start = ((end || 1) / e.cur(true)) * start;
+							self.style[ name ] = start + unit;
+						}
+
+						// If a +=/-= token was provided, we're doing a relative animation
+						if ( parts[1] ) {
+							end = ((parts[1] === "-=" ? -1 : 1) * end) + start;
+						}
+
+						e.custom( start, end, unit );
+
+					} else {
+						e.custom( start, val, "" );
+					}
+				}
+			});
+
+			// For JS strict compliance
+			return true;
+		});
+	},
+
+	stop: function( clearQueue, gotoEnd ) {
+		var timers = jQuery.timers;
+
+		if ( clearQueue ) {
+			this.queue([]);
+		}
+
+		this.each(function() {
+			// go in reverse order so anything added to the queue during the loop is ignored
+			for ( var i = timers.length - 1; i >= 0; i-- ) {
+				if ( timers[i].elem === this ) {
+					if (gotoEnd) {
+						// force the next step to be the last
+						timers[i](true);
+					}
+
+					timers.splice(i, 1);
+				}
+			}
+		});
+
+		// start the next in the queue if the last step wasn't forced
+		if ( !gotoEnd ) {
+			this.dequeue();
+		}
+
+		return this;
+	}
+
+});
+
+// Generate shortcuts for custom animations
+jQuery.each({
+	slideDown: genFx("show", 1),
+	slideUp: genFx("hide", 1),
+	slideToggle: genFx("toggle", 1),
+	fadeIn: { opacity: "show" },
+	fadeOut: { opacity: "hide" }
+}, function( name, props ) {
+	jQuery.fn[ name ] = function( speed, callback ) {
+		return this.animate( props, speed, callback );
+	};
+});
+
+jQuery.extend({
+	speed: function( speed, easing, fn ) {
+		var opt = speed && typeof speed === "object" ? speed : {
+			complete: fn || !fn && easing ||
+				jQuery.isFunction( speed ) && speed,
+			duration: speed,
+			easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
+		};
+
+		opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+			jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
+
+		// Queueing
+		opt.old = opt.complete;
+		opt.complete = function() {
+			if ( opt.queue !== false ) {
+				jQuery(this).dequeue();
+			}
+			if ( jQuery.isFunction( opt.old ) ) {
+				opt.old.call( this );
+			}
+		};
+
+		return opt;
+	},
+
+	easing: {
+		linear: function( p, n, firstNum, diff ) {
+			return firstNum + diff * p;
+		},
+		swing: function( p, n, firstNum, diff ) {
+			return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
+		}
+	},
+
+	timers: [],
+
+	fx: function( elem, options, prop ) {
+		this.options = options;
+		this.elem = elem;
+		this.prop = prop;
+
+		if ( !options.orig ) {
+			options.orig = {};
+		}
+	}
+
+});
+
+jQuery.fx.prototype = {
+	// Simple function for setting a style value
+	update: function() {
+		if ( this.options.step ) {
+			this.options.step.call( this.elem, this.now, this );
+		}
+
+		(jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
+
+		// Set display property to block for height/width animations
+		if ( ( this.prop === "height" || this.prop === "width" ) && this.elem.style ) {
+			this.elem.style.display = "block";
+		}
+	},
+
+	// Get the current size
+	cur: function( force ) {
+		if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
+			return this.elem[ this.prop ];
+		}
+
+		var r = parseFloat(jQuery.css(this.elem, this.prop, force));
+		return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
+	},
+
+	// Start an animation from one number to another
+	custom: function( from, to, unit ) {
+		this.startTime = now();
+		this.start = from;
+		this.end = to;
+		this.unit = unit || this.unit || "px";
+		this.now = this.start;
+		this.pos = this.state = 0;
+
+		var self = this;
+		function t( gotoEnd ) {
+			return self.step(gotoEnd);
+		}
+
+		t.elem = this.elem;
+
+		if ( t() && jQuery.timers.push(t) && !timerId ) {
+			timerId = setInterval(jQuery.fx.tick, 13);
+		}
+	},
+
+	// Simple 'show' function
+	show: function() {
+		// Remember where we started, so that we can go back to it later
+		this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
+		this.options.show = true;
+
+		// Begin the animation
+		// Make sure that we start at a small width/height to avoid any
+		// flash of content
+		this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
+
+		// Start by showing the element
+		jQuery( this.elem ).show();
+	},
+
+	// Simple 'hide' function
+	hide: function() {
+		// Remember where we started, so that we can go back to it later
+		this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
+		this.options.hide = true;
+
+		// Begin the animation
+		this.custom(this.cur(), 0);
+	},
+
+	// Each step of an animation
+	step: function( gotoEnd ) {
+		var t = now(), done = true;
+
+		if ( gotoEnd || t >= this.options.duration + this.startTime ) {
+			this.now = this.end;
+			this.pos = this.state = 1;
+			this.update();
+
+			this.options.curAnim[ this.prop ] = true;
+
+			for ( var i in this.options.curAnim ) {
+				if ( this.options.curAnim[i] !== true ) {
+					done = false;
+				}
+			}
+
+			if ( done ) {
+				if ( this.options.display != null ) {
+					// Reset the overflow
+					this.elem.style.overflow = this.options.overflow;
+
+					// Reset the display
+					var old = jQuery.data(this.elem, "olddisplay");
+					this.elem.style.display = old ? old : this.options.display;
+
+					if ( jQuery.css(this.elem, "display") === "none" ) {
+						this.elem.style.display = "block";
+					}
+				}
+
+				// Hide the element if the "hide" operation was done
+				if ( this.options.hide ) {
+					jQuery(this.elem).hide();
+				}
+
+				// Reset the properties, if the item has been hidden or shown
+				if ( this.options.hide || this.options.show ) {
+					for ( var p in this.options.curAnim ) {
+						jQuery.style(this.elem, p, this.options.orig[p]);
+					}
+				}
+
+				// Execute the complete function
+				this.options.complete.call( this.elem );
+			}
+
+			return false;
+
+		} else {
+			var n = t - this.startTime;
+			this.state = n / this.options.duration;
+
+			// Perform the easing function, defaults to swing
+			var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop];
+			var defaultEasing = this.options.easing || (jQuery.easing.swing ? "swing" : "linear");
+			this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);
+			this.now = this.start + ((this.end - this.start) * this.pos);
+
+			// Perform the next step of the animation
+			this.update();
+		}
+
+		return true;
+	}
+};
+
+jQuery.extend( jQuery.fx, {
+	tick: function() {
+		var timers = jQuery.timers;
+
+		for ( var i = 0; i < timers.length; i++ ) {
+			if ( !timers[i]() ) {
+				timers.splice(i--, 1);
+			}
+		}
+
+		if ( !timers.length ) {
+			jQuery.fx.stop();
+		}
+	},
+		
+	stop: function() {
+		clearInterval( timerId );
+		timerId = null;
+	},
+	
+	speeds: {
+		slow: 600,
+ 		fast: 200,
+ 		// Default speed
+ 		_default: 400
+	},
+
+	step: {
+		opacity: function( fx ) {
+			jQuery.style(fx.elem, "opacity", fx.now);
+		},
+
+		_default: function( fx ) {
+			if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
+				fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
+			} else {
+				fx.elem[ fx.prop ] = fx.now;
+			}
+		}
+	}
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+	jQuery.expr.filters.animated = function( elem ) {
+		return jQuery.grep(jQuery.timers, function( fn ) {
+			return elem === fn.elem;
+		}).length;
+	};
+}
+
+function genFx( type, num ) {
+	var obj = {};
+
+	jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
+		obj[ this ] = type;
+	});
+
+	return obj;
+}
+if ( "getBoundingClientRect" in document.documentElement ) {
+	jQuery.fn.offset = function( options ) {
+		var elem = this[0];
+
+		if ( options ) { 
+			return this.each(function( i ) {
+				jQuery.offset.setOffset( this, options, i );
+			});
+		}
+
+		if ( !elem || !elem.ownerDocument ) {
+			return null;
+		}
+
+		if ( elem === elem.ownerDocument.body ) {
+			return jQuery.offset.bodyOffset( elem );
+		}
+
+		var box = elem.getBoundingClientRect(), doc = elem.ownerDocument, body = doc.body, docElem = doc.documentElement,
+			clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
+			top  = box.top  + (self.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop,
+			left = box.left + (self.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
+
+		return { top: top, left: left };
+	};
+
+} else {
+	jQuery.fn.offset = function( options ) {
+		var elem = this[0];
+
+		if ( options ) { 
+			return this.each(function( i ) {
+				jQuery.offset.setOffset( this, options, i );
+			});
+		}
+
+		if ( !elem || !elem.ownerDocument ) {
+			return null;
+		}
+
+		if ( elem === elem.ownerDocument.body ) {
+			return jQuery.offset.bodyOffset( elem );
+		}
+
+		jQuery.offset.initialize();
+
+		var offsetParent = elem.offsetParent, prevOffsetParent = elem,
+			doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
+			body = doc.body, defaultView = doc.defaultView,
+			prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
+			top = elem.offsetTop, left = elem.offsetLeft;
+
+		while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+			if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
+				break;
+			}
+
+			computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
+			top  -= elem.scrollTop;
+			left -= elem.scrollLeft;
+
+			if ( elem === offsetParent ) {
+				top  += elem.offsetTop;
+				left += elem.offsetLeft;
+
+				if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.nodeName)) ) {
+					top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+					left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+				}
+
+				prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
+			}
+
+			if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
+				top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+				left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+			}
+
+			prevComputedStyle = computedStyle;
+		}
+
+		if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
+			top  += body.offsetTop;
+			left += body.offsetLeft;
+		}
+
+		if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
+			top  += Math.max( docElem.scrollTop, body.scrollTop );
+			left += Math.max( docElem.scrollLeft, body.scrollLeft );
+		}
+
+		return { top: top, left: left };
+	};
+}
+
+jQuery.offset = {
+	initialize: function() {
+		var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.curCSS(body, "marginTop", true) ) || 0,
+			html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
+
+		jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
+
+		container.innerHTML = html;
+		body.insertBefore( container, body.firstChild );
+		innerDiv = container.firstChild;
+		checkDiv = innerDiv.firstChild;
+		td = innerDiv.nextSibling.firstChild.firstChild;
+
+		this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
+		this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
+
+		checkDiv.style.position = "fixed", checkDiv.style.top = "20px";
+		// safari subtracts parent border width here which is 5px
+		this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
+		checkDiv.style.position = checkDiv.style.top = "";
+
+		innerDiv.style.overflow = "hidden", innerDiv.style.position = "relative";
+		this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
+
+		this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
+
+		body.removeChild( container );
+		body = container = innerDiv = checkDiv = table = td = null;
+		jQuery.offset.initialize = jQuery.noop;
+	},
+
+	bodyOffset: function( body ) {
+		var top = body.offsetTop, left = body.offsetLeft;
+
+		jQuery.offset.initialize();
+
+		if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
+			top  += parseFloat( jQuery.curCSS(body, "marginTop",  true) ) || 0;
+			left += parseFloat( jQuery.curCSS(body, "marginLeft", true) ) || 0;
+		}
+
+		return { top: top, left: left };
+	},
+	
+	setOffset: function( elem, options, i ) {
+		// set position first, in-case top/left are set even on static elem
+		if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) {
+			elem.style.position = "relative";
+		}
+		var curElem   = jQuery( elem ),
+			curOffset = curElem.offset(),
+			curTop    = parseInt( jQuery.curCSS( elem, "top",  true ), 10 ) || 0,
+			curLeft   = parseInt( jQuery.curCSS( elem, "left", true ), 10 ) || 0;
+
+		if ( jQuery.isFunction( options ) ) {
+			options = options.call( elem, i, curOffset );
+		}
+
+		var props = {
+			top:  (options.top  - curOffset.top)  + curTop,
+			left: (options.left - curOffset.left) + curLeft
+		};
+		
+		if ( "using" in options ) {
+			options.using.call( elem, props );
+		} else {
+			curElem.css( props );
+		}
+	}
+};
+
+
+jQuery.fn.extend({
+	position: function() {
+		if ( !this[0] ) {
+			return null;
+		}
+
+		var elem = this[0],
+
+		// Get *real* offsetParent
+		offsetParent = this.offsetParent(),
+
+		// Get correct offsets
+		offset       = this.offset(),
+		parentOffset = /^body|html$/i.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+		// Subtract element margins
+		// note: when an element has margin: auto the offsetLeft and marginLeft
+		// are the same in Safari causing offset.left to incorrectly be 0
+		offset.top  -= parseFloat( jQuery.curCSS(elem, "marginTop",  true) ) || 0;
+		offset.left -= parseFloat( jQuery.curCSS(elem, "marginLeft", true) ) || 0;
+
+		// Add offsetParent borders
+		parentOffset.top  += parseFloat( jQuery.curCSS(offsetParent[0], "borderTopWidth",  true) ) || 0;
+		parentOffset.left += parseFloat( jQuery.curCSS(offsetParent[0], "borderLeftWidth", true) ) || 0;
+
+		// Subtract the two offsets
+		return {
+			top:  offset.top  - parentOffset.top,
+			left: offset.left - parentOffset.left
+		};
+	},
+
+	offsetParent: function() {
+		return this.map(function() {
+			var offsetParent = this.offsetParent || document.body;
+			while ( offsetParent && (!/^body|html$/i.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
+				offsetParent = offsetParent.offsetParent;
+			}
+			return offsetParent;
+		});
+	}
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ["Left", "Top"], function( i, name ) {
+	var method = "scroll" + name;
+
+	jQuery.fn[ method ] = function(val) {
+		var elem = this[0], win;
+		
+		if ( !elem ) {
+			return null;
+		}
+
+		if ( val !== undefined ) {
+			// Set the scroll offset
+			return this.each(function() {
+				win = getWindow( this );
+
+				if ( win ) {
+					win.scrollTo(
+						!i ? val : jQuery(win).scrollLeft(),
+						 i ? val : jQuery(win).scrollTop()
+					);
+
+				} else {
+					this[ method ] = val;
+				}
+			});
+		} else {
+			win = getWindow( elem );
+
+			// Return the scroll offset
+			return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
+				jQuery.support.boxModel && win.document.documentElement[ method ] ||
+					win.document.body[ method ] :
+				elem[ method ];
+		}
+	};
+});
+
+function getWindow( elem ) {
+	return ("scrollTo" in elem && elem.document) ?
+		elem :
+		elem.nodeType === 9 ?
+			elem.defaultView || elem.parentWindow :
+			false;
+}
+// Create innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function( i, name ) {
+
+	var type = name.toLowerCase();
+
+	// innerHeight and innerWidth
+	jQuery.fn["inner" + name] = function() {
+		return this[0] ?
+			jQuery.css( this[0], type, false, "padding" ) :
+			null;
+	};
+
+	// outerHeight and outerWidth
+	jQuery.fn["outer" + name] = function( margin ) {
+		return this[0] ?
+			jQuery.css( this[0], type, false, margin ? "margin" : "border" ) :
+			null;
+	};
+
+	jQuery.fn[ type ] = function( size ) {
+		// Get window width or height
+		var elem = this[0];
+		if ( !elem ) {
+			return size == null ? null : this;
+		}
+		
+		if ( jQuery.isFunction( size ) ) {
+			return this.each(function( i ) {
+				var self = jQuery( this );
+				self[ type ]( size.call( this, i, self[ type ]() ) );
+			});
+		}
+
+		return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window?
+			// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+			elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
+			elem.document.body[ "client" + name ] :
+
+			// Get document width or height
+			(elem.nodeType === 9) ? // is it a document
+				// Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+				Math.max(
+					elem.documentElement["client" + name],
+					elem.body["scroll" + name], elem.documentElement["scroll" + name],
+					elem.body["offset" + name], elem.documentElement["offset" + name]
+				) :
+
+				// Get or set width or height on the element
+				size === undefined ?
+					// Get width or height on the element
+					jQuery.css( elem, type ) :
+
+					// Set the width or height on the element (default to pixels if value is unitless)
+					this.css( type, typeof size === "string" ? size : size + "px" );
+	};
+
+});
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+
+})(window);
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/jquery.jstree.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/jquery.jstree.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/jquery.jstree.js	(revision 1516)
@@ -0,0 +1,3514 @@
+/*
+ * jsTree 1.0-rc1
+ * http://jstree.com/
+ *
+ * Copyright (c) 2010 Ivan Bozhanov (vakata.com)
+ *
+ * Dual licensed under the MIT and GPL licenses (same as jQuery):
+ *   http://www.opensource.org/licenses/mit-license.php
+ *   http://www.gnu.org/licenses/gpl.html
+ *
+ * $Date: 2010-07-01 10:51:11 +0300 (ÑÐµÑÐ², 01 ÑÐ»Ðž 2010) $
+ * $Revision: 191 $
+ */
+
+/*jslint browser: true, onevar: true, undef: true, bitwise: true, strict: true */
+/*global window : false, clearInterval: false, clearTimeout: false, document: false, setInterval: false, setTimeout: false, jQuery: false, navigator: false, XSLTProcessor: false, DOMParser: false, XMLSerializer: false*/
+
+"use strict";
+// Common functions not related to jsTree 
+// decided to move them to a `vakata` "namespace"
+(function ($) {
+	$.vakata = {};
+	// CSS related functions
+	$.vakata.css = {
+		get_css : function(rule_name, delete_flag, sheet) {
+			rule_name = rule_name.toLowerCase();
+			var css_rules = sheet.cssRules || sheet.rules,
+				j = 0;
+			do {
+				if(css_rules.length && j > css_rules.length + 5) { return false; }
+				if(css_rules[j].selectorText && css_rules[j].selectorText.toLowerCase() == rule_name) {
+					if(delete_flag === true) {
+						if(sheet.removeRule) { sheet.removeRule(j); }
+						if(sheet.deleteRule) { sheet.deleteRule(j); }
+						return true;
+					}
+					else { return css_rules[j]; }
+				}
+			}
+			while (css_rules[++j]);
+			return false;
+		},
+		add_css : function(rule_name, sheet) {
+			if($.jstree.css.get_css(rule_name, false, sheet)) { return false; }
+			if(sheet.insertRule) { sheet.insertRule(rule_name + ' { }', 0); } else { sheet.addRule(rule_name, null, 0); }
+			return $.vakata.css.get_css(rule_name);
+		},
+		remove_css : function(rule_name, sheet) { 
+			return $.vakata.css.get_css(rule_name, true, sheet); 
+		},
+		add_sheet : function(opts) {
+			var tmp;
+			if(opts.str) {
+				tmp = document.createElement("style");
+				tmp.setAttribute('type',"text/css");
+				if(tmp.styleSheet) {
+					document.getElementsByTagName("head")[0].appendChild(tmp);
+					tmp.styleSheet.cssText = opts.str;
+				}
+				else {
+					tmp.appendChild(document.createTextNode(opts.str));
+					document.getElementsByTagName("head")[0].appendChild(tmp);
+				}
+				return tmp.sheet || tmp.styleSheet;
+			}
+			if(opts.url) {
+				if(document.createStyleSheet) {
+					try { tmp = document.createStyleSheet(opts.url); } catch (e) { }
+				}
+				else {
+					tmp			= document.createElement('link');
+					tmp.rel		= 'stylesheet';
+					tmp.type	= 'text/css';
+					tmp.media	= "all";
+					tmp.href	= opts.url;
+					document.getElementsByTagName("head")[0].appendChild(tmp);
+					return tmp.styleSheet;
+				}
+			}
+		}
+	};
+})(jQuery);
+
+/* 
+ * jsTree core 1.0
+ */
+(function ($) {
+	// private variables 
+	var instances = [],			// instance array (used by $.jstree.reference/create/focused)
+		focused_instance = -1,	// the index in the instance array of the currently focused instance
+		plugins = {},			// list of included plugins
+		prepared_move = {},		// for the move plugin
+		is_ie6 = false;
+
+	// jQuery plugin wrapper (thanks to jquery UI widget function)
+	$.fn.jstree = function (settings) {
+		var isMethodCall = (typeof settings == 'string'), // is this a method call like $().jstree("open_node")
+			args = Array.prototype.slice.call(arguments, 1), 
+			returnValue = this;
+
+		// extend settings and allow for multiple hashes and metadata
+		if(!isMethodCall && $.meta) { args.push($.metadata.get(this).jstree); }
+		settings = !isMethodCall && args.length ? $.extend.apply(null, [true, settings].concat(args)) : settings;
+		// block calls to "private" methods
+		if(isMethodCall && settings.substring(0, 1) == '_') { return returnValue; }
+
+		// if a method call execute the method on all selected instances
+		if(isMethodCall) {
+			this.each(function() {
+				var instance = instances[$.data(this, "jstree-instance-id")],
+					methodValue = (instance && $.isFunction(instance[settings])) ? instance[settings].apply(instance, args) : instance;
+					if(typeof methodValue !== "undefined" && (settings.indexOf("is_" === 0) || (methodValue !== true && methodValue !== false))) { returnValue = methodValue; return false; }
+			});
+		}
+		else {
+			this.each(function() {
+				var instance_id = $.data(this, "jstree-instance-id"),
+					s = false;
+				// if an instance already exists, destroy it first
+				if(typeof instance_id !== "undefined" && instances[instance_id]) { instances[instance_id].destroy(); }
+				// push a new empty object to the instances array
+				instance_id = parseInt(instances.push({}),10) - 1;
+				// store the jstree instance id to the container element
+				$.data(this, "jstree-instance-id", instance_id);
+				// clean up all plugins
+				if(!settings) { settings = {}; }
+				settings.plugins = $.isArray(settings.plugins) ? settings.plugins : $.jstree.defaults.plugins;
+				if($.inArray("core", settings.plugins) === -1) { settings.plugins.unshift("core"); }
+				
+				// only unique plugins (NOT WORKING)
+				// settings.plugins = settings.plugins.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",");
+
+				// extend defaults with passed data
+				s = $.extend(true, {}, $.jstree.defaults, settings);
+				s.plugins = settings.plugins;
+				$.each(plugins, function (i, val) { if($.inArray(i, s.plugins) === -1) { s[i] = null; delete s[i]; } });
+				// push the new object to the instances array (at the same time set the default classes to the container) and init
+				instances[instance_id] = new $.jstree._instance(instance_id, $(this).addClass("jstree jstree-" + instance_id), s); 
+				// init all activated plugins for this instance
+				$.each(instances[instance_id]._get_settings().plugins, function (i, val) { instances[instance_id].data[val] = {}; });
+				$.each(instances[instance_id]._get_settings().plugins, function (i, val) { if(plugins[val]) { plugins[val].__init.apply(instances[instance_id]); } });
+				// initialize the instance
+				instances[instance_id].init();
+			});
+		}
+		// return the jquery selection (or if it was a method call that returned a value - the returned value)
+		return returnValue;
+	};
+	// object to store exposed functions and objects
+	$.jstree = {
+		defaults : {
+			plugins : []
+		},
+		_focused : function () { return instances[focused_instance] || null; },
+		_reference : function (needle) { 
+			// get by instance id
+			if(instances[needle]) { return instances[needle]; }
+			// get by DOM (if still no luck - return null
+			var o = $(needle); 
+			if(!o.length && typeof needle === "string") { o = $("#" + needle); }
+			if(!o.length) { return null; }
+			return instances[o.closest(".jstree").data("jstree-instance-id")] || null; 
+		},
+		_instance : function (index, container, settings) { 
+			// for plugins to store data in
+			this.data = { core : {} };
+			this.get_settings	= function () { return $.extend(true, {}, settings); };
+			this._get_settings	= function () { return settings; };
+			this.get_index		= function () { return index; };
+			this.get_container	= function () { return container; };
+			this._set_settings	= function (s) { 
+				settings = $.extend(true, {}, settings, s);
+			};
+		},
+		_fn : { },
+		plugin : function (pname, pdata) {
+			pdata = $.extend({}, {
+				__init		: $.noop, 
+				__destroy	: $.noop,
+				_fn			: {},
+				defaults	: false
+			}, pdata);
+			plugins[pname] = pdata;
+
+			$.jstree.defaults[pname] = pdata.defaults;
+			$.each(pdata._fn, function (i, val) {
+				val.plugin		= pname;
+				val.old			= $.jstree._fn[i];
+				$.jstree._fn[i] = function () {
+					var rslt,
+						func = val,
+						args = Array.prototype.slice.call(arguments),
+						evnt = new $.Event("before.jstree"),
+						rlbk = false;
+
+					// Check if function belongs to the included plugins of this instance
+					do {
+						if(func && func.plugin && $.inArray(func.plugin, this._get_settings().plugins) !== -1) { break; }
+						func = func.old;
+					} while(func);
+					if(!func) { return; }
+
+					// a chance to stop execution (or change arguments): 
+					// * just bind to jstree.before
+					// * check the additional data object (func property)
+					// * call event.stopImmediatePropagation()
+					// * return false (or an array of arguments)
+					rslt = this.get_container().triggerHandler(evnt, { "func" : i, "inst" : this, "args" : args });
+					if(rslt === false) { return; }
+					if(typeof rslt !== "undefined") { args = rslt; }
+
+					// context and function to trigger events, then finally call the function
+					if(i.indexOf("_") === 0) {
+						rslt = func.apply(this, args);
+					}
+					else {
+						rslt = func.apply(
+							$.extend({}, this, { 
+								__callback : function (data) { 
+									this.get_container().triggerHandler( i + '.jstree', { "inst" : this, "args" : args, "rslt" : data, "rlbk" : rlbk });
+								},
+								__rollback : function () { 
+									rlbk = this.get_rollback();
+									return rlbk;
+								},
+								__call_old : function (replace_arguments) {
+									return func.old.apply(this, (replace_arguments ? Array.prototype.slice.call(arguments, 1) : args ) );
+								}
+							}), args);
+					}
+
+					// return the result
+					return rslt;
+				};
+				$.jstree._fn[i].old = val.old;
+				$.jstree._fn[i].plugin = pname;
+			});
+		},
+		rollback : function (rb) {
+			if(rb) {
+				if(!$.isArray(rb)) { rb = [ rb ]; }
+				$.each(rb, function (i, val) {
+					instances[val.i].set_rollback(val.h, val.d);
+				});
+			}
+		}
+	};
+	// set the prototype for all instances
+	$.jstree._fn = $.jstree._instance.prototype = {};
+
+	// css functions - used internally
+
+	// load the css when DOM is ready
+	$(function() {
+		// code is copied form jQuery ($.browser is deprecated + there is a bug in IE)
+		var u = navigator.userAgent.toLowerCase(),
+			v = (u.match( /.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
+			css_string = '' + 
+				'.jstree ul, .jstree li { display:block; margin:0 0 0 0; padding:0 0 0 0; list-style-type:none; } ' + 
+				'.jstree li { display:block; min-height:18px; line-height:18px; white-space:nowrap; margin-left:18px; } ' + 
+				'.jstree-rtl li { margin-left:0; margin-right:18px; } ' + 
+				'.jstree > ul > li { margin-left:0px; } ' + 
+				'.jstree-rtl > ul > li { margin-right:0px; } ' + 
+				'.jstree ins { display:inline-block; text-decoration:none; width:18px; height:18px; margin:0 0 0 0; padding:0; } ' + 
+				'.jstree a { display:inline-block; line-height:16px; height:16px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } ' + 
+				'.jstree a:focus { outline: none; } ' + 
+				'.jstree a > ins { height:16px; width:16px; } ' + 
+				'.jstree a > .jstree-icon { margin-right:3px; } ' + 
+				'.jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } ' + 
+				'li.jstree-open > ul { display:block; } ' + 
+				'li.jstree-closed > ul { display:none; } ';
+		// Correct IE 6 (does not support the > CSS selector)
+		if(/msie/.test(u) && parseInt(v, 10) == 6) { 
+			is_ie6 = true;
+			css_string += '' + 
+				'.jstree li { height:18px; margin-left:0; margin-right:0; } ' + 
+				'.jstree li li { margin-left:18px; } ' + 
+				'.jstree-rtl li li { margin-left:0px; margin-right:18px; } ' + 
+				'li.jstree-open ul { display:block; } ' + 
+				'li.jstree-closed ul { display:none !important; } ' + 
+				'.jstree li a { display:inline; border-width:0 !important; padding:0px 2px !important; } ' + 
+				'.jstree li a ins { height:16px; width:16px; margin-right:3px; } ' + 
+				'.jstree-rtl li a ins { margin-right:0px; margin-left:3px; } ';
+		}
+		// Correct IE 7 (shifts anchor nodes onhover)
+		if(/msie/.test(u) && parseInt(v, 10) == 7) { 
+			css_string += '.jstree li a { border-width:0 !important; padding:0px 2px !important; } ';
+		}
+		$.vakata.css.add_sheet({ str : css_string });
+	});
+
+	// core functions (open, close, create, update, delete)
+	$.jstree.plugin("core", {
+		__init : function () {
+			this.data.core.to_open = $.map($.makeArray(this.get_settings().core.initially_open), function (n) { return "#" + n.toString().replace(/^#/,"").replace('\\/','/').replace('/','\\/'); });
+		},
+		defaults : { 
+			html_titles	: false,
+			animation	: 500,
+			initially_open : [],
+			rtl			: false,
+			strings		: {
+				loading		: "Loading ...",
+				new_node	: "New node"
+			}
+		},
+		_fn : { 
+			init	: function () { 
+				this.set_focus(); 
+				if(this._get_settings().core.rtl) {
+					this.get_container().addClass("jstree-rtl").css("direction", "rtl");
+				}
+				this.get_container().html("<ul><li class='jstree-last jstree-leaf'><ins>&#160;</ins><a class='jstree-loading' href='#'><ins class='jstree-icon'>&#160;</ins>" + this._get_settings().core.strings.loading + "</a></li></ul>");
+				this.data.core.li_height = this.get_container().find("ul li.jstree-closed, ul li.jstree-leaf").eq(0).height() || 18;
+
+				this.get_container()
+					.delegate("li > ins", "click.jstree", $.proxy(function (event) {
+							var trgt = $(event.target);
+							if(trgt.is("ins") && event.pageY - trgt.offset().top < this.data.core.li_height) { this.toggle_node(trgt); }
+						}, this))
+					.bind("mousedown.jstree", $.proxy(function () { 
+							this.set_focus(); // This used to be setTimeout(set_focus,0) - why?
+						}, this))
+					.bind("dblclick.jstree", function (event) { 
+						var sel;
+						if(document.selection && document.selection.empty) { document.selection.empty(); }
+						else {
+							if(window.getSelection) {
+								sel = window.getSelection();
+								try { 
+									sel.removeAllRanges();
+									sel.collapse();
+								} catch (err) { }
+							}
+						}
+					});
+				this.__callback();
+				this.load_node(-1, function () { this.loaded(); this.reopen(); });
+			},
+			destroy	: function () { 
+				var i,
+					n = this.get_index(),
+					s = this._get_settings(),
+					_this = this;
+
+				$.each(s.plugins, function (i, val) {
+					try { plugins[val].__destroy.apply(_this); } catch(err) { }
+				});
+				this.__callback();
+				// set focus to another instance if this one is focused
+				if(this.is_focused()) { 
+					for(i in instances) { 
+						if(instances.hasOwnProperty(i) && i != n) { 
+							instances[i].set_focus(); 
+							break; 
+						} 
+					}
+				}
+				// if no other instance found
+				if(n === focused_instance) { focused_instance = -1; }
+				// remove all traces of jstree in the DOM (only the ones set using jstree*) and cleans all events
+				this.get_container()
+					.unbind(".jstree")
+					.undelegate(".jstree")
+					.removeData("jstree-instance-id")
+					.find("[class^='jstree']")
+						.andSelf()
+						.attr("class", function () { return this.className.replace(/jstree[^ ]*|$/ig,''); });
+				// remove the actual data
+				instances[n] = null;
+				delete instances[n];
+			},
+			save_opened : function () {
+				var _this = this;
+				this.data.core.to_open = [];
+				this.get_container().find(".jstree-open").each(function () { 
+					_this.data.core.to_open.push("#" + this.id.toString().replace(/^#/,"").replace('\\/','/').replace('/','\\/')); 
+				});
+				this.__callback(_this.data.core.to_open);
+			},
+			reopen : function (is_callback) {
+				var _this = this,
+					done = true,
+					current = [],
+					remaining = [];
+				if(!is_callback) { this.data.core.reopen = false; this.data.core.refreshing = true; }
+				if(this.data.core.to_open.length) {
+					$.each(this.data.core.to_open, function (i, val) {
+						if(val == "#") { return true; }
+						if($(val).length && $(val).is(".jstree-closed")) { current.push(val); }
+						else { remaining.push(val); }
+					});
+					if(current.length) {
+						this.data.core.to_open = remaining;
+						$.each(current, function (i, val) { 
+							_this.open_node(val, function () { _this.reopen(true); }, true); 
+						});
+						done = false;
+					}
+				}
+				if(done) { 
+					// TODO: find a more elegant approach to syncronizing returning requests
+					if(this.data.core.reopen) { clearTimeout(this.data.core.reopen); }
+					this.data.core.reopen = setTimeout(function () { _this.__callback({}, _this); }, 50);
+					this.data.core.refreshing = false;
+				}
+			},
+			refresh : function (obj) {
+				var _this = this;
+				this.save_opened();
+				if(!obj) { obj = -1; }
+				obj = this._get_node(obj);
+				if(!obj) { obj = -1; }
+				if(obj !== -1) { obj.children("UL").remove(); }
+				this.load_node(obj, function () { _this.__callback({ "obj" : obj}); _this.reopen(); });
+			},
+			// Dummy function to fire after the first load (so that there is a jstree.loaded event)
+			loaded	: function () { 
+				this.__callback(); 
+			},
+			// deal with focus
+			set_focus	: function () { 
+				var f = $.jstree._focused();
+				if(f && f !== this) {
+					f.get_container().removeClass("jstree-focused"); 
+				}
+				if(f !== this) {
+					this.get_container().addClass("jstree-focused"); 
+					focused_instance = this.get_index(); 
+				}
+				this.__callback();
+			},
+			is_focused	: function () { 
+				return focused_instance == this.get_index(); 
+			},
+
+			// traverse
+			_get_node		: function (obj) { 
+				var $obj = $(obj, this.get_container()); 
+				if($obj.is(".jstree") || obj == -1) { return -1; } 
+				$obj = $obj.closest("li", this.get_container()); 
+				return $obj.length ? $obj : false; 
+			},
+			_get_next		: function (obj, strict) {
+				obj = this._get_node(obj);
+				if(obj === -1) { return this.get_container().find("> ul > li:first-child"); }
+				if(!obj.length) { return false; }
+				if(strict) { return (obj.nextAll("li").size() > 0) ? obj.nextAll("li:eq(0)") : false; }
+
+				if(obj.hasClass("jstree-open")) { return obj.find("li:eq(0)"); }
+				else if(obj.nextAll("li").size() > 0) { return obj.nextAll("li:eq(0)"); }
+				else { return obj.parentsUntil(".jstree","li").next("li").eq(0); }
+			},
+			_get_prev		: function (obj, strict) {
+				obj = this._get_node(obj);
+				if(obj === -1) { return this.get_container().find("> ul > li:last-child"); }
+				if(!obj.length) { return false; }
+				if(strict) { return (obj.prevAll("li").length > 0) ? obj.prevAll("li:eq(0)") : false; }
+
+				if(obj.prev("li").length) {
+					obj = obj.prev("li").eq(0);
+					while(obj.hasClass("jstree-open")) { obj = obj.children("ul:eq(0)").children("li:last"); }
+					return obj;
+				}
+				else { var o = obj.parentsUntil(".jstree","li:eq(0)"); return o.length ? o : false; }
+			},
+			_get_parent		: function (obj) {
+				obj = this._get_node(obj);
+				if(obj == -1 || !obj.length) { return false; }
+				var o = obj.parentsUntil(".jstree", "li:eq(0)");
+				return o.length ? o : -1;
+			},
+			_get_children	: function (obj) {
+				obj = this._get_node(obj);
+				if(obj === -1) { return this.get_container().children("ul:eq(0)").children("li"); }
+				if(!obj.length) { return false; }
+				return obj.children("ul:eq(0)").children("li");
+			},
+			get_path		: function (obj, id_mode) {
+				var p = [],
+					_this = this;
+				obj = this._get_node(obj);
+				if(obj === -1 || !obj || !obj.length) { return false; }
+				obj.parentsUntil(".jstree", "li").each(function () {
+					p.push( id_mode ? this.id : _this.get_text(this) );
+				});
+				p.reverse();
+				p.push( id_mode ? obj.attr("id") : this.get_text(obj) );
+				return p;
+			},
+
+			is_open		: function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-open"); },
+			is_closed	: function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-closed"); },
+			is_leaf		: function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-leaf"); },
+			// open/close
+			open_node	: function (obj, callback, skip_animation) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				if(!obj.hasClass("jstree-closed")) { if(callback) { callback.call(); } return false; }
+				var s = skip_animation || is_ie6 ? 0 : this._get_settings().core.animation,
+					t = this;
+				if(!this._is_loaded(obj)) {
+					obj.children("a").addClass("jstree-loading");
+					this.load_node(obj, function () { t.open_node(obj, callback, skip_animation); }, callback);
+					//gs- fix
+					if (!this._is_loaded(obj)){
+						$(obj).removeClass("jstree-closed").addClass("jstree-leaf");
+					}
+				}
+				else {
+					if(s) { obj.children("ul").css("display","none"); }
+					obj.removeClass("jstree-closed").addClass("jstree-open").children("a").removeClass("jstree-loading");
+					if(s) { obj.children("ul").stop(true).slideDown(s, function () { this.style.display = ""; }); }
+					this.__callback({ "obj" : obj });
+					if(callback) { callback.call(); }
+				}
+			},
+			close_node	: function (obj, skip_animation) {
+				obj = this._get_node(obj);
+				var s = skip_animation || is_ie6 ? 0 : this._get_settings().core.animation;
+				if(!obj.length || !obj.hasClass("jstree-open")) { return false; }
+				if(s) { obj.children("ul").attr("style","display:block !important"); }
+				obj.removeClass("jstree-open").addClass("jstree-closed");
+				if(s) { obj.children("ul").stop(true).slideUp(s, function () { this.style.display = ""; }); }
+				this.__callback({ "obj" : obj });
+			},
+			toggle_node	: function (obj) {
+				obj = this._get_node(obj);
+				if(obj.hasClass("jstree-closed")) { return this.open_node(obj); }
+				if(obj.hasClass("jstree-open")) { return this.close_node(obj); }
+			},
+			open_all	: function (obj, original_obj) {
+				obj = obj ? this._get_node(obj) : this.get_container();
+				if(!obj || obj === -1) { obj = this.get_container(); }
+				if(original_obj) { 
+					obj = obj.find("li.jstree-closed");
+				}
+				else {
+					original_obj = obj;
+					if(obj.is(".jstree-closed")) { obj = obj.find("li.jstree-closed").andSelf(); }
+					else { obj = obj.find("li.jstree-closed"); }
+				}
+				var _this = this;
+				obj.each(function () { 
+					var __this = this; 
+					if(!_this._is_loaded(this)) { _this.open_node(this, function() { _this.open_all(__this, original_obj); }, true); }
+					else { _this.open_node(this, false, true); }
+				});
+				// so that callback is fired AFTER all nodes are open
+				if(original_obj.find('li.jstree-closed').length === 0) { this.__callback({ "obj" : original_obj }); }
+			},
+			close_all	: function (obj) {
+				var _this = this;
+				obj = obj ? this._get_node(obj) : this.get_container();
+				if(!obj || obj === -1) { obj = this.get_container(); }
+				obj.find("li.jstree-open").andSelf().each(function () { _this.close_node(this); });
+				this.__callback({ "obj" : obj });
+			},
+			clean_node	: function (obj) {
+				obj = obj && obj != -1 ? $(obj) : this.get_container();
+				obj = obj.is("li") ? obj.find("li").andSelf() : obj.find("li");
+				obj.removeClass("jstree-last")
+					.filter("li:last-child").addClass("jstree-last").end()
+					.filter(":has(li)")
+						.not(".jstree-open").removeClass("jstree-leaf").addClass("jstree-closed");
+				obj.not(".jstree-open, .jstree-closed").addClass("jstree-leaf").children("ul").remove();
+				this.__callback({ "obj" : obj });
+			},
+			// rollback
+			get_rollback : function () { 
+				this.__callback();
+				return { i : this.get_index(), h : this.get_container().children("ul").clone(true), d : this.data }; 
+			},
+			set_rollback : function (html, data) {
+				this.get_container().empty().append(html);
+				this.data = data;
+				this.__callback();
+			},
+			// Dummy functions to be overwritten by any datastore plugin included
+			load_node	: function (obj, s_call, e_call) { this.__callback({ "obj" : obj }); },
+			_is_loaded	: function (obj) { return true; },
+
+			// Basic operations: create
+			create_node	: function (obj, position, js, callback, is_loaded) {
+				obj = this._get_node(obj);
+				position = typeof position === "undefined" ? "last" : position;
+				var d = $("<li>"),
+					s = this._get_settings().core,
+					tmp;
+
+				if(obj !== -1 && !obj.length) { return false; }
+				if(!is_loaded && !this._is_loaded(obj)) { this.load_node(obj, function () { this.create_node(obj, position, js, callback, true); }); return false; }
+
+				this.__rollback();
+
+				if(typeof js === "string") { js = { "data" : js }; }
+				if(!js) { js = {}; }
+				if(js.attr) { d.attr(js.attr); }
+				if(js.state) { d.addClass("jstree-" + js.state); }
+				if(!js.data) { js.data = s.strings.new_node; }
+				if(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); }
+				$.each(js.data, function (i, m) {
+					tmp = $("<a>");
+					if($.isFunction(m)) { m = m.call(this, js); }
+					if(typeof m == "string") { tmp.attr('href','#')[ s.html_titles ? "html" : "text" ](m); }
+					else {
+						if(!m.attr) { m.attr = {}; }
+						if(!m.attr.href) { m.attr.href = '#'; }
+						tmp.attr(m.attr)[ s.html_titles ? "html" : "text" ](m.title);
+						if(m.language) { tmp.addClass(m.language); }
+					}
+					tmp.prepend("<ins class='jstree-icon'>&#160;</ins>");
+					if(m.icon) { 
+						if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); }
+						else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); }
+					}
+					d.append(tmp);
+				});
+				d.prepend("<ins class='jstree-icon'>&#160;</ins>");
+				if(obj === -1) {
+					obj = this.get_container();
+					if(position === "before") { position = "first"; }
+					if(position === "after") { position = "last"; }
+				}
+				switch(position) {
+					case "before": obj.before(d); tmp = this._get_parent(obj); break;
+					case "after" : obj.after(d);  tmp = this._get_parent(obj); break;
+					case "inside":
+					case "first" :
+						if(!obj.children("ul").length) { obj.append("<ul>"); }
+						obj.children("ul").prepend(d);
+						tmp = obj;
+						break;
+					case "last":
+						if(!obj.children("ul").length) { obj.append("<ul>"); }
+						obj.children("ul").append(d);
+						tmp = obj;
+						break;
+					default:
+						if(!obj.children("ul").length) { obj.append("<ul>"); }
+						if(!position) { position = 0; }
+						tmp = obj.children("ul").children("li").eq(position);
+						if(tmp.length) { tmp.before(d); }
+						else { obj.children("ul").append(d); }
+						tmp = obj;
+						break;
+				}
+				if(tmp === -1 || tmp.get(0) === this.get_container().get(0)) { tmp = -1; }
+				this.clean_node(tmp);
+				this.__callback({ "obj" : d, "parent" : tmp });
+				if(callback) { callback.call(this, d); }
+				return d;
+			},
+			// Basic operations: rename (deal with text)
+			get_text	: function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				var s = this._get_settings().core.html_titles;
+				obj = obj.children("a:eq(0)");
+				if(s) {
+					obj = obj.clone();
+					obj.children("INS").remove();
+					return obj.html();
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					return obj.nodeValue;
+				}
+			},
+			set_text	: function (obj, val) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				obj = obj.children("a:eq(0)");
+				if(this._get_settings().core.html_titles) {
+					var tmp = obj.children("INS").clone();
+					obj.html(val).prepend(tmp);
+					this.__callback({ "obj" : obj, "name" : val });
+					return true;
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					this.__callback({ "obj" : obj, "name" : val });
+					return (obj.nodeValue = val);
+				}
+			},
+			rename_node : function (obj, val) {
+				obj = this._get_node(obj);
+				this.__rollback();
+				if(obj && obj.length && this.set_text.apply(this, Array.prototype.slice.call(arguments))) { this.__callback({ "obj" : obj, "name" : val }); }
+			},
+			// Basic operations: deleting nodes
+			delete_node : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				this.__rollback();
+				var p = this._get_parent(obj), prev = this._get_prev(obj);
+				obj = obj.remove();
+				if(p !== -1 && p.find("> ul > li").length === 0) {
+					p.removeClass("jstree-open jstree-closed").addClass("jstree-leaf");
+				}
+				this.clean_node(p);
+				this.__callback({ "obj" : obj, "prev" : prev });
+				return obj;
+			},
+			prepare_move : function (o, r, pos, cb, is_cb) {
+				var p = {};
+
+				p.ot = $.jstree._reference(p.o) || this;
+				p.o = p.ot._get_node(o);
+				p.r = r === - 1 ? -1 : this._get_node(r);
+				p.p = (typeof p === "undefined") ? "last" : pos; // TODO: move to a setting
+				if(!is_cb && prepared_move.o && prepared_move.o[0] === p.o[0] && prepared_move.r[0] === p.r[0] && prepared_move.p === p.p) {
+					this.__callback(prepared_move);
+					if(cb) { cb.call(this, prepared_move); }
+					return;
+				}
+				p.ot = $.jstree._reference(p.o) || this;
+				p.rt = r === -1 ? p.ot : $.jstree._reference(p.r) || this;
+				if(p.r === -1) {
+					p.cr = -1;
+					switch(p.p) {
+						case "first":
+						case "before":
+						case "inside":
+							p.cp = 0; 
+							break;
+						case "after":
+						case "last":
+							p.cp = p.rt.get_container().find(" > ul > li").length; 
+							break;
+						default:
+							p.cp = p.p;
+							break;
+					}
+				}
+				else {
+					if(!/^(before|after)$/.test(p.p) && !this._is_loaded(p.r)) {
+						return this.load_node(p.r, function () { this.prepare_move(o, r, pos, cb, true); });
+					}
+					switch(p.p) {
+						case "before":
+							p.cp = p.r.index();
+							p.cr = p.rt._get_parent(p.r);
+							break;
+						case "after":
+							p.cp = p.r.index() + 1;
+							p.cr = p.rt._get_parent(p.r);
+							break;
+						case "inside":
+						case "first":
+							p.cp = 0;
+							p.cr = p.r;
+							break;
+						case "last":
+							p.cp = p.r.find(" > ul > li").length; 
+							p.cr = p.r;
+							break;
+						default: 
+							p.cp = p.p;
+							p.cr = p.r;
+							break;
+					}
+				}
+				p.np = p.cr == -1 ? p.rt.get_container() : p.cr;
+				p.op = p.ot._get_parent(p.o);
+				p.or = p.np.find(" > ul > li:nth-child(" + (p.cp + 1) + ")");
+
+				prepared_move = p;
+				this.__callback(prepared_move);
+				if(cb) { cb.call(this, prepared_move); }
+			},
+			check_move : function () {
+				var obj = prepared_move, ret = true;
+				if(obj.or[0] === obj.o[0]) { return false; }
+				obj.o.each(function () { 
+					if(obj.r.parentsUntil(".jstree").andSelf().filter("li").index(this) !== -1) { ret = false; return false; }
+				});
+				return ret;
+			},
+			move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) {
+				if(!is_prepared) { 
+					return this.prepare_move(obj, ref, position, function (p) {
+						this.move_node(p, false, false, is_copy, true, skip_check);
+					});
+				}
+				if(!skip_check && !this.check_move()) { return false; }
+
+				this.__rollback();
+				var o = false;
+				if(is_copy) {
+					o = obj.o.clone();
+					o.find("*[id]").andSelf().each(function () {
+						if(this.id) { this.id = "copy_" + this.id; }
+					});
+				}
+				else { o = obj.o; }
+
+				if(obj.or.length) { obj.or.before(o); }
+				else { 
+					if(!obj.np.children("ul").length) { $("<ul>").appendTo(obj.np); }
+					obj.np.children("ul:eq(0)").append(o); 
+				}
+
+				try { 
+					obj.ot.clean_node(obj.op);
+					obj.rt.clean_node(obj.np);
+					if(!obj.op.find("> ul > li").length) {
+						obj.op.removeClass("jstree-open jstree-closed").addClass("jstree-leaf").children("ul").remove();
+					}
+				} catch (e) { }
+
+				if(is_copy) { 
+					prepared_move.cy = true;
+					prepared_move.oc = o; 
+				}
+				this.__callback(prepared_move);
+				return prepared_move;
+			},
+			_get_move : function () { return prepared_move; }
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree ui plugin 1.0
+ * This plugins handles selecting/deselecting/hovering/dehovering nodes
+ */
+(function ($) {
+	$.jstree.plugin("ui", {
+		__init : function () { 
+			this.data.ui.selected = $(); 
+			this.data.ui.last_selected = false; 
+			this.data.ui.hovered = null;
+			this.data.ui.to_select = this.get_settings().ui.initially_select;
+
+			this.get_container()
+				.delegate("a", "click.jstree", $.proxy(function (event) {
+						event.preventDefault();
+						this.select_node(event.currentTarget, true, event);
+					}, this))
+				.delegate("a", "mouseenter.jstree", $.proxy(function (event) {
+						this.hover_node(event.target);
+					}, this))
+				.delegate("a", "mouseleave.jstree", $.proxy(function (event) {
+						this.dehover_node(event.target);
+					}, this))
+				.bind("reopen.jstree", $.proxy(function () { 
+						this.reselect();
+					}, this))
+				.bind("get_rollback.jstree", $.proxy(function () { 
+						this.dehover_node();
+						this.save_selected();
+					}, this))
+				.bind("set_rollback.jstree", $.proxy(function () { 
+						this.reselect();
+					}, this))
+				.bind("close_node.jstree", $.proxy(function (event, data) { 
+						var s = this._get_settings().ui,
+							obj = this._get_node(data.rslt.obj),
+							clk = (obj && obj.length) ? obj.children("ul").find(".jstree-clicked") : $(),
+							_this = this;
+						if(s.selected_parent_close === false || !clk.length) { return; }
+						clk.each(function () { 
+							_this.deselect_node(this);
+							if(s.selected_parent_close === "select_parent") { _this.select_node(obj); }
+						});
+					}, this))
+				.bind("delete_node.jstree", $.proxy(function (event, data) { 
+						var s = this._get_settings().ui.select_prev_on_delete,
+							obj = this._get_node(data.rslt.obj),
+							clk = (obj && obj.length) ? obj.find(".jstree-clicked") : [],
+							_this = this;
+						clk.each(function () { _this.deselect_node(this); });
+						if(s && clk.length) { this.select_node(data.rslt.prev); }
+					}, this))
+				.bind("move_node.jstree", $.proxy(function (event, data) { 
+						if(data.rslt.cy) { 
+							data.rslt.oc.find(".jstree-clicked").removeClass("jstree-clicked");
+						}
+					}, this));
+		},
+		defaults : {
+			select_limit : -1, // 0, 1, 2 ... or -1 for unlimited
+			select_multiple_modifier : "ctrl", // on, or ctrl, shift, alt
+			selected_parent_close : "select_parent", // false, "deselect", "select_parent"
+			select_prev_on_delete : true,
+			disable_selecting_children : false,
+			initially_select : []
+		},
+		_fn : { 
+			_get_node : function (obj, allow_multiple) {
+				if(typeof obj === "undefined" || obj === null) { return allow_multiple ? this.data.ui.selected : this.data.ui.last_selected; }
+				var $obj = $(obj, this.get_container()); 
+				if($obj.is(".jstree") || obj == -1) { return -1; } 
+				$obj = $obj.closest("li", this.get_container()); 
+				return $obj.length ? $obj : false; 
+			},
+			save_selected : function () {
+				var _this = this;
+				this.data.ui.to_select = [];
+				this.data.ui.selected.each(function () { _this.data.ui.to_select.push("#" + this.id.toString().replace(/^#/,"").replace('\\/','/').replace('/','\\/')); });
+				this.__callback(this.data.ui.to_select);
+			},
+			reselect : function () {
+				var _this = this,
+					s = this.data.ui.to_select;
+				s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace('\\/','/').replace('/','\\/'); });
+				this.deselect_all();
+				$.each(s, function (i, val) { if(val && val !== "#") { _this.select_node(val); } });
+				this.__callback();
+			},
+			refresh : function (obj) {
+				this.save_selected();
+				return this.__call_old();
+			},
+			hover_node : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				//if(this.data.ui.hovered && obj.get(0) === this.data.ui.hovered.get(0)) { return; }
+				if(!obj.hasClass("jstree-hovered")) { this.dehover_node(); }
+				this.data.ui.hovered = obj.children("a").addClass("jstree-hovered").parent();
+				this.__callback({ "obj" : obj });
+			},
+			dehover_node : function () {
+				var obj = this.data.ui.hovered, p;
+				if(!obj || !obj.length) { return false; }
+				p = obj.children("a").removeClass("jstree-hovered").parent();
+				if(this.data.ui.hovered[0] === p[0]) { this.data.ui.hovered = null; }
+				this.__callback({ "obj" : obj });
+			},
+			select_node : function (obj, check, e) {
+				obj = this._get_node(obj);
+				if(obj == -1 || !obj || !obj.length) { return false; }
+				var s = this._get_settings().ui,
+					is_multiple = (s.select_multiple_modifier == "on" || (s.select_multiple_modifier !== false && e && e[s.select_multiple_modifier + "Key"])),
+					is_selected = this.is_selected(obj),
+					proceed = true;
+				if(check) {
+					if(s.disable_selecting_children && is_multiple && obj.parents("li", this.get_container()).children(".jstree-clicked").length) {
+						return false;
+					}
+					proceed = false;
+					switch(!0) {
+						case (is_selected && !is_multiple): 
+							this.deselect_all();
+							is_selected = false;
+							proceed = true;
+							break;
+						case (!is_selected && !is_multiple): 
+							if(s.select_limit == -1 || s.select_limit > 0) {
+								this.deselect_all();
+								proceed = true;
+							}
+							break;
+						case (is_selected && is_multiple): 
+							this.deselect_node(obj);
+							break;
+						case (!is_selected && is_multiple): 
+							if(s.select_limit == -1 || this.data.ui.selected.length + 1 <= s.select_limit) { 
+								proceed = true;
+							}
+							break;
+					}
+				}
+				if(proceed && !is_selected) {
+					obj.children("a").addClass("jstree-clicked");
+					this.data.ui.selected = this.data.ui.selected.add(obj);
+					this.data.ui.last_selected = obj;
+					this.__callback({ "obj" : obj });
+				}
+			},
+			deselect_node : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				if(this.is_selected(obj)) {
+					obj.children("a").removeClass("jstree-clicked");
+					this.data.ui.selected = this.data.ui.selected.not(obj);
+					if(this.data.ui.last_selected.get(0) === obj.get(0)) { this.data.ui.last_selected = this.data.ui.selected.eq(0); }
+					this.__callback({ "obj" : obj });
+				}
+			},
+			toggle_select : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				if(this.is_selected(obj)) { this.deselect_node(obj); }
+				else { this.select_node(obj); }
+			},
+			is_selected : function (obj) { return this.data.ui.selected.index(this._get_node(obj)) >= 0; },
+			get_selected : function (context) { 
+				return context ? $(context).find(".jstree-clicked").parent() : this.data.ui.selected; 
+			},
+			deselect_all : function (context) {
+				if(context) { $(context).find(".jstree-clicked").removeClass("jstree-clicked"); } 
+				else { this.get_container().find(".jstree-clicked").removeClass("jstree-clicked"); }
+				this.data.ui.selected = $([]);
+				this.data.ui.last_selected = false;
+				this.__callback();
+			}
+		}
+	});
+	// include the selection plugin by default
+	$.jstree.defaults.plugins.push("ui");
+})(jQuery);
+//*/
+
+/* 
+ * jsTree CRRM plugin 1.0
+ * Handles creating/renaming/removing/moving nodes by user interaction.
+ */
+(function ($) {
+	$.jstree.plugin("crrm", { 
+		__init : function () {
+			this.get_container()
+				.bind("move_node.jstree", $.proxy(function (e, data) {
+					if(this._get_settings().crrm.move.open_onmove) {
+						var t = this;
+						data.rslt.np.parentsUntil(".jstree").andSelf().filter(".jstree-closed").each(function () {
+							t.open_node(this, false, true);
+						});
+					}
+				}, this));
+		},
+		defaults : {
+			input_width_limit : 200,
+			move : {
+				always_copy			: false, // false, true or "multitree"
+				open_onmove			: true,
+				default_position	: "last",
+				check_move			: function (m) { return true; }
+			}
+		},
+		_fn : {
+			_show_input : function (obj, callback) {
+				obj = this._get_node(obj);
+				var rtl = this._get_settings().core.rtl,
+					w = this._get_settings().crrm.input_width_limit,
+					w1 = obj.children("ins").width(),
+					w2 = obj.find("> a:visible > ins").width() * obj.find("> a:visible > ins").length,
+					t = this.get_text(obj),
+					h1 = $("<div>", { css : { "position" : "absolute", "top" : "-200px", "left" : (rtl ? "0px" : "-1000px"), "visibility" : "hidden" } }).appendTo("body"),
+					h2 = obj.css("position","relative").append(
+					$("<input>", { 
+						"value" : t,
+						// "size" : t.length,
+						"css" : {
+							"padding" : "0",
+							"border" : "1px solid silver",
+							"position" : "absolute",
+							"left"  : (rtl ? "auto" : (w1 + w2 + 4) + "px"),
+							"right" : (rtl ? (w1 + w2 + 4) + "px" : "auto"),
+							"top" : "0px",
+							"height" : (this.data.core.li_height - 2) + "px",
+							"lineHeight" : (this.data.core.li_height - 2) + "px",
+							"width" : "150px" // will be set a bit further down
+						},
+						"blur" : $.proxy(function () {
+							var i = obj.children("input"),
+								v = i.val();
+							if(v === "") { v = t; }
+							i.remove(); // rollback purposes
+							this.set_text(obj,t); // rollback purposes
+							this.rename_node(obj, v);
+							callback.call(this, obj, v, t);
+							obj.css("position","");
+						}, this),
+						"keyup" : function (event) {
+							var key = event.keyCode || event.which;
+							if(key == 27) { this.value = t; this.blur(); return; }
+							else if(key == 13) { this.blur(); return; }
+							else {
+								h2.width(Math.min(h1.text("pW" + this.value).width(),w));
+							}
+						}
+					})
+				).children("input"); 
+				this.set_text(obj, "");
+				h1.css({
+						fontFamily		: h2.css('fontFamily')		|| '',
+						fontSize		: h2.css('fontSize')		|| '',
+						fontWeight		: h2.css('fontWeight')		|| '',
+						fontStyle		: h2.css('fontStyle')		|| '',
+						fontStretch		: h2.css('fontStretch')		|| '',
+						fontVariant		: h2.css('fontVariant')		|| '',
+						letterSpacing	: h2.css('letterSpacing')	|| '',
+						wordSpacing		: h2.css('wordSpacing')		|| ''
+				});
+				h2.width(Math.min(h1.text("pW" + h2[0].value).width(),w))[0].select();
+			},
+			rename : function (obj) {
+				obj = this._get_node(obj);
+				this.__rollback();
+				var f = this.__callback;
+				this._show_input(obj, function (obj, new_name, old_name) { 
+					f.call(this, { "obj" : obj, "new_name" : new_name, "old_name" : old_name });
+				});
+			},
+			create : function (obj, position, js, callback, skip_rename) {
+				var t, _this = this;
+				obj = this._get_node(obj);
+				if(!obj) { obj = -1; }
+				this.__rollback();
+				t = this.create_node(obj, position, js, function (t) {
+					var p = this._get_parent(t),
+						pos = $(t).index();
+					if(callback) { callback.call(this, t); }
+					if(p.length && p.hasClass("jstree-closed")) { this.open_node(p, false, true); }
+					if(!skip_rename) { 
+						this._show_input(t, function (obj, new_name, old_name) { 
+							_this.__callback({ "obj" : obj, "name" : new_name, "parent" : p, "position" : pos });
+						});
+					}
+					else { _this.__callback({ "obj" : t, "name" : this.get_text(t), "parent" : p, "position" : pos }); }
+				});
+				return t;
+			},
+			remove : function (obj) {
+				obj = this._get_node(obj, true);
+				this.__rollback();
+				this.delete_node(obj);
+				this.__callback({ "obj" : obj });
+			},
+			check_move : function () {
+				if(!this.__call_old()) { return false; }
+				var s = this._get_settings().crrm.move;
+				if(!s.check_move.call(this, this._get_move())) { return false; }
+				return true;
+			},
+			move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) {
+				var s = this._get_settings().crrm.move;
+				if(!is_prepared) { 
+					if(!position) { position = s.default_position; }
+					if(position === "inside" && !s.default_position.match(/^(before|after)$/)) { position = s.default_position; }
+					return this.__call_old(true, obj, ref, position, is_copy, false, skip_check);
+				}
+				// if the move is already prepared
+				if(s.always_copy === true || (s.always_copy === "multitree" && obj.rt.get_index() !== obj.ot.get_index() )) {
+					is_copy = true;
+				}
+				this.__call_old(true, obj, ref, position, is_copy, true, skip_check);
+			},
+
+			cut : function (obj) {
+				obj = this._get_node(obj);
+				this.data.crrm.cp_nodes = false;
+				this.data.crrm.ct_nodes = false;
+				if(!obj || !obj.length) { return false; }
+				this.data.crrm.ct_nodes = obj;
+			},
+			copy : function (obj) {
+				obj = this._get_node(obj);
+				this.data.crrm.cp_nodes = false;
+				this.data.crrm.ct_nodes = false;
+				if(!obj || !obj.length) { return false; }
+				this.data.crrm.cp_nodes = obj;
+			},
+			paste : function (obj) { 
+				obj = this._get_node(obj);
+				if(!obj || !obj.length) { return false; }
+				if(!this.data.crrm.ct_nodes && !this.data.crrm.cp_nodes) { return false; }
+				if(this.data.crrm.ct_nodes) { this.move_node(this.data.crrm.ct_nodes, obj); }
+				if(this.data.crrm.cp_nodes) { this.move_node(this.data.crrm.cp_nodes, obj, false, true); }
+				this.data.crrm.cp_nodes = false;
+				this.data.crrm.ct_nodes = false;
+			}
+		}
+	});
+	// include the crr plugin by default
+	$.jstree.defaults.plugins.push("crrm");
+})(jQuery);
+
+/* 
+ * jsTree themes plugin 1.0
+ * Handles loading and setting themes, as well as detecting path to themes, etc.
+ */
+(function ($) {
+	var themes_loaded = [];
+	// this variable stores the path to the themes folder - if left as false - it will be autodetected
+	$.jstree._themes = false;
+	$.jstree.plugin("themes", {
+		__init : function () { 
+			this.get_container()
+				.bind("init.jstree", $.proxy(function () {
+						var s = this._get_settings().themes;
+						this.data.themes.dots = s.dots; 
+						this.data.themes.icons = s.icons; 
+						//alert(s.dots);
+						this.set_theme(s.theme, s.url);
+					}, this))
+				.bind("loaded.jstree", $.proxy(function () {
+						// bound here too, as simple HTML tree's won't honor dots & icons otherwise
+						if(!this.data.themes.dots) { this.hide_dots(); }
+						else { this.show_dots(); }
+						if(!this.data.themes.icons) { this.hide_icons(); }
+						else { this.show_icons(); }
+					}, this));
+		},
+		defaults : { 
+			theme : "default", 
+			url : false,
+			dots : true,
+			icons : true
+		},
+		_fn : {
+			set_theme : function (theme_name, theme_url) {
+				if(!theme_name) { return false; }
+				if(!theme_url) { theme_url = $.jstree._themes + theme_name + '/style.css'; }
+				if($.inArray(theme_url, themes_loaded) == -1) {
+					$.vakata.css.add_sheet({ "url" : theme_url, "rel" : "jstree" });
+					themes_loaded.push(theme_url);
+				}
+				if(this.data.themes.theme != theme_name) {
+					this.get_container().removeClass('jstree-' + this.data.themes.theme);
+					this.data.themes.theme = theme_name;
+				}
+				this.get_container().addClass('jstree-' + theme_name);
+				if(!this.data.themes.dots) { this.hide_dots(); }
+				else { this.show_dots(); }
+				if(!this.data.themes.icons) { this.hide_icons(); }
+				else { this.show_icons(); }
+				this.__callback();
+			},
+			get_theme	: function () { return this.data.themes.theme; },
+
+			show_dots	: function () { this.data.themes.dots = true; this.get_container().children("ul").removeClass("jstree-no-dots"); },
+			hide_dots	: function () { this.data.themes.dots = false; this.get_container().children("ul").addClass("jstree-no-dots"); },
+			toggle_dots	: function () { if(this.data.themes.dots) { this.hide_dots(); } else { this.show_dots(); } },
+
+			show_icons	: function () { this.data.themes.icons = true; this.get_container().children("ul").removeClass("jstree-no-icons"); },
+			hide_icons	: function () { this.data.themes.icons = false; this.get_container().children("ul").addClass("jstree-no-icons"); },
+			toggle_icons: function () { if(this.data.themes.icons) { this.hide_icons(); } else { this.show_icons(); } }
+		}
+	});
+	// autodetect themes path
+	$(function () {
+		if($.jstree._themes === false) {
+			$("script").each(function () { 
+				if(this.src.toString().match(/jquery\.jstree[^\/]*?\.js(\?.*)?$/)) { 
+					$.jstree._themes = this.src.toString().replace(/jquery\.jstree[^\/]*?\.js(\?.*)?$/, "") + 'themes/'; 
+					return false; 
+				}
+			});
+		}
+		if($.jstree._themes === false) { $.jstree._themes = "themes/"; }
+	});
+	// include the themes plugin by default
+	$.jstree.defaults.plugins.push("themes");
+})(jQuery);
+//*/
+
+/*
+ * jsTree hotkeys plugin 1.0
+ * Enables keyboard navigation for all tree instances
+ * Depends on the jstree ui & jquery hotkeys plugins
+ */
+(function ($) {
+	var bound = [];
+	function exec(i, event) {
+		var f = $.jstree._focused(), tmp;
+		if(f && f.data && f.data.hotkeys && f.data.hotkeys.enabled) { 
+			tmp = f._get_settings().hotkeys[i];
+			if(tmp) { return tmp.call(f, event); }
+		}
+	}
+	$.jstree.plugin("hotkeys", {
+		__init : function () {
+			if(typeof $.hotkeys === "undefined") { throw "jsTree hotkeys: jQuery hotkeys plugin not included."; }
+			if(!this.data.ui) { throw "jsTree hotkeys: jsTree UI plugin not included."; }
+			$.each(this._get_settings().hotkeys, function (i, val) {
+				if($.inArray(i, bound) == -1) {
+					$(document).bind("keydown", i, function (event) { return exec(i, event); });
+					bound.push(i);
+				}
+			});
+			this.enable_hotkeys();
+		},
+		defaults : {
+			"up" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_prev(o));
+				return false; 
+			},
+			"down" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_next(o));
+				return false;
+			},
+			"left" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o) {
+					if(o.hasClass("jstree-open")) { this.close_node(o); }
+					else { this.hover_node(this._get_prev(o)); }
+				}
+				return false;
+			},
+			"right" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o && o.length) {
+					if(o.hasClass("jstree-closed")) { this.open_node(o); }
+					else { this.hover_node(this._get_next(o)); }
+				}
+				return false;
+			},
+			"space" : function () { 
+				if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").click(); } 
+				return false; 
+			},
+			"ctrl+space" : function (event) { 
+				event.type = "click";
+				if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").trigger(event); } 
+				return false; 
+			},
+			"f2" : function () { this.rename(this.data.ui.hovered || this.data.ui.last_selected); },
+			"del" : function () { this.remove(this.data.ui.hovered || this._get_node(null)); }
+		},
+		_fn : {
+			enable_hotkeys : function () {
+				this.data.hotkeys.enabled = true;
+			},
+			disable_hotkeys : function () {
+				this.data.hotkeys.enabled = false;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree JSON 1.0
+ * The JSON data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions.
+ */
+(function ($) {
+	$.jstree.plugin("json_data", {
+		defaults : { 
+			data : false,
+			ajax : false,
+			correct_state : true,
+			progressive_render : false
+		},
+		_fn : {
+			load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_json(obj, function () { _this.__callback({ "obj" : obj }); s_call.call(this); }, e_call); },
+			_is_loaded : function (obj) { 
+				var s = this._get_settings().json_data, d;
+				obj = this._get_node(obj); 
+				if(obj && obj !== -1 && s.progressive_render && !obj.is(".jstree-open, .jstree-leaf") && obj.children("ul").children("li").length === 0 && obj.data("jstree-children")) {
+					d = this._parse_json(obj.data("jstree-children"));
+					if(d) {
+						obj.append(d);
+						$.removeData(obj, "jstree-children");
+					}
+					this.clean_node(obj);
+					return true;
+				}
+				return obj == -1 || !obj || !s.ajax || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").size() > 0;
+			},
+			load_node_json : function (obj, s_call, e_call) {
+				var s = this.get_settings().json_data, d,
+					error_func = function () {},
+					success_func = function () {};
+				obj = this._get_node(obj);
+				if(obj && obj !== -1) {
+					if(obj.data("jstree-is-loading")) { return; }
+					else { obj.data("jstree-is-loading",true); }
+				}
+				switch(!0) {
+					case (!s.data && !s.ajax): throw "Neither data nor ajax settings supplied.";
+					case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
+						if(!obj || obj == -1) {
+							d = this._parse_json(s.data);
+							if(d) {
+								this.get_container().children("ul").empty().append(d.children());
+								this.clean_node();
+							}
+							else { 
+								if(s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+						}
+						if(s_call) { s_call.call(this); }
+						break;
+					case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
+						error_func = function (x, t, e) {
+							var ef = this.get_settings().json_data.ajax.error; 
+							if(ef) { ef.call(this, x, t, e); }
+							if(obj != -1 && obj.length) {
+								obj.children(".jstree-loading").removeClass("jstree-loading");
+								obj.data("jstree-is-loading",false);
+								if(t === "success" && s.correct_state) { obj.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"); }
+							}
+							else {
+								if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+							if(e_call) { e_call.call(this); }
+						};
+						success_func = function (d, t, x) {
+							var sf = this.get_settings().json_data.ajax.success; 
+							if(sf) { d = sf.call(this,d,t,x) || d; }
+							if(d === "" || (!$.isArray(d) && !$.isPlainObject(d))) {
+								return error_func.call(this, x, t, "");
+							}
+							d = this._parse_json(d);
+							if(d) {
+								if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
+								else { obj.append(d).children(".jstree-loading").removeClass("jstree-loading"); obj.data("jstree-is-loading",false); }
+								this.clean_node(obj);
+								if(s_call) { s_call.call(this); }
+							}
+							else {
+								if(obj === -1 || !obj) {
+									if(s.correct_state) { 
+										this.get_container().children("ul").empty(); 
+										if(s_call) { s_call.call(this); }
+									}
+								}
+								else {
+									obj.children(".jstree-loading").removeClass("jstree-loading");
+									obj.data("jstree-is-loading",false);
+									if(s.correct_state) { 
+										obj.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"); 
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+							}
+						};
+						s.ajax.context = this;
+						s.ajax.error = error_func;
+						s.ajax.success = success_func;
+						if(!s.ajax.dataType) { s.ajax.dataType = "json"; }
+						if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
+						if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
+						$.ajax(s.ajax);
+						break;
+				}
+			},
+			_parse_json : function (js, is_callback) {
+				var d = false, 
+					p = this._get_settings(),
+					s = p.json_data,
+					t = p.core.html_titles,
+					tmp, i, j, ul1, ul2;
+
+				if(!js) { return d; }
+				if($.isFunction(js)) { 
+					js = js.call(this);
+				}
+				if($.isArray(js)) {
+					d = $();
+					if(!js.length) { return false; }
+					for(i = 0, j = js.length; i < j; i++) {
+						tmp = this._parse_json(js[i], true);
+						if(tmp.length) { d = d.add(tmp); }
+					}
+				}
+				else {
+					if(typeof js == "string") { js = { data : js }; }
+					if(!js.data && js.data !== "") { return d; }
+					d = $("<li>");
+					if(js.attr) { d.attr(js.attr); }
+					if(js.metadata) { d.data("jstree", js.metadata); }
+					if(js.state) { d.addClass("jstree-" + js.state); }
+					if(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); }
+					$.each(js.data, function (i, m) {
+						tmp = $("<a>");
+						if($.isFunction(m)) { m = m.call(this, js); }
+						if(typeof m == "string") { tmp.attr('href','#')[ t ? "html" : "text" ](m); }
+						else {
+							if(!m.attr) { m.attr = {}; }
+							if(!m.attr.href) { m.attr.href = '#'; }
+							tmp.attr(m.attr)[ t ? "html" : "text" ](m.title);
+							if(m.language) { tmp.addClass(m.language); }
+						}
+						tmp.prepend("<ins class='jstree-icon'>&#160;</ins>");
+						if(!m.icon && js.icon) { m.icon = js.icon; }
+						if(m.icon) { 
+							if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); }
+							else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); }
+						}
+						d.append(tmp);
+					});
+					d.prepend("<ins class='jstree-icon'>&#160;</ins>");
+					if(js.children) { 
+						if(s.progressive_render && js.state !== "open") {
+							d.addClass("jstree-closed").data("jstree-children", js.children);
+						}
+						else {
+							if($.isFunction(js.children)) {
+								js.children = js.children.call(this, js);
+							}
+							if($.isArray(js.children) && js.children.length) {
+								tmp = this._parse_json(js.children, true);
+								if(tmp.length) {
+									ul2 = $("<ul>");
+									ul2.append(tmp);
+									d.append(ul2);
+								}
+							}
+						}
+					}
+				}
+				if(!is_callback) {
+					ul1 = $("<ul>");
+					ul1.append(d);
+					d = ul1;
+				}
+				return d;
+			},
+			get_json : function (obj, li_attr, a_attr, is_callback) {
+				var result = [], 
+					s = this._get_settings(), 
+					_this = this,
+					tmp1, tmp2, li, a, t, lang;
+				obj = this._get_node(obj);
+				if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); }
+				li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ];
+				if(!is_callback && this.data.types) { li_attr.push(s.types.type_attr); }
+				a_attr = $.isArray(a_attr) ? a_attr : [ ];
+
+				obj.each(function () {
+					li = $(this);
+					tmp1 = { data : [] };
+					if(li_attr.length) { tmp1.attr = { }; }
+					$.each(li_attr, function (i, v) { 
+						tmp2 = li.attr(v); 
+						if(tmp2 && tmp2.length && tmp2.replace(/jstree[^ ]*|$/ig,'').length) {
+							tmp1.attr[v] = tmp2.replace(/jstree[^ ]*|$/ig,''); 
+						}
+					});
+					if(li.hasClass("jstree-open")) { tmp1.state = "open"; }
+					if(li.hasClass("jstree-closed")) { tmp1.state = "closed"; }
+					a = li.children("a");
+					a.each(function () {
+						t = $(this);
+						if(
+							a_attr.length || 
+							$.inArray("languages", s.plugins) !== -1 || 
+							t.children("ins").get(0).style.backgroundImage.length || 
+							(t.children("ins").get(0).className && t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').length)
+						) { 
+							lang = false;
+							if($.inArray("languages", s.plugins) !== -1 && $.isArray(s.languages) && s.languages.length) {
+								$.each(s.languages, function (l, lv) {
+									if(t.hasClass(lv)) {
+										lang = lv;
+										return false;
+									}
+								});
+							}
+							tmp2 = { attr : { }, title : _this.get_text(t, lang) }; 
+							$.each(a_attr, function (k, z) {
+								tmp1.attr[z] = (t.attr(z) || "").replace(/jstree[^ ]*|$/ig,'');
+							});
+							$.each(s.languages, function (k, z) {
+								if(t.hasClass(z)) { tmp2.language = z; return true; }
+							});
+							if(t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"").length) {
+								tmp2.icon = t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"");
+							}
+							if(t.children("ins").get(0).style.backgroundImage.length) {
+								tmp2.icon = t.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","");
+							}
+						}
+						else {
+							tmp2 = _this.get_text(t);
+						}
+						if(a.length > 1) { tmp1.data.push(tmp2); }
+						else { tmp1.data = tmp2; }
+					});
+					li = li.find("> ul > li");
+					if(li.length) { tmp1.children = _this.get_json(li, li_attr, a_attr, true); }
+					result.push(tmp1);
+				});
+				return result;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree languages plugin 1.0
+ * Adds support for multiple language versions in one tree
+ * This basically allows for many titles coexisting in one node, but only one of them being visible at any given time
+ * This is useful for maintaining the same structure in many languages (hence the name of the plugin)
+ */
+(function ($) {
+	$.jstree.plugin("languages", {
+		__init : function () { this._load_css();  },
+		defaults : [],
+		_fn : {
+			set_lang : function (i) { 
+				var langs = this._get_settings().languages,
+					st = false,
+					selector = ".jstree-" + this.get_index() + ' a';
+				if(!$.isArray(langs) || langs.length === 0) { return false; }
+				if($.inArray(i,langs) == -1) {
+					if(!!langs[i]) { i = langs[i]; }
+					else { return false; }
+				}
+				if(i == this.data.languages.current_language) { return true; }
+				st = $.vakata.css.get_css(selector + "." + this.data.languages.current_language, false, this.data.languages.language_css);
+				if(st !== false) { st.style.display = "none"; }
+				st = $.vakata.css.get_css(selector + "." + i, false, this.data.languages.language_css);
+				if(st !== false) { st.style.display = ""; }
+				this.data.languages.current_language = i;
+				this.__callback(i);
+				return true;
+			},
+			get_lang : function () {
+				return this.data.languages.current_language;
+			},
+			get_text : function (obj, lang) {
+				obj = this._get_node(obj) || this.data.ui.last_selected;
+				if(!obj.size()) { return false; }
+				var langs = this._get_settings().languages,
+					s = this._get_settings().core.html_titles;
+				if($.isArray(langs) && langs.length) {
+					lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language;
+					obj = obj.children("a." + lang);
+				}
+				else { obj = obj.children("a:eq(0)"); }
+				if(s) {
+					obj = obj.clone();
+					obj.children("INS").remove();
+					return obj.html();
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					return obj.nodeValue;
+				}
+			},
+			set_text : function (obj, val, lang) {
+				obj = this._get_node(obj) || this.data.ui.last_selected;
+				if(!obj.size()) { return false; }
+				var langs = this._get_settings().languages,
+					s = this._get_settings().core.html_titles,
+					tmp;
+				if($.isArray(langs) && langs.length) {
+					lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language;
+					obj = obj.children("a." + lang);
+				}
+				else { obj = obj.children("a:eq(0)"); }
+				if(s) {
+					tmp = obj.children("INS").clone();
+					obj.html(val).prepend(tmp);
+					this.__callback({ "obj" : obj, "name" : val, "lang" : lang });
+					return true;
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					this.__callback({ "obj" : obj, "name" : val, "lang" : lang });
+					return (obj.nodeValue = val);
+				}
+			},
+			_load_css : function () {
+				var langs = this._get_settings().languages,
+					str = "/* languages css */",
+					selector = ".jstree-" + this.get_index() + ' a',
+					ln;
+				if($.isArray(langs) && langs.length) {
+					this.data.languages.current_language = langs[0];
+					for(ln = 0; ln < langs.length; ln++) {
+						str += selector + "." + langs[ln] + " {";
+						if(langs[ln] != this.data.languages.current_language) { str += " display:none; "; }
+						str += " } ";
+					}
+					this.data.languages.language_css = $.vakata.css.add_sheet({ 'str' : str });
+				}
+			},
+			create_node : function (obj, position, js, callback) {
+				var t = this.__call_old(true, obj, position, js, function (t) {
+					var langs = this._get_settings().languages,
+						a = t.children("a"),
+						ln;
+					if($.isArray(langs) && langs.length) {
+						for(ln = 0; ln < langs.length; ln++) {
+							if(!a.is("." + langs[ln])) {
+								t.append(a.eq(0).clone().removeClass(langs.join(" ")).addClass(langs[ln]));
+							}
+						}
+						a.not("." + langs.join(", .")).remove();
+					}
+					if(callback) { callback.call(this, t); }
+				});
+				return t;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree cookies plugin 1.0
+ * Stores the currently opened/selected nodes in a cookie and then restores them
+ * Depends on the jquery.cookie plugin
+ */
+(function ($) {
+	$.jstree.plugin("cookies", {
+		__init : function () {
+			if(typeof $.cookie === "undefined") { throw "jsTree cookie: jQuery cookie plugin not included."; }
+
+			var s = this._get_settings().cookies,
+				tmp;
+			if(!!s.save_opened) {
+				tmp = $.cookie(s.save_opened);
+				if(tmp && tmp.length) { this.data.core.to_open = tmp.split(","); }
+			}
+			if(!!s.save_selected) {
+				tmp = $.cookie(s.save_selected);
+				if(tmp && tmp.length && this.data.ui) { this.data.ui.to_select = tmp.split(","); }
+			}
+			this.get_container()
+				.one( ( this.data.ui ? "reselect" : "reopen" ) + ".jstree", $.proxy(function () {
+					this.get_container()
+						.bind("open_node.jstree close_node.jstree select_node.jstree deselect_node.jstree", $.proxy(function (e) { 
+								if(this._get_settings().cookies.auto_save) { this.save_cookie((e.handleObj.namespace + e.handleObj.type).replace("jstree","")); }
+							}, this));
+				}, this));
+		},
+		defaults : {
+			save_opened		: "jstree_open",
+			save_selected	: "jstree_select",
+			auto_save		: true,
+			cookie_options	: {}
+		},
+		_fn : {
+			save_cookie : function (c) {
+				if(this.data.core.refreshing) { return; }
+				var s = this._get_settings().cookies;
+				if(!c) { // if called manually and not by event
+					if(s.save_opened) {
+						this.save_opened();
+						$.cookie(s.save_opened, this.data.core.to_open.join(","), s.cookie_options);
+					}
+					if(s.save_selected && this.data.ui) {
+						this.save_selected();
+						$.cookie(s.save_selected, this.data.ui.to_select.join(","), s.cookie_options);
+					}
+					return;
+				}
+				switch(c) {
+					case "open_node":
+					case "close_node":
+						if(!!s.save_opened) { 
+							this.save_opened(); 
+							$.cookie(s.save_opened, this.data.core.to_open.join(","), s.cookie_options); 
+						}
+						break;
+					case "select_node":
+					case "deselect_node":
+						if(!!s.save_selected && this.data.ui) { 
+							this.save_selected(); 
+							$.cookie(s.save_selected, this.data.ui.to_select.join(","), s.cookie_options); 
+						}
+						break;
+				}
+			}
+		}
+	});
+	// include cookies by default
+	$.jstree.defaults.plugins.push("cookies");
+})(jQuery);
+//*/
+
+/*
+ * jsTree sort plugin 1.0
+ * Sorts items alphabetically (or using any other function)
+ */
+(function ($) {
+	$.jstree.plugin("sort", {
+		__init : function () {
+			this.get_container()
+				.bind("load_node.jstree", $.proxy(function (e, data) {
+						var obj = this._get_node(data.rslt.obj);
+						obj = obj === -1 ? this.get_container().children("ul") : obj.children("ul");
+						this.sort(obj);
+					}, this))
+				.bind("rename_node.jstree", $.proxy(function (e, data) {
+						this.sort(data.rslt.obj.parent());
+					}, this))
+				.bind("move_node.jstree", $.proxy(function (e, data) {
+						var m = data.rslt.np == -1 ? this.get_container() : data.rslt.np;
+						this.sort(m.children("ul"));
+					}, this));
+		},
+		defaults : function (a, b) { return this.get_text(a) > this.get_text(b) ? 1 : -1; },
+		_fn : {
+			sort : function (obj) {
+				var s = this._get_settings().sort,
+					t = this;
+				obj.append($.makeArray(obj.children("li")).sort($.proxy(s, t)));
+				obj.find("> li > ul").each(function() { t.sort($(this)); });
+				this.clean_node(obj);
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree DND plugin 1.0
+ * Drag and drop plugin for moving/copying nodes
+ */
+(function ($) {
+	var o = false,
+		r = false,
+		m = false,
+		sli = false,
+		sti = false,
+		dir1 = false,
+		dir2 = false;
+	$.vakata.dnd = {
+		is_down : false,
+		is_drag : false,
+		helper : false,
+		scroll_spd : 10,
+		init_x : 0,
+		init_y : 0,
+		threshold : 5,
+		user_data : {},
+
+		drag_start : function (e, data, html) { 
+			if($.vakata.dnd.is_drag) { $.vakata.drag_stop({}); }
+			try {
+				e.currentTarget.unselectable = "on";
+				e.currentTarget.onselectstart = function() { return false; };
+				if(e.currentTarget.style) { e.currentTarget.style.MozUserSelect = "none"; }
+			} catch(err) { }
+			$.vakata.dnd.init_x = e.pageX;
+			$.vakata.dnd.init_y = e.pageY;
+			$.vakata.dnd.user_data = data;
+			$.vakata.dnd.is_down = true;
+			$.vakata.dnd.helper = $("<div id='vakata-dragged'>").html(html).css("opacity", "0.75");
+			$(document).bind("mousemove", $.vakata.dnd.drag);
+			$(document).bind("mouseup", $.vakata.dnd.drag_stop);
+			return false;
+		},
+		drag : function (e) { 
+			if(!$.vakata.dnd.is_down) { return; }
+			if(!$.vakata.dnd.is_drag) {
+				if(Math.abs(e.pageX - $.vakata.dnd.init_x) > 5 || Math.abs(e.pageY - $.vakata.dnd.init_y) > 5) { 
+					$.vakata.dnd.helper.appendTo("body");
+					$.vakata.dnd.is_drag = true;
+					$(document).triggerHandler("drag_start.vakata", { "event" : e, "data" : $.vakata.dnd.user_data });
+				}
+				else { return; }
+			}
+
+			// maybe use a scrolling parent element instead of document?
+			if(e.type === "mousemove") { // thought of adding scroll in order to move the helper, but mouse poisition is n/a
+				var d = $(document), t = d.scrollTop(), l = d.scrollLeft();
+				if(e.pageY - t < 20) { 
+					if(sti && dir1 === "down") { clearInterval(sti); sti = false; }
+					if(!sti) { dir1 = "up"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() - $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sti && dir1 === "up") { clearInterval(sti); sti = false; }
+				}
+				if($(window).height() - (e.pageY - t) < 20) {
+					if(sti && dir1 === "up") { clearInterval(sti); sti = false; }
+					if(!sti) { dir1 = "down"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() + $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sti && dir1 === "down") { clearInterval(sti); sti = false; }
+				}
+
+				if(e.pageX - l < 20) {
+					if(sli && dir2 === "right") { clearInterval(sli); sli = false; }
+					if(!sli) { dir2 = "left"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() - $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sli && dir2 === "left") { clearInterval(sli); sli = false; }
+				}
+				if($(window).width() - (e.pageX - l) < 20) {
+					if(sli && dir2 === "left") { clearInterval(sli); sli = false; }
+					if(!sli) { dir2 = "right"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() + $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sli && dir2 === "right") { clearInterval(sli); sli = false; }
+				}
+			}
+
+			$.vakata.dnd.helper.css({ left : (e.pageX + 5) + "px", top : (e.pageY + 10) + "px" });
+			$(document).triggerHandler("drag.vakata", { "event" : e, "data" : $.vakata.dnd.user_data });
+		},
+		drag_stop : function (e) {
+			$(document).unbind("mousemove", $.vakata.dnd.drag);
+			$(document).unbind("mouseup", $.vakata.dnd.drag_stop);
+			$(document).triggerHandler("drag_stop.vakata", { "event" : e, "data" : $.vakata.dnd.user_data });
+			$.vakata.dnd.helper.remove();
+			$.vakata.dnd.init_x = 0;
+			$.vakata.dnd.init_y = 0;
+			$.vakata.dnd.user_data = {};
+			$.vakata.dnd.is_down = false;
+			$.vakata.dnd.is_drag = false;
+		}
+	};
+	$(function() {
+		var css_string = '#vakata-dragged { display:block; margin:0 0 0 0; padding:4px 4px 4px 24px; position:absolute; top:-2000px; line-height:16px; z-index:10000; } ';
+		$.vakata.css.add_sheet({ str : css_string });
+	});
+
+	$.jstree.plugin("dnd", {
+		__init : function () {
+			this.data.dnd = {
+				active : false,
+				after : false,
+				inside : false,
+				before : false,
+				off : false,
+				prepared : false,
+				w : 0,
+				to1 : false,
+				to2 : false,
+				cof : false,
+				cw : false,
+				ch : false,
+				i1 : false,
+				i2 : false
+			};
+			this.get_container()
+				.bind("mouseenter.jstree", $.proxy(function () {
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && this.data.themes) {
+							m.attr("class", "jstree-" + this.data.themes.theme); 
+							$.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme);
+						}
+					}, this))
+				.bind("mouseleave.jstree", $.proxy(function () {
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+							if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+						}
+					}, this))
+				.bind("mousemove.jstree", $.proxy(function (e) {
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							var cnt = this.get_container()[0];
+
+							// Horizontal scroll
+							if(e.pageX + 24 > this.data.dnd.cof.left + this.data.dnd.cw) {
+								if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+								this.data.dnd.i1 = setInterval($.proxy(function () { this.scrollLeft += $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else if(e.pageX - 24 < this.data.dnd.cof.left) {
+								if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+								this.data.dnd.i1 = setInterval($.proxy(function () { this.scrollLeft -= $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else {
+								if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+							}
+
+							// Vertical scroll
+							if(e.pageY + 24 > this.data.dnd.cof.top + this.data.dnd.ch) {
+								if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+								this.data.dnd.i2 = setInterval($.proxy(function () { this.scrollTop += $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else if(e.pageY - 24 < this.data.dnd.cof.top) {
+								if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+								this.data.dnd.i2 = setInterval($.proxy(function () { this.scrollTop -= $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else {
+								if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+							}
+
+						}
+					}, this))
+				.delegate("a", "mousedown.jstree", $.proxy(function (e) { 
+						if(e.which === 1) {
+							this.start_drag(e.currentTarget, e);
+							return false;
+						}
+					}, this))
+				.delegate("a", "mouseenter.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							this.dnd_enter(e.currentTarget);
+						}
+					}, this))
+				.delegate("a", "mousemove.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							if(typeof this.data.dnd.off.top === "undefined") { this.data.dnd.off = $(e.target).offset(); }
+							this.data.dnd.w = (e.pageY - (this.data.dnd.off.top || 0)) % this.data.core.li_height;
+							if(this.data.dnd.w < 0) { this.data.dnd.w += this.data.core.li_height; }
+							this.dnd_show();
+						}
+					}, this))
+				.delegate("a", "mouseleave.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							this.data.dnd.after		= false;
+							this.data.dnd.before	= false;
+							this.data.dnd.inside	= false;
+							$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
+							m.hide();
+							if(r && r[0] === e.target.parentNode) {
+								if(this.data.dnd.to1) {
+									clearTimeout(this.data.dnd.to1);
+									this.data.dnd.to1 = false;
+								}
+								if(this.data.dnd.to2) {
+									clearTimeout(this.data.dnd.to2);
+									this.data.dnd.to2 = false;
+								}
+							}
+						}
+					}, this))
+				.delegate("a", "mouseup.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							this.dnd_finish(e);
+						}
+					}, this));
+
+			$(document)
+				.bind("drag_stop.vakata", $.proxy(function () {
+						this.data.dnd.after		= false;
+						this.data.dnd.before	= false;
+						this.data.dnd.inside	= false;
+						this.data.dnd.off		= false;
+						this.data.dnd.prepared	= false;
+						this.data.dnd.w			= false;
+						this.data.dnd.to1		= false;
+						this.data.dnd.to2		= false;
+						this.data.dnd.active	= false;
+						this.data.dnd.foreign	= false;
+						if(m) { m.css({ "top" : "-2000px" }); }
+					}, this))
+				.bind("drag_start.vakata", $.proxy(function (e, data) {
+						if(data.data.jstree) { 
+							var et = $(data.event.target);
+							if(et.closest(".jstree").hasClass("jstree-" + this.get_index())) {
+								this.dnd_enter(et);
+							}
+						}
+					}, this));
+
+			var s = this._get_settings().dnd;
+			if(s.drag_target) {
+				$(document)
+					.delegate(s.drag_target, "mousedown.jstree", $.proxy(function (e) {
+						o = e.target;
+						$.vakata.dnd.drag_start(e, { jstree : true, obj : e.target }, "<ins class='jstree-icon'></ins>" + $(e.target).text() );
+						if(this.data.themes) { 
+							m.attr("class", "jstree-" + this.data.themes.theme); 
+							$.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); 
+						}
+						$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
+						var cnt = this.get_container();
+						this.data.dnd.cof = cnt.offset();
+						this.data.dnd.cw = parseInt(cnt.width(),10);
+						this.data.dnd.ch = parseInt(cnt.height(),10);
+						this.data.dnd.foreign = true;
+						return false;
+					}, this));
+			}
+			if(s.drop_target) {
+				$(document)
+					.delegate(s.drop_target, "mouseenter.jstree", $.proxy(function (e) {
+							if(this.data.dnd.active && this._get_settings().dnd.drop_check.call(this, { "o" : o, "r" : $(e.target) })) {
+								$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
+							}
+						}, this))
+					.delegate(s.drop_target, "mouseleave.jstree", $.proxy(function (e) {
+							if(this.data.dnd.active) {
+								$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
+							}
+						}, this))
+					.delegate(s.drop_target, "mouseup.jstree", $.proxy(function (e) {
+							if(this.data.dnd.active && $.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) {
+								this._get_settings().dnd.drop_finish.call(this, { "o" : o, "r" : $(e.target) });
+							}
+						}, this));
+			}
+		},
+		defaults : {
+			copy_modifier	: "ctrl",
+			check_timeout	: 200,
+			open_timeout	: 500,
+			drop_target		: ".jstree-drop",
+			drop_check		: function (data) { return true; },
+			drop_finish		: $.noop,
+			drag_target		: ".jstree-draggable",
+			drag_finish		: $.noop,
+			drag_check		: function (data) { return { after : false, before : false, inside : true }; }
+		},
+		_fn : {
+			dnd_prepare : function () {
+				if(!r || !r.length) { return; }
+				this.data.dnd.off = r.offset();
+				if(this._get_settings().core.rtl) {
+					this.data.dnd.off.right = this.data.dnd.off.left + r.width();
+				}
+				if(this.data.dnd.foreign) {
+					var a = this._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : r });
+					this.data.dnd.after = a.after;
+					this.data.dnd.before = a.before;
+					this.data.dnd.inside = a.inside;
+					this.data.dnd.prepared = true;
+					return this.dnd_show();
+				}
+				this.prepare_move(o, r, "before");
+				this.data.dnd.before = this.check_move();
+				this.prepare_move(o, r, "after");
+				this.data.dnd.after = this.check_move();
+				if(this._is_loaded(r)) {
+					this.prepare_move(o, r, "inside");
+					this.data.dnd.inside = this.check_move();
+				}
+				else {
+					this.data.dnd.inside = false;
+				}
+				this.data.dnd.prepared = true;
+				return this.dnd_show();
+			},
+			dnd_show : function () {
+				if(!this.data.dnd.prepared) { return; }
+				var o = ["before","inside","after"],
+					r = false,
+					rtl = this._get_settings().core.rtl,
+					pos;
+				if(this.data.dnd.w < this.data.core.li_height/3) { o = ["before","inside","after"]; }
+				else if(this.data.dnd.w <= this.data.core.li_height*2/3) {
+					o = this.data.dnd.w < this.data.core.li_height/2 ? ["inside","before","after"] : ["inside","after","before"];
+				}
+				else { o = ["after","inside","before"]; }
+				$.each(o, $.proxy(function (i, val) { 
+					if(this.data.dnd[val]) {
+						$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
+						r = val;
+						return false;
+					}
+				}, this));
+				if(r === false) { $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"); }
+				
+				pos = rtl ? (this.data.dnd.off.right - 18) : (this.data.dnd.off.left + 10);
+				switch(r) {
+					case "before":
+						m.css({ "left" : pos + "px", "top" : (this.data.dnd.off.top - 6) + "px" }).show();
+						break;
+					case "after":
+						m.css({ "left" : pos + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height - 7) + "px" }).show();
+						break;
+					case "inside":
+						m.css({ "left" : pos + ( rtl ? -4 : 4) + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height/2 - 5) + "px" }).show();
+						break;
+					default:
+						m.hide();
+						break;
+				}
+				return r;
+			},
+			dnd_open : function () {
+				this.data.dnd.to2 = false;
+				this.open_node(r, $.proxy(this.dnd_prepare,this), true);
+			},
+			dnd_finish : function (e) {
+				if(this.data.dnd.foreign) {
+					if(this.data.dnd.after || this.data.dnd.before || this.data.dnd.inside) {
+						this._get_settings().dnd.drag_finish.call(this, { "o" : o, "r" : r });
+					}
+				}
+				else {
+					this.dnd_prepare();
+					this.move_node(o, r, this.dnd_show(), e[this._get_settings().dnd.copy_modifier + "Key"]);
+				}
+				o = false;
+				r = false;
+				m.hide();
+			},
+			dnd_enter : function (obj) {
+				var s = this._get_settings().dnd;
+				this.data.dnd.prepared = false;
+				r = this._get_node(obj);
+				if(s.check_timeout) { 
+					// do the calculations after a minimal timeout (users tend to drag quickly to the desired location)
+					if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); }
+					this.data.dnd.to1 = setTimeout($.proxy(this.dnd_prepare, this), s.check_timeout); 
+				}
+				else { 
+					this.dnd_prepare(); 
+				}
+				if(s.open_timeout) { 
+					if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); }
+					if(r && r.length && r.hasClass("jstree-closed")) { 
+						// if the node is closed - open it, then recalculate
+						this.data.dnd.to2 = setTimeout($.proxy(this.dnd_open, this), s.open_timeout);
+					}
+				}
+				else {
+					if(r && r.length && r.hasClass("jstree-closed")) { 
+						this.dnd_open();
+					}
+				}
+			},
+			start_drag : function (obj, e) {
+				o = this._get_node(obj);
+				if(this.data.ui && this.is_selected(o)) { o = this._get_node(null, true); }
+				$.vakata.dnd.drag_start(e, { jstree : true, obj : o }, "<ins class='jstree-icon'></ins>" + (o.length > 1 ? "Multiple selection" : this.get_text(o)) );
+				if(this.data.themes) { 
+					m.attr("class", "jstree-" + this.data.themes.theme); 
+					$.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); 
+				}
+				var cnt = this.get_container();
+				this.data.dnd.cof = cnt.children("ul").offset();
+				this.data.dnd.cw = parseInt(cnt.width(),10);
+				this.data.dnd.ch = parseInt(cnt.height(),10);
+				this.data.dnd.active = true;
+			}
+		}
+	});
+	$(function() {
+		var css_string = '' + 
+			'#vakata-dragged ins { display:block; text-decoration:none; width:16px; height:16px; margin:0 0 0 0; padding:0; position:absolute; top:4px; left:4px; } ' + 
+			'#vakata-dragged .jstree-ok { background:green; } ' + 
+			'#vakata-dragged .jstree-invalid { background:red; } ' + 
+			'#jstree-marker { padding:0; margin:0; line-height:12px; font-size:1px; overflow:hidden; height:12px; width:8px; position:absolute; top:-30px; z-index:10000; background-repeat:no-repeat; display:none; background-color:silver; } ';
+		$.vakata.css.add_sheet({ str : css_string });
+		m = $("<div>").attr({ id : "jstree-marker" }).hide().appendTo("body");
+		$(document).bind("drag_start.vakata", function (e, data) {
+			if(data.data.jstree) { 
+				m.show(); 
+			}
+		});
+		$(document).bind("drag_stop.vakata", function (e, data) {
+			if(data.data.jstree) { m.hide(); }
+		});
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree checkbox plugin 1.0
+ * Inserts checkboxes in front of every node
+ * Depends on the ui plugin
+ * DOES NOT WORK NICELY WITH MULTITREE DRAG'N'DROP
+ */
+(function ($) {
+	$.jstree.plugin("checkbox", {
+		__init : function () {
+			this.select_node = this.deselect_node = this.deselect_all = $.noop;
+			this.get_selected = this.get_checked;
+
+			this.get_container()
+				.bind("open_node.jstree create_node.jstree clean_node.jstree", $.proxy(function (e, data) { 
+						this._prepare_checkboxes(data.rslt.obj);
+					}, this))
+				.bind("loaded.jstree", $.proxy(function (e) {
+						this._prepare_checkboxes();
+					}, this))
+				.delegate("a", "click.jstree", $.proxy(function (e) {
+						if(this._get_node(e.target).hasClass("jstree-checked")) { this.uncheck_node(e.target); }
+						else { this.check_node(e.target); }
+						if(this.data.ui) { this.save_selected(); }
+						if(this.data.cookies) { this.save_cookie("select_node"); }
+						e.preventDefault();
+					}, this));
+		},
+		__destroy : function () {
+			this.get_container().find(".jstree-checkbox").remove();
+		},
+		_fn : {
+			_prepare_checkboxes : function (obj) {
+				obj = !obj || obj == -1 ? this.get_container() : this._get_node(obj);
+				var c, _this = this, t;
+				obj.each(function () {
+					t = $(this);
+					c = t.is("li") && t.hasClass("jstree-checked") ? "jstree-checked" : "jstree-unchecked";
+					t.find("a").not(":has(.jstree-checkbox)").prepend("<ins class='jstree-checkbox'>&#160;</ins>").parent().not(".jstree-checked, .jstree-unchecked").addClass(c);
+				});
+				if(obj.is("li")) { this._repair_state(obj); }
+				else { obj.find("> ul > li").each(function () { _this._repair_state(this); }); }
+			},
+			change_state : function (obj, state) {
+				obj = this._get_node(obj);
+				state = (state === false || state === true) ? state : obj.hasClass("jstree-checked");
+				if(state) { obj.find("li").andSelf().removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked"); }
+				else { 
+					obj.find("li").andSelf().removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked"); 
+					if(this.data.ui) { this.data.ui.last_selected = obj; }
+					this.data.checkbox.last_selected = obj;
+				}
+				obj.parentsUntil(".jstree", "li").each(function () {
+					var $this = $(this);
+					if(state) {
+						if($this.children("ul").children(".jstree-checked, .jstree-undetermined").length) {
+							$this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
+							return false;
+						}
+						else {
+							$this.removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked");
+						}
+					}
+					else {
+						if($this.children("ul").children(".jstree-unchecked, .jstree-undetermined").length) {
+							$this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
+							return false;
+						}
+						else {
+							$this.removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked");
+						}
+					}
+				});
+				if(this.data.ui) { this.data.ui.selected = this.get_checked(); }
+				this.__callback(obj);
+			},
+			check_node : function (obj) {
+				this.change_state(obj, false);
+			},
+			uncheck_node : function (obj) {
+				this.change_state(obj, true);
+			},
+			check_all : function () {
+				var _this = this;
+				this.get_container().children("ul").children("li").each(function () {
+					_this.check_node(this, false);
+				});
+			},
+			uncheck_all : function () {
+				var _this = this;
+				this.get_container().children("ul").children("li").each(function () {
+					_this.change_state(this, true);
+				});
+			},
+
+			is_checked : function(obj) {
+				obj = this._get_node(obj);
+				return obj.length ? obj.is(".jstree-checked") : false;
+			},
+			get_checked : function (obj) {
+				obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj);
+				return obj.find("> ul > .jstree-checked, .jstree-undetermined > ul > .jstree-checked");
+			},
+			get_unchecked : function (obj) { 
+				obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj);
+				return obj.find("> ul > .jstree-unchecked, .jstree-undetermined > ul > .jstree-unchecked");
+			},
+
+			show_checkboxes : function () { this.get_container().children("ul").removeClass("jstree-no-checkboxes"); },
+			hide_checkboxes : function () { this.get_container().children("ul").addClass("jstree-no-checkboxes"); },
+
+			_repair_state : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return; }
+				var a = obj.find("> ul > .jstree-checked").length,
+					b = obj.find("> ul > .jstree-undetermined").length,
+					c = obj.find("> ul > li").length;
+
+				if(c === 0) { if(obj.hasClass("jstree-undetermined")) { this.check_node(obj); } }
+				else if(a === 0 && b === 0) { this.uncheck_node(obj); }
+				else if(a === c) { this.check_node(obj); }
+				else { 
+					obj.parentsUntil(".jstree","li").removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
+				}
+			},
+			reselect : function () {
+				if(this.data.ui) { 
+					var _this = this,
+						s = this.data.ui.to_select;
+					s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace('\\/','/').replace('/','\\/'); });
+					this.deselect_all();
+					$.each(s, function (i, val) { _this.check_node(val); });
+					this.__callback();
+				}
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree XML 1.0
+ * The XML data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions.
+ */
+(function ($) {
+	$.vakata.xslt = function (xml, xsl, callback) {
+		var rs = "", xm, xs, processor, support;
+		if(document.recalc) {
+			xm = document.createElement('xml');
+			xs = document.createElement('xml');
+			xm.innerHTML = xml;
+			xs.innerHTML = xsl;
+			$("body").append(xm).append(xs);
+			setTimeout( (function (xm, xs, callback) {
+				return function () {
+					callback.call(null, xm.transformNode(xs.XMLDocument));
+					setTimeout( (function (xm, xs) { return function () { jQuery("body").remove(xm).remove(xs); }; })(xm, xs), 200);
+				};
+			}) (xm, xs, callback), 100);
+			return true;
+		}
+		if(typeof window.DOMParser !== "undefined" && typeof window.XMLHttpRequest !== "undefined" && typeof window.XSLTProcessor !== "undefined") {
+			processor = new XSLTProcessor();
+			support = $.isFunction(processor.transformDocument) ? (typeof window.XMLSerializer !== "undefined") : true;
+			if(!support) { return false; }
+			xml = new DOMParser().parseFromString(xml, "text/xml");
+			xsl = new DOMParser().parseFromString(xsl, "text/xml");
+			if($.isFunction(processor.transformDocument)) {
+				rs = document.implementation.createDocument("", "", null);
+				processor.transformDocument(xml, xsl, rs, null);
+				callback.call(null, XMLSerializer().serializeToString(rs));
+				return true;
+			}
+			else {
+				processor.importStylesheet(xsl);
+				rs = processor.transformToFragment(xml, document);
+				callback.call(null, $("<div>").append(rs).html());
+				return true;
+			}
+		}
+		return false;
+	};
+	var xsl = {
+		'nest' : '<?xml version="1.0" encoding="utf-8" ?>' + 
+			'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >' + 
+			'<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" standalone="no" indent="no" media-type="text/html" />' + 
+			'<xsl:template match="/">' + 
+			'	<xsl:call-template name="nodes">' + 
+			'		<xsl:with-param name="node" select="/root" />' + 
+			'	</xsl:call-template>' + 
+			'</xsl:template>' + 
+			'<xsl:template name="nodes">' + 
+			'	<xsl:param name="node" />' + 
+			'	<ul>' + 
+			'	<xsl:for-each select="$node/item">' + 
+			'		<xsl:variable name="children" select="count(./item) &gt; 0" />' + 
+			'		<li>' + 
+			'			<xsl:attribute name="class">' + 
+			'				<xsl:if test="position() = last()">jstree-last </xsl:if>' + 
+			'				<xsl:choose>' + 
+			'					<xsl:when test="@state = \'open\'">jstree-open </xsl:when>' + 
+			'					<xsl:when test="$children or @hasChildren or @state = \'closed\'">jstree-closed </xsl:when>' + 
+			'					<xsl:otherwise>jstree-leaf </xsl:otherwise>' + 
+			'				</xsl:choose>' + 
+			'				<xsl:value-of select="@class" />' + 
+			'			</xsl:attribute>' + 
+			'			<xsl:for-each select="@*">' + 
+			'				<xsl:if test="name() != \'class\' and name() != \'state\' and name() != \'hasChildren\'">' + 
+			'					<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'				</xsl:if>' + 
+			'			</xsl:for-each>' + 
+			'	<ins class="jstree-icon"><xsl:text>&#xa0;</xsl:text></ins>' + 
+			'			<xsl:for-each select="content/name">' + 
+			'				<a>' + 
+			'				<xsl:attribute name="href">' + 
+			'					<xsl:choose>' + 
+			'					<xsl:when test="@href"><xsl:value-of select="@href" /></xsl:when>' + 
+			'					<xsl:otherwise>#</xsl:otherwise>' + 
+			'					</xsl:choose>' + 
+			'				</xsl:attribute>' + 
+			'				<xsl:attribute name="class"><xsl:value-of select="@lang" /> <xsl:value-of select="@class" /></xsl:attribute>' + 
+			'				<xsl:attribute name="style"><xsl:value-of select="@style" /></xsl:attribute>' + 
+			'				<xsl:for-each select="@*">' + 
+			'					<xsl:if test="name() != \'style\' and name() != \'class\' and name() != \'href\'">' + 
+			'						<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'					</xsl:if>' + 
+			'				</xsl:for-each>' + 
+			'					<ins>' + 
+			'						<xsl:attribute name="class">jstree-icon ' + 
+			'							<xsl:if test="string-length(attribute::icon) > 0 and not(contains(@icon,\'/\'))"><xsl:value-of select="@icon" /></xsl:if>' + 
+			'						</xsl:attribute>' + 
+			'						<xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' + 
+			'						<xsl:text>&#xa0;</xsl:text>' + 
+			'					</ins>' + 
+			'					<xsl:value-of select="current()" />' + 
+			'				</a>' + 
+			'			</xsl:for-each>' + 
+			'			<xsl:if test="$children or @hasChildren"><xsl:call-template name="nodes"><xsl:with-param name="node" select="current()" /></xsl:call-template></xsl:if>' + 
+			'		</li>' + 
+			'	</xsl:for-each>' + 
+			'	</ul>' + 
+			'</xsl:template>' + 
+			'</xsl:stylesheet>',
+
+		'flat' : '<?xml version="1.0" encoding="utf-8" ?>' + 
+			'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >' + 
+			'<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" standalone="no" indent="no" media-type="text/xml" />' + 
+			'<xsl:template match="/">' + 
+			'	<ul>' + 
+			'	<xsl:for-each select="//item[not(@parent_id) or @parent_id=0 or not(@parent_id = //item/@id)]">' + /* the last `or` may be removed */
+			'		<xsl:call-template name="nodes">' + 
+			'			<xsl:with-param name="node" select="." />' + 
+			'			<xsl:with-param name="is_last" select="number(position() = last())" />' + 
+			'		</xsl:call-template>' + 
+			'	</xsl:for-each>' + 
+			'	</ul>' + 
+			'</xsl:template>' + 
+			'<xsl:template name="nodes">' + 
+			'	<xsl:param name="node" />' + 
+			'	<xsl:param name="is_last" />' + 
+			'	<xsl:variable name="children" select="count(//item[@parent_id=$node/attribute::id]) &gt; 0" />' + 
+			'	<li>' + 
+			'	<xsl:attribute name="class">' + 
+			'		<xsl:if test="$is_last = true()">jstree-last </xsl:if>' + 
+			'		<xsl:choose>' + 
+			'			<xsl:when test="@state = \'open\'">jstree-open </xsl:when>' + 
+			'			<xsl:when test="$children or @hasChildren or @state = \'closed\'">jstree-closed </xsl:when>' + 
+			'			<xsl:otherwise>jstree-leaf </xsl:otherwise>' + 
+			'		</xsl:choose>' + 
+			'		<xsl:value-of select="@class" />' + 
+			'	</xsl:attribute>' + 
+			'	<xsl:for-each select="@*">' + 
+			'		<xsl:if test="name() != \'parent_id\' and name() != \'hasChildren\' and name() != \'class\' and name() != \'state\'">' + 
+			'		<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'		</xsl:if>' + 
+			'	</xsl:for-each>' + 
+			'	<ins class="jstree-icon"><xsl:text>&#xa0;</xsl:text></ins>' + 
+			'	<xsl:for-each select="content/name">' + 
+			'		<a>' + 
+			'		<xsl:attribute name="href">' + 
+			'			<xsl:choose>' + 
+			'			<xsl:when test="@href"><xsl:value-of select="@href" /></xsl:when>' + 
+			'			<xsl:otherwise>#</xsl:otherwise>' + 
+			'			</xsl:choose>' + 
+			'		</xsl:attribute>' + 
+			'		<xsl:attribute name="class"><xsl:value-of select="@lang" /> <xsl:value-of select="@class" /></xsl:attribute>' + 
+			'		<xsl:attribute name="style"><xsl:value-of select="@style" /></xsl:attribute>' + 
+			'		<xsl:for-each select="@*">' + 
+			'			<xsl:if test="name() != \'style\' and name() != \'class\' and name() != \'href\'">' + 
+			'				<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'			</xsl:if>' + 
+			'		</xsl:for-each>' + 
+			'			<ins>' + 
+			'				<xsl:attribute name="class">jstree-icon ' + 
+			'					<xsl:if test="string-length(attribute::icon) > 0 and not(contains(@icon,\'/\'))"><xsl:value-of select="@icon" /></xsl:if>' + 
+			'				</xsl:attribute>' + 
+			'				<xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' + 
+			'				<xsl:text>&#xa0;</xsl:text>' + 
+			'			</ins>' + 
+			'			<xsl:value-of select="current()" />' + 
+			'		</a>' + 
+			'	</xsl:for-each>' + 
+			'	<xsl:if test="$children">' + 
+			'		<ul>' + 
+			'		<xsl:for-each select="//item[@parent_id=$node/attribute::id]">' + 
+			'			<xsl:call-template name="nodes">' + 
+			'				<xsl:with-param name="node" select="." />' + 
+			'				<xsl:with-param name="is_last" select="number(position() = last())" />' + 
+			'			</xsl:call-template>' + 
+			'		</xsl:for-each>' + 
+			'		</ul>' + 
+			'	</xsl:if>' + 
+			'	</li>' + 
+			'</xsl:template>' + 
+			'</xsl:stylesheet>'
+	};
+	$.jstree.plugin("xml_data", {
+		defaults : { 
+			data : false,
+			ajax : false,
+			xsl : "flat",
+			clean_node : false,
+			correct_state : true
+		},
+		_fn : {
+			load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_xml(obj, function () { _this.__callback({ "obj" : obj }); s_call.call(this); }, e_call); },
+			_is_loaded : function (obj) { 
+				var s = this._get_settings().xml_data;
+				obj = this._get_node(obj);
+				return obj == -1 || !obj || !s.ajax || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").size() > 0;
+			},
+			load_node_xml : function (obj, s_call, e_call) {
+				var s = this.get_settings().xml_data,
+					error_func = function () {},
+					success_func = function () {};
+
+				obj = this._get_node(obj);
+				if(obj && obj !== -1) {
+					if(obj.data("jstree-is-loading")) { return; }
+					else { obj.data("jstree-is-loading",true); }
+				}
+				switch(!0) {
+					case (!s.data && !s.ajax): throw "Neither data nor ajax settings supplied.";
+					case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
+						if(!obj || obj == -1) {
+							this.parse_xml(s.data, $.proxy(function (d) {
+								if(d) {
+									d = d.replace(/ ?xmlns="[^"]*"/ig, "");
+									if(d.length > 10) {
+										d = $(d);
+										this.get_container().children("ul").empty().append(d.children());
+										if(s.clean_node) { this.clean_node(obj); }
+										if(s_call) { s_call.call(this); }
+									}
+								}
+								else { 
+									if(s.correct_state) { 
+										this.get_container().children("ul").empty(); 
+										if(s_call) { s_call.call(this); }
+									}
+								}
+							}, this));
+						}
+						break;
+					case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
+						error_func = function (x, t, e) {
+							var ef = this.get_settings().xml_data.ajax.error; 
+							if(ef) { ef.call(this, x, t, e); }
+							if(obj !== -1 && obj.length) {
+								obj.children(".jstree-loading").removeClass("jstree-loading");
+								obj.data("jstree-is-loading",false);
+								if(t === "success" && s.correct_state) { obj.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"); }
+							}
+							else {
+								if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+							if(e_call) { e_call.call(this); }
+						};
+						success_func = function (d, t, x) {
+							d = x.responseText;
+							var sf = this.get_settings().xml_data.ajax.success; 
+							if(sf) { d = sf.call(this,d,t,x) || d; }
+							if(d == "") {
+								return error_func.call(this, x, t, "");
+							}
+							this.parse_xml(d, $.proxy(function (d) {
+								if(d) {
+									d = d.replace(/ ?xmlns="[^"]*"/ig, "");
+									if(d.length > 10) {
+										d = $(d);
+										if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
+										else { obj.children(".jstree-loading").removeClass("jstree-loading"); obj.append(d); obj.data("jstree-is-loading",false); }
+										if(s.clean_node) { this.clean_node(obj); }
+										if(s_call) { s_call.call(this); }
+									}
+									else {
+										if(obj && obj !== -1) { 
+											obj.children(".jstree-loading").removeClass("jstree-loading");
+											obj.data("jstree-is-loading",false);
+											if(s.correct_state) { 
+												obj.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"); 
+												if(s_call) { s_call.call(this); } 
+											}
+										}
+										else {
+											if(s.correct_state) { 
+												this.get_container().children("ul").empty();
+												if(s_call) { s_call.call(this); } 
+											}
+										}
+									}
+								}
+							}, this));
+						};
+						s.ajax.context = this;
+						s.ajax.error = error_func;
+						s.ajax.success = success_func;
+						if(!s.ajax.dataType) { s.ajax.dataType = "xml"; }
+						if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
+						if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
+						$.ajax(s.ajax);
+						break;
+				}
+			},
+			parse_xml : function (xml, callback) {
+				var s = this._get_settings().xml_data;
+				$.vakata.xslt(xml, xsl[s.xsl], callback);
+			},
+			get_xml : function (tp, obj, li_attr, a_attr, is_callback) {
+				var result = "", 
+					s = this._get_settings(), 
+					_this = this,
+					tmp1, tmp2, li, a, lang;
+				if(!tp) { tp = "flat"; }
+				if(!is_callback) { is_callback = 0; }
+				obj = this._get_node(obj);
+				if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); }
+				li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ];
+				if(!is_callback && this.data.types && $.inArray(s.types.type_attr, li_attr) === -1) { li_attr.push(s.types.type_attr); }
+
+				a_attr = $.isArray(a_attr) ? a_attr : [ ];
+
+				if(!is_callback) { result += "<root>"; }
+				obj.each(function () {
+					result += "<item";
+					li = $(this);
+					$.each(li_attr, function (i, v) { result += " " + v + "=\"" + (li.attr(v) || "").replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"") + "\""; });
+					if(li.hasClass("jstree-open")) { result += " state=\"open\""; }
+					if(li.hasClass("jstree-closed")) { result += " state=\"closed\""; }
+					if(tp === "flat") { result += " parent_id=\"" + is_callback + "\""; }
+					result += ">";
+					result += "<content>";
+					a = li.children("a");
+					a.each(function () {
+						tmp1 = $(this);
+						lang = false;
+						result += "<name";
+						if($.inArray("languages", s.plugins) !== -1) {
+							$.each(s.languages, function (k, z) {
+								if(tmp1.hasClass(z)) { result += " lang=\"" + z + "\""; lang = z; return false; }
+							});
+						}
+						if(a_attr.length) { 
+							$.each(a_attr, function (k, z) {
+								result += " " + z + "=\"" + (tmp1.attr(z) || "").replace(/jstree[^ ]*|$/ig,'') + "\"";
+							});
+						}
+						if(tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"").length) {
+							result += ' icon="' + tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"") + '"';
+						}
+						if(tmp1.children("ins").get(0).style.backgroundImage.length) {
+							result += ' icon="' + tmp1.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","") + '"';
+						}
+						result += ">";
+						result += "<![CDATA[" + _this.get_text(tmp1, lang) + "]]>";
+						result += "</name>";
+					});
+					result += "</content>";
+					tmp2 = li[0].id;
+					li = li.find("> ul > li");
+					if(li.length) { tmp2 = _this.get_xml(tp, li, li_attr, a_attr, tmp2); }
+					else { tmp2 = ""; }
+					if(tp == "nest") { result += tmp2; }
+					result += "</item>";
+					if(tp == "flat") { result += tmp2; }
+				});
+				if(!is_callback) { result += "</root>"; }
+				return result;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree search plugin 1.0
+ * Enables both sync and async search on the tree
+ * DOES NOT WORK WITH JSON PROGRESSIVE RENDER
+ */
+(function ($) {
+	$.expr[':'].jstree_contains = function(a,i,m){
+		return (a.textContent || a.innerText || "").toLowerCase().indexOf(m[3].toLowerCase())>=0;
+	};
+	$.jstree.plugin("search", {
+		__init : function () {
+			this.data.search.str = "";
+			this.data.search.result = $();
+		},
+		defaults : {
+			ajax : false, // OR ajax object
+			case_insensitive : false
+		},
+		_fn : {
+			search : function (str, skip_async) {
+				if(str === "") { return; }
+				var s = this.get_settings().search, 
+					t = this,
+					error_func = function () { },
+					success_func = function () { };
+				this.data.search.str = str;
+
+				if(!skip_async && s.ajax !== false && this.get_container().find(".jstree-closed:eq(0)").length > 0) {
+					this.search.supress_callback = true;
+					error_func = function () { };
+					success_func = function (d, t, x) {
+						var sf = this.get_settings().search.ajax.success; 
+						if(sf) { d = sf.call(this,d,t,x) || d; }
+						this.data.search.to_open = d;
+						this._search_open();
+					};
+					s.ajax.context = this;
+					s.ajax.error = error_func;
+					s.ajax.success = success_func;
+					if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, str); }
+					if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, str); }
+					if(!s.ajax.data) { s.ajax.data = { "search_string" : str }; }
+					if(!s.ajax.dataType || /^json/.exec(s.ajax.dataType)) { s.ajax.dataType = "json"; }
+					$.ajax(s.ajax);
+					return;
+				}
+				if(this.data.search.result.length) { this.clear_search(); }
+				this.data.search.result = this.get_container().find("a" + (this.data.languages ? "." + this.get_lang() : "" ) + ":" + (s.case_insensitive ? "jstree_contains" : "contains") + "(" + this.data.search.str + ")");
+				this.data.search.result.addClass("jstree-search").parents(".jstree-closed").each(function () {
+					t.open_node(this, false, true);
+				});
+				this.__callback({ nodes : this.data.search.result, str : str });
+			},
+			clear_search : function (str) {
+				this.data.search.result.removeClass("jstree-search");
+				this.__callback(this.data.search.result);
+				this.data.search.result = $();
+			},
+			_search_open : function (is_callback) {
+				var _this = this,
+					done = true,
+					current = [],
+					remaining = [];
+				if(this.data.search.to_open.length) {
+					$.each(this.data.search.to_open, function (i, val) {
+						if(val == "#") { return true; }
+						if($(val).length && $(val).is(".jstree-closed")) { current.push(val); }
+						else { remaining.push(val); }
+					});
+					if(current.length) {
+						this.data.search.to_open = remaining;
+						$.each(current, function (i, val) { 
+							_this.open_node(val, function () { _this._search_open(true); }); 
+						});
+						done = false;
+					}
+				}
+				if(done) { this.search(this.data.search.str, true); }
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree contextmenu plugin 1.0
+ */
+(function ($) {
+	$.vakata.context = {
+		cnt		: $("<div id='vakata-contextmenu'>"),
+		vis		: false,
+		tgt		: false,
+		par		: false,
+		func	: false,
+		data	: false,
+		show	: function (s, t, x, y, d, p) {
+			var html = $.vakata.context.parse(s), h, w;
+			if(!html) { return; }
+			$.vakata.context.vis = true;
+			$.vakata.context.tgt = t;
+			$.vakata.context.par = p || t || null;
+			$.vakata.context.data = d || null;
+			$.vakata.context.cnt
+				.html(html)
+				.css({ "visibility" : "hidden", "display" : "block", "left" : 0, "top" : 0 });
+			h = $.vakata.context.cnt.height();
+			w = $.vakata.context.cnt.width();
+			if(x + w > $(document).width()) { 
+				x = $(document).width() - (w + 5); 
+				$.vakata.context.cnt.find("li > ul").addClass("right"); 
+			}
+			if(y + h > $(document).height()) { 
+				y = y - (h + t[0].offsetHeight); 
+				$.vakata.context.cnt.find("li > ul").addClass("bottom"); 
+			}
+
+			$.vakata.context.cnt
+				.css({ "left" : x, "top" : y })
+				.find("li:has(ul)")
+					.bind("mouseenter", function (e) { 
+						var w = $(document).width(),
+							h = $(document).height(),
+							ul = $(this).children("ul").show(); 
+						if(w !== $(document).width()) { ul.toggleClass("right"); }
+						if(h !== $(document).height()) { ul.toggleClass("bottom"); }
+					})
+					.bind("mouseleave", function (e) { 
+						$(this).children("ul").hide(); 
+					})
+					.end()
+				.css({ "visibility" : "visible" })
+				.show();
+			$(document).triggerHandler("context_show.vakata");
+		},
+		hide	: function () {
+			$.vakata.context.vis = false;
+			$.vakata.context.cnt.attr("class","").hide();
+			$(document).triggerHandler("context_hide.vakata");
+		},
+		parse	: function (s, is_callback) {
+			if(!s) { return false; }
+			var str = "",
+				tmp = false,
+				was_sep = true;
+			if(!is_callback) { $.vakata.context.func = {}; }
+			str += "<ul>";
+			$.each(s, function (i, val) {
+				if(!val) { return true; }
+				$.vakata.context.func[i] = val.action;
+				if(!was_sep && val.separator_before) {
+					str += "<li class='vakata-separator vakata-separator-before'></li>";
+				}
+				was_sep = false;
+				str += "<li class='" + (val._class || "") + (val._disabled ? " jstree-contextmenu-disabled " : "") + "'><ins ";
+				if(val.icon && val.icon.indexOf("/") === -1) { str += " class='" + val.icon + "' "; }
+				if(val.icon && val.icon.indexOf("/") !== -1) { str += " style='background:url(" + val.icon + ") center center no-repeat;' "; }
+				str += ">&#160;</ins><a href='#' rel='" + i + "'>";
+				if(val.submenu) {
+					str += "<span style='float:right;'>&raquo;</span>";
+				}
+				str += val.label + "</a>";
+				if(val.submenu) {
+					tmp = $.vakata.context.parse(val.submenu, true);
+					if(tmp) { str += tmp; }
+				}
+				str += "</li>";
+				if(val.separator_after) {
+					str += "<li class='vakata-separator vakata-separator-after'></li>";
+					was_sep = true;
+				}
+			});
+			str = str.replace(/<li class\='vakata-separator vakata-separator-after'\><\/li\>$/,"");
+			str += "</ul>";
+			return str.length > 10 ? str : false;
+		},
+		exec	: function (i) {
+			if($.isFunction($.vakata.context.func[i])) {
+				$.vakata.context.func[i].call($.vakata.context.data, $.vakata.context.par);
+				return true;
+			}
+			else { return false; }
+		}
+	};
+	$(function () {
+		var css_string = '' + 
+			'#vakata-contextmenu { display:none; position:absolute; margin:0; padding:0; min-width:180px; background:#ebebeb; border:1px solid silver; z-index:10000; *width:180px; } ' + 
+			'#vakata-contextmenu ul { min-width:180px; *width:180px; } ' + 
+			'#vakata-contextmenu ul, #vakata-contextmenu li { margin:0; padding:0; list-style-type:none; display:block; } ' + 
+			'#vakata-contextmenu li { line-height:20px; min-height:20px; position:relative; padding:0px; } ' + 
+			'#vakata-contextmenu li a { padding:1px 6px; line-height:17px; display:block; text-decoration:none; margin:1px 1px 0 1px; } ' + 
+			'#vakata-contextmenu li ins { float:left; width:16px; height:16px; text-decoration:none; margin-right:2px; } ' + 
+			'#vakata-contextmenu li a:hover, #vakata-contextmenu li.vakata-hover > a { background:gray; color:white; } ' + 
+			'#vakata-contextmenu li ul { display:none; position:absolute; top:-2px; left:100%; background:#ebebeb; border:1px solid gray; } ' + 
+			'#vakata-contextmenu .right { right:100%; left:auto; } ' + 
+			'#vakata-contextmenu .bottom { bottom:-1px; top:auto; } ' + 
+			'#vakata-contextmenu li.vakata-separator { min-height:0; height:1px; line-height:1px; font-size:1px; overflow:hidden; margin:0 2px; background:silver; /* border-top:1px solid #fefefe; */ padding:0; } ';
+		$.vakata.css.add_sheet({ str : css_string });
+		$.vakata.context.cnt
+			.delegate("a","click", function (e) { e.preventDefault(); })
+			.delegate("a","mouseup", function (e) {
+				if(!$(this).parent().hasClass("jstree-contextmenu-disabled") && $.vakata.context.exec($(this).attr("rel"))) {
+					$.vakata.context.hide();
+				}
+				else { $(this).blur(); }
+			})
+			.delegate("a","mouseover", function () {
+				$.vakata.context.cnt.find(".vakata-hover").removeClass("vakata-hover");
+			})
+			.appendTo("body");
+		$(document).bind("mousedown", function (e) { if($.vakata.context.vis && !$.contains($.vakata.context.cnt[0], e.target)) { $.vakata.context.hide(); } });
+		if(typeof $.hotkeys !== "undefined") {
+			$(document)
+				.bind("keydown", "up", function (e) { 
+					if($.vakata.context.vis) { 
+						var o = $.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").prevAll("li:not(.vakata-separator)").first();
+						if(!o.length) { o = $.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").last(); }
+						o.addClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "down", function (e) { 
+					if($.vakata.context.vis) { 
+						var o = $.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").nextAll("li:not(.vakata-separator)").first();
+						if(!o.length) { o = $.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").first(); }
+						o.addClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "right", function (e) { 
+					if($.vakata.context.vis) { 
+						$.vakata.context.cnt.find(".vakata-hover").children("ul").show().children("li:not(.vakata-separator)").removeClass("vakata-hover").first().addClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "left", function (e) { 
+					if($.vakata.context.vis) { 
+						$.vakata.context.cnt.find(".vakata-hover").children("ul").hide().children(".vakata-separator").removeClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "esc", function (e) { 
+					$.vakata.context.hide(); 
+					e.preventDefault();
+				})
+				.bind("keydown", "space", function (e) { 
+					$.vakata.context.cnt.find(".vakata-hover").last().children("a").click();
+					e.preventDefault();
+				});
+		}
+	});
+
+	$.jstree.plugin("contextmenu", {
+		__init : function () {
+			this.get_container()
+				.delegate("a", "contextmenu.jstree", $.proxy(function (e) {
+						e.preventDefault();
+						this.show_contextmenu(e.currentTarget, e.pageX, e.pageY);
+					}, this))
+				.bind("destroy.jstree", $.proxy(function () {
+						if(this.data.contextmenu) {
+							$.vakata.context.hide();
+						}
+					}, this));
+			$(document).bind("context_hide.vakata", $.proxy(function () { this.data.contextmenu = false; }, this));
+		},
+		defaults : { 
+			select_node : false, // requires UI plugin
+			show_at_node : true,
+			items : { // Could be a function that should return an object like this one
+				"create" : {
+					"separator_before"	: false,
+					"separator_after"	: true,
+					"label"				: "Create",
+					"action"			: function (obj) { this.create(obj); }
+				},
+				"rename" : {
+					"separator_before"	: false,
+					"separator_after"	: false,
+					"label"				: "Rename",
+					"action"			: function (obj) { this.rename(obj); }
+				},
+				"remove" : {
+					"separator_before"	: false,
+					"icon"				: false,
+					"separator_after"	: false,
+					"label"				: "Delete",
+					"action"			: function (obj) { this.remove(obj); }
+				},
+				"ccp" : {
+					"separator_before"	: true,
+					"icon"				: false,
+					"separator_after"	: false,
+					"label"				: "Edit",
+					"action"			: false,
+					"submenu" : { 
+						"cut" : {
+							"separator_before"	: false,
+							"separator_after"	: false,
+							"label"				: "Cut",
+							"action"			: function (obj) { this.cut(obj); }
+						},
+						"copy" : {
+							"separator_before"	: false,
+							"icon"				: false,
+							"separator_after"	: false,
+							"label"				: "Copy",
+							"action"			: function (obj) { this.copy(obj); }
+						},
+						"paste" : {
+							"separator_before"	: false,
+							"icon"				: false,
+							"separator_after"	: false,
+							"label"				: "Paste",
+							"action"			: function (obj) { this.paste(obj); }
+						}
+					}
+				}
+			}
+		},
+		_fn : {
+			show_contextmenu : function (obj, x, y) {
+				obj = this._get_node(obj);
+				var s = this.get_settings().contextmenu,
+					a = obj.children("a:visible:eq(0)"),
+					o = false;
+				if(s.select_node && this.data.ui && !this.is_selected(obj)) {
+					this.deselect_all();
+					this.select_node(obj, true);
+				}
+				if(s.show_at_node || typeof x === "undefined" || typeof y === "undefined") {
+					o = a.offset();
+					x = o.left;
+					y = o.top + this.data.core.li_height;
+				}
+				if($.isFunction(s.items)) { s.items = s.items.call(this, obj); }
+				this.data.contextmenu = true;
+				$.vakata.context.show(s.items, a, x, y, this, obj);
+				if(this.data.themes) { $.vakata.context.cnt.attr("class", "jstree-" + this.data.themes.theme + "-context"); }
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree types plugin 1.0
+ * Adds support types of nodes
+ * You can set an attribute on each li node, that represents its type.
+ * According to the type setting the node may get custom icon/validation rules
+ */
+(function ($) {
+	$.jstree.plugin("types", {
+		__init : function () {
+			var s = this._get_settings().types;
+			this.data.types.attach_to = [];
+			this.get_container()
+				.bind("init.jstree", $.proxy(function () { 
+						var types = s.types, 
+							attr  = s.type_attr, 
+							icons_css = "", 
+							_this = this;
+
+						$.each(types, function (i, tp) {
+							$.each(tp, function (k, v) { 
+								if(!/^(max_depth|max_children|icon|valid_children)$/.test(k)) { _this.data.types.attach_to.push(k); }
+							});
+							if(!tp.icon) { return true; }
+							if( tp.icon.image || tp.icon.position) {
+								if(i == "default")	{ icons_css += '.jstree-' + _this.get_index() + ' a > .jstree-icon { '; }
+								else				{ icons_css += '.jstree-' + _this.get_index() + ' li[' + attr + '=' + i + '] > a > .jstree-icon { '; }
+								if(tp.icon.image)	{ icons_css += ' background-image:url(' + tp.icon.image + '); '; }
+								if(tp.icon.position){ icons_css += ' background-position:' + tp.icon.position + '; '; }
+								else				{ icons_css += ' background-position:0 0; '; }
+								icons_css += '} ';
+							}
+						});
+						if(icons_css != "") { $.vakata.css.add_sheet({ 'str' : icons_css }); }
+					}, this))
+				.bind("before.jstree", $.proxy(function (e, data) { 
+						if($.inArray(data.func, this.data.types.attach_to) !== -1) {
+							var s = this._get_settings().types.types,
+								t = this._get_type(data.args[0]);
+							if(
+								( 
+									(s[t] && typeof s[t][data.func] !== "undefined") || 
+									(s["default"] && typeof s["default"][data.func] !== "undefined")
+								) && !this._check(data.func, data.args[0])
+							) {
+								e.stopImmediatePropagation();
+								return false;
+							}
+						}
+					}, this));
+		},
+		defaults : {
+			// defines maximum number of root nodes (-1 means unlimited, -2 means disable max_children checking)
+			max_children		: -1,
+			// defines the maximum depth of the tree (-1 means unlimited, -2 means disable max_depth checking)
+			max_depth			: -1,
+			// defines valid node types for the root nodes
+			valid_children		: "all",
+
+			// where is the type stores (the rel attribute of the LI element)
+			type_attr : "rel",
+			// a list of types
+			types : {
+				// the default type
+				"default" : {
+					"max_children"	: -1,
+					"max_depth"		: -1,
+					"valid_children": "all"
+
+					// Bound functions - you can bind any other function here (using boolean or function)
+					//"select_node"	: true,
+					//"open_node"	: true,
+					//"close_node"	: true,
+					//"create_node"	: true,
+					//"delete_node"	: true
+				}
+			}
+		},
+		_fn : {
+			_get_type : function (obj) {
+				obj = this._get_node(obj);
+				return (!obj || !obj.length) ? false : obj.attr(this._get_settings().types.type_attr) || "default";
+			},
+			set_type : function (str, obj) {
+				obj = this._get_node(obj);
+				return (!obj.length || !str) ? false : obj.attr(this._get_settings().types.type_attr, str);
+			},
+			_check : function (rule, obj, opts) {
+				var v = false, t = this._get_type(obj), d = 0, _this = this, s = this._get_settings().types;
+				if(obj === -1) { 
+					if(!!s[rule]) { v = s[rule]; }
+					else { return; }
+				}
+				else {
+					if(t === false) { return; }
+					if(!!s.types[t] && !!s.types[t][rule]) { v = s.types[t][rule]; }
+					else if(!!s.types["default"] && !!s.types["default"][rule]) { v = s.types["default"][rule]; }
+				}
+				if($.isFunction(v)) { v = v.call(this, obj); }
+				if(rule === "max_depth" && obj !== -1 && opts !== false && s.max_depth !== -2 && v !== 0) {
+					// also include the node itself - otherwise if root node it is not checked
+					this._get_node(obj).children("a:eq(0)").parentsUntil(".jstree","li").each(function (i) {
+						// check if current depth already exceeds global tree depth
+						if(s.max_depth !== -1 && s.max_depth - (i + 1) <= 0) { v = 0; return false; }
+						d = (i === 0) ? v : _this._check(rule, this, false);
+						// check if current node max depth is already matched or exceeded
+						if(d !== -1 && d - (i + 1) <= 0) { v = 0; return false; }
+						// otherwise - set the max depth to the current value minus current depth
+						if(d >= 0 && (d - (i + 1) < v || v < 0) ) { v = d - (i + 1); }
+						// if the global tree depth exists and it minus the nodes calculated so far is less than `v` or `v` is unlimited
+						if(s.max_depth >= 0 && (s.max_depth - (i + 1) < v || v < 0) ) { v = s.max_depth - (i + 1); }
+					});
+				}
+				return v;
+			},
+			check_move : function () {
+				if(!this.__call_old()) { return false; }
+				var m  = this._get_move(),
+					s  = m.rt._get_settings().types,
+					mc = m.rt._check("max_children", m.cr),
+					md = m.rt._check("max_depth", m.cr),
+					vc = m.rt._check("valid_children", m.cr),
+					ch = 0, d = 1, t;
+
+				if(vc === "none") { return false; } 
+				if($.isArray(vc) && m.ot && m.ot._get_type) {
+					m.o.each(function () {
+						if($.inArray(m.ot._get_type(this), vc) === -1) { d = false; return false; }
+					});
+					if(d === false) { return false; }
+				}
+				if(s.max_children !== -2 && mc !== -1) {
+					ch = m.cr === -1 ? this.get_container().children("> ul > li").not(m.o).length : m.cr.children("> ul > li").not(m.o).length;
+					if(ch + m.o.length > mc) { return false; }
+				}
+				if(s.max_depth !== -2 && md !== -1) {
+					d = 0;
+					if(md === 0) { return false; }
+					if(typeof m.o.d === "undefined") {
+						// TODO: deal with progressive rendering and async when checking max_depth (how to know the depth of the moved node)
+						t = m.o;
+						while(t.length > 0) {
+							t = t.find("> ul > li");
+							d ++;
+						}
+						m.o.d = d;
+					}
+					if(md - m.o.d < 0) { return false; }
+				}
+				return true;
+			},
+			create_node : function (obj, position, js, callback, is_loaded, skip_check) {
+				if(!skip_check && (is_loaded || this._is_loaded(obj))) {
+					var p  = (position && position.match(/^before|after$/i) && obj !== -1) ? this._get_parent(obj) : this._get_node(obj),
+						s  = this._get_settings().types,
+						mc = this._check("max_children", p),
+						md = this._check("max_depth", p),
+						vc = this._check("valid_children", p),
+						ch;
+					if(!js) { js = {}; }
+					if(vc === "none") { return false; } 
+					if($.isArray(vc)) {
+						if(!js.attr || !js.attr[s.type_attr]) { 
+							if(!js.attr) { js.attr = {}; }
+							js.attr[s.type_attr] = vc[0]; 
+						}
+						else {
+							if($.inArray(js.attr[s.type_attr], vc) === -1) { return false; }
+						}
+					}
+					if(s.max_children !== -2 && mc !== -1) {
+						ch = p === -1 ? this.get_container().children("> ul > li").length : p.children("> ul > li").length;
+						if(ch + 1 > mc) { return false; }
+					}
+					if(s.max_depth !== -2 && md !== -1 && (md - 1) < 0) { return false; }
+				}
+				return this.__call_old(true, obj, position, js, callback, is_loaded, skip_check);
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree HTML data 1.0
+ * The HTML data store. Datastores are build by replacing the `load_node` and `_is_loaded` functions.
+ */
+(function ($) {
+	$.jstree.plugin("html_data", {
+		__init : function () { 
+			// this used to use html() and clean the whitespace, but this way any attached data was lost
+			this.data.html_data.original_container_html = this.get_container().find(" > ul > li").clone(true);
+			// remove white space from LI node - otherwise nodes appear a bit to the right
+			this.data.html_data.original_container_html.find("li").andSelf().contents().filter(function() { return this.nodeType == 3; }).remove();
+		},
+		defaults : { 
+			data : false,
+			ajax : false,
+			correct_state : true
+		},
+		_fn : {
+			load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_html(obj, function () { _this.__callback({ "obj" : obj }); s_call.call(this); }, e_call); },
+			_is_loaded : function (obj) { 
+				obj = this._get_node(obj); 
+				return obj == -1 || !obj || !this._get_settings().html_data.ajax || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").size() > 0;
+			},
+			load_node_html : function (obj, s_call, e_call) {
+				var d,
+					s = this.get_settings().html_data,
+					error_func = function () {},
+					success_func = function () {};
+				obj = this._get_node(obj);
+				if(obj && obj !== -1) {
+					if(obj.data("jstree-is-loading")) { return; }
+					else { obj.data("jstree-is-loading",true); }
+				}
+				switch(!0) {
+					case (!s.data && !s.ajax):
+						if(!obj || obj == -1) {
+							this.get_container()
+								.children("ul").empty()
+								.append(this.data.html_data.original_container_html)
+								.find("li, a").filter(function () { return this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end()
+								.filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon");
+							this.clean_node();
+						}
+						if(s_call) { s_call.call(this); }
+						break;
+					case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
+						if(!obj || obj == -1) {
+							d = $(s.data);
+							if(!d.is("ul")) { d = $("<ul>").append(d); }
+							this.get_container()
+								.children("ul").empty().append(d.children())
+								.find("li, a").filter(function () { return this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end()
+								.filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon");
+							this.clean_node();
+						}
+						if(s_call) { s_call.call(this); }
+						break;
+					case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
+						obj = this._get_node(obj);
+						error_func = function (x, t, e) {
+							var ef = this.get_settings().html_data.ajax.error; 
+							if(ef) { ef.call(this, x, t, e); }
+							if(obj != -1 && obj.length) {
+								obj.children(".jstree-loading").removeClass("jstree-loading");
+								obj.data("jstree-is-loading",false);
+								if(t === "success" && s.correct_state) { obj.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"); }
+							}
+							else {
+								if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+							if(e_call) { e_call.call(this); }
+						};
+						success_func = function (d, t, x) {
+							var sf = this.get_settings().html_data.ajax.success; 
+							if(sf) { d = sf.call(this,d,t,x) || d; }
+							if(d == "") {
+								return error_func.call(this, x, t, "");
+							}
+							if(d) {
+								d = $(d);
+								if(!d.is("ul")) { d = $("<ul>").append(d); }
+								if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
+								else { obj.children(".jstree-loading").removeClass("jstree-loading"); obj.append(d).find("li, a").filter(function () { return this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.data("jstree-is-loading",false); }
+								this.clean_node(obj);
+								if(s_call) { s_call.call(this); }
+							}
+							else {
+								if(obj && obj !== -1) {
+									obj.children(".jstree-loading").removeClass("jstree-loading");
+									obj.data("jstree-is-loading",false);
+									if(s.correct_state) { 
+										obj.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"); 
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+								else {
+									if(s.correct_state) { 
+										this.get_container().children("ul").empty();
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+							}
+						};
+						s.ajax.context = this;
+						s.ajax.error = error_func;
+						s.ajax.success = success_func;
+						if(!s.ajax.dataType) { s.ajax.dataType = "html"; }
+						if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
+						if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
+						$.ajax(s.ajax);
+						break;
+				}
+			}
+		}
+	});
+	// include the HTML data plugin by default
+	$.jstree.defaults.plugins.push("html_data");
+})(jQuery);
+//*/
+
+/* 
+ * jsTree themeroller plugin 1.0
+ * Adds support for jQuery UI themes. Include this at the end of your plugins list, also make sure "themes" is not included.
+ */
+(function ($) {
+	$.jstree.plugin("themeroller", {
+		__init : function () {
+			var s = this._get_settings().themeroller;
+			this.get_container()
+				.addClass("ui-widget-content")
+				.delegate("a","mouseenter.jstree", function () {
+					$(this).addClass(s.item_h);
+				})
+				.delegate("a","mouseleave.jstree", function () {
+					$(this).removeClass(s.item_h);
+				})
+				.bind("open_node.jstree create_node.jstree", $.proxy(function (e, data) { 
+						this._themeroller(data.rslt.obj);
+					}, this))
+				.bind("loaded.jstree refresh.jstree", $.proxy(function (e) {
+						this._themeroller();
+					}, this))
+				.bind("close_node.jstree", $.proxy(function (e, data) {
+						data.rslt.obj.children("ins").removeClass(s.opened).addClass(s.closed);
+					}, this))
+				.bind("select_node.jstree", $.proxy(function (e, data) {
+						data.rslt.obj.children("a").addClass(s.item_a);
+					}, this))
+				.bind("deselect_node.jstree deselect_all.jstree", $.proxy(function (e, data) {
+						this.get_container()
+							.find("." + s.item_a).removeClass(s.item_a).end()
+							.find(".jstree-clicked").addClass(s.item_a);
+					}, this))
+				.bind("move_node.jstree", $.proxy(function (e, data) {
+						this._themeroller(data.rslt.o);
+					}, this));
+		},
+		__destroy : function () {
+			var s = this._get_settings().themeroller,
+				c = [ "ui-icon" ];
+			$.each(s, function (i, v) {
+				v = v.split(" ");
+				if(v.length) { c = c.concat(v); }
+			});
+			this.get_container()
+				.removeClass("ui-widget-content")
+				.find("." + c.join(", .")).removeClass(c.join(" "));
+		},
+		_fn : {
+			_themeroller : function (obj) {
+				var s = this._get_settings().themeroller;
+				obj = !obj || obj == -1 ? this.get_container() : this._get_node(obj).parent();
+				obj
+					.find("li.jstree-closed > ins.jstree-icon").removeClass(s.opened).addClass("ui-icon " + s.closed).end()
+					.find("li.jstree-open > ins.jstree-icon").removeClass(s.closed).addClass("ui-icon " + s.opened).end()
+					.find("a").addClass(s.item)
+						.children("ins.jstree-icon").addClass("ui-icon " + s.item_icon);
+			}
+		},
+		defaults : {
+			"opened" : "ui-icon-triangle-1-se",
+			"closed" : "ui-icon-triangle-1-e",
+			"item" : "ui-state-default",
+			"item_h" : "ui-state-hover",
+			"item_a" : "ui-state-active",
+			"item_icon" : "ui-icon-folder-collapsed"
+		}
+	});
+	$(function() {
+		var css_string = '.jstree .ui-icon { overflow:visible; } .jstree a { padding:0 2px; }';
+		$.vakata.css.add_sheet({ str : css_string });
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree unique plugin 1.0
+ * Forces different names amongst siblings (still a bit experimental)
+ * NOTE: does not check language versions (it will not be possible to have nodes with the same title, even in different languages)
+ */
+(function ($) {
+	$.jstree.plugin("unique", {
+		__init : function () {
+			this.get_container()
+				.bind("before.jstree", $.proxy(function (e, data) { 
+						var nms = [], res = true, p, t;
+						if(data.func == "move_node") {
+							// obj, ref, position, is_copy, is_prepared, skip_check
+							if(data.args[4] === true) {
+								if(data.args[0].o && data.args[0].o.length) {
+									data.args[0].o.children("a").each(function () { nms.push($(this).text().replace(/^\s+/g,"")); });
+									res = this._check_unique(nms, data.args[0].np.find("> ul > li").not(data.args[0].o));
+								}
+							}
+						}
+						if(data.func == "create_node") {
+							// obj, position, js, callback, is_loaded
+							if(data.args[4] || this._is_loaded(data.args[0])) {
+								p = this._get_node(data.args[0]);
+								if(data.args[1] && (data.args[1] === "before" || data.args[1] === "after")) {
+									p = this._get_parent(data.args[0]);
+									if(!p || p === -1) { p = this.get_container(); }
+								}
+								if(typeof data.args[2] === "string") { nms.push(data.args[2]); }
+								else if(!data.args[2] || !data.args[2].data) { nms.push(this._get_settings().core.strings.new_node); }
+								else { nms.push(data.args[2].data); }
+								res = this._check_unique(nms, p.find("> ul > li"));
+							}
+						}
+						if(data.func == "rename_node") {
+							// obj, val
+							nms.push(data.args[1]);
+							t = this._get_node(data.args[0]);
+							p = this._get_parent(t);
+							if(!p || p === -1) { p = this.get_container(); }
+							res = this._check_unique(nms, p.find("> ul > li").not(t));
+						}
+						if(!res) {
+							e.stopPropagation();
+							return false;
+						}
+					}, this));
+		},
+		_fn : { 
+			_check_unique : function (nms, p) {
+				var cnms = [];
+				p.children("a").each(function () { cnms.push($(this).text().replace(/^\s+/g,"")); });
+				if(!cnms.length || !nms.length) { return true; }
+				cnms = cnms.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",");
+				if((cnms.length + nms.length) != cnms.concat(nms).sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",").length) {
+					return false;
+				}
+				return true;
+			},
+			check_move : function () {
+				if(!this.__call_old()) { return false; }
+				var p = this._get_move(), nms = [];
+				if(p.o && p.o.length) {
+					p.o.children("a").each(function () { nms.push($(this).text().replace(/^\s+/g,"")); });
+					return this._check_unique(nms, p.np.find("> ul > li").not(p.o));
+				}
+				return true;
+			}
+		}
+	});
+})(jQuery);
+//*/
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/apple/style.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/apple/style.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/apple/style.css	(revision 1516)
@@ -0,0 +1,60 @@
+/*
+ * jsTree apple theme 1.0
+ * Supported features: dots/no-dots, icons/no-icons, focused, loading
+ * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
+ */
+
+.jstree-apple > ul { background:url("bg.jpg") left top repeat; }
+.jstree-apple li, 
+.jstree-apple ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
+.jstree-apple li { background-position:-90px 0; background-repeat:repeat-y;  }
+.jstree-apple li.jstree-last { background:transparent; }
+.jstree-apple .jstree-open > ins { background-position:-72px 0; }
+.jstree-apple .jstree-closed > ins { background-position:-54px 0; }
+.jstree-apple .jstree-leaf > ins { background-position:-36px 0; }
+
+.jstree-apple a { border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-shadow:1px 1px 1px white; }
+.jstree-apple .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 3px 0 1px; text-shadow:1px 1px 1px silver; }
+.jstree-apple .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 3px 0 1px; }
+.jstree-apple a .jstree-icon { background-position:-56px -20px; }
+.jstree-apple a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
+
+.jstree-apple.jstree-focused { background:white; }
+
+.jstree-apple .jstree-no-dots li, 
+.jstree-apple .jstree-no-dots .jstree-leaf > ins { background:transparent; }
+.jstree-apple .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
+.jstree-apple .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
+
+.jstree-apple .jstree-no-icons a .jstree-icon { display:none; }
+
+.jstree-apple .jstree-search { font-style:italic; }
+
+.jstree-apple .jstree-no-icons .jstree-checkbox { display:inline-block; }
+.jstree-apple .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
+.jstree-apple .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
+.jstree-apple .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
+.jstree-apple .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
+.jstree-apple .jstree-checked > a > .checkbox:hover { background-position:-38px -37px; }
+.jstree-apple .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
+.jstree-apple .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
+
+#vakata-dragged.jstree-apple ins { background:transparent !important; }
+#vakata-dragged.jstree-apple .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
+#vakata-dragged.jstree-apple .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
+#jstree-marker.jstree-apple { background:url("d.png") -41px -57px no-repeat !important; }
+
+.jstree-apple a.jstree-search { color:aqua; }
+
+#vakata-contextmenu.jstree-apple-context, 
+#vakata-contextmenu.jstree-apple-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
+#vakata-contextmenu.jstree-apple-context li { }
+#vakata-contextmenu.jstree-apple-context a { color:black; }
+#vakata-contextmenu.jstree-apple-context a:hover, 
+#vakata-contextmenu.jstree-apple-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
+#vakata-contextmenu.jstree-apple-context li.jstree-contextmenu-disabled a, 
+#vakata-contextmenu.jstree-apple-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
+#vakata-contextmenu.jstree-apple-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
+#vakata-contextmenu.jstree-apple-context li ul { margin-left:-4px; }
+
+/* TODO: IE6 support - the `>` selectors */
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/classic/style.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/classic/style.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/classic/style.css	(revision 1516)
@@ -0,0 +1,59 @@
+/*
+ * jsTree classic theme 1.0
+ * Supported features: dots/no-dots, icons/no-icons, focused, loading
+ * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
+ */
+
+.jstree-classic li, 
+.jstree-classic ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
+.jstree-classic li { background-position:-90px 0; background-repeat:repeat-y;  }
+.jstree-classic li.jstree-last { background:transparent; }
+.jstree-classic .jstree-open > ins { background-position:-72px 0; }
+.jstree-classic .jstree-closed > ins { background-position:-54px 0; }
+.jstree-classic .jstree-leaf > ins { background-position:-36px 0; }
+
+.jstree-classic .jstree-hovered { background:#e7f4f9; border:1px solid #e7f4f9; padding:0 2px 0 1px; }
+.jstree-classic .jstree-clicked { background:navy; border:1px solid navy; padding:0 2px 0 1px; color:white; }
+.jstree-classic a .jstree-icon { background-position:-56px -19px; }
+.jstree-classic .jstree-open > a .jstree-icon { background-position:-56px -36px; }
+.jstree-classic a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
+
+.jstree-classic.jstree-focused { background:white; }
+
+.jstree-classic .jstree-no-dots li, 
+.jstree-classic .jstree-no-dots .jstree-leaf > ins { background:transparent; }
+.jstree-classic .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
+.jstree-classic .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
+
+.jstree-classic .jstree-no-icons a .jstree-icon { display:none; }
+
+.jstree-classic .jstree-search { font-style:italic; }
+
+.jstree-classic .jstree-no-icons .jstree-checkbox { display:inline-block; }
+.jstree-classic .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
+.jstree-classic .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
+.jstree-classic .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
+.jstree-classic .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
+.jstree-classic .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; }
+.jstree-classic .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
+.jstree-classic .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
+
+#vakata-dragged.jstree-classic ins { background:transparent !important; }
+#vakata-dragged.jstree-classic .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
+#vakata-dragged.jstree-classic .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
+#jstree-marker.jstree-classic { background:url("d.png") -41px -57px no-repeat !important; }
+
+.jstree-classic a.jstree-search { color:aqua; }
+
+#vakata-contextmenu.jstree-classic-context, 
+#vakata-contextmenu.jstree-classic-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
+#vakata-contextmenu.jstree-classic-context li { }
+#vakata-contextmenu.jstree-classic-context a { color:black; }
+#vakata-contextmenu.jstree-classic-context a:hover, 
+#vakata-contextmenu.jstree-classic-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
+#vakata-contextmenu.jstree-classic-context li.jstree-contextmenu-disabled a, 
+#vakata-contextmenu.jstree-classic-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
+#vakata-contextmenu.jstree-classic-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
+#vakata-contextmenu.jstree-classic-context li ul { margin-left:-4px; }
+
+/* TODO: IE6 support - the `>` selectors */
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/default-rtl/style.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/default-rtl/style.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/default-rtl/style.css	(revision 1516)
@@ -0,0 +1,83 @@
+/*
+ * jsTree default-rtl theme 1.0
+ * Supported features: dots/no-dots, icons/no-icons, focused, loading
+ * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
+ */
+
+.jstree-default-rtl li, 
+.jstree-default-rtl ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
+.jstree-default-rtl li { background-position:-90px 0; background-repeat:repeat-y; }
+.jstree-default-rtl li.jstree-last { background:transparent; }
+.jstree-default-rtl .jstree-open > ins { background-position:-72px 0; }
+.jstree-default-rtl .jstree-closed > ins { background-position:-54px 0; }
+.jstree-default-rtl .jstree-leaf > ins { background-position:-36px 0; }
+
+.jstree-default-rtl .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 2px 0 1px; }
+.jstree-default-rtl .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 2px 0 1px; }
+.jstree-default-rtl a .jstree-icon { background-position:-56px -19px; }
+.jstree-default-rtl a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
+
+.jstree-default-rtl.jstree-focused { background:#ffffee; }
+
+.jstree-default-rtl .jstree-no-dots li, 
+.jstree-default-rtl .jstree-no-dots .jstree-leaf > ins { background:transparent; }
+.jstree-default-rtl .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
+.jstree-default-rtl .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
+
+.jstree-default-rtl .jstree-no-icons a .jstree-icon { display:none; }
+
+.jstree-default-rtl .jstree-search { font-style:italic; }
+
+.jstree-default-rtl .jstree-no-icons .jstree-checkbox { display:inline-block; }
+.jstree-default-rtl .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
+.jstree-default-rtl .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
+.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
+.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
+.jstree-default-rtl .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; }
+.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
+.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
+
+#vakata-dragged.jstree-default-rtl ins { background:transparent !important; }
+#vakata-dragged.jstree-default-rtl .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
+#vakata-dragged.jstree-default-rtl .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
+#jstree-marker.jstree-default-rtl { background:url("d.png") -41px -57px no-repeat !important; }
+
+.jstree-default-rtl a.jstree-search { color:aqua; }
+
+#vakata-contextmenu.jstree-default-rtl-context, 
+#vakata-contextmenu.jstree-default-rtl-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
+#vakata-contextmenu.jstree-default-rtl-context li { }
+#vakata-contextmenu.jstree-default-rtl-context a { color:black; }
+#vakata-contextmenu.jstree-default-rtl-context a:hover, 
+#vakata-contextmenu.jstree-default-rtl-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
+#vakata-contextmenu.jstree-default-rtl-context li.jstree-contextmenu-disabled a, 
+#vakata-contextmenu.jstree-default-rtl-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
+#vakata-contextmenu.jstree-default-rtl-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
+#vakata-contextmenu.jstree-default-rtl-context li ul { margin-left:-4px; }
+
+/* IE6 BEGIN */
+.jstree-default-rtl li, 
+.jstree-default-rtl ins,
+#vakata-dragged.jstree-default-rtl .jstree-invalid, 
+#vakata-dragged.jstree-default-rtl .jstree-ok, 
+#jstree-marker.jstree-default-rtl { _background-image:url("d.gif"); }
+.jstree-default-rtl .jstree-open ins { _background-position:-72px 0; }
+.jstree-default-rtl .jstree-closed ins { _background-position:-54px 0; }
+.jstree-default-rtl .jstree-leaf ins { _background-position:-36px 0; }
+.jstree-default-rtl a ins.jstree-icon { _background-position:-56px -19px; }
+#vakata-contextmenu.jstree-default-rtl-context ins { _display:none; }
+#vakata-contextmenu.jstree-default-rtl-context li { _zoom:1; }
+.jstree-default-rtl .jstree-undetermined a .jstree-checkbox { _background-position:-18px -19px; }
+.jstree-default-rtl .jstree-checked a .jstree-checkbox { _background-position:-36px -19px; }
+.jstree-default-rtl .jstree-unchecked a .jstree-checkbox { _background-position:0px -19px; }
+/* IE6 END */
+
+/* RTL part */
+.jstree-default-rtl .jstree-hovered, .jstree-default-rtl .jstree-clicked { padding:0 1px 0 2px; }
+.jstree-default-rtl li { background-image:url("dots.gif"); background-position: 100% 0px; }
+.jstree-default-rtl .jstree-checked > a > .jstree-checkbox { background-position:-36px -19px; margin-left:2px; }
+.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox { background-position:0px -19px; margin-left:2px; }
+.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox { background-position:-18px -19px; margin-left:2px; }
+.jstree-default-rtl .jstree-checked > a > .jstree-checkbox:hover { background-position:-36px -37px; }
+.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox:hover { background-position:0px -37px; }
+.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-18px -37px; }
Index: MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/default/style.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/default/style.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/jquery/jsTree.v.1.0rc2/themes/default/style.css	(revision 1516)
@@ -0,0 +1,73 @@
+/*
+ * jsTree default theme 1.0
+ * Supported features: dots/no-dots, icons/no-icons, focused, loading
+ * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
+ */
+
+.jstree-default li, 
+.jstree-default ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
+.jstree-default li { background-position:-90px 0; background-repeat:repeat-y; }
+.jstree-default li.jstree-last { background:transparent; }
+.jstree-default .jstree-open > ins { background-position:-72px 0; }
+.jstree-default .jstree-closed > ins { background-position:-54px 0; }
+.jstree-default .jstree-leaf > ins { background-position:-36px 0; }
+
+.jstree-default .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 2px 0 1px; }
+.jstree-default .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 2px 0 1px; }
+.jstree-default a .jstree-icon { background-position:-56px -19px; }
+.jstree-default a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
+
+.jstree-default.jstree-focused { background:#ffffee; }
+
+.jstree-default .jstree-no-dots li, 
+.jstree-default .jstree-no-dots .jstree-leaf > ins { background:transparent; }
+.jstree-default .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
+.jstree-default .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
+
+.jstree-default .jstree-no-icons a .jstree-icon { display:none; }
+
+.jstree-default .jstree-search { font-style:italic; }
+
+.jstree-default .jstree-no-icons .jstree-checkbox { display:inline-block; }
+.jstree-default .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
+.jstree-default .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
+.jstree-default .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
+.jstree-default .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
+.jstree-default .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; }
+.jstree-default .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
+.jstree-default .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
+
+#vakata-dragged.jstree-default ins { background:transparent !important; }
+#vakata-dragged.jstree-default .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; }
+#vakata-dragged.jstree-default .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; }
+#jstree-marker.jstree-default { background:url("d.png") -41px -57px no-repeat !important; }
+
+.jstree-default a.jstree-search { color:aqua; }
+
+#vakata-contextmenu.jstree-default-context, 
+#vakata-contextmenu.jstree-default-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; }
+#vakata-contextmenu.jstree-default-context li { }
+#vakata-contextmenu.jstree-default-context a { color:black; }
+#vakata-contextmenu.jstree-default-context a:hover, 
+#vakata-contextmenu.jstree-default-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
+#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a, 
+#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; }
+#vakata-contextmenu.jstree-default-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
+#vakata-contextmenu.jstree-default-context li ul { margin-left:-4px; }
+
+/* IE6 BEGIN */
+.jstree-default li, 
+.jstree-default ins,
+#vakata-dragged.jstree-default .jstree-invalid, 
+#vakata-dragged.jstree-default .jstree-ok, 
+#jstree-marker.jstree-default { _background-image:url("d.gif"); }
+.jstree-default .jstree-open ins { _background-position:-72px 0; }
+.jstree-default .jstree-closed ins { _background-position:-54px 0; }
+.jstree-default .jstree-leaf ins { _background-position:-36px 0; }
+.jstree-default a ins.jstree-icon { _background-position:-56px -19px; }
+#vakata-contextmenu.jstree-default-context ins { _display:none; }
+#vakata-contextmenu.jstree-default-context li { _zoom:1; }
+.jstree-default .jstree-undetermined a .jstree-checkbox { _background-position:-20px -19px; }
+.jstree-default .jstree-checked a .jstree-checkbox { _background-position:-38px -19px; }
+.jstree-default .jstree-unchecked a .jstree-checkbox { _background-position:-2px -19px; }
+/* IE6 END */
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_helpers.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_helpers.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_helpers.js	(revision 1516)
@@ -0,0 +1,172 @@
+/**
+ * @fileOverview The file mainly should contain javascript assistance functions, which are not related directly to UI.
+ * Actualy includes string additional functions,  Url decoding , datetime conversions
+ * @author 
+ * @version 
+ */
+
+// url params reading
+var params;
+function getUrlVars(url)
+{
+	if (url == undefined){
+		url = window.location.href;
+	}
+    var vars = [], hash;
+    var hashes = url.slice(url.indexOf('?') + 1).split('&');
+    for(var i = 0; i < hashes.length; i++)
+    {
+        hash = hashes[i].split('=');
+        vars.push(hash[0]);
+        vars[hash[0]] = hash[1];
+    }
+    return vars;
+    //return getUrlVars(window.location.href);
+};
+
+
+
+if(typeof String.prototype.trim !== 'function') {   String.prototype.trim = function() {     return this.replace(/^\s+|\s+$/g, '');    } }
+
+
+String.prototype.beginsWith = function(t, i) { if (i==false) { return 
+	 (t == this.substring(0, t.length)); } else { return (t.toLowerCase() 
+	 == this.substring(0, t.length).toLowerCase()); } } ;
+
+
+String.prototype.endsWith = function(t, i) { if (i==false) { return (t 
+	 == this.substring(this.length - t.length)); } else { return 
+	 (t.toLowerCase() == this.substring(this.length - 
+	 t.length).toLowerCase()); } } ;
+
+
+var Url = {
+		 
+			// public method for url encoding
+		encode : function (string) {
+			return escape(this._utf8_encode(string));
+		},
+	 
+		// public method for url decoding
+		decode : function (string) {
+			return this._utf8_decode(unescape(string));
+		},
+	 
+		// private method for UTF-8 encoding
+		_utf8_encode : function (string) {
+			string = string.replace(/\r\n/g,"\n");
+			var utftext = "";
+	 
+			for (var n = 0; n < string.length; n++) {
+	 
+				var c = string.charCodeAt(n);
+	 
+				if (c < 128) {
+					utftext += String.fromCharCode(c);
+				}
+				else if((c > 127) && (c < 2048)) {
+					utftext += String.fromCharCode((c >> 6) | 192);
+					utftext += String.fromCharCode((c & 63) | 128);
+				}
+				else {
+					utftext += String.fromCharCode((c >> 12) | 224);
+					utftext += String.fromCharCode(((c >> 6) & 63) | 128);
+					utftext += String.fromCharCode((c & 63) | 128);
+				}
+	 
+			}
+	 
+			return utftext;
+		},
+	 
+		// private method for UTF-8 decoding
+		_utf8_decode : function (utftext) {
+			var string = "";
+			var i = 0;
+			var c = c1 = c2 = 0;
+	 
+			while ( i < utftext.length ) {
+	 
+				c = utftext.charCodeAt(i);
+	 
+				if (c < 128) {
+					string += String.fromCharCode(c);
+					i++;
+				}
+				else if((c > 191) && (c < 224)) {
+					c2 = utftext.charCodeAt(i+1);
+					string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
+					i += 2;
+				}
+				else {
+					c2 = utftext.charCodeAt(i+1);
+					c3 = utftext.charCodeAt(i+2);
+					string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
+					i += 3;
+				}
+	 
+			}
+	 
+			return string;
+		}
+	 
+};
+
+function dateFormat(dt){
+	
+	var str = "";
+	var month = dt.getMonth() + 1;
+	if (month < 10){
+		month = "0" + month			
+	}
+	var day = dt.getDay();
+	if (day < 10){
+		day = "0" + day;
+	}
+	var hours = dt.getHours();
+	if (hours < 10) {
+		hours = "0" + hours;
+	}
+	var minute = dt.getMinutes();
+	if (minute < 10) {
+		minute = "0" + hours;
+	}
+	var second = dt.getSeconds();
+	if (second < 10) {
+		second = "0" + second;
+	}
+	str = dt.getFullYear() + "-" + month + "-" + day + " " + hours + ":" + minute + ":" + second;
+	
+	return str;
+}
+
+function link(action,format,params) {
+	var l = actions[action].base_uri + format;
+
+	// default param is q
+	if (params){
+		if ( ! $.isArray(params)) {
+			l += '/' + params;
+		} else {
+			l += '?' + $.param(params);
+		}
+	}
+	notifyUser("l:"+ l,'debug');
+	return l;
+}
+
+function CloneObject(inObj) {
+	for (i in inObj) {
+		this[i] = inObj[i];
+	}
+}// Usage:x = new CloneObject(obj);
+
+function findPos(obj) {
+	var curleft = obj.offsetLeft || 0;
+	var curtop = obj.offsetTop || 0;
+	while (obj = obj.offsetParent) {
+		curleft += obj.offsetLeft;
+		curtop += obj.offsetTop;
+	}
+	return {x:curleft,y:curtop};
+}
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_model.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_model.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_model.js	(revision 1516)
@@ -0,0 +1,1315 @@
+ /**
+ * @fileOverview  This file provides basic client-side model of the Query-object. <code>Query</code> construction, 
+ * manipulating and <code>queryset</code> model functionality. 
+ *
+ * @author 
+ * @version 
+ */
+
+var page_record_count = 10;
+var formatquerystring_len = 25;
+//var workspace;
+
+// json for user and server data
+function Workspace(){
+	user_json = undefined;
+	server_json = undefined;
+};
+
+Workspace.prototype.getTypedElement = function(type, elementtype, id){
+	var json; 
+	if (type == 'server'){
+		json = this.server_json;
+	} else {
+		json = this.user_json;
+	}
+	switch(elementtype){
+	case 'queryset':
+		return json["WorkspaceProfile"].Querysets;
+	case 'bookmarkset':
+		return json["WorkspaceProfile"].Bookmarksets;
+	case 'query':
+		return  json["WorkspaceProfile"]["Querysets"][id]["Queries"];
+	case 'bookmark':
+		return json["WorkspaceProfile"]["Bookmarksets"][id]["Bookmarks"];
+	case 'customtermset':
+		return json["WorkspaceProfile"].CustomTermsets;
+	}
+
+};
+
+Workspace.prototype.setTypedElement = function(type, id,data){
+	switch(type){
+	case 'queryset':
+		if (data == "[{}]"){
+			this.user_json["WorkspaceProfile"].Querysets = [{}];
+		} else {
+			this.user_json["WorkspaceProfile"].Querysets = data;
+		}
+		break;
+	case 'bookmarkset':
+		if (data == "[{}]"){
+			this.user_json["WorkspaceProfile"].Bookmarksets = [{}];
+		} else {
+			this.user_json["WorkspaceProfile"].Bookmarksets = data;
+		}
+		break;
+	case 'query':
+		if (data == "[{}]"){
+			workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"] = [{}];
+		} else {
+			workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"] = data;
+		}
+		break;
+	case 'bookmark':
+		if (data == "[{}]"){
+			workspace.user_json["WorkspaceProfile"]["Bookmarksets"][id]["Bookmarks"] = [{}];
+		} else {
+			workspace.user_json["WorkspaceProfile"]["Bookmarksets"][id]["Bookmarks"] = data;
+		}
+		break;
+	case 'customtermset':
+		if (data == "[{}]"){
+			this.user_json["WorkspaceProfile"].CustomTermsets = [{}];
+		} else {
+			this.user_json["WorkspaceProfile"].CustomTermsets = data;
+		}
+		break;
+	}
+
+};
+
+Workspace.prototype.addelement = function(type, json, id){
+	var elems = this.getTypedElement('user', type, id);
+	var iq = 0;
+	
+	if (elems == "null"){
+		this.setTypedElement(type,id, "[{}]");
+		elems = this.getTypedElement('user', type, id);
+	} else {
+		iq = elems.length;
+	}
+	if (json == undefined){
+		var str_time = dateFormat(new Date());//dt.toString("yyyy-MM-dd HH:mm:ss");
+		var name;
+		if (type == "bookmarkset"){
+			name = "new_bookmarkset";
+			json  = {"name":name, "id":0, "vcrid":0, "created":str_time , "Bookmarks" : "null"};
+		} 
+		if (type == "queryset"){
+			name = "new_queryset";
+			json  = {"name":name, "id":0, "vcrid":0, "created":str_time , "Queries" : "null"};
+		}
+	}
+	elems[iq] = json;
+
+	return json;
+	//this.user_json["WorkspaceProfile"]["Querysets"][id] = {"name":name, "id":0, "created":str_time , "Queries" : "null"};
+	
+};
+Workspace.prototype.getRepositoryType = function(repository){
+	var reptype = "";
+	$.each(workspace.server_json["WorkspaceProfile"]["Repositories"], function(i,item){
+		if (item.name==repository){
+			reptype=item.type;
+		}
+	});
+	return reptype;
+};
+
+Workspace.prototype.getOption = function(opt_key){
+	var value = "";
+	
+	value = workspace.server_json["WorkspaceProfile"]["Options"][opt_key];
+	
+	return value;
+}
+
+Workspace.prototype.removeelement = function(type, id1, id2){
+	var set = this.getTypedElement('user', type,id2);
+	var size = set.length;
+	for (var i=id1;i<size-1;i++){
+		set[i] = set[i+1];
+	}
+	delete set[size-1];
+	set.length = size-1;
+	// set null string , if 0 querysets
+	if (size == 1) {
+		this.setTypedElement(type,id2,"null");
+	}
+};
+
+Workspace.prototype.getCustomTermsets = function(){
+	var json;
+	json = this.user_json["WorkspaceProfile"]["CustomTermsets"];
+	return json;
+};
+Workspace.prototype.save = function(type){
+	var JSONText;
+
+	JSONText = JSON.stringify(this.user_json["WorkspaceProfile"]);
+	$.post("/MDService2/workspaceprofilesave/" + type + "/",{"data":JSONText},  function(data) {
+	});
+
+};
+Workspace.prototype.savequery = function(json, qsid, query){
+	var JSONText;
+	var type = "user";
+	var qdata = "/";// + querysetid;
+	JSONText = JSON.stringify(json);
+	if (query.bookmark == 0){
+		qdata = qdata + this.getTypedElement(type, 'queryset')[qsid]["id"];
+	} else {
+		qdata = qdata + this.getTypedElement(type, 'bookmarkset')[qsid]["id"];
+	}
+
+	$.post("/MDService2/workspaceprofilesave/" + type + qdata,{"data":JSONText},  function(data) {
+		if (json.id == 0){
+			json.id = $(data).text();
+			query.id = $(data).text();
+			if (query.bookmark == 0){
+				workspace.addelement("query", json, qsid);
+				appendQueryUI(json,qsid, $('#userqueries'));
+			} else {
+				workspace.addelement("bookmark", json, qsid);
+				appendBookmarkUI(json,qsid, $('#bookmarks'));
+			}
+		} 
+	});
+};
+Workspace.prototype.savequeryset = function(json, bookmark){
+	var JSONText;
+	var type = "user";
+	JSONText = JSON.stringify(json);
+	
+	$.post("/MDService2/workspaceprofilesave/" + type,{"data":JSONText},  function(data) {
+		if (json.id == 0){
+			json.id = $(data).text();
+			// todo appendQueryset
+			if (bookmark == 0){
+				loadQuerysets(type);
+			} else {
+				loadBookmarksets();
+			}
+		} 
+	});
+};
+
+function Collection(index, name){
+	this.index = index;
+	this.name = name;
+};
+//var collections  = [];
+
+/**
+Creates a new Query
+@class Represents a Query. 
+*/ 
+function Query(collection, columns, query , squery) {
+	this.id = 0;
+	this.collection = collection;   // []
+	this.columns = columns;         // string
+	this.query = query;	         //sctext
+	this.squery = squery;
+	this.listid = "";
+	this.container = {};
+	this.bookmark = 0;
+	// page
+	this.startItem = 1;
+	this.maximumItems = parseInt(this.startItem) + page_record_count - 1;
+	
+	// repository
+	this.repository = 1;
+	//this.reptype = 
+	this.options = null;
+	this.time_created = null;
+	
+	this.format = 'htmltable';
+	this.columns_widget = null;
+	
+	//vcr
+	this.vcrid = 0;
+	
+	//pazpar
+	this.pz2 = new md_pz2( { "onshow": this.pazpar2show,
+        "showtime": 500,            //each timer (show, stat, term, bytarget) can be specified this way
+        "queryobject": this
+        //"repository": q.repository
+        //"pazpar2path": pazpar2path,
+        //"oninit": my_oninit,
+        //"onstat": my_onstat,
+        //"onterm": my_onterm,
+        //"termlist": "xtargets,subject,author",
+        //"onbytarget": my_onbytarget,
+        //"onrecord": my_onrecord 
+        } );
+};
+Query.prototype.pazpar2show = function(data, activeClients){
+	//this.container.find('.result').html(data);
+	
+	
+	var res = $(this.queryobject.container).find('.result').html("");
+	$(res).append(data);
+	//res.append('<ul></ul>');
+	/*
+	$.each(data.hits,function(){
+		//$(res.children('ul')[res.length]).append('<li>'+this+'</li>');
+		res.append(this);
+	});
+	*/	
+	
+	var result_header = $(res).children('.result-header');
+	
+	var q_header;
+	q_header = $(res).parent().find('.query_header');
+	q_header.children('.result-header').remove();
+	
+	q_header.append(result_header);				
+ 	addDetailFunctionality(q_header, this);
+ 	
+ 	
+	//if (Number( $(data).find(".activeclients").text() ) == 0) {
+	if (activeClients == 0){
+		// update link-hrefs
+		var qid = $(res).closest('.query_wrapper').attr("id");
+		//notifyUser("result-loaded ID:" + qid,'debug');
+		
+		var q = queryset.getQuery(qid);
+		$('#' + qid ).find(".cmd_link").attr("href", q.link("fullpage"));
+		notifyUser("result-loaded",'debug');
+		
+		var get = $(res).parent().find('.cmd_get');				
+
+		get.removeClass('cmd_get');
+		get.addClass('cmd_up');
+	}
+};
+Query.prototype.load  = function(json) {
+	
+	var columns_text = "";
+	if (json.columns != "null"){
+		$.each(json.columns,function(i,item){
+			columns_text = columns_text + "," + item;
+		});
+		if (columns_text.length > 1) {
+			columns_text = columns_text.substring(1);	
+		}
+	}
+	this.columns = columns_text;
+	
+	var collection = [];
+	if (json.collections != "null"){
+		$.each(json.collections,function(i,item){
+			var coll = new Collection(item.index, item.name);
+			collection[i] = coll;
+		});
+	}
+	this.collection = collection;
+	if (json["querystring"] == "[NULL]"){
+		this.query = null;
+	} else {
+		this.query = json["querystring"];	
+	}
+	if (json["squerystring"] == "[NULL]"){
+		this.squery = null;
+	} else {
+		this.squery = json["squerystring"];	
+	}
+	this.columns = columns_text;
+	
+	var options_text = "";
+	if (json.options == undefined) {
+		this.options = null;
+	} else {
+		if (json.options != "null"){
+			var opts = json.options.split(',');
+			$.each(opts,function(i,item){
+				options_text = options_text + "," + item;
+			});
+			if (options_text.length > 1) {
+				options_text = options_text.substring(1);	
+			}
+			this.options = options_text;
+		} else {
+			this.options = null;
+		}
+	}
+	
+	if (json.time == undefined){
+		this.time_created = null;
+	} else {
+		this.time_created = json.time;
+	}
+	this.id = json.id;
+	this.vcrid = json.vcrid;
+};
+Query.prototype.save = function(){
+	var qsid;
+	var jsonq = this.toJSON();
+
+	if (this.bookmark == 0){
+		qsid = parseInt($("#qts_select option:selected").val());
+	} else {
+		qsid = parseInt($("#bts_select option:selected").val());
+	}
+	workspace.savequery(jsonq, qsid, this);
+	
+	/*
+	if (this.bookmark == 0){
+		qsid = parseInt($("#qts_select option:selected").val());
+		//qsjson = workspace.getQuerysets("user")[qsid];
+		if (this.id == 0){
+			workspace.addelement("query",jsonq, qsid);//qsjson);
+			workspace.savequery(jsonq, qsid, this);
+		} else {
+			workspace.savequery(jsonq, qsid, this);
+		}
+	} else {
+		qsid = parseInt($("#bts_select option:selected").val());
+		//qsjson = workspace.getBookmarksets()[qsid];
+		if (this.id == 0){
+			workspace.addelement("bookmark", jsonq, qsid);//qsjson);
+			workspace.savequery(jsonq, qsid,this);
+		} else {
+			workspace.savequery(jsonq, qsid, this);
+		}
+	}
+	
+	*/
+	
+};
+/*
+Query.prototype.save = function(){
+	//queryset id
+	var qsid = parseInt($("#qts_select option:selected").val());
+	var iq = 0;
+	var queries = jsonw["WorkspaceProfile"]["Querysets"][qsid]["Queries"];
+	
+	//var iq = $('#userqueries').children().size();
+	var jsonq = this.toJSON();
+	if (this.id == 0){
+		if (queries == "null"){
+			jsonw["WorkspaceProfile"]["Querysets"][qsid]["Queries"] = [{}];
+		} else {
+			iq = queries.length;
+		}
+		jsonw["WorkspaceProfile"]["Querysets"][qsid]["Queries"][iq] = jsonq;
+		Workspace.save("USER", this, qsid, iq);
+	} else {
+		$.each(jsonw["WorkspaceProfile"]["Querysets"][qsid]["Queries"], function(index,value){
+			if (value.id == jsonq.id){
+				iq = index;
+			}
+		});
+		jsonw["WorkspaceProfile"]["Querysets"][qsid]["Queries"][iq] = jsonq;
+		Workspace.save("USER", this, qsid, iq);
+	}
+	
+	
+	//appendQueryUI(jsonw["WorkspaceProfile"]["Querysets"][id]["Queries"][iq],iq, $('#userqueries'));
+	
+};
+*/
+
+Query.prototype.getcolumnstext = function (){
+	
+	if (this.columns_widget == null ) {
+		return this.columns;
+	}
+	return this.columns_widget.getListText();
+};
+
+Query.prototype.updatecolumnstext = function (list) {
+	var columns_text = "";
+	
+	$(list).each(function(index){
+		if (index > 0) {
+			columns_text = columns_text + ",";
+		}
+		columns_text = columns_text + $(this).text();
+	});
+	this.columns = columns_text;
+};
+
+/** special handling for special characters: double escaping (escape the %-sign)
+ * to survive the %-encoding through the request (and parsing) down to the transformation in XCQL2XPath.xsl
+ * it's: whitespace, and single and double-quotes (unified to double quotes %22)
+*/  
+
+Query.prototype.query_uri = function () {
+	var params = "?";
+	if (this.query != null) {
+		params = params + "q=" + escape(this.query) + "&";
+	}
+	if (this.squery != null) {
+		escaped_sq =escape(this.squery).replace(/%20/g,"%2520").replace(/\%2[27]/g,"%2522") ;
+		escaped_sq = escaped_sq.replace(/%7C/g,"%257C").replace(/\+/g,"%2B"); 
+		params = params + "squery=" + escaped_sq + "&";
+	}
+	params = params + "collection=" + this.getcollectiontext("index") + "&columns=" + this.getcolumnstext() + "&startItem=" + this.startItem + "&maximumItems=" + this.maximumItems + "&repository=" + this.repository;
+	if  (this.options != null) {
+		params = params + "&options=withSummary";
+	}
+	
+	return params;
+
+	//return $.param(this.query);
+};
+
+Query.prototype.sruquery_uri = function () {
+	var params = "?operation=searchRetrieve&version=1.2&";
+	var q = "";
+	if (this.query != null) {
+		q = "( "  + escape(this.query) + " )";
+	}
+	if (this.squery != null) {
+		escaped_sq =escape(this.squery).replace(/%20/g,"%2520").replace(/\%2[27]/g,"%2522") ;
+		escaped_sq = escaped_sq.replace(/%7C/g,"%257C").replace(/\+/g,"%2B"); 
+		if (q.length > 0){
+			q = q + " and ";
+		}
+		q = q + escaped_sq;
+	}
+	params = params + "query=" + q + "&x-cmd-collections=" + this.getcollectiontext("index") + 
+	"&startRecord=" + this.startItem + "&maximumRecords=" + this.maximumItems + "&x-cmd-repository=" + this.repository;
+	
+	return params;
+};
+
+Query.prototype.toString = function(){
+	var str = "";
+	var coll = (this.getcollectiontext("name") != "" ) ? " in " + this.getcollectiontext("name") : "";
+	str = Query.queryliststring(this.squery, this.query) + coll + " @" + this.repository.toString();
+	return str;
+};
+
+Query.prototype.publish = function() {
+	//$.data("query",this);
+	var q = this;
+	//if (q.vcrid == 0){
+		$.get("/MDService2/virtualcollection/USER/" + this.id,"", function(data){
+			if (q.vcrid == 0){
+				var id = parseInt($(data).children().children('virtualcollectionid').text());
+				q.vcrid = id;
+				q.save();
+			}
+		});
+	//} 
+};
+
+Query.prototype.toJSON = function () {
+//Query.prototype.query_json = function () {	
+	var dt = new Date();
+	var str_time = dateFormat(dt);//dt.toString("dd/mm/yyyy HH:mm:ss");
+	//var jsonq = { "options" : json_options, "bookmark" : bookmark, "time" : str_time};
+	var json_options = this.options; 
+	if (this.options != null) {
+		json_opts = [{}];
+		json_opts[0] = this.options;
+	}
+
+	// collections
+	var json_coll;
+		
+	if (this.collection.length == 0) {
+		json_coll = {};
+		json_coll = "null";
+	} else { 
+		json_coll = [{}];
+		for (var i = 0; i < this.collection.length; i++) {
+			json_coll[i] = {"index" : this.collection[i].index, "name" :this.collection[i].name};
+		}
+	}
+	//columns
+	var json_cols;
+	var cols = this.columns;
+	if (cols == "") {
+		//json_cols = {};
+		json_cols = "null";
+	} else {  
+		var pos = this.columns.indexOf(",", 0);
+		var i = 0;
+		
+		json_cols = [{}];
+		while (pos > -1){
+			if (pos > -1){
+				json_cols[i] = cols.substring(0,pos);
+			} else {
+				json_cols[i] = cols;
+			}
+			cols = cols.substring(pos+1);
+			pos = cols.indexOf(",", 0);
+			i = i+1;
+		}
+		
+		json_cols[i] = cols;
+	}
+
+	var jsonq = {"id":this.id,
+				 "name":"",
+			     "squerystring":this.squery, 
+				 "querystring":this.query,	
+				 "searchclauses":"null" ,
+				 "collections" : json_coll, 
+				 "columns" : json_cols,
+				 "startItem" : this.startItem,
+				 "maximumItems" : this.maximumItems,
+				 "options" : json_options, 
+				 "bookmark" : this.bookmark,
+				 "time" : str_time,
+				 "vcrid": this.vcrid};
+	
+	if (this.bookmark == "1") {
+		qstring = Url.decode(qstring);
+		var s = qstring.split(':');
+		jsonq.name = s[s.length - 2] + ":" + s[s.length - 1];
+	} else {
+		jsonq.name = Query.fullformatstring(jsonq);
+	}
+	
+	return jsonq;//JSON.stringify(jsonq);
+};
+
+Query.prototype.getcollectiontext = function(what) {
+	var collection_text = "";
+	for (var i = 0; i < this.collection.length; i++) {
+		if (what == "index") {
+			collection_text = collection_text + "," + this.collection[i].index;
+		} else {
+			collection_text = collection_text + "," + this.collection[i].name;	
+		}
+	}
+	if (collection_text.length > 1) {
+		collection_text = collection_text.substring(1);	
+	}
+	return collection_text;
+};
+Query.prototype.getcollectionindextext = function() {
+	var collection_text = "";
+	for (var i = 0; i < this.collection.length; i++) {
+		collection_text = collection_text + "," + this.collection[i].index;
+	}
+	if (collection_text.length > 1) {
+		collection_text = collection_text.substring(1);	
+	}
+	return collection_text;
+};
+
+Query.collectiontext = function(json) {
+	var collection_text = "";
+	if (json.collections != "null"){
+		$.each(json.collections,function(i,item){
+			collection_text = collection_text + "," + item.name;
+		});
+		if (collection_text.length > 1) {
+			collection_text = collection_text.substring(1);	
+		}
+	}
+	return collection_text;
+};
+
+Query.columnstext = function(json) {
+	var columns_text = "";
+	if (json.columns != "null"){
+		$.each(json.columns,function(i,item){
+			columns_text = columns_text + "," + item;
+		});
+		if (columns_text.length > 1) {
+			columns_text = columns_text.substring(1);	
+		}
+	}
+	return columns_text;
+};
+
+Query.optionstext = function(json) {
+	var options_text = "";
+	if (json.options == undefined){
+		return "";
+	}
+	if (json.options != "null"){
+		$.each(json.options,function(i,item){
+			options_text = options_text + "," + item;
+		});
+		if (options_text.length > 1) {
+			options_text = options_text.substring(1);	
+		}
+	}
+	return options_text;
+};
+
+Query.fullformatstring = function (json) {
+	var qs = json.querystring;
+	var sqs = json.squerystring;
+	
+	if (qs == "[NULL]") {
+		qs = null;
+	}
+	if (sqs == "[NULL]") {
+		sqs = null;
+	}
+	var collection_text = Query.collectiontext(json);
+	
+	var full_str = "";
+	var len = formatquerystring_len;
+	
+	if (sqs != null) {
+		if (sqs.length > len){
+			full_str = sqs.substring(0,len) + "..| ";
+		} else {
+			sqs = sqs + "                                     ";
+			full_str = sqs.substring(0,len) + "  | ";
+		}
+	}
+	if (qs != null) {
+		qs = Query.simplequerystring(qs);
+		if (qs.length > len){
+			full_str = full_str + qs.substring(0,len) + "..| ";
+		} else {
+			qs = qs + "                                     ";
+			full_str = full_str + qs.substring(0,len) + "  | ";
+		}
+	}
+	if (collection_text.length > (len - 6)) {
+		full_str = full_str + collection_text.substring(0,len);
+	} else {
+		full_str = full_str + collection_text;
+	}
+	
+	return full_str;
+};
+
+Query.queryliststring = function(squery, query) {
+	var s_squery = "";
+	var s_query = "";
+	var str = "";
+	
+	if (squery != null){
+		s_squery = squery;
+	}
+	if (query != null){
+		s_query = query;
+	}
+	if (s_squery.length != 0 && s_query.length != 0){
+		str = squery + " & (" + Query.simplequerystring(query) +  ")";
+	} else if (s_squery.length != 0) {
+		str = squery;
+	} else {
+		str =  Query.simplequerystring(query);
+	}
+	return str;
+};
+
+Query.simplequerystring = function (querystring) {
+
+	if (querystring == null){
+		return "";
+	}
+	querystring = Url.decode(querystring);
+	
+	var arr_and = querystring.split(" and ");
+	var simple_form = "";
+	var simple_form_all = "";
+	var rel = "";
+	
+	for( var i=0;i<arr_and.length;i++){
+		arr_and[i] = $.trim(arr_and[i]);
+		var arr_or = arr_and[i].split(" or ");
+		simple_form = "";
+		for( var j=0;j<arr_or.length;j++){
+			arr_or[j] = $.trim(arr_or[j]);
+			while (arr_or[j].substring(0,1) == "(" ) {
+				arr_or[j] = arr_or[j].substring(1,arr_or[j].length);
+				arr_or[j] = $.trim(arr_or[j]);
+			}
+			while ( arr_or[j].substring(arr_or[j].length-1) == ")"){
+				arr_or[j] = arr_or[j].substring(0,arr_or[j].length-1);
+				arr_or[j] = $.trim(arr_or[j]);
+			}
+			if (j > 0) { 
+				rel = " or ";
+			} else {
+				rel = "";
+			}
+			simple_form = simple_form + rel + arr_or[j];
+		}
+		if (arr_or.length > 1){
+			simple_form = "(" + simple_form + ") ";
+		}
+		if (i > 0) { 
+			rel = " and  ";
+		} else {
+			rel = "";
+		}
+		simple_form_all = simple_form_all + rel + simple_form;
+		
+	}
+	
+	
+	//notifyUser("querystring:" + querystring, 'debug');
+	//notifyUser("simplequerystring:" + simple_form_all, 'debug');
+	return simple_form_all;
+};
+
+Query.prototype.render = function () {
+/*
+	var x = "<div id='" + this.listid + "' class='query_wrapper ui-widget' ><div class='query_header ui-widget-header ui-state-default ui-corner-top'>" +
+	"<span class='cmd cmd_get'></span><span class='cmd cmd_save'></span><span class='cmd cmd_del'> </span>" +
+	"<span class='query_id'>" + 	this.listid + "</span>: <span class='query'>" +
+	this.getcollectiontext("name") + ":" + Query.queryliststring(this.squery, this.query) + ", repository:" + this.repository.toString() + "</span>" + 
+			"<a class='cmd cmd_xml' target='_blank' href='" + this.link("xml") + "'>xml</a> <a class='cmd cmd_link' target='_blank' href='" + this.link("fullpage") + "' >link</a></div>" +
+		//	<span class='cmd cmd-xml'></span><span class='cmd cmd-page'></span><span class='cmd cmd-link'></span></div>" +		
+			//"<div class='ui-context-dialog columns-wrapper'><div class='query-columns'></div><span class='cmd cmd_del'></span></div><div class='result ui-widget-content ui-corner-bottom'></div>";
+			"<div class='result ui-widget-content ui-corner-bottom'></div>";
+			*/
+	/*
+	var x = $('#querylistelement').html().toString();
+	x.replace('querylistelement', this.listid);
+	$(x).find(".query-id").text(this.listid);
+	$(x).children().children(".query").text(this.getcollectiontext("name") + ":" + Query.queryliststring(this.squery, this.query) + ", repository:" + this.repository.toString());
+	*/
+	// FIXME: this is not nice, there should be a function providing the formatted string of the query.
+	//var coll = (this.getcollectiontext("name") != "" ) ? " in " + this.getcollectiontext("name") : "";  
+	var x = "<div id='" + this.listid + "' class='query_wrapper ui-widget' name='query' ><div class='query_header ui-widget-header ui-state-default ui-corner-top'>" +
+	"<span class='cmd cmd_get'></span><span class='cmd cmd_del'> </span>" +
+	"<span class='query_id'>" + this.listid + "</span>: <span class='query'>" +
+	this.toString() + 
+	//Query.queryliststring(this.squery, this.query) + coll + " @" + this.repository.toString() + 
+	"</span>" + 
+			"</div>" +
+			"<div class='result ui-widget-content ui-corner-bottom'></div>";
+	addToQuerylist(x);	
+	
+	this.container = $('#' + this.listid );
+	$(this.container).data('query',this);
+	
+	notifyUser("DEBUG: setting up removing query:" + $(this).closest('.query_wrapper').attr('id'));
+	$(this.container).children('.query_header').find('.cmd_del').click(function(event) {
+		notifyUser("DEBUG: removing query:" + $(this).closest('.query_wrapper').attr('id'));
+		queryset.removequery($(this).closest('.query_wrapper').attr('id'));
+	});
+	
+	createTooltip(this.container);
+ };
+ 
+ Query.prototype.open = function (type) {
+	 if (type != null)
+	    window.open(this.link(type));
+	 else
+		window.open(this.link());
+};
+ 
+ Query.prototype.link = function (type) {
+	 var uri="";
+	 if (type=="fullpage")  {
+		 uri = link('base',this.query_uri());
+	 } else {
+		 //if (type == "xml"){
+		 //	 uri = link('sru',this.sruquery_uri());
+		 //} else {
+			 uri = link('recordset',type, this.query_uri());
+		// }		
+	 }
+	return uri;
+ };
+  
+ Query.prototype.link_obsoleted = function () {
+	 
+		// JSON conversion
+	 /*
+		if (this.query.length == 0){
+			xqstring = "[NULL]";
+		} else {
+			xqstring = this.query;
+		}
+		if (this.squery.length == 0){
+			xsquery = "[NULL]";
+		} else {
+			xsquery = this.squery;
+		}
+	 */
+	 	var jsonq = {"squerystring":this.squery, "querystring":this.query, "searchclauses":"null" , "collections" : this.json_coll, "columns" : this.json_cols};
+
+		var uri = "?query=" + JSON.stringify(jsonq) + "&startItem=" + this.startItem + "&maximumItems=" + this.maximumItems;
+		return uri;
+};
+ Query.prototype.submit = function () {
+	 	
+	 	var uri;
+	 	
+	 	var reptype = workspace.getRepositoryType(this.repository);
+	 	
+	 	// USE CLIENT PAZPAR
+	 	/*
+	 	if (reptype=="pazpar"){
+	 		//pazpar handling this
+	 		pazparsubmit(this);
+	 		return;
+	 	}
+	 */
+	 	// ALL types  = query uri, 
+	 	// pazpar server usage
+	 	uri = link('recordset',this.format, this.query_uri());
+	 	
+	 	/*
+	 	if (reptype=="md" ){
+			uri = link('recordset',this.format, this.query_uri());
+	 	} else {
+	 		if (reptype=="sru"){
+	 			uri = link('sru', this.format, this.sruquery_uri());
+	 		} else {
+	 			// USE SERVER PAZPAR 
+	 			//if (reptype=="pazpar"){
+		 		//	uri = link('pazpar', this.format, this.query_uri());
+		 		//} else {
+		 		
+		 			return;
+		 		//}
+	 		}
+	 	}
+	 	*/
+
+	 	
+		var query = this;
+		notifyUser("submitting query:" +  uri);
+		this.container.find('.result').load( uri, function() {
+					notifyUser("result-loaded",'debug');
+					
+					var get = $(this).parent().find('.cmd_get');				
+
+					get.removeClass('cmd_get');
+					get.addClass('cmd_up');
+					// get.show();
+					
+					var result_header = $(this).children('.result-header');
+					
+					var q_header;
+					q_header = $(this).parent().find('.query_header');					
+					q_header.append(result_header);
+					
+				 	addDetailFunctionality(q_header, query);
+				 	
+					createTooltip($(this));
+				});
+
+	};
+	
+Query.prototype.resubmit = function () {
+	
+	var uri;// = link('recordset',this.format, this.query_uri());
+	var reptype = workspace.getRepositoryType(this.repository);
+ 	if (reptype=="pazpar"){
+ 		//pazpar handling this
+ 		return;
+ 	}
+ 	if (reptype=="md" ){
+		uri = link('recordset',this.format, this.query_uri());
+ 	} else {
+ 		if (reptype=="sru"){
+ 			uri = link('sru', this.format, this.sruquery_uri());
+ 		} else {
+ 			return;
+ 		}
+ 	}
+	var qid = this.listid;
+	//var q_uri = this.query_uri();
+	var query = this;
+	
+	notifyUser("resubmitting query:" +  uri);
+	
+	var get = $('#' + qid ).find('.cmd_up');
+	if (get.length == 0) {
+		get = $('#' + qid ).find('.cmd_down');
+	}
+	get.addClass('cmd_get');
+	get.removeClass('cmd_up');
+	get.removeClass('cmd_down');
+	// get.show();	
+
+	$('#' + qid ).children('.result').children().remove();
+	$('#' + qid ).find('.result').load( uri, function() {
+				// update link-hrefs
+				var qid = $(this).closest('.query_wrapper').attr("id");
+				notifyUser("result-loaded ID:" + qid,'debug');
+				
+				var q = queryset.getQuery(qid);
+				$('#' + qid ).find(".cmd_link").attr("href", q.link("fullpage"));
+				
+				var get = $(this).parent().find('.cmd_get');				
+				get.removeClass('cmd_get');
+				get.addClass('cmd_up');
+				// get.show();	
+				
+				var result_header = $(this).children('.result-header');
+				
+				var q_header;
+				q_header = $(this).parent().find('.query_header');
+				q_header.children('.result-header').remove();
+				
+				q_header.append(result_header);				
+			 	addDetailFunctionality(q_header, query);
+			});
+
+};
+
+Query.prototype.summaryinfo = function () {
+	
+	var uri = link('recordset',this.format, this.query_uri());
+	//columns-wrapper
+	var temp = $('<div />');
+	$(temp).data('qcontainer',$(this.container));
+	$(temp).load(uri, function(response, status, xhr) { 
+		//detailcaller.getdetail("detail_query").close();
+		/*
+		var profiles = $(this).find('.used-profiles');
+		var parent = $(this).data('qcontainer').find('.used-profiles').parent();
+		$(parent).remove('.used-profiles').append(profiles);
+		
+		var summary = $(this).find('.result-summary');
+		parent = $(this).data('qcontainer').find('.result-summary').parent();
+		$(parent).remove('.result-summary').append(summary);
+		*/
+		//detailcaller.calldetail($(this).data('qcontainer').find('.result-header').find('.cmd_detail'));
+
+		// direct replace detail data
+		var detailcontent = detailcaller.getdetail("detail_query").content;
+		
+		var profiles = $(this).find('.used-profiles');
+		var parent = detailcontent.find('.used-profiles').parent();
+		$(parent).find('.used-profiles').remove();
+		$(parent).append(profiles);
+		
+		var summary = $(this).find('.result-summary');
+		$(summary).find('.terms-tree').treeTable({initialState:"collapsed"});
+		var parent = detailcontent.find('.result-summary').parent();
+		$(parent).find('.result-summary').remove();
+		$(parent).append(summary);
+		$(parent).find('.cmd_columns').click(function(){
+			query_wrapper_add_column($(this));
+		});
+	}); 
+
+
+};
+
+Query.prototype.updateColumns = function(selectionlist){
+	if (selectionlist != undefined){
+		if (selectionlist.autoSelected()){
+			this.columns = "";
+		} else
+		{
+			this.columns = selectionlist.listwidget.getListText();
+		}
+	}
+};
+
+Query.prototype.next = function(pages){
+	var start = 0;
+	var num = 0;
+	var max_value = $('#' + this.listid ).find('.result-header').attr("max_value");
+	
+	if (parseInt(this.startItem) + pages * page_record_count >= 1){
+		start =	parseInt(this.startItem) + pages * page_record_count ;
+	} else if (parseInt(this.startItem) + pages * page_record_count + page_record_count - 1 >= 1){
+		start =	1 ;
+	}
+	if (start > 0){
+		if (start + page_record_count - 1 <= max_value) {
+			num = page_record_count;
+		} else if (start <= max_value){
+			num = max_value - start;
+		}
+	
+		if (num > 0){
+			this.startItem = start;
+			this.maximumItems = num;
+			this.resubmit();
+			updateQueryDetailPane(this);
+		}
+	}
+};
+
+var queryset_container = $("#querylist"); 
+
+/**
+ * A singleton-object holding all queries.
+ * @constructor
+*/ 
+var queryset = { queries: [],
+	container: '#querylist',
+	recordrowselected: undefined,
+	
+	addquery: function (query){
+			
+		this.queries[this.queries.length] = query;
+		query.listid = "q" + this.queries.length;
+		query.render();				
+		query.submit();		
+	},
+
+	removequery: function (qid) {
+		notifyUser("removing query:"  + qid);
+		
+		 for (var i = 0; i < this.queries.length; i++) {
+			if (this.queries[i].listid == qid) {
+				this.queries.splice(i, 1);
+			} 
+		}	
+		$('#' + qid).remove();
+		notifyUser("query removed, new queries.length:"  + this.queries.length);
+		
+	},
+
+	getsquery: function(qid) {
+		var qstring = "";
+		
+		for (var i = 0; i < this.queries.length; i++) {
+			if (this.queries[i].listid == qid) {
+				qstring = this.queries[i].squery;
+			} 
+		}
+		if (qstring == null){
+			qstring = "";
+		}
+		return qstring;
+	},
+	getquerystring: function(qid) {
+		var qstring = "";
+		
+		for (var i = 0; i < this.queries.length; i++) {
+			if (this.queries[i].listid == qid) {
+				qstring = this.queries[i].query;
+			} 
+		}
+		if (qstring == null){
+			qstring = "";
+		}
+
+		return qstring;
+	},
+	getcollections: function(qid) {
+		var coll = "";
+		var json_coll, json_temp;
+		
+		for (var i = 0; i < this.queries.length; i++) {
+			if (this.queries[i].listid == qid) {
+				coll = this.queries[i].collection;
+			} 
+		}		
+		if (coll.length == 0) {
+			json_coll = {};
+			json_coll = "null";
+		} else { 
+			json_coll = [{}];
+			for (var i = 0; i < coll.length; i++) {
+				json_coll[i] = {"index" : coll[i].index, "name" :coll[i].name};
+			}
+		}
+		return json_coll;
+	},
+	
+	getcolumns: function(qid) {
+		var cols = "";
+		var json_cols, json_temp;
+		
+		for (var i = 0; i < this.queries.length; i++) {
+			if (this.queries[i].listid == qid) {
+				cols = this.queries[i].columns;
+			} 
+		}
+		
+		if (cols == "") {
+			json_cols = {};
+			json_cols = "null";
+		} else {  
+			var pos = cols.indexOf(",", 0);
+			var i = 0;
+			
+			json_cols = [{}];
+			while (pos > -1){
+				if (pos > -1){
+					json_cols[i] = cols.substring(0,pos);
+				} else {
+					json_cols[i] = cols;
+				}
+				cols = cols.substring(pos+1);
+				pos = cols.indexOf(",", 0);
+				i = i+1;
+			}
+			
+			json_cols[i] = cols;
+
+			
+		}
+		return json_cols;
+	},
+	getoptions: function(qid) {
+		var opts = null;
+		var json_opts;
+		
+		for (var i = 0; i < this.queries.length; i++) {
+			if (this.queries[i].listid == qid) {
+				opts = this.queries[i].options;
+			} 
+		}
+
+		if (opts != null) {
+			json_opts = [{}];
+			json_opts[0] = opts;
+		}
+		return json_opts;
+	},
+	resubmit: function(qid){
+		var query = queryset.queries[qid.substring(1)-1];
+		
+		query.repository = getSelectedRepository();
+		query.startItem = $('#' + qid ).find('.start_record').val();
+		query.maximumItems = $('#' + qid ).find('.maximum_records').val();
+		query.resubmit();
+
+	},
+	
+	getQuery: function(qid){
+		var query = queryset.queries[qid.substring(1)-1];
+		return query;
+	},
+	/*
+	next: function(qid,pages){
+		var query = queryset.queries[qid.substring(1)-1];
+		var start = 0;
+		var num = 0;
+		var max_value = $('#' + qid ).find('.result-header').attr("max_value");
+		
+		if (parseInt(query.startItem) + pages * page_record_count >= 1){
+			start =	parseInt(query.startItem) + pages * page_record_count ;
+		} else if (parseInt(query.startItem) + pages * page_record_count + page_record_count - 1 >= 1){
+			start =	1 ;
+		}
+		if (start > 0){
+			if (start + page_record_count - 1 <= max_value) {
+				num = page_record_count;
+			} else if (start <= max_value){
+				num = max_value - start;
+			}
+		
+			if (num > 0){
+				query.startItem =	start;
+				query.maximumItems = num;
+				query.resubmit();
+			}
+		}
+		
+	},
+	*/
+	recorddetailselection: function(recordrow){
+		if (this.recordrowselected != undefined){
+			$(this.recordrowselected).removeClass('detailselection');
+		}
+		this.recordrowselected = recordrow;
+		$(this.recordrowselected).addClass('detailselection');
+	}
+	
+	
+};
+
+$('#querylist .cmd_columns').live('click',function(){
+	notifyUser("DEBUG: #querylist.cmd_columns");
+	$(this).closest('.query_wrapper').find('.columns-wrapper').toggle();
+});
+
+function query_wrapper_add_column(elem){
+	var slid = $(elem).closest('.query-columns').find('.widget-wrapper').attr('id');
+	var sl = selectionlistset.getselectionlist(slid);
+	if (sl.autoSelected()){
+		sl.select(0);
+	}
+	sl.listwidget.add(new ListItem($(elem).closest('.treecol').children('.column-elem').text()));
+	
+	//$(elem).data('query').updateColumns(slid);
+
+};
+
+function addDetailFunctionality(q_header, query){
+	
+	$(q_header).data('query',query);
+	q_header.find('.cmd_reload').data('query',query);
+	q_header.find('.cmds .cmd_save').data('qid',query.listid);
+	q_header.find('.cmds .cmd_savenew').data('qid',query.listid);
+ 	q_header.find('.cmd_reload').click(function() {
+ 		/*
+ 		var qid;
+ 		if ($(this).parent().attr('class') == 'result-header'){
+ 			qid = $(this).closest('.query_wrapper').attr("id");
+ 		} else {
+ 			var did = $(this).closest('.detail-wrapper').attr("id");
+ 			var slid = $(this).closest('.detail-wrapper').find('.selectionlist-widget').attr("id");
+ 			var detail = detailcaller.getdetail(did);
+ 			qid = detail.temp_id;
+ 			
+ 			var q = queryset.getQuery(qid);
+ 			if (selectionlistset.getselectionlist(slid).autoSelected()){
+ 	 			q.columns = "";
+ 			} else
+ 			{
+ 	 			q.columns = selectionlistset.getselectionlist(slid).listwidget.getListText();
+ 			}
+  		}
+		//queryset.resubmit(qid);
+		*/
+ 		// update columns if  reloaded from detail pane
+ 		/*
+ 		if ($(this).parent().attr('class') != 'result-header'){
+ 			var slid = $(this).closest('.detail-wrapper').find('.selectionlist-widget').attr("id");
+ 			if (selectionlistset.getselectionlist(slid).autoSelected()){
+ 				$(this).data('query').columns = "";
+ 			} else
+ 			{
+ 				$(this).data('query').columns = selectionlistset.getselectionlist(slid).listwidget.getListText();
+ 			}
+ 		}
+ 		*/
+ 		/*
+ 		var slid = $(this).closest('.detail-wrapper').find('.selectionlist-widget').attr("id");
+ 		if (slid != undefined){
+ 	 		$(this).data('query').updateColumns($(this).data('detail'));
+ 		}
+ 		*/
+ 		$(this).data('query').updateColumns($(this).data('selectionlist'));
+ 		$(this).data('query').resubmit();
+	});
+	q_header.find('.cmd_prev').click(function() {
+		/*
+		var qid = $(this).closest('.query_wrapper').attr("id");
+		queryset.next(qid,-1);
+		*/
+		$(this).closest('.query_header').data('query').next(-1);
+	});
+	q_header.find('.cmd_next').click(function() {
+/*
+		var qid = $(this).closest('.query_wrapper').attr("id");
+		queryset.next(qid,1);
+		*/
+		$(this).closest('.query_header').data('query').next(1);
+	});
+	
+	q_header.find('.value-format').data('query',query);
+	q_header.find('.value-format').change(function(){
+		/*
+		var did = $(this).closest('.detail-wrapper').attr("id");
+ 		var qid = detailcaller.getdetail(did).temp_id;
+		var q = queryset.getQuery(qid);		
+		queryset.resubmit(qid);
+		*/
+		$(this).data('query').format = $(this).find('option:selected').val();
+		$(this).data('query').resubmit();
+	});
+	//q_header.find('.cmd_add').click(function(){
+	//q_header.find('.cmd_columns').data('query', query);
+	q_header.find('.cmd_columns').click( function(){
+		query_wrapper_add_column($(this));
+		//$(this).data('query').resubmit();
+	});
+	q_header.find('.columns-wrapper').hide();
+	q_header.find('.terms-tree').treeTable({initialState:"collapsed"});
+
+
+};
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_pz2.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_pz2.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_pz2.js	(revision 1516)
@@ -0,0 +1,610 @@
+/*
+function bg_eff() {   
+	col_val = "#" + a[x] + b[x] + c[x];   
+	document.bgColor = col_val;   
+	x++;   
+	if (x == 32) {     
+		clearInterval(change_bg);   
+		} 
+} 
+change_bg = setInterval("bg_eff()", 50); 
+*/
+function pazparsubmit(q){
+	q.pz2.repository = q.repository;
+	//q.pz2.init();
+	//q.pz2.search(q.squery, q.maximumItems, sort, filter, q.startItem, addParamsArr);
+	//q.pz2.search(q.squery, q.maximumItems, undefined, null, q.startItem, null);
+	q.pz2.initandsearch(q.squery, q.maximumItems, undefined, null, q.startItem, null, q.format);
+}
+
+
+function md_pz2( paramArray )
+{
+    
+    // at least one callback required
+    if ( !paramArray )
+        throw new Error("Pz2.js: Array with parameters has to be suplied."); 
+
+    //supported pazpar2's protocol version
+    this.suppProtoVer = '1';
+    this.queryobject = paramArray.queryobject;
+    //this.repository = paramArray.repository;
+    //this.pz2String = ;
+    //this.useSessions = true;
+    
+    this.errorHandler = paramArray.errorhandler || null;
+    
+    // function callbacks
+    this.initCallback = paramArray.oninit || null;
+    this.statCallback = paramArray.onstat || null;
+    this.showCallback = paramArray.onshow || null;
+    this.termlistCallback = paramArray.onterm || null;
+    this.recordCallback = paramArray.onrecord || null;
+    this.bytargetCallback = paramArray.onbytarget || null;
+    this.resetCallback = paramArray.onreset || null;
+
+    // termlist keys
+    this.termKeys = paramArray.termlist || "subject";
+    
+    // some configurational stuff
+    this.keepAlive = 50000;
+    
+    if ( paramArray.keepAlive < this.keepAlive )
+        this.keepAlive = paramArray.keepAlive;
+
+    this.sessionID = null;
+    this.initStatusOK = false;
+    this.pingStatusOK = false;
+    this.searchStatusOK = false;
+    
+    // for sorting
+    this.currentSort = "relevance";
+
+    // where are we?
+    this.currentStart = 0;
+    this.currentNum = 20;
+
+    // last full record retrieved
+    this.currRecID = null;
+    
+    // current query
+    this.currQuery = null;
+
+    //current raw record offset
+    this.currRecOffset = null;
+
+    //timers
+    this.statTime = paramArray.stattime || 1000;
+    this.statTimer = null;
+    this.termTime = paramArray.termtime || 1000;
+    this.termTimer = null;
+    this.showTime = paramArray.showtime || 1000;
+    this.showTimer = null;
+    this.showFastCount = 4;
+    this.bytargetTime = paramArray.bytargettime || 1000;
+    this.bytargetTimer = null;
+    this.recordTime = paramArray.recordtime || 500;
+    this.recordTimer = null;
+
+    // counters for each command and applied delay
+    this.dumpFactor = 500;
+    this.showCounter = 0;
+    this.termCounter = 0;
+    this.statCounter = 0;
+    this.bytargetCounter = 0;
+    this.recordCounter = 0;
+
+    this.showStartTime = 0;
+    this.showTimeout = workspace.getOption("pazpartimeout");
+    // active clients, updated by stat and show
+    // might be an issue since bytarget will poll accordingly
+    this.activeClients = 1;
+    
+    this.format= 'xml';
+};
+
+md_pz2.prototype = 
+{
+    //error handler for async error throws
+   throwError: function (errMsg, errCode)
+   {
+        var err = new Error(errMsg);
+        if (errCode) err.code = errCode;
+                
+        if (this.errorHandler) {
+            this.errorHandler(err);
+        }
+        else {
+            throw err;
+        }
+   },
+
+    // stop activity by clearing tiemouts 
+   stop: function ()
+   {
+       clearTimeout(this.statTimer);
+       clearTimeout(this.showTimer);
+       clearTimeout(this.termTimer);
+       clearTimeout(this.bytargetTimer);
+    },
+    
+    // reset status variables
+    reset: function ()
+    {   
+        this.sessionID = null;
+        this.initStatusOK = false;
+        this.pingStatusOK = false;
+        
+        this.searchStatusOK = false;
+        this.stop();
+            
+        if ( this.resetCallback )
+                this.resetCallback();
+    },
+
+    init: function ( sessionId ) 
+    {
+        this.reset();
+        
+        var context = this;
+        $.get("/MDService2/pazpar2/xml/?command=init&repository="+this.repository,function(data){
+        	if ( $(data).find("status")[0].textContent == "OK" ) {
+        	                                     if ( $(data).find("protocol")[0].textContent != context.suppProtoVer )
+        	                                         throw new Error(
+        	                                             "Server's protocol not supported by the client"
+        	                                         );
+        	                                     context.initStatusOK = true;
+        	                                     context.sessionID = $(data).find("session")[0].textContent;
+        	                                     //setTimeout(
+        	                                     //    function () {
+        	                                     //        context.ping();
+        	                                     //    },
+        	                                     //    context.keepAlive
+        	                                     //);
+        	                                     if ( context.initCallback )
+        	                                         context.initCallback();
+        	                                 }
+        	                                 else
+        	                                     context.throwError('Init failed. Malformed WS resonse.',
+        	                                                         110);
+    	 },'html');
+    },
+    initandsearch: function ( query, num, sort, filter, showfrom, addParamsArr , format) 
+    {
+        this.reset();
+        this.format = format;
+        
+        var context = this;
+        $.get("/MDService2/pazpar2/xml/?command=init&repository="+this.repository,function(data){
+        	if ( $(data).find("status")[0].textContent == "OK" ) {
+        	                                     if ( $(data).find("protocol")[0].textContent != context.suppProtoVer )
+        	                                         throw new Error(
+        	                                             "Server's protocol not supported by the client"
+        	                                         );
+        	                                     context.initStatusOK = true;
+        	                                     context.sessionID = $(data).find("session")[0].textContent;
+        	                   
+        	                                     if ( context.initCallback )
+        	                                         context.initCallback();
+        	                                     context.search(query, num, sort, filter, showfrom, addParamsArr);
+        	                                 }
+        	                                 else
+        	                                     context.throwError('Init failed. Malformed WS resonse.',
+        	                                                         110);
+    	 },'html');
+    },
+    search: function (query, num, sort, filter, showfrom, addParamsArr)
+    {
+        clearTimeout(this.statTimer);
+        clearTimeout(this.showTimer);
+        clearTimeout(this.termTimer);
+        clearTimeout(this.bytargetTimer);
+        
+        this.showCounter = 0;
+        this.termCounter = 0;
+        this.bytargetCounter = 0;
+        this.statCounter = 0;
+        this.activeClients = 1;
+        
+        // no proxy mode
+        if( !this.initStatusOK )
+            throw new Error('Pz2.js: session not initialized.');
+        
+        if( query !== undefined )
+            this.currQuery = query;
+        else
+            throw new Error("Pz2.js: no query supplied to the search command.");
+        
+        if ( showfrom !== undefined )
+            var start = showfrom;
+        else
+            var start = 0;
+
+        var searchParams = "?command=search&query="+this.currQuery+"&sessionID="+this.sessionID + "&repository="+this.repository;
+	
+        //if (filter !== undefined)
+	    //searchParams["filter"] = filter;
+
+        // copy additional parmeters, do not overwrite
+        //if (addParamsArr != undefined) {
+        //    for (var prop in addParamsArr) {
+        //        if (!searchParams.hasOwnProperty(prop))
+        //            searchParams[prop] = addParamsArr[prop];
+        //    }
+        //}
+        
+        var context = this;
+        $.get(link('pazpar',"xml/"+searchParams),function(data){
+        	if ( $(data).find("status")[0].textContent == "OK" ) {
+        	                                     context.searchStatusOK = true;
+        	                                     //piggyback search
+        	                         		     var d = new Date();
+        	                                     context.showStartTime = d.getTime();
+        	                                     context.show(start, num, sort);
+        	                                     if ( context.statCallback )
+        	                                         context.stat();
+        	                                     if ( context.termlistCallback )
+        	                                         context.termlist();
+        	                                     if ( context.bytargetCallback )
+        	                                         context.bytarget();
+        	                                 }
+        	                                 else
+        	                                     context.throwError('Search failed. Malformed WS resonse.',
+        	                                                         112);
+    	 },'html');
+    },
+    stat: function()
+    {
+        if( !this.initStatusOK )
+            throw new Error('Pz2.js: session not initialized.');
+        
+        // if called explicitly takes precedence
+        clearTimeout(this.statTimer);
+        
+        var context = this;
+        $.get(link("/MDService2/pazpar2/",{ "command": "stat", "sessionID": this.sessionID }),function(data){
+            if ( data.getElementsByTagName("stat") ) {
+                var activeClients = 
+                    Number( data.getElementsByTagName("activeclients")[0]
+                                .childNodes[0].nodeValue );
+                context.activeClients = activeClients;
+
+                var stat = Element_parseChildNodes(data.documentElement);
+
+                context.statCounter++;
+                var delay = context.statTime 
+                    + context.statCounter * context.dumpFactor;
+                
+                if ( activeClients > 0 )
+                    context.statTimer = 
+                        setTimeout( 
+                            function () {
+                                context.stat();
+                            },
+                            delay
+                        );
+                context.statCallback(stat);
+            }
+            else
+                context.throwError('Stat failed. Malformed WS resonse.',
+                                    113);
+    	 },'xml');
+    },
+    show: function(start, num, sort)
+    {
+        if( !this.searchStatusOK )
+            throw new Error(
+                'Pz2.js: show command has to be preceded with a search command.'
+            );
+        
+        // if called explicitly takes precedence
+        clearTimeout(this.showTimer);
+        
+        if( sort !== undefined )
+            this.currentSort = sort;
+        if( start !== undefined )
+            this.currentStart = Number( start );
+        if( num !== undefined )
+            this.currentNum = Number( num );
+
+        var context = this;
+        var params = "?command=show&sessionID="+this.sessionID + "&repository="+this.repository + "&startItem="+this.currentStart 
+        + "&maximumItems="+this.currentNum + "&sort="+this.currentSort + "&block=1";
+    	
+        
+        $.get("/MDService2/pazpar2/" + this.format + "/" + params,
+            function(data) {
+                if (  $(data).find(".status").text() == "OK"  ) {
+                    // first parse the status data send along with records
+                    // this is strictly bound to the format
+                    var activeClients = Number( $(data).find(".activeclients").text() );
+                    context.activeClients = activeClients; 
+                    /*
+                    var show = {
+                        "activeclients": activeClients,
+                        "merged": 
+                            Number( $(data).find("merged")[0].textContent ),
+                        "total": 
+                            Number( $(data).find("total")[0].textContent ),
+                        "start": 
+                            Number( $(data).find("start")[0].textContent ),
+                        "num": 
+                            Number( $(data).find("num")[0].textContent ),
+                        "hits": $(data)//.find("hit")//[]
+                    };
+                    */
+                    // parse all the first-level nodes for all <hit> tags
+                    //var hits = $(data).find("hit");
+                    //for (i = 0; i < hits.length; i++)
+                    //    show.hits[i] = hits[i].childNodes();//Element_parseChildNodes(hits[i]);
+                    
+                    context.showCounter++;
+                    var delay = context.showTime;
+                    var d = new Date();
+                    var currentTime = d.getTime();
+                    if (context.showCounter > context.showFastCount)
+                            delay += context.showCounter * context.dumpFactor;
+		   
+		    		if ((currentTime - context.showStartTime)/1000 > context.showTimeout){
+			    		//$(tempdata).find(".activeclients").html('0');
+			    		//$(tempdata).find(".activeclients")[0].textContent = '0';
+			    		activeClients = 0;
+		    		} 
+	                if ( activeClients > 0 ){
+	                        context.showTimer = setTimeout(
+	                            function () {
+	                                context.show();
+	                            }, 
+	                            delay);
+	                    }
+                    global_show = $(data);//show;
+                    context.showCallback($(data), activeClients);
+                }
+                else
+                    context.throwError('Show failed. Malformed WS resonse.',
+                                        114);
+        }, 'html');
+    },
+    record: function(id, offset, syntax, handler)
+    {
+        // we may call record with no previous search if in proxy mode
+        if(!this.searchStatusOK && this.useSessions)
+           throw new Error(
+            'Pz2.js: record command has to be preceded with a search command.'
+            );
+        
+        if( id !== undefined )
+            this.currRecID = id;
+        
+	var recordParams = { 
+            "command": "record", 
+            "session": this.sessionID,
+            "id": this.currRecID 
+        };
+	
+	this.currRecOffset = null;
+        if (offset != undefined) {
+	    recordParams["offset"] = offset;
+            this.currRecOffset = offset;
+        }
+
+        if (syntax != undefined)
+            recordParams['syntax'] = syntax;
+
+        //overwrite default callback id needed
+        var callback = this.recordCallback;
+        var args = undefined;
+        if (handler != undefined) {
+            callback = handler['callback'];
+            args = handler['args'];
+        }
+        
+        var context = this;
+        var request = new pzHttpRequest(this.pz2String, this.errorHandler);
+
+        request.safeGet(
+	    recordParams,
+            function(data) {
+                var recordNode;
+                var record;                                
+                //raw record
+                if (context.currRecOffset !== null) {
+                    record = new Array();
+                    record['xmlDoc'] = data;
+                    record['offset'] = context.currRecOffset;
+                    callback(record, args);
+                //pz2 record
+                } else if ( recordNode = 
+                    data.getElementsByTagName("record")[0] ) {
+                    // if stylesheet was fetched do not parse the response
+                    if ( context.xslDoc ) {
+                        record = new Array();
+                        record['xmlDoc'] = data;
+                        record['xslDoc'] = context.xslDoc;
+                        record['recid'] = 
+                            recordNode.getElementsByTagName("recid")[0]
+                                .firstChild.nodeValue;
+                    //parse record
+                    } else {
+                        record = Element_parseChildNodes(recordNode);
+                    }    
+		    var activeClients = 
+		       Number( data.getElementsByTagName("activeclients")[0]
+		 		.childNodes[0].nodeValue );
+		    context.activeClients = activeClients; 
+                    context.recordCounter++;
+                    var delay = context.recordTime + context.recordCounter * context.dumpFactor;
+                    if ( activeClients > 0 )
+                        context.recordTimer = 
+                           setTimeout ( 
+                               function() {
+                                  context.record(id, offset, syntax, handler);
+                                  },
+                                  delay
+                               );                                    
+                    callback(record, args);
+                }
+                else
+                    context.throwError('Record failed. Malformed WS resonse.',
+                                        115);
+            }
+        );
+    },
+
+    termlist: function()
+    {
+        if( !this.searchStatusOK && this.useSessions )
+            throw new Error(
+            'Pz2.js: termlist command has to be preceded with a search command.'
+            );
+
+        // if called explicitly takes precedence
+        clearTimeout(this.termTimer);
+        
+        var context = this;
+        var request = new pzHttpRequest(this.pz2String, this.errorHandler);
+        request.safeGet(
+            { 
+                "command": "termlist", 
+                "session": this.sessionID, 
+                "name": this.termKeys 
+            },
+            function(data) {
+                if ( data.getElementsByTagName("termlist") ) {
+                    var activeClients = 
+                        Number( data.getElementsByTagName("activeclients")[0]
+                                    .childNodes[0].nodeValue );
+                    context.activeClients = activeClients;
+                    var termList = { "activeclients":  activeClients };
+                    var termLists = data.getElementsByTagName("list");
+                    //for each termlist
+                    for (i = 0; i < termLists.length; i++) {
+                	var listName = termLists[i].getAttribute('name');
+                        termList[listName] = new Array();
+                        var terms = termLists[i].getElementsByTagName('term');
+                        //for each term in the list
+                        for (j = 0; j < terms.length; j++) { 
+                            var term = {
+                                "name": 
+                                    (terms[j].getElementsByTagName("name")[0]
+                                        .childNodes.length 
+                                    ? terms[j].getElementsByTagName("name")[0]
+                                        .childNodes[0].nodeValue
+                                    : 'ERROR'),
+                                "freq": 
+                                    terms[j]
+                                    .getElementsByTagName("frequency")[0]
+                                    .childNodes[0].nodeValue || 'ERROR'
+                            };
+
+                            var termIdNode = 
+                                terms[j].getElementsByTagName("id");
+                            if(terms[j].getElementsByTagName("id").length)
+                                term["id"] = 
+                                    termIdNode[0].childNodes[0].nodeValue;
+                            termList[listName][j] = term;
+                        }
+                    }
+
+                    context.termCounter++;
+                    var delay = context.termTime 
+                        + context.termCounter * context.dumpFactor;
+                    if ( activeClients > 0 )
+                        context.termTimer = 
+                            setTimeout(
+                                function () {
+                                    context.termlist();
+                                }, 
+                                delay
+                            );
+                   
+                   context.termlistCallback(termList);
+                }
+                else
+                    context.throwError('Termlist failed. Malformed WS resonse.',
+                                        116);
+            }
+        );
+
+    },
+    bytarget: function()
+    {
+        if( !this.initStatusOK && this.useSessions )
+            throw new Error(
+            'Pz2.js: bytarget command has to be preceded with a search command.'
+            );
+        
+        // no need to continue
+        if( !this.searchStatusOK )
+            return;
+
+        // if called explicitly takes precedence
+        clearTimeout(this.bytargetTimer);
+        
+        var context = this;
+        var request = new pzHttpRequest(this.pz2String, this.errorHandler);
+        request.safeGet(
+            { "command": "bytarget", "session": this.sessionID },
+            function(data) {
+                if ( data.getElementsByTagName("status")[0]
+                        .childNodes[0].nodeValue == "OK" ) {
+                    var targetNodes = data.getElementsByTagName("target");
+                    var bytarget = new Array();
+                    for ( i = 0; i < targetNodes.length; i++) {
+                        bytarget[i] = new Array();
+                        for( j = 0; j < targetNodes[i].childNodes.length; j++ ) {
+                            if ( targetNodes[i].childNodes[j].nodeType 
+                                == Node.ELEMENT_NODE ) {
+                                var nodeName = 
+                                    targetNodes[i].childNodes[j].nodeName;
+                                var nodeText = 
+                                    targetNodes[i].childNodes[j]
+                                        .firstChild.nodeValue;
+                                bytarget[i][nodeName] = nodeText;
+                            }
+                        }
+                    }
+                    
+                    context.bytargetCounter++;
+                    var delay = context.bytargetTime 
+                        + context.bytargetCounter * context.dumpFactor;
+                    if ( context.activeClients > 0 )
+                        context.bytargetTimer = 
+                            setTimeout(
+                                function () {
+                                    context.bytarget();
+                                }, 
+                                delay
+                            );
+
+                    context.bytargetCallback(bytarget);
+                }
+                else
+                    context.throwError('Bytarget failed. Malformed WS resonse.',
+                                        117);
+            }
+        );
+    },
+    
+    // just for testing, probably shouldn't be here
+    showNext: function(page)
+    {
+        var step = page || 1;
+        this.show( ( step * this.currentNum ) + this.currentStart );     
+    },
+
+    showPrev: function(page)
+    {
+        if (this.currentStart == 0 )
+            return false;
+        var step = page || 1;
+        var newStart = this.currentStart - (step * this.currentNum );
+        this.show( newStart > 0 ? newStart : 0 );
+    },
+
+    showPage: function(pageNum)
+    {
+        //var page = pageNum || 1;
+        this.show(pageNum * this.currentNum);
+    }
+};
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_searchclause.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_searchclause.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_searchclause.js	(revision 1516)
@@ -0,0 +1,639 @@
+/**
+ * @fileOverview  This file contains model for building searchclausesets used in user queries.
+ * Consists of two parts:
+ * - SearchClause model [index,relation, value], with basic functionality - 
+ * creation, render, autocomplete.
+ * - Searchclauseset - container of actually used searchclauses in app
+ * with basic functionality for building container - add, remove, clear
+ * and conversion functions - conversions from-to querystring
+ *
+ * @author 
+ * @version 
+ */
+
+// client-side modelling of "business-objects":
+// SearchClause, SearchClauseset, 
+
+ 
+ //TODO use select-options or autocomplete ???
+ //var  relation_autocomplete = new Array('any','all','=','>','<'); 
+ //var  value_autocomplete = new Array();
+
+/**
+ * SearchClause model [index,relation, value], with basic functionality - 
+ * creation, render, autocomplete.
+ * @constructor
+*/ 
+function SearchClause(index, relation, value ) {
+	this.index = index;
+	this.relation = relation;	
+	this.value = value;
+	this.negation  = false;
+	
+	this.is_category = false;
+	this.category = "";
+	
+	this.i = 0;
+	this.j = 0;
+	this.listid = "";
+	this.container = {};
+	
+	if (this.relation == "") {
+		this.relation = "=";
+	}
+}
+
+SearchClause.prototype.GetIndexInput = function(){
+	return $($($('.sc-i','#searchclauselist')[this.i]).find('.sc-j')[this.j]).find('.index-input');
+};
+
+SearchClause.prototype.GetRelInput = function(){
+	return $($($('.sc-i','#searchclauselist')[this.i]).find('.sc-j')[this.j]).find('.rel_input');
+};
+SearchClause.prototype.GetValueInput = function(){
+	return $($($('.sc-i','#searchclauselist')[this.i]).find('.sc-j')[this.j]).find('.value-input');
+};
+
+SearchClause.prototype.GetIndexSelect = function(){
+	return $($($('.sc-i','#searchclauselist')[this.i]).find('.sc-j')[this.j]).find('.index_select');
+};
+
+
+SearchClause.prototype.GetValueSelect = function(){
+	return $($($('.sc-i','#searchclauselist')[this.i]).find('.sc-j')[this.j]).find('.value_select');
+};
+
+SearchClause.prototype.render = function (rel) {
+	
+	//TODO defaults
+	//this.relation = '=';
+	//var index_detail = "";
+	//if ((this.i == 0) && (this.j == 0)) {
+	//	index_detail = "<span name='detail_index' class='cmd cmd_detail'></span>";
+	//}
+	var x = "<div id='" + this.j + "' class='sc-j or_level' ><div id='" + this.listid + "' class='sc-wrapper focused' > " +
+	"<div class='search'><span class='index-search'><select class='index_select'/><input type='text' class='index-input autocomplete-input' /></span>" + 
+	//index_detail +
+	//"<select type='text' class='rel_input' />" +
+	"<select class='rel_input'><option value='='>=</option><option value='>'>></option><option value='<'><</option><option value='any'>any</option><option value='contains'>contains</option><option value='all'>all</option></select>" + 
+	"<select class='value_select'/><input type='text' class='value-input' /><span name='detail_value' class='cmd cmd_detail'></span>" +
+	 "<span class='sc_cmds'><span class='cmd cmd_sc_delete'> </span><span class='sc_id'>" + this.listid + "</span>" + 
+	  "<span class='cmd cmd_add_and'> </span><span class='cmd cmd_add_or'></span>"+
+	" </span></div><div class='index-context'><table></table></div></div></div>";
+	
+	addToSClist(x, this.i, this.j, rel);	
+	
+	
+	var e_index = this.GetIndexInput();
+	//new $.GrowingInput(e_index, {max: 80});
+	var e_relation = this.GetRelInput();
+	var e_value = this.GetValueInput();
+	var index_select = this.GetIndexSelect();
+	var value_select = this.GetValueSelect();
+	
+	$(index_select).hide();
+	value_select.hide();
+	//$(e_index).closest('.sc-wrapper').find('.index-context').hide();
+	
+	//alert("focused: "  + $('.focused','#searchclauselist').size());
+	$('.sc-wrapper','#searchclauselist').each(function(){
+		$(this).removeClass("focused");
+	});
+	$(e_index).closest('.sc-wrapper').addClass("focused");
+	//alert("focused: "  + $('.focused','#searchclauselist').size());
+	
+	// set focus
+	e_index.focusin(function(){
+		$('.sc-wrapper','#searchclauselist').each(function(){
+			$(this).removeClass("focused");
+		});
+		$(this).closest('.sc-wrapper').addClass("focused");
+	});
+	index_select.focusin(function(){
+		$('.sc-wrapper','#searchclauselist').each(function(){
+			$(this).removeClass("focused");
+		});
+		$(this).closest('.sc-wrapper').addClass("focused");
+	});
+	e_relation.focusin(function(){
+		$('.sc-wrapper','#searchclauselist').each(function(){
+			$(this).removeClass("focused");
+		});
+		$(this).closest('.sc-wrapper').addClass("focused");
+	});
+	e_value.focusin(function(){
+		$('.sc-wrapper','#searchclauselist').each(function(){
+			$(this).removeClass("focused");
+		});
+		$(this).closest('.sc-wrapper').addClass("focused");
+	});
+	$($($('.sc-i','#searchclauselist')[this.i]).find('.sc-j')[this.j]).find('.cmd_detail').click(function(){
+		$('.sc-wrapper','#searchclauselist').each(function(){
+			$(this).removeClass("focused");
+		});
+		$(this).closest('.sc-wrapper').addClass("focused");
+	});
+	
+	//TODO handle keydown
+/*	e_index.keydown(function(ev){
+		var evStop = function(){ ev.stopPropagation(); ev.preventDefault(); };
+		if (ev.which === 13) evStop();
+		var evFocusNext = function(){
+			ev.preventDefault();
+			e_relation.focus();	
+		};
+		//notifyUser($(this).attr("value").length);
+		if ($(this).attr("value").length > 0 &&  ev.which === 32) evFocusNext(); // focus next element
+		
+	});
+	
+	e_relation.keydown(function(ev){
+		var evStop = function(){ ev.stopPropagation(); ev.preventDefault(); };
+		if (ev.which === 13) evStop();
+		var evFocusNext = function(){
+			e_value.focus();	
+		};
+		if (ev.which === 32) evFocusNext(); // focus next element
+		notifyUser(ev.which);
+	});
+*/
+	
+	//selects for the first use
+	index_select.change(function(){
+		$(this).next().val($(this).find('option:selected').text());
+		$(this).hide();
+		$(this).next().show();
+	});
+	value_select.change(function(){
+		$(this).next().val($(this).find('option:selected').text());
+		$(this).hide();
+		$(this).next().show();
+	});
+	
+	e_index.val(this.index);
+	e_relation.val(this.relation);
+	e_value.val(this.value);
+	//update after text change
+	e_index.bind('change', function(){
+		
+		var i = $(this).closest('.sc-i').attr("id");
+		var j = $(this).closest('.sc-j').attr("id");
+		//alert("e-index-chabge;" + i + j + $(this).val());
+		searchclauseset.searchclauses[i][j].index = $(this).val();
+		notifyUser("index_sc" + i + "-" + j + " changed to:" + searchclauseset.searchclauses[i][j].index, "debug");
+		searchclauseset.searchclauses[i][j].is_category = false;
+    });
+	e_relation.change(function(){
+		var i = $(this).closest('.sc-i').attr("id");
+		var j = $(this).closest('.sc-j').attr("id");
+		//notifyUser("rel change:" + $(this).val(), 'debug');
+		searchclauseset.searchclauses[i][j].relation = $(this).val();
+		
+		searchclauseset.searchclauses[i][j].is_category = false;
+	});
+	e_value.change(function(){
+		var i = $(this).closest('.sc-i').attr("id");
+		var j = $(this).closest('.sc-j').attr("id");
+		searchclauseset.searchclauses[i][j].value = $(this).val();
+		
+		searchclauseset.searchclauses[i][j].is_category = false;
+	});
+	
+	try{
+		this.initAutocomplete();
+	} catch (e){
+		notifyUser("autocomplete failed: " + e.message);
+	}
+
+
+	/*
+	 e_value.autocompleteArray(value_autocomplete,{
+				autoFill:true,
+				width:90
+	});
+	 */
+	
+	
+ };
+ 
+ SearchClause.prototype.initAutocomplete = function(){
+	
+	 if (element_autocomplete.length == 0) return;
+	  
+	 //autocomplete
+		function handleTermsSelection(i,j,elem){
+			
+			var context = $('#' + 'sc' +  i + '-' + j).find('.index-context');
+			// fill context
+			//$(context).remove();
+			$(context).html(elements_hashtable[elem]);
+			
+			/*
+			$(context).children('table').children().remove();
+			for(var ii=0;ii< elements_hashtable[elem].length;ii++){
+				var row = '<tr><td>' + elements_hashtable[elem][ii] + '</td></tr>';
+				$(context).children('table').append(row);
+			}
+			*/
+			
+			$(context).show();
+			//notifyUser($('#' + 'sc' +  i + '-' + j).find('.index-input').val(), 'debug');
+			//$('#' + 'sc' +  i + '-' + j).find('.index-input').focus();
+			
+			$('#' + 'sc' +  i + '-' + j).find('.index-input').blur(function(){
+				$(context).hide();
+			});
+			$('#' + 'sc' +  i + '-' + j).find('.index-input').focusin(function(){
+				$(context).hide();
+			});
+			
+			
+					/*
+			var t = '<div><table><tr><td><a href="">aaaa<a></td></tr><tr><td><a href="">bbbb<a></td></tr><table></div>';
+			var x = '<div class="index_context"><table></table></div>';
+			$('.focused','#searchclauselist').find('.index_search').append(x);
+
+			
+			for(var i=0;i< elements_hashtable[elem].length;i++){
+				var li = '<span><a href="">' + elements_hashtable[elem][i] + '</a></span>';
+				$('.focused','#searchclauselist').find('.index_context').append(li);
+			}*/
+			
+			//$('.focused','#searchclauselist').find('.index-input').hide();
+			
+		};
+		
+		//autocomplete
+		function findValue(e) {
+			//if( li == null ) return alert("No match!");
+		 
+			var sValue = e.selectValue;
+			
+			var i = $('.focused','#searchclauselist').closest('.sc-i').attr("id");
+			var j = $('.focused','#searchclauselist').closest('.sc-j').attr("id");
+			//alert(i+ ',' + j + sValue);
+			searchclauseset.searchclauses[i][j].index = sValue;
+			
+			handleTermsSelection(i,j,sValue);		
+			
+			//$('.focused','#searchclauselist').find('.value-input').focus();
+			
+		}
+		 
+		function selectItem(li) {
+			findValue(li);
+		}
+
+		$(this.GetIndexInput()).autocompleteArray(element_autocomplete,{
+			autoFill:true,
+			//width:150,
+			onFindValue:findValue,
+			onItemSelect:selectItem
+		});
+
+		$('body').find('.ac_results').css({'z-index' : '1000'});
+	 
+ };
+
+SearchClause.prototype.CreateSelect = function(str, element){
+	var index_select = GetIndexSelect();
+	var index_input  = GetIndexInput();
+	index_select.show();
+	var x = "<option value='" + str + "'>" + str + "</option>";
+	$(element).each(function(){
+		x = x+"<option value='" + $(this).text() + "'>" + $(this).text() + "</option>";
+	});
+	index_select.html(x);
+	
+	index_input.hide();
+	
+};
+
+SearchClause.prototype.PlainText = function(){ 
+	if (this.index.trim().length == 0 || this.value.trim().length == 0){
+		return "";
+	}
+	if (this.is_category){
+			return "ISOCAT( " + this.category + ") " + this.relation + " " + this.value;
+	}
+	return this.index.replace(" ","_") + " " + this.relation + " " + this.value;
+};
+/*
+Searchclause.prototype.submit = function () {
+	
+	var uri = link('recordset','htmltable', this.query_uri());
+	notifyUser("submitting query:" +  uri);
+	
+	this.container.find('.result').load( uri, function() {
+				notifyUser("result-loaded");
+				var get = $(this).parent().find('.cmd_get');				
+
+				get.removeClass('cmd_get');
+				get.addClass('cmd_up');
+				// get.show();
+			});
+
+}
+*/
+    
+$('.index-context td').live('click',  function(event) {
+	
+	searchclauseset.updatedata(this.textContent, false, "");
+	//$('.focused','#searchclauselist').find('.index-input').val(	this.textContent);
+	$('.focused','#searchclauselist').find('.index-context').hide();
+	
+	$('.focused','#searchclauselist').find('.value-input').focus();
+
+});
+
+
+var searchclauseset_container = $("#searchclauselist"); 
+
+/**
+ * container of actually used Searchclauses in the query-input
+ * with basic functionality for building container - add, remove, clear
+ * and conversion functions - conversions from-to querystring
+ * @constructor 
+ */
+
+var searchclauseset = {
+		/**  @field */
+	searchclauses: [],
+	container: '#searchclauselist',
+	sctext: '',
+		
+	addsearchclause: function (searchclause, rel, _i, _j){
+		var i,j;
+			
+		if (this.searchclauses.length == 0){
+			i = 0;
+			this.searchclauses[i] = new Array();
+			j = 0;
+		} else {
+			if (rel == "or") {
+				i = _i;//this.searchclauses.length - 1;
+				j = this.searchclauses[i].length;//this.searchclauses[this.searchclauses.length - 1].length;
+			} else {
+				i = this.searchclauses.length;
+				this.searchclauses[i] = new Array();
+				j = 0;
+			}
+		}
+		searchclause.i = i;
+		searchclause.j = j;
+		searchclause.listid = "sc" + i + "-" + j;
+		this.searchclauses[i][j] = searchclause;
+		
+		searchclause.render(rel);						
+		//$('#querylist').html(this.render());
+	},
+	
+	fillFromURL: function(url){
+	},
+	
+	clear: function() {
+		notifyUser("clear query",'debug');
+		
+		for (var i = this.searchclauses.length - 1; i > -1; i--){
+			for (var j = this.searchclauses[i].length - 1; j > -1; j--){
+			
+
+					this.searchclauses[i].splice(j, 1);
+					if  (j == 0){
+						this.searchclauses.splice(i, 1);
+						$('#' + 'sc' +  i + '-' + j).parent().parent().remove();
+						$('#' + 'sc' +  i + '-' + j).parent().remove();
+					} else {
+						$('#' + 'sc' +  i + '-' + j).parent().remove();
+					}		
+		
+			
+			}
+		}
+		
+		notifyUser(this.searchclauses.length,'debug');
+		
+		// reset focused
+		//$('.sc-wrapper','#searchclauselist').each(function(){
+		//	$(this).removeClass("focused");
+		//});
+		//$('#sc0-0').addClass("focused");
+	},
+	
+	//TODO remove only last items
+	removesearchclause: function (i, j) {
+		notifyUser("removing sc:"  + i + "," + j,'debug');
+		
+		if ((j == 0) && (i == 0)){
+			searchclauseset.searchclauses[i][j].index = "";
+			searchclauseset.searchclauses[i][j].is_category = false;
+			searchclauseset.searchclauses[i][j].relation = "=";
+			searchclauseset.searchclauses[i][j].value = "";
+			$('#sc0-0').find('.index-input').val("");
+			$('#sc0-0').find('.rel_input').val("=");
+			$('#sc0-0').find('.value-input').val("");			
+			notifyUser("cannot remove", 'debug');
+			return;
+		}
+		if ((j == 0) && (i < this.searchclauses.length - 1)){
+			notifyUser("cannot remove",'debug');
+			return;
+		}
+		if (j < this.searchclauses[i].length - 1){
+			notifyUser("cannot remove",'debug');
+			return;
+		}
+		this.searchclauses[i].splice(j, 1);
+		 
+		if  (j == 0){
+			this.searchclauses.splice(i, 1);
+			$('#' + 'sc' +  i + '-' + j).parent().parent().remove();
+		} else {
+			$('#' + 'sc' +  i + '-' + j).parent().remove();
+		}		
+
+		notifyUser("sc removed, new sc.length:"  + this.searchclauses.length,'debug');
+		for (var j = 0; j < this.searchclauses.length; j++) {
+			notifyUser("  new sc.or_length:"  + this.searchclauses[j].length,'debug');
+		}	
+		// reset focused
+		$('.sc-wrapper','#searchclauselist').each(function(){
+			$(this).removeClass("focused");
+		});
+		$('#sc0-0').addClass("focused");
+		
+	},
+	/*
+	// just test
+	load: function(i,j,rel,data) {
+		if (data["triple"] == null ) {
+			 this.searchclauses[i][j].index =  data["searchClause"]["index"];
+			 this.searchclauses[i][j].relation =  data["searchClause"]["relation"]["value"];
+			 this.searchclauses[i][j].value =  data["searchClause"]["term"];
+			 
+			 $('#sc0-0','#searchclauselist').find('.index-input').val(data["searchClause"]["index"]);
+			 $('#sc0-0','#searchclauselist').find('.relation_input').val(data["searchClause"]["relation"]["value"]);
+			 $('#sc0-0','#searchclauselist').find('.value-input').val(data["searchClause"]["term"]);
+		 } else {
+			 if (data["triple"]["boolean"]["value"] == "and") {
+				 //var sc = new SearchClause("","","");
+				 //this.addsearchclause(sc, "and", _i, _j)
+				 // update(leftO)
+				 // update(rightO)
+				 load(i,j,"",data["triple"]["leftOperand"]);
+				 i = this.searchclauses.length;
+				 load(i+1,j,"and",data["triple"]["rightOperand"]);
+			 } else {
+				 load(i,j,"",data["triple"]["leftOperand"]);
+				 j = this.searchclauses[i].length;
+				 load(i,j,"or",data["triple"]["rightOperand"]);
+			 }
+			 
+		 }
+		 
+	},
+	*/
+	// from querystring to searchclauses
+	buildfromquerystring: function(){
+		var arr = Query.simplequerystring(this.sctext);
+		var sc, screl;
+		
+		this.clear();
+		
+		//notifyUser(arr,'debug');
+		var arr_and = arr.split(" and ");
+		screl = "";
+		for( var i=0;i<arr_and.length;i++){
+			var scstring = $.trim(arr_and[i]);
+			
+			if (scstring.substring(0,1) == "(" && scstring.substring(scstring.length-1) == ")") {
+				scstring = scstring.substring(1,scstring.length-1);
+				scstring = $.trim(scstring);
+			}
+			
+			//notifyUser("i:" + scstring,'debug');
+			var arr_or = scstring.split(" or ");
+			if (i > 0) {screl = "and";}
+			for( var j=0;j<arr_or.length;j++){
+				var scstr = $.trim(arr_or[j]);
+				
+				// parse rel
+				//notifyUser("j:"+scstr,'debug');
+				var n;
+				var scarr;
+				var rel;
+				n = scstr.indexOf("=");
+				if (n > 0){
+					scarr = scstr.split("=");
+					rel = "=";
+				}
+				n = scstr.indexOf(" any ");
+				if (n > 0){
+					scarr = scstr.split(" any ");
+					rel = "any";
+				}
+				n = scstr.indexOf(" contains ");
+				if (n > 0){
+					scarr = scstr.split(" contains ");
+					rel = "contains";
+				}
+				n = scstr.indexOf("<");
+				if (n > 0){
+					scarr = scstr.split("<");
+					rel = "<";
+				}
+				n = scstr.indexOf(">");
+				if (n > 0){
+					scarr = scstr.split(">");
+					rel = ">";
+				}
+				n = scstr.indexOf(" all ");
+				if (n > 0){
+					scarr = scstr.split(" all ");
+					rel = "all";
+				}
+				//var simplecalusetext = scstr.split("");
+				if (j > 0) {screl = "or";}
+				//notifyUser("scarr:" + scarr[0] + scarr[1],'debug');
+				if (scarr == undefined) {
+					sc = new SearchClause('','','');
+				} else {
+					sc = new SearchClause(scarr[0],rel,scarr[1]);
+				}
+
+				this.addsearchclause(sc,screl,i,j);
+				//searchclauseset.addsearchclause(sc,screl,i,j);
+			}
+		}
+	},
+	
+	// from searchclauses to querystring
+	buildsctext: function(){
+	   var uncompletequery = false;
+	   var ptext = "";
+	   
+		if ($('.searchtype_text','#search').size() > 0) {
+			this.sctext = $('#query_area').val();
+		} else {
+		
+			this.sctext = "";
+			for (var i = 0; i < this.searchclauses.length; i++) {
+				if ( i>0) this.sctext = this.sctext + " and ";
+				this.sctext = this.sctext + " ( ";
+				for (var j = 0; j < this.searchclauses[i].length; j++) {
+					if ( j>0) this.sctext = this.sctext + " or ";
+					this.sctext = this.sctext + " ( ";
+					ptext = this.searchclauses[i][j].PlainText();
+					if (ptext.length == 0){
+						uncompletequery = true;
+					}
+					this.sctext = this.sctext + ptext;
+					this.sctext = this.sctext + " ) ";
+				}
+				this.sctext = this.sctext + " ) ";
+			}
+			
+		}	
+		if (uncompletequery){
+			this.sctext = "";
+		}
+		notifyUser(this.sctext);
+	},
+	
+	updatedata: function(term, is_category, category, value) {	 
+		
+		var i = $('.focused','#searchclauselist').closest('.sc-i').attr("id");
+		var j = $('.focused','#searchclauselist').closest('.sc-j').attr("id");
+		
+		if (term != undefined){
+			$('.focused','#searchclauselist').find('.index-input').val(term);
+			searchclauseset.searchclauses[i][j].index = term.replace(" ","_");
+		}
+		
+		if (value == undefined){
+			$('.focused','#searchclauselist').find('.value-input').focus();
+		} else {
+			$('.focused','#searchclauselist').find('.value-input').val(value);
+			searchclauseset.searchclauses[i][j].value = value;
+		}
+		
+		if (is_category) {
+			searchclauseset.searchclauses[i][j].is_category = true;
+			searchclauseset.searchclauses[i][j].category = category;
+		} else {
+			searchclauseset.searchclauses[i][j].is_category = false;
+		}
+		
+	},
+	
+	initAutocomplete: function() {
+		notifyUser("init autocomplete",'debug');
+		
+		for (var i = this.searchclauses.length - 1; i > -1; i--){
+			for (var j = this.searchclauses[i].length - 1; j > -1; j--){
+					this.searchclauses[i][j].initAutocomplete();		
+			}
+		}	
+	}
+};
+
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui.js	(revision 1516)
@@ -0,0 +1,1125 @@
+/**
+ * @fileOverview  This is the main file, contains main app function (jquery-initialization). 
+ * The app main function runs setup functionality, which covers this domains:
+ * <dl>
+ * <dt>the variable initialization<dt>
+ * 	<dd>functions from mdservice_searchclause.js, mdservice_widget.js, mdservice_ui_helpers.js</dd>
+ * <dt>loadData()</dt> 
+ * 	<dd>loading data from repository and creating particular client-side representations  - functions from <a>mdservice_ui_load.js</a></dd>
+ * <dt>creating of ui-layout</dt>
+ * 	<dd>i.e. split UI to individual panes  - functions from mdservice_ui_layout.js</dd>
+ * <dt>addFunctionality()</dt>
+ * 	<dd>bind handlers to events of ui-elements (function directly in mdservice_ui.js)</dd>
+ * </dl>
+ * @author 
+ * @version 
+ */
+
+$(function(){
+		// turn on debugging (see jquery.xslTransform.js)
+		var DEBUG = false;
+	
+		// check for jQuery and Sarissa
+		try{
+			jQuery;
+		}catch(e){
+			alert('You need to include jQuery!');
+		}
+		
+		/////// INIT VARIABLE SETTINGS
+		// get url parameters
+		url_params = getUrlVars();
+		workspace = new Workspace();
+		// create searchclauses
+		//searchclauseset.addsearchclause(new SearchClause("","",""),"",0,0);
+		// load query if exists params
+		//loadQueryFromUriParams();	 
+		// create widgets
+		 columns_widget = new ListWidget($('#columns-widget'), "columns");
+		 collections_widget = new ListWidget($('#collections-widget'), "collections");
+		 listwidgetset.add(columns_widget);
+		 listwidgetset.add(collections_widget);
+		//createInfos();
+		
+		//////////// LOAD DATA
+		loadData();
+		//handleBubble();
+	
+		addFunctionality();
+		//addVisuals();
+		
+		//queryuriparams loaded after collections and workspaceprofile are loaded
+		//loadQueryFromUriParams();	
+		
+		////////////// CREATE  UI-LAYOUT
+		createBlock('base','');
+		//jQuery.each(blocks_settings,function(index,block){
+		//	jQuery.each(block.sublayouts,function(index,name){
+		//		createLayouts(name);
+		//	});
+		//});
+		createLayouts('base');
+
+		initDetailFloat();
+		// autocomplete correction
+		searchclauseset.addsearchclause(new SearchClause("","",""),"",0,0);
+		createInfos();
+		
+		detailcaller.calldetail(undefined, "info");
+	
+});
+
+function createInfos(){
+	var info = "<span class='cmd cmd_info'></span>";
+	$('.cmds-ui-block').children('.header').append(info);
+	createTooltip($('.cmds-ui-block').children('.header'));
+	
+	$('.cmds-ui-block').children('.header').children('.cmd_info').click(function(){
+		//var a = $(this).parent().next().attr('id');
+		//var uri = window.location.pathname + "static/info.xml";
+		//$.get(uri,{"id":a}, showDetail,'html');
+		detailcaller.calldetail($(this));
+		return false;
+	});	
+}
+
+
+function getSelectedRepository(){
+	//var id = parseInt($('#repositories_select').find("option:selected").val());
+	return $('#repositories_select').find("option:selected").text();//val();
+
+}
+
+/**
+ * This function is called during the initialization sequence and binds event-handlers to events of ui-elements.
+ * @function
+ */
+function addFunctionality(){
+	// DEL COMMAND
+	/*
+	$('.ui-dialog-titlebar .cmd_del').live('click',function(){
+		var did;
+		if ($(this).closest('.ui-dialog').length > 0){
+			did = $(this).closest('.ui-dialog').find('.detail-wrapper').attr('id');
+		}
+		if (did != undefined){
+			detail = detailcaller.getdetail(did);
+			detail.close();
+		}
+		$(this).closest('.ui-dialog').hide();
+	})
+*/
+	/**
+	 * Remove a query from queryset
+	 * FIXME: shouldn't this primarily delete the query-object from the queryset? 
+	 * @event 
+	 * @name clickQueryremove
+	 */
+	$('.query_header .cmd_del').live('click', function(){
+		$(this).closest('.query_wrapper').remove();
+	});
+
+	//TODO dialog
+	$('.detail-header .cmd_del').live('click', function(){
+		var did, detail;
+		
+		if ($(this).parent().hasClass('detail-header')){
+			var dw = $(this).closest('.detail-wrapper');
+			did = dw.attr('id');
+			dw.hide();
+		}
+		else {
+			if ($(this).parent().siblings('.ui-dialog-content').length > 0){
+				did = $(this).parent().siblings('.ui-dialog-content').find('.detail-wrapper').attr('id');
+			}
+		}	
+		if (did != undefined){
+			detail = detailcaller.getdetail(did);
+			detail.close();
+		}
+	});
+	
+	// DETAIL-CALLER
+	/*
+	$('.detail-caller, .cmd_detail').live('click',  function(event) {		
+		$(this).parent().children('.detail').toggle();
+		$(this).children('.cmd_down, .cmd_up').toggleClass('cmd_down cmd_up');		
+	});
+	*/
+	$('.detail-caller a').live('click',  function(event) {		
+		event.preventDefault();
+	});
+	// open detail (from result-set, but also already within detail-view (ResourceRef, IsPartOf)	
+	$('.result a.internal, .mdrecord-detail a.internal').live('click',  function(event) {
+		event.preventDefault();		
+		
+		var uri = $(this).attr('href'); // + " body";
+		//notifyUser('internal-link: ' + uri,'debug' );
+		//$.get(uri, showDetail,'html');
+		detailcaller.calldetail(undefined, "record", uri);
+	});
+
+	$('.detail-content a').live('click',  function(event) {
+		
+		if ($(this).attr("target") == "_blank"){
+			return true;
+		} else {
+			event.preventDefault();		
+			var uri = $(this).attr('href'); // + " body";
+			if ($(this).attr("class") == "query"){
+				var urlparams = getUrlVars(uri);
+				loadQueryFromUriParams(urlparams);
+			} else {
+				var type;
+				if ($(this).attr("class") == "bookmark"){
+					type = "record";
+				} else {
+					type = $(this).parents('.detail-wrapper').attr("id");
+					type = type.substring(7,type.length);
+				}
+			//	$.get(uri, showDetail,'html'); */
+				detailcaller.calldetail(undefined, type, uri);
+			}
+		}
+	});
+	$('.result a.external, .mdrecord-detail a.external').live('click',  function(event) {
+		
+		//event.preventDefault();		
+		var uri = $(this).attr('href'); // + " body";
+		notifyUser('resource-link: ' + uri,'debug' );
+	//	$.get(uri, showDetail,'html'); */
+	});
+	/*
+	$('.result .cmd_detail').live('click',  function(event) {	
+		//var qid = $(this).closest('.query_wrapper').attr('id');
+		//var query = queryset.getQuery(qid);
+		
+		var uri = $(this).parent().find("a").attr('href'); // + " body";
+		$.get(uri, showDetail,'html');
+	});
+	*/
+	$(".detail-caller, .cmd_detail").live('click',function(event) {
+		event.preventDefault();	
+		detailcaller.calldetail($(this));
+			
+	});		
+	$(".detail-caller-inline").live('click',function(event) {
+		event.preventDefault();
+		$(this).parent().children('.detail').toggle();
+		$(this).children('.cmd_down, .cmd_up').toggleClass('cmd_down cmd_up');
+			
+	});	
+	
+	// cmd_up cmd_down
+	$('.cmd_up').live('click',  function(event) {
+		if ($(this).closest('.detail-wrapper').length >  0 ) {
+			$(this).closest('.detail-wrapper').find('.detail-content').hide();
+		} else {
+			$(this).closest('.query_wrapper').find('.result').hide();
+		}
+		$(this).toggleClass('cmd_down cmd_up');					
+	});
+	$('.cmd_down').live('click',  function(event) {
+		if ($(this).closest('.detail-wrapper').length >  0 ) {
+			$(this).closest('.detail-wrapper').find('.detail-content').show();
+		} else {
+			$(this).closest('.query_wrapper').find('.result').show();
+		}
+		$(this).toggleClass('cmd_down cmd_up');				
+	});
+	
+	$('.cmd_publish').live('click', function(event){
+		var query = $(this).parent().data('query');
+		if (query != undefined){ // query
+			query.publish();
+		} else { // bookmarksets
+			var json = workspace.getTypedElement('user','bookmarkset');
+			var id = parseInt($('#bts_select').find("option:selected").val());
+			var bsjson = json[id];
+			$.get("/MDService2/virtualcollection/USER/" + bsjson.id,"", function(data){
+				if (bsjson.vcrid == 0){
+					var id = parseInt($(data).children().children('virtualcollectionid').text());
+					bsjson.vcrid = id;
+					workspace.savequeryset(bsjson, 1);
+				}
+			});
+		}
+
+	});
+	
+	//////////////////////////////////////////////
+	$('#searchretrieve').submit( function(event) {
+		event.preventDefault();
+		//hideWelcomeMessage();
+		searchclauseset.buildsctext();
+		notifyUser(searchclauseset.sctext,'debug');
+					
+		//submit_query (columns_widget.getColumnsListText(),searchclauseset.sctext, $('#input-simplequery').attr("value"), $('#input-withsummary').attr("checked"));
+		
+		var query = searchclauseset.sctext;
+		var squery = $('#input-simplequery').attr("value");
+		// TODO we dont use columns-widget
+		var columns = "";//columns_widget.getColumnsListText();
+		var collections = collections_widget.widgets; //searchclauseset.sctext;
+		//var ws  = $('#input-withsummary').attr("checked");
+		
+		notifyUser("processing query");
+		
+		if (jQuery.trim(query).length == 0){
+			query = null;
+		}
+		if (jQuery.trim(squery).length == 0){
+			squery = null;
+		}
+		
+		var q = new Query(collections, columns, query, squery); //actions.collections.current, query );
+		q.repository = getSelectedRepository();
+		//if (ws) {
+		//	q.options = "withSummary";
+		//}
+		notifyUser("submit_query:" + q.query_uri(),'debug');
+		queryset.addquery(q);
+	});
+	
+	$('.autocomplete-select-caller').live('click',  function(event) {
+		
+		$(this).closest(".index-context").prev().parent().find(".autocomplete-input").val($(this).text()).change();		
+		$(this).closest(".index-context").hide();
+	});
+	$('.autocomplete-select-caller a').live('click',  function(event) {		
+		event.preventDefault();
+	});
+	
+	
+	$('.comp_detail input').live('keyup',  function(event) {			
+		$('#srquery').val(
+				$(this).parent().children('span.cmdelem_name').text()
+				+ "=" + $(this).val() );
+	});
+	
+	
+	 $('a.open-in-context').live('click', function(event) {
+			event.preventDefault();
+			var uri = $(this).attr('href');
+			/* notifyUser("open_incontext:" + uri);
+			$(this).after("<div class='ui-context-dialog cmds-ui-block' ></div>");
+			var trg = $(this).next(".ui-context-dialog");
+			trg.show();						
+			$(trg).load(uri); //function(event) {	} */
+			var contextual_uri = uri.replace('htmlpage','htmldetail'); 		
+			
+			$.get(contextual_uri, showDetail,'html');
+	});
+	
+// RECORDSET searchRetrieve
+	 /*
+	$('#searchretrieve').submit( function(event) {
+			event.preventDefault();
+			//hideWelcomeMessage();
+			searchclauseset.buildsctext();
+			notifyUser(searchclauseset.sctext,'debug');
+			//submit_query ($('#columns_list').attr("value"),searchclauseset.sctext, $('#input-simplequery').attr("value"));			
+			submit_query (columns_widget.getColumnsListText(),searchclauseset.sctext, $('#input-simplequery').attr("value"), $('#input-withsummary').attr("checked"));
+	});
+*/
+	$('#columns-widget .cmd_save').click(function(event) {
+		var terms = [{}];	
+			
+		var id = $("#ts_select option").size();
+		var name = "termset_" + id;
+		
+		columns_widget.getListWidget().find('.list-item').each(function(i,elem){
+			terms[i] = $(elem).text();
+		});
+		
+		var dt = new Date();
+		var str_time = dateFormat(dt);//dt.toString("dd/mm/yyyy HH:mm:ss");
+		var jsont = {"name":name, "time" : str_time, "Terms" :terms};
+		if (jsonw["WorkspaceProfile"]["CustomTermsets"] == undefined) {
+			jsonw["WorkspaceProfile"]["CustomTermsets"] = [{}];
+		}
+		jsonw["WorkspaceProfile"]["CustomTermsets"][id] = jsont;
+		
+		//saveWorkspace("USER");
+		Workspace.save("USER");
+		loadTermsets(jsonw["WorkspaceProfile"]["CustomTermsets"]);
+		//createTermsUI(jsonw["WorkspaceProfile"]["CustomTermsets"][id],$('#userterms'));
+		$("#ts_select option").removeAttr("selected");
+		$("#ts_select option").last().attr("selected","selected");
+		$('#ts_input').attr("value",name);
+		createTermsUI(jsonw["WorkspaceProfile"]["CustomTermsets"][id],$('#userterms'));
+	});
+	
+	/*
+	$('#querylist .query_header').find('.cmd_del').live('click',  function(event) {
+		//showTermDetail($(this).parent().text());
+		
+		queryset.removequery($(this).closest('.query_wrapper').attr('id'));
+					
+	});
+*/
+	/*
+	$('#querylist .cmd_up').live('click',  function(event) {
+		$(this).closest('.query_wrapper').find('.result').hide();
+		$(this).toggleClass('cmd_down cmd_up');					
+	});
+
+*/
+	
+	$('#detail_query .cmds .cmd_save').live('click',  function(event) {
+		//qid = $(this).data('query').listid;
+		qid = $(this).data('qid');
+		notifyUser("here I would save query: " + qid, "debug");
+		var q = queryset.getQuery(qid);
+		q.save();
+		//Workspace.saveQuery($(this).data('query'));
+	});
+	$('#detail_query .cmds .cmd_savenew').live('click',  function(event) {
+		//qid = $(this).data('query').listid;
+		qid = $(this).data('qid');
+		notifyUser("here I would savenew query: " + qid, "debug");
+		var q = queryset.getQuery(qid);
+		q.id = 0;
+		q.save();
+		//Workspace.saveQuery($(this).data('query'));
+	});
+
+	/**
+	 * FIXME: this should only invoke appropriate query-function storing the query to workspaceprofile
+	 */
+	$('#querylist .cmd_save').live('click',  function(event) {
+		// bookmark
+		if ($(this).parents('.result').length > 0){
+			qstring = $(this).parent().find("a").attr('href');
+			qstring = qstring.substring(18,qstring.length);
+			
+			var q = new Query([],"",qstring,"");
+			q.bookmark = 1;
+			q.save();
+			
+		}
+	});
+	/*	
+	$('#querylist .cmd_save').live('click',  function(event) {
+		
+		var qid = "";
+		var qstring = "";	
+		var json_coll = "null";
+		var json_cols = "null";
+		var squery = "";
+		var bookmark = "0";
+		var json_options = "null";
+		
+		if ($(this).parents('.result').length > 0){
+			qstring = $(this).parent().find("a").attr('href');
+			qstring = qstring.substring(18,qstring.length);
+			bookmark = "1";
+		} else {
+			qid = $(this).closest('.query_wrapper').attr("id");
+			qstring = queryset.getquerystring(qid);	
+			json_coll = queryset.getcollections(qid);
+			json_cols = queryset.getcolumns(qid);
+			squery = queryset.getsquery(qid);
+			json_options = queryset.getoptions(qid);
+		}
+		notifyUser("saving query: " + qid, "debug");
+		// JSON conversion
+		if (qstring.length == 0){
+			qstring = "[NULL]";
+		}
+		if (squery.length == 0){
+			squery = "[NULL]";
+		}
+
+		var id = parseInt($("#qts_select option:selected").val());
+		var iq = $('#userqueries').children().size();
+	
+		if (iq == 0){
+			jsonw["WorkspaceProfile"]["Querysets"][id]["Queries"] = [{}];
+		}
+		var dt = new Date();
+		var str_time = dateFormat(dt);//dt.toString("dd/mm/yyyy HH:mm:ss");
+		var jsonq = {"name":"", "squerystring":squery, "querystring":qstring,"searchclauses":"null" , "collections" : json_coll, "columns" : json_cols, "options" : json_options, "bookmark" : bookmark, "time" : str_time};
+		
+		var name;
+		if (bookmark == "1") {
+			qstring = Url.decode(qstring);
+			var s = qstring.split(':');
+			name = s[s.length - 2] + ":" + s[s.length - 1];
+		} else {
+			name = Query.fullformatstring(jsonq);
+		}
+		jsonq.name = name;
+		
+		jsonw["WorkspaceProfile"]["Querysets"][id]["Queries"][iq] = jsonq;
+		//saveWorkspace("USER");
+		Workspace.save("USER");
+		appendQueryUI(jsonw["WorkspaceProfile"]["Querysets"][id]["Queries"][iq],iq, $('#userqueries'));
+		
+		//$("#qs_select").append(new Option(Query.simplequerystring(qstring),iq));
+	});
+	*/
+	/*
+	$('#querylist .cmd-xml').live('click',  function(event) {
+		var qid = $(this).closest('.query_wrapper').attr("id");
+
+		queryset.getQuery(qid).open('xml');
+	});
+	$('#querylist .cmd-page').live('click',  function(event) {
+		var qid = $(this).closest('.query_wrapper').attr("id");
+
+		queryset.getQuery(qid).open('htmlpage');
+	});
+	*/
+	/*
+	$('#querylist .cmd-link').live('click',  function(event) {
+		/* var qid = $(this).closest('.query_wrapper').attr("id");
+		var qstring = queryset.getquerystring(qid);	
+		var json_coll = queryset.getcollections(qid);
+		var json_cols = queryset.getcolumns(qid);
+		var squery = queryset.getsquery(qid);
+		// JSON conversion
+		if (qstring.length == 0){
+			qstring = "[NULL]";
+		}
+		if (squery.length == 0){
+			squery = "[NULL]";
+		}		
+		var jsonq = {"squerystring":squery, "querystring":qstring,"searchclauses":"null" , "collections" : json_coll, "columns" : json_cols};
+		///
+		
+		queryset.getQuery(qid).open();
+	});
+	*/
+	/*
+	$('.cmd_select').live('click',  function(event) {
+		var qid = $(this).closest('.query_wrapper').attr("id");
+					
+		searchclauseset.sctext = queryset.getquerystring(qid);
+		searchclauseset.buildfromquerystring();
+	});
+	*/
+	/**
+	 * FIXME: this looks like a typo: #queryslist -> #querylist  
+	 */
+	$('#queryslist .cmd_reload').live('click',  function(event) {
+		var qid = $(this).closest('.query_wrapper').attr("id");
+
+		queryset.resubmit(qid);
+		
+	});
+	
+	
+	
+	$('.cmd_sc_delete').live('click',  function(event) {
+		var i = $(this).closest('.sc-i').attr('id');
+		var j = $(this).closest('.sc-j').attr('id');
+		//notifyUser(i + j,'debug');
+		searchclauseset.removesearchclause(i,j);
+					
+	});
+	$('.cmd_add_and').live('click',  function(event) {
+		//showTermDetail($(this).parent().text());
+		//$(this).next().hide();
+		$(this).attr("value","AND");
+		var searchclause = new SearchClause("","","");
+		var i = $(this).closest('.sc-i').attr('id');
+		var j = $(this).closest('.sc-j').attr('id');
+		//notifyUser(i + j,'debug');
+		searchclauseset.addsearchclause(searchclause,"and",i,j);
+					
+	});
+	$('.cmd_add_or').live('click',  function(event) {
+		//showTermDetail($(this).parent().text());
+		//$(this).next().hide();
+		var i,j;
+		$(this).attr("value","OR");
+		var searchclause = new SearchClause("","","");
+		searchclauseset.addsearchclause(searchclause,"or",$(this).closest('.sc-i').attr('id'),$(this).closest('.sc-j').attr('id'));
+					
+	});
+
+	///// QUERYSETS
+	$('#qts_save').click(function(){
+		var id = $("#qts_select option:selected").val();
+		//notifyUser($('#qts_input').val() + $('#qts_input').text(),'debug');
+		workspace.user_json["WorkspaceProfile"]["Querysets"][id]["name"] = $('#qts_input').val();
+		//workspace.save("USER");
+		workspace.savequeryset(workspace.user_json["WorkspaceProfile"]["Querysets"][id],0);
+		
+		$("#qts_select option:selected").text( $('#qts_input').val());
+		
+	});
+	$('#qts_add').click(function(){
+		//var new_name = "new_queryset";
+		
+		//workspace.addqueryset(new_name);
+		//var id = workspace.user_json["WorkspaceProfile"]["Querysets"].length-1;
+		//workspace.savequeryset(workspace.user_json["WorkspaceProfile"]["Querysets"][id],0);
+		//workspace.save("USER");
+		var q = workspace.addelement('queryset');
+		workspace.savequeryset(q, 0);
+		//todo
+		var id = $('#qts_select option').size();
+		$("#qts_select").append(new Option(q["name"], id));
+		$("#qts_select").find('option').attr("selected","false");
+		$("#qts_select").find('option').last().attr("selected","true");
+		$('#qts_input').val(q["name"]);
+	});
+	$('#qts_delete').click(function(){
+		var qsid = parseInt($("#qts_select option:selected").val());
+		workspace.removeelement("queryset", qsid);
+		workspace.save("USER");
+		//update
+		loadQuerysets("user");
+	});
+
+	//BOOKMARKSETS
+	$('#bts_save').click(function(){
+		var id = $("#bts_select option:selected").val();
+		workspace.user_json["WorkspaceProfile"]["Bookmarksets"][id]["name"] = $('#bts_input').val();
+		workspace.savequeryset(workspace.user_json["WorkspaceProfile"]["Bookmarksets"][id],1);
+		
+		$("#bts_select option:selected").text( $('#bts_input').val());
+	});
+	$('#bts_add').click(function(){
+		var b = workspace.addelement('bookmarkset');
+		//var id = workspace.user_json["WorkspaceProfile"]["Bookmarksets"].length-1;
+		//workspace.savequeryset(workspace.user_json["WorkspaceProfile"]["Bookmarksets"][id],1);
+		workspace.savequeryset(b,1);
+		
+		var id = $('#bts_select option').size();
+		$("#bts_select").append(new Option(b["name"], id));
+		$("#bts_select").find('option').attr("selected","false");
+		$("#bts_select").find('option').last().attr("selected","true");
+		$('#bts_input').val(b["name"]);
+	});
+	$('#bts_delete').click(function(){
+		var bsid = parseInt($("#bts_select option:selected").val());
+		
+		workspace.removeelement("bookmarkset", bsid);
+		workspace.save("USER");
+		//update
+		loadBookmarksets("user");
+	});
+
+	////////////////////////////////////////////////
+	$('#ts_save').click(function(){
+		var id = $("#ts_select option:selected").val();
+		//notifyUser($('#qts_input').val() + $('#qts_input').text(),'debug');
+		jsonw["WorkspaceProfile"]["CustomTermsets"][id]["name"] = $('#ts_input').val();
+			
+		$("#ts_select option:selected").text( $('#ts_input').val());
+		//saveWorkspace("USER");
+		Workspace.save("USER");
+	});
+	$('#ts_add').click(function(){
+		var new_name = "new_termset";
+		
+		var id = $('#ts_select option').size();
+		var dt = new Date();
+		var str_time = dateFormat(dt);//dt.toString("yyyy-MM-dd HH:mm:ss");
+		
+		if (id == 0){
+			jsonw["WorkspaceProfile"]["CustomTermsets"] = [{}];
+		}
+	
+		jsonw["WorkspaceProfile"]["CustomTermsets"][id] = {"name":new_name,"created":str_time , "Terms" : "null"};
+		
+		//saveWorkspace("USER");
+		Workspace.save("USER");
+		//todo
+		
+		//loadWorkspace(jsonw["WorkspaceProfile"]["Querysets"]);
+		$("#ts_select").append(new Option(new_name, id));
+		$("#ts_select").find('option').attr("selected","false");
+		$("#ts_select").find('option').last().attr("selected","true");
+		$('#ts_input').val(new_name);
+		createTermsUI(jsonw["WorkspaceProfile"]["CustomTermsets"][id],$('#userterms'));
+	});
+	$('#ts_delete').click(function(){
+		var count = $("#ts_select option").size();
+		
+		//if (count > 1){
+			var id = parseInt($("#ts_select option:selected").val());
+			var size = jsonw["WorkspaceProfile"].CustomTermsets.length;
+		
+			for (var i=id;i<size-1;i++){
+				jsonw["WorkspaceProfile"].CustomTermsets[i] = jsonw["WorkspaceProfile"].CustomTermsets[i+1];
+			}
+		
+			delete jsonw["WorkspaceProfile"].CustomTermsets[size-1];
+			jsonw["WorkspaceProfile"]["CustomTermsets"].length = size-1;
+			// set null string , if 0 termsets
+			if (count == 1) {
+				jsonw["WorkspaceProfile"]["CustomTermsets"] = "null";
+			}
+			//saveWorkspace("USER");
+			Workspace.save("USER");
+			loadTermsets(jsonw["WorkspaceProfile"]["CustomTermsets"]);
+	});
+	
+	$('#userterms .cmd_load').live('click',function(event){
+		var term = String.trim($(this).parent().find('a').text());
+		columns_widget.add(new ListItem(term));
+		
+	});
+	$('#userterms .cmd_del').live('click', function(event){
+		var id = parseInt($("#ts_select option:selected").val());
+		var str = $(this).parent().find('a').attr("href");
+		var iq = parseInt(str.substring(10));
+		var size = jsonw["WorkspaceProfile"]["CustomTermsets"][id]["Terms"].length;
+		
+		for (var i=iq;i<size-1;i++){
+			jsonw["WorkspaceProfile"]["CustomTermsets"][id]["Terms"][i] = jsonw["WorkspaceProfile"]["CustomTermsets"][id]["Terms"][i+1];
+		}
+	
+		delete jsonw["WorkspaceProfile"]["CustomTermsets"][id]["Terms"][size-1];
+		jsonw["WorkspaceProfile"]["CustomTermsets"][id]["Terms"].length = size-1;
+		
+		if (size == 1){
+			jsonw["WorkspaceProfile"]["CustomTermsets"][id]["Terms"] = "null";
+		}
+		
+		//saveWorkspace("USER");
+		Workspace.save("USER");
+		loadTermsets(jsonw["WorkspaceProfile"]["CustomTermsets"]);
+		//$("#ts_select option").remove();
+		//$("#ts_select option").first().attr("selected","true");
+	});
+
+	
+	$('#collections .cmd_load').live('click',function(event){
+		//hideWelcomeMessage();
+		var collection_text = "";
+		var coll = $(this).parent();
+		var collections = [];
+		//collections.splice(0, collections.length);
+		collections[0] = new Collection($(coll).attr("handle"), String.trim($(coll).children('a').text()));
+		var columns = columns_widget.getListText();//$('#columns_list').attr("value");
+		//var collections = collections_widget.getListText();
+		var query = new Query(collections,columns,"","");
+		query.repository = getSelectedRepository();
+	
+		//searchclauseset.clear();
+		queryset.addquery(query);
+		//$('#collection_list').attr("value",query.getcollectiontext("name"));
+		collections_widget.load(query.collection);
+	
+	});
+	$('#serverqueries .cmd_load').live('click',function(event){
+		
+		//var id = parseInt( $("#serverqts_select option:selected").val());
+		//var str = $(this).parent().find('a').attr("href");
+		//var iq = parseInt(str.substring(9));
+		//var json = jQuery.parseJSON($("#serverqs").attr("data"));
+		//var q = json["WorkspaceProfile"]["Querysets"][id]["Queries"][iq];
+		
+		var q = $(this).closest('.cmds-elem-plus').data("query");//json");
+		loadQuery(q);
+	});
+	$('#userqueries .cmd_load').live('click',function(event){
+		var q = $(this).closest('.cmds-elem-plus').data("query");//json");
+		loadQuery(q);
+	});
+	$('#userqueries .cmd_del').live('click', function(event){
+		//var count = $("#userqueries li").size();
+		/*
+		var id = parseInt($("#qts_select option:selected").val());
+		var str = $(this).parent().find('a').attr("href");
+		var iq = parseInt(str.substring(7));
+		var size = workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"].length;
+		
+		for (var i=iq;i<size-1;i++){
+			workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"][i] = workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"][i+1];
+		}
+	
+		delete workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"][size-1];
+		workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"].length = size-1;
+		
+		if (size == 1){
+			workspace.user_json["WorkspaceProfile"]["Querysets"][id]["Queries"] = "null";
+		}
+		*/
+		//saveWorkspace("USER");
+		var id2 = parseInt($("#qts_select option:selected").val());
+		var id1 = parseInt( $(this).parent().find('a').attr("href").substring(7));
+		workspace.removeelement("query", id1, id2);
+		workspace.save("user");
+		loadQuerysets("user");
+		//$("#qs_select option").remove();
+		//$("#qs_select option").first().attr("selected","true");
+	});
+
+	$('.detail-wrapper .cmd_withsummary').live('click',function(event){
+		var detail = $(this).closest('.detail-wrapper').data('detail');
+		var query = detail.query;
+		// aaaload new query
+		query.summaryinfo();
+		// copy summary data
+		//detailcaller.calldetail($(query.container).find('.result-header').find('.cmd_detail'));
+	});
+	
+	$('#bookmarks .cmd_load').live('click',function(event){
+		var q = $(this).closest('.cmds-elem-plus').data("query");//json");
+		var uri = "/MDService2/record/htmldetail/" + q.query;
+		detailcaller.calldetail(undefined, "record", uri);
+	});
+	$('#bookmarks .cmd_del').live('click', function(event){
+		var id2 = parseInt($("#bts_select option:selected").val());
+		var id1 = parseInt( $(this).parent().find('a').attr("href").substring(7));
+		workspace.removeelement("bookmark", id1, id2);
+		workspace.save("user");
+		loadBookmarksets();
+	});
+
+	
+	$('.ui-dialog-titlebar-del').live('click', function(event){
+		//$('#detail-float').dialog('close');
+		var t = $(this).parents('.ui-widget').children('.ui-dialog-content');
+		$(t).dialog('close');
+	});
+
+	$('.ui-dialog-titlebar-up').live('click', function(event){
+		var t = $(this).parents('.ui-widget').children('.ui-dialog-content');
+		
+		$(this).parents('.ui-widget').attr("tempheight",$(this).parents('.ui-widget').height());
+		//notifyUser("up(height):" + $(this).parents('.ui-widget').height(),'debug');
+		$(this).parents('.ui-widget').height(30);
+		//notifyUser("up(tempheight):" + $(this).parents('.ui-widget').attr("tempheight"),'debug');
+		
+		
+		//$(t).find(".ui-dialog-buttonpane:first, .ui-dialog-content").stop({clearQueue:true}).fadeOut(300);
+		//$(t).stop({clearQueue:true}).animate({height:'0px'},300);
+		
+		$(this).removeClass('cmd_up ui-dialog-titlebar-up');
+		$(this).addClass('cmd_down ui-dialog-titlebar-down');	
+	});
+	$('.ui-dialog-titlebar-down').live('click', function(event){
+		var t = $(this).parents('.ui-widget').children('.ui-dialog-content');
+		
+		var h = $(this).parents('.ui-widget').attr("tempheight");
+		//notifyUser("down(tempheight):" + h,'debug');
+		$(this).parents('.ui-widget').height(parseInt(h));
+		//notifyUser("down(height):" + $(this).parents('.ui-widget').height(),'debug');
+		
+		
+		//$(this).parents('.ui-widget').attr("tempheight",$(this).parents('.ui-widget').height());
+		//$(t).find(".ui-dialog-content, .ui-dialog-buttonpane:first").stop({clearQueue:true}).fadeIn(800)
+		//.end().stop({clearQueue:true}).animate({height:'100%'},300);
+
+		$(this).removeClass('cmd_down ui-dialog-titlebar-down');
+		$(this).addClass('cmd_up ui-dialog-titlebar-up');	
+	});
+
+}
+
+function initDetailFloat(){
+	$("#detail-float").dialog({ autoOpen: false});
+	$("#detail-float").dialog();
+	$("#detail-float").tabs();
+};
+function submit_query (columns, query, squery, ws) {
+	notifyUser("processing query");
+	
+	if (jQuery.trim(query).length == 0){
+		query = null;
+	}
+	if (jQuery.trim(squery).length == 0){
+		squery = null;
+	}
+	
+	var q = new Query(collections, columns, query, squery); //actions.collections.current, query );
+	q.repository = getSelectedRepository();
+	if (ws) {
+		q.options = "withSummary";
+	}
+	notifyUser("submit_query:" + q.query_uri(),'debug');
+	queryset.addquery(q);
+	//notifyUser("container" + q.container.attr('id'));
+	//$("#querylist").append("sdfdsf");	
+}
+
+/**
+ * allows to add ui-containers into the detail-pane.
+ * 
+ * Most of it is just to ensure a defined ordering:
+ * 1. info, 2. index, 3. query, 4. record
+ */
+function addToDetailList(elem, did){
+	var exists = false;
+	var index_elem = undefined;
+	var query_elem = undefined;
+	var record_elem = undefined;
+	var info_elem = undefined;
+	
+	$('#detailblock').children('.content').children().each(function(){
+		if ($(this).attr("id") == did){
+			exists = true;
+		}
+		if ($(this).attr("id") == "detail_index"){
+			index_elem = this;
+		}
+		if ($(this).attr("id") == "detail_query"){
+			query_elem = this;
+		}
+		if ($(this).attr("id") == "detail_record"){
+			record_elem = this;
+		}
+		if ($(this).attr("id") == "detail_info"){
+			info_elem = this;
+		}
+	});
+	if (!exists) {
+		if (did == "detail_record") {
+			$('#detailblock').children('.content').append(elem);
+		} else {
+			if (did == "detail_info") {
+				$('#detailblock').children('.content').prepend(elem);
+			} else {
+				if (did == "detail_index") {
+					if (info_elem != undefined) {
+						$(info_elem).after(elem);
+					} else {
+						if (record_elem != undefined) {
+							$(record_elem).before(elem);
+						} else {
+							$('#detailblock').children('.content').prepend(elem);
+						}
+					}
+				} else {
+					if (did == "detail_query") {
+						if (index_elem != undefined) {
+							$(index_elem).after(elem);
+						} else {
+							if (record_elem != undefined) {
+								$(record_elem).before(elem);
+							} else {
+								$('#detailblock').children('.content').append(elem);
+							}
+						}
+					} else {
+						$('#detailblock').children('.content').append(elem);
+					}
+				}
+			}
+		}
+
+	} else {
+		$('#detailblock').children('.content').children().each(function(){
+			if ($(this).attr("id") == did){
+				$(this).show();
+			}
+		});
+	}
+}
+
+function addToSClist (div, i, j, rel) {	
+	
+	var x;
+	
+	//notifyUser(i + "," + j + "," + rel);
+	if (rel == ""){
+		x = $('<div />').addClass("sc-i").addClass("and_level");
+		$(div).appendTo($(x).appendTo($('#searchclauselist')));
+		$(x).attr("id",i);
+	} else {
+		if (rel == "and") {
+			x = $('<div />').addClass("sc-i").addClass("and_level");
+			$(x).attr("id",i);
+			$(div).appendTo($(x).appendTo($('#searchclauselist')));
+		} else {
+			$(div).appendTo($('#searchclauselist').children()[i]);
+		}
+	}
+	
+	//$('#searchclauselist').append($(li));
+	
+}
+
+function addToQuerylist (x) {	
+	$("#querylist").prepend(x);	
+}
+
+function addToNotifylist (x) {	
+	$("#notifylist").prepend(x);	
+}
+
+function createTooltip(parentwidget) {
+	
+	 var ccmd;
+	 if (parentwidget == null) {
+		 ccmd = $('.cmd');
+	 } else {
+		 ccmd = $(parentwidget).find('.cmd');
+	 }
+	 $(ccmd).mouseover(function(){
+		 // command name
+		 var cmd = $(this).attr("class");
+		 cmd = cmd.substring(cmd.indexOf("cmd_"));
+		 cmd = cmd.split(" ")[0];
+		 
+		 // command place
+		 var place = "";
+		 if ($(this).parents('.content').length > 0) {
+			 place = $(this).parents('.content').attr("id") + ".";
+		 }
+		 if ($(this).parents('.block').length > 0) {
+			 place = $(this).parents('.block').attr("id") + ".";
+		 }
+		 
+
+		 // find tho tooltiptext
+		 var a = place + cmd;
+		
+		 if (tooltiptable[a] != null) {
+		 	s = tooltiptable[a];
+		 } else { 
+		 	if (tooltiptable[cmd] != null) {
+		 		s = tooltiptable[cmd];
+		 	} else {
+		 		s = a;
+		 	}
+		 }
+		 tooltip.show(s);
+	 });
+	 $(ccmd).mouseout(function(){
+		 tooltip.hide();
+	 });
+
+};
+function loadQuery(query){
+	query.repository = getSelectedRepository();
+	queryset.addquery(query);
+	
+	searchclauseset.sctext = query.query;
+	notifyUser(searchclauseset.sctext,'debug');
+	searchclauseset.buildfromquerystring();
+
+	//collections = query.collection;
+	collections_widget.load(query.collection);
+	columns_widget.load(query.columns.split(','));
+	$('#input-simplequery').attr("value",query.squery);
+	$('#input-withsummary').attr("checked",(query.options != null));
+	updateCollectionTree();
+
+};
+/*
+function loadQuery(q){
+	if (q["bookmark"] == "1") {
+		var uri = "/MDService2/record/htmldetail/" + q["querystring"];
+		detailcaller.calldetail(undefined, "record", uri);
+		//var uri = "/MDService2/record/htmldetail/" + q["querystring"];
+		//showDetail(null,'html');
+		//$.get(uri, showDetail,'html');
+	} else {
+		//hideWelcomeMessage();
+		var query = new Query([],"","","");
+		query.load(q);
+		query.repository = getSelectedRepository();
+		queryset.addquery(query);
+		
+		searchclauseset.sctext = query.query;
+		notifyUser(searchclauseset.sctext,'debug');
+		searchclauseset.buildfromquerystring();
+
+		//collections = query.collection;
+		collections_widget.load(query.collection);
+		columns_widget.load(query.columns.split(','));
+		$('#input-simplequery').attr("value",query.squery);
+		$('#input-withsummary').attr("checked",(query.options != null));
+		updateCollectionTree();
+	} 
+
+}
+*/
+function loadQueryFromUriParams(local_uri){
+	var url;
+	
+	if (local_uri == undefined){
+		url = url_params;
+	} else {
+		url = local_uri;
+	}
+	var q = url["q"];
+	var squery = url["squery"];
+	var collection = url["collection"];
+	var startItem = url["startItem"];
+	var maximumItems = url["maximumItems"];
+	var repository = url["repository"];
+	var columns = url["columns"];
+	if ((q != undefined) || (squery != undefined) || (collection != undefined)) {
+		if (q == undefined) {
+			q = "";
+		} else {
+			q = Url.decode(q);
+		}
+		if (squery == undefined) {
+			squery = "";
+		} 
+		if (columns == undefined) {
+			columns = "";
+		}
+		if (startItem == undefined) {
+			startItem = 1;
+		}
+		if (maximumItems == undefined) {
+			maximumItems = 10;
+		}
+		if (repository == undefined) {
+			repository = getSelectedRepository();
+		}
+		if (collection == undefined){
+			collection = "";
+		}
+		var collections = [];
+		if (collection.length > 0 ){
+			var coll = collection.split(",");
+			$.each(coll,function(i,item){
+					var n;
+					n = $('#collections').find(".folder:[handle='"+item+"']").text();
+					var simple_collection = new Collection(item, n);
+					collections[i] = simple_collection;
+			});
+		}
+		
+		var query = new Query(collections, columns, q, squery);
+		query.startItem = startItem;
+		query.maximumItems = maximumItems;
+		query.repository = repository;
+		
+		
+		queryset.addquery(query);
+		
+		searchclauseset.sctext = query.query;
+		notifyUser(searchclauseset.sctext,'debug');
+		searchclauseset.buildfromquerystring();
+
+		//collections = query.collection;
+		collections_widget.load(query.collection);
+		columns_widget.load(query.columns.split(','));
+		$('#input-simplequery').attr("value",query.squery);
+		$('#input-withsummary').attr("checked",(query.options != null));
+		updateCollectionTree();
+		/*
+		
+		searchclauseset.sctext = query.query;
+		notifyUser(searchclauseset.sctext,'debug');
+		
+		searchclauseset.buildfromquerystring();
+
+		$('#collection_list').attr("value",query.getcollectiontext("name"));
+	
+		columns_widget.load(query.columns.split(','));
+		//$('#columns_list').attr("value",query.columns);
+		$('#input-simplequery').attr("value",query.squery);	
+
+		$('#query-input').show();
+				                                         
+		//hideWelcomeMessage();
+		*/
+	}
+	
+}
+
+
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_detail.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_detail.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_detail.js	(revision 1516)
@@ -0,0 +1,538 @@
+ 
+/**
+ * @fileOverview The file for detail-call handling. Details are displayd differently based on settings for particular UI block.
+ * The file consists from Detail model and Detailset of all currently created detail-windows.
+ * @author 
+ * @version 
+ */
+
+/**
+ * 
+ * @constructor
+ */
+
+function Detail(detailwidget, name, url) {
+	this.detailwidget = detailwidget;
+	
+	this.did = '';
+	this.content_parent = undefined;
+	this.content_wrapper = '';
+	
+	this.url = url;
+	this.type = undefined;
+	this.name = name;
+	this.content = undefined;
+	this.temp_id = "";
+	this.query = undefined;
+	
+	this.setData();
+	 
+};
+Detail.prototype.update = function(detailwidget, url){
+	this.detailwidget = detailwidget;
+	this.temp_id = "";
+	this.query = undefined;
+	this.url = url;
+	this.setData();
+	
+};
+Detail.prototype.setData = function(){
+	
+	var widget = this.detailwidget;
+	
+	this.type = blocks_settings[this.name].detail.type;
+	switch (this.name){
+	case 'query':
+		//TODO class standard rename
+		this.content = $(widget).closest('.query_wrapper').find('.columns-wrapper');
+		this.url  = undefined;
+		this.temp_id  = $(widget).closest('.query_wrapper').attr('id');
+		this.query = $(widget).closest('.query_wrapper').data('query');
+		break;
+	case 'collections':
+		this.content = $('#collections-block');
+		this.url  = undefined;
+		break;
+	case 'record':
+		this.content = undefined;
+		if (widget != undefined){
+			this.url = $(widget).parent().find("a").attr('href');
+		}
+		break;
+	case 'values':
+		this.content = undefined;
+		var index = $(widget).closest('.sc-wrapper').find('.index-input').val();
+		if (index != ""){
+			this.url = "values/htmllist/?q=" + index + "&sort=size&repository=" + getSelectedRepository();//$(widget).parent().find("a").attr('href');
+		} 
+		break;
+	case 'index':
+		this.content = undefined;
+		this.url = 'terms/htmldetail/?q=all';
+		break;
+	case 'info':
+		this.content = undefined;
+		if (this.detailwidget == undefined){
+			if (this.url == undefined) {
+				this.url = '/MDService2/docs/xml/welcome #welcome';
+			}
+			if (this.url == null) {
+				this.url = '/MDService2/docs/xml/welcome #welcome';
+			}
+
+		} else {
+			//var a = $(this).parent().next().attr('id');
+			this.url = window.location.pathname + "static/info.xml";
+		}
+		break;
+	default:
+	}
+};
+Detail.prototype.getTitle = function(){
+	var title = "";
+	title = "DETAIL: " + this.name;
+	return title;
+};
+Detail.prototype.create = function(){
+	var cw = "<div id='" + this.did  + "' class='detail-wrapper ui-widget' >" + 
+	"<div class='detail-header ui-widget-header ui-state-default'>" +// ui-corner-top'>" +
+	"<span class='cmd cmd_get'></span>" + 
+	"<span class='inner-title'>" + this.getTitle() +"</span>" +
+	"<span class='cmd cmd_del'></span></div>" +
+	"<div class='detail-content content'></div>" +
+	"</div>";
+	this.content_wrapper = $(cw);
+	$(this.content_wrapper).data('detail', this);
+	
+};
+Detail.prototype.enrichContent = function(){
+	if (this.name == 'query'){
+		if ($(this.content).find('.columns-selected').children('.widget-wrapper').length == 0){
+			var query = this.query;//queryset.getQuery(this.temp_id);
+			//enrich link,xml
+			//options withSummary
+			//var options = "<input type='checkbox' checked='false' id='input-withsummary' name='WS'/><label>with Summary</label>";
+			
+			var links = "<a class='cmd cmd_xml' target='_blank' href='" + query.link("xml") + "'>sru</a> " +
+				"<a class='cmd cmd_link' target='_blank' href='" + query.link("fullpage") + "' >link</a> " +
+				"<span class='cmd cmd_withsummary'></span>";
+			$(this.content).find('.cmds').append($(links));
+			
+			
+			//enrich with selectionlist
+			var selectionlist  = new SelectionList($(this.content).find('.columns-selected'));
+			selectionlistset.add(selectionlist);
+			//selectionlist.listwidget.query = query;
+			selectionlist.load(workspace.getCustomTermsets());//jsonw["WorkspaceProfile"]["CustomTermsets"]);
+			$(this.content).find('.cmd_reload').data('selectionlist',selectionlist);
+			if (query.columns == ""){
+				var autolist = "";
+				$('#'+ query.listid).find('.result').find('thead').find('th').each(function(i,item){
+					if (i > 0){
+						if (i> 1) {
+							autolist = autolist + ",";
+						}
+						autolist = autolist + $(item).text();
+					}
+				});
+				selectionlist.autolist = autolist;
+				selectionlist.listwidget.load(autolist.split(','));
+				selectionlist.select(1);
+			}
+			else {
+				selectionlist.listwidget.load(query.columns.split(','));
+				selectionlist.select(0);
+			}
+		}
+	}
+};
+Detail.prototype.postprocessSelection = function(){
+	if (this.name == "record"){
+		queryset.recorddetailselection($(this.detailwidget).parent().parent());
+	}
+};
+Detail.prototype.openContent = function() {
+	if (this.content != undefined){
+		this.content_parent = $(this.content).parent();
+		this.enrichContent();
+		$(this.content_wrapper).find('.detail-content').append($(this.content));
+		$(this.content).show();
+	}
+};
+
+Detail.prototype.openUrl = function() {
+	if (this.url != undefined){
+		$(this.content_wrapper).show();
+		$(this.content_wrapper).find('.detail-content').data('id', $(this.detailwidget).parent().next().attr('id'));
+		$(this.content_wrapper).find('.detail-content').load(this.url,function(responseText, textStatus, XMLHttpRequest){
+			//find info data
+			if ($(this).data('id') != null){
+				if ($(this).data('id').length > 0){
+					$(this).html($(this).find('#' + $(this).data('id') + '-info'));
+				}
+			}
+			var get = $(this).parent().find('.cmd_get');				
+			get.removeClass('cmd_get');
+			get.addClass('cmd_up');
+			handleUIBlock($(this).children('.cmds-ui-block'));
+			addPaging($(this).children('.cmds-ui-block'));
+			//$(this).show();
+			var name = $(this).closest('.detail-wrapper').attr("id");
+			if (name == "detail_values"){
+				//$(this).find(".cmd_columns").click(function(event) {
+				$(this).find(".cmd_query").click(function(event) {
+					event.preventDefault();
+					handleValueSelection($(this));
+				});	
+			}
+			if (name == "detail_index"){
+				$(this).find(".terms-tree").treeTable({initialState:"collapsed"});
+				$(this).find("a.value-caller").click(function(event) {
+						event.preventDefault();
+						handleValueCaller($(this));
+					});		
+				$(this).find(".terms-tree").find('.treecol').find(".cmd_query").click(function(event) {
+						event.preventDefault();
+						handleIndexSelection($(this));
+				});	
+			}
+		});
+	}
+};
+
+Detail.prototype.open = function(){
+	
+	switch (blocks_settings[this.name].detail.type) {
+	case "inline":
+		//TODO 
+		if (this.content != undefined){
+			$(this.content).toggle();
+		}
+		if (this.url != undefined){
+			$(this.detailwidget).after($(this.content_wrapper));
+			this.openUrl();
+		}
+		break;
+	case "floating":
+		this.openContent();
+		showDetail(this.content_wrapper, "html");
+		//this.showFloatingDetail();
+		this.openUrl();
+		break;
+	case "pane":
+		this.openContent();
+		addToDetailList(this.content_wrapper , "detail_" + this.name);
+		this.openUrl();
+		if (this.url == undefined ) {
+			var get = $(this.content_wrapper).find('.cmd_get');				
+			get.removeClass('cmd_get');
+			get.addClass('cmd_up');
+		}
+		//$('#detailblock').children('.content').scrollTop($(this.content_wrapper).position().top);
+		$('#detailblock').scrollTop($(this.content_wrapper).position().top + $(this.content_wrapper).find('.detail-header').height());
+	default://pane ?
+	};
+		
+	this.postprocessSelection();
+};
+Detail.prototype.close = function(){
+	if (this.content_parent != undefined){
+		$(this.content).hide();
+		this.content_parent.append($(this.content));
+	}
+};
+
+Detail.prototype.showFloatingDetail = function(){
+	var pos = $(this.detailwidget ).offset();
+	//var iWidth = (options.width > 0) ? options.width : $input.width();
+	// reposition
+	$('#detail-floating').css({
+		//width: parseInt(iWidth) + "px",
+		top: (pos.y + $(this.detailwidget).height()) + "px",
+		left: pos.x + "px",
+		"z-index": "1000"
+	});
+	$('#detail-floating').append($(this.content_wrapper));
+	$('#detail-floating').show();	
+};
+
+/**
+ * Reference to UI-element
+ * @field
+ */ 
+var detail_container = $("#detaillist"); 
+
+/**
+ * Maintains/Manages the detail-list
+ * @constructor
+ */
+var detailcaller = { details: {},
+	container: '#detaillist',
+		
+	calldetail: function(widget,name, url){
+		//var name;
+		var detail;
+		var content;//, url;
+		
+		if (name == undefined){
+			name = this.getdetailname(widget) ;
+			if (name == undefined) {
+				alert("detail name -  undefined");
+				return;
+			}
+		}
+		// test for values
+		if (name == 'values'){
+			var index = $(widget).closest('.sc-wrapper').find('.index-input').val();
+			if (index == ""){
+				return;
+			}
+		}
+		detail = this.details[name];
+		//url = this.getdetailurl(name, widget);
+		if (detail == undefined) {
+			//content = this.getdetailcontent(name, widget);
+			detail = new Detail( widget, name, url);
+			this.adddetail(detail);
+		} else {
+			detail.close();
+			//content = this.getdetailcontent(name, widget);
+			detail.update( widget , url);
+		}
+		
+		detail.open();
+	},
+	
+	
+	adddetail: function (detail){		
+		this.details[detail.name] = detail;
+		detail.did = "detail_" + detail.name;
+		detail.create();
+	},
+
+	removedetail: function (did) {
+		notifyUser("removing detail:"  + did);
+		
+		var detail = this.getdetail(did);
+		//detail.clear();
+		this.details[detail.name] = undefined;
+		
+		$('#' + did).remove();
+		
+	},
+	
+	getdetailname: function(widget) {
+		var name;
+		if ($(widget).parents('.result').length > 0){
+			name = "record";
+		} else {
+			if ($(widget).parents('.result-summary').length > 0) {
+				name = "values";
+			} else {
+				if ($(widget).closest('.ui-widget').attr('name') == 'query'){
+					name = 'query';
+				} else {
+					if  ($(widget).closest('.c-widget').attr('id') == 'collections-widget'){
+						name = 'collections';
+					} else {
+						if ($(widget).attr("name") == "detail_index"){
+							name = 'index';
+						} else {
+							if ($(widget).prev().hasClass("value-input")){
+								name = 'values';
+							} else {
+								if ($(widget).hasClass("cmd_info")){
+									name = 'info';
+								}
+							}
+						}
+					}
+				}
+			}
+		}
+		
+		return name;
+	},
+/*	
+	getdetailcontent: function(name, widget) {
+		var content;
+		switch (name){
+		case 'query':
+			//TODO class standard rename
+			content = $(widget).closest('.query_wrapper').find('.columns-wrapper');
+			break;
+		case 'record':
+			content = undefined;
+			break;
+		case 'values':
+			content = undefined;
+			break;
+		default:
+		}
+		return content;
+	}, 
+	
+	getdetailurl: function(name, widget) {
+		var url;
+		switch (name){
+		case 'query':
+			url = undefined;
+			break;
+		case 'record':
+			url = $(widget).parent().find("a").attr('href');
+			break;
+		case 'values':
+			url = $(widget).parent().find("a").attr('href');
+			break;
+		default:
+		}
+
+		return url;
+	}, 
+	*/
+	getdetail: function(did) {
+		var detail;
+		$.each(this.details,function(){
+			if (this.did == did) {
+				detail = this;
+			}
+		});
+		return detail;
+	}
+};
+
+
+function showDetail(_data, textStatus, xmlhttpreq) {	
+	try {
+		var data = _data;
+		var blankdata = "<html><\html>";
+		
+		if(typeof xmlhttpreq!='undefined')
+		{
+			if (xmlhttpreq.responseXML != null){
+				var isinfo = xmlhttpreq.responseXML.baseURI.split("/static/info.xml?id="); 
+				if (isinfo != "undefined"){
+					if ( isinfo.length = 2){
+						var infoid = new RegExp('[\\?]id=([^&#]*)').exec(xmlhttpreq.responseXML.baseURI);
+						infoid = infoid[1] || 0;
+						infoid = infoid + "-info";
+						data = $(_data).find('#' + infoid);
+					}
+				}		
+			}
+		}
+
+		if (!$('#detail-float').is( ":ui-dialog" )) {
+			initDetailFloat();
+		}
+		
+		if (data ==  null){
+			$('#detail-float').html(blankdata);
+			
+			openDialog("", true);
+		} else
+		{		
+			// detail data
+			var did = $(data).attr("id");
+			if (did != undefined){
+				if ((did.indexOf("-info") == -1) && (did.length > 0)) {
+					var detail = detailcaller.getdetail(did);
+					var pos = $(detail.detailwidget).offset();
+					pos.top = pos.top + $(detail.detailwidget).height();
+					$("#detail-float").dialog('option', 'position', [pos.left,pos.top]);	
+				}
+			}
+			
+			$('#detail-float').html(data);
+			var title =  $('#detail-float').find('.inner-title').attr('value');
+			if (title == undefined) title = $('#detail-float').find('.title, .inner-title').first().text();
+			$('#detail-float').dialog( "option", "title", title );
+			
+			
+
+			$('#detail-float').find('.detail-header').hide();
+			$('#detail-float').find('.detail-content').show(); 
+			
+			openDialog(title,false);
+		}
+		
+	} catch (e) {
+			notifyUser(e,'debug');
+	}	
+}
+
+function openDialog(title, is_get){
+	if ( $('#detail-float').dialog("isOpen")) {
+		if (! is_get) {
+			var get = $('#detail-float').siblings('div.ui-dialog-titlebar').find('.cmd_get');
+			get.removeClass('cmd_get').addClass('cmd_up');
+			get.removeClass('ui-dialog-titlebar-get').addClass('ui-dialog-titlebar-up');
+		} else {
+			var up = $('#detail-float').siblings('div.ui-dialog-titlebar').find('.ui-dialog-titlebar-up');
+			up.removeClass('.cmd_up .ui-dialog-titlebar-up').addClass('.cmd_get .ui-dialog-titlebar-get');
+			var down = $('#detail-float').siblings('div.ui-dialog-titlebar').find('.ui-dialog-titlebar-down');
+			down.removeClass('.cmd_down .ui-dialog-titlebar-down').addClass('.cmd_get .ui-dialog-titlebar-get');
+		}		
+		$('#detail-float').siblings('div.ui-dialog-titlebar').find('.ui-dialog-title').text(title);
+		//$('#detail-float').closest('.ui-dialog').show();
+		
+	} else {
+		$('#detail-float').dialog('open');
+		$('#detail-float').siblings('div.ui-dialog-titlebar').addClass('ui-state-default');
+		$('#detail-float').siblings('div.ui-dialog-titlebar').children().remove();
+		var x = '<span class="cmd cmd_del ui-dialog-titlebar-del "/>' ;
+		if (is_get){
+			x = x + '<span class="cmd cmd_get ui-dialog-titlebar-get"/>';
+		} else {
+			x = x + '<span class="cmd cmd_up ui-dialog-titlebar-up"/>';
+		}
+		x = x + '<span class="ui-dialog-title">' + title +'</span>';
+		$('#detail-float').siblings('div.ui-dialog-titlebar').append(x);				
+	
+		
+		$("#detail-float").dialog({
+			beforeclose: function(event, ui) {
+			
+			var did;
+			if ($(this).length > 0){
+				did = $(this).find('.detail-wrapper').attr('id');
+			}
+			if (did != undefined){
+				detail = detailcaller.getdetail(did);
+				detail.close();
+				//if (detail.name == "collections"){
+					detailcaller.removedetail(did);
+				//}
+			}
+		
+		}
+		});
+	}
+
+}
+
+function updateQueryDetailPane(query){
+	var detail = detailcaller.getdetail("detail_query");
+	if (detail != undefined){
+		if (query.listid == detail.temp_id){
+			$(detail.content_wrapper).find('.cmd_xml').attr('href',query.link("xml"));
+			$(detail.content_wrapper).find('.cmd_link').attr('href',query.link("fullpage"));
+		}
+	}
+}
+/*
+function updateColumnsFromDetail(query){
+	var detail = detailcaller.getdetail("detail_query");
+	if (detail != undefined){
+		if (query.listid == detail.temp_id){
+			
+			if (selectionlistset.getselectionlist(slid).autoSelected()){
+				this.columns = "";
+			} else
+			{
+				this.columns = selectionlistset.getselectionlist(slid).listwidget.getListText();
+			}
+		}
+	}
+}
+*/
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_helpers.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_helpers.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_helpers.js	(revision 1516)
@@ -0,0 +1,459 @@
+/**
+ * @fileOverview  The file contains UI concerned functions for building the pane structure from app settings 
+ * and a lot of other UI functionality for example tooltips, notifymessges, ui-block handling
+ *
+ * @author 
+ * @version 
+ */
+function createBlock(name, _parent){
+	var ui_array;
+	var layout;
+	var _class;
+	var len;
+	var e, layout_elem;
+	var _parent;
+	var layout_div;
+	
+	// append UI
+	if (_parent == ""){
+		layout_initialisation[name].parent = $('body');
+	} else {
+		layout_initialisation[name].parent = _parent;
+	}
+ 
+	var settings;
+	if (layout_initialisation[name].settings == ""){
+		settings = new CloneObject(layout_initialisation[name].model_settings);
+	} else {
+		settings = layout_initialisation[name].settings;
+	}
+	 
+	jQuery.each(block_positions, function(index,position){
+		if (layout_initialisation[name][position] != undefined){
+			ui_array = layout_initialisation[name][position];	
+			len = ui_array.lenght;
+			jQuery.each(ui_array, function(index,elem){
+					var e = elem;
+					
+					
+					if (layout_initialisation[elem] != undefined){
+						layout_div = $('<div></div>').addClass(name + '-' + position).addClass("cmds-ui-block").attr("layoutname",name);
+						e = createBlock(elem, layout_div);  // compode element
+						$(layout_div).append($(e));
+						layout_initialisation[name].parent.append($(layout_div));
+					} else {
+						$(e).addClass(name + '-' + position).attr("layoutname",name);
+						if (blocks_settings[$(elem).attr("id")] != undefined) {
+							//jQuery.each(blocks_settings[$(elem).attr("id")].sublayouts,function(index, ee){
+							//	createBlock(ee, $('#' + ee));
+							//});
+							jQuery.each(blocks_settings[$(elem).attr("id")].commands.block,function(index, cmd){
+								createCommand($(elem), cmd);
+								bindCommand($(elem), cmd);
+							});
+						}
+						layout_initialisation[name].parent.append($(e));
+					}
+					
+					//layout_initialisation[name].parent.height(layout_initialisation[name].parent.height() + $(layout_div).height());
+					settings[position + "__paneSelector"] = "." + name + "-" + position;
+					//position + "__paneSelector" = "." + name + "-" + position
+			});
+		}
+	});
+	
+	layout_initialisation[name].settings = settings;
+	return $(layout_div);
+}
+
+function createLayouts(name){
+	var ui_array;
+	var layout;
+	
+	// append UI	
+	layout = $(layout_initialisation[name].parent).layout(layout_initialisation[name].settings);
+
+	layout_initialisation[name].layout = layout;
+	jQuery.each(block_positions, function(index,position){
+		if (layout_initialisation[name][position] != undefined){
+			ui_array = layout_initialisation[name][position];	
+			jQuery.each(ui_array, function(index,elem){
+				if (layout_initialisation[elem] != undefined){
+					createLayouts(elem);
+				}
+			});
+		}
+	});
+
+}
+
+
+//append blocks functionality
+function createCommand(parent, cmd){
+	$("<span class='cmd " + cmd+ "'></span>").appendTo($(parent).children('.header'));
+	return  $(parent).children('.header').children('.' + cmd);
+}
+
+function bindCommand(parent, cmd){
+	var command = $(parent).children('.header').children('.' + cmd);
+	switch (cmd){
+	case "cmd_close": 
+		bindCloseCommand(command);
+		break;
+	case "cmd_advanced": 
+		bindAdvancedCommand(command);
+		break;
+	default:
+		break;
+	}
+}
+
+function bindAdvancedCommand(cmd){
+	$(cmd).click(function(){
+		//var advanced = $(this).closest('.cmds-ui-block').attr("id") + '_advanced';
+		$(this).closest('.cmds-ui-block').find('.ui-advanced').toggle();
+		// TODO tag <table>  auto-resize dont work !!!!!  
+		//if ($(this).closest('.cmds-ui-block').find('.ui-advanced').is(":visible") == false){
+		//	var name = $(this).closest('.cmds-ui-block').attr("layoutname");
+		//	layout_initialisation[name].layout.sizePane("north",$("#input-simplequery").height(),false, false);
+		//}
+	});
+}
+
+function bindCloseCommand(cmd){
+	$(cmd).click(function(){
+		$(this).closest('.cmds-ui-block').hide();
+	});
+}
+
+////
+function handleValueCaller(_this){
+
+	$(_this).after('<div class="ui-context-dialog cmds-ui-closable cmd cmd_get" ></div>');					
+	detail = $(_this).parent().children('.ui-context-dialog');				
+				
+	detail.load($(_this).attr('href'), function(event) {
+				$(this).removeClass('cmd_get cmd');
+				handleUIBlock($(this).children('.cmds-ui-block'));
+				addPaging($(this).children('.cmds-ui-block'));
+				$(this).show();
+				
+				$(this).find('.cmd_columns').click(function(event) {
+					event.preventDefault();
+					handleValueSelection($(this));
+				});
+				});
+}
+function handleIndexSelection(elem){
+	var index = $(elem).closest('.treecol').children('.column-elem').text();
+	searchclauseset.updatedata(index, false);
+};
+function handleValueSelection(elem){
+	var index = undefined;
+	if ($(elem).closest('.ui-context-dialog').parent().siblings('.treecol').length > 0){
+		index = $(elem).closest('.ui-context-dialog').parent().siblings('.treecol').children('.column-elem').text();
+	} 
+	var value = $(elem).closest('td').text();
+	searchclauseset.updatedata(index, false, undefined, value);
+};
+//
+function handleUIBlock (elems) 
+{
+	
+//	$('#left-menu').addClass('ui-accordion ui-widget ui-helper-reset ui-accordion-icons');	
+	$(elems).addClass('ui-helper-reset ui-corner-all');
+	$(elems).children('.header').addClass('ui-widget-header ui-state-default ui-corner-top');
+	$(elems).children('.content').addClass('ui-widget-content ui-corner-bottom');
+/*	$(elems).children('.header').click(function() {
+		$(this).next().toggle('fast');
+		return false;
+	}).next().hide();
+	*/
+	
+	//$(elems).children('.header').prepend('<span class="cmd cmd-collapse cmd_down" > </span>');
+	//$(elems).find('.cmd-collapse').click(function(event) {
+	//		$(this).closest('.header').next().toggle('fast');
+	//		//$(this).toggleClass('cmd_down cmd_up');
+	//		return false;
+	//	});
+	
+	$(elems).each(function(i) {
+		// default is: hidden
+		/*
+		if ($(this).hasClass('init-show'))  {		
+			$(this).children('.content').show();
+			$(this).find('.cmd-collapse').toggleClass('cmd_down cmd_up');		
+		} else {
+			$(this).children('.content').hide();			
+		}		
+			*/
+		if ($(this).parent().hasClass('cmds-ui-closable'))  {		
+			$(this).children('.header').prepend('<span class="cmd cmd_close" > </span>');
+			$(this).find('.cmd_close').click(function(event) {
+					$(this).closest('.header').parent().parent('.cmds-ui-closable').remove();	
+				});
+		} 
+	});
+}
+
+
+function addPaging (elem) 
+{
+	
+	var header = $(elem).children('.header');
+	var content = $(elem).children('.content');
+	
+	var pagingSize = 10;
+	var startItem = $(header).attr('start-item');
+	var countItems = $(header).attr('max-value'); //$(content).find('tr').size;
+	var maximumItems = $(header).attr('maximum-items');
+	
+	if (maximumItems < countItems) {
+		maximumItems = countItems;
+	} 
+
+	var paging = '<div class="cmds-navi-header ui-widget"><span class="label" >from:</span><span><input type="text" class="value start-item paging-input">' +
+	'</input></span>' +
+	'<span class="label" >max:</span><span><input type="text" class="value maximum-items paging-input" ></input></span>' +
+  '<span class="cmd cmd_reload" />' +
+	'<span class="cmd cmd_prev">'+
+	//'<xsl:choose>' +
+	//	'<xsl:when test="$startItem = '1'">' +
+	//		'<xsl:attribute name="disabled">disabled</xsl:attribute>' +
+	//	'</xsl:when>' +
+	//'</xsl:choose>' +
+	'</span>' +
+	'<span class="cmd cmd_next">' +	
+	//'<xsl:choose>' +
+	//	'<xsl:when test="$maximumItems &gt; numberOfRecords or $maximumItems = numberOfRecords">' +
+	//		'<xsl:attribute name="disabled">disabled</xsl:attribute>' +
+	//	'</xsl:when>' +
+	//	'</xsl:choose>' +
+	'</span></div';
+	
+	$(header).append(paging);
+	$(header).find('.start-item').attr("value",startItem);
+	$(header).find('.maximum-items').attr("value",maximumItems);
+	
+	$(header).find('.cmd_reload').click(function(){
+		reloadPage($(this).closest('.cmds-ui-block'));
+		return false;
+	});
+	
+	$(header).find('.cmd_next').click(function(){
+		pageNext(this, 1);
+		return false;
+	});
+	$(header).find('.cmd_prev').click(function(){
+		pageNext(this, -1);
+		return false;
+	});	
+
+}
+
+function pageNext (cmd, pages) 
+{
+	//TODO
+	var numItems = $(cmd).closest('.header').attr('max-value'); //$(cmd).closest('.cmds-ui-block').children('.content').find('tr').length;
+	var startItem = $(cmd).closest('.header').attr('start-item');
+	var maximumItems = $(cmd).closest('.header').attr('maximum-items');
+	
+	var page_record_count = 10;
+	var start = 0;
+	var num = 0;
+	//var max_value = $('#' + qid ).find('.result-header').attr("max_value");
+
+	if (maximumItems > page_record_count) {
+		maximumItems = page_record_count;
+	}
+	if ((numItems >= maximumItems) && (pages > 0) ){
+		start =	parseInt(startItem) + pages * page_record_count ;
+	} 
+	if ((pages < 0) && ((parseInt(startItem) + pages * parseInt(page_record_count) + parseInt(page_record_count) - 1) >= 1)) {
+		start = parseInt(startItem) + pages * parseInt(page_record_count);
+	}
+	
+	if (start > 0){
+		num = maximumItems;
+		
+		if (num > 0){
+			$(cmd).closest('.header').find('.start-item').attr('value',start);
+			$(cmd).closest('.header').find('.maximum-items').attr('value',num);
+			
+			reloadPage($(cmd).closest('.cmds-ui-block'));
+		}
+	}
+
+	/*
+	if (parseInt(startItem) + pages * page_record_count >= 1){
+		start =	parseInt(startItem) + pages * page_record_count ;
+	} else  {
+		if (parseInt(startItem) + pages * page_record_count + page_record_count - 1 >= 1){
+			start =	1 ;
+		} 
+	}
+	
+	if (start > 0){
+		if (start + page_record_count - 1 <= numItems) {
+			num = page_record_count;
+		} else if (start <= numItems){
+			num = numItems - start;
+		}
+	
+		if (num > 0){
+			$(cmd).closest('.header').find('.start-item').attr('value',start);
+			$(cmd).closest('.header').find('.maximum-items').attr('value',num);
+			
+			reloadPage($(cmd).closest('.cmds-ui-block'));
+		}
+	}
+	*/
+}
+
+function reloadPage (detail) {
+	
+	var uri;
+	
+	if ($(detail).parent().get(0).localName == "body") {
+		uri = document.URL;
+	} else {
+		uri = $(detail).parents('.number').children('a').attr('href');
+	}
+
+	
+	var startItem;
+	var maximumItems;
+	
+	//from paging attributes
+	startItem = $(detail).find('.header').find('.start-item').val();
+	maximumItems = $(detail).find('.header').find('.maximum-items').val();
+	
+
+	// create the uri params
+	
+	if (uri.indexOf("startItem=") > 0){
+		 temp = uri.substring(uri.indexOf("startItem="));
+		 len = temp.split("&")[0].length;
+		 uri = uri.replace(uri.substr(uri.indexOf("&startItem="),len+1),'');
+	}
+	
+	if (uri.indexOf("maximumItems=") > 0){
+		 temp = uri.substring(uri.indexOf("maximumItems="));
+		 len = temp.split("&")[0].length;
+		 uri = uri.replace(uri.substr(uri.indexOf("&maximumItems="),len+1),'');
+	} 
+	
+	uri = uri + "&startItem=" + startItem + "&maximumItems=" + maximumItems;
+
+	if ($(detail).parent().get(0).localName == "body") {
+		location.href = uri;
+//		window.open(uri);
+	} else {	
+		//remove old content
+		$(detail).children().remove();
+		
+		//load new content
+		$(detail).load(uri, function(event) {
+			handleUIBlock($(this).children('.cmds-ui-block'));
+			addPaging($(this).children('.cmds-ui-block'));
+		});
+	}
+}
+
+
+
+//TOOLTIP
+var tooltiptable = {};
+
+/** 
+ * Helper-object for displaying tooltips
+ * @constructor
+ */
+var tooltip=function(){
+	 var id = 'tt';
+	 var top = 3;
+	 var left = 3;
+	 var maxw = 300;
+	 var speed = 10;
+	 var timer = 20;
+	 var endalpha = 95;
+	 var alpha = 0;
+	 var tt,t,c,b,h;
+	 var ie = document.all ? true : false;
+	 return{
+
+	show:function(v,w){
+		 if(tt == null){
+			 tt  = document.createElement('div');
+			 tt.setAttribute('id',id);
+			 document.body.appendChild(tt);
+			 tt.style.opacity  = 0;
+			 tt.style.filter  = 'alpha(opacity=0)';
+			 document.onmousemove  = this.pos;
+			}
+		 tt.style.zIndex = "1000";
+		tt.style.display  = 'block';
+		tt.innerHTML = v; 
+		tt.style.width  = w ? w + 'px' : 'auto';
+
+			if(!w  && ie){
+			 tt.style.width  = tt.offsetWidth;
+			}
+
+			if(tt.offsetWidth  > maxw){tt.style.width = maxw + 'px';}
+
+			h =  parseInt(tt.offsetHeight) + top;
+			clearInterval(tt.timer);
+			tt.timer =  setInterval(function(){tooltip.fade(1);},timer);
+		//$('body').find('.ac_results').css({'z-index' : '1000'});
+	  },
+	  
+	  pos:function(e){
+	   var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;
+	   var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;
+	   tt.style.top = (u + h) + 'px'; //(u - h) + 'px';
+	   tt.style.left = (l + left) + 'px';
+	  },
+	  
+	  fade:function(d){
+	   var a = alpha;
+	   if((a != endalpha && d == 1) || (a != 0 && d == -1)){
+	    var i = speed;
+	   if(endalpha - a < speed && d == 1){
+	    i = endalpha - a;
+	   }else if(alpha < speed && d == -1){
+	     i = a;
+	   }
+	   alpha = a + (i * d);
+	   tt.style.opacity = alpha * .01;
+	   tt.style.filter = 'alpha(opacity=' + alpha + ')';
+	  }else{
+	    clearInterval(tt.timer);
+	     if(d == -1){tt.style.display = 'none';};
+	  }
+	 },
+	
+	 hide:function(){
+		 if (tt != undefined) {
+			 clearInterval(tt.timer);
+			 tt.timer = setInterval(function(){tooltip.fade(-1);},timer);
+		 }
+	  }
+	 };
+	}();
+
+
+	function notifyUser (msg) {
+		var notifymessage = new NotifyMessage(new Date(),msg);	
+		notifyset.add(notifymessage);
+	}
+
+	function notifyUser (msg, type) {	
+		
+			if (type=='debug' & !(typeof console == "undefined")) {
+				console.log(msg);
+			} else {
+				var notifymessage = new NotifyMessage(new Date(),msg);	
+				notifyset.add(notifymessage);
+		  }
+	}
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_load.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_load.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_load.js	(revision 1516)
@@ -0,0 +1,701 @@
+
+/**
+ * @fileOverview  The file contains app load functionality. The load functions actualy used provides client side model building together with
+ * ui building. The load module is independant from app pane-layout and all ui-layout functionality.
+ *
+ * @author 
+ * @version 
+ */
+
+function loadData(){
+	//loadWelcomeMessage();
+	loadTooltiptable();
+	loadWorkspaceProfiles();
+	//loadCollections(); // loaded after WorkspaceProfile is loaded
+	//loadTerms(); 		 // loaded after WorkspaceProfile is loaded
+	//loadTermsAutocomplete(); //handleQueryInput();
+	//createTooltip()
+	
+	//loadComponentsRegistry();	
+	//loadDCR();
+
+}
+
+function loadTooltiptable() {
+	 
+	 var uri = window.location.pathname + "static/info.xml";
+	 
+	 $.get(uri,function(data, textStatus){
+	 	$(data).find('#commands').find('dt').each(function(){
+	 		tooltiptable[$(this).attr("id")] = $(this).text();
+	 		//$(this).next('dd').text();
+	 	});
+	 },'html');
+
+};
+/*
+function loadAdminFile(){
+	json_admin = {'Admin':{'maxqid':'0','QueryIndices':'null'}};
+	
+	jQuery.getJSON("/MDService2/workspaceprofile/admin",function(data){
+			json_admin = preprocessJSON(data);
+	});
+}
+*/
+function loadWorkspaceProfiles(){
+	//empty json
+	workspace.user_json  = {'WorkspaceProfile':{'CustomTermsets':'null','Termsets':'null','Repositories':'null','Querysets':'null','created':'null','lastchanged':'null','profilename':'null'}};
+	$('#qts_input').val("");
+	
+	// USER WORKSPACEPROFILE
+	jQuery.getJSON("/MDService2/workspaceprofile/user",function(data){
+		notifyUser(data['WorkspaceProfile'],'debug');
+				workspace.user_json  = preprocessJSON(data);
+				
+				jQuery.getJSON("/MDService2/workspaceprofile/server",function(data){
+					notifyUser(data['WorkspaceProfile'],'debug');
+							var json = preprocessJSON(data);
+							workspace.server_json = json;
+							$("#serverqs").attr("data",JSON.stringify(json));
+							//loadQuerysets(json["WorkspaceProfile"]["Querysets"],"server");
+							loadQuerysets("server");
+							loadRepositories(json["WorkspaceProfile"]["Repositories"]);
+							loadCollections(true);				
+							loadTerms();
+							loadTermsAutocomplete();
+							createTooltip(null);
+							
+							
+					});
+
+				//loadQuerysets(workspace.user_json["WorkspaceProfile"]["Querysets"],"user");
+				loadQuerysets("user");
+				loadBookmarksets();
+				//loadTermsets(jsonw["WorkspaceProfile"]["CustomTermsets"]);
+				createTooltip(this);
+	});
+	
+	
+
+}
+
+function loadCollections(ini){
+	var coll_uri = link('collections','htmllist?repository=' + getSelectedRepository());
+		
+	$("#collections").jstree({ 
+		"html_data" : {
+			"ajax" : {
+				"url" : coll_uri,
+				"data" : function (n) { 
+					return {  //id : n.attr ? n.attr("id") : 0 ,
+							  collection : n.attr ? n.attr("handle") : "",
+							  maxdepth : n.attr ? 2 : 1 };
+				}
+			}
+		},
+		types : {
+			// the default type
+			"default" : {
+				"max_children"	: -1,
+				"max_depth"		: -1,
+				"valid_children": "all"
+
+		}
+		},
+
+		"plugins" : [ "themes", "html_data", "ui" , "checkbox", "types", "search" ]
+	});
+	
+	$('#collections').bind('loaded.jstree reopen.jstree', function(event, data)
+			{
+				if ((event.type == "loaded") &&(ini)) {
+					loadQueryFromUriParams();
+				}
+				
+				var dataelems = data.inst.get_container();
+				createTooltip($(dataelems));
+					//data.inst.get_container().unblock();		
+		});
+
+	$('#collections').bind("change_state.jstree", function (event, data) {
+		var dataelems = data.inst.get_container();
+		var coll;
+		if (!local_collections){
+			var collections  = [];
+			//collections.splice(0, collections.length);
+			
+			$(this).find('.jstree-checked').each(function(index){
+				if (!($(this).parent().parent().hasClass("jstree-checked")) ) {
+					//notifyUser("selection...:" + index + ":" + String.trim($(this).children('a').text())  + $(this).attr("handle"),'debug');	
+					coll = new Collection($(this).attr("handle"), String.trim($(this).children('a').text()));
+					collections[collections.length] = coll;						
+				}
+			});
+			
+			collections_widget.load(collections);
+		}
+    });
+	
+	$('#collections').bind("search.jstree", function (e, data) {  
+		
+		if (data.rslt.nodes.length > 0){
+			$('#collections').jstree("checkbox.check_node",data.rslt.nodes[0]);
+		}
+		//alert("Found " + data.rslt.nodes.length + " nodes matching '" + data.rslt.str + "'.");  
+    });  
+
+};
+
+function updateCollectionTree(){
+	/*
+	local_collections = true;
+	var cc = $('#collections').jstree("get_checked");
+	$('#collections').jstree("uncheck_all");
+	$.each(collections, function(){
+		$('#collections').jstree("search",this.name);
+	});
+	local_collections = false;
+	*/
+};
+
+function loadTerms(){
+	$('#model_profiles').load(link('terms','htmlselect',actions.terms.current) + '?repository=' + getSelectedRepository());
+	
+	$('#terms-select').live('change', function(event) {
+		//notifyUser(this.value,'debug');
+		update(link('terms', 'htmllist', this.value)+ '?maxdepth=' + actions.terms.maxdepth + '&repository=' + getSelectedRepository(), 
+				'#terms-select', '#model_terms',
+					function() {
+						$("#model_terms .treeview").treeview({
+							animated: "fast",
+							collapsed: false
+						});
+						//notifyUser($("#model_terms .treeview"),'debug');
+						notifyUser("loaded: #model_terms .treeview",'debug');
+						createTooltip(this);
+						}	
+			);	
+		}
+	);
+	
+	$('#terms .cmd_filter').live('click',  function(event) {			
+		var term = $(this).parent().children('span.data').text();		
+		if ($('.searchtype_text','#search').size()> 0 ) {
+			var t = $('#query_area').text();
+			$('#query_area').val(t + " " + term);
+		} else {
+			searchclauseset.updatedata(term);
+			
+		}
+	});
+	
+	$('#terms .cmd_columns').live('click',  function(event) {	
+		var term = $(this).parent().children('span.data').text();
+		columns_widget.add(new ListItem(term)); 
+		
+	});	
+
+}
+
+function loadRepositories(json) {
+	
+	var $select;
+	$select = $('#repositories_select');
+	
+	
+	$select.find("option").remove();
+	
+	if (String(json) != "null") {
+		
+		$.each(json, function(i,item) {
+		    $select.append(new Option(this.name, this.id));
+		});
+		
+	}
+	// select first
+	if (url_params["repository"] != undefined){
+		var r = parseInt(url_params["repository"])-1;
+		$($select.find("option")[r]).attr("selected","true");
+	} else {
+		$select.find("option").first().attr("selected","true");
+	}
+
+	
+	$select.change(function(data){
+		if (workspace.getRepositoryType(getSelectedRepository())=='md'){
+			loadCollections(false);				
+			loadTerms();
+			loadTermsAutocomplete();
+			$('#model_profiles').load(link('terms','htmlselect',actions.terms.current) + '?repository=' + getSelectedRepository());
+
+		}
+	});
+	
+}
+
+function loadTermsAutocomplete(){
+	
+	var elem;
+	$('#terms_autocomplete').children().remove();
+	$('#terms_autocomplete').css('display','none');
+	$('#terms_autocomplete').load(link('terms_autocomplete','autocomplete/?q=all&repository='+ getSelectedRepository()),function(){
+		$(this).find('term').each(function(index){
+			elem = $(this).attr("name");
+			element_autocomplete[index] = elem;
+			elements_hashtable[elem] = $(this).html();
+		});
+		// add autocomplete 's
+		searchclauseset.initAutocomplete();
+		columns_widget.initAutocomplete(element_autocomplete);
+	});
+};
+
+// QUERYSETS UI
+function appendQueryUI(json,i, qs){
+	var del = '';
+	var name = '';
+	//var ul;
+	var id = $(qs).parent().attr('id');
+	
+	if (id == 'userqs') {
+		del = '<span class="cmd cmd_del" ><xsl:text> </xsl:text></span>';
+		name = '<div class="cmds-elem-prop"><span class="label">name:</span><input type="text" class="input-name" value="' + json.name + '"></div>';
+	} else {
+		name = '<div class="cmds-elem-prop"><span class="label">name:</span><span class="value">' + json.name +
+		'</span></div>';
+	}
+		
+	var timestr = "";
+	if (json.time != undefined){
+		timestr = json.time;
+	}
+	var squery = json.squerystring;
+	if (squery = "[NULL]"){
+		squery = "";
+	}
+	var qq = json.querystring;
+	if (qq = "[NULL]"){
+		qq = "";
+	}
+	var x = '<div class="cmds-elem-plus" ><span class="cmd cmd_load"></span><span class="detail-caller-inline" ><a href="'+id + '_'+ i+'" >' + 
+	json.name + '</a></span>' + 
+	del +
+	'<span class="cmd cmd_publish"></span><div class="detail" >' +
+	name +
+	'<div class="cmds-elem-prop"><span class="label">squery:</span><span class="value">' + squery + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">query:</span><span class="value">' + Query.simplequerystring(qq) + '</span></div>' + 
+	'<div class="cmds-elem-prop"><span class="label">collections:</span><span class="value">' + Query.collectiontext(json) + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">columns:</span><span class="value">' + Query.columnstext(json) + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">time:</span><span class="value">' + timestr + '</span></div>' +
+	//'<div class="cmds-elem-prop"><span class="label">startItem:</span><span class="value">' + Query.startItem + '</span></div>' +
+	//'<div class="cmds-elem-prop"><span class="label">maxItems:</span><span class="value">' + Query.maximumItems + '</span></div>' +
+	//'<div class="cmds-elem-prop"><span class="label">repository:</span><span class="value">' + Query.repository + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">bookmark:</span><span class="value">' + json.bookmark + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">options:</span><span class="value">' + Query.optionstext(json) +  '</span></div>' +
+	'</div>';
+	
+	//dt = Date.parse('2010-10-18, 10:06 AM'); dt.toString('dd/mm/yyyy HH:mm:ss GMT') 
+	$(qs).append(x);
+	
+	var query = new Query([],"","","");
+	query.load(json);
+	$(qs).find("[href='"+ id + "_" + i + "']").closest('.cmds-elem-plus').data('query',query);
+	$(qs).find("[href='"+ id + "_" + i + "']").closest('.cmds-elem-plus').data('queryjson',json);
+	$(qs).find("[href='"+ id + "_" + i + "']").closest('.cmds-elem-plus').find('.input-name').data('queryjson',json);
+	$(qs).find('.detail').css({'z-index' : '1000'});
+	
+	$(qs).find('.input-name').keydown(function(ev){
+		var evStop = function(){ 
+			ev.stopPropagation(); 
+			ev.preventDefault(); 
+		};
+		if (ev.which === 13) {
+			$(this).data("queryjson").name = $(this).val();
+			workspace.savequeryset($(this).data("queryjson"),0);
+			//todo update
+			$(this).parent().parent().parent().find('a').text($(this).val());
+			//Workspace.save("user");
+			//var query = new Query();
+			//query.load($(this).data("queryjson"));
+			//query.save();
+			/*
+			var id = parseInt( $("#qts_select option:selected").val());
+			$(this).parent().parent().parent().find('a').text($(this).val());
+			var str = $(this).parent().parent().parent().find('a').attr("href");
+			var iq = parseInt(str.substring(7));
+			
+			jsonw["WorkspaceProfile"]["Querysets"][id]["Queries"][iq].name = $(this).val();
+			//saveWorkspace("USER");
+			Workspace.save("USER");
+			*/
+			evStop();
+		}
+	});
+	createTooltip(qs);
+}
+
+function createQueriesUI(json, qs){
+	$(qs).children().remove();
+	if (json.Queries != "null") {
+		$.each(json.Queries, function(i,item) {
+			if (this != "null"){
+				appendQueryUI(this,i, qs);
+			}
+		});
+	}
+	
+}
+function loadQuerysets(type) {
+	
+	var json = workspace.getTypedElement(type, 'queryset');
+	var $select;
+	if (type == "user") {
+		$select = $('#qts_select');
+	} else {
+		$select = $('#serverqts_select');
+	}
+	
+	$select.find("option").remove();
+	
+	if (String(json) != "null") {
+		
+		$.each(json, function(i,item) {
+			//notifyUser(i + ',' + this.name + ',' + this.created,'debug');
+		    $select.append(new Option(this.name, i));
+		});
+		
+		
+		// find id of selected
+		if ($select.find("option").size() > 0) {
+			$select.find("option").first().attr("selected","true");
+			var id = parseInt($select.find("option:selected").val());
+			var jsonq = json[id];
+			//var jsonq = $select.find("option:selected").val();
+			
+			if (type == "user") {
+				$('#qts_input').val(jsonq["name"]);
+				qs = $("#userqueries");
+			} else {
+				qs = $("#serverqueries");
+			}
+			createQueriesUI(jsonq, qs);
+		}
+		
+		$select.change(function(data){
+			if ($select.find("option").size() > 0) {
+				// find id of selected
+				var id = parseInt($select.find("option:selected").val());
+				var jsonq = json[id];
+				//var jsonq = $select.find("option:selected").val();
+					
+				if (type == "user") {
+					$('#qts_input').val(jsonq["name"]);
+					qs = $("#userqueries");
+				} else {
+					qs = $("#serverqueries");
+				}
+				createQueriesUI(jsonq, qs);
+				
+			}
+	     });
+		
+	}
+
+}
+
+// BOOKMARKS UI
+function appendBookmarkUI(json,i, bs){
+	var del = '';
+	var name = '';
+	var id = $(bs).parent().attr('id');
+	
+	del = '<span class="cmd cmd_del" ><xsl:text> </xsl:text></span>';
+	name = '<div class="cmds-elem-prop"><span class="label">name:</span><input type="text" class="input-name" value="' + json.name + '"></div>';
+		
+	var timestr = "";
+	if (json.time != undefined){
+		timestr = json.time;
+	}
+	var squery = json.squerystring;
+	if (squery = "[NULL]"){
+		squery = "";
+	}
+	var qq = json.querystring;
+	if (qq = "[NULL]"){
+		qq = "";
+	}
+	var x = '<div class="cmds-elem-plus" ><span class="cmd cmd_load"></span><span class="detail-caller-inline" ><a href="'+ id + '_'+ i+'" >' + 
+	json.name + '</a></span>' + 
+	del +
+	'<div class="detail" >' +
+	name +
+	'<div class="cmds-elem-prop"><span class="label">squery:</span><span class="value">' + squery + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">query:</span><span class="value">' + Query.simplequerystring(qq) + '</span></div>' + 
+	'<div class="cmds-elem-prop"><span class="label">collections:</span><span class="value">' + Query.collectiontext(json) + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">columns:</span><span class="value">' + Query.columnstext(json) + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">time:</span><span class="value">' + timestr + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">bookmark:</span><span class="value">' + json.bookmark + '</span></div>' +
+	'<div class="cmds-elem-prop"><span class="label">options:</span><span class="value">' + Query.optionstext(json) +  '</span></div>' +
+	'</div>';
+	 
+	$(bs).append(x);
+	
+	var query = new Query([],"","","");
+	query.load(json);
+	$(bs).find("[href='"+ id + "_" + i + "']").closest('.cmds-elem-plus').data('query',query);
+	$(bs).find("[href='"+ id + "_" + i + "']").closest('.cmds-elem-plus').data('queryjson',json);
+	$(bs).find('.input-name').data('queryjson',json);
+	$(bs).find('.detail').css({'z-index' : '1000'});
+	
+	$(bs).find('.input-name').keydown(function(ev){
+		var evStop = function(){ 
+			ev.stopPropagation(); 
+			ev.preventDefault(); 
+		};
+		if (ev.which === 13) {
+			$(this).data("queryjson").name = $(this).val();
+			$(this).data("query").name = $(this).val();
+			workspace.save("user");
+			
+			evStop();
+		}
+	});
+	createTooltip(qs);
+}
+
+function createBookmarksUI(json, bs){
+	$(bs).children().remove();
+	if (json.Bookmarks != "null") {
+		$.each(json.Bookmarks, function(i,item) {
+			if (this != "null"){
+				appendBookmarkUI(this,i, bs);
+			}
+		});
+	}
+	
+}
+function loadBookmarksets() {
+	
+	var json = workspace.getTypedElement('user','bookmarkset');
+	var $select = $('#bts_select');
+	
+	$select.find("option").remove();
+	
+	if (String(json) != "null") {
+		
+		$.each(json, function(i,item) {
+		    $select.append(new Option(this.name, i));
+		});
+		
+		
+		// find id of selected
+		if ($select.find("option").size() > 0) {
+			$select.find("option").first().attr("selected","true");
+			var id = parseInt($select.find("option:selected").val());
+			var jsonb = json[id];
+			
+			$('#bts_input').val(jsonb["name"]);
+			//qs = $("#bookmarks");
+			
+			createBookmarksUI(jsonb,  $("#bookmarks"));
+		}
+		
+		$select.change(function(data){
+			if ($select.find("option").size() > 0) {
+				// find id of selected
+				var id = parseInt($select.find("option:selected").val());
+				var jsonq = json[id];
+					
+				$('#bts_input').val(jsonq["name"]);
+				bs = $("#bookmarks");
+				
+				createBookmarksUI(jsonq, bs);
+				
+			}
+	     });
+		
+	}
+
+}
+
+function  preprocessJSON(json){
+	if (json["Admin"] != undefined) {
+		if (json["Admin"]["QueryIndices"] != undefined){
+			if (String(json["Admin"]["QueryIndices"]) != "null") {
+				if (json["Admin"].QueryIndices[0] == undefined){
+					var jj = json["Admin"]["QueryIndices"]["item"];
+					delete json["Admin"]["QueryIndices"]["item"];
+					json["Admin"]["QueryIndices"] = [{}];
+					json["Admin"]["QueryIndices"][0] = jj;
+				}
+			}
+		}
+	}
+	
+	
+	if (json["WorkspaceProfile"]["CustomTermsets"] != undefined){
+	
+	if (String(json["WorkspaceProfile"]["CustomTermsets"]) != "null") {
+		if (json["WorkspaceProfile"].CustomTermsets[0] == undefined){
+			var jj = json["WorkspaceProfile"]["CustomTermsets"]["item"];
+			delete json["WorkspaceProfile"]["CustomTermsets"]["item"];
+			json["WorkspaceProfile"]["CustomTermsets"] = [{}];
+			json["WorkspaceProfile"]["CustomTermsets"][0] = jj;
+		}
+	
+		
+		$.each(json["WorkspaceProfile"]["CustomTermsets"], function(i,item) {
+		    if (this.Terms[0] == undefined){
+		    	var jj = this["Terms"]["item"];
+				delete this["Terms"]["item"];
+				this.Terms = [{}];
+		    	this.Terms[0] = jj;
+		    }
+		});
+	}
+	}
+	if (json["WorkspaceProfile"].Querysets[0] == undefined){
+		var jj = json["WorkspaceProfile"]["Querysets"]["item"];
+		delete json["WorkspaceProfile"]["Querysets"]["item"];
+		json["WorkspaceProfile"]["Querysets"] = [{}];
+		json["WorkspaceProfile"]["Querysets"][0] = jj;
+		}
+	if (json["WorkspaceProfile"].Bookmarksets[0] == undefined){
+		var jj = json["WorkspaceProfile"]["Bookmarksets"]["item"];
+		delete json["WorkspaceProfile"]["Bookmarksets"]["item"];
+		json["WorkspaceProfile"]["Bookmarksets"] = [{}];
+		json["WorkspaceProfile"]["Bookmarksets"][0] = jj;
+		}
+
+	if (String(json["WorkspaceProfile"]["Querysets"]) != "null") {
+		
+		$.each(json["WorkspaceProfile"]["Querysets"], function(i,item) {
+		    if (this.Queries[0] == undefined){
+		    	var jj = this["Queries"]["item"];
+				delete this["Queries"]["item"];
+				this.Queries = [{}];
+		    	this.Queries[0] = jj;
+		    }
+		});
+		
+		$.each(json["WorkspaceProfile"]["Querysets"], function(i,item){
+			if (String(this.Queries) != "null") {
+				$.each(this.Queries, function(i,item){
+					if (this.collections != "null") {
+						if (this.collections[0] == undefined){
+					    	var jj = this["collections"]["item"];
+							delete this["collections"]["item"];
+							this.collections = [{}];
+					    	this.collections[0] = jj;
+					    }
+					}
+					if (this.columns != "null") {
+						if (this.columns[0] == undefined){
+					    	var jj = this["columns"]["item"];
+							delete this["columns"]["item"];
+							this.columns = [{}];
+					    	this.columns[0] = jj;
+					    }
+					}
+				});
+			}
+		});
+	}
+	
+	
+	if (String(json["WorkspaceProfile"]["Bookmarksets"]) != "null") {
+		
+		$.each(json["WorkspaceProfile"]["Bookmarksets"], function(i,item) {
+		    if (this.Bookmarks[0] == undefined){
+		    	var jj = this["Bookmarks"]["item"];
+				delete this["Bookmarks"]["item"];
+				this.Bookmarks = [{}];
+		    	this.Bookmarks[0] = jj;
+		    }
+		});
+		
+		$.each(json["WorkspaceProfile"]["Bookmarksets"], function(i,item){
+			if (String(this.Bookmarks) != "null") {
+				$.each(this.Bookmarks, function(i,item){
+					if (this.collections != "null") {
+						if (this.collections[0] == undefined){
+					    	var jj = this["collections"]["item"];
+							delete this["collections"]["item"];
+							this.collections = [{}];
+					    	this.collections[0] = jj;
+					    }
+					}
+					if (this.columns != "null") {
+						if (this.columns[0] == undefined){
+					    	var jj = this["columns"]["item"];
+							delete this["columns"]["item"];
+							this.columns = [{}];
+					    	this.columns[0] = jj;
+					    }
+					}
+				});
+			}
+		});
+	}
+	return json;
+	
+}
+
+
+
+
+function saveTermset(id, name, listwidget) {
+	
+
+	var terms = [{}];	
+	
+	$.each(listwidget.widgets,function(i,elem){
+		terms[i] = elem.name;
+	});
+	
+	var dt = new Date();
+	var str_time = dateFormat(dt);//dt.toString("dd/mm/yyyy HH:mm:ss");
+	var jsont = {"name":name, "time" : str_time, "Terms" :terms};
+
+	workspace.addelement("customtermset",jsont);
+	workspace.save("user");
+/*
+	if (jsonw["WorkspaceProfile"]["CustomTermsets"] == "null") {
+		jsonw["WorkspaceProfile"]["CustomTermsets"] = [{}];
+		if (id == -1) {id = 0;};
+	}
+	if (id == -1) {id = jsonw["WorkspaceProfile"]["CustomTermsets"].length;};
+	jsonw["WorkspaceProfile"]["CustomTermsets"][id] = jsont;
+	
+	//saveWorkspace("USER");
+	Workspace.save("USER");
+*/
+};
+function removeTermset(id){
+	workspace.removeelement("customtermset",id);
+	workspace.save("user");
+	/*
+	var size = jsonw["WorkspaceProfile"]["CustomTermsets"].length;
+
+	for (var i=id;i<size-1;i++){
+		jsonw["WorkspaceProfile"].CustomTermsets[i] = jsonw["WorkspaceProfile"].CustomTermsets[i+1];
+	}
+
+	delete jsonw["WorkspaceProfile"].CustomTermsets[size-1];
+	jsonw["WorkspaceProfile"]["CustomTermsets"].length = size-1;
+	// set null string , if 0 
+	if (size == 1) {
+		jsonw["WorkspaceProfile"]["CustomTermsets"] = "null";
+	}
+	//saveWorkspace("USER");
+	Workspace.save("USER");
+	*/
+}
+
+/*
+function loadWelcomeMessage(){	
+	$('#welcomedetail').load("/MDService2/docs/xml/welcome #welcome", function() { //profile.collections.base_uri,
+		$('#welcome').addClass("ui-helper-reset ui-corner-all ui-widget-content");
+	});
+}
+*/
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_settings.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_settings.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_ui_settings.js	(revision 1516)
@@ -0,0 +1,323 @@
+
+/**
+ * @fileOverview This file includes avv variables and possibilities of app settings concerned more areas:
+ * data loading  - actions - possible to set details of data loading (uri)
+ * pane structure 
+ *	- layout_settings[pane_name], layoutBaseSettings - sets the properties of particular panes (ui-layout plugin settings )
+ *	- layout_initialisation - structure of particular pane placement
+ * app functionality - blocks_settings - the properties of particular ui blocks (type of detail-window display, commands-TODO)
+ * @author 
+ * @version 
+ */
+
+//VARIABLES
+//var jsonw, json_admin;
+var workspace;
+var json_admin;
+var url_params;
+var local_collections = false;
+
+var  element_autocomplete = new Array();
+var  elements_hashtable =  {};
+
+var outerLayout, middleLayout, innerLayout;
+var block_positions = ["center","north","south","east","west"];
+
+
+// LOAD DATA SEETTINGS
+var actions = {
+			base: {
+			base_uri: "/MDService2/"
+		},
+		collections: {
+			base_uri: "/MDService2/collections/",			
+			current:'olac'},
+		elements: {
+				base_uri: "/MDService2/element/",			
+				current:''},
+		terms: {
+			base_uri: "/MDService2/terms/",			
+			current:'all',
+			maxdepth: 8},
+		terms_autocomplete: {
+				base_uri: "/MDService2/terms/",	
+				current:''},
+		components: {
+				base_uri: "/MDService2/comp/",				
+				current:''},
+				/* current:'cmdi-corpus-aac2'}, */		
+		compprofiles: {
+				base_uri: "/MDService2/compprofile/",				
+					current:''},
+					/* current:'cmdi-corpus-aac2'}, */		
+				
+		recordset: {
+				base_uri: "/MDService2/recordset/"
+				},
+
+		isocat: {
+				base_uri: "/MDService2/datcats/",
+				current:5
+				},
+		sru: {
+				base_uri: "/MDService2/sru/"
+			 },
+		pazpar: {
+					base_uri: "/MDService2/pazpar2/"
+				 }
+
+	};
+
+
+
+// LAYOUT SETTING
+var layoutBaseSettings = { 
+		
+		//	center__paneSelector:	".base-center" 
+		//,	west__paneSelector:		".base-west" 
+		//,	east__paneSelector:		".base-east"
+		//,	north__paneSelector:	".base-north" 
+		    size:					"auto"
+		  ,	west__size:				140 
+		  ,	east__size:				280 
+		//,	north__size:			200
+		  ,	spacing_open:			4//8 // ALL panes
+		//,	spacing_closed:			12//12 // ALL panes
+		//,	north__spacing_open:	0
+		//,	south__spacing_closed:	0
+		//,	north__maxSize:			200
+		//,	south__maxSize:			200
+		  , contentSelector:		".content"
+};
+
+var layoutSettings_querysearch_advanced = { 
+		north__size:			200
+	,	north__spacing_open:	2
+};
+var layoutSettings_columns_collections = { 
+		west__size:			300
+	,	west__spacing_open:	2
+};
+var layoutSettings_coll_block = { 
+		north__size:			60
+	,	north__spacing_open:	2
+};
+
+/* layout sample
+var layoutSettings_Outer = {
+		name: "outerLayout" // NO FUNCTIONAL USE, but could be used by custom code to 'identify' a layout
+		// options.defaults apply to ALL PANES - but overridden by pane-specific settings
+	,	defaults: {
+			size:					"auto"
+		,	minSize:				50
+		,	paneClass:				"pane" 		// default = 'ui-layout-pane'
+		,	resizerClass:			"resizer"	// default = 'ui-layout-resizer'
+		,	togglerClass:			"toggler"	// default = 'ui-layout-toggler'
+		,	buttonClass:			"button"	// default = 'ui-layout-button'
+		,	contentSelector:		".content"	// inner div to auto-size so only it scrolls, not the entire pane!
+		,	contentIgnoreSelector:	"span"		// 'paneSelector' for content to 'ignore' when measuring room for content
+		,	togglerLength_open:		35			// WIDTH of toggler on north/south edges - HEIGHT on east/west edges
+		,	togglerLength_closed:	35			// "100%" OR -1 = full height
+		,	hideTogglerOnSlide:		true		// hide the toggler when pane is 'slid open'
+		,	togglerTip_open:		"Close This Pane"
+		,	togglerTip_closed:		"Open This Pane"
+		,	resizerTip:				"Resize This Pane"
+		//	effect defaults - overridden on some panes
+		,	fxName:					"slide"		// none, slide, drop, scale
+		,	fxSpeed_open:			750
+		,	fxSpeed_close:			1500
+		,	fxSettings_open:		{ easing: "easeInQuint" }
+		,	fxSettings_close:		{ easing: "easeOutQuint" }
+	}
+	,	north: {
+			spacing_open:			1			// cosmetic spacing
+		,	togglerLength_open:		0			// HIDE the toggler button
+		,	togglerLength_closed:	-1			// "100%" OR -1 = full width of pane
+		,	resizable: 				false
+		,	slidable:				false
+		//	override default effect
+		,	fxName:					"none"
+		}
+	,	south: {
+			maxSize:				200
+		,	spacing_closed:			0			// HIDE resizer & toggler when 'closed'
+		,	slidable:				false		// REFERENCE - cannot slide if spacing_closed = 0
+		,	initClosed:				true
+		//	CALLBACK TESTING...
+		,	onhide_start:			function () { return confirm("START South pane hide \n\n onhide_start callback \n\n Allow pane to hide?"); }
+		,	onhide_end:				function () { alert("END South pane hide \n\n onhide_end callback"); }
+		,	onshow_start:			function () { return confirm("START South pane show \n\n onshow_start callback \n\n Allow pane to show?"); }
+		,	onshow_end:				function () { alert("END South pane show \n\n onshow_end callback"); }
+		,	onopen_start:			function () { return confirm("START South pane open \n\n onopen_start callback \n\n Allow pane to open?"); }
+		,	onopen_end:				function () { alert("END South pane open \n\n onopen_end callback"); }
+		,	onclose_start:			function () { return confirm("START South pane close \n\n onclose_start callback \n\n Allow pane to close?"); }
+		,	onclose_end:			function () { alert("END South pane close \n\n onclose_end callback"); }
+		//,	onresize_start:			function () { return confirm("START South pane resize \n\n onresize_start callback \n\n Allow pane to be resized?)"); }
+		,	onresize_end:			function () { alert("END South pane resize \n\n onresize_end callback \n\n NOTE: onresize_start event was skipped."); }
+		}
+	,	west: {
+			size:					250
+		,	spacing_closed:			21			// wider space when closed
+		,	togglerLength_closed:	21			// make toggler 'square' - 21x21
+		,	togglerAlign_closed:	"top"		// align to top of resizer
+		,	togglerLength_open:		0			// NONE - using custom togglers INSIDE west-pane
+		,	togglerTip_open:		"Close West Pane"
+		,	togglerTip_closed:		"Open West Pane"
+		,	resizerTip_open:		"Resize West Pane"
+		,	slideTrigger_open:		"click" 	// default
+		,	initClosed:				true
+		//	add 'bounce' option to default 'slide' effect
+		,	fxSettings_open:		{ easing: "easeOutBounce" }
+		}
+	,	east: {
+			size:					250
+		,	spacing_closed:			21			// wider space when closed
+		,	togglerLength_closed:	21			// make toggler 'square' - 21x21
+		,	togglerAlign_closed:	"top"		// align to top of resizer
+		,	togglerLength_open:		0 			// NONE - using custom togglers INSIDE east-pane
+		,	togglerTip_open:		"Close East Pane"
+		,	togglerTip_closed:		"Open East Pane"
+		,	resizerTip_open:		"Resize East Pane"
+		,	slideTrigger_open:		"mouseover"
+		,	initClosed:				true
+		//	override default effect, speed, and settings
+		,	fxName:					"drop"
+		,	fxSpeed:				"normal"
+		,	fxSettings:				{ easing: "" } // nullify default easing
+		}
+	,	center: {
+			paneSelector:			"#mainContent" 			// sample: use an ID to select pane instead of a class
+		,	onresize:				"innerLayout.resizeAll"	// resize INNER LAYOUT when center pane resizes
+		,	minWidth:				200
+		,	minHeight:				200
+		}
+};
+*/
+
+//BLOCKS LAYOUT
+var layout_initialisation = {
+	base: {
+		layout: "",
+		parent: 'body',
+		model_settings: layoutBaseSettings,
+		settings: "",
+		center: ['base_center_p'],
+		west: ['base_west_p'],
+		east: ['#detailblock'],
+		north: ['#titlelogin']
+		 },
+	base_center_p: {
+			 layout: "",
+			parent: "",
+			model_settings: layoutBaseSettings,
+			settings: "",
+			center: ["#querylistblock"],
+			north: ["#querysearch"]
+		},
+	base_west_p: {
+			layout: "",
+			parent: "",
+			model_settings: layoutBaseSettings,
+			settings: "",
+			center: ["#user-space"],
+			north: ["#public-space"]
+		},
+		//querysearch_advanced: {
+		//	parent: "",
+		//	model_settings: layoutBaseSettings,
+		//	settings: layoutSettings_querysearch_advanced,
+		//	center: ["columns_collections"],
+		//	north: ["#sc-list"]
+		//},
+		columns_collections: {
+			layout: "",
+			parent: "",
+			model_settings: layoutBaseSettings,
+			settings: "",//layoutSettings_columns_collections,
+			west: ["columns_block"],
+			center: ["collections_block"]
+		},
+		columns_block: {
+			layout: "",
+			parent: "",
+			model_settings: layoutSettings_coll_block,
+			settings: "",
+			center: ["#terms-block"],
+			north: ["#columns-selection"]
+		},
+		collections_block: {
+			layout: "",
+			parent: "",
+			model_settings: layoutSettings_coll_block,
+			settings: "",
+			center: ["#collections-block"],
+			north: ["#collections-selection"]
+		}
+		
+};
+// type = [floating, pane, inline]
+var blocks_settings = {
+	querysearch:{
+		id: "#querysearch",
+		//sublayouts: ['querysearch_advanced'],
+		commands: {
+			block:['cmd_advanced']
+		}
+	},
+	querylist:{
+		id: "#querylistblock",
+		//sublayouts: [],
+		commands: {
+			block:['cmd_close']
+		}
+	},
+	collections:{
+		id: "#collections",
+		detail: {
+			parent: "",
+			type: "floating"
+		}
+	},
+	terms:{
+		id: "#terms",
+		detail: {
+			parent: "",
+			type: "pane"
+		}
+	},
+	index:{
+		id: "",
+		detail: {
+			parent: "",
+			type: "pane"
+		}
+	},
+	values:{
+		id: "#values",
+		detail: {
+			parent: "",
+			type: "floating"
+		}
+	},
+	query:{
+		id: "#query",
+		detail: {
+			parent: "",
+			type: "pane"
+		}
+	},
+	record:{
+		id: "#records",
+		detail: {
+			parent: "",
+			type: "pane"
+		}
+	},
+	info:{
+		id: "#info",
+		detail: {
+			parent: "",
+			type: "pane"
+		}
+	}
+};
Index: MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_widgets.js
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_widgets.js	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_widgets.js	(revision 1516)
@@ -0,0 +1,674 @@
+
+/**
+ * @fileOverview The file builds important widgets used in app.
+ * Following widqets are defined:
+ * <dl>
+ * <dt>notifyMessage</dt><dd>model and bulding of set of notifyMessages</dd>
+ * <dt>listWidget</dt><dd>the compact widget for creation list of elements, possible add, remove elements, addition through html - input 
+ *	possible to use autocomplete</dd>
+ * </dl>
+ * @author 
+ * @version 
+ */
+ 
+/**
+ * 
+ * @constructor 
+ */
+function NotifyMessage(dt, msg){
+	this.dt = dt;
+	this.msg = msg;
+};
+
+NotifyMessage.prototype.getText = function(){
+
+	var month = this.dt.getMonth() + 1;
+	var day = this.dt.getDate();
+	var year = this.dt.getFullYear();
+	var h = this.dt.getHours();
+	var m = this.dt.getMinutes();
+	var s = this.dt.getSeconds();
+	var m =  year + "-" +  month + "-" + day + " "  + h + ":" + m + ":" + s + "  :" + this.msg;
+	return m;
+};
+
+
+NotifyMessage.prototype.render = function () {
+	var x = "<div id='" + this.listid + "' class='notify_wrapper ui-widget' >" +
+			//"<span class='notifymessage_id'>" + this.listid + "</span>: " +
+			"<span class='notifymessage'>" + this.getText() + "</span></div>";
+	addToNotifylist(x);	
+	
+	this.container = $('#' + this.listid );
+	$(this.container).find('.notifymessage').dblclick(function(){
+		showNotifyMessages();
+	});
+ };
+var notify_container = $("#notifylist"); 
+
+/**
+ * Maintains the notify messages
+ * @constructor 
+ */
+var notifyset = { notifymessages: [],
+	container: '#notifylist',
+		
+	add: function (notifymessage){
+			
+		this.notifymessages[this.notifymessages.length] = notifymessage;
+		notifymessage.listid = "nm" + this.notifymessages.length;
+		notifymessage.render();				
+	},
+
+	remove: function (mid) {		
+		 for (var i = 0; i < this.notifymessages.length; i++) {
+			if (this.notifymessages[i].listid == mid) {
+				this.notifymessages.splice(i, 1);
+			} 
+		}	
+		$('#' + mid).remove();
+	}	
+};
+////////////////////////////////////////////////////////////////////////
+
+/**
+ * @field 
+ * @memberOf ListWidget
+ */
+var collections_widget = null;
+
+/**
+ * @field 
+ * @memberOf ListWidget
+ */
+var columns_widget = null;
+
+/**
+ * @field 
+ * @memberOf ListWidget
+ */
+var active_widget = null;
+
+/**
+ * A generic widget allowing manipulating lists
+ * @constructor 
+ */
+function ListWidget(_parent_div, type) {
+	this.parent_div = $(_parent_div);//$('#columns-widget');	
+	this.listwidget_container = {};
+	this.widgets = [];
+	this.lvid = "";
+	this.type = type;
+	
+	//this.query = undefined;
+	//this.init();
+	
+};
+/*
+ListWidget.prototype.getType = function(){
+	if (this.type == "collections") {
+		return "cls";
+	}
+	return "col";
+};
+*/
+ListWidget.prototype.getTypePrefix = function(){
+	var typeprefix = "";
+	if (this.type == "columns") {
+		typeprefix =  "col_";
+	} 
+	if (this.type == "collections") {
+		typeprefix =  "cls_";
+	} 
+	typeprefix = typeprefix + this.lvid + "_";
+	//var qid = $(this).closest('.query_wrapper').attr("id");
+	return typeprefix;//"col_" + qid + "_";
+	
+};
+
+ListWidget.prototype.add = function(list_item){
+	this.widgets[this.widgets.length] = list_item;
+	list_item.parent_container = this.getListWidget();
+	list_item.listid = this.getTypePrefix() + this.widgets.length;
+	list_item.render();
+};
+
+ListWidget.prototype.clear = function() {
+	$.each(this.widgets,function(i,list_item){
+		$('#' + this.listid).remove();
+	});
+	this.widgets.splice(0, this.widgets.length);
+};
+
+ListWidget.prototype.remove = function(id){
+	for (var i = 0; i < this.widgets.length; i++) {
+		if (this.widgets[i].listid == id) {
+			//if (this.type == "collections"){
+			//	var n = this.widgets[i].index;
+			//	//$('#collections').find("[href=" + n + "]");
+			//	$('#collections').find('.jstree-checked').each(function(){
+			//		var jstreename = $(this).find('a').attr("href").split('?')[1].split('&')[0].split('=')[1];
+			//		if (jstreename == n){
+			//			$(this).removeClass("jstree-checked").addClass("jstree-unchecked");
+			//			//$('#collections').plugins.checkbox.uncheck($(this));
+			//		}
+			//	});
+			//}
+			this.widgets.splice(i, 1);
+			
+		} 
+	}	
+	$('#' + id).remove();
+};
+
+ListWidget.prototype.render = function () {
+	var x_save = "";
+	var x_detail = "";
+	var name = "";
+	var x_input = "";
+	
+	//x_input = "<input type='text' class='input-widget autocomplete-input' />";
+	if ($(this.parent_div).attr("id") == 'columns-widget') {
+		x_save =  "<span class='cmd cmd_save' />";
+	}
+	if ($(this.parent_div).attr("id") == 'collections-widget') {
+		x_save = "<span class='cmd cmd_detail' />";
+		name = "Collections";
+	}
+	var x = "<div id='"+ this.lvid + "' class='widget-wrapper ui-widget' >" + 
+	"<div class='widget-header'>"  + // ui-widget-header ui-state-default ui-corner-top'>" +
+	"<label>" + name + "</label>" + //"<span>" + name + "</span>" + 
+	x_save + x_detail + "</div>" +
+	"<div class='widget-content'>" + x_input + 
+	"<div class='index-context'><table></table></div><div class='list-widget'></div></div></div>";
+	$(this.parent_div).append(x);
+
+	listwidget_container = $(this.parent_div).find('.list-widget');//$('#columns-list'); 
+
+	$('#' + this.lvid + ' .cmd_del').live('click',  function(event) {
+	//$(this.parent_div).find('.cmd_del').live('click',  function(event) {
+		var colid = $(this).closest('.list-item').attr("id");
+		var lvid = $(this).closest('.widget-wrapper').attr('id');
+		var lv;
+		var sl;
+		//var q;
+		if (lvid.beginsWith("sl")){
+			sl = selectionlistset.getselectionlist($(this).closest('.selectionlist-widget').attr("id"));
+			if (sl.autoSelected()){
+				sl.select(0);
+			}
+			lv = sl.listwidget;
+			//q = $(this).closest('.detail-wrapper').find('.cmd_reload').data();
+		} else {
+			lv = listwidgetset.getlistwidget(lvid);
+		}
+		lv.remove(colid);
+		//resubmit query
+		/*
+		if (lvid.beginsWith("sl")){
+			q.query.updateColumns(sl);
+			q.query.resubmit();
+		}
+		*/
+		/*
+		if ($(this).parent().parent().parent().attr('class') == 'query-columns'){
+			var qid = $(this).closest('.query_wrapper').attr("id");
+			var q = queryset.getQuery(qid);
+			q.columns_widget.remove(colid);
+		}else {
+		if ($(this).parent().parent().parent().attr('id') == "columns-widget"){	
+			columns_widget.remove(colid);
+		} else {
+			collections_widget.remove(colid);
+		}
+		*/
+	});
+
+
+	var input = $(this.parent_div).find('.input-widget');
+	
+	input.focusin(function(){
+		var colid = $(this).closest('.list-item').attr("id");
+		var lvid = $(this).closest('.widget-wrapper').attr('id');
+		var lv = listwidgetset.getlistwidget(lvid);
+		active_widget = lv;
+/*		if ($(this).parent().attr('class') == 'query-columns'){
+			var qid = $(this).closest('.query_wrapper').attr("id");
+			var q = queryset.getQuery(qid);
+			active_widget = q.columns_widget;
+		}else{
+			active_widget = columns_widget;
+		}
+		*/
+	});
+	input.bind('change', function(){
+		
+	});
+	
+	input.keydown(function(ev){
+		var evStop = function(){ 
+			ev.stopPropagation(); 
+			ev.preventDefault(); 
+		};
+		if (ev.which === 13) {
+			var colid = $(this).closest('.list-item').attr("id");
+			var lvid = $(this).closest('.widget-wrapper').attr('id');
+			var lv = listwidgetset.getlistwidget(lvid);
+			lv.add(new ListItem($(this).val()));
+/*			if ($(this).parent().attr('class') == 'query-columns'){
+				var qid = $(this).closest('.query_wrapper').attr("id");
+				var q = queryset.getQuery(qid);
+				q.columns_widget.add(new ListItem($(this).val()));
+			}else{
+				columns_widget.add(new  ListItem($(this).val()));
+			}
+			evStop();
+			*/
+		}
+	});
+	
+	if ($(this.parent_div).attr('id') == "collections-widget") {
+		$(input).hide();
+	}
+ };
+
+ ListWidget.prototype.getListWidget = function() {
+	 return $(this.parent_div).find('.list-widget');
+ };
+ListWidget.prototype.initAutocomplete = function(autocomplete_array) {
+ 	
+ 	if (autocomplete_array.size == 0) return;
+ 	 
+ 	 //autocomplete
+ 	function handleSelectionWidget(elem, widget){
+ 		var input = $(widget.parent_div).find('.input-widget');
+		var context = $(input).next('.index-context');
+	
+		// fill context
+		$(context).html(elements_hashtable[elem]);
+		$(context).show();
+		$(input).blur(function(){
+ 				$(context).hide();
+ 			});
+		$(input).focusin(function(){
+ 				$(context).hide();
+ 			});
+ 						
+ 		};
+ 		
+ 		//autocomplete
+ 		function findValueWidget(e) {
+ 			var sValue = e.selectValue;
+ 			handleSelectionWidget(sValue, active_widget);			
+ 		}
+ 		 
+ 		function selectItemWidget(li) {
+ 			findValueWidget(li);
+ 		}		
+
+ 	 		var ac = $(this.parent_div).find('.input-widget').autocompleteArray(autocomplete_array,{
+ 	 			autoFill:true,
+ 	 			width:150,
+ 	 			onFindValue:findValueWidget,
+ 	 			onItemSelect:selectItemWidget
+ 	 			//extraParams: {oo, '75'}
+ 	 		});
+
+ 	 		//ac.setExtraParams({aaa:3});
+ 	 
+};
+ListWidget.prototype.load = function(items) {
+	this.clear();
+		
+	if (items != undefined){
+		if (this.type == "collections"){
+			for(var i=0; i<items.length; ++i) {
+				this.add(new ListItem(items[i].name, items[i].index));
+			 }   
+		} else
+		{
+			for(var i=0; i<items.length; ++i) {
+				if (items[i].length > 0){
+					this.add(new ListItem(items[i]));
+				}
+			 }   
+		}	
+	}
+};
+
+ListWidget.prototype.getListText = function() {
+	var column_text = "";
+	if (this.type == "collections"){
+		$.each(this.widgets,function(i,column){
+			column_text = column_text  + "," + jQuery.trim(column.index);
+		});
+	} else {
+		$.each(this.widgets,function(i,column){
+			column_text = column_text  + "," + jQuery.trim(column.name);
+		});
+	}
+	
+	
+	if (column_text.length > 1) {
+		column_text = column_text.substring(1);	
+	}
+	return column_text;
+};
+
+
+
+
+function ListItem(_name, _index ) {
+	this.name = _name;
+	this.index = _index;
+	this.listid = "";
+	this.parent_container = {};
+}
+
+ListItem.prototype.render = function () {
+	
+	var x_save = "";
+	
+	//if ($(this.parent_container).parent().attr("id") == 'columns-widget') {
+	//	x_save = "<span class='cmd cmd_save' />";
+	//}
+	
+	var x = "<div id='" + this.listid + "'class='list-item'><span>" + this.name + "</span><span class='cmd cmd_del'> </span>" + x_save + "</div>";
+
+	$(this.parent_container).prepend(x);
+	//$('#columns-list').prepend(x);
+	//addToColumnslist(x);	
+	this.container = $('#' + this.listid );
+}; 
+
+/**
+ * FIXME: What is this for?
+ * @constructor
+ */
+	
+var listwidgetset = { listwidgets: [],
+		container: '#listwidgetlist',
+			
+		add: function (listwidget){
+				
+			this.listwidgets[this.listwidgets.length] = listwidget;
+			listwidget.lvid = "lv" + this.listwidgets.length;
+			listwidget.render();				
+		},
+
+		remove: function (lvid) {		
+			 for (var i = 0; i < this.listwidgets.length; i++) {
+				if (this.listwidgets[i].listid == mid) {
+					this.listwidgets.splice(i, 1);
+				} 
+			}	
+			$('#' + lvid).remove();
+		},
+		getlistwidget: function(lvid) {
+			var listwidget;
+			$.each(this.listwidgets,function(){
+				if (this.lvid == lvid) {
+					listwidget = this;
+				}
+			});
+			return listwidget;
+		}
+	};
+	////////////////////////////////////////////////////////////////////////
+
+
+//////  SELECTION LIST - COMBOBOX
+/**
+ * Selection List implemented as Combobox
+ * @constructor 
+ */
+
+function SelectionList(_parent_div) {
+	this.parent_div = $(_parent_div);	
+	//this.container = "";
+	
+	//this.listwidget_container = {};
+	this.items = [];
+	this.items[0] = new ListItem("<new>");
+	this.items[1] = new ListItem("<auto>");
+	this.autolist = [];
+	
+	this.slid = "";
+	
+	this.listwidget = new ListWidget();
+	//this.type = type;
+	
+};
+SelectionList.prototype.getSelect = function(){
+	var select;
+	select = $(this.parent_div).find('select');
+	return $(select);
+};
+SelectionList.prototype.createSelect = function(){
+	var items = this.items;
+	var slid = this.slid;
+	var $select = this.getSelect();
+	$select.children().remove();
+	
+	$.each(this.items,function(i, item){
+		items[i].lvid = slid + "_" + i;
+		$select.append(new Option(item.name, i));
+	});
+	
+	$select.change(function(data){
+		if ($(this).find("option").size() > 0) {
+			// find id of selected
+			var id = parseInt($select.find("option:selected").val());
+			var slid = $(this).closest('.selectionlist-widget').attr("id");
+			var sl = selectionlistset.getselectionlist(slid);
+			if (id < 2) {
+				if (id == 1){
+					sl.listwidget.load(sl.autolist.split(','));
+				}else{
+					sl.listwidget.clear();
+				}
+				$(this).closest('.selectionlist-select').find('.cmd_del').attr("disabled","disabled");
+				$(this).closest('.selectionlist-select').find('.cmd_save').attr("disabled","disabled");
+			} else {
+				sl.listwidget.load(jsonw["WorkspaceProfile"]["CustomTermsets"][id - 2]["Terms"]);
+				$(this).closest('.selectionlist-select').find('.cmd_del').removeAttr("disabled");
+				$(this).closest('.selectionlist-select').find('.cmd_save').removeAttr("disabled");
+			}
+		}
+     });
+};
+SelectionList.prototype.load = function(json){
+	var items = this.items;
+	//var $select = this.getSelect();
+	//$select.children().remove();
+
+	//<auto>,<new>
+	//$select.append(new Option(this.items[0], 0));
+	//$select.append(new Option(this.items[1], 1));
+	if (json != "null") {
+		$.each(json, function(i,item) {
+			items[items.length] = new ListItem(item.name);
+			//$select.append(new Option(item.name, i+2));
+		});
+	}
+	/*
+	// find id of selected
+	if ($select.find("option").size() > 0) {
+		$select.find("option").first().attr("selected","true");
+		var id = parseInt($select.find("option:selected").val());
+		this.listwidget.load(json[id]["Terms"]);
+	}
+	*/
+	this.createSelect();
+};
+SelectionList.prototype.add = function(item){
+	this.items[this.items.length] = item;
+	//list_item.parent_container = this.getListWidget();
+	item.listid = this.slid + "_" + this.items.length;
+	this.getSelect().append(new Option(this.items[this.items.length-1].name, this.items.length-1));
+	//list_item.render();
+};
+
+SelectionList.prototype.clear = function() {
+	if (this.items.length > 0){
+		this.items.splice(i, this.items.length);	
+	}
+	this.listwidget.clear();
+};
+
+SelectionList.prototype.remove = function(id){
+	this.items.splice(id, 1);
+	var select = $(this.parent_div).find('.selectionlist-select').children('select');
+	$($(select).find('option')[id]).remove();
+	$(select).find('option').each(function(i, item){
+		$(this).val(i);
+	});
+};
+SelectionList.prototype.autoSelected = function(){
+	if (this.getSelected() == 1){
+		return true;
+	}
+	return false;
+};
+SelectionList.prototype.getSelected = function(){
+	return $(this.getSelect()).find('option:selected').val();
+};
+SelectionList.prototype.select = function(id){
+	$(this.getSelect().find('option')[id]).attr("selected","selected");//get(id).selectedIndex = id; 
+	//var sl = this;//selectionlistset.getselectionlist(this.slid);
+	if (id > 1){
+		this.listwidget.load(jsonw["WorkspaceProfile"]["CustomTermsets"][id - 2]["Terms"]);
+	} else {
+		if (id == 1){
+			this.listwidget.load(this.autolist.split(',') );
+		}
+	}	
+};
+SelectionList.prototype.render = function () {
+	var x = "<div id='"+ this.slid +"' class='widget-wrapper ui-widget selectionlist-widget' >" +
+	"<div class='widget-content'><div class='selectionlist-select'><select></select>"+
+	"<span class='cmd cmd_save' /><span class='cmd cmd_saveas' /><span class='cmd cmd_del' /></div>"+
+	"<div><input type='text' class='saveas-input' /></div>"+
+	"<div class='selectionlist-listwidget'></div></div>";
+	$(this.parent_div).append(x);
+
+	$(this.parent_div).find('.selectionlist-select').find('.cmd_save').click(function(){
+		var select = $(this).closest('.selectionlist-select').children('select');
+		var id = parseInt($(select).find("option:selected").val());
+		if (id < 2) {return;}
+		var name = $(select).find("option:selected").text();
+		
+		var slid = $(this).closest('.widget-wrapper').attr("id");
+		var selectionlist = selectionlistset.getselectionlist(slid);
+		
+		saveTermset(id - 2, name, selectionlist.listwidget);
+	});
+	$(this.parent_div).find('.selectionlist-select').find('.cmd_saveas').click(function(){
+		var saveas = $(this).closest('.selectionlist-widget').find('.saveas-input');
+		$(saveas).show();
+		$(saveas).focus();
+		
+		/*
+		var name = $(this).closest('.selectionlist-select').find('.saveas-input').text();
+		var slid = $(this).closest('widget-wrapper').attr("id");
+		var selectionlist = selectionlistset.getselectionlist(slid);
+		
+		selectionlist.add(name);
+		*/
+	});
+	$(this.parent_div).find('.selectionlist-select').find('.cmd_del').click(function(){
+		//find selected
+		var select = $(this).closest('.selectionlist-select').children('select');
+		var id = parseInt($(select).find("option:selected").val());
+		if (id < 2) {return;}
+		
+		var slid = $(this).closest('.selectionlist-widget').attr("id");
+		var selectionlist = selectionlistset.getselectionlist(slid);
+		
+		removeTermset(id -2);
+		
+		selectionlist.remove(id);
+		if (id > 0 ){
+			id = id - 1;
+		}
+		selectionlist.select(id);
+		
+	});
+	
+	$(this.parent_div).find('.saveas-input').focusout(function(){
+		$(this).attr("value","");
+		$(this).hide();
+	});
+	$(this.parent_div).find('.saveas-input').keydown(function(ev){
+		var evStop = function(){ ev.stopPropagation(); ev.preventDefault(); };
+		if (ev.which === 23) {
+			$(this).attr("value","");
+			$(this).hide();
+			evStop();
+		}
+		var evSaveAs = function(name, select, slid){
+			ev.preventDefault();
+			
+			//var slid = $(this).closest('.widget-wrapper').attr("id");
+			var selectionlist = selectionlistset.getselectionlist(slid);
+			
+			saveTermset(-1, name, selectionlist.listwidget);
+			selectionlist.add(new ListItem(name));
+			selectionlist.select($(select).children().length-1);
+		};
+		if ($(this).attr("value").length > 0 &&  ev.which === 13) evSaveAs($(this).attr("value"),
+				$(this).closest('.selectionlist-widget').find('select'),
+				$(this).closest('.widget-wrapper').attr("id")); 
+	});
+	
+	$(this.parent_div).find('.saveas-input').hide();
+	$(this.parent_div).find('.selectionlist-select').find('.cmd_del').attr("disabled","disabled");
+	$(this.parent_div).find('.selectionlist-select').find('.cmd_save').attr("disabled","disabled");
+	this.listwidget = new ListWidget( $(this.parent_div).find('.selectionlist-listwidget'));
+	this.listwidget.lvid = this.slid + "_lv";
+	this.listwidget.render();
+	
+	//$(this.parent_div).find
+ };
+
+ /*
+SelectionList.prototype.load = function(items) {
+	this.clear();
+		
+	for(var i=0; i<items.length; ++i) {
+			this.add(new ListItem(items[i]));
+	}   
+};
+*/
+	
+/**
+ * FIXME: What is this for?
+ *  @constructor
+ */
+var selectionlistset = { selectionlists: [],
+			
+		add: function (selectionlist){
+				
+			this.selectionlists[this.selectionlists.length] = selectionlist;
+			selectionlist.slid = "sl" + this.selectionlists.length;
+			selectionlist.render();				
+		},
+
+		remove: function (slid) {		
+			 for (var i = 0; i < this.selectionlists.length; i++) {
+				if (this.selectionlists[i].slid == slid) {
+					this.selectionlists.splice(i, 1);
+				} 
+			}	
+			$('#' + slid).remove();
+		},
+		getselectionlist: function(slid) {
+			var selectionlist;
+			$.each(this.selectionlists,function(){
+				if (this.slid == slid) {
+					selectionlist = this;
+				}
+			});
+			return selectionlist;
+		}
+	};
Index: MDService2/branches/MDService_simple3/WebContent/simple_index.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/simple_index.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/simple_index.jsp	(revision 1516)
@@ -0,0 +1,37 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="UTF-8"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+<link href="style/jquery/clarindotblue/jquery-ui-1.8.5.custom.css" type="text/css" rel="stylesheet"  />
+<!--  <link href="style/jquery/jquery-treeview/jquery.treeview.css" rel="stylesheet" /> -->
+<link href="style/cmds-ui.css" type="text/css" rel="stylesheet" /> 
+
+<title>CLARIN Metadata Repository/Service/HTMLBrowser</title>
+</head>
+
+<body>
+<div class="cmds-ui-block" id="titlelogin">
+	<div id="logo"><a href="http://www.clarin.eu" ><img src="style/imgs/clarin-logo.png" alt="CLARIN"></img></a> <div id="site-name" >Metadata Browser</div>
+	</div>
+	
+
+<form action="recordset/htmlsimple/" method="get">
+				<select name="repository">  
+				 <option value="clarin.at-mirror">clarin.at-mirror</option>  	
+				 <option value="gu.se-main">gu.se-main</option>  
+				 <option value="sru-corpus-ddcon">sru-corpus-ddcon</option> 
+				 <option value="pazpar">pazpar</option>
+				</select> 
+
+				<input type="text" name="q" ></input>
+				
+				<input type="submit" value="Submit" > </input><br/>			
+	</form>
+</body>
+
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/static/MDService2.wadl
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/MDService2.wadl	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/MDService2.wadl	(revision 1516)
@@ -0,0 +1,281 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application
+    xmlns="http://research.sun.com/wadl/2006/10"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:cat="http://www.isocat.org/"
+    xmlns:dcif="http://www.isocat.org/ns/dcif"
+    xmlns:mds="http://cmdi.clarin.eu/mdservice/"
+    xmlns:sru="http://www.loc.gov/standards/sru/specs/"
+>
+<doc title="CLARIN Metadata Service" >
+		This is a draft description of the REST-interface of <code>CLARIN Metadata Service</code>. Especially the response description is very sketchy yet.<br/>
+	Also the <code>@base</code> is an abstract one (more like a namespace). The actual URL is: <a href="http://clarin.aac.ac.at/MDService2/">http://clarin.aac.ac.at/MDService2/</a>	
+</doc>
+
+    <grammars>
+        <include href="http://www.isocat.org/12620/schemas/DCIF.rng"/>
+    </grammars>
+    
+    <resources base="http://cmdi.clarin.eu/mdservice/">
+
+          <param name="format" type="xs:string" style="matrix" >                        
+          	<option value="xml" mediaType="application/xml"/>  
+ 						<option value="htmltable" mediaType="application/html"/>  
+ 						<option value="htmldetail" mediaType="text/html"/>  
+ 						<option value="htmlpage" mediaType="text/html"/>  
+          </param>                   
+
+					<param name="repository" type="xs:int" style="matrix" default="1">
+						<doc>allows to dynamically select one of the available repositories for the queries.<br/>
+								Probably this should be rather a semantic identifier (a string-key instead of int)
+							</doc>
+          </param>                   
+
+					<param name="cache" type="xs:string" style="matrix" default="use">
+						<option value="use" />  
+ 						<option value="skip" />  
+ 						<option value="refresh" />   						
+          </param>                   
+
+
+				<resource id="basic-userinterface" path="">
+					<doc title="Default path" >
+				This is the default application trying to make sense of any parameters that are passed.				
+				So that it is possible to bookmark/send a query as a simple URI (REST at its best ;).
+				Sot it accepts the same parameters as the search-interface, but displays the query within the main user-interface.
+					</doc>
+
+            <method name="GET">
+                <request>   
+                		<param name="q" type="sru:CQL" style="query" >                        
+                    </param>                 
+                		<param name="squery" type="xs:string" style="query" ><doc title="Simple Query" >just individual terms</doc>                        
+                    </param>                 
+										<param name="columns" type="mds:cmdIndex" style="query" repeating="true" >                        
+                    </param>                                        
+                    <param name="collection" type="xs:URI" style="query" >                        
+                    </param>                                        										
+                    <param name="startRecord" type="xs:positiveInteger" style="query" ></param>
+                    <param name="maximumRecords" type="xs:positiveInteger" style="query" ></param>
+        
+                </request>
+                <response>
+                		<representation mediaType="text/html" >                        
+                    </representation>            
+                </response>
+            </method>
+        </resource>
+        
+
+        <resource id="collections" path="collections/{format}/{collection}">
+        	<doc title="Collections" >
+						This provides a summary of collections in the repository (it is passed on to <code>getCollections</code>-method of MdRepository)
+					</doc>
+            <method name="GET">
+                <request>
+                    <param name="collection" type="xs:URI" style="template" repeating="yes"/>
+                    <param name="maxdepth" type="xs:positiveInteger" style="query" />                    
+                </request>
+                <response>
+                    <representation mediaType="application/xml" element="mds:Collections">
+                        <param name="collection_name" path="//Collection" repeating="true" type="xs:QName" style="plain">
+                            <link resource_type="#collection"/>
+                        </param>                        
+                    </representation>
+                    
+                </response>
+            </method>
+        </resource>
+        
+        <resource id="model" path="model/{format}/{term}">
+        	<doc title="Model" >
+						This provides a summary of the xml-structure in the repository (aggregated XML-subtrees) (it is passed on to <code>queryModel</code>-method of MdRepository)<br/>
+						The starting context can be part of the url (template-style) or in the q parameter.
+						<span class="note">What happens if both are defined?</span>
+					</doc>
+
+            <method name="GET">
+                <request>
+                    <param name="term" type="mds:cmdIndex" style="template"/>                    
+                    <param name="q" type="mds:cmdIndex" style="query" />
+                    <param name="maxdepth" type="xs:positiveInteger" style="query" />                    
+                </request>
+                <response>
+                    <representation mediaType="application/xml" element="mds:Terms">
+                        <param name="cmdIndex" path="//mds:Terms/@path" repeating="true" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                    
+                    
+                </response>
+            </method>
+        </resource>
+        
+        <resource id="terms" path="terms/{format}/{term}">
+       		<doc title="Terms" >
+						This combines the information from MdRepository (model-interface), Component Registry and optionally Data Category Registry and RelationRegistry
+						providing a summary of the profiles actually used in the repository together with mapping to data-categories.						
+					</doc>
+
+            <method name="GET">
+                <request>
+                    <param name="format" type="xs:string" style="template" >                        
+					          	<option value="xml" mediaType="application/xml"/>  
+					 						<option value="flat" mediaType="application/html"/>  
+					 						<option value="autocomplete" mediaType="text/html"/>  
+					 						<option value="htmlselect" mediaType="text/html"/>  
+					 						<option value="htmlpage" mediaType="text/html"/>  
+				          	</param>  
+										<param name="term" type="mds:cmdIndex" style="template">
+                    		<option value="all" />
+                    		<option value="{profile name}" />
+                    	</param>
+                    <param name="q" type="mds:cmdIndex" style="query" />
+                    <param name="maxdepth" type="xs:positiveInteger" style="query" />                    
+                    
+                </request>
+                <response>
+                    <representation mediaType="application/xml" element="mds:Terms">
+                        <param name="cmdIndex" path="//mds:Terms/@path" repeating="true" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                    
+                    
+                </response>
+            </method>
+        </resource>
+        
+        
+        <resource id="recordset" path="recordset/{format}/">
+        	<doc title="Search" >
+						This is the actual search interface allowing to retrieve MDRecords from the MDRepository.
+						Main parameter is q expected to be a valid CQL-query. The query is translated into XPath and passed on to the <code>searchRetrieve</code>-method of MDRepository, which already returns a valid (SRU-protocol compliant) <code>searchRetrieveResponse</code>.
+					</doc>
+
+            <method name="GET">
+                <request>   
+                		<param name="q" type="sru:CQL" style="query" >                        
+                    </param>                 
+                		<param name="squery" type="xs:string" style="query" ><doc title="Simple Query" >just individual terms</doc>                        
+                    </param>                 
+                    <param name="columns" type="mds:cmdIndex" style="query" repeating="true" >                        
+                    </param>                                        
+                    <param name="collection" type="xs:URI" style="query" >                        
+                    </param>                                        
+										<param name="maxDepth" type="xs:positiveInteger"/>
+                    <param name="startRecord" type="xs:positiveInteger" style="query" ></param>
+                    <param name="maximumRecords" type="xs:positiveInteger" style="query" ></param>
+        
+                </request>
+
+                <response>
+                		<representation mediaType="application/xml" element="mds:searchRetrieveResponse">
+                        <param name="records" path="//records" repeating="false" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                                        
+                    
+                </response>
+            </method>
+        </resource>
+
+        <resource id="record" path="record/{format}/{q}">
+        	<doc title="Record detail" >
+						Special method for retrieving a full individual record. It is also translated into XPath (<code>MdSelfLink</code>) and served by the <code>searchRetrieve</code>-method of MDRepository.
+					</doc>
+
+            <method name="GET">
+                <request>                   		                		
+                    <param name="q" type="xs:URI" style="template" ><doc>PID - handle of the record</doc>
+                    </param>                    
+                  <param name="cacheid" type="xs:int" style="query" optional="yes" ><doc>Proposed parameter, to remember the recordset, the record comes in from, to be able, to retrieve it directly from MDService's cache and save the trip to MDRepository (for data, that is already locally available)</doc>
+                    </param>                    
+                </request>
+                <response>
+                		<representation mediaType="application/xml" element="mds:searchRetrieveResponse">
+                        <param name="records" path="//records" repeating="false" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                                        
+                    
+                </response>
+            </method>
+        </resource>
+		</resources>
+		
+    <resources base="http://cmdi.clarin.eu/mdservice/">
+        
+        <resource id="workspaceprofile" path="workspaceprofile/{type}">
+        	<doc title="Workspace profile" >
+						Delivers the configuration-structure. A server profile or an user specific (plus a special "default"-profile for the anonymous user).<br/>
+						The profiles are stored as xml-files on the server and handed out as JSON-files to the client.						
+					</doc>
+            <method name="GET">
+                <request>   
+                		<param name="type" type="xs:string" style="template" >                				
+	                			<option value="server" />
+	                			<option value="user" />
+                    </param>                    
+                </request>
+                <response>
+                		<representation mediaType="application/json" element="mds:WorkspaceProfile">                        
+                    </representation>                                        
+                    
+                </response>
+            </method>
+        </resource>
+        
+        <resource id="workspaceprofilesave" path="workspaceprofilesave">
+        	<doc title="Save workspace profile" >
+						Allows to save back the configuration-file.
+					</doc>
+            <method name="POST">
+                <request>   
+                		<param name="data" type="xs:string" style="query" default="public">                        
+                    </param>                                     
+                </request>
+                <response>
+                		<representation mediaType="application/json" element="mds:WorkspaceProfile">                        
+                    </representation>                                                            
+                </response>
+            </method>
+        </resource>
+        
+		</resources>
+		
+    <resources base="http://cmdi.clarin.eu/mdservice/admin/">
+        
+        <resource id="cache" path="cache/{format}">
+        	<doc title="Cache" >
+						Allows to view the cache-index
+					</doc>
+            <method name="GET">
+                <request>                   		
+                	<param name="format" type="xs:string" style="template" default="public" >
+                			<option value="xml" />
+                			<option value="htmlpage" />
+                		</param>
+                </request>
+                <response>
+                		<representation mediaType="text/html">                        
+                    </representation>                    
+                </response>
+            </method>
+	        <resource id="cache-del" path="del">
+	        	<doc title="Cache" >
+							Allows to delete/flush (parts of) cache; parameters constraint the part of cache to be deleted;
+							no param means: delete everything
+						</doc>
+	            <method name="GET">
+	                <request>                   		
+	                	<param name="actionkey" type="xs:string" style="query" default="public" optional="yes"></param>                                     
+	                	<param name="repository" type="xs:int" style="query" default="public" optional="yes"></param>                                     
+	                	<param name="date" type="xs:date" style="query" default="public" optional="yes"></param>                                     
+	                </request>
+	                <response>
+	                		<representation mediaType="text/html"></representation>                    
+	                </response>
+	            </method>
+	        </resource>        
+        </resource>
+        
+
+    </resources>
+    
+</application>
Index: MDService2/branches/MDService_simple3/WebContent/static/MDService2.wadl.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/MDService2.wadl.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/MDService2.wadl.html	(revision 1516)
@@ -0,0 +1,917 @@
+<!DOCTYPE html
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+   <head>
+      <title>CLARIN Metadata Service</title><style type="text/css">
+                    body {
+                        font-family: sans-serif;
+                        font-size: 1em;
+                        margin: 2em 8em;
+                    }
+                    .methods {
+                        background-color: #eef;
+                        padding: 1em;
+                    }
+                    h1 {
+                        font-size: 1.6em;
+                    }
+                    h2 {
+                        border-bottom: 1px solid black;
+                        /* margin-top: 0.6em;
+                        margin-bottom: 0.2em; */
+                        font-size: 1.4em;
+                       }
+                    h3 {
+                        color: orange;
+                        font-size: 1.2em;
+                        margin-top: 0.5em;
+                        margin-bottom: 0em;
+                    }
+                    h4 {
+                        margin: 0em;
+                        padding: 0em;
+                        border-bottom: 2px solid white;
+                    }
+                    h6 {
+                        font-size: 1.1em;
+                        color: #99a;
+                        margin: 0.5em 0em 0.25em 0em;
+                    }
+                    dd {
+                        margin-left: 1em;
+                    }
+                    tt {
+                        font-size: 1.2em;
+                    }
+                    table {
+                        margin-bottom: 0.5em;
+                    }
+                    th {
+                        text-align: left;
+                        font-weight: normal;
+                        color: black;
+                        border-bottom: 1px solid black;
+                        padding: 3px 6px;
+                    }
+                    td {
+                        padding: 3px 6px;
+                        vertical-align: top;
+                        background-color: f6f6ff;
+                        font-size: 0.85em;
+                    }
+                    
+                    td p {
+                        margin: 0px;
+                    }
+                    ul {
+                        padding-left: 1.75em;
+                    }
+                    p + ul, p + ol, p + dl {
+                        margin-top: 0em;
+                    }
+                    .optional {
+                        font-weight: normal;
+                        opacity: 0.75;
+                    }
+                    /* additions */
+                    p { margin: 0.4em 0; }
+                    .resource {margin-top: 1em;
+                </style></head>
+   <body>
+      <h1>CLARIN Metadata Service</h1>
+      <p>
+         		This is a draft description of the REST-interface of <code xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/">CLARIN Metadata Service</code>. Especially the response description is very sketchy yet.<br xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/"></br>
+         	Also the <code xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/">@base</code> is an abstract one (more like a namespace). The actual URL is: <a xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" href="http://clarin.aac.ac.at/MDService2/">http://clarin.aac.ac.at/MDService2/</a>	
+         
+      </p>
+      <ul>
+         <li><a href="#resources">Resources</a><ul>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#basic-userinterface">http://cmdi.clarin.eu/mdservice/</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#collections">http://cmdi.clarin.eu/mdservice/collections/{format}/{collection}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#model">http://cmdi.clarin.eu/mdservice/model/{format}/{term}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#terms">http://cmdi.clarin.eu/mdservice/terms/{format}/{term}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#recordset">http://cmdi.clarin.eu/mdservice/recordset/{format}/</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#record">http://cmdi.clarin.eu/mdservice/record/{format}/{q}</a></li>
+            </ul>
+            <ul>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#workspaceprofile">http://cmdi.clarin.eu/mdservice/workspaceprofile/{type}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#workspaceprofilesave">http://cmdi.clarin.eu/mdservice/workspaceprofilesave</a></li>
+            </ul>
+            <ul>
+               <li><a href="#http://cmdi.clarin.eu/mdservice/admin#cache">http://cmdi.clarin.eu/mdservice/admin/cache/{format}</a><ul>
+                     <li><a href="#http://cmdi.clarin.eu/mdservice/admin#cache-del">http://cmdi.clarin.eu/mdservice/admin/cache/{format}/del</a></li>
+                  </ul>
+               </li>
+            </ul>
+         </li>
+         <li><a href="#representations">Representations</a><ul>
+               <li><a href="#d2e62">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               <li><a href="#d2e87">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Collections">mds:Collections</abbr>)</a></li>
+               <li><a href="#d2e125">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               <li><a href="#d2e170">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               <li><a href="#d2e218">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               <li><a href="#d2e255">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               <li><a href="#d2e287">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               <li><a href="#d2e308">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               <li><a href="#d2e335">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               <li><a href="#d2e358">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+            </ul>
+         </li>
+      </ul>
+      <h2 id="resources">Resources</h2>
+      <h6>resource-wide matrix parameters</h6>
+      <table>
+         <tr>
+            <th>parameter</th>
+            <th>value</th>
+            <th>description</th>
+         </tr>
+         <tr>
+            <td>
+               <p><strong>format</strong></p>
+            </td>
+            <td>
+               <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+               <p><em>One of:</em></p>
+               <ul>
+                  <li><tt>xml</tt></li>
+                  <li><tt>htmltable</tt></li>
+                  <li><tt>htmldetail</tt></li>
+                  <li><tt>htmlpage</tt></li>
+               </ul>
+            </td>
+            <td></td>
+         </tr>
+         <tr>
+            <td>
+               <p><strong>repository</strong></p>
+            </td>
+            <td>
+               <p><em><a href="http://www.w3.org/TR/xmlschema-2/#int">int</a></em></p>
+               <p>Default: <tt>1</tt></p>
+            </td>
+            <td>
+               <p>allows to dynamically select one of the available repositories for the queries.<br xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace"></br>
+                  								Probably this should be rather a semantic identifier (a string-key instead of int)
+                  							
+               </p>
+            </td>
+         </tr>
+         <tr>
+            <td>
+               <p><strong>cache</strong></p>
+            </td>
+            <td>
+               <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+               <p><em>One of:</em></p>
+               <ul>
+                  <li><tt>use</tt><small> (default)</small></li>
+                  <li><tt>skip</tt></li>
+                  <li><tt>refresh</tt></li>
+               </ul>
+            </td>
+            <td></td>
+         </tr>
+      </table>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#basic-userinterface">Default path</h4>
+         <h3>/?q&amp;squery&amp;columns&amp;collection&amp;startRecord&amp;maximumRecords</h3>
+         <p>
+            				This is the default application trying to make sense of any parameters that are passed.				
+            				So that it is possible to bookmark/send a query as a simple URI (REST at its best ;).
+            				Sot it accepts the same parameters as the search-interface, but displays the query within the main user-interface.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e36">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">CQL</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>squery</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                     </td>
+                     <td>
+                        <p>just individual terms</p>
+                     </td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>columns</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em><small> (repeating)</small></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>collection</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>startRecord</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maximumRecords</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e62">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#collections">Collections</h4>
+         <h3>/collections/{format}/{collection}?maxdepth</h3>
+         <p>
+            						This provides a summary of collections in the repository (it is passed on to <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">getCollections</code>-method of MdRepository)
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e76">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>collection</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxdepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e87">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Collections">mds:Collections</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#model">Model</h4>
+         <h3>/model/{format}/{term}?q&amp;maxdepth</h3>
+         <p>
+            						This provides a summary of the xml-structure in the repository (aggregated XML-subtrees) (it is passed on to <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">queryModel</code>-method of MdRepository)<br xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace"></br>
+            						The starting context can be part of the url (template-style) or in the q parameter.
+            						<span xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace" class="note">What happens if both are defined?</span>
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e112">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>term</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxdepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e125">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#terms">Terms</h4>
+         <h3>/terms/{format}/{term}?q&amp;maxdepth</h3>
+         <p>
+            						This combines the information from MdRepository (model-interface), Component Registry and optionally Data Category Registry
+            and RelationRegistry
+            						providing a summary of the profiles actually used in the repository together with mapping to data-categories.						
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e139">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>format</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>xml</tt></li>
+                           <li><tt>flat</tt></li>
+                           <li><tt>autocomplete</tt></li>
+                           <li><tt>htmlselect</tt></li>
+                           <li><tt>htmlpage</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>term</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>all</tt></li>
+                           <li><tt>{profile name}</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxdepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e170">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#recordset">Search</h4>
+         <h3>/recordset/{format}/?q&amp;squery&amp;columns&amp;collection&amp;startRecord&amp;maximumRecords</h3>
+         <p>
+            						This is the actual search interface allowing to retrieve MDRecords from the MDRepository.
+            						Main parameter is q expected to be a valid CQL-query. The query is translated into XPath and passed on to the <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">searchRetrieve</code>-method of MDRepository, which already returns a valid (SRU-protocol compliant) <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">searchRetrieveResponse</code>.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e190">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">CQL</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>squery</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                     </td>
+                     <td>
+                        <p>just individual terms</p>
+                     </td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>columns</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em><small> (repeating)</small></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>collection</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxDepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>startRecord</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maximumRecords</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <h6>request header parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxDepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e218">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#record">Record detail</h4>
+         <h3>/record/{format}/{q}?cacheid</h3>
+         <p>
+            						Special method for retrieving a full individual record. It is also translated into XPath (<code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">MdSelfLink</code>) and served by the <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">searchRetrieve</code>-method of MDRepository.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e238">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td>
+                        <p>PID - handle of the record</p>
+                     </td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>cacheid</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#int">int</a></em></p>
+                     </td>
+                     <td>
+                        <p>Proposed parameter, to remember the recordset, the record comes in from, to be able, to retrieve it directly from MDService's
+                           cache and save the trip to MDRepository (for data, that is already locally available)
+                        </p>
+                     </td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e255">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#workspaceprofile">Workspace profile</h4>
+         <h3>/workspaceprofile/{type}</h3>
+         <p>
+            						Delivers the configuration-structure. A server profile or an user specific (plus a special "default"-profile for the
+            anonymous user).<br xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace"></br>
+            						The profiles are stored as xml-files on the server and handed out as JSON-files to the client.						
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e273">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>type</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>server</tt></li>
+                           <li><tt>user</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e287">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#workspaceprofilesave">Save workspace profile</h4>
+         <h3>/workspaceprofilesave?data</h3>
+         <p>
+            						Allows to save back the configuration-file.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e298">POST</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>data</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e308">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice/admin#cache">Cache</h4>
+         <h3>/cache/{format}</h3>
+         <p>
+            						Allows to view the cache-index
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e321">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>format</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>xml</tt></li>
+                           <li><tt>htmlpage</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e335">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice/admin#cache-del">Cache</h4>
+         <h3>/cache/{format}/del?actionkey&amp;repository&amp;date</h3>
+         <p>
+            							Allows to delete/flush (parts of) cache; parameters constraint the part of cache to be deleted;
+            							no param means: delete everything
+            						
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e345">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>actionkey</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>repository</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#int">int</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>date</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#date">date</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e358">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <h2 id="representations">Representations</h2>
+      <h3 id="d2e62">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></h3>
+      <h3 id="d2e87">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Collections">mds:Collections</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>collection_name</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#QName">QName</a></em><small> (repeating)</small></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//Collection</tt></li>
+                     <li>
+                        Link: <a href="##collection"></a></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e125">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>cmdIndex</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em><small> (repeating)</small></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//mds:Terms/@path</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e170">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>cmdIndex</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em><small> (repeating)</small></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//mds:Terms/@path</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e218">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>records</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//records</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e255">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>records</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//records</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e287">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre></div>
+      <h3 id="d2e308">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre></div>
+      <h3 id="d2e335">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></h3>
+      <h3 id="d2e358">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></h3>
+   </body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/static/catchall.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/catchall.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/catchall.xml	(revision 1516)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<info xml:lang="en" >
+	<div id="catchall">
+		<div class="error">Invalid request.<br/> Try a simple query or browse through the collections.</div>
+<!-- TODO: mirror the request -->
+		<a class="template" href="query-input" >query-input</a>
+		<a class="request" href="/collections?repository=clarin.at-mirror&amp;collection=&amp;maxdepth=1&amp;format=htmllist">collections clarin.at</a>		
+		
+	</div>	
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/data.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/data.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/data.xml	(revision 1516)
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<info xml:lang="en" >
+	<div class="title">Information about the data</div>
+	<p>There are currently two to three repositories running, with largely overlapping but not fully identical datasets. (Not mirrors.) 
+	  <ul>
+		<li><a target="_blank" href="http://demo.spraakdata.gu.se/clarin/cmd/model/stats?operation=getCollections&amp;maxdepth=3" >Spraakbanken, Gothenburg University</a> (main)</li>
+		<li><a target="_blank" href="http://clarin.aac.ac.at/exist/rest/db/clarin/cmd-model.xql/?operation=getCollections&amp;maxdepth=3" >ICLTT, Vienna</a></li>
+		<li>MPI Psycholinguistics, Nijmegen</li>
+	  </ul>	
+	</p>
+		
+	<p>Currently the CMDRepositories contain around 109.000 records, mainly from the datasets: OLAC and IMDI.<br/>
+	Following gives a more detailed overview of the data:
+		<ul>
+			<li>in the repository at <strong>Spraakbanken, Gothenburg</strong>:
+				<ul>
+					<li>by <a class="collections" href="/MDService2/collections/htmlpage?maxdepth=3&amp;repository=gu.se-main" >Collections</a></li>
+					<li>by <a class="profiles" href="/MDService2/terms/htmlpage/?q=all&amp;repository=gu.se-main" >Profiles</a></li>
+				</ul>		
+			</li>
+			<li>at <strong>ICLTT, Vienna</strong>:
+				<ul>
+					<li>by <a class="collections" href="/MDService2/collections/htmlpage?maxdepth=3&amp;repository=clarin.at-mirror" >Collections</a></li>
+					<li>by <a class="profiles" href="/MDService2/terms/htmlpage/?q=all&amp;repository=clarin.at-mirror" >Profiles</a></li>
+				</ul>	
+			</li>
+		</ul>
+	</p>	
+
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/index.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/index.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/index.xml	(revision 1516)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<info xml:lang="en" >
+	<div id="index">				
+		<a class="template" href="query-input" >query-input</a>
+		
+		<a class="request" href="static/welcome?format=htmldetail" >Welcome</a>
+
+		<a class="request" href="/collections/htmllist?repository=clarin.at-mirror&amp;collection=&amp;maxdepth=1">collections clarin.at</a>
+		<a class="request" href="/collections/htmllist?repository=gu.se-main&amp;collection=&amp;maxdepth=1">collections gu.se-main</a>
+		
+	</div>	
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/info.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/info.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/info.xml	(revision 1516)
@@ -0,0 +1,146 @@
+<?xml version="1.0"?>
+<info xml:lang="en" >
+	<div class="title">Documentation</div>
+	
+	<h2>Welcome to CMDRSB - the application trinity serving CLARIN Metadata</h2>		 
+	<p><strong>CMDRSB</strong> consists of
+	  <ul> 
+		<li><strong>Metadata Repository</strong> where all the metadata records are stored,</li> 
+		<li>the <strong>Metadata Service</strong> providing a REST-style interface allowing to access programmaticaly the information stored in the Repository</li>
+		<li>and the <strong>Metadata Browser</strong> a user-interface for exploring the Repository.</li>
+	  </ul>
+	</p>
+	
+	<p>Some further resources about <strong>CMDRSB</strong>:
+		<ul>
+			<li><a target="_blank" href="/MDService2/static/CMDRSB_20110123.pdf" >Presentation about CMDRSB at CMDI-Workshop, Nijmegen 2011-01-17</a></li>
+			<li><a target="_blank" href="/MDService2/static/MDService2.wadl" >WADL-file</a> describing the REST-interface of MDService (<a href="/MDService2/static/MDService2.wadl.html" >HTML-version</a>) </li>
+			<li><a href="/MDService2/docs/htmlpage/data" >Data statistics</a> -  some numbers about the current dataset in the repository</li>
+		</ul>
+	</p>
+		  
+<div id="introduction">
+	<h3>Overview</h3>
+	
+	<p>Summary of available functionality of the MDBrowser:
+	 <ul>		
+		<li>simple search (simple terms, combined terms, phrases)</li>		
+		<li>complex boolean-searches (according to the SRU/CQL standard)</li>		
+		<li>browsing the collections</li>
+		<li>browsing the (aggregated) xml-structure of the MD records (under "Terms")</li>
+		<li>search by profiles</li>
+		<li>search by data categories</li>		
+		<li>perform semantic search (elements of individual CMD-profiles are related via ConceptLinks to Data Categories, 
+			which are in turn related in the <strong>Relation Registry</strong>)</li>
+		<li>view individual metadata records </li>
+		<li>work with multiple queries and resultsets in parallel</li>		
+		<li>page through the results</li>
+		<li>dynamically change the columns displaying the fields of the records</li>
+		<li>use auto-columns (if you select no columns, MDService will try to select the 6 most useful)</li>
+	 </ul> 
+	 </p>
+	
+	  <div>
+		<p>Explanation of the usage/functionality of individual user-interface elements:</p>		
+			<a target="_blank" href="/MDService2/static/MDBrowser_explained_5_resize2000.png" >
+				<img src="/MDService2/static/MDBrowser_explained_5_resize800.png" title="MDBrowser explained2" /></a>
+	  </div>	
+	</div>
+	
+	<div id="ui-info">
+		<h2>User-Interface explained</h2>
+		
+		<div id="serverqs-info">
+			<h3>Public space / Options / Profile</h3>
+			<p>Space meant for News, as Dashboard, for common sample queries or as options-window. Currently no function.</p>
+		</div>
+		
+		<div id="userqs-info">
+			<h3>Personalized workspace - commons</h3>
+			<p>When logged in, you can store your queries and bookmarks here.</p>
+			<p>All anonymous users share the default workspace.</p>
+		</div>
+		<div id="collections-info">
+			<h3>Collections</h3>
+			<p>Overview of collections=datasets available in the repository.</p>
+		</div>
+		<div id="terms-info">
+			<h3>Terms</h3>
+			<p>Terms combine information from MDRepository, <em>Component Registry</em>, Data Category Registries (<a target="_blank" href="http://www.isocat.org">isocat</a>, <a target="_blank" href="http://dublincore.org/">dublincore</a>) 
+				and Relation Registry to allow to search by profiles or data categories, or even perform semantic search.</p>
+			<p>Thus you can search in the fields of individual profiles instantiated as the MDrecords in the repository, or search over multiple profiles via data categories.</p>
+		</div>	
+		<div id="compreg-info">
+			<h3 >Component Registry</h3>
+			<p>Overview of all profiles and components defined in the Component Registry. (Proxy to Component Registry)</p>
+		</div>
+		<div id="query-input-info">
+			<h3 >Query Input</h3>
+			<p>Form for entering the query. Either a simple or complex query. 
+			See <a href="/MDService2/docs/htmlpage/queries" >example queries</a> for an overview of possible query types.</p>
+			<dl>
+				<dt id="input-simplequery-info">simple full-text search</dt>
+					<dd>individual terms, multiple terms, phrases</dd>
+				<dt id="searchclauselist-info">complex queries</dt>
+				<dd>complex queries according to SRU/CQL-standard
+					<p>Basic <em>search clause</em> consists of: <code>index relation term</code>, e.g. <code>dc.title any system</code>.
+					You can combine these search clauses with boolean operators (AND, OR), to more complex queries. </p>
+				</dd>
+			</dl>
+			<p>Both parts can be used in parallel - i.e. you can specify some terms for full-text search
+			and further refine them with filters on specific indices - 
+			the two parts being combined with boolean AND (the matching records have to satisfy both parts of the query.).
+			So the <strong>general syntax</strong> of the queries feasible within the query input is:
+			<div class="example">simple-query AND (XQ1 or XQ2) AND (XQ3 or XQ4 or ...) AND ...<br/>
+				XQ := index relation term   
+			</div>		
+			</p>
+			<dl>
+				<dt id="repositories_select-info">Repository</dt>
+				<dd><p>You can select target repository(-mirror).</p> 
+					<p>The <em>Collections</em> and <em>Terms</em> are updated accordingly (but this can take a few seconds).</p>
+				</dd>
+				<dt id="input-withsummary-info" >with Summary</dt>
+				<dd><p>This option provides a summary of the profiles used in the (whole) result and of the (XML-structure of the) displayed part of the result, but it obviously makes you wait a bit longer (Usually 20-50% penalty on the query-duration, but may be worse for queries returning large results.)</p></dd>
+			</dl>
+		</div>	
+		<div id="querylist-info">
+		</div>
+		
+		<div id="commands" >
+		<h3>Commands</h3>
+		<p>List of commands available in the user-interface, explanation of their function:<br/>
+		<span class="note">(if you want to print this, you have to activate: "printing background images" in your browser, to get the icons printed as well.)</span>
+		</p>
+			<dl>
+			<dt id="cmd_add">Add new item</dt> 
+			<dt id="cmd_add_and">Add an additional condition (AND)</dt> 
+			<dt id="cmd_add_or">Add a alternative condition (OR)</dt>
+			<dt id="cmd_columns">Manage columns/fields</dt> 
+			<dd>Allows to de/select the columns and change the list-format (list or table).
+			It requires the option <em>withSummary</em> to be activated, to provide the list of elements/indices that can be added as columns/fields.</dd>
+			<dt id="userqueries.cmd_del" idref="#userqueries .cmd_del" >Delete!</dt>
+			<dd>Delete the stored query!</dd>
+			<dt id="cmd_detail">Show detail information</dt> 
+			<dt id="cmd_down">Expand view</dt> 
+			<dt id="cmd_filter">Apply as filter/Use in query</dt> 
+			<dt id="cmd_get">Loading ...</dt>
+			<dt id="cmd_info" >Info/Help</dt>
+			<dd>Contextual documentation - explanation of the ui/data element in question</dd> 
+			<dt id="cmd_load" >Load query</dt>
+			<dd>Load the query and show the result</dd> 
+			<dt id="cmd_reload">Reload</dt> 
+			<dt id="cmd_resubmit">Reload</dt> 
+			<dt id="cmd_save">Store query/bookmark</dt>
+			<dd>The query/bookmark will be added to the current Queryset in the <em>Personal Workspace</em>.</dd> 
+			<dt id="cmd_sc_delete">Remove search clause</dt>
+			<dd>if only one search clause - clear it</dd> 
+			<dt id="cmd_up">Collapse view</dt>	 
+			<dt id="cmd_prev" >Page back</dt>
+			<dd>Load the previous page of the current result</dd>
+			<dt id="cmd_next" >Page forward</dt>
+			<dd>Load the next page of the current result</dd>
+		</dl>			
+		</div>
+	</div>
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/profiles_stats_20100622.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/profiles_stats_20100622.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/profiles_stats_20100622.html	(revision 1516)
@@ -0,0 +1,13375 @@
+<html xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m="http://www.vronk.net/schemas" xmlns:dcif="http://www.isocat.org/ns/dcif">
+   <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+      <title>Components Statistics</title>
+      <link rel="stylesheet" media="all" type="text/css" href="http://www.vronk.net/style/vronk_style.css"><style type="text/css">
+ 		.term_detail { text-align: left; border: 1px solid #666699; background-color: #ccccff; position:absolute; }
+ 		.term_detail ul { padding-left: 16px; }
+ 		.hilight { background-color: #ccccff;}
+ 		.box_heading {font-weight:bold;}
+ </style><script src="http://www.vronk.net/style/jquery/js/jquery-1.4.2.js" type="text/javascript"></script><script src="http://www.vronk.net/style/jquery/js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script><script src="http://www.vronk.net/style/jquery/jquery-treeview/jquery.treeview.js" type="text/javascript"></script><script type="text/javascript">			
+				$(function(){
+					
+					$('.term_detail').hide();
+					
+					$('.term_detail_caller').click(function() {
+									$(this).parent().find('.term_detail').toggle();
+									$(this).parents('tr').toggleClass('hilight');
+								});
+				});
+			</script></head>
+   <body>
+      <h1>Basic Counts</h1>
+      <table>
+         <tbody>
+            <tr>
+               <td>profileDescription</td>
+               <td align="right">24</td>
+            </tr>
+            <tr>
+               <td>componentDescription</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>CMD_ComponentSpec</td>
+               <td align="right">24</td>
+            </tr>
+            <tr>
+               <td>profiles</td>
+               <td align="right">24</td>
+            </tr>
+            <tr>
+               <td>CMD_Component</td>
+               <td align="right">463</td>
+            </tr>
+            <tr>
+               <td>distinct CMD_Component</td>
+               <td align="right">129</td>
+            </tr>
+            <tr>
+               <td>CMD_Element</td>
+               <td align="right">854</td>
+            </tr>
+            <tr>
+               <td>distinct CMD_Element</td>
+               <td align="right">194</td>
+            </tr>
+            <tr>
+               <td>CMD_Elements without ConceptLink</td>
+               <td align="right">94</td>
+            </tr>
+            <tr>
+               <td>conceptlinks</td>
+               <td align="right">193926</td>
+            </tr>
+            <tr>
+               <td>conceptlinks (without lang-codes ISO639)</td>
+               <td align="right">1573</td>
+            </tr>
+            <tr>
+               <td>distinct conceptlinks (without lang-codes)</td>
+               <td align="right">235</td>
+            </tr>
+            <tr>
+               <td>distinct CMD_Elem-conceptlinks</td>
+               <td align="right">122</td>
+            </tr>
+            <tr>
+               <td>datcats in isocat-profile:Metadata#5</td>
+               <td align="right">218</td>
+            </tr>
+            <tr>
+               <td>elem matrix</td>
+               <td align="right">854</td>
+            </tr>
+            <tr>
+               <td>distinct profile-elem</td>
+               <td align="right">519</td>
+            </tr>
+            <tr>
+               <td>distinct profile-datcat</td>
+               <td align="right">458</td>
+            </tr>
+            <tr>
+               <td>distinct parent-elem</td>
+               <td align="right">290</td>
+            </tr>
+            <tr>
+               <td>distinct profile-parent-elem</td>
+               <td align="right">608</td>
+            </tr>
+         </tbody>
+      </table>
+      <table>
+         <caption>Profiles |24|</caption>
+         <thead>
+            <tr>
+               <th>name</th>
+               <th>|elem|</th>
+               <th>|distinct elems|</th>
+               <th>|distinct @ConceptLinks|</th>
+            </tr>
+         </thead>
+         <tbody>
+            <tr>
+               <td>DynaSAND_sub_location</td>
+               <td align="right">0</td>
+               <td align="right">0</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>HETest</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+            </tr>
+            <tr>
+               <td>HETest</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+            </tr>
+            <tr>
+               <td>LexicalResourceProfile</td>
+               <td align="right">80</td>
+               <td align="right">45</td>
+               <td align="right">47</td>
+            </tr>
+            <tr>
+               <td>SessionProfile</td>
+               <td align="right">84</td>
+               <td align="right">55</td>
+               <td align="right">54</td>
+            </tr>
+            <tr>
+               <td>SpeechCorpusProfile</td>
+               <td align="right">86</td>
+               <td align="right">54</td>
+               <td align="right">56</td>
+            </tr>
+            <tr>
+               <td>SpeechCorpusProfile_Autonomata_speaker</td>
+               <td align="right">170</td>
+               <td align="right">83</td>
+               <td align="right">86</td>
+            </tr>
+            <tr>
+               <td>TITUS_metadata</td>
+               <td align="right">17</td>
+               <td align="right">17</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>TextCorpusProfile</td>
+               <td align="right">75</td>
+               <td align="right">43</td>
+               <td align="right">45</td>
+            </tr>
+            <tr>
+               <td>TextProfile</td>
+               <td align="right">55</td>
+               <td align="right">39</td>
+               <td align="right">39</td>
+            </tr>
+            <tr>
+               <td>avatech-recognizer</td>
+               <td align="right">5</td>
+               <td align="right">5</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>cmdi-virtual-collection</td>
+               <td align="right">11</td>
+               <td align="right">10</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>component-dc-terms</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+            </tr>
+            <tr>
+               <td>component-dc-terms-modular</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>component-olac</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+               <td align="right">2</td>
+            </tr>
+            <tr>
+               <td>dieter_testprofile</td>
+               <td align="right">12</td>
+               <td align="right">11</td>
+               <td align="right">10</td>
+            </tr>
+            <tr>
+               <td>example-profile</td>
+               <td align="right">8</td>
+               <td align="right">7</td>
+               <td align="right">3</td>
+            </tr>
+            <tr>
+               <td>imdi-corpus</td>
+               <td align="right">4</td>
+               <td align="right">3</td>
+               <td align="right">3</td>
+            </tr>
+            <tr>
+               <td>imdi-profile-instance</td>
+               <td align="right">136</td>
+               <td align="right">57</td>
+               <td align="right">48</td>
+            </tr>
+            <tr>
+               <td>myBook</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+            </tr>
+            <tr>
+               <td>service</td>
+               <td align="right">30</td>
+               <td align="right">13</td>
+               <td align="right">8</td>
+            </tr>
+            <tr>
+               <td>tei-textDesc</td>
+               <td align="right">8</td>
+               <td align="right">8</td>
+               <td align="right">4</td>
+            </tr>
+            <tr>
+               <td>test-profile-book</td>
+               <td align="right">11</td>
+               <td align="right">10</td>
+               <td align="right">9</td>
+            </tr>
+            <tr>
+               <td>test-profile-book2</td>
+               <td align="right">13</td>
+               <td align="right">11</td>
+               <td align="right">9</td>
+            </tr>
+         </tbody>
+      </table>
+      <table>
+         <caption>Elements |854/194|
+            			<span class="note">* Click on numbers to see detail </span></caption>
+         <thead>
+            <tr>
+               <th rowspan="2">name</th>
+               <th colspan="4">count </th>
+               <th rowspan="2">datcat</th>
+            </tr>
+            <tr>
+               <th>profile*</th>
+               <th>all*</th>
+               <th>dcs elem</th>
+               <th>dcs values</th>
+            </tr>
+         </thead>
+         <tbody>
+            <tr>
+               <td valign="top">ActorLanguageName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ActorLanguageName</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ActorLanguageName</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-1766,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Address</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">Address</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">26</span><div class="term_detail">
+                     <div class="box_heading">Address</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2528,
+                  								isocat:DC-2505,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Age</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Age</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Age</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2550,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">age</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">age</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">age</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:CMD-000,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationFormat</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationFormat</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationFormat</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2562,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationLevelType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">AnnotationLevelType</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">AnnotationLevelType</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2462,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationStandoff</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStandoff</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStandoff</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2507,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationStyle</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStyle</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStyle</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2325,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">AnnotationType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">AnnotationType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">24</td>
+               <td>isocat:DC-2462,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Anonymized</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Anonymized</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">Anonymized</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2548,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Author</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Author</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Author</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Availability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">Availability</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Availability</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2453,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BirthDate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BirthDate</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BirthDate</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2551,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BirthYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">BirthYear</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">BirthYear</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2551,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BitResolution</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">BitResolution</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">BitResolution</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2684,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BookTitle</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BookTitle</div>
+                     <ul>
+                        <li>myBook</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BookTitle</div>
+                     <ul>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2545,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ByteOrder</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">ByteOrder</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ByteOrder</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2686,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CatalogueLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">CatalogueLink</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">CatalogueLink</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2969,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Channel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Channel</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Channel</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">9</td>
+               <td>isocat:DC-2464,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">channel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2464,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CharacterEncoding</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">CharacterEncoding</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">CharacterEncoding</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2564,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">Code</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">23</span><div class="term_detail">
+                     <div class="box_heading">Code</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Country/</li>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Continent/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Country/</li>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">4</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2532,
+                  								,
+                  								isocat:DC-2552,
+                  								isocat:DC-2544,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CollectionType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">CollectionType</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">CollectionType</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CompletionYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">CompletionYear</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">CompletionYear</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2509,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Compression</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Compression</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Compression</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">3</td>
+               <td>isocat:DC-2685,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">constitution</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">constitution</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">constitution</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ContentEncoding</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ContentEncoding</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ContentEncoding</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Continent</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Continent</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Continent</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2531,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">contributor</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">contributor</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">contributor</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-contributor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/contributor,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Country</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Country</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Country</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2532,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">coverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">coverage</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">coverage</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-coverage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/coverage,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CreationDate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">CreationDate</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">CreationDate</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CreationYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">CreationYear</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">CreationYear</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2510,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">creator</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">creator</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">creator</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-creator/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/creator,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">date</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">date</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-date/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/date,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Date</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Date</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2510,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Derivation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Derivation</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Derivation</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">8</td>
+               <td>isocat:DC-2518,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">derivation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">derivation</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">derivation</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2518,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DerivationMode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">DerivationMode</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">DerivationMode</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2516,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Description</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>myBook</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">102</span><div class="term_detail">
+                     <div class="box_heading">Description</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Modality/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>TextCorpusProfile/Collection/Project/Description/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Description/</li>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>TextCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Description/</li>
+                              <li>TextProfile/TEXT/Authors/Author/Description/</li>
+                              <li>TextProfile/TEXT/Content/Modality/Description/</li>
+                              <li>TextProfile/TEXT/Content/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Description/</li>
+                              <li>TextProfile/TEXT/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Description/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/Description/</li>
+                              <li>dieter_testprofile/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/descriptions/</li>
+                              <li>Session/MDGroup/Project/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/descriptions/</li>
+                              <li>Session/MDGroup/Content/descriptions/</li>
+                              <li>Session/MDGroup/Actors/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/descriptions/</li>
+                              <li>Session/Resources/MediaFile/Access/descriptions/</li>
+                              <li>Session/Resources/MediaFile/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Validation/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Access/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/descriptions/</li>
+                              <li>Session/Resources/Source/Access/descriptions/</li>
+                              <li>Session/Resources/Source/descriptions/</li>
+                              <li>Session/Resources/Anonyms/Access/descriptions/</li>
+                              <li>Session/References/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Description/</li>
+                              <li>test-profile-book/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Description/</li>
+                              <li>test-profile-book2/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2520,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-description/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/description,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DistributionMedium</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">DistributionMedium</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">DistributionMedium</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2967,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">domain</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2467,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Dominant</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">Dominant</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Dominant</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2468,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DurationOfEffectiveSpeech</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfEffectiveSpeech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfEffectiveSpeech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2691,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DurationOfFullDatabase</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfFullDatabase</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfFullDatabase</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2690,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Education</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Education</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Education</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2554,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Email</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Email</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">Email</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2521,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">End</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">End</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">End</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">EthnicGroup</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">EthnicGroup</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">EthnicGroup</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2555,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">EventStructure</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">EventStructure</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">EventStructure</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2469,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Facsimile</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Facsimile</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Facsimile</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">factuality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">factuality</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">factuality</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">FamilySocialRole</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">FamilySocialRole</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">FamilySocialRole</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">firstName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">firstName</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">firstName</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">format</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">format</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-format/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/format,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Format</div>
+                     <ul>
+                        <li>example-profile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">Format</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>TextTMD/</li>
+                              <li>PhotoTMD/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">1</td>
+               <td>isocat:DC-1758,
+                  								isocat:DC-2571,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">FullName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">FullName</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">FullName</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2556,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Funder</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Funder</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Funder</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2522,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Genre</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Genre</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Genre</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">14</td>
+               <td>isocat:DC-2470,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">HeadWordType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">HeadWordType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">HeadWordType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2486,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">HomeLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">HomeLanguage</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">HomeLanguage</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2955,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ID</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">ID</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">ID</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2573,
+                  								isocat:DC-2535,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Id</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Id</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Id</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2535,
+                  								isocat:DC-2482,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">identifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">identifier</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">identifier</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-identifier/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/identifier,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">input</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">input</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">input</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">interaction</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">interaction</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">interaction</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">3</td>
+               <td>isocat:DC-2476,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Interactivity</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Interactivity</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Interactivity</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2476,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Involvement</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Involvement</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Involvement</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2477,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">iso-639-1-code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">iso-639-1-code</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">iso-639-1-code</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">189</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">iso-639-3-code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">iso-639-3-code</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">25</span><div class="term_detail">
+                     <div class="box_heading">iso-639-3-code</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/ISO639/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/ISO639/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/ISO639/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">7679</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Key</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Key</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Key</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Keys/</li>
+                              <li>Session/MDGroup/Content/Keys/</li>
+                              <li>Session/MDGroup/Actors/Actor/Keys/</li>
+                              <li>Session/Resources/MediaFile/Keys/</li>
+                              <li>Session/Resources/WrittenResource/Keys/</li>
+                              <li>Session/Resources/Source/Keys/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Language</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Language</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">language</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">language</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/language,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LanguageId</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageId</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageId</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2482,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LanguageName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">LanguageName</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">23</span><div class="term_detail">
+                     <div class="box_heading">LanguageName</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2484,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LanguageTokensTypes</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageTokensTypes</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageTokensTypes</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">lastName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lastName</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lastName</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Level</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Level</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Level</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2585,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LexicalMainType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalMainType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalMainType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2487,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LexicalSubtype</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalSubtype</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalSubtype</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">7</td>
+               <td>isocat:DC-2496,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Manuscript</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Manuscript</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Manuscript</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">MediaResourceLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">MediaResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">MediaResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Methodology</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Methodology</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Methodology</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2586,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">MimeType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">MimeType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">MimeType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2571,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Modalities</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Modalities</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Modalities</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2490,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Modality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">Modality</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Modality</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Modality/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2490,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">MotherTongue</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">MotherTongue</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">MotherTongue</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2955,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Multilinguality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Multilinguality</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Multilinguality</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2491,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">14</span><div class="term_detail">
+                     <div class="box_heading">Name</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TITUS_metadata</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">39</span><div class="term_detail">
+                     <div class="box_heading">Name</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                              <li>imdi-corpus/Corpus/CorpusLink/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                              <li>Session/MDGroup/Project/</li>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/output/parameter/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">5</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2544,
+                  								isocat:DC-2536,
+                  								isocat:DC-2557,
+                  								,
+                  								isocat:DC-2454,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Number</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Number</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">15</span><div class="term_detail">
+                     <div class="box_heading">Number</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2580,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">NumberOfChannels</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">NumberOfChannels</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">NumberOfChannels</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2961,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">NumberOfSpeakers</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">NumberOfSpeakers</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">NumberOfSpeakers</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2692,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">numparam</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">numparam</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">numparam</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-contributor</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-contributor</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-contributor</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-coverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-coverage</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-coverage</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-creator</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-creator</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-creator</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-date</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-date</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-description</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-description</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-format</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-format</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-identifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-identifier</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-identifier</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-language</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-language</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-publisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-publisher</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-publisher</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-relation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-relation</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-relation</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-rights</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-rights</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-rights</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-source</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-source</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-source</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-subject</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-subject</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-subject</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Organisation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Organisation</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">Organisation</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2979,
+                  								,
+                  								isocat:DC-2459,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Origin</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Origin</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Origin</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">output</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">output</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">output</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Owner</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Owner</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">Owner</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2956,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PersistentIdentifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">PersistentIdentifier</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">PersistentIdentifier</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2573,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Person</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Person</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">12</span><div class="term_detail">
+                     <div class="box_heading">Person</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2978,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PlanningType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">PlanningType</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">PlanningType</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2492,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">preparedness</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">preparedness</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">preparedness</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Price</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Price</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Price</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2460,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PrimaryLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">PrimaryLanguage</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">PrimaryLanguage</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2553,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Profession</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Profession</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Profession</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2558,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactAddress</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactAddress</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactAddress</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactEmail</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactEmail</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactEmail</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactName</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactName</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactOrganisation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactOrganisation</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactOrganisation</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectDescription</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectDescription</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectDescription</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Pseudonym</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Pseudonym</div>
+                     <ul>
+                        <li>TextProfile</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Pseudonym</div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2957,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PublicationYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">PublicationYear</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">PublicationYear</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2538,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Published</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Published</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Published</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">publisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">publisher</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">publisher</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-publisher/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/publisher,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Publisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Publisher</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Publisher</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Purpose</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Purpose</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Purpose</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">purpose</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">purpose</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">purpose</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Quality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Quality</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Quality</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">7</td>
+               <td>isocat:DC-2574,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">recognizer</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">recognizer</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">recognizer</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingConditions</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingConditions</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingConditions</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingEnvironment</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">RecordingEnvironment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">RecordingEnvironment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2696,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingPlatformHardware</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformHardware</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformHardware</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2693,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingPlatformSoftware</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformSoftware</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformSoftware</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2694,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Region</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">Region</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Region</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2533,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">relation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">relation</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">relation</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-relation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/relation,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Reproducability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Reproducability</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Reproducability</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ReproducabilityNotice</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ReproducabilityNotice</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ReproducabilityNotice</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessAvailability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessAvailability</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessAvailability</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessDate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessDate</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessDate</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessLink</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessLink</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessOwner</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessOwner</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessOwner</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessPublisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessPublisher</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessPublisher</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceFormat</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceFormat</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">ResourceFormat</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">ResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/Anonyms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2546,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceName</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceName</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2544,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">rights</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">rights</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">rights</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-rights/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/rights,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Role</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">Role</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2513,
+                  								isocat:DC-2559,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SamplingFrequency</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">SamplingFrequency</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SamplingFrequency</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2577,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SessionID</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">SessionID</div>
+                     <ul>
+                        <li>HETest</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SessionID</div>
+                     <ul>
+                        <li>HETest
+                           <ul>
+                              <li>HETest/</li>
+                              <li>HETest/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-1845,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Sex</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Sex</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Sex</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2560,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">sex</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sex</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sex</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:CMD-000,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Size</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Size</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Size</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2580,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SizeUnit</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">SizeUnit</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">15</span><div class="term_detail">
+                     <div class="box_heading">SizeUnit</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2583,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SocialContext</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SocialContext</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SocialContext</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2493,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SocialFamilyRole</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SocialFamilyRole</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SocialFamilyRole</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2561,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">source</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">source</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">source</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/source,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SourceLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">SourceLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">SourceLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2494,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SourceName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SourceName</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SourceName</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2534,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SourceType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">SourceType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">SourceType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2990,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SpeakerDemographics</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SpeakerDemographics</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SpeakerDemographics</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2960,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Start</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Start</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Start</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">StartYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">StartYear</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">StartYear</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2539,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Status</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Status</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Status</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SubGenre</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SubGenre</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SubGenre</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">subject</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">subject</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">subject</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-subject/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/subject,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Subject</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subject</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subject</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2591,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Subtitle</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subtitle</div>
+                     <ul>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subtitle</div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2966,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SubType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">SubType</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">SubType</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TagSet</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TagSet</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">TagSet</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2497,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TargetLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">TargetLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">TargetLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2499,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Task</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Task</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Task</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2500,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Telephone</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Telephone</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">12</span><div class="term_detail">
+                     <div class="box_heading">Telephone</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2461,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">textparam</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">textparam</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">textparam</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TextTypeDescription</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TextTypeDescription</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TextTypeDescription</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>TextTMD/TextType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-1758,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">themeDescription</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">themeDescription</div>
+                     <ul>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">themeDescription</div>
+                     <ul>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/theme/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TimeCoverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">TimeCoverage</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">TimeCoverage</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2502,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TimePeriod</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TimePeriod</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TimePeriod</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/TimePeriod/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2502,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Title</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Title</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2545,
+                  								isocat:DC-2537,
+                  								isocat:DC-2965,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">title</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">title</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-title/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/title,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TitleOfBook</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">TitleOfBook</div>
+                     <ul>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">TitleOfBook</div>
+                     <ul>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2545,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Topic</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">Topic</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Topic</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2503,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Type</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Type</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/output/parameter/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">8</td>
+               <td>isocat:DC-2570,
+                  								,
+                  								isocat:DC-2587,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">type</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">type</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-type/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/type,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">URL</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">URL</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">URL</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2546,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Validation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Validation</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Validation</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2584,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ValidationLevel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ValidationLevel</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ValidationLevel</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2585,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ValidationMode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ValidationMode</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ValidationMode</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2586,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ValidationType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ValidationType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ValidationType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2587,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Version</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">Version</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">Version</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2547,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Website</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Website</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">16</span><div class="term_detail">
+                     <div class="box_heading">Website</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-63,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Whatever</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Whatever</div>
+                     <ul>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Whatever</div>
+                     <ul>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+         </tbody>
+      </table>
+      <table>
+         <caption>DatCats |122| <span class="note">* Click on numbers to see detail </span></caption>
+         <thead>
+            <tr>
+               <th rowspan="2">id</th>
+               <th rowspan="2">name</th>
+               <th colspan="3">count </th>
+               <th rowspan="2">elems</th>
+            </tr>
+            <tr>
+               <th>profile*</th>
+               <th>all*</th>
+               <th>elems</th>
+            </tr>
+         </thead>
+         <tbody>
+            <tr>
+               <td valign="top"></td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TITUS_metadata</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>avatech-recognizer</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>component-dc-terms-modular</li>
+                        <li>component-olac</li>
+                        <li>dieter_testprofile</li>
+                        <li>example-profile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                        <li>tei-textDesc</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">174</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Continent/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/Content/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Collection/CollectionType/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Continent/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/CollectionType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/</li>
+                              <li>TITUS_metadata/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Collection/CollectionType/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Continent/</li>
+                              <li>TextProfile/TEXT/Content/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/ISO639/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/Creator/</li>
+                              <li>VirtualCollection/Creator/</li>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-contributor/</li>
+                              <li>dc-terms/dc-coverage/</li>
+                              <li>dc-terms/dc-creator/</li>
+                              <li>dc-terms/dc-date/</li>
+                              <li>dc-terms/dc-description/</li>
+                              <li>dc-terms/dc-format/</li>
+                              <li>dc-terms/dc-identifier/</li>
+                              <li>dc-terms/dc-language/</li>
+                              <li>dc-terms/dc-publisher/</li>
+                              <li>dc-terms/dc-relation/</li>
+                              <li>dc-terms/dc-rights/</li>
+                              <li>dc-terms/dc-source/</li>
+                              <li>dc-terms/dc-subject/</li>
+                              <li>dc-terms/dc-title/</li>
+                              <li>dc-terms/dc-type/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/</li>
+                              <li>Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/CorpusLink/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Keys/</li>
+                              <li>Session/MDGroup/Content/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Content/Keys/</li>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Keys/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/MediaFile/Keys/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Keys/</li>
+                              <li>Session/Resources/Source/</li>
+                              <li>Session/Resources/Source/</li>
+                              <li>Session/Resources/Source/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Source/Keys/</li>
+                              <li>Session/Resources/Anonyms/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/ISO639/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/ISO639/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                              <li>textDesc/</li>
+                              <li>textDesc/</li>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/theme/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/theme/</li>
+                              <li>test-profile-book2/theme/</li>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">94</td>
+               <td width="40%">Address,
+                  								Author,
+                  								Availability,
+                  								Code,
+                  								CollectionType,
+                  								ContentEncoding,
+                  								CreationDate,
+                  								Date,
+                  								Description,
+                  								Email,
+                  								End,
+                  								Facsimile,
+                  								FamilySocialRole,
+                  								Format,
+                  								Id,
+                  								Key,
+                  								Language,
+                  								LanguageTokensTypes,
+                  								Manuscript,
+                  								MediaResourceLink,
+                  								MotherTongue,
+                  								Name,
+                  								Organisation,
+                  								Origin,
+                  								Owner,
+                  								PrimaryLanguage,
+                  								ProjectContactAddress,
+                  								ProjectContactEmail,
+                  								ProjectContactName,
+                  								ProjectContactOrganisation,
+                  								ProjectDescription,
+                  								Published,
+                  								Publisher,
+                  								Purpose,
+                  								Quality,
+                  								RecordingConditions,
+                  								Reproducability,
+                  								ReproducabilityNotice,
+                  								ResourceAccessAvailability,
+                  								ResourceAccessDate,
+                  								ResourceAccessLink,
+                  								ResourceAccessOwner,
+                  								ResourceAccessPublisher,
+                  								ResourceFormat,
+                  								ResourceLink,
+                  								Size,
+                  								Start,
+                  								Status,
+                  								SubGenre,
+                  								SubType,
+                  								Type,
+                  								Whatever,
+                  								constitution,
+                  								contributor,
+                  								coverage,
+                  								creator,
+                  								date,
+                  								description,
+                  								factuality,
+                  								firstName,
+                  								format,
+                  								identifier,
+                  								input,
+                  								iso-639-1-code,
+                  								iso-639-3-code,
+                  								language,
+                  								lastName,
+                  								numparam,
+                  								olac-contributor,
+                  								olac-coverage,
+                  								olac-creator,
+                  								olac-date,
+                  								olac-description,
+                  								olac-format,
+                  								olac-identifier,
+                  								olac-language,
+                  								olac-publisher,
+                  								olac-relation,
+                  								olac-rights,
+                  								olac-source,
+                  								olac-subject,
+                  								output,
+                  								preparedness,
+                  								publisher,
+                  								purpose,
+                  								recognizer,
+                  								relation,
+                  								rights,
+                  								source,
+                  								subject,
+                  								textparam,
+                  								themeDescription,
+                  								title,
+                  								type,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/contributor</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">contributor,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/coverage</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">coverage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/creator</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">creator,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/date</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">date,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/description</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">description,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/format</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">format,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/identifier</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">identifier,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/language</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">language,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/publisher</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">publisher,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/relation</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">relation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/rights</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">rights,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/source</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">source,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/subject</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">subject,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/title</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">title,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/type</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">type,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:CMD-000</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/</li>
+                              <li>Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">age,
+                  								sex,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-1758</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>TextTMD/</li>
+                              <li>TextTMD/TextType/</li>
+                              <li>PhotoTMD/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Format,
+                  								TextTypeDescription,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-1766</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Actor/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">ActorLanguageName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-1845</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>HETest</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>HETest
+                           <ul>
+                              <li>HETest/</li>
+                              <li>HETest/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SessionID,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2325</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">AnnotationStyle,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2453</td>
+               <td valign="top">availability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">availability</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">availability</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Availability,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2454</td>
+               <td valign="top">contact full name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">contact full name</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">contact full name</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Name,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2459</td>
+               <td valign="top">organization</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">organization</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">organization</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Organisation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2460</td>
+               <td valign="top">price</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">price</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">price</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Price,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2461</td>
+               <td valign="top">telephone number</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">telephone number</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">12</span><div class="term_detail">
+                     <div class="box_heading">telephone number</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Telephone,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2462</td>
+               <td valign="top">annotation level type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">annotation level type</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">annotation level type</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">AnnotationLevelType,
+                  								AnnotationType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2464</td>
+               <td valign="top">channel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Channel,
+                  								channel,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2467</td>
+               <td valign="top">domain</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">domain,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2468</td>
+               <td valign="top">dominant language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">dominant language</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">dominant language</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Dominant,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2469</td>
+               <td valign="top">event structure</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">event structure</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">event structure</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">EventStructure,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2470</td>
+               <td valign="top">genre</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">genre</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">genre</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Genre,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2476</td>
+               <td valign="top">interactivity</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">interactivity</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">interactivity</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Interactivity,
+                  								interaction,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2477</td>
+               <td valign="top">involvement</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">involvement</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">involvement</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Involvement,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2482</td>
+               <td valign="top">language id</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">language id</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">language id</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Id,
+                  								LanguageId,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2484</td>
+               <td valign="top">language name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">language name</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">23</span><div class="term_detail">
+                     <div class="box_heading">language name</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">LanguageName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2486</td>
+               <td valign="top">lexical unit</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexical unit</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexical unit</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">HeadWordType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2487</td>
+               <td valign="top">lexicon type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexicon type</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexicon type</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">LexicalMainType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2490</td>
+               <td valign="top">modalities</td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">modalities</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">modalities</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Modalities,
+                  								Modality,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2491</td>
+               <td valign="top">number of languages</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">number of languages</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">number of languages</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Multilinguality,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2492</td>
+               <td valign="top">planning type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">planning type</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">planning type</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">PlanningType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2493</td>
+               <td valign="top">social context</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">social context</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">social context</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SocialContext,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2494</td>
+               <td valign="top">source language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">source language</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">source language</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SourceLanguage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2496</td>
+               <td valign="top">sub-level information</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sub-level information</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sub-level information</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">LexicalSubtype,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2497</td>
+               <td valign="top">tagset</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">tagset</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">tagset</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">TagSet,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2499</td>
+               <td valign="top">target language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">target language</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">target language</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">TargetLanguage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2500</td>
+               <td valign="top">task</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">task</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">task</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Task,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2502</td>
+               <td valign="top">time coverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">time coverage</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">time coverage</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/TimePeriod/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">TimeCoverage,
+                  								TimePeriod,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2503</td>
+               <td valign="top">topic</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">topic</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">topic</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Topic,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2505</td>
+               <td valign="top">address</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">address</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">12</span><div class="term_detail">
+                     <div class="box_heading">address</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Address,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2507</td>
+               <td valign="top">annotation stand-off</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">annotation stand-off</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">annotation stand-off</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">AnnotationStandoff,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2509</td>
+               <td valign="top">completion year</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">completion year</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">completion year</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">CompletionYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2510</td>
+               <td valign="top">creation date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">creation date</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">creation date</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">CreationYear,
+                  								Date,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2513</td>
+               <td valign="top">creator role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">creator role</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">creator role</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Role,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2516</td>
+               <td valign="top">derivation mode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">derivation mode</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">derivation mode</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DerivationMode,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2518</td>
+               <td valign="top">derivation type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">derivation type</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">derivation type</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Derivation,
+                  								derivation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2520</td>
+               <td valign="top">description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">12</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>myBook</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">101</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Modality/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>TextCorpusProfile/Collection/Project/Description/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Description/</li>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>TextCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Description/</li>
+                              <li>TextProfile/TEXT/Authors/Author/Description/</li>
+                              <li>TextProfile/TEXT/Content/Modality/Description/</li>
+                              <li>TextProfile/TEXT/Content/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Description/</li>
+                              <li>TextProfile/TEXT/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Description/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/Description/</li>
+                              <li>dieter_testprofile/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/descriptions/</li>
+                              <li>Session/MDGroup/Project/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/descriptions/</li>
+                              <li>Session/MDGroup/Content/descriptions/</li>
+                              <li>Session/MDGroup/Actors/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/descriptions/</li>
+                              <li>Session/Resources/MediaFile/Access/descriptions/</li>
+                              <li>Session/Resources/MediaFile/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Validation/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Access/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/descriptions/</li>
+                              <li>Session/Resources/Source/Access/descriptions/</li>
+                              <li>Session/Resources/Source/descriptions/</li>
+                              <li>Session/Resources/Anonyms/Access/descriptions/</li>
+                              <li>Session/References/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Description/</li>
+                              <li>test-profile-book/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Description/</li>
+                              <li>test-profile-book2/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Description,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2521</td>
+               <td valign="top">email</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">email</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">email</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Email,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2522</td>
+               <td valign="top">funder</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">funder</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">funder</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Funder,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2528</td>
+               <td valign="top">location address</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">location address</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">location address</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Address,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2531</td>
+               <td valign="top">location continent</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">location continent</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">location continent</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Continent,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2532</td>
+               <td valign="top">location country</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">location country</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">location country</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Code,
+                  								Country,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2533</td>
+               <td valign="top">location region</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">location region</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">location region</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Region,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2534</td>
+               <td valign="top">original source</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">original source</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">original source</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SourceName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2535</td>
+               <td valign="top">project id</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">project id</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">project id</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">ID,
+                  								Id,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2536</td>
+               <td valign="top">project name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">project name</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">project name</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Name,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2537</td>
+               <td valign="top">project title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">project title</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">project title</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Title,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2538</td>
+               <td valign="top">publication date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">publication date</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">publication date</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">PublicationYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2539</td>
+               <td valign="top">start year</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">start year</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">start year</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">StartYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2544</td>
+               <td valign="top">resource name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">resource name</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">14</span><div class="term_detail">
+                     <div class="box_heading">resource name</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">3</td>
+               <td width="40%">Code,
+                  								Name,
+                  								ResourceName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2545</td>
+               <td valign="top">resource title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">resource title</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>myBook</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">resource title</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                           </ul>
+                        </li>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">3</td>
+               <td width="40%">BookTitle,
+                  								Title,
+                  								TitleOfBook,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2546</td>
+               <td valign="top">url</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">url</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">url</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">ResourceLink,
+                  								URL,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2547</td>
+               <td valign="top">version</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">version</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">version</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Version,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2548</td>
+               <td valign="top">anonymization flag</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">anonymization flag</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">anonymization flag</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Anonymized,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2550</td>
+               <td valign="top">participant age</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant age</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant age</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Age,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2551</td>
+               <td valign="top">participant birthdate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant birthdate</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant birthdate</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">BirthDate,
+                  								BirthYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2552</td>
+               <td valign="top">participant code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant code</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant code</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Code,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2553</td>
+               <td valign="top">participant dominant language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant dominant language</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant dominant language</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">PrimaryLanguage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2554</td>
+               <td valign="top">participant education</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant education</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant education</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Education,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2555</td>
+               <td valign="top">participant ethnic group</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant ethnic group</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant ethnic group</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">EthnicGroup,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2556</td>
+               <td valign="top">participant full name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant full name</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant full name</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">FullName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2557</td>
+               <td valign="top">participant name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant name</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant name</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Name,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2558</td>
+               <td valign="top">participant profession</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant profession</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant profession</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Profession,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2559</td>
+               <td valign="top">participant role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant role</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant role</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Role,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2560</td>
+               <td valign="top">participant sex</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant sex</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant sex</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Sex,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2561</td>
+               <td valign="top">social family role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">social family role</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">social family role</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SocialFamilyRole,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2562</td>
+               <td valign="top">annotation format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">annotation format</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">annotation format</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">AnnotationFormat,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2564</td>
+               <td valign="top">character encoding</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">character encoding</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">character encoding</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">CharacterEncoding,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2570</td>
+               <td valign="top">media type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">media type</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">media type</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Type,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2571</td>
+               <td valign="top">mime type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">mime type</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">mime type</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Format,
+                  								MimeType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2573</td>
+               <td valign="top">persistent identifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">persistent identifier</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">persistent identifier</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">ID,
+                  								PersistentIdentifier,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2574</td>
+               <td valign="top">quality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">quality</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">quality</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Quality,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2577</td>
+               <td valign="top">sample rate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">sample rate</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">sample rate</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SamplingFrequency,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2580</td>
+               <td valign="top">size</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">size</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">16</span><div class="term_detail">
+                     <div class="box_heading">size</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Number,
+                  								Size,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2583</td>
+               <td valign="top">size unit</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">size unit</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">15</span><div class="term_detail">
+                     <div class="box_heading">size unit</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SizeUnit,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2584</td>
+               <td valign="top">validation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">validation</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">validation</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Validation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2585</td>
+               <td valign="top">validation level</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">validation level</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">validation level</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Level,
+                  								ValidationLevel,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2586</td>
+               <td valign="top">validation mode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">validation mode</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">validation mode</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Methodology,
+                  								ValidationMode,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2587</td>
+               <td valign="top">validation type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">validation type</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">validation type</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Type,
+                  								ValidationType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2591</td>
+               <td valign="top">unknown</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">unknown</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">unknown</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Subject,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2684</td>
+               <td valign="top">bit resolution</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">bit resolution</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">bit resolution</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">BitResolution,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2685</td>
+               <td valign="top">compression</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">compression</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">compression</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Compression,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2686</td>
+               <td valign="top">byte order</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">byte order</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">byte order</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">ByteOrder,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2690</td>
+               <td valign="top">duration of full database</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of full database</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of full database</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DurationOfFullDatabase,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2691</td>
+               <td valign="top">duration of effective speech</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of effective speech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of effective speech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DurationOfEffectiveSpeech,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2692</td>
+               <td valign="top">number of speakers</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">number of speakers</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">number of speakers</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">NumberOfSpeakers,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2693</td>
+               <td valign="top">recording platform hardware</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">recording platform hardware</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">recording platform hardware</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">RecordingPlatformHardware,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2694</td>
+               <td valign="top">recording platform software</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">recording platform software</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">recording platform software</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">RecordingPlatformSoftware,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2696</td>
+               <td valign="top">recording environment</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">recording environment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">recording environment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">RecordingEnvironment,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2955</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">HomeLanguage,
+                  								MotherTongue,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2956</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Owner,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2957</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Pseudonym,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2960</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SpeakerDemographics,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2961</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">NumberOfChannels,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2965</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Title,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2966</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Subtitle,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2967</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DistributionMedium,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2969</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">CatalogueLink,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2978</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">12</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Person,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2979</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">12</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Organisation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2990</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SourceType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-63</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">16</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Website,
+                  								
+               </td>
+            </tr>
+         </tbody>
+      </table>
+   </body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/static/profiles_stats_20100802.html
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/profiles_stats_20100802.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/profiles_stats_20100802.html	(revision 1516)
@@ -0,0 +1,21541 @@
+<html xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m="http://www.vronk.net/schemas" xmlns:dcif="http://www.isocat.org/ns/dcif">
+   <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+      <title>Components Statistics</title>
+      <link rel="stylesheet" media="all" type="text/css" href="http://www.vronk.net/style/vronk_style.css"><style type="text/css">
+ 		.term_detail { text-align: left; border: 1px solid #666699; background-color: #ccccff; position:absolute; }
+ 		.term_detail ul { padding-left: 16px; }
+ 		.hilight { background-color: #ccccff;}
+ 		.box_heading {font-weight:bold;}
+ </style><script src="http://www.vronk.net/style/jquery/js/jquery-1.4.2.js" type="text/javascript"></script><script src="http://www.vronk.net/style/jquery/js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script><script src="http://www.vronk.net/style/jquery/jquery-treeview/jquery.treeview.js" type="text/javascript"></script><script type="text/javascript">			
+				$(function(){
+					
+					$('.term_detail').hide();
+					
+					$('.term_detail_caller').click(function() {
+									$(this).parent().find('.term_detail').toggle();
+									$(this).parents('tr').toggleClass('hilight');
+								});
+				});
+			</script></head>
+   <body>
+      <h1>Basic Counts</h1>
+      <table>
+         <tbody>
+            <tr>
+               <td>creation date</td>
+               <td align="right">2010-08-03+02:00</td>
+            </tr>
+            <tr>
+               <td>profileDescription</td>
+               <td align="right">39</td>
+            </tr>
+            <tr>
+               <td>componentDescription</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>CMD_ComponentSpec</td>
+               <td align="right">39</td>
+            </tr>
+            <tr>
+               <td>profiles</td>
+               <td align="right">39</td>
+            </tr>
+            <tr>
+               <td>CMD_Component</td>
+               <td align="right">1030</td>
+            </tr>
+            <tr>
+               <td>distinct CMD_Component</td>
+               <td align="right">161</td>
+            </tr>
+            <tr>
+               <td>CMD_Element</td>
+               <td align="right">1747</td>
+            </tr>
+            <tr>
+               <td>distinct CMD_Element</td>
+               <td align="right">206</td>
+            </tr>
+            <tr>
+               <td>CMD_Elements without ConceptLink</td>
+               <td align="right">94</td>
+            </tr>
+            <tr>
+               <td>conceptlinks</td>
+               <td align="right">394883</td>
+            </tr>
+            <tr>
+               <td>conceptlinks (without lang-codes ISO639)</td>
+               <td align="right">2876</td>
+            </tr>
+            <tr>
+               <td>distinct conceptlinks (without lang-codes)</td>
+               <td align="right">262</td>
+            </tr>
+            <tr>
+               <td>distinct CMD_Elem-conceptlinks</td>
+               <td align="right">135</td>
+            </tr>
+            <tr>
+               <td>datcats in isocat-profile:Metadata#5</td>
+               <td align="right">218</td>
+            </tr>
+            <tr>
+               <td>elem matrix</td>
+               <td align="right">1747</td>
+            </tr>
+            <tr>
+               <td>distinct profile-elem</td>
+               <td align="right">1070</td>
+            </tr>
+            <tr>
+               <td>distinct profile-datcat</td>
+               <td align="right">1048</td>
+            </tr>
+            <tr>
+               <td>distinct parent-elem</td>
+               <td align="right">304</td>
+            </tr>
+            <tr>
+               <td>distinct profile-parent-elem</td>
+               <td align="right">1267</td>
+            </tr>
+         </tbody>
+      </table>
+      <table>
+         <caption>Profiles |39|</caption>
+         <thead>
+            <tr>
+               <th>name</th>
+               <th>root component</th>
+               <th>|components|</th>
+               <th>|elem|</th>
+               <th>|distinct elems|</th>
+               <th>|distinct @ConceptLinks|</th>
+            </tr>
+         </thead>
+         <tbody>
+            <tr>
+               <td>Bedevaartbank</td>
+               <td>Bedevaartbank</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>Boedelbank</td>
+               <td>Boedelbank</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>DBNL</td>
+               <td>DBNL</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>DIDDD</td>
+               <td>DIDDD</td>
+               <td align="right">45</td>
+               <td align="right">71</td>
+               <td align="right">44</td>
+               <td align="right">46</td>
+            </tr>
+            <tr>
+               <td>DIDDD_sub_location</td>
+               <td>DIDDD_sub_location</td>
+               <td align="right">3</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+            </tr>
+            <tr>
+               <td>DSOL</td>
+               <td>DSOL</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>DynaSAND</td>
+               <td>DynaSAND</td>
+               <td align="right">45</td>
+               <td align="right">71</td>
+               <td align="right">44</td>
+               <td align="right">46</td>
+            </tr>
+            <tr>
+               <td>DynaSAND_sub_location</td>
+               <td>DynaSAND_sub_location</td>
+               <td align="right">3</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+            </tr>
+            <tr>
+               <td>Familienamenbank</td>
+               <td>Familienamenbank</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>GTRP</td>
+               <td>GTRP</td>
+               <td align="right">45</td>
+               <td align="right">71</td>
+               <td align="right">44</td>
+               <td align="right">46</td>
+            </tr>
+            <tr>
+               <td>GTRP_sub_location</td>
+               <td>GTRP_sub_location</td>
+               <td align="right">3</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+            </tr>
+            <tr>
+               <td>HETest</td>
+               <td>HETest</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+            </tr>
+            <tr>
+               <td>HETest</td>
+               <td>HETest</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+               <td align="right">1</td>
+            </tr>
+            <tr>
+               <td>LexicalResourceProfile</td>
+               <td>LexicalResourceProfile</td>
+               <td align="right">52</td>
+               <td align="right">80</td>
+               <td align="right">45</td>
+               <td align="right">47</td>
+            </tr>
+            <tr>
+               <td>Liederenbank</td>
+               <td>Liederenbank</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>PLAND</td>
+               <td>PLAND</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>SessionProfile</td>
+               <td>SessionProfile</td>
+               <td align="right">49</td>
+               <td align="right">84</td>
+               <td align="right">55</td>
+               <td align="right">54</td>
+            </tr>
+            <tr>
+               <td>Soundbites</td>
+               <td>Soundbites</td>
+               <td align="right">45</td>
+               <td align="right">71</td>
+               <td align="right">44</td>
+               <td align="right">46</td>
+            </tr>
+            <tr>
+               <td>SpeechCorpusProfile</td>
+               <td>SpeechCorpusProfile</td>
+               <td align="right">47</td>
+               <td align="right">86</td>
+               <td align="right">54</td>
+               <td align="right">56</td>
+            </tr>
+            <tr>
+               <td>SpeechCorpusProfile_Autonomata_speaker</td>
+               <td>SpeechCorpusProfile_Autonomata_speaker</td>
+               <td align="right">95</td>
+               <td align="right">170</td>
+               <td align="right">83</td>
+               <td align="right">86</td>
+            </tr>
+            <tr>
+               <td>TITUS_metadata</td>
+               <td>TITUS_metadata</td>
+               <td align="right">11</td>
+               <td align="right">17</td>
+               <td align="right">17</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>TextCorpusProfile</td>
+               <td>TextCorpusProfile</td>
+               <td align="right">47</td>
+               <td align="right">75</td>
+               <td align="right">43</td>
+               <td align="right">45</td>
+            </tr>
+            <tr>
+               <td>TextProfile</td>
+               <td>TextProfile</td>
+               <td align="right">33</td>
+               <td align="right">55</td>
+               <td align="right">39</td>
+               <td align="right">39</td>
+            </tr>
+            <tr>
+               <td>VVB</td>
+               <td>VVB</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>Voornamenbank</td>
+               <td>Voornamenbank</td>
+               <td align="right">42</td>
+               <td align="right">67</td>
+               <td align="right">41</td>
+               <td align="right">43</td>
+            </tr>
+            <tr>
+               <td>avatech-recognizer</td>
+               <td>RECOGNIZER</td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td align="right">5</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>cmdi-virtual-collection</td>
+               <td>VirtualCollection</td>
+               <td align="right">4</td>
+               <td align="right">11</td>
+               <td align="right">10</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>component-dc-terms</td>
+               <td>dc-terms</td>
+               <td align="right">1</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+            </tr>
+            <tr>
+               <td>component-dc-terms-modular</td>
+               <td>dc-terms</td>
+               <td align="right">16</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+               <td align="right">0</td>
+            </tr>
+            <tr>
+               <td>component-olac</td>
+               <td>olac</td>
+               <td align="right">1</td>
+               <td align="right">15</td>
+               <td align="right">15</td>
+               <td align="right">2</td>
+            </tr>
+            <tr>
+               <td>dieter_testprofile</td>
+               <td>dieter_testprofile</td>
+               <td align="right">7</td>
+               <td align="right">12</td>
+               <td align="right">11</td>
+               <td align="right">10</td>
+            </tr>
+            <tr>
+               <td>example-profile</td>
+               <td>Example_Profile_Instance</td>
+               <td align="right">6</td>
+               <td align="right">8</td>
+               <td align="right">7</td>
+               <td align="right">3</td>
+            </tr>
+            <tr>
+               <td>imdi-corpus</td>
+               <td>imdi-corpus</td>
+               <td align="right">4</td>
+               <td align="right">4</td>
+               <td align="right">3</td>
+               <td align="right">3</td>
+            </tr>
+            <tr>
+               <td>imdi-profile-instance</td>
+               <td>Session</td>
+               <td align="right">56</td>
+               <td align="right">136</td>
+               <td align="right">57</td>
+               <td align="right">48</td>
+            </tr>
+            <tr>
+               <td>myBook</td>
+               <td>myBook</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+               <td align="right">2</td>
+            </tr>
+            <tr>
+               <td>service</td>
+               <td>service</td>
+               <td align="right">16</td>
+               <td align="right">30</td>
+               <td align="right">13</td>
+               <td align="right">8</td>
+            </tr>
+            <tr>
+               <td>tei-textDesc</td>
+               <td>textDesc</td>
+               <td align="right">1</td>
+               <td align="right">8</td>
+               <td align="right">8</td>
+               <td align="right">4</td>
+            </tr>
+            <tr>
+               <td>test-profile-book</td>
+               <td>test-profile-book</td>
+               <td align="right">6</td>
+               <td align="right">11</td>
+               <td align="right">10</td>
+               <td align="right">9</td>
+            </tr>
+            <tr>
+               <td>test-profile-book2</td>
+               <td>test-profile-book2</td>
+               <td align="right">6</td>
+               <td align="right">13</td>
+               <td align="right">11</td>
+               <td align="right">9</td>
+            </tr>
+         </tbody>
+      </table>
+      <table>
+         <caption>Elements |1747/206|
+            			<span class="note">* Click on numbers to see detail </span></caption>
+         <thead>
+            <tr>
+               <th rowspan="2">name</th>
+               <th colspan="4">count </th>
+               <th rowspan="2">datcat</th>
+            </tr>
+            <tr>
+               <th>profile*</th>
+               <th>all*</th>
+               <th>dcs elem</th>
+               <th>dcs values</th>
+            </tr>
+         </thead>
+         <tbody>
+            <tr>
+               <td valign="top">ActorLanguageName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ActorLanguageName</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ActorLanguageName</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-1766,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Address</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">Address</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">78</span><div class="term_detail">
+                     <div class="box_heading">Address</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/</li>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/OriginLocation/Location/</li>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/OriginLocation/Location/</li>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/OriginLocation/Location/</li>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/OriginLocation/Location/</li>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/OriginLocation/Location/</li>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/</li>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/OriginLocation/Location/</li>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/OriginLocation/Location/</li>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/OriginLocation/Location/</li>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/OriginLocation/Location/</li>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/OriginLocation/Location/</li>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/</li>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2528,
+                  								isocat:DC-2505,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Age</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Age</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Age</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2550,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">age</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">age</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">age</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:CMD-000,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationFormat</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationFormat</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationFormat</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2562,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationLevelType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">AnnotationLevelType</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">AnnotationLevelType</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2462,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationStandoff</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStandoff</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStandoff</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2507,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationStyle</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStyle</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">AnnotationStyle</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2325,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">AnnotationType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">AnnotationType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">AnnotationType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">24</td>
+               <td>isocat:DC-2462,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Anonymized</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Anonymized</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">Anonymized</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2548,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Author</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Author</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Author</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Availability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">Availability</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">21</span><div class="term_detail">
+                     <div class="box_heading">Availability</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2453,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BirthDate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BirthDate</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BirthDate</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2551,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BirthYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">BirthYear</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">BirthYear</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2551,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BitResolution</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">BitResolution</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">BitResolution</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2684,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">BookTitle</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BookTitle</div>
+                     <ul>
+                        <li>myBook</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">BookTitle</div>
+                     <ul>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2545,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ByteOrder</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">ByteOrder</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ByteOrder</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2686,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CatalogueLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">CatalogueLink</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">CatalogueLink</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2969,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Channel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Channel</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Channel</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">9</td>
+               <td>isocat:DC-2464,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">channel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2464,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CharacterEncoding</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">CharacterEncoding</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">CharacterEncoding</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2564,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">22</span><div class="term_detail">
+                     <div class="box_heading">Code</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">49</span><div class="term_detail">
+                     <div class="box_heading">Code</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/Country/</li>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/OriginLocation/Location/Country/</li>
+                              <li>Boedelbank/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/OriginLocation/Location/Country/</li>
+                              <li>DBNL/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/OriginLocation/Location/Country/</li>
+                              <li>DIDDD/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/OriginLocation/Location/Country/</li>
+                              <li>DSOL/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/OriginLocation/Location/Country/</li>
+                              <li>DynaSAND/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/Country/</li>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/OriginLocation/Location/Country/</li>
+                              <li>GTRP/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Country/</li>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/OriginLocation/Location/Country/</li>
+                              <li>Liederenbank/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/OriginLocation/Location/Country/</li>
+                              <li>PLAND/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/OriginLocation/Location/Country/</li>
+                              <li>Soundbites/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Continent/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Country/</li>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/OriginLocation/Location/Country/</li>
+                              <li>VVB/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/Country/</li>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/Continent/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">4</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2532,
+                  								,
+                  								isocat:DC-2552,
+                  								isocat:DC-2544,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CollectionType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">16</span><div class="term_detail">
+                     <div class="box_heading">CollectionType</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">29</span><div class="term_detail">
+                     <div class="box_heading">CollectionType</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Database/CollectionType/</li>
+                              <li>Bedevaartbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Database/CollectionType/</li>
+                              <li>Boedelbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Database/CollectionType/</li>
+                              <li>DBNL/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Database/CollectionType/</li>
+                              <li>DIDDD/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Database/CollectionType/</li>
+                              <li>DSOL/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Database/CollectionType/</li>
+                              <li>DynaSAND/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Database/CollectionType/</li>
+                              <li>Familienamenbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Database/CollectionType/</li>
+                              <li>GTRP/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Database/CollectionType/</li>
+                              <li>Liederenbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Database/CollectionType/</li>
+                              <li>PLAND/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Database/CollectionType/</li>
+                              <li>Soundbites/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Database/CollectionType/</li>
+                              <li>VVB/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Database/CollectionType/</li>
+                              <li>Voornamenbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CompletionYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">CompletionYear</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">CompletionYear</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2509,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Compression</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Compression</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Compression</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">3</td>
+               <td>isocat:DC-2685,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">constitution</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">constitution</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">constitution</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ContentEncoding</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ContentEncoding</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ContentEncoding</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Continent</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Continent</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Continent</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2531,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">contributor</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">contributor</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">contributor</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-contributor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/contributor,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Country</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Country</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Country</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2532,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">coverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">coverage</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">coverage</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-coverage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/coverage,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CreationDate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">CreationDate</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">CreationDate</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">CreationYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">CreationYear</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">CreationYear</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2510,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">creator</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">creator</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">creator</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-creator/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/creator,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">date</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">date</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-date/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/date,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Date</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Date</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2510,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Derivation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Derivation</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Derivation</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">8</td>
+               <td>isocat:DC-2518,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">derivation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">derivation</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">derivation</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2518,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DerivationMode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">DerivationMode</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">DerivationMode</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2516,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">26</span><div class="term_detail">
+                     <div class="box_heading">Description</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>myBook</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">154</span><div class="term_detail">
+                     <div class="box_heading">Description</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/Description/</li>
+                              <li>Bedevaartbank/Collection/Project/Description/</li>
+                              <li>Bedevaartbank/Collection/Creators/Description/</li>
+                              <li>Bedevaartbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/Description/</li>
+                              <li>Boedelbank/Collection/Project/Description/</li>
+                              <li>Boedelbank/Collection/Creators/Description/</li>
+                              <li>Boedelbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/Description/</li>
+                              <li>DBNL/Collection/Project/Description/</li>
+                              <li>DBNL/Collection/Creators/Description/</li>
+                              <li>DBNL/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/Description/</li>
+                              <li>DIDDD/Collection/Project/Description/</li>
+                              <li>DIDDD/Collection/Creators/Description/</li>
+                              <li>DIDDD/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/Description/</li>
+                              <li>DSOL/Collection/Project/Description/</li>
+                              <li>DSOL/Collection/Creators/Description/</li>
+                              <li>DSOL/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/Description/</li>
+                              <li>DynaSAND/Collection/Project/Description/</li>
+                              <li>DynaSAND/Collection/Creators/Description/</li>
+                              <li>DynaSAND/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/Description/</li>
+                              <li>Familienamenbank/Collection/Project/Description/</li>
+                              <li>Familienamenbank/Collection/Creators/Description/</li>
+                              <li>Familienamenbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/Description/</li>
+                              <li>GTRP/Collection/Project/Description/</li>
+                              <li>GTRP/Collection/Creators/Description/</li>
+                              <li>GTRP/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/Description/</li>
+                              <li>Liederenbank/Collection/Project/Description/</li>
+                              <li>Liederenbank/Collection/Creators/Description/</li>
+                              <li>Liederenbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/Description/</li>
+                              <li>PLAND/Collection/Project/Description/</li>
+                              <li>PLAND/Collection/Creators/Description/</li>
+                              <li>PLAND/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Modality/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/Description/</li>
+                              <li>Soundbites/Collection/Project/Description/</li>
+                              <li>Soundbites/Collection/Creators/Description/</li>
+                              <li>Soundbites/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>TextCorpusProfile/Collection/Project/Description/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Description/</li>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>TextCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Description/</li>
+                              <li>TextProfile/TEXT/Authors/Author/Description/</li>
+                              <li>TextProfile/TEXT/Content/Modality/Description/</li>
+                              <li>TextProfile/TEXT/Content/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Description/</li>
+                              <li>TextProfile/TEXT/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Description/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/Description/</li>
+                              <li>VVB/Collection/Project/Description/</li>
+                              <li>VVB/Collection/Creators/Description/</li>
+                              <li>VVB/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/Description/</li>
+                              <li>Voornamenbank/Collection/Project/Description/</li>
+                              <li>Voornamenbank/Collection/Creators/Description/</li>
+                              <li>Voornamenbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/Description/</li>
+                              <li>dieter_testprofile/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/descriptions/</li>
+                              <li>Session/MDGroup/Project/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/descriptions/</li>
+                              <li>Session/MDGroup/Content/descriptions/</li>
+                              <li>Session/MDGroup/Actors/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/descriptions/</li>
+                              <li>Session/Resources/MediaFile/Access/descriptions/</li>
+                              <li>Session/Resources/MediaFile/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Validation/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Access/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/descriptions/</li>
+                              <li>Session/Resources/Source/Access/descriptions/</li>
+                              <li>Session/Resources/Source/descriptions/</li>
+                              <li>Session/Resources/Anonyms/Access/descriptions/</li>
+                              <li>Session/References/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Description/</li>
+                              <li>test-profile-book/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Description/</li>
+                              <li>test-profile-book2/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2520,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-description/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/description,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DistributionMedium</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">DistributionMedium</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">DistributionMedium</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2967,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">domain</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2467,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Dominant</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">Dominant</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Dominant</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2468,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DurationOfEffectiveSpeech</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfEffectiveSpeech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfEffectiveSpeech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2691,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">DurationOfFullDatabase</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfFullDatabase</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">DurationOfFullDatabase</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2690,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Education</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Education</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Education</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2554,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Email</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">Email</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">58</span><div class="term_detail">
+                     <div class="box_heading">Email</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2521,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">End</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">End</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">End</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">End_Range</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">End_Range</div>
+                     <ul>
+                        <li>DIDDD</li>
+                        <li>DynaSAND</li>
+                        <li>GTRP</li>
+                        <li>Soundbites</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">End_Range</div>
+                     <ul>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3655,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">EthnicGroup</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">EthnicGroup</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">EthnicGroup</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2555,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">EventStructure</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">EventStructure</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">EventStructure</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2469,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Facsimile</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Facsimile</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Facsimile</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">factuality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">factuality</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">factuality</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">FamilySocialRole</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">FamilySocialRole</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">FamilySocialRole</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">firstName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">firstName</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">firstName</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">format</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">format</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-format/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/format,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Format</div>
+                     <ul>
+                        <li>example-profile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">Format</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/TextTMD/</li>
+                              <li>Example_Profile_Instance/PhotoTMD/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">1</td>
+               <td>isocat:DC-1758,
+                  								isocat:DC-2571,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">FullName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">FullName</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">FullName</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2556,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Funder</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Funder</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Funder</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2522,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Genre</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Genre</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Genre</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">14</td>
+               <td>isocat:DC-2470,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Head_category_field</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Head_category_field</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Head_category_field</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3646,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">HeadWordType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">HeadWordType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">HeadWordType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2486,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">HomeLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">HomeLanguage</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">HomeLanguage</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2955,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ID</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">ID</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">35</span><div class="term_detail">
+                     <div class="box_heading">ID</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2573,
+                  								isocat:DC-2535,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Id</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Id</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Id</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2535,
+                  								isocat:DC-2482,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">identifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">identifier</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">identifier</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-identifier/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/identifier,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">input</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">input</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">input</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">interaction</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">interaction</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">interaction</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">3</td>
+               <td>isocat:DC-2476,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Interactivity</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Interactivity</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Interactivity</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2476,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Involvement</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Involvement</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Involvement</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2477,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">iso-639-1-code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">iso-639-1-code</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">iso-639-1-code</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">189</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">iso-639-3-code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">21</span><div class="term_detail">
+                     <div class="box_heading">iso-639-3-code</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">51</span><div class="term_detail">
+                     <div class="box_heading">iso-639-3-code</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Bedevaartbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Boedelbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DBNL/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DIDDD/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DSOL/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DynaSAND/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Familienamenbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>GTRP/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Liederenbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>PLAND/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Soundbites/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/ISO639/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>VVB/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Voornamenbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/ISO639/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/ISO639/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">7679</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">IVB_ethnological_field</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">IVB_ethnological_field</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">IVB_ethnological_field</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3648,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Key</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Key</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Key</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Keys/</li>
+                              <li>Session/MDGroup/Content/Keys/</li>
+                              <li>Session/MDGroup/Actors/Actor/Keys/</li>
+                              <li>Session/Resources/MediaFile/Keys/</li>
+                              <li>Session/Resources/WrittenResource/Keys/</li>
+                              <li>Session/Resources/Source/Keys/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">KloekeGeoreference</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">KloekeGeoreference</div>
+                     <ul>
+                        <li>DIDDD_sub_location</li>
+                        <li>DynaSAND_sub_location</li>
+                        <li>GTRP_sub_location</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">KloekeGeoreference</div>
+                     <ul>
+                        <li>DIDDD_sub_location
+                           <ul>
+                              <li>DIDDD_sub_location/KloekeGeoreference/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND_sub_location
+                           <ul>
+                              <li>DynaSAND_sub_location/KloekeGeoreference/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP_sub_location
+                           <ul>
+                              <li>GTRP_sub_location/KloekeGeoreference/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3651,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Language</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Language</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">language</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">language</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/language,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LanguageId</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageId</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageId</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2482,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LanguageName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">LanguageName</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">49</span><div class="term_detail">
+                     <div class="box_heading">LanguageName</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Size/SizePerLanguage/Language/</li>
+                              <li>Bedevaartbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Size/SizePerLanguage/Language/</li>
+                              <li>Boedelbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Size/SizePerLanguage/Language/</li>
+                              <li>DBNL/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Size/SizePerLanguage/Language/</li>
+                              <li>DIDDD/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Size/SizePerLanguage/Language/</li>
+                              <li>DSOL/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Size/SizePerLanguage/Language/</li>
+                              <li>DynaSAND/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Size/SizePerLanguage/Language/</li>
+                              <li>Familienamenbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Size/SizePerLanguage/Language/</li>
+                              <li>GTRP/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Size/SizePerLanguage/Language/</li>
+                              <li>Liederenbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Size/SizePerLanguage/Language/</li>
+                              <li>PLAND/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Size/SizePerLanguage/Language/</li>
+                              <li>Soundbites/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Size/SizePerLanguage/Language/</li>
+                              <li>VVB/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Size/SizePerLanguage/Language/</li>
+                              <li>Voornamenbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2484,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LanguageTokensTypes</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageTokensTypes</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LanguageTokensTypes</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">lastName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lastName</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lastName</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Level</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Level</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Level</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2585,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LexicalMainType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalMainType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalMainType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2487,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">LexicalSubtype</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalSubtype</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">LexicalSubtype</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">7</td>
+               <td>isocat:DC-2496,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Manuscript</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Manuscript</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Manuscript</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">MediaResourceLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">MediaResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">MediaResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Methodology</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Methodology</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Methodology</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2586,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">MimeType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">MimeType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">MimeType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2571,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Modalities</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Modalities</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Modalities</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2490,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Modality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">Modality</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">Modality</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Modality/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2490,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">MotherTongue</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">MotherTongue</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">MotherTongue</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2955,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Multilinguality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Multilinguality</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Multilinguality</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2491,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">27</span><div class="term_detail">
+                     <div class="box_heading">Name</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TITUS_metadata</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">65</span><div class="term_detail">
+                     <div class="box_heading">Name</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                              <li>imdi-corpus/Corpus/CorpusLink/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                              <li>Session/MDGroup/Project/</li>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/output/parameter/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">5</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2544,
+                  								isocat:DC-2536,
+                  								isocat:DC-2557,
+                  								,
+                  								isocat:DC-2454,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Number</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">Number</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">41</span><div class="term_detail">
+                     <div class="box_heading">Number</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Size/TotalSize/</li>
+                              <li>Bedevaartbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Size/TotalSize/</li>
+                              <li>Boedelbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Size/TotalSize/</li>
+                              <li>DBNL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Size/TotalSize/</li>
+                              <li>DIDDD/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Size/TotalSize/</li>
+                              <li>DSOL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Size/TotalSize/</li>
+                              <li>DynaSAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Size/TotalSize/</li>
+                              <li>Familienamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Size/TotalSize/</li>
+                              <li>GTRP/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Size/TotalSize/</li>
+                              <li>Liederenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Size/TotalSize/</li>
+                              <li>PLAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Size/TotalSize/</li>
+                              <li>Soundbites/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Size/TotalSize/</li>
+                              <li>VVB/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Size/TotalSize/</li>
+                              <li>Voornamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2580,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">NumberOfChannels</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">NumberOfChannels</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">NumberOfChannels</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2961,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">NumberOfSpeakers</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">NumberOfSpeakers</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">NumberOfSpeakers</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2692,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">numparam</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">numparam</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">numparam</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-contributor</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-contributor</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-contributor</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-coverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-coverage</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-coverage</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-creator</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-creator</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-creator</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-date</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-date</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-description</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-description</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-format</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-format</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-identifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-identifier</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-identifier</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-language</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-language</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-publisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-publisher</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-publisher</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-relation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-relation</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-relation</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-rights</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-rights</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-rights</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-source</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-source</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-source</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">olac-subject</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-subject</div>
+                     <ul>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">olac-subject</div>
+                     <ul>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">OLAC_linguistic_field</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">OLAC_linguistic_field</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">OLAC_linguistic_field</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3649,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Organisation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">Organisation</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">58</span><div class="term_detail">
+                     <div class="box_heading">Organisation</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2979,
+                  								,
+                  								isocat:DC-2459,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Origin</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Origin</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Origin</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">output</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">output</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">output</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Owner</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">Owner</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">22</span><div class="term_detail">
+                     <div class="box_heading">Owner</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2956,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ParticipantSelectionCriterium</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ParticipantSelectionCriterium</div>
+                     <ul>
+                        <li>DIDDD</li>
+                        <li>DynaSAND</li>
+                        <li>GTRP</li>
+                        <li>Soundbites</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">ParticipantSelectionCriterium</div>
+                     <ul>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3652,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PersistentIdentifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">PersistentIdentifier</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">PersistentIdentifier</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2573,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Person</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Person</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">51</span><div class="term_detail">
+                     <div class="box_heading">Person</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2978,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PlanningType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">PlanningType</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">PlanningType</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2492,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">preparedness</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">preparedness</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">preparedness</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Price</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Price</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Price</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2460,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PrimaryLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">PrimaryLanguage</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">PrimaryLanguage</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">4</td>
+               <td>isocat:DC-2553,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Profession</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Profession</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Profession</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2558,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactAddress</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactAddress</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactAddress</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactEmail</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactEmail</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactEmail</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactName</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactName</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectContactOrganisation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactOrganisation</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectContactOrganisation</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ProjectDescription</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectDescription</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ProjectDescription</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Province</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Province</div>
+                     <ul>
+                        <li>DIDDD_sub_location</li>
+                        <li>DynaSAND_sub_location</li>
+                        <li>GTRP_sub_location</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Province</div>
+                     <ul>
+                        <li>DIDDD_sub_location
+                           <ul>
+                              <li>DIDDD_sub_location/Province/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND_sub_location
+                           <ul>
+                              <li>DynaSAND_sub_location/Province/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP_sub_location
+                           <ul>
+                              <li>GTRP_sub_location/Province/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3656,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Pseudonym</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Pseudonym</div>
+                     <ul>
+                        <li>TextProfile</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Pseudonym</div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2957,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">PublicationYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">PublicationYear</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">PublicationYear</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2538,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Published</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Published</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Published</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">publisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">publisher</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">publisher</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-publisher/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/publisher,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Publisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Publisher</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Publisher</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Purpose</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Purpose</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Purpose</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">purpose</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">purpose</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">purpose</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Quality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Quality</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Quality</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">7</td>
+               <td>isocat:DC-2574,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">recognizer</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">recognizer</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">recognizer</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingConditions</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingConditions</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingConditions</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingEnvironment</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">RecordingEnvironment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">RecordingEnvironment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2696,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingPlatformHardware</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformHardware</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformHardware</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2693,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">RecordingPlatformSoftware</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformSoftware</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">RecordingPlatformSoftware</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2694,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Region</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">Region</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">21</span><div class="term_detail">
+                     <div class="box_heading">Region</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2533,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">relation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">relation</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">relation</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-relation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/relation,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Reproducability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Reproducability</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Reproducability</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ReproducabilityNotice</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ReproducabilityNotice</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ReproducabilityNotice</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessAvailability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessAvailability</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessAvailability</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessDate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessDate</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessDate</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessLink</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessLink</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessOwner</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessOwner</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessOwner</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceAccessPublisher</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessPublisher</div>
+                     <ul>
+                        <li>TITUS_metadata</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceAccessPublisher</div>
+                     <ul>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceFormat</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceFormat</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">ResourceFormat</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceLink</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">ResourceLink</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/Anonyms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2546,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ResourceName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceName</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">ResourceName</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2544,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">rights</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">rights</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">rights</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-rights/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/rights,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">Role</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">Role</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2513,
+                  								isocat:DC-2559,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SamplingFrequency</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">SamplingFrequency</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SamplingFrequency</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2577,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SessionID</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">SessionID</div>
+                     <ul>
+                        <li>HETest</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SessionID</div>
+                     <ul>
+                        <li>HETest
+                           <ul>
+                              <li>HETest/</li>
+                              <li>HETest/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-1845,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Sex</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Sex</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Sex</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2560,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">sex</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sex</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sex</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:CMD-000,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Size</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Size</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">Size</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2580,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SizeUnit</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">SizeUnit</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">41</span><div class="term_detail">
+                     <div class="box_heading">SizeUnit</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Size/TotalSize/</li>
+                              <li>Bedevaartbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Size/TotalSize/</li>
+                              <li>Boedelbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Size/TotalSize/</li>
+                              <li>DBNL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Size/TotalSize/</li>
+                              <li>DIDDD/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Size/TotalSize/</li>
+                              <li>DSOL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Size/TotalSize/</li>
+                              <li>DynaSAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Size/TotalSize/</li>
+                              <li>Familienamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Size/TotalSize/</li>
+                              <li>GTRP/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Size/TotalSize/</li>
+                              <li>Liederenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Size/TotalSize/</li>
+                              <li>PLAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Size/TotalSize/</li>
+                              <li>Soundbites/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Size/TotalSize/</li>
+                              <li>VVB/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Size/TotalSize/</li>
+                              <li>Voornamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2583,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SocialContext</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SocialContext</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SocialContext</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">6</td>
+               <td>isocat:DC-2493,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SocialFamilyRole</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SocialFamilyRole</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SocialFamilyRole</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2561,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SocialVariable</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">SocialVariable</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">SocialVariable</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">8</td>
+               <td>isocat:DC-3657,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">source</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">source</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">source</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/source,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SourceLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">SourceLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">SourceLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2494,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SourceName</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SourceName</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SourceName</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2534,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SourceType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">SourceType</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">SourceType</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2990,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SpeakerDemographics</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SpeakerDemographics</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">SpeakerDemographics</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2960,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Start</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Start</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">Start</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Start_Range</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Start_Range</div>
+                     <ul>
+                        <li>DIDDD</li>
+                        <li>DynaSAND</li>
+                        <li>GTRP</li>
+                        <li>Soundbites</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Start_Range</div>
+                     <ul>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3654,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">StartYear</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">StartYear</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">StartYear</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2539,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Status</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Status</div>
+                     <ul>
+                        <li>cmdi-virtual-collection</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Status</div>
+                     <ul>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Sub_category_field</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Sub_category_field</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Sub_category_field</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-3647,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SubGenre</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SubGenre</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">SubGenre</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">subject</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">subject</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">subject</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-subject/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/subject,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Subject</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subject</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subject</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2591,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Subtitle</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subtitle</div>
+                     <ul>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Subtitle</div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2966,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">SubType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">SubType</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">SubType</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TagSet</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TagSet</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">TagSet</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2497,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TargetLanguage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">TargetLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">TargetLanguage</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">5</td>
+               <td>isocat:DC-2499,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Task</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Task</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">Task</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2500,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Telephone</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Telephone</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">51</span><div class="term_detail">
+                     <div class="box_heading">Telephone</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2461,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">textparam</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">textparam</div>
+                     <ul>
+                        <li>avatech-recognizer</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">textparam</div>
+                     <ul>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TextTypeDescription</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TextTypeDescription</div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TextTypeDescription</div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/TextTMD/TextType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-1758,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">themeDescription</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">themeDescription</div>
+                     <ul>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">themeDescription</div>
+                     <ul>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/theme/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Time_coverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Time_coverage</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Time_coverage</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-3664,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TimeCoverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">TimeCoverage</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">TimeCoverage</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2502,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TimePeriod</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TimePeriod</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">TimePeriod</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/TimePeriod/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2502,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">21</span><div class="term_detail">
+                     <div class="box_heading">Title</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">39</span><div class="term_detail">
+                     <div class="box_heading">Title</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">3</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2545,
+                  								isocat:DC-2537,
+                  								isocat:DC-2965,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">title</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">title</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-title/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/title,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">TitleOfBook</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">TitleOfBook</div>
+                     <ul>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">TitleOfBook</div>
+                     <ul>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-2545,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Topic</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">Topic</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">Topic</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2503,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Topicality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Topicality</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading">Topicality</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">2</td>
+               <td>isocat:DC-3667,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Type</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">25</span><div class="term_detail">
+                     <div class="box_heading">Type</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/InterviewType/</li>
+                              <li>DIDDD/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/InterviewType/</li>
+                              <li>DynaSAND/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/InterviewType/</li>
+                              <li>GTRP/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/InterviewType/</li>
+                              <li>Soundbites/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/output/parameter/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">4</td>
+               <td align="right">14</td>
+               <td>isocat:DC-3643,
+                  								isocat:DC-2570,
+                  								,
+                  								isocat:DC-2587,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">type</div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-dc-terms-modular</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">type</div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-type/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">2</td>
+               <td align="right">0</td>
+               <td>http://purl.org/dc/elements/1.1/type,
+                  								,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">URL</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">URL</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">URL</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2546,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Validation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Validation</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Validation</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2584,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ValidationLevel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">ValidationLevel</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">ValidationLevel</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2585,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ValidationMode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">ValidationMode</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">ValidationMode</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2586,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">ValidationType</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">ValidationType</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">ValidationType</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2587,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Version</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">Version</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">Version</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-2547,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Website</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">Website</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">68</span><div class="term_detail">
+                     <div class="box_heading">Website</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/</li>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/</li>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/</li>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/</li>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/</li>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/</li>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/</li>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/</li>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/</li>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/</li>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/</li>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/</li>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>isocat:DC-63,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">Whatever</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Whatever</div>
+                     <ul>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">Whatever</div>
+                     <ul>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td align="right">1</td>
+               <td align="right">0</td>
+               <td>,
+                  								
+               </td>
+            </tr>
+         </tbody>
+      </table>
+      <table>
+         <caption>DatCats |135| <span class="note">* Click on numbers to see detail </span></caption>
+         <thead>
+            <tr>
+               <th rowspan="2">id</th>
+               <th rowspan="2">name</th>
+               <th colspan="3">count </th>
+               <th rowspan="2">elems</th>
+            </tr>
+            <tr>
+               <th>profile*</th>
+               <th>all*</th>
+               <th>elems</th>
+            </tr>
+         </thead>
+         <tbody>
+            <tr>
+               <td valign="top"></td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">32</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TITUS_metadata</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>avatech-recognizer</li>
+                        <li>cmdi-virtual-collection</li>
+                        <li>component-dc-terms-modular</li>
+                        <li>component-olac</li>
+                        <li>dieter_testprofile</li>
+                        <li>example-profile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                        <li>tei-textDesc</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">239</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Database/CollectionType/</li>
+                              <li>Bedevaartbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/Continent/</li>
+                              <li>Bedevaartbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>Bedevaartbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Database/CollectionType/</li>
+                              <li>Boedelbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Boedelbank/Collection/OriginLocation/Location/Continent/</li>
+                              <li>Boedelbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>Boedelbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Database/CollectionType/</li>
+                              <li>DBNL/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DBNL/Collection/OriginLocation/Location/Continent/</li>
+                              <li>DBNL/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>DBNL/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Database/CollectionType/</li>
+                              <li>DIDDD/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DIDDD/Collection/OriginLocation/Location/Continent/</li>
+                              <li>DIDDD/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>DIDDD/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Database/CollectionType/</li>
+                              <li>DSOL/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DSOL/Collection/OriginLocation/Location/Continent/</li>
+                              <li>DSOL/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>DSOL/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Database/CollectionType/</li>
+                              <li>DynaSAND/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>DynaSAND/Collection/OriginLocation/Location/Continent/</li>
+                              <li>DynaSAND/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>DynaSAND/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Database/CollectionType/</li>
+                              <li>Familienamenbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/Continent/</li>
+                              <li>Familienamenbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>Familienamenbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Database/CollectionType/</li>
+                              <li>GTRP/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>GTRP/Collection/OriginLocation/Location/Continent/</li>
+                              <li>GTRP/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>GTRP/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Continent/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Database/CollectionType/</li>
+                              <li>Liederenbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Liederenbank/Collection/OriginLocation/Location/Continent/</li>
+                              <li>Liederenbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>Liederenbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Database/CollectionType/</li>
+                              <li>PLAND/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>PLAND/Collection/OriginLocation/Location/Continent/</li>
+                              <li>PLAND/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>PLAND/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/Content/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Database/CollectionType/</li>
+                              <li>Soundbites/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Soundbites/Collection/OriginLocation/Location/Continent/</li>
+                              <li>Soundbites/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>Soundbites/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Collection/CollectionType/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Continent/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/CollectionType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Continent/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TITUS_metadata
+                           <ul>
+                              <li>TITUS_metadata/</li>
+                              <li>TITUS_metadata/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ProjectContact/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourceAccess/</li>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                              <li>TITUS_metadata/ResourcePublicationTimeOriginal/</li>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                              <li>TITUS_metadata/ResourceWordcountTT/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Continent/</li>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Collection/CollectionType/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Continent/</li>
+                              <li>TextProfile/TEXT/Content/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/ISO639/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Database/CollectionType/</li>
+                              <li>VVB/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>VVB/Collection/OriginLocation/Location/Continent/</li>
+                              <li>VVB/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>VVB/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Database/CollectionType/</li>
+                              <li>Voornamenbank/Size/SizePerLanguage/Language/ISO639/</li>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/Continent/</li>
+                              <li>Voornamenbank/Collection/DocumentationLanguages/Language/ISO639/</li>
+                              <li>Voornamenbank/Collection/CollectionType/</li>
+                           </ul>
+                        </li>
+                        <li>avatech-recognizer
+                           <ul>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                              <li>RECOGNIZER/</li>
+                           </ul>
+                        </li>
+                        <li>cmdi-virtual-collection
+                           <ul>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/</li>
+                              <li>VirtualCollection/Creator/</li>
+                              <li>VirtualCollection/Creator/</li>
+                              <li>VirtualCollection/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>component-dc-terms-modular
+                           <ul>
+                              <li>dc-terms/dc-contributor/</li>
+                              <li>dc-terms/dc-coverage/</li>
+                              <li>dc-terms/dc-creator/</li>
+                              <li>dc-terms/dc-date/</li>
+                              <li>dc-terms/dc-description/</li>
+                              <li>dc-terms/dc-format/</li>
+                              <li>dc-terms/dc-identifier/</li>
+                              <li>dc-terms/dc-language/</li>
+                              <li>dc-terms/dc-publisher/</li>
+                              <li>dc-terms/dc-relation/</li>
+                              <li>dc-terms/dc-rights/</li>
+                              <li>dc-terms/dc-source/</li>
+                              <li>dc-terms/dc-subject/</li>
+                              <li>dc-terms/dc-title/</li>
+                              <li>dc-terms/dc-type/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/</li>
+                              <li>Example_Profile_Instance/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/CorpusLink/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Keys/</li>
+                              <li>Session/MDGroup/Content/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Content/Keys/</li>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Keys/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/MediaFile/TimePosition/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/MediaFile/Keys/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Keys/</li>
+                              <li>Session/Resources/Source/</li>
+                              <li>Session/Resources/Source/</li>
+                              <li>Session/Resources/Source/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/CounterPosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                              <li>Session/Resources/Source/TimePosition/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Source/Keys/</li>
+                              <li>Session/Resources/Anonyms/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/ISO639/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/ISO639/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/ISO639/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                              <li>textDesc/</li>
+                              <li>textDesc/</li>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/theme/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/theme/</li>
+                              <li>test-profile-book2/theme/</li>
+                              <li>test-profile-book2/theme/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">94</td>
+               <td width="40%">Address,
+                  								Author,
+                  								Availability,
+                  								Code,
+                  								CollectionType,
+                  								ContentEncoding,
+                  								CreationDate,
+                  								Date,
+                  								Description,
+                  								Email,
+                  								End,
+                  								Facsimile,
+                  								FamilySocialRole,
+                  								Format,
+                  								Id,
+                  								Key,
+                  								Language,
+                  								LanguageTokensTypes,
+                  								Manuscript,
+                  								MediaResourceLink,
+                  								MotherTongue,
+                  								Name,
+                  								Organisation,
+                  								Origin,
+                  								Owner,
+                  								PrimaryLanguage,
+                  								ProjectContactAddress,
+                  								ProjectContactEmail,
+                  								ProjectContactName,
+                  								ProjectContactOrganisation,
+                  								ProjectDescription,
+                  								Published,
+                  								Publisher,
+                  								Purpose,
+                  								Quality,
+                  								RecordingConditions,
+                  								Reproducability,
+                  								ReproducabilityNotice,
+                  								ResourceAccessAvailability,
+                  								ResourceAccessDate,
+                  								ResourceAccessLink,
+                  								ResourceAccessOwner,
+                  								ResourceAccessPublisher,
+                  								ResourceFormat,
+                  								ResourceLink,
+                  								Size,
+                  								Start,
+                  								Status,
+                  								SubGenre,
+                  								SubType,
+                  								Type,
+                  								Whatever,
+                  								constitution,
+                  								contributor,
+                  								coverage,
+                  								creator,
+                  								date,
+                  								description,
+                  								factuality,
+                  								firstName,
+                  								format,
+                  								identifier,
+                  								input,
+                  								iso-639-1-code,
+                  								iso-639-3-code,
+                  								language,
+                  								lastName,
+                  								numparam,
+                  								olac-contributor,
+                  								olac-coverage,
+                  								olac-creator,
+                  								olac-date,
+                  								olac-description,
+                  								olac-format,
+                  								olac-identifier,
+                  								olac-language,
+                  								olac-publisher,
+                  								olac-relation,
+                  								olac-rights,
+                  								olac-source,
+                  								olac-subject,
+                  								output,
+                  								preparedness,
+                  								publisher,
+                  								purpose,
+                  								recognizer,
+                  								relation,
+                  								rights,
+                  								source,
+                  								subject,
+                  								textparam,
+                  								themeDescription,
+                  								title,
+                  								type,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/contributor</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">contributor,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/coverage</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">coverage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/creator</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">creator,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/date</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">date,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/description</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">description,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/format</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">format,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/identifier</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">identifier,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/language</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">language,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/publisher</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">publisher,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/relation</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">relation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/rights</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">rights,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/source</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">source,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/subject</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">subject,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/title</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">title,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">http://purl.org/dc/elements/1.1/type</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms</li>
+                        <li>component-olac</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>component-dc-terms
+                           <ul>
+                              <li>dc-terms/</li>
+                           </ul>
+                        </li>
+                        <li>component-olac
+                           <ul>
+                              <li>olac/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">type,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:CMD-000</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/</li>
+                              <li>Example_Profile_Instance/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">age,
+                  								sex,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-1758</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/TextTMD/</li>
+                              <li>Example_Profile_Instance/TextTMD/TextType/</li>
+                              <li>Example_Profile_Instance/PhotoTMD/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Format,
+                  								TextTypeDescription,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-1766</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>example-profile
+                           <ul>
+                              <li>Example_Profile_Instance/Actor/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">ActorLanguageName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-1845</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>HETest</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>HETest
+                           <ul>
+                              <li>HETest/</li>
+                              <li>HETest/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SessionID,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2325</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">AnnotationStyle,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2453</td>
+               <td valign="top">availability</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">availability</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">availability</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Availability,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2454</td>
+               <td valign="top">contact full name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">contact full name</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">contact full name</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Name,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2459</td>
+               <td valign="top">organization</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">organization</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">organization</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Organisation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2460</td>
+               <td valign="top">price</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">price</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">price</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/Price/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Price,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2461</td>
+               <td valign="top">telephone number</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">telephone number</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">51</span><div class="term_detail">
+                     <div class="box_heading">telephone number</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Telephone,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2462</td>
+               <td valign="top">annotation level type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">annotation level type</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">annotation level type</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">AnnotationLevelType,
+                  								AnnotationType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2464</td>
+               <td valign="top">channel</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">channel</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Channel,
+                  								channel,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2467</td>
+               <td valign="top">domain</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">domain</div>
+                     <ul>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">domain,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2468</td>
+               <td valign="top">dominant language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">dominant language</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">dominant language</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Dominant,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2469</td>
+               <td valign="top">event structure</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">event structure</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">event structure</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">EventStructure,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2470</td>
+               <td valign="top">genre</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">genre</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">genre</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Genre,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2476</td>
+               <td valign="top">interactivity</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">interactivity</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">interactivity</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Interactivity,
+                  								interaction,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2477</td>
+               <td valign="top">involvement</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">involvement</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">involvement</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Involvement,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2482</td>
+               <td valign="top">language id</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">language id</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">language id</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Id,
+                  								LanguageId,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2484</td>
+               <td valign="top">language name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">language name</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">49</span><div class="term_detail">
+                     <div class="box_heading">language name</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Size/SizePerLanguage/Language/</li>
+                              <li>Bedevaartbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Size/SizePerLanguage/Language/</li>
+                              <li>Boedelbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Size/SizePerLanguage/Language/</li>
+                              <li>DBNL/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Size/SizePerLanguage/Language/</li>
+                              <li>DIDDD/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Size/SizePerLanguage/Language/</li>
+                              <li>DSOL/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Size/SizePerLanguage/Language/</li>
+                              <li>DynaSAND/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Size/SizePerLanguage/Language/</li>
+                              <li>Familienamenbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Size/SizePerLanguage/Language/</li>
+                              <li>GTRP/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Size/SizePerLanguage/Language/</li>
+                              <li>Liederenbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Size/SizePerLanguage/Language/</li>
+                              <li>PLAND/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Size/SizePerLanguage/Language/</li>
+                              <li>Soundbites/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/Language/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Language/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/Language/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Language/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Language/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Size/SizePerLanguage/Language/</li>
+                              <li>VVB/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Size/SizePerLanguage/Language/</li>
+                              <li>Voornamenbank/Collection/DocumentationLanguages/Language/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">LanguageName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2486</td>
+               <td valign="top">lexical unit</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexical unit</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexical unit</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">HeadWordType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2487</td>
+               <td valign="top">lexicon type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexicon type</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">lexicon type</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">LexicalMainType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2490</td>
+               <td valign="top">modalities</td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">modalities</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">modalities</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/Modality/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Modalities,
+                  								Modality,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2491</td>
+               <td valign="top">number of languages</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">number of languages</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">number of languages</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Multilinguality/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Multilinguality,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2492</td>
+               <td valign="top">planning type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">planning type</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">planning type</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">PlanningType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2493</td>
+               <td valign="top">social context</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">social context</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">social context</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/CommunicationContext/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SocialContext,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2494</td>
+               <td valign="top">source language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">source language</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">source language</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SourceLanguage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2496</td>
+               <td valign="top">sub-level information</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sub-level information</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">sub-level information</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">LexicalSubtype,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2497</td>
+               <td valign="top">tagset</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">tagset</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">tagset</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/annotationLevel/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">TagSet,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2499</td>
+               <td valign="top">target language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">target language</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">8</span><div class="term_detail">
+                     <div class="box_heading">target language</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">TargetLanguage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2500</td>
+               <td valign="top">task</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">task</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">task</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Task,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2502</td>
+               <td valign="top">time coverage</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">time coverage</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">time coverage</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/TimePeriod/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">TimeCoverage,
+                  								TimePeriod,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2503</td>
+               <td valign="top">topic</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">topic</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">topic</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Topic,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2505</td>
+               <td valign="top">address</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">address</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">51</span><div class="term_detail">
+                     <div class="box_heading">address</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Address,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2507</td>
+               <td valign="top">annotation stand-off</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">annotation stand-off</div>
+                     <ul>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">annotation stand-off</div>
+                     <ul>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">AnnotationStandoff,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2509</td>
+               <td valign="top">completion year</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">completion year</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">completion year</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">CompletionYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2510</td>
+               <td valign="top">creation date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">creation date</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">creation date</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">CreationYear,
+                  								Date,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2513</td>
+               <td valign="top">creator role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">creator role</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">creator role</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Creators/Creator/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Role,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2516</td>
+               <td valign="top">derivation mode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">derivation mode</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">derivation mode</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DerivationMode,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2518</td>
+               <td valign="top">derivation type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">derivation type</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>tei-textDesc</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">derivation type</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>tei-textDesc
+                           <ul>
+                              <li>textDesc/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Derivation,
+                  								derivation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2520</td>
+               <td valign="top">description</td>
+               <td valign="top" align="right"><span class="term_detail_caller">25</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>myBook</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">153</span><div class="term_detail">
+                     <div class="box_heading">description</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/Description/</li>
+                              <li>Bedevaartbank/Collection/Project/Description/</li>
+                              <li>Bedevaartbank/Collection/Creators/Description/</li>
+                              <li>Bedevaartbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/Description/</li>
+                              <li>Boedelbank/Collection/Project/Description/</li>
+                              <li>Boedelbank/Collection/Creators/Description/</li>
+                              <li>Boedelbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/Description/</li>
+                              <li>DBNL/Collection/Project/Description/</li>
+                              <li>DBNL/Collection/Creators/Description/</li>
+                              <li>DBNL/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/Description/</li>
+                              <li>DIDDD/Collection/Project/Description/</li>
+                              <li>DIDDD/Collection/Creators/Description/</li>
+                              <li>DIDDD/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/Description/</li>
+                              <li>DSOL/Collection/Project/Description/</li>
+                              <li>DSOL/Collection/Creators/Description/</li>
+                              <li>DSOL/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/Description/</li>
+                              <li>DynaSAND/Collection/Project/Description/</li>
+                              <li>DynaSAND/Collection/Creators/Description/</li>
+                              <li>DynaSAND/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/Description/</li>
+                              <li>Familienamenbank/Collection/Project/Description/</li>
+                              <li>Familienamenbank/Collection/Creators/Description/</li>
+                              <li>Familienamenbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/Description/</li>
+                              <li>GTRP/Collection/Project/Description/</li>
+                              <li>GTRP/Collection/Creators/Description/</li>
+                              <li>GTRP/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/DocumentationLanguages/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalMainType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/LexicalSubType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/HeadWordType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/LexicalType/Modality/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>LexicalResourceProfile/LexicalResource/AnnotationTypes/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/Description/</li>
+                              <li>Liederenbank/Collection/Project/Description/</li>
+                              <li>Liederenbank/Collection/Creators/Description/</li>
+                              <li>Liederenbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/Description/</li>
+                              <li>PLAND/Collection/Project/Description/</li>
+                              <li>PLAND/Collection/Creators/Description/</li>
+                              <li>PLAND/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/Description/</li>
+                              <li>SessionProfile/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Modality/Description/</li>
+                              <li>SessionProfile/SESSION/Content/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/Description/</li>
+                              <li>Soundbites/Collection/Project/Description/</li>
+                              <li>Soundbites/Collection/Creators/Description/</li>
+                              <li>Soundbites/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/DocumentationLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/AnnotationTypes/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Modality/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Content/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/Description/</li>
+                              <li>TextCorpusProfile/Collection/Project/Description/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Description/</li>
+                              <li>TextCorpusProfile/Collection/DocumentationLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/AnnotationType/Description/</li>
+                              <li>TextCorpusProfile/Corpus/AnnotationTypes/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/Description/</li>
+                              <li>TextCorpusProfile/Corpus/SubjectLanguages/SubjectLanguage/Description/</li>
+                              <li>TextCorpusProfile/Corpus/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Description/</li>
+                              <li>TextProfile/TEXT/Authors/Author/Description/</li>
+                              <li>TextProfile/TEXT/Content/Modality/Description/</li>
+                              <li>TextProfile/TEXT/Content/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationType/Description/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/Description/</li>
+                              <li>TextProfile/TEXT/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/Description/</li>
+                              <li>TextProfile/TEXT/SubjectLanguages/SubjectLanguage/Description/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/Description/</li>
+                              <li>VVB/Collection/Project/Description/</li>
+                              <li>VVB/Collection/Creators/Description/</li>
+                              <li>VVB/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/Description/</li>
+                              <li>Voornamenbank/Collection/Project/Description/</li>
+                              <li>Voornamenbank/Collection/Creators/Description/</li>
+                              <li>Voornamenbank/Collection/DocumentationLanguages/Description/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/Description/</li>
+                              <li>dieter_testprofile/Modality/Description/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/descriptions/</li>
+                              <li>Session/MDGroup/Project/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Content/Content_Languages/Content_Language/descriptions/</li>
+                              <li>Session/MDGroup/Content/descriptions/</li>
+                              <li>Session/MDGroup/Actors/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/descriptions/</li>
+                              <li>Session/MDGroup/Actors/Actor/Actor_Languages/Actor_Language/descriptions/</li>
+                              <li>Session/Resources/MediaFile/Access/descriptions/</li>
+                              <li>Session/Resources/MediaFile/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Validation/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/Access/descriptions/</li>
+                              <li>Session/Resources/WrittenResource/descriptions/</li>
+                              <li>Session/Resources/Source/Access/descriptions/</li>
+                              <li>Session/Resources/Source/descriptions/</li>
+                              <li>Session/Resources/Anonyms/Access/descriptions/</li>
+                              <li>Session/References/descriptions/</li>
+                           </ul>
+                        </li>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Description/</li>
+                              <li>test-profile-book/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Description/</li>
+                              <li>test-profile-book2/Authors/Author/Description/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Description,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2521</td>
+               <td valign="top">email</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">email</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">57</span><div class="term_detail">
+                     <div class="box_heading">email</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/Contact/</li>
+                              <li>Session/MDGroup/Actors/Actor/Contact/</li>
+                              <li>Session/Resources/MediaFile/Access/Contact/</li>
+                              <li>Session/Resources/WrittenResource/Access/Contact/</li>
+                              <li>Session/Resources/Source/Access/Contact/</li>
+                              <li>Session/Resources/Anonyms/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Email,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2522</td>
+               <td valign="top">funder</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">funder</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">funder</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Funder,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2528</td>
+               <td valign="top">location address</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">location address</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">21</span><div class="term_detail">
+                     <div class="box_heading">location address</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Address,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2531</td>
+               <td valign="top">location continent</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">location continent</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">location continent</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Continent,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2532</td>
+               <td valign="top">location country</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">location country</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">23</span><div class="term_detail">
+                     <div class="box_heading">location country</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/BirthCountry/Country/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/Country/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Code,
+                  								Country,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2533</td>
+               <td valign="top">location region</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">location region</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">21</span><div class="term_detail">
+                     <div class="box_heading">location region</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/OriginLocation/Location/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/OriginLocation/Location/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Location/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Region,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2534</td>
+               <td valign="top">original source</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">original source</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">original source</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SourceName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2535</td>
+               <td valign="top">project id</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">project id</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">project id</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">ID,
+                  								Id,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2536</td>
+               <td valign="top">project name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">project name</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">project name</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Name,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2537</td>
+               <td valign="top">project title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">project title</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">project title</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Project/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Title,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2538</td>
+               <td valign="top">publication date</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">publication date</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">publication date</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">PublicationYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2539</td>
+               <td valign="top">start year</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">start year</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">start year</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Duration/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">StartYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2544</td>
+               <td valign="top">resource name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">23</span><div class="term_detail">
+                     <div class="box_heading">resource name</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">27</span><div class="term_detail">
+                     <div class="box_heading">resource name</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">3</td>
+               <td width="40%">Code,
+                  								Name,
+                  								ResourceName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2545</td>
+               <td valign="top">resource title</td>
+               <td valign="top" align="right"><span class="term_detail_caller">23</span><div class="term_detail">
+                     <div class="box_heading">resource title</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                        <li>imdi-corpus</li>
+                        <li>imdi-profile-instance</li>
+                        <li>myBook</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">23</span><div class="term_detail">
+                     <div class="box_heading">resource title</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-corpus
+                           <ul>
+                              <li>imdi-corpus/Corpus/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/</li>
+                           </ul>
+                        </li>
+                        <li>myBook
+                           <ul>
+                              <li>myBook/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">3</td>
+               <td width="40%">BookTitle,
+                  								Title,
+                  								TitleOfBook,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2546</td>
+               <td valign="top">url</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">url</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">url</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/input/parameter/</li>
+                              <li>service/operation/input/parameter/technicalMetadata/contentEncoding/</li>
+                              <li>service/operation/output/parameter/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/contentEncoding/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">ResourceLink,
+                  								URL,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2547</td>
+               <td valign="top">version</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">version</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">version</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Version,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2548</td>
+               <td valign="top">anonymization flag</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">anonymization flag</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">10</span><div class="term_detail">
+                     <div class="box_heading">anonymization flag</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Anonymized,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2550</td>
+               <td valign="top">participant age</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant age</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant age</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Age,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2551</td>
+               <td valign="top">participant birthdate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant birthdate</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant birthdate</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">BirthDate,
+                  								BirthYear,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2552</td>
+               <td valign="top">participant code</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant code</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant code</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Code,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2553</td>
+               <td valign="top">participant dominant language</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant dominant language</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant dominant language</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">PrimaryLanguage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2554</td>
+               <td valign="top">participant education</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant education</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant education</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Education,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2555</td>
+               <td valign="top">participant ethnic group</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant ethnic group</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant ethnic group</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">EthnicGroup,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2556</td>
+               <td valign="top">participant full name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant full name</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant full name</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">FullName,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2557</td>
+               <td valign="top">participant name</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant name</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant name</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Name,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2558</td>
+               <td valign="top">participant profession</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant profession</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">participant profession</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Profession,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2559</td>
+               <td valign="top">participant role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant role</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">participant role</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Role,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2560</td>
+               <td valign="top">participant sex</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant sex</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">participant sex</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Sex,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2561</td>
+               <td valign="top">social family role</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">social family role</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">social family role</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SocialFamilyRole,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2562</td>
+               <td valign="top">annotation format</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">annotation format</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">annotation format</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/AnnotationFormat/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">AnnotationFormat,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2564</td>
+               <td valign="top">character encoding</td>
+               <td valign="top" align="right"><span class="term_detail_caller">6</span><div class="term_detail">
+                     <div class="box_heading">character encoding</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">character encoding</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">CharacterEncoding,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2570</td>
+               <td valign="top">media type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">media type</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">media type</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Type,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2571</td>
+               <td valign="top">mime type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">7</span><div class="term_detail">
+                     <div class="box_heading">mime type</div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>imdi-profile-instance</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">9</span><div class="term_detail">
+                     <div class="box_heading">mime type</div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/MimeType/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/TextTechnical/MimeType/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/operation/input/parameter/technicalMetadata/</li>
+                              <li>service/operation/output/parameter/technicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Format,
+                  								MimeType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2573</td>
+               <td valign="top">persistent identifier</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">persistent identifier</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                        <li>service</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">persistent identifier</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>service
+                           <ul>
+                              <li>service/</li>
+                              <li>service/operation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">ID,
+                  								PersistentIdentifier,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2574</td>
+               <td valign="top">quality</td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">quality</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">5</span><div class="term_detail">
+                     <div class="box_heading">quality</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Quality,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2577</td>
+               <td valign="top">sample rate</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">sample rate</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">sample rate</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SamplingFrequency,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2580</td>
+               <td valign="top">size</td>
+               <td valign="top" align="right"><span class="term_detail_caller">20</span><div class="term_detail">
+                     <div class="box_heading">size</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">42</span><div class="term_detail">
+                     <div class="box_heading">size</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Size/TotalSize/</li>
+                              <li>Bedevaartbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Size/TotalSize/</li>
+                              <li>Boedelbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Size/TotalSize/</li>
+                              <li>DBNL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Size/TotalSize/</li>
+                              <li>DIDDD/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Size/TotalSize/</li>
+                              <li>DSOL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Size/TotalSize/</li>
+                              <li>DynaSAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Size/TotalSize/</li>
+                              <li>Familienamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Size/TotalSize/</li>
+                              <li>GTRP/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Size/TotalSize/</li>
+                              <li>Liederenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Size/TotalSize/</li>
+                              <li>PLAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Size/TotalSize/</li>
+                              <li>Soundbites/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Size/TotalSize/</li>
+                              <li>VVB/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Size/TotalSize/</li>
+                              <li>Voornamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Number,
+                  								Size,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2583</td>
+               <td valign="top">size unit</td>
+               <td valign="top" align="right"><span class="term_detail_caller">19</span><div class="term_detail">
+                     <div class="box_heading">size unit</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>SessionProfile</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">41</span><div class="term_detail">
+                     <div class="box_heading">size unit</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Size/TotalSize/</li>
+                              <li>Bedevaartbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Size/TotalSize/</li>
+                              <li>Boedelbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Size/TotalSize/</li>
+                              <li>DBNL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Size/TotalSize/</li>
+                              <li>DIDDD/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Size/TotalSize/</li>
+                              <li>DSOL/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Size/TotalSize/</li>
+                              <li>DynaSAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Size/TotalSize/</li>
+                              <li>Familienamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Size/TotalSize/</li>
+                              <li>GTRP/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Size/TotalSize/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Size/TotalSize/</li>
+                              <li>Liederenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Size/TotalSize/</li>
+                              <li>PLAND/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SessionProfile/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Size/TotalSize/</li>
+                              <li>Soundbites/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/TotalSize/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/Size/SizePerLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Size/TotalSize/</li>
+                              <li>TextCorpusProfile/Corpus/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/WrittenResources/WrittenResource/TotalSize/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Size/TotalSize/</li>
+                              <li>VVB/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Size/TotalSize/</li>
+                              <li>Voornamenbank/Size/SizePerLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SizeUnit,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2584</td>
+               <td valign="top">validation</td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">validation</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading">validation</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Validation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2585</td>
+               <td valign="top">validation level</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">validation level</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">validation level</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Level,
+                  								ValidationLevel,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2586</td>
+               <td valign="top">validation mode</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">validation mode</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">validation mode</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Methodology,
+                  								ValidationMode,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2587</td>
+               <td valign="top">validation type</td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">validation type</div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading">validation type</div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Corpus/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Validation/</li>
+                           </ul>
+                        </li>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/Resources/WrittenResource/Validation/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">Type,
+                  								ValidationType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2591</td>
+               <td valign="top">unknown</td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">unknown</div>
+                     <ul>
+                        <li>imdi-profile-instance</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading">unknown</div>
+                     <ul>
+                        <li>imdi-profile-instance
+                           <ul>
+                              <li>Session/MDGroup/Content/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Subject,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2684</td>
+               <td valign="top">bit resolution</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">bit resolution</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">bit resolution</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">BitResolution,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2685</td>
+               <td valign="top">compression</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">compression</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">compression</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Compression,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2686</td>
+               <td valign="top">byte order</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">byte order</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">byte order</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">ByteOrder,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2690</td>
+               <td valign="top">duration of full database</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of full database</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of full database</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DurationOfFullDatabase,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2691</td>
+               <td valign="top">duration of effective speech</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of effective speech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">duration of effective speech</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DurationOfEffectiveSpeech,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2692</td>
+               <td valign="top">number of speakers</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">number of speakers</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">number of speakers</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">NumberOfSpeakers,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2693</td>
+               <td valign="top">recording platform hardware</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">recording platform hardware</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">recording platform hardware</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">RecordingPlatformHardware,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2694</td>
+               <td valign="top">recording platform software</td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading">recording platform software</div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading">recording platform software</div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">RecordingPlatformSoftware,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2696</td>
+               <td valign="top">recording environment</td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">recording environment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading">recording environment</div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">RecordingEnvironment,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2955</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                              <li>SessionProfile/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/Actors/Actor/ActorLanguages/ActorLanguage/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">2</td>
+               <td width="40%">HomeLanguage,
+                  								MotherTongue,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2956</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                        <li>dieter_testprofile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">18</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                        <li>dieter_testprofile
+                           <ul>
+                              <li>dieter_testprofile/GeneralInfo/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Owner,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2957</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile</li>
+                        <li>test-profile-book</li>
+                        <li>test-profile-book2</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book
+                           <ul>
+                              <li>test-profile-book/Authors/Author/</li>
+                           </ul>
+                        </li>
+                        <li>test-profile-book2
+                           <ul>
+                              <li>test-profile-book2/Authors/Author/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Pseudonym,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2960</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">2</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SpeakerDemographics,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2961</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>SessionProfile
+                           <ul>
+                              <li>SessionProfile/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SpeechCorpus/SpeechTechnicalMetadata/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/SESSION/SessionResources/MediaFile/SpeechTechnicalMetadata/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">NumberOfChannels,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2965</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Title,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2966</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">1</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Subtitle,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2967</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">DistributionMedium,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2969</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Access/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Access/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">CatalogueLink,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2978</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">51</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Person,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2979</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">51</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Organisation,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-2990</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile</li>
+                        <li>TextCorpusProfile</li>
+                        <li>TextProfile</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Source/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/TextCorpus/</li>
+                           </ul>
+                        </li>
+                        <li>TextProfile
+                           <ul>
+                              <li>TextProfile/TEXT/Source/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SourceType,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3643</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/InterviewType/</li>
+                              <li>DIDDD/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/InterviewType/</li>
+                              <li>DynaSAND/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/InterviewType/</li>
+                              <li>GTRP/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/InterviewType/</li>
+                              <li>Soundbites/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/DataCollectionMethod/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Type,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3646</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/Head_category_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Head_category_field,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3647</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/Sub_category_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Sub_category_field,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3648</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/IVB_ethnological_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">IVB_ethnological_field,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3649</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/FieldOfResearch/OLAC_linguistic_field/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">OLAC_linguistic_field,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3651</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD_sub_location</li>
+                        <li>DynaSAND_sub_location</li>
+                        <li>GTRP_sub_location</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD_sub_location
+                           <ul>
+                              <li>DIDDD_sub_location/KloekeGeoreference/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND_sub_location
+                           <ul>
+                              <li>DynaSAND_sub_location/KloekeGeoreference/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP_sub_location
+                           <ul>
+                              <li>GTRP_sub_location/KloekeGeoreference/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">KloekeGeoreference,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3652</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD</li>
+                        <li>DynaSAND</li>
+                        <li>GTRP</li>
+                        <li>Soundbites</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ParticipantCharacteristics/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">ParticipantSelectionCriterium,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3654</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD</li>
+                        <li>DynaSAND</li>
+                        <li>GTRP</li>
+                        <li>Soundbites</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Start_Range,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3655</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD</li>
+                        <li>DynaSAND</li>
+                        <li>GTRP</li>
+                        <li>Soundbites</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">4</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ParticipantCharacteristics/ParticipantAgeRange/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">End_Range,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3656</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD_sub_location</li>
+                        <li>DynaSAND_sub_location</li>
+                        <li>GTRP_sub_location</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">3</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>DIDDD_sub_location
+                           <ul>
+                              <li>DIDDD_sub_location/Province/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND_sub_location
+                           <ul>
+                              <li>DynaSAND_sub_location/Province/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP_sub_location
+                           <ul>
+                              <li>GTRP_sub_location/Province/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Province,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3657</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/SocialDimensions/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">SocialVariable,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3664</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/TimeDimension/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Time_coverage,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-3667</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">13</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/ResourceProfile/SpaceDimension/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Topicality,
+                  								
+               </td>
+            </tr>
+            <tr>
+               <td valign="top">isocat:DC-63</td>
+               <td valign="top"></td>
+               <td valign="top" align="right"><span class="term_detail_caller">17</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank</li>
+                        <li>Boedelbank</li>
+                        <li>DBNL</li>
+                        <li>DIDDD</li>
+                        <li>DSOL</li>
+                        <li>DynaSAND</li>
+                        <li>Familienamenbank</li>
+                        <li>GTRP</li>
+                        <li>LexicalResourceProfile</li>
+                        <li>Liederenbank</li>
+                        <li>PLAND</li>
+                        <li>Soundbites</li>
+                        <li>SpeechCorpusProfile</li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker</li>
+                        <li>TextCorpusProfile</li>
+                        <li>VVB</li>
+                        <li>Voornamenbank</li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right"><span class="term_detail_caller">68</span><div class="term_detail">
+                     <div class="box_heading"></div>
+                     <ul>
+                        <li>Bedevaartbank
+                           <ul>
+                              <li>Bedevaartbank/Collection/Project/</li>
+                              <li>Bedevaartbank/Collection/Project/Contact/</li>
+                              <li>Bedevaartbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Bedevaartbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Boedelbank
+                           <ul>
+                              <li>Boedelbank/Collection/Project/</li>
+                              <li>Boedelbank/Collection/Project/Contact/</li>
+                              <li>Boedelbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Boedelbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DBNL
+                           <ul>
+                              <li>DBNL/Collection/Project/</li>
+                              <li>DBNL/Collection/Project/Contact/</li>
+                              <li>DBNL/Collection/Creators/Creator/Contact/</li>
+                              <li>DBNL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DIDDD
+                           <ul>
+                              <li>DIDDD/Collection/Project/</li>
+                              <li>DIDDD/Collection/Project/Contact/</li>
+                              <li>DIDDD/Collection/Creators/Creator/Contact/</li>
+                              <li>DIDDD/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DSOL
+                           <ul>
+                              <li>DSOL/Collection/Project/</li>
+                              <li>DSOL/Collection/Project/Contact/</li>
+                              <li>DSOL/Collection/Creators/Creator/Contact/</li>
+                              <li>DSOL/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>DynaSAND
+                           <ul>
+                              <li>DynaSAND/Collection/Project/</li>
+                              <li>DynaSAND/Collection/Project/Contact/</li>
+                              <li>DynaSAND/Collection/Creators/Creator/Contact/</li>
+                              <li>DynaSAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Familienamenbank
+                           <ul>
+                              <li>Familienamenbank/Collection/Project/</li>
+                              <li>Familienamenbank/Collection/Project/Contact/</li>
+                              <li>Familienamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Familienamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>GTRP
+                           <ul>
+                              <li>GTRP/Collection/Project/</li>
+                              <li>GTRP/Collection/Project/Contact/</li>
+                              <li>GTRP/Collection/Creators/Creator/Contact/</li>
+                              <li>GTRP/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>LexicalResourceProfile
+                           <ul>
+                              <li>LexicalResourceProfile/LexicalResource/Project/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Project/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Creators/Creator/Contact/</li>
+                              <li>LexicalResourceProfile/LexicalResource/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Liederenbank
+                           <ul>
+                              <li>Liederenbank/Collection/Project/</li>
+                              <li>Liederenbank/Collection/Project/Contact/</li>
+                              <li>Liederenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Liederenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>PLAND
+                           <ul>
+                              <li>PLAND/Collection/Project/</li>
+                              <li>PLAND/Collection/Project/Contact/</li>
+                              <li>PLAND/Collection/Creators/Creator/Contact/</li>
+                              <li>PLAND/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Soundbites
+                           <ul>
+                              <li>Soundbites/Collection/Project/</li>
+                              <li>Soundbites/Collection/Project/Contact/</li>
+                              <li>Soundbites/Collection/Creators/Creator/Contact/</li>
+                              <li>Soundbites/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile
+                           <ul>
+                              <li>SpeechCorpusProfile/Collection/Project/</li>
+                              <li>SpeechCorpusProfile/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>SpeechCorpusProfile_Autonomata_speaker
+                           <ul>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Project/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Creators/Creator/Contact/</li>
+                              <li>SpeechCorpusProfile_Autonomata_speaker/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>TextCorpusProfile
+                           <ul>
+                              <li>TextCorpusProfile/Collection/Project/</li>
+                              <li>TextCorpusProfile/Collection/Project/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Creators/Creator/Contact/</li>
+                              <li>TextCorpusProfile/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>VVB
+                           <ul>
+                              <li>VVB/Collection/Project/</li>
+                              <li>VVB/Collection/Project/Contact/</li>
+                              <li>VVB/Collection/Creators/Creator/Contact/</li>
+                              <li>VVB/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                        <li>Voornamenbank
+                           <ul>
+                              <li>Voornamenbank/Collection/Project/</li>
+                              <li>Voornamenbank/Collection/Project/Contact/</li>
+                              <li>Voornamenbank/Collection/Creators/Creator/Contact/</li>
+                              <li>Voornamenbank/Collection/Access/Contact/</li>
+                           </ul>
+                        </li>
+                     </ul>
+                  </div>
+               </td>
+               <td valign="top" align="right">1</td>
+               <td width="40%">Website,
+                  								
+               </td>
+            </tr>
+         </tbody>
+      </table>
+   </body>
+</html>
Index: MDService2/branches/MDService_simple3/WebContent/static/queries.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/queries.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/queries.xml	(revision 1516)
@@ -0,0 +1,90 @@
+<info xml:lang="en" >
+	<div class="title">Example metadata queries</div>
+	<div>
+		<dl>	
+			<dt >simple term</dt>
+			<dd><p>just one word like:</p>
+				<ul>		
+					<li><a class="query" href="/MDService2/?squery=system">system</a></li>
+					<li><a class="query" href="/MDService2/?squery=-year-olds">-year-olds</a> - a bug there (don't use '-'!)</li>
+					<li><a class="query" href="/MDService2/?squery=acquisition">acquisition</a></li>			
+				</ul>
+			</dd>
+			<dt>any of multiple terms (OR)</dt>
+			<dd>
+				<ul>
+					<li><a class="query" href="/MDService2/?squery=/?squery=child%20%7C%20acquisition">child | acquisition</a></li>
+				</ul>
+			</dd>
+			<dt >all of multiple terms (AND)</dt>
+			<dd>
+				<ul>
+					<li><a class="query" href="/MDService2/?squery=child%20acquisition">child acquisition</a></li>
+					<li><a class="query" href="/MDService2/?squery=longitudinal%20study">longitudinal study</a></li>			
+				</ul>
+			</dd>
+			<dt >Phrase</dt>	
+			<dd>a sequence of terms
+				<ul>
+					<li><a class="query" href="/MDService2/?squery=%22longitudinal%20study%22">"longitudinal study"</a></li>
+				</ul>
+			</dd> 
+			<dt >Bookmarks</dt>	
+			<dd>search/remember individual records (by handle/identifier)
+				<ul>			
+					<li><a class="bookmark" href="/MDService2/record/htmlpage/clarin-at:aac-test-corpus:C4:158">clarin-at:aac-test-corpus:C4:158</a></li>
+					<li><a class="bookmark" href="/MDService2/record/htmlpage/clarin%252Eeu%3Alrt%3A1001">GENOMA</a></li>
+				</ul>
+			</dd>
+			<dt >CQL - search clauses</dt>	
+			<dd><code>index relation term</code>
+				<ul>
+					<li><a class="query" href="/MDService2/?q=author any Adler">author any Adler</a></li>
+					<li><a class="query" href="/MDService2/?q=title contains system">title contains system</a></li>
+					 
+				</ul>
+					
+				<code>phrase in index </code>
+				<ul>
+					<li><a class="query" href='/MDService2/?q=Description contains "spoken language"'>Description contains "spoken language"</a></li>
+				</ul>
+			</dd>	
+			<dt >CQL - boolean</dt>	
+			<dd>combine search clauses with boolean operators: AND, OR, (AND NOT)
+				<ul>
+					<li><a class="query" href="/MDService2/?q=(title contains a)  and ( tei%3Aimprint.date &gt; 1910) and (tei%3Aimprint.date &lt; 1920)">title contains a and imprint.date between 1910 and 1920</a></li>
+				<li><a class="query" href="/MDService2/?q=( title any system ) and  ( description contains ethnologue )" > ( title any system ) and  ( description contains ethnologue )</a></li>
+				<li><a class="query" href="/MDService2/?q=%20%28%20%20%28%20title%20any%20language%20%29%20%20%29%20%20and%20%20%28%20%20%28%20identifier%20contains%20rosettaproject%20%29%20%20or%20%20%28%20publisher%20contains%20%22SIL%20International%22%20%29%20%20%29%20" >title any language and (identifier contains rosettaproject or publisher contains "SIL International")</a></li>
+				 			
+				</ul>			
+			</dd>
+			<dt >Combine simple query and search clauses</dt>
+			<dd>
+				<ul>
+				<li><a class="query" href="/MDService2/?q=( title any system )&amp;squery=university">university and (title any system)</a></li>
+				</ul>
+			</dd>
+			
+				<dt >Restriction by Collections</dt>
+			<dd> Either all resources of a given collection, or restrict the search to selected collection(s) (not working at the moment)
+				<ul>
+				<li><a class="query" href="/MDService2/?q=&amp;squery=&amp;collection=clarin-at:aac-test-corpus">aac-test-corpus</a></li>
+				</ul>
+			</dd>
+				<dt >Search in a profile</dt>
+			<dd>show all records of given profile, or
+				<ul> 	
+				<li><a class="query" href="/MDService2/?q= ( LrtInventoryResource contains * )">LrtInventoryResource</a></li>
+				<li><a class="query" href="/MDService2/?q= ( LrtInventoryResource contains system )">LrtInventoryResource contains system</a></li>
+				</ul>
+			</dd>
+				<dt >Search via Data categories (Semantic search)</dt>
+			<dd>search over elements linked to the same Data cagetory, irrespectively of the containing profile  
+				<ul> 	
+				<li><a class="query" href="MDService2/?q=%20%28%20%20%28%20relcat%3Adescription%20contains%20*%20%29%20%20%29%20">relcat:description</a></li>
+				<li><a class="query" href="/MDService2/?q=%20%28%20%20%28%20isocat%3Acreation_date%20contains%20191%20%29%20%20%29%20">isocat:creationDate contains 191</a></li>
+				</ul>
+			</dd>
+		</dl>
+	</div>
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/queries2.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/queries2.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/queries2.xml	(revision 1516)
@@ -0,0 +1,96 @@
+<info xml:lang="en" >
+	<div class="title">Example metadata queries</div>
+	<div>
+		<dl>	
+			<dt >simple term</dt>
+			<dd><p>just one word like:</p>
+				<ul>		
+					<li><a class="query count" href="?squery=system">system</a></li>					
+					<li><a class="query count" href="?squery=-year-olds">-year-olds</a> - a bug solved (parser doesn't like '-' at the beginning!)</li>
+					<li><a class="query count" href="?squery=acquisition">acquisition</a></li>												
+				</ul>
+			</dd>
+			
+			
+			<dt >all of multiple terms (AND)</dt>
+			<dd>
+				<ul>
+					<li><a class="query count" href="?squery=child%20acquisition">child acquisition</a></li>
+					<li><a class="query count" href="?squery=longitudinal%20study">longitudinal study</a></li>			
+				</ul>
+			</dd>
+			<dt >Phrase</dt>	
+			<dd>a sequence of terms
+				<ul>
+					<li><a class="query count" href="?squery=%22longitudinal%20study%22">"longitudinal study"</a></li>
+				</ul>
+			</dd>
+			
+			<dt >Special stuff</dt>	
+			<dd>
+				<ul>
+					<li><a class="query" href="?q=clarin.eu:ws-registry&amp;repository=localhost-mirror">WS registry</a></li>
+				</ul>
+			</dd>
+			 
+			<!-- 
+					<dt >Bookmarks</dt>	
+			<dd>search/remember individual records (by handle/identifier)
+				<ul>			
+					<li><a class="bookmark" href="/MDService2/record/htmlpage/clarin-at:aac-test-corpus:C4:158">clarin-at:aac-test-corpus:C4:158</a></li>
+					<li><a class="bookmark" href="/MDService2/record/htmlpage/clarin%252Eeu%3Alrt%3A1001">GENOMA</a></li>
+				</ul>
+			</dd>
+			<dt >CQL - search clauses</dt>	
+			<dd><code>index relation term</code>
+				<ul>
+					<li><a class="query" href="/MDService2/?q=author any Adler">author any Adler</a></li>
+					<li><a class="query" href="/MDService2/?q=title contains system">title contains system</a></li>
+					 
+				</ul>
+					
+				<code>phrase in index </code>
+				<ul>
+					<li><a class="query" href='/MDService2/?q=Description contains "spoken language"'>Description contains "spoken language"</a></li>
+				</ul>
+			</dd>	
+			<dt >CQL - boolean</dt>	
+			<dd>combine search clauses with boolean operators: AND, OR, (AND NOT)
+				<ul>
+					<li><a class="query" href="/MDService2/?q=(title contains a)  and ( tei%3Aimprint.date &gt; 1910) and (tei%3Aimprint.date &lt; 1920)">title contains a and imprint.date between 1910 and 1920</a></li>
+				<li><a class="query" href="/MDService2/?q=( title any system ) and  ( description contains ethnologue )" > ( title any system ) and  ( description contains ethnologue )</a></li>
+				<li><a class="query" href="/MDService2/?q=%20%28%20%20%28%20title%20any%20language%20%29%20%20%29%20%20and%20%20%28%20%20%28%20identifier%20contains%20rosettaproject%20%29%20%20or%20%20%28%20publisher%20contains%20%22SIL%20International%22%20%29%20%20%29%20" >title any language and (identifier contains rosettaproject or publisher contains "SIL International")</a></li>
+				 			
+				</ul>			
+			</dd>
+			<dt >Combine simple query and search clauses</dt>
+			<dd>
+				<ul>
+				<li><a class="query" href="/MDService2/?q=( title any system )&amp;squery=university">university and (title any system)</a></li>
+				</ul>
+			</dd>
+			
+				<dt >Restriction by Collections</dt>
+			<dd> Either all resources of a given collection, or restrict the search to selected collection(s) (not working at the moment)
+				<ul>
+				<li><a class="query" href="/MDService2/?q=&amp;squery=&amp;collection=clarin-at:aac-test-corpus">aac-test-corpus</a></li>
+				</ul>
+			</dd>
+				<dt >Search in a profile</dt>
+			<dd>show all records of given profile, or
+				<ul> 	
+				<li><a class="query" href="/MDService2/?q= ( LrtInventoryResource contains * )">LrtInventoryResource</a></li>
+				<li><a class="query" href="/MDService2/?q= ( LrtInventoryResource contains system )">LrtInventoryResource contains system</a></li>
+				</ul>
+			</dd>
+				<dt >Search via Data categories (Semantic search)</dt>
+			<dd>search over elements linked to the same Data cagetory, irrespectively of the containing profile  
+				<ul> 	
+				<li><a class="query" href="MDService2/?q=%20%28%20%20%28%20relcat%3Adescription%20contains%20*%20%29%20%20%29%20">relcat:description</a></li>
+				<li><a class="query" href="/MDService2/?q=%20%28%20%20%28%20isocat%3Acreation_date%20contains%20191%20%29%20%20%29%20">isocat:creationDate contains 191</a></li>
+				</ul>
+			</dd>
+			-->
+		</dl>
+	</div>  
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/test.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/test.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/test.xml	(revision 1516)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<info xml:lang="en" >
+	<div class="title">Test suite</div>
+	<div>
+		<!-- <a class="query" href="/MDService2/recordset/htmltable/?squery=syntax&amp;maximumItems=10">system</a>  -->
+		<a class="query" href="/collections/htmllist?repository=clarin.at-mirror&amp;collection=&amp;maxdepth=1&amp;cache=skip">collections clarin.at</a> 
+		<a class="query" href="/collections/htmllist?repository=localhost-mirror&amp;collection=&amp;maxdepth=1&amp;cache=skip">collection localhost</a>
+		<a class="query" href="/collections/htmllist?repository=gu.se-main&amp;collection=&amp;maxdepth=1&amp;cache=skip">collection gu.se</a>
+		<a class="query" href="/collections/htmllist?repository=clarin.at-mirror&amp;collection=&amp;maxdepth=2&amp;cache=skip">collections clarin.at</a>
+		<a class="query" href="/terms/htmllist/?repository=clarin.at-mirror&amp;q=all">terms all - clarin.at</a>
+		<a class="query" href="/terms/htmllist/?repository=clarin.at-mirror&amp;q=teiHeader">terms teiHeader- clarin.at</a>
+		<a class="count" href="/terms/xml/?repository=localhost-mirror&amp;q=all">terms localhost</a>
+		<a class="queryxml" href="/recordset/xml/?squery=syntax">squery=syntax</a>
+		<!-- <a class="query" href="/terms/htmldetail/?repository=localhost-mirror&amp;q=all">terms localhost</a>  -->
+				
+	</div>
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/test2.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/test2.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/test2.xml	(revision 1516)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<info xml:lang="en" >
+	<div class="title">Test suite</div>
+	<div>
+		<table>
+			<tr>
+			<td valign="top">
+				<a class="request" href="/collections/htmllist?repository=clarin.at-mirror&amp;collection=&amp;maxdepth=1&amp;cache=skip">collections clarin.at</a>
+			</td>
+			<td valign="top">
+				<a class="request" href="/collections/htmllist?repository=localhost-mirror&amp;collection=&amp;maxdepth=1&amp;cache=skip">collection localhost</a>
+			</td>
+			<td valign="top">
+			<a class="request" href="/collections/htmllist?repository=gu.se-main&amp;collection=&amp;maxdepth=1&amp;cache=skip">collection gu.se</a>
+			</td>	
+			</tr>
+		</table>
+		<!-- <a class="query" href="/MDService2/recordset/htmltable/?squery=syntax&amp;maximumItems=10">system</a>  -->
+		 <!-- 
+		<a class="request" href="/collections/htmllist?repository=clarin.at-mirror&amp;collection=&amp;maxdepth=2&amp;cache=skip">collections clarin.at</a>
+		<a class="request" href="/terms/htmllist/?repository=clarin.at-mirror&amp;q=all">terms all - clarin.at</a>
+		<a class="request" href="/terms/htmllist/?repository=clarin.at-mirror&amp;q=teiHeader">terms teiHeader- clarin.at</a>
+		 -->
+		<a class="request count" href="/terms/xml/?repository=localhost-mirror&amp;q=all">terms localhost</a>
+		<a class="query count" href="?squery=syntax">squery=syntax</a>
+		<!-- <a class="query" href="/terms/htmldetail/?repository=localhost-mirror&amp;q=all">terms localhost</a>  -->
+				
+	</div>
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/static/welcome.xml
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/static/welcome.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/static/welcome.xml	(revision 1516)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<info xml:lang="en" >
+	<div id="welcome">
+		<h2>Welcome to CMDRSB - the application trinity serving CLARIN Metadata</h2>
+		<dl>
+			<dt><a href="queries" >Example queries</a></dt>
+				<dd>overview of possible query-types</dd>
+			<dt><a href="data" >Data Overview</a></dt>
+				<dd>Information about the datasets and used profiles in the repository.</dd>
+			<dt><a href="info" >About</a></dt>
+				<dd>explanatory, introductory docs</dd>
+		</dl>
+		<div>
+			<p>This is a 2011-05 relaunch after substantial rework of the user interface,  
+			based on feedback at CMDI-Workshop in Nijmegen 2011-01-17.</p>
+			<p>In the next phase we will concentrate on data quality and quantity.
+			That means continuous integration of new datasets (provided for harvesting by the <a href="http://www.clarin.eu/centres" >CLARIN centres</a>)
+			and work on data preprocessing and mapping to DataCategories 
+			(in cooperation and coordination with <a href="http://www.clarin.eu/vlo/" target="_blank">VLO</a>).</p>
+			
+			<h3>Word of warning:</h3>
+			<p>Although CMDRSB already provides a lot of information and functionality, 
+			it is still demo-quality and cannot yet be seen and used as reliable service.
+			Lot of work is still needed both on the data quality and user interface.</p>			
+			<p>Nevertheless we invite you to try it out and look forward to any critical remarks at:  <a href="mailto:cmdi@clarin.eu">cmdi@clarin.eu</a></p> 
+		</div>
+		
+	</div>
+</info>
Index: MDService2/branches/MDService_simple3/WebContent/style/cmds-ui.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/style/cmds-ui.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/style/cmds-ui.css	(revision 1516)
@@ -0,0 +1,266 @@
+
+/*********************/
+/* basic page layout */ 
+#header { height: 70px; }
+#top-menu {position: absolute; right: 20px; top: 10px; }
+#left-menu {float: left; width:250px; height:500px; overflow:auto;}
+#main {margin-left:260px; /* max-width: .. */}
+#query-input { padding: 6px;  /* max-width: 600px; */ }
+#repositories {margin: 6px 0px; }
+#notify {display:none; /* max-width: 400px; position: relative; overflow: auto; height: 40px; */}
+#user {text-align: right;}
+#welcome {max-width: 600px; padding: 10px;}
+
+/* ******************** */
+/* look and feel, fonts */
+body, table { font-size: 12px; font-family: Helvetica,Tahoma,Arial,Verdana,sans-serif;}
+#site-name { font-family: Helvetica, Tahoma, Verdana, sans-serif; font-size: 24px; color: #014172; /* #040288 #666699; */ display:inline; padding-left: 20px; position:absolute; top:24px}
+#welcome h3 { color: #014172;}
+
+.note { font-size: 0.9em; color: #9999aa; }
+.data {display: none; }
+.hilight { font-size: 1.1em; font-weight: bold}
+.error { color: #660000; border: 1px solid red; background-color: #ffcccc; }
+/* this is temporary for MdREcordView-Titlebar; -> move to ui-box-header */ 
+/* obsolete .box_heading { background-color: #014172;  color: #FAFAFF; font-weight: bold; padding: 2px; } 
+h3 { font-weight: bold; font-size:1.2em; margin:4px; padding: 4px;} */
+
+/* ************* */
+/* html-elements */
+
+a, .ui-widget-content a { text-decoration: none; color:#AC3333; }
+a.external {border-bottom: 1px solid #A6C9E2; }   
+
+label, .label, .cmds-elem-prop .label { font-size: 0.9em; color: #014172; font-style: italic; }
+ul { padding-left: 4px; list-style-type: none; margin: 0;}
+li { background: url('imgs/icon-dot-4.png') no-repeat; background-position: 0px 7px; padding-left: 8px;  } 
+a img { border:0;	}
+tr.detailselection {background-color: #E6E9F0;}
+
+.treeview,
+.treeview ul {
+	list-style-image:none;
+	list-style-position:outside;
+	list-style-type:none;
+	margin:0;
+	padding:0;
+	background-color: inherit;
+}
+
+table.show { border: 1px solid #A6C9E2; }
+table.show, table.show table, table.show td {	border: 1px solid #A6C9E2;	border-collapse: collapse; vertical-align: top; }
+table.show th { font-style: italic; font-weight: normal; font-size: 0.9em; padding: 0px; }
+/* terms-tree table */
+.terms-tree .treecol {padding-left: 1.5em;}
+
+	/* .terms-tree .number { text-align: right; }
+		.terms-tree td { border-bottom: 1px solid #9999aa; padding: 1px 4px;}		
+		table.terms-tree  thead {background: #ccccff; font-size:0.9em; }
+		table.terms-tree  thead tr th { border:1px solid #9999aa; font-weight:normal; text-align:left; padding: 1px 4px;}
+*/
+
+
+/* jquery-ui overlay */
+
+.ui-accordion .ui-accordion-header { 	padding-left: 12px; }
+.ui-accordion .ui-accordion-header .ui-icon {	left: -0.2em; }
+
+.ui-accordion .ui-accordion-content { 	padding: 4px 8px; }
+
+.ui-widget-header { padding-left: 6px; }
+.ui-widget-content { padding: 6px;	}
+.ui-dialog {padding: 0px;}
+.ui-dialog .ui-dialog-titlebar { padding: 0 0 0 6px; }
+.cmds-ui-block { margin: 2px; text-align: left; overflow: auto;}
+
+.cmds-elem-plus .detail,
+.ui-context-dialog { display:none; overflow: auto; position:absolute;  border 1px solid #A6C9E2; background-color: #fafaff;}/* z-index:1; }*/
+/* .cmds-elem-plus .detail { display: none; border: 1px solid #A6C9E2;} */
+
+.cmds-elem-prop {}
+
+.cmds-elem-prop .label { }
+.cmds-elem-prop .value { }
+
+
+.value-text { }
+.value-unspecified {}
+.value-empty {}
+.number { text-align: right;}
+
+.cmds-xmlelem {padding:2px; border-top: 1px dashed #A6C9E2; }
+.cmds-xmlelem.has-children { border: 1px solid #A6C9E2; margin: 2px;}
+.value-text .value { margin-left: 20%; display:block; }
+.value-text .label { float:left; }
+.cmds-xmlelem .attributes .label {}
+.cmds-xmlelem .attributes .value {}
+
+
+
+input, h.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget area, .ui-widget button
+	{ border: 1px solid #A6C9E2; margin: 1px; } 
+
+/*********************************** */
+/* input ui-elements - positioning */
+
+.cmds-ui-elem-stretch {width: 100%;}
+
+
+/* form#searchretrieve { margin-top: 12px;}  */
+/* hack for IE */
+.wwFormTable {width: 100%; }
+#input-simplequery { width: 85%; margin: 12px 0px 6px 0px; font-size: 1.2em;}
+#submit-query { font-size: 1.2em; font-weight: bold;}
+#searchclauselist {margin: 0px;}
+.searchclause {  }
+.and_level {border-top: 1px solid #9999cc; margin: 2px 0px;}
+.or_level {border: none ; }
+
+.sc-wrapper { margin: 1px 0px; }
+.index-input { width:38%;  }
+.rel_input { width:8%;  }
+.value_input { width:30%; }
+.sc_cmds { }
+.sc_id {display:none;}
+
+.result-header { float: right; }
+.cmds-navi-header { float:right;}
+/* hack, for weird behaviour, the (appearingly) same rules for result-header.paging-input and cmds-navi-header.paging-input
+different render (cmds-navi-header.paging-input too small) */
+.cmds-navi-header .paging-input { height: 1.2em;}
+
+.paging-input { width: 3em; text-align: right; height: 1em;}
+
+.query {margin-right: 4px;}
+ 
+ .sc-wrapper .index-context { display: none; border: 1px solid #A6C9E2;}
+
+.columns-wrapper { right:0px;}
+.columns-selected { }
+
+/* documentation */
+.title, h1, h2, h3 { color: #014172;}
+h1 {font-size: 1.6em; margin: 30px 0 10px 30px;}
+h2 {font-size: 1.4em; margin: 1em 0 0.4em 0;}
+h3 {font-size: 1.2em; margin: 0.8em 0 0.4em 0;}	 
+.title {font-size: 1.2 em; font-weight: bold; margin: 0.4em 0 0 0.2em;}
+dt { padding: 1em 0 0.2em 1.5em; font-weight: bold;}
+dd { padding-left: 2.5em; display:block; -moz-margin-start: 0px;}
+.info {max-width: 600px; margin:30px;}
+.info p { margin: 0.4em 0; }
+.info div { padding: 0.4em 0;}
+.info li { padding: 0.2em 0 0.2em 8px;}  
+
+.info div.example {border: 1px dashed #014172; background-color: #fafaff; font-family: "Courier New", monospaced; margin: 0.8em 0; padding: 4px; line-height: 1.2em}
+
+/* ************* */
+/* tooltip */
+#tt {
+ position:absolute;
+ display:block;
+ /*padding:2px 12px 3px 7px;*/
+ margin-left:5px;
+ background:#A6C9E2;
+ color:#000;
+}
+
+/* command icons */
+
+.cmd {
+	display: inline-block;
+	width: 12px;
+	height: 12px;	
+	background: no-repeat center center;
+	margin: 0px 1px;
+	position: relative;
+	top: 2px;
+	border: 1px solid #fafaff;
+}
+
+a.cmd { width: auto; height:auto; top: 0px; }
+
+.cmd:hover { border: 1px solid #A6C9E2;	}
+
+#submit-query { background: url("imgs/cdb-icon-load.png") no-repeat 2px center #D0E5F5; padding-left: 14px; color:#014172; }
+
+.cmd_add { background-image: url("imgs/cdb-icon-add.png");}
+.cmd_add_and { background-image: url("imgs/icon_add_and.png");}
+.cmd_add_or { background-image: url("imgs/icon_add_or.png");}
+.cmd_close { background-image: url("imgs/cdb-icon-del.png");}
+.cmd_columns { background-image: url("imgs/cdb-icon-columns.png");}
+.cmd_del { 	background-image: url("imgs/cdb-icon-del.png");}
+.cmd_detail { background-image: url("imgs/cdb-icon-detail.png");}
+.cmd_down {	background-image: url("imgs/cdb-icon-down.png"); }
+.cmd_filter { background-image: url("imgs/cdb-icon-filter.png"); }
+.cmd_get { background-image: url("imgs/icon_get.gif");}
+.cmd_info { background-image: url("imgs/cdb-icon-info.png");}
+.cmd_query {	background-image: url("imgs/cdb-icon-load.png");}
+.cmd_load {	background-image: url("imgs/cdb-icon-load.png");}
+.cmd_publish { background-image: url("imgs/cdb-icon-publish.png");}
+.cmd_reload {	background-image: url("imgs/cdb-icon-load.png");}
+.cmd_resubmit {	background-image: url("imgs/cdb-icon-.png");}
+.cmd_save { background-image: url("imgs/cdb-icon-save.png");}
+.cmd_savenew { background-image: url("imgs/cdb-icon-savenew.png");}
+.cmd_sc_delete { background-image: url("imgs/cdb-icon-del.png");}
+.cmd_up { background-image: url("imgs/cdb-icon-up.png");}
+.cmd_prev { background-image: url("imgs/cdb-icon-prev.png");}
+.cmd_next { background-image: url("imgs/cdb-icon-next.png");}
+
+
+@media print {
+	ul { list-style-type: disc;	} 
+}
+
+/* ui layout */
+
+	.base-west ,
+	.base-east ,
+	.base-center ,
+	.base_center_p-north ,
+	.base_center_p-center  {
+		/*background-color: #EEE;*/
+		border:			0; /* cosmetic */
+		padding:		0; 
+		/*overflow:		hidden;*/
+	}
+	
+	
+ 
+	/*
+	 
+	customize borders on panes/resizers to make pretty
+	 */
+	.ui-layout-pane-west		{ border-right:		0; } 
+	.ui-layout-resizer-west		{ border-left:		1px solid #BBB; }
+	.ui-layout-pane-east		{ border-left:		0; } 
+	.ui-layout-resizer-east		{ border-right:		1px solid #BBB; }
+	.ui-layout-pane-north		{ border-bottom:	0; }
+	.ui-layout-resizer-north	{ border-top:		1px solid #BBB; }
+	.ui-layout-pane-south		{ border-top:		0; }
+	.ui-layout-resizer-south	{ border-bottom: 	1px solid #BBB; }
+	/*
+	 
+	add borders to resizers when pane is 'closed'
+	 
+ 
+	 
+.ui-layout-resizer-closed	{ border:			1px solid #BBB; }
+	 */
+	/* 
+	 
+	show both borders when the resizer is 'dragging' 
+	 */
+	.ui-layout-resizer-west-dragging ,
+	.ui-layout-resizer-east-dragging {
+		border-left:		1px solid #BBB;
+		border-right:		1px solid #BBB;
+	}
+	.ui-layout-resizer-north-dragging ,
+	.ui-layout-resizer-south-dragging {
+		border-top:		1px solid #BBB;
+		border-bottom:	1px solid #BBB;
+	}
+  
+
+
+
Index: MDService2/branches/MDService_simple3/WebContent/style/jquery/clarindotblue/jquery-ui-1.8.5.custom.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/style/jquery/clarindotblue/jquery-ui-1.8.5.custom.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/style/jquery/clarindotblue/jquery-ui-1.8.5.custom.css	(revision 1516)
@@ -0,0 +1,572 @@
+/*
+ * jQuery UI CSS Framework @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ */
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-hidden { display: none; }
+.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.ui-helper-clearfix { display: inline-block; }
+/* required comment for clearfix to work in Opera \*/
+* html .ui-helper-clearfix { height:1%; }
+.ui-helper-clearfix { display:block; }
+/* end clearfix */
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+
+
+/*
+ * jQuery UI CSS Framework @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ *
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Helvetica,Tahoma,Arial,Verdana,sans-serif&fwDefault=normal&fsDefault=1em&cornerRadius=3px&bgColorHeader=014172&bgTextureHeader=04_highlight_hard.png&bgImgOpacityHeader=40&borderColorHeader=4297d7&fcHeader=fafaff&iconColorHeader=d8e7f3&bgColorContent=fafaff&bgTextureContent=01_flat.png&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=000033&iconColorContent=469bdd&bgColorDefault=d0e5f5&bgTextureDefault=02_glass.png&bgImgOpacityDefault=85&borderColorDefault=a6c9e2&fcDefault=014172&iconColorDefault=014172&bgColorHover=3372a3&bgTextureHover=04_highlight_hard.png&bgImgOpacityHover=50&borderColorHover=a6c9e2&fcHover=fafaff&iconColorHover=fafaff&bgColorActive=3372a3&bgTextureActive=06_inset_hard.png&bgImgOpacityActive=50&borderColorActive=a6c9e2&fcActive=fafaff&iconColorActive=fafaff&bgColorHighlight=fbec88&bgTextureHighlight=01_flat.png&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=3372a3&bgTextureOverlay=15_carbon_fiber.png&bgImgOpacityOverlay=30&opacityOverlay=70&bgColorShadow=014172&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=70&thicknessShadow=1px&offsetTopShadow=5px&offsetLeftShadow=5px&cornerRadiusShadow=3px
+ */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget { font-family: Helvetica,Tahoma,Arial,Verdana,sans-serif; font-size: 1em; }
+.ui-widget .ui-widget { font-size: 1em; }
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Helvetica,Tahoma,Arial,Verdana,sans-serif; font-size: 1em; }
+.ui-widget-content { border: 1px solid #a6c9e2; background: #fafaff url(images/ui-bg_flat_100_fafaff_40x100.png) 50% 50% repeat-x; color: #000033; }
+.ui-widget-content a { color: #000033; }
+.ui-widget-header { border: 1px solid #4297d7; background: #014172 url(images/ui-bg_highlight-hard_40_014172_1x100.png) 50% 50% repeat-x; color: #fafaff; font-weight: bold; }
+.ui-widget-header a { color: #fafaff; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #a6c9e2; background: #d0e5f5 url(images/ui-bg_glass_85_d0e5f5_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #014172; }
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #014172; text-decoration: none; }
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #a6c9e2; background: #3372a3 url(images/ui-bg_highlight-hard_50_3372a3_1x100.png) 50% 50% repeat-x; font-weight: normal; color: #fafaff; }
+.ui-state-hover a, .ui-state-hover a:hover { color: #fafaff; text-decoration: none; }
+.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #a6c9e2; background: #3372a3 url(images/ui-bg_inset-hard_50_3372a3_1x100.png) 50% 50% repeat-x; font-weight: normal; color: #fafaff; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #fafaff; text-decoration: none; }
+.ui-widget :active { outline: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #fad42e; background: #fbec88 url(images/ui-bg_flat_55_fbec88_40x100.png) 50% 50% repeat-x; color: #363636; }
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
+.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
+.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
+.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_469bdd_256x240.png); }
+.ui-widget-content .ui-icon {background-image: url(images/ui-icons_469bdd_256x240.png); }
+.ui-widget-header .ui-icon {background-image: url(images/ui-icons_d8e7f3_256x240.png); }
+.ui-state-default .ui-icon { background-image: url(images/ui-icons_014172_256x240.png); }
+.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_fafaff_256x240.png); }
+.ui-state-active .ui-icon {background-image: url(images/ui-icons_fafaff_256x240.png); }
+.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
+.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
+
+/* positioning */
+.ui-icon-carat-1-n { background-position: 0 0; }
+.ui-icon-carat-1-ne { background-position: -16px 0; }
+.ui-icon-carat-1-e { background-position: -32px 0; }
+.ui-icon-carat-1-se { background-position: -48px 0; }
+.ui-icon-carat-1-s { background-position: -64px 0; }
+.ui-icon-carat-1-sw { background-position: -80px 0; }
+.ui-icon-carat-1-w { background-position: -96px 0; }
+.ui-icon-carat-1-nw { background-position: -112px 0; }
+.ui-icon-carat-2-n-s { background-position: -128px 0; }
+.ui-icon-carat-2-e-w { background-position: -144px 0; }
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
+.ui-icon-triangle-1-s { background-position: -64px -16px; }
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
+.ui-icon-arrow-1-s { background-position: -64px -32px; }
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
+.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
+.ui-icon-arrow-4 { background-position: 0 -80px; }
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
+.ui-icon-extlink { background-position: -32px -80px; }
+.ui-icon-newwin { background-position: -48px -80px; }
+.ui-icon-refresh { background-position: -64px -80px; }
+.ui-icon-shuffle { background-position: -80px -80px; }
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
+.ui-icon-folder-open { background-position: -16px -96px; }
+.ui-icon-document { background-position: -32px -96px; }
+.ui-icon-document-b { background-position: -48px -96px; }
+.ui-icon-note { background-position: -64px -96px; }
+.ui-icon-mail-closed { background-position: -80px -96px; }
+.ui-icon-mail-open { background-position: -96px -96px; }
+.ui-icon-suitcase { background-position: -112px -96px; }
+.ui-icon-comment { background-position: -128px -96px; }
+.ui-icon-person { background-position: -144px -96px; }
+.ui-icon-print { background-position: -160px -96px; }
+.ui-icon-trash { background-position: -176px -96px; }
+.ui-icon-locked { background-position: -192px -96px; }
+.ui-icon-unlocked { background-position: -208px -96px; }
+.ui-icon-bookmark { background-position: -224px -96px; }
+.ui-icon-tag { background-position: -240px -96px; }
+.ui-icon-home { background-position: 0 -112px; }
+.ui-icon-flag { background-position: -16px -112px; }
+.ui-icon-calendar { background-position: -32px -112px; }
+.ui-icon-cart { background-position: -48px -112px; }
+.ui-icon-pencil { background-position: -64px -112px; }
+.ui-icon-clock { background-position: -80px -112px; }
+.ui-icon-disk { background-position: -96px -112px; }
+.ui-icon-calculator { background-position: -112px -112px; }
+.ui-icon-zoomin { background-position: -128px -112px; }
+.ui-icon-zoomout { background-position: -144px -112px; }
+.ui-icon-search { background-position: -160px -112px; }
+.ui-icon-wrench { background-position: -176px -112px; }
+.ui-icon-gear { background-position: -192px -112px; }
+.ui-icon-heart { background-position: -208px -112px; }
+.ui-icon-star { background-position: -224px -112px; }
+.ui-icon-link { background-position: -240px -112px; }
+.ui-icon-cancel { background-position: 0 -128px; }
+.ui-icon-plus { background-position: -16px -128px; }
+.ui-icon-plusthick { background-position: -32px -128px; }
+.ui-icon-minus { background-position: -48px -128px; }
+.ui-icon-minusthick { background-position: -64px -128px; }
+.ui-icon-close { background-position: -80px -128px; }
+.ui-icon-closethick { background-position: -96px -128px; }
+.ui-icon-key { background-position: -112px -128px; }
+.ui-icon-lightbulb { background-position: -128px -128px; }
+.ui-icon-scissors { background-position: -144px -128px; }
+.ui-icon-clipboard { background-position: -160px -128px; }
+.ui-icon-copy { background-position: -176px -128px; }
+.ui-icon-contact { background-position: -192px -128px; }
+.ui-icon-image { background-position: -208px -128px; }
+.ui-icon-video { background-position: -224px -128px; }
+.ui-icon-script { background-position: -240px -128px; }
+.ui-icon-alert { background-position: 0 -144px; }
+.ui-icon-info { background-position: -16px -144px; }
+.ui-icon-notice { background-position: -32px -144px; }
+.ui-icon-help { background-position: -48px -144px; }
+.ui-icon-check { background-position: -64px -144px; }
+.ui-icon-bullet { background-position: -80px -144px; }
+.ui-icon-radio-off { background-position: -96px -144px; }
+.ui-icon-radio-on { background-position: -112px -144px; }
+.ui-icon-pin-w { background-position: -128px -144px; }
+.ui-icon-pin-s { background-position: -144px -144px; }
+.ui-icon-play { background-position: 0 -160px; }
+.ui-icon-pause { background-position: -16px -160px; }
+.ui-icon-seek-next { background-position: -32px -160px; }
+.ui-icon-seek-prev { background-position: -48px -160px; }
+.ui-icon-seek-end { background-position: -64px -160px; }
+.ui-icon-seek-start { background-position: -80px -160px; }
+/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
+.ui-icon-seek-first { background-position: -80px -160px; }
+.ui-icon-stop { background-position: -96px -160px; }
+.ui-icon-eject { background-position: -112px -160px; }
+.ui-icon-volume-off { background-position: -128px -160px; }
+.ui-icon-volume-on { background-position: -144px -160px; }
+.ui-icon-power { background-position: 0 -176px; }
+.ui-icon-signal-diag { background-position: -16px -176px; }
+.ui-icon-signal { background-position: -32px -176px; }
+.ui-icon-battery-0 { background-position: -48px -176px; }
+.ui-icon-battery-1 { background-position: -64px -176px; }
+.ui-icon-battery-2 { background-position: -80px -176px; }
+.ui-icon-battery-3 { background-position: -96px -176px; }
+.ui-icon-circle-plus { background-position: 0 -192px; }
+.ui-icon-circle-minus { background-position: -16px -192px; }
+.ui-icon-circle-close { background-position: -32px -192px; }
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
+.ui-icon-circle-check { background-position: -208px -192px; }
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Corner radius */
+.ui-corner-tl { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
+.ui-corner-tr { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
+.ui-corner-bl { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
+.ui-corner-br { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
+.ui-corner-top { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
+.ui-corner-bottom { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
+.ui-corner-right {  -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
+.ui-corner-left { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
+.ui-corner-all { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
+
+/* Overlays */
+.ui-widget-overlay { background: #3372a3 url(images/ui-bg_carbon-fiber_30_3372a3_8x9.png) 50% 50% repeat; opacity: .70;filter:Alpha(Opacity=70); }
+.ui-widget-shadow { margin: 5px 0 0 5px; padding: 1px; background: #014172 url(images/ui-bg_flat_0_014172_40x100.png) 50% 50% repeat-x; opacity: .70;filter:Alpha(Opacity=70); -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }/*
+ * jQuery UI Resizable @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizable#theming
+ */
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
+ * jQuery UI Selectable @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectable#theming
+ */
+.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
+/*
+ * jQuery UI Accordion @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion#theming
+ */
+/* IE/Win - Fix animation bug - #4615 */
+.ui-accordion { width: 100%; }
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
+.ui-accordion .ui-accordion-content-active { display: block; }/*
+ * jQuery UI Autocomplete @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; }	
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+	list-style:none;
+	padding: 2px;
+	margin: 0;
+	display:block;
+	float: left;
+}
+.ui-menu .ui-menu {
+	margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+	margin:0;
+	padding: 0;
+	zoom: 1;
+	float: left;
+	clear: left;
+	width: 100%;
+}
+.ui-menu .ui-menu-item a {
+	text-decoration:none;
+	display:block;
+	padding:.2em .4em;
+	line-height:1.5;
+	zoom:1;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+	font-weight: normal;
+	margin: -1px;
+}
+/*
+ * jQuery UI Button @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button#theming
+ */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; } 
+button.ui-button-icons-only { width: 3.7em; } 
+
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4;  }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+/*
+ * jQuery UI Dialog @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog#theming
+ */
+.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .5em 1em .3em; position: relative;  }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; } 
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
+/*
+ * jQuery UI Slider @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
+ * jQuery UI Tabs @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs#theming
+ */
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }
+/*
+ * jQuery UI Datepicker @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker#theming
+ */
+.ui-datepicker { width: 17em; padding: .2em .2em 0; }
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
+.ui-datepicker .ui-datepicker-prev { left:2px; }
+.ui-datepicker .ui-datepicker-next { right:2px; }
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
+.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month, 
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
+.ui-datepicker td { border: 0; padding: 1px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
+
+/* with multiple calendars */
+.ui-datepicker.ui-datepicker-multi { width:auto; }
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
+.ui-datepicker-row-break { clear:both; width:100%; }
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
+.ui-datepicker-cover {
+    display: none; /*sorry for IE5*/
+    display/**/: block; /*sorry for IE5*/
+    position: absolute; /*must have*/
+    z-index: -1; /*must have*/
+    filter: mask(); /*must have*/
+    top: -4px; /*must have*/
+    left: -4px; /*must have*/
+    width: 200px; /*must have*/
+    height: 200px; /*must have*/
+}/*
+ * jQuery UI Progressbar @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar#theming
+ */
+.ui-progressbar { height:2em; text-align: left; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
Index: MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-autocomplete/jquery.autocomplete.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-autocomplete/jquery.autocomplete.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-autocomplete/jquery.autocomplete.css	(revision 1516)
@@ -0,0 +1,47 @@
+
+.ac_results {
+	padding: 0px;
+	border: 1px solid WindowFrame;
+	background-color: Window;
+	overflow: hidden;
+}
+
+.ac_results ul {
+	width: 100%;
+	list-style-position: outside;
+	list-style: none;
+	padding: 0;
+	margin: 0;
+}
+
+.ac_results iframe {
+	display:none;/*sorry for IE5*/
+	display/**/:block;/*sorry for IE5*/
+	position:absolute;
+	top:0;
+	left:0;
+	z-index:-1;
+	filter:mask();
+	width:3000px;
+	height:3000px;
+}
+
+.ac_results li {
+	margin: 0px;
+	padding: 2px 5px;
+	cursor: pointer;
+	display: block;
+	width: 100%;
+	font: menu;
+	font-size: 120%;
+	overflow: hidden;
+}
+
+.ac_loading {
+	background : Window url('./indicator.gif') right center no-repeat;
+}
+
+.ac_over {
+	background-color: Highlight;
+	color: HighlightText;
+}
Index: MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-layout/layout-default-latest.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-layout/layout-default-latest.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-layout/layout-default-latest.css	(revision 1516)
@@ -0,0 +1,130 @@
+/*
+ * Default Layout Theme
+ *
+ * Created for jquery.layout 
+ *
+ * Copyright (c) 2010 
+ *   Fabrizio Balliano (http://www.fabrizioballiano.net)
+ *   Kevin Dalman (http://allpro.net)
+ *
+ * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
+ * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
+ *
+ * Last Updated: 2010-02-10
+ * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars
+ */
+
+/*
+ *	DEFAULT FONT
+ *	Just to make demo-pages look better - not actually relevant to Layout!
+ */
+body {
+	font-family: Geneva, Arial, Helvetica, sans-serif;
+	font-size:   100%;
+	*font-size:  80%;
+}
+
+/*
+ *	PANES & CONTENT-DIVs
+ */
+.ui-layout-pane { /* all 'panes' */
+	background:	#FFF; 
+	border:		1px solid #BBB;
+	/* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
+	   otherwise you may get double-scrollbars - on the pane AND on the content-div
+	*/
+	padding:	10px; 
+	overflow:	auto;
+	}
+	/* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
+	.ui-layout-content {
+		padding:	10px;
+		position:	relative; /* contain floated or positioned elements */
+		overflow:	auto; /* add scrolling to content-div */
+	}
+
+/*
+ *	RESIZER-BARS
+ */
+.ui-layout-resizer	{ /* all 'resizer-bars' */
+	background:		#DDD;
+	border:			1px solid #BBB;
+	border-width:	0;
+	}
+	.ui-layout-resizer-drag {		/* REAL resizer while resize in progress */
+	}
+	.ui-layout-resizer-hover	{	/* affects both open and closed states */
+	}
+	/* NOTE: It looks best when 'hover' and 'dragging' are set to the same color,
+		otherwise color shifts while dragging when bar can't keep up with mouse */
+	.ui-layout-resizer-open-hover ,	/* hover-color to 'resize' */
+	.ui-layout-resizer-dragging {	/* resizer beging 'dragging' */
+		background: #C4E1A4;
+	}
+	.ui-layout-resizer-dragging {	/* CLONED resizer being dragged */
+		border-left:  1px solid #BBB;
+		border-right: 1px solid #BBB;
+	}
+	/* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */
+	.ui-layout-resizer-dragging-limit {	/* CLONED resizer at min or max size-limit */
+		background: #E1A4A4; /* red */
+	}
+
+	.ui-layout-resizer-closed-hover	{ /* hover-color to 'slide open' */
+		background: #EBD5AA;
+	}
+	.ui-layout-resizer-sliding {	/* resizer when pane is 'slid open' */
+		opacity: .10; /* show only a slight shadow */
+		filter:  alpha(opacity=10);
+		}
+		.ui-layout-resizer-sliding-hover {	/* sliding resizer - hover */
+			opacity: 1.00; /* on-hover, show the resizer-bar normally */
+			filter:  alpha(opacity=100);
+		}
+		/* sliding resizer - add 'outside-border' to resizer on-hover 
+		 * this sample illustrates how to target specific panes and states */
+		.ui-layout-resizer-north-sliding-hover	{ border-bottom-width:	1px; }
+		.ui-layout-resizer-south-sliding-hover	{ border-top-width:		1px; }
+		.ui-layout-resizer-west-sliding-hover	{ border-right-width:	1px; }
+		.ui-layout-resizer-east-sliding-hover	{ border-left-width:	1px; }
+
+/*
+ *	TOGGLER-BUTTONS
+ */
+.ui-layout-toggler {
+	border: 1px solid #BBB; /* match pane-border */
+	background-color: #BBB;
+	}
+	.ui-layout-resizer-hover .ui-layout-toggler {
+		opacity: .60;
+		filter:  alpha(opacity=60);
+	}
+	.ui-layout-toggler-hover , /* need when NOT resizable */
+	.ui-layout-resizer-hover .ui-layout-toggler-hover { /* need specificity when IS resizable */
+		background-color: #FC6;
+		opacity: 1.00;
+		filter:  alpha(opacity=100);
+	}
+	.ui-layout-toggler-north ,
+	.ui-layout-toggler-south {
+		border-width: 0 1px; /* left/right borders */
+	}
+	.ui-layout-toggler-west ,
+	.ui-layout-toggler-east {
+		border-width: 1px 0; /* top/bottom borders */
+	}
+	/* hide the toggler-button when the pane is 'slid open' */
+	.ui-layout-resizer-sliding  ui-layout-toggler {
+		display: none;
+	}
+	/*
+	 *	style the text we put INSIDE the togglers
+	 */
+	.ui-layout-toggler .content {
+		color:			#666;
+		font-size:		12px;
+		font-weight:	bold;
+		width:			100%;
+		padding-bottom:	0.35ex; /* to 'vertically center' text inside text-span */
+	}
+
Index: MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-layout/layout-default-latest[2].css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-layout/layout-default-latest[2].css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-layout/layout-default-latest[2].css	(revision 1516)
@@ -0,0 +1,130 @@
+/*
+ * Default Layout Theme
+ *
+ * Created for jquery.layout 
+ *
+ * Copyright (c) 2010 
+ *   Fabrizio Balliano (http://www.fabrizioballiano.net)
+ *   Kevin Dalman (http://allpro.net)
+ *
+ * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
+ * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
+ *
+ * Last Updated: 2010-02-10
+ * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars
+ */
+
+/*
+ *	DEFAULT FONT
+ *	Just to make demo-pages look better - not actually relevant to Layout!
+ */
+body {
+	font-family: Geneva, Arial, Helvetica, sans-serif;
+	font-size:   100%;
+	*font-size:  80%;
+}
+
+/*
+ *	PANES & CONTENT-DIVs
+ */
+.ui-layout-pane { /* all 'panes' */
+	background:	#FFF; 
+	border:		1px solid #BBB;
+	/* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
+	   otherwise you may get double-scrollbars - on the pane AND on the content-div
+	*/
+	padding:	10px; 
+	overflow:	auto;
+	}
+	/* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
+	.ui-layout-content {
+		padding:	10px;
+		position:	relative; /* contain floated or positioned elements */
+		overflow:	auto; /* add scrolling to content-div */
+	}
+
+/*
+ *	RESIZER-BARS
+ */
+.ui-layout-resizer	{ /* all 'resizer-bars' */
+	background:		#DDD;
+	border:			1px solid #BBB;
+	border-width:	0;
+	}
+	.ui-layout-resizer-drag {		/* REAL resizer while resize in progress */
+	}
+	.ui-layout-resizer-hover	{	/* affects both open and closed states */
+	}
+	/* NOTE: It looks best when 'hover' and 'dragging' are set to the same color,
+		otherwise color shifts while dragging when bar can't keep up with mouse */
+	.ui-layout-resizer-open-hover ,	/* hover-color to 'resize' */
+	.ui-layout-resizer-dragging {	/* resizer beging 'dragging' */
+		background: #C4E1A4;
+	}
+	.ui-layout-resizer-dragging {	/* CLONED resizer being dragged */
+		border-left:  1px solid #BBB;
+		border-right: 1px solid #BBB;
+	}
+	/* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */
+	.ui-layout-resizer-dragging-limit {	/* CLONED resizer at min or max size-limit */
+		background: #E1A4A4; /* red */
+	}
+
+	.ui-layout-resizer-closed-hover	{ /* hover-color to 'slide open' */
+		background: #EBD5AA;
+	}
+	.ui-layout-resizer-sliding {	/* resizer when pane is 'slid open' */
+		opacity: .10; /* show only a slight shadow */
+		filter:  alpha(opacity=10);
+		}
+		.ui-layout-resizer-sliding-hover {	/* sliding resizer - hover */
+			opacity: 1.00; /* on-hover, show the resizer-bar normally */
+			filter:  alpha(opacity=100);
+		}
+		/* sliding resizer - add 'outside-border' to resizer on-hover 
+		 * this sample illustrates how to target specific panes and states */
+		.ui-layout-resizer-north-sliding-hover	{ border-bottom-width:	1px; }
+		.ui-layout-resizer-south-sliding-hover	{ border-top-width:		1px; }
+		.ui-layout-resizer-west-sliding-hover	{ border-right-width:	1px; }
+		.ui-layout-resizer-east-sliding-hover	{ border-left-width:	1px; }
+
+/*
+ *	TOGGLER-BUTTONS
+ */
+.ui-layout-toggler {
+	border: 1px solid #BBB; /* match pane-border */
+	background-color: #BBB;
+	}
+	.ui-layout-resizer-hover .ui-layout-toggler {
+		opacity: .60;
+		filter:  alpha(opacity=60);
+	}
+	.ui-layout-toggler-hover , /* need when NOT resizable */
+	.ui-layout-resizer-hover .ui-layout-toggler-hover { /* need specificity when IS resizable */
+		background-color: #FC6;
+		opacity: 1.00;
+		filter:  alpha(opacity=100);
+	}
+	.ui-layout-toggler-north ,
+	.ui-layout-toggler-south {
+		border-width: 0 1px; /* left/right borders */
+	}
+	.ui-layout-toggler-west ,
+	.ui-layout-toggler-east {
+		border-width: 1px 0; /* top/bottom borders */
+	}
+	/* hide the toggler-button when the pane is 'slid open' */
+	.ui-layout-resizer-sliding  ui-layout-toggler {
+		display: none;
+	}
+	/*
+	 *	style the text we put INSIDE the togglers
+	 */
+	.ui-layout-toggler .content {
+		color:			#666;
+		font-size:		12px;
+		font-weight:	bold;
+		width:			100%;
+		padding-bottom:	0.35ex; /* to 'vertically center' text inside text-span */
+	}
+
Index: MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-treeview/jquery.treeview.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-treeview/jquery.treeview.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/style/jquery/jquery-treeview/jquery.treeview.css	(revision 1516)
@@ -0,0 +1,68 @@
+.treeview, .treeview ul { 
+	padding: 0;
+	margin: 0;
+	list-style: none;
+}
+
+.treeview ul {
+	background-color: white;
+	margin-top: 4px;
+}
+
+.treeview .hitarea {
+	background: url(images/treeview-default.gif) -64px -25px no-repeat;
+	height: 16px;
+	width: 16px;
+	margin-left: -16px;
+	float: left;
+	cursor: pointer;
+}
+/* fix for IE6 */
+* html .hitarea {
+	display: inline;
+	float:none;
+}
+
+.treeview li { 
+	margin: 0;
+	padding: 3px 0pt 3px 16px;
+}
+
+.treeview a.selected {
+	background-color: #eee;
+}
+
+#treecontrol { margin: 1em 0; display: none; }
+
+.treeview .hover { color: red; cursor: pointer; }
+
+.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; }
+.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
+
+.treeview .expandable-hitarea { background-position: -80px -3px; }
+
+.treeview li.last { background-position: 0 -1766px }
+.treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(images/treeview-default.gif); }  
+.treeview li.lastCollapsable { background-position: 0 -111px }
+.treeview li.lastExpandable { background-position: -32px -67px }
+
+.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
+
+.treeview-red li { background-image: url(images/treeview-red-line.gif); }
+.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(images/treeview-red.gif); } 
+
+.treeview-black li { background-image: url(images/treeview-black-line.gif); }
+.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(images/treeview-black.gif); }  
+
+.treeview-gray li { background-image: url(images/treeview-gray-line.gif); }
+.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(images/treeview-gray.gif); } 
+
+.treeview-famfamfam li { background-image: url(images/treeview-famfamfam-line.gif); }
+.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(images/treeview-famfamfam.gif); } 
+
+
+.filetree li { padding: 3px 0 2px 16px; }
+.filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; }
+.filetree span.folder { background: url(images/folder.gif) 0 0 no-repeat; }
+.filetree li.expandable span.folder { background: url(images/folder-closed.gif) 0 0 no-repeat; }
+.filetree span.file { background: url(images/file.gif) 0 0 no-repeat; }
Index: MDService2/branches/MDService_simple3/WebContent/style/jquery/treetable/jquery.treeTable.css
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/style/jquery/treetable/jquery.treeTable.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/style/jquery/treetable/jquery.treeTable.css	(revision 1516)
@@ -0,0 +1,43 @@
+/* jQuery TreeTable Core 2.0 stylesheet
+ *
+ * This file contains styles that are used to display the tree table. Each tree
+ * table is assigned the +treeTable+ class.
+ * ========================================================================= */
+
+/* jquery.treeTable.collapsible
+ * ------------------------------------------------------------------------- */
+.treeTable tr td .expander {
+  background-position: left center;
+  background-repeat: no-repeat;
+  cursor: pointer;
+  padding: 0;
+  zoom: 1; /* IE7 Hack */
+}
+
+.treeTable tr.collapsed td .expander {
+  background-image: url(images/toggle-expand-dark.png);
+}
+
+.treeTable tr.expanded td .expander {
+  background-image: url(images/toggle-collapse-dark.png);
+}
+
+/* jquery.treeTable.sortable
+ * ------------------------------------------------------------------------- */
+.treeTable tr.selected, .treeTable tr.accept {
+  background-color: #3875d7;
+  color: #fff;
+}
+
+.treeTable tr.collapsed.selected td .expander, .treeTable tr.collapsed.accept td .expander {
+  background-image: url(images/toggle-expand-light.png);
+}
+
+.treeTable tr.expanded.selected td .expander, .treeTable tr.expanded.accept td .expander {
+  background-image: url(images/toggle-collapse-light.png);
+}
+
+.treeTable .ui-draggable-dragging {
+  color: #000;
+  z-index: 1;
+}
Index: MDService2/branches/MDService_simple3/WebContent/workspace.jsp
===================================================================
--- MDService2/branches/MDService_simple3/WebContent/workspace.jsp	(revision 1516)
+++ MDService2/branches/MDService_simple3/WebContent/workspace.jsp	(revision 1516)
@@ -0,0 +1,15 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+    pageEncoding="UTF-8"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+
+
+<html>
+<head>
+<!-- http://localhost:8080  -->
+<meta HTTP-EQUIV="REFRESH" content="0; url=/MDService2/"></head>
+</head>
+<body>
+</body>
+</html>
Index: MDService2/branches/MDService_simple3/WorkspaceProfile.xml
===================================================================
--- MDService2/branches/MDService_simple3/WorkspaceProfile.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WorkspaceProfile.xml	(revision 1516)
@@ -0,0 +1,284 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Profiles>
+   <Querycounter>
+   	  <maxid>31</maxid>
+   </Querycounter>
+   <WorkspaceProfiles>
+      <WorkspaceProfile user="server">
+	        <Repositories>
+	           <item>
+               <name>clarin.at-mirror</name>   
+               <id>2</id> 
+               <type>md</type>
+               <uri>http://clarin.aac.ac.at/exist/rest/db/clarin/cmd-model.xql/</uri>
+            </item> 
+	           <item>
+               <name>gu.se-main</name>   
+               <id>1</id> 
+               <type>md</type>
+               <uri>http://demo.spraakdata.gu.se/clarin/cmd/model/stats/</uri>
+            </item>
+            <item>
+               <name>sru-corpus-ddcon</name>   
+               <id>3</id> 
+               <type>sru</type>
+               <uri>http://corpus3.aac.ac.at/ddconsru</uri>
+            </item>
+            <item>
+               <name>sru-cqlservlet</name>   
+               <id>4</id> 
+               <type>sru</type>
+               <uri>http://cqlservlet.mpi.nl/</uri>
+            </item>
+            <item>
+               <name>sru-gutenberg</name>   
+               <id>5</id> 
+               <type>sru</type>
+               <uri>http://opencontent.indexdata.com/gutenberg</uri>
+            </item>
+            <item>
+               <name>pazpar</name>   
+               <id>6</id> 
+               <type>pazpar</type>
+               <uri>http://clarin.aac.ac.at/pazpar2/search.pz2/</uri>
+            </item>
+	        </Repositories>
+	        <Termsets>
+            <item>
+               <type>model</type> 
+               <id>olac</id> 
+               <name>olac</name> 
+               <url>null</url> 
+               <url_prefix>null</url_prefix> 
+               <format>terms|cmdrepo</format> 
+            </item>
+            <item>
+               <type>model</type> 
+               <id>coll</id> 
+               <name>collection</name> 
+               <url>null</url> 
+               <url_prefix>null</url_prefix> 
+               <format>terms|cmdrepo</format> 
+            </item>
+            <item>
+               <type>model</type> 
+               <id>tcp</id> 
+               <name>TextCorpusProfile</name> 
+               <url>null</url> 
+               <url_prefix>null</url_prefix> 
+               <format>terms|cmdrepo</format> 
+            </item>
+            <item>
+               <type>model</type> 
+               <id>tei</id> 
+               <name>teiHeader</name> 
+               <url>null</url> 
+               <url_prefix>null</url_prefix> 
+               <format>terms</format> 
+            </item>
+            <item>
+               <type>dcr</type> 
+               <id>isocat</id> 
+               <name>isoCAT</name> 
+               <url>http://www.isocat.org/rest/profile/5</url> 
+               <url_prefix>http://www.isocat.org/datcat/</url_prefix> 
+               <format>dcif</format> 
+            </item>
+            <item>
+               <type>dcr</type> 
+               <id>dce</id> 
+               <name>dublincore elements</name> 
+               <url>http://purl.org/dc/elements/1.1/</url> 
+               <url_prefix>null</url_prefix> 
+               <format>rdf</format> 
+            </item>
+            <item>
+               <type>rr</type> 
+               <id>relcat</id> 
+               <name>Relation Registry CMDI-set</name> 
+               <url>http://lux13.mpi.nl/relcat/rest/set/cmdi</url> 
+               <url_prefix>null</url_prefix> 
+               <format>rdf</format> 
+            </item>
+         </Termsets>
+         <Querysets>null</Querysets>
+         <Bookmarksets>null</Bookmarksets>
+         
+	        <created>a</created>
+	        <lastchanged>a</lastchanged>
+	        <profilename>a</profilename>
+	        <username>a</username>
+	        <Options>
+	        	<pazpartimeout>10</pazpartimeout>
+	        </Options>
+      </WorkspaceProfile>
+      
+      
+      
+      
+      
+      
+      
+      <WorkspaceProfile user="default">
+         <Bookmarksets>
+            <item>
+               <Bookmarks>
+                  <item>
+                     <bookmark>1</bookmark>
+                     <collections>null</collections>
+                     <columns>null</columns>
+                     <id>31</id>
+                     <maximumItems>10</maximumItems>
+                     <name>lrt:2787?repository=clarin.at-mirror</name>
+                     <options null="true"/>
+                     <querystring>clarin%252Eeu%3Alrt%3A2787?repository=clarin.at-mirror</querystring>
+                     <searchclauses>null</searchclauses>
+                     <squerystring null="true"/>
+                     <startItem>1</startItem>
+                     <time>2011-06-05 23:22:33</time>
+                     <vcrid>0</vcrid>
+                  </item>
+               </Bookmarks>
+               <created>2011-06-05 23:16:57</created>
+               <id>25</id>
+               <name>book1</name>
+               <vcrid>40</vcrid>
+            </item>
+            <item>
+               <Bookmarks>
+                  <item>
+                     <bookmark>1</bookmark>
+                     <collections>null</collections>
+                     <columns>null</columns>
+                     <id>28</id>
+                     <maximumItems>10</maximumItems>
+                     <name>C4:220?repository=clarin.at-mirror</name>
+                     <options null="true"/>
+                     <querystring>clarin-at%3Aaac-test-corpus%3AC4%3A220?repository=clarin.at-mirror</querystring>
+                     <searchclauses>null</searchclauses>
+                     <squerystring null="true"/>
+                     <startItem>1</startItem>
+                     <time>2011-06-05 23:18:28</time>
+                     <vcrid>0</vcrid>
+                  </item>
+               </Bookmarks>
+               <created>2011-06-05 23:17:10</created>
+               <id>26</id>
+               <name>book2</name>
+               <vcrid>0</vcrid>
+            </item>
+            <item>
+               <Bookmarks>null</Bookmarks>
+               <created>2011-06-05 23:18:04</created>
+               <id>27</id>
+               <name>book33</name>
+               <vcrid>0</vcrid>
+            </item>
+         </Bookmarksets>
+         <CustomTermsets>null</CustomTermsets>
+         <Querysets>
+            <item>
+               <Queries>
+                  <item>
+                     <bookmark>0</bookmark>
+                     <collections>null</collections>
+                     <columns>null</columns>
+                     <id>20</id>
+                     <maximumItems>10</maximumItems>
+                     <name>schule                     | </name>
+                     <options null="true"/>
+                     <querystring null="true"/>
+                     <searchclauses>null</searchclauses>
+                     <squerystring>schule</squerystring>
+                     <startItem>1</startItem>
+                     <time>2011-06-05 22:49:20</time>
+                     <vcrid>0</vcrid>
+                  </item>
+                  <item>
+                     <bookmark>0</bookmark>
+                     <collections>null</collections>
+                     <columns>null</columns>
+                     <id>21</id>
+                     <maximumItems>10</maximumItems>
+                     <name>machine                    | </name>
+                     <options null="true"/>
+                     <querystring null="true"/>
+                     <searchclauses>null</searchclauses>
+                     <squerystring>machine</squerystring>
+                     <startItem>1</startItem>
+                     <time>2011-06-05 23:023:58</time>
+                     <vcrid>0</vcrid>
+                  </item>
+               </Queries>
+               <created>2011-06-05 22:46:29</created>
+               <id>17</id>
+               <name>qset0</name>
+            </item>
+            <item>
+               <Queries>
+                  <item>
+                     <bookmark>0</bookmark>
+                     <collections>null</collections>
+                     <columns>null</columns>
+                     <id>22</id>
+                     <maximumItems>10</maximumItems>
+                     <name>mar                        | </name>
+                     <options null="true"/>
+                     <querystring null="true"/>
+                     <searchclauses>null</searchclauses>
+                     <squerystring>mar</squerystring>
+                     <startItem>1</startItem>
+                     <time>2011-06-05 23:023:31</time>
+                     <vcrid>0</vcrid>
+                  </item>
+                  <item>
+                     <bookmark>0</bookmark>
+                     <collections>null</collections>
+                     <columns>null</columns>
+                     <id>23</id>
+                     <maximumItems>10</maximumItems>
+                     <name>januar                     | </name>
+                     <options null="true"/>
+                     <querystring null="true"/>
+                     <searchclauses>null</searchclauses>
+                     <squerystring>januar</squerystring>
+                     <startItem>1</startItem>
+                     <time>2011-06-05 23:15:59</time>
+                     <vcrid>0</vcrid>
+                  </item>
+               </Queries>
+               <created>2011-06-05 22:46:29</created>
+               <id>18</id>
+               <name>qset1</name>
+            </item>
+            <item>
+               <Queries>
+                  <item>
+                     <bookmark>0</bookmark>
+                     <collections>null</collections>
+                     <columns>null</columns>
+                     <id>24</id>
+                     <maximumItems>10</maximumItems>
+                     <name>januar                     | </name>
+                     <options null="true"/>
+                     <querystring null="true"/>
+                     <searchclauses>null</searchclauses>
+                     <squerystring>januar</squerystring>
+                     <startItem>1</startItem>
+                     <time>2011-06-05 23:16:33</time>
+                     <vcrid>0</vcrid>
+                  </item>
+               </Queries>
+               <created>2011-06-05 22:48:10</created>
+               <id>19</id>
+               <name>qset2</name>
+            </item>
+         </Querysets>
+         <Repositories>null</Repositories>
+         <Termsets>null</Termsets>
+         <created>null</created>
+         <lastchanged>null</lastchanged>
+         <profilename>null</profilename>
+      </WorkspaceProfile>
+   </WorkspaceProfiles>
+</Profiles>
Index: MDService2/branches/MDService_simple3/WorkspaceProfileServer.xml
===================================================================
--- MDService2/branches/MDService_simple3/WorkspaceProfileServer.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/WorkspaceProfileServer.xml	(revision 1516)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<WorkspaceProfile>
+	<Repositories>
+		<item><name>clarin.at-mirror</name>   <id>1</id> <uri>http://clarin.aac.ac.at/exist/rest/db/clarin/cmd-model.xql/</uri></item>	
+		<item><name>gu.se-main</name>   <id>2</id> <uri>http://demo.spraakdata.gu.se/clarin/cmd/model/stats/</uri></item>
+</Repositories>
+	<Querysets><item><Queries><item>
+		<collections>null</collections>
+		<columns>null</columns>
+		<querystring> (  ( title contains synta )  ) </querystring>
+		<searchclauses>null</searchclauses>
+		<squerystring>[NULL]</squerystring></item>
+		<item>
+		<collections>null</collections>
+		<columns>
+		<item>monogr</item></columns>
+		<querystring> (  ( monogr contains Leben )  ) </querystring>
+		<searchclauses>null</searchclauses>
+		<squerystring>[NULL]</squerystring></item>
+		</Queries>
+		<created>Tue Sep 14 2010 23:16:02 GMT+0200</created>
+		<name>sample queries</name></item>
+	</Querysets>
+	<created>a</created>
+	<lastchanged>a</lastchanged>
+	<profilename>a</profilename>
+	<username>a</username>
+</WorkspaceProfile>
+
Index: MDService2/branches/MDService_simple3/build.properties
===================================================================
--- MDService2/branches/MDService_simple3/build.properties	(revision 1516)
+++ MDService2/branches/MDService_simple3/build.properties	(revision 1516)
@@ -0,0 +1,40 @@
+#
+# Modify this file to suit your environment.  
+# The values of these properties will
+# override the values of properties of the 
+# same name in the build.xml file. 
+#
+# See build.xml for versions and descriptions 
+# of each of the required JAR files.
+#
+# Use forward slashes for path names even if
+# you are in a Windows environment!
+#
+
+
+#==================== File and Directory Names ========================
+
+app.name=MDService2
+app.version=0.1
+
+source.home=./src
+lib.home=./WebContent/WEB-INF/lib
+#used for Jar files that are needed for compiling
+#but should not be part of the war file
+lib.external=./lib_external
+webapp.home=./WebContent
+build.home=./build
+dist.home=./dist
+deploy.dir = C:/apps/apache-tomcat/webapps
+#deploy.dir = C:/apache-tomcat-6.0.26/webapps
+
+
+#==================== Compilation Control Options =====================
+
+compile.debug=true
+compile.deprecation=false
+compile.optimize=true
+
+
+
+
Index: MDService2/branches/MDService_simple3/build.xml
===================================================================
--- MDService2/branches/MDService_simple3/build.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/build.xml	(revision 1516)
@@ -0,0 +1,132 @@
+<?xml version="1.0"?>
+
+
+<!-- ====================================================================== 
+     Date:     January 2010
+     
+     Project:  Struts 2 Coding Actions
+     
+     Author:   Bruce Phillips
+     ====================================================================== -->
+
+
+	
+<project name="Coding_Actions_Struts2_Ant" default="archive" basedir=".">
+	
+    <description>
+           Example of using Struts 2 tags.
+    </description>
+	
+	<property file="build.properties"/>
+    
+
+	
+	<!-- ==================== Clean Target ==================================== -->
+
+	<!--
+	  The "clean" target deletes any previous "build" and "dist" directory,
+	  so that you can be ensured the application can be built from scratch.
+	-->
+	<target name="clean" description="Delete old build and dist directories">
+		<delete dir="${dist.home}"/>
+		<delete dir="${build.home}"/>
+	</target>
+
+	<!-- ==================== Init Target ================================== -->
+
+	<!--
+
+	  The "init" target is used to create the "build" destination directory,
+	  Normally, this task is executed indirectly when needed.
+
+	-->
+	<target name="init" depends="clean"  description="Create build directory">
+		
+		<mkdir dir="${build.home}" />
+
+	</target>
+	
+	<!-- ==================== Compile Target ================================== -->
+
+	<!--
+
+	  The "compile" target transforms source files (from your "src" directory)
+	  into class files in the appropriate location in the build directory.
+	  This example assumes that you will be including your classes in an
+	  unpacked directory hierarchy under "/WEB-INF/classes".
+
+	-->
+	<target name="compile" depends="init" description="Compile Java sources">
+		
+		
+		<mkdir dir="${build.home}/WEB-INF/classes" />
+		
+		<javac srcdir="${source.home}"
+				destdir="${build.home}/WEB-INF/classes"
+				debug="${compile.debug}"
+				deprecation="${compile.deprecation}"
+				optimize="${compile.optimize}"
+			     source="1.6" target="1.6">
+			
+			<classpath>
+				<path>
+			    	<fileset dir="${lib.home}" />
+					<fileset dir="${lib.external}" />
+			    </path>
+			</classpath>
+			
+		</javac>
+
+	</target>
+	
+	<!-- ==================== Build Target ================================== -->
+
+	<!--
+
+	  The "build" target copies all non class files to build directory
+
+	-->
+	
+	<target name="build" depends="compile" description="Copies all non Java classes to build directoy">
+		<copy todir="${build.home}">
+			<fileset dir="${webapp.home}" excludes="SVN,**/*.class" />
+		</copy>
+		<copy todir="${build.home}/WEB-INF/classes">
+			<fileset dir="${source.home}" excludes="SVN,**/*.java" />
+		</copy>
+	</target>
+	
+	<!-- ==================== Archive Target ================================== -->
+
+	<!--
+
+	  The "archive" target create a binary archive of all files in build.home
+
+	-->
+
+	<target name="deploy-local" depends="build" description="Create binary archive of all files in dist.home and put in tomcat/webapps">
+		
+		<mkdir     dir="${dist.home}" />
+		
+		<!-- Create application WAR file -->
+	    <jar jarfile="${dist.home}/${app.name}.war"
+				basedir="${build.home}" />
+
+ 		<delete dir="${deploy.dir}/${app.name}" />
+		<delete dir="${deploy.dir}/${app.name}.war" />
+		<copy tofile="${deploy.dir}/${app.name}.war" file="${dist.home}/${app.name}.war"/>
+	</target>	
+	
+	<target name="archive" depends="build" description="Create binary archive of all files in dist.home">
+			
+			<mkdir     dir="${dist.home}" />
+			
+			<!-- Create application WAR file -->
+		    <jar jarfile="${dist.home}/${app.name}.war"
+					basedir="${build.home}" />
+		</target>	
+	
+  
+	
+</project>
+
Index: MDService2/branches/MDService_simple3/docs/MDService2.wadl
===================================================================
--- MDService2/branches/MDService_simple3/docs/MDService2.wadl	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/MDService2.wadl	(revision 1516)
@@ -0,0 +1,281 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application
+    xmlns="http://research.sun.com/wadl/2006/10"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:cat="http://www.isocat.org/"
+    xmlns:dcif="http://www.isocat.org/ns/dcif"
+    xmlns:mds="http://cmdi.clarin.eu/mdservice/"
+    xmlns:sru="http://www.loc.gov/standards/sru/specs/"
+>
+<doc title="CLARIN Metadata Service" >
+		This is a draft description of the REST-interface of <code>CLARIN Metadata Service</code>. Especially the response description is very sketchy yet.<br/>
+	Also the <code>@base</code> is an abstract one (more like a namespace). The actual URL is: <a href="http://clarin.aac.ac.at/MDService2/">http://clarin.aac.ac.at/MDService2/</a>	
+</doc>
+
+    <grammars>
+        <include href="http://www.isocat.org/12620/schemas/DCIF.rng"/>
+    </grammars>
+    
+    <resources base="http://cmdi.clarin.eu/mdservice/">
+
+          <param name="format" type="xs:string" style="matrix" >                        
+          	<option value="xml" mediaType="application/xml"/>  
+ 						<option value="htmltable" mediaType="application/html"/>  
+ 						<option value="htmldetail" mediaType="text/html"/>  
+ 						<option value="htmlpage" mediaType="text/html"/>  
+          </param>                   
+
+					<param name="repository" type="xs:int" style="matrix" default="1">
+						<doc>allows to dynamically select one of the available repositories for the queries.<br/>
+								Probably this should be rather a semantic identifier (a string-key instead of int)
+							</doc>
+          </param>                   
+
+					<param name="cache" type="xs:string" style="matrix" default="use">
+						<option value="use" />  
+ 						<option value="skip" />  
+ 						<option value="refresh" />   						
+          </param>                   
+
+
+				<resource id="basic-userinterface" path="">
+					<doc title="Default path" >
+				This is the default application trying to make sense of any parameters that are passed.				
+				So that it is possible to bookmark/send a query as a simple URI (REST at its best ;).
+				Sot it accepts the same parameters as the search-interface, but displays the query within the main user-interface.
+					</doc>
+
+            <method name="GET">
+                <request>   
+                		<param name="q" type="sru:CQL" style="query" >                        
+                    </param>                 
+                		<param name="squery" type="xs:string" style="query" ><doc title="Simple Query" >just individual terms</doc>                        
+                    </param>                 
+										<param name="columns" type="mds:cmdIndex" style="query" repeating="true" >                        
+                    </param>                                        
+                    <param name="collection" type="xs:URI" style="query" >                        
+                    </param>                                        										
+                    <param name="startRecord" type="xs:positiveInteger" style="query" ></param>
+                    <param name="maximumRecords" type="xs:positiveInteger" style="query" ></param>
+        
+                </request>
+                <response>
+                		<representation mediaType="text/html" >                        
+                    </representation>            
+                </response>
+            </method>
+        </resource>
+        
+
+        <resource id="collections" path="collections/{format}/{collection}">
+        	<doc title="Collections" >
+						This provides a summary of collections in the repository (it is passed on to <code>getCollections</code>-method of MdRepository)
+					</doc>
+            <method name="GET">
+                <request>
+                    <param name="collection" type="xs:URI" style="template" repeating="yes"/>
+                    <param name="maxdepth" type="xs:positiveInteger" style="query" />                    
+                </request>
+                <response>
+                    <representation mediaType="application/xml" element="mds:Collections">
+                        <param name="collection_name" path="//Collection" repeating="true" type="xs:QName" style="plain">
+                            <link resource_type="#collection"/>
+                        </param>                        
+                    </representation>
+                    
+                </response>
+            </method>
+        </resource>
+        
+        <resource id="model" path="model/{format}/{term}">
+        	<doc title="Model" >
+						This provides a summary of the xml-structure in the repository (aggregated XML-subtrees) (it is passed on to <code>queryModel</code>-method of MdRepository)<br/>
+						The starting context can be part of the url (template-style) or in the q parameter.
+						<span class="note">What happens if both are defined?</span>
+					</doc>
+
+            <method name="GET">
+                <request>
+                    <param name="term" type="mds:cmdIndex" style="template"/>                    
+                    <param name="q" type="mds:cmdIndex" style="query" />
+                    <param name="maxdepth" type="xs:positiveInteger" style="query" />                    
+                </request>
+                <response>
+                    <representation mediaType="application/xml" element="mds:Terms">
+                        <param name="cmdIndex" path="//mds:Terms/@path" repeating="true" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                    
+                    
+                </response>
+            </method>
+        </resource>
+        
+        <resource id="terms" path="terms/{format}/{term}">
+       		<doc title="Terms" >
+						This combines the information from MdRepository (model-interface), Component Registry and optionally Data Category Registry and RelationRegistry
+						providing a summary of the profiles actually used in the repository together with mapping to data-categories.						
+					</doc>
+
+            <method name="GET">
+                <request>
+                    <param name="format" type="xs:string" style="template" >                        
+					          	<option value="xml" mediaType="application/xml"/>  
+					 						<option value="flat" mediaType="application/html"/>  
+					 						<option value="autocomplete" mediaType="text/html"/>  
+					 						<option value="htmlselect" mediaType="text/html"/>  
+					 						<option value="htmlpage" mediaType="text/html"/>  
+				          	</param>  
+										<param name="term" type="mds:cmdIndex" style="template">
+                    		<option value="all" />
+                    		<option value="{profile name}" />
+                    	</param>
+                    <param name="q" type="mds:cmdIndex" style="query" />
+                    <param name="maxdepth" type="xs:positiveInteger" style="query" />                    
+                    
+                </request>
+                <response>
+                    <representation mediaType="application/xml" element="mds:Terms">
+                        <param name="cmdIndex" path="//mds:Terms/@path" repeating="true" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                    
+                    
+                </response>
+            </method>
+        </resource>
+        
+        
+        <resource id="recordset" path="recordset/{format}/">
+        	<doc title="Search" >
+						This is the actual search interface allowing to retrieve MDRecords from the MDRepository.
+						Main parameter is q expected to be a valid CQL-query. The query is translated into XPath and passed on to the <code>searchRetrieve</code>-method of MDRepository, which already returns a valid (SRU-protocol compliant) <code>searchRetrieveResponse</code>.
+					</doc>
+
+            <method name="GET">
+                <request>   
+                		<param name="q" type="sru:CQL" style="query" >                        
+                    </param>                 
+                		<param name="squery" type="xs:string" style="query" ><doc title="Simple Query" >just individual terms</doc>                        
+                    </param>                 
+                    <param name="columns" type="mds:cmdIndex" style="query" repeating="true" >                        
+                    </param>                                        
+                    <param name="collection" type="xs:URI" style="query" >                        
+                    </param>                                        
+										<param name="maxDepth" type="xs:positiveInteger"/>
+                    <param name="startRecord" type="xs:positiveInteger" style="query" ></param>
+                    <param name="maximumRecords" type="xs:positiveInteger" style="query" ></param>
+        
+                </request>
+
+                <response>
+                		<representation mediaType="application/xml" element="mds:searchRetrieveResponse">
+                        <param name="records" path="//records" repeating="false" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                                        
+                    
+                </response>
+            </method>
+        </resource>
+
+        <resource id="record" path="record/{format}/{q}">
+        	<doc title="Record detail" >
+						Special method for retrieving a full individual record. It is also translated into XPath (<code>MdSelfLink</code>) and served by the <code>searchRetrieve</code>-method of MDRepository.
+					</doc>
+
+            <method name="GET">
+                <request>                   		                		
+                    <param name="q" type="xs:URI" style="template" ><doc>PID - handle of the record</doc>
+                    </param>                    
+                  <param name="cacheid" type="xs:int" style="query" optional="yes" ><doc>Proposed parameter, to remember the recordset, the record comes in from, to be able, to retrieve it directly from MDService's cache and save the trip to MDRepository (for data, that is already locally available)</doc>
+                    </param>                    
+                </request>
+                <response>
+                		<representation mediaType="application/xml" element="mds:searchRetrieveResponse">
+                        <param name="records" path="//records" repeating="false" type="xs:anyURI" style="plain">                           
+                        </param>
+                    </representation>                                        
+                    
+                </response>
+            </method>
+        </resource>
+		</resources>
+		
+    <resources base="http://cmdi.clarin.eu/mdservice/">
+        
+        <resource id="workspaceprofile" path="workspaceprofile/{type}">
+        	<doc title="Workspace profile" >
+						Delivers the configuration-structure. A server profile or an user specific (plus a special "default"-profile for the anonymous user).<br/>
+						The profiles are stored as xml-files on the server and handed out as JSON-files to the client.						
+					</doc>
+            <method name="GET">
+                <request>   
+                		<param name="type" type="xs:string" style="template" >                				
+	                			<option value="server" />
+	                			<option value="user" />
+                    </param>                    
+                </request>
+                <response>
+                		<representation mediaType="application/json" element="mds:WorkspaceProfile">                        
+                    </representation>                                        
+                    
+                </response>
+            </method>
+        </resource>
+        
+        <resource id="workspaceprofilesave" path="workspaceprofilesave">
+        	<doc title="Save workspace profile" >
+						Allows to save back the configuration-file.
+					</doc>
+            <method name="POST">
+                <request>   
+                		<param name="data" type="xs:string" style="query" default="public">                        
+                    </param>                                     
+                </request>
+                <response>
+                		<representation mediaType="application/json" element="mds:WorkspaceProfile">                        
+                    </representation>                                                            
+                </response>
+            </method>
+        </resource>
+        
+		</resources>
+		
+    <resources base="http://cmdi.clarin.eu/mdservice/admin/">
+        
+        <resource id="cache" path="cache/{format}">
+        	<doc title="Cache" >
+						Allows to view the cache-index
+					</doc>
+            <method name="GET">
+                <request>                   		
+                	<param name="format" type="xs:string" style="template" default="public" >
+                			<option value="xml" />
+                			<option value="htmlpage" />
+                		</param>
+                </request>
+                <response>
+                		<representation mediaType="text/html">                        
+                    </representation>                    
+                </response>
+            </method>
+	        <resource id="cache-del" path="del">
+	        	<doc title="Cache" >
+							Allows to delete/flush (parts of) cache; parameters constraint the part of cache to be deleted;
+							no param means: delete everything
+						</doc>
+	            <method name="GET">
+	                <request>                   		
+	                	<param name="actionkey" type="xs:string" style="query" default="public" optional="yes"></param>                                     
+	                	<param name="repository" type="xs:int" style="query" default="public" optional="yes"></param>                                     
+	                	<param name="date" type="xs:date" style="query" default="public" optional="yes"></param>                                     
+	                </request>
+	                <response>
+	                		<representation mediaType="text/html"></representation>                    
+	                </response>
+	            </method>
+	        </resource>        
+        </resource>
+        
+
+    </resources>
+    
+</application>
Index: MDService2/branches/MDService_simple3/docs/MDService2.wadl.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/MDService2.wadl.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/MDService2.wadl.html	(revision 1516)
@@ -0,0 +1,917 @@
+<!DOCTYPE html
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+   <head>
+      <title>CLARIN Metadata Service</title><style type="text/css">
+                    body {
+                        font-family: sans-serif;
+                        font-size: 1em;
+                        margin: 2em 8em;
+                    }
+                    .methods {
+                        background-color: #eef;
+                        padding: 1em;
+                    }
+                    h1 {
+                        font-size: 1.6em;
+                    }
+                    h2 {
+                        border-bottom: 1px solid black;
+                        /* margin-top: 0.6em;
+                        margin-bottom: 0.2em; */
+                        font-size: 1.4em;
+                       }
+                    h3 {
+                        color: orange;
+                        font-size: 1.2em;
+                        margin-top: 0.5em;
+                        margin-bottom: 0em;
+                    }
+                    h4 {
+                        margin: 0em;
+                        padding: 0em;
+                        border-bottom: 2px solid white;
+                    }
+                    h6 {
+                        font-size: 1.1em;
+                        color: #99a;
+                        margin: 0.5em 0em 0.25em 0em;
+                    }
+                    dd {
+                        margin-left: 1em;
+                    }
+                    tt {
+                        font-size: 1.2em;
+                    }
+                    table {
+                        margin-bottom: 0.5em;
+                    }
+                    th {
+                        text-align: left;
+                        font-weight: normal;
+                        color: black;
+                        border-bottom: 1px solid black;
+                        padding: 3px 6px;
+                    }
+                    td {
+                        padding: 3px 6px;
+                        vertical-align: top;
+                        background-color: f6f6ff;
+                        font-size: 0.85em;
+                    }
+                    
+                    td p {
+                        margin: 0px;
+                    }
+                    ul {
+                        padding-left: 1.75em;
+                    }
+                    p + ul, p + ol, p + dl {
+                        margin-top: 0em;
+                    }
+                    .optional {
+                        font-weight: normal;
+                        opacity: 0.75;
+                    }
+                    /* additions */
+                    p { margin: 0.4em 0; }
+                    .resource {margin-top: 1em;
+                </style></head>
+   <body>
+      <h1>CLARIN Metadata Service</h1>
+      <p>
+         		This is a draft description of the REST-interface of <code xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/">CLARIN Metadata Service</code>. Especially the response description is very sketchy yet.<br xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/"></br>
+         	Also the <code xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/">@base</code> is an abstract one (more like a namespace). The actual URL is: <a xmlns="http://research.sun.com/wadl/2006/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" href="http://clarin.aac.ac.at/MDService2/">http://clarin.aac.ac.at/MDService2/</a>	
+         
+      </p>
+      <ul>
+         <li><a href="#resources">Resources</a><ul>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#basic-userinterface">http://cmdi.clarin.eu/mdservice/</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#collections">http://cmdi.clarin.eu/mdservice/collections/{format}/{collection}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#model">http://cmdi.clarin.eu/mdservice/model/{format}/{term}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#terms">http://cmdi.clarin.eu/mdservice/terms/{format}/{term}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#recordset">http://cmdi.clarin.eu/mdservice/recordset/{format}/</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#record">http://cmdi.clarin.eu/mdservice/record/{format}/{q}</a></li>
+            </ul>
+            <ul>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#workspaceprofile">http://cmdi.clarin.eu/mdservice/workspaceprofile/{type}</a></li>
+               <li><a href="#http://cmdi.clarin.eu/mdservice#workspaceprofilesave">http://cmdi.clarin.eu/mdservice/workspaceprofilesave</a></li>
+            </ul>
+            <ul>
+               <li><a href="#http://cmdi.clarin.eu/mdservice/admin#cache">http://cmdi.clarin.eu/mdservice/admin/cache/{format}</a><ul>
+                     <li><a href="#http://cmdi.clarin.eu/mdservice/admin#cache-del">http://cmdi.clarin.eu/mdservice/admin/cache/{format}/del</a></li>
+                  </ul>
+               </li>
+            </ul>
+         </li>
+         <li><a href="#representations">Representations</a><ul>
+               <li><a href="#d2e62">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               <li><a href="#d2e87">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Collections">mds:Collections</abbr>)</a></li>
+               <li><a href="#d2e125">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               <li><a href="#d2e170">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               <li><a href="#d2e218">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               <li><a href="#d2e255">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               <li><a href="#d2e287">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               <li><a href="#d2e308">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               <li><a href="#d2e335">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               <li><a href="#d2e358">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+            </ul>
+         </li>
+      </ul>
+      <h2 id="resources">Resources</h2>
+      <h6>resource-wide matrix parameters</h6>
+      <table>
+         <tr>
+            <th>parameter</th>
+            <th>value</th>
+            <th>description</th>
+         </tr>
+         <tr>
+            <td>
+               <p><strong>format</strong></p>
+            </td>
+            <td>
+               <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+               <p><em>One of:</em></p>
+               <ul>
+                  <li><tt>xml</tt></li>
+                  <li><tt>htmltable</tt></li>
+                  <li><tt>htmldetail</tt></li>
+                  <li><tt>htmlpage</tt></li>
+               </ul>
+            </td>
+            <td></td>
+         </tr>
+         <tr>
+            <td>
+               <p><strong>repository</strong></p>
+            </td>
+            <td>
+               <p><em><a href="http://www.w3.org/TR/xmlschema-2/#int">int</a></em></p>
+               <p>Default: <tt>1</tt></p>
+            </td>
+            <td>
+               <p>allows to dynamically select one of the available repositories for the queries.<br xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace"></br>
+                  								Probably this should be rather a semantic identifier (a string-key instead of int)
+                  							
+               </p>
+            </td>
+         </tr>
+         <tr>
+            <td>
+               <p><strong>cache</strong></p>
+            </td>
+            <td>
+               <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+               <p><em>One of:</em></p>
+               <ul>
+                  <li><tt>use</tt><small> (default)</small></li>
+                  <li><tt>skip</tt></li>
+                  <li><tt>refresh</tt></li>
+               </ul>
+            </td>
+            <td></td>
+         </tr>
+      </table>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#basic-userinterface">Default path</h4>
+         <h3>/?q&amp;squery&amp;columns&amp;collection&amp;startRecord&amp;maximumRecords</h3>
+         <p>
+            				This is the default application trying to make sense of any parameters that are passed.				
+            				So that it is possible to bookmark/send a query as a simple URI (REST at its best ;).
+            				Sot it accepts the same parameters as the search-interface, but displays the query within the main user-interface.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e36">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">CQL</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>squery</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                     </td>
+                     <td>
+                        <p>just individual terms</p>
+                     </td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>columns</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em><small> (repeating)</small></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>collection</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>startRecord</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maximumRecords</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e62">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#collections">Collections</h4>
+         <h3>/collections/{format}/{collection}?maxdepth</h3>
+         <p>
+            						This provides a summary of collections in the repository (it is passed on to <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">getCollections</code>-method of MdRepository)
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e76">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>collection</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxdepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e87">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Collections">mds:Collections</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#model">Model</h4>
+         <h3>/model/{format}/{term}?q&amp;maxdepth</h3>
+         <p>
+            						This provides a summary of the xml-structure in the repository (aggregated XML-subtrees) (it is passed on to <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">queryModel</code>-method of MdRepository)<br xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace"></br>
+            						The starting context can be part of the url (template-style) or in the q parameter.
+            						<span xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace" class="note">What happens if both are defined?</span>
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e112">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>term</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxdepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e125">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#terms">Terms</h4>
+         <h3>/terms/{format}/{term}?q&amp;maxdepth</h3>
+         <p>
+            						This combines the information from MdRepository (model-interface), Component Registry and optionally Data Category Registry
+            and RelationRegistry
+            						providing a summary of the profiles actually used in the repository together with mapping to data-categories.						
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e139">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>format</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>xml</tt></li>
+                           <li><tt>flat</tt></li>
+                           <li><tt>autocomplete</tt></li>
+                           <li><tt>htmlselect</tt></li>
+                           <li><tt>htmlpage</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>term</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>all</tt></li>
+                           <li><tt>{profile name}</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxdepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e170">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#recordset">Search</h4>
+         <h3>/recordset/{format}/?q&amp;squery&amp;columns&amp;collection&amp;startRecord&amp;maximumRecords</h3>
+         <p>
+            						This is the actual search interface allowing to retrieve MDRecords from the MDRepository.
+            						Main parameter is q expected to be a valid CQL-query. The query is translated into XPath and passed on to the <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">searchRetrieve</code>-method of MDRepository, which already returns a valid (SRU-protocol compliant) <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">searchRetrieveResponse</code>.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e190">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">CQL</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>squery</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                     </td>
+                     <td>
+                        <p>just individual terms</p>
+                     </td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>columns</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="" title="">cmdIndex</a></em><small> (repeating)</small></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>collection</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxDepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>startRecord</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maximumRecords</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <h6>request header parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>maxDepth</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#positiveInteger">positiveInteger</a></em></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e218">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#record">Record detail</h4>
+         <h3>/record/{format}/{q}?cacheid</h3>
+         <p>
+            						Special method for retrieving a full individual record. It is also translated into XPath (<code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">MdSelfLink</code>) and served by the <code xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace">searchRetrieve</code>-method of MDRepository.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e238">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>q</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#URI">URI</a></em></p>
+                     </td>
+                     <td>
+                        <p>PID - handle of the record</p>
+                     </td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>cacheid</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#int">int</a></em></p>
+                     </td>
+                     <td>
+                        <p>Proposed parameter, to remember the recordset, the record comes in from, to be able, to retrieve it directly from MDService's
+                           cache and save the trip to MDRepository (for data, that is already locally available)
+                        </p>
+                     </td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e255">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#workspaceprofile">Workspace profile</h4>
+         <h3>/workspaceprofile/{type}</h3>
+         <p>
+            						Delivers the configuration-structure. A server profile or an user specific (plus a special "default"-profile for the
+            anonymous user).<br xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cat="http://www.isocat.org/" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:mds="http://cmdi.clarin.eu/mdservice/" xmlns:sru="http://www.loc.gov/standards/sru/specs/" xmlns="http://research.sun.com/wadl/2006/10" xmlns:ns="urn:namespace"></br>
+            						The profiles are stored as xml-files on the server and handed out as JSON-files to the client.						
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e273">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>type</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>server</tt></li>
+                           <li><tt>user</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e287">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice#workspaceprofilesave">Save workspace profile</h4>
+         <h3>/workspaceprofilesave?data</h3>
+         <p>
+            						Allows to save back the configuration-file.
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e298">POST</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>data</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e308">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)</a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice/admin#cache">Cache</h4>
+         <h3>/cache/{format}</h3>
+         <p>
+            						Allows to view the cache-index
+            					
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e321">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>format</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p><em>One of:</em></p>
+                        <ul>
+                           <li><tt>xml</tt></li>
+                           <li><tt>htmlpage</tt></li>
+                        </ul>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e335">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <div class="resource">
+         <h4 id="http://cmdi.clarin.eu/mdservice/admin#cache-del">Cache</h4>
+         <h3>/cache/{format}/del?actionkey&amp;repository&amp;date</h3>
+         <p>
+            							Allows to delete/flush (parts of) cache; parameters constraint the part of cache to be deleted;
+            							no param means: delete everything
+            						
+         </p>
+         <h6>Methods</h6>
+         <div class="methods">
+            <div class="method">
+               <h4 id="d2e345">GET</h4>
+               <h6>request template,query parameters</h6>
+               <table>
+                  <tr>
+                     <th>parameter</th>
+                     <th>value</th>
+                     <th>description</th>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>actionkey</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#string">string</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>repository</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#int">int</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+                  <tr>
+                     <td>
+                        <p><strong>date</strong></p>
+                     </td>
+                     <td>
+                        <p><em><a href="http://www.w3.org/TR/xmlschema-2/#date">date</a></em></p>
+                        <p>Default: <tt>public</tt></p>
+                     </td>
+                     <td></td>
+                  </tr>
+               </table>
+               <p><em>available response representations:</em></p>
+               <ul>
+                  <li><a href="#d2e358">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></a></li>
+               </ul>
+            </div>
+         </div>
+      </div>
+      <h2 id="representations">Representations</h2>
+      <h3 id="d2e62">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></h3>
+      <h3 id="d2e87">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Collections">mds:Collections</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>collection_name</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#QName">QName</a></em><small> (repeating)</small></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//Collection</tt></li>
+                     <li>
+                        Link: <a href="##collection"></a></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e125">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>cmdIndex</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em><small> (repeating)</small></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//mds:Terms/@path</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e170">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} Terms">mds:Terms</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>cmdIndex</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em><small> (repeating)</small></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//mds:Terms/@path</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e218">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>records</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//records</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e255">application/xml (<abbr title="{http://cmdi.clarin.eu/mdservice/} searchRetrieveResponse">mds:searchRetrieveResponse</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre><h6> plain parameters</h6>
+         <table>
+            <tr>
+               <th>parameter</th>
+               <th>value</th>
+               <th>description</th>
+            </tr>
+            <tr>
+               <td>
+                  <p><strong>records</strong></p>
+               </td>
+               <td>
+                  <p><em><a href="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</a></em></p>
+               </td>
+               <td>
+                  <ul>
+                     <li>XPath to value: <tt>//records</tt></li>
+                  </ul>
+               </td>
+            </tr>
+         </table>
+      </div>
+      <h3 id="d2e287">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre></div>
+      <h3 id="d2e308">application/json (<abbr title="{http://cmdi.clarin.eu/mdservice/} WorkspaceProfile">mds:WorkspaceProfile</abbr>)
+      </h3>
+      <div class="representation">
+         <h6>XML Schema</h6>
+         <p><em>Source: <a href=""></a></em></p><pre></pre></div>
+      <h3 id="d2e335">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></h3>
+      <h3 id="d2e358">text/html<abbr title="{http://research.sun.com/wadl/2006/10} "></abbr></h3>
+   </body>
+</html>
Index: MDService2/branches/MDService_simple3/docs/javadocs/allclasses-frame.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/allclasses-frame.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/allclasses-frame.html	(revision 1516)
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+All Classes
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+
+</HEAD>
+
+<BODY BGCOLOR="white">
+<FONT size="+1" CLASS="FrameHeadingFont">
+<B>All Classes</B></FONT>
+<BR>
+
+<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+<TR>
+<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">Admin</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">Cache</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">CompRegistryProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">DCRProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">GenericProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">Helpers</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">MDRepoProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">MDTransformer</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model" target="classFrame">Query</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model" target="classFrame">QuerySet</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model" target="classFrame">Result</A>
+<BR>
+</FONT></TD>
+</TR>
+</TABLE>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/allclasses-noframe.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/allclasses-noframe.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/allclasses-noframe.html	(revision 1516)
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+All Classes
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+
+</HEAD>
+
+<BODY BGCOLOR="white">
+<FONT size="+1" CLASS="FrameHeadingFont">
+<B>All Classes</B></FONT>
+<BR>
+
+<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+<TR>
+<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action">Helpers</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model">QuerySet</A>
+<BR>
+<A HREF="eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<BR>
+</FONT></TD>
+</TR>
+</TABLE>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/constant-values.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/constant-values.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/constant-values.html	(revision 1516)
@@ -0,0 +1,246 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Constant Field Values
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Constant Field Values";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?constant-values.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="constant-values.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H1>
+Constant Field Values</H1>
+</CENTER>
+<HR SIZE="4" NOSHADE>
+<B>Contents</B><UL>
+<LI><A HREF="#eu.clarin">eu.clarin.*</A>
+</UL>
+
+<A NAME="eu.clarin"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left"><FONT SIZE="+2">
+eu.clarin.*</FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+
+<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="3">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<A NAME="eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction.serialVersionUID"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
+<CODE>private&nbsp;static&nbsp;final&nbsp;long</CODE></FONT></TD>
+<TD ALIGN="left"><CODE><A HREF="eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#serialVersionUID">serialVersionUID</A></CODE></TD>
+<TD ALIGN="right"><CODE>1L</CODE></TD>
+</TR>
+</FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<P>
+
+<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="3">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<A NAME="eu.clarin.cmdi.mdservice.action.DCRProxyAction.serialVersionUID"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
+<CODE>private&nbsp;static&nbsp;final&nbsp;long</CODE></FONT></TD>
+<TD ALIGN="left"><CODE><A HREF="eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#serialVersionUID">serialVersionUID</A></CODE></TD>
+<TD ALIGN="right"><CODE>1L</CODE></TD>
+</TR>
+</FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<P>
+
+<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="3">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<A NAME="eu.clarin.cmdi.mdservice.action.GenericProxyAction.serialVersionUID"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
+<CODE>private&nbsp;static&nbsp;final&nbsp;long</CODE></FONT></TD>
+<TD ALIGN="left"><CODE><A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#serialVersionUID">serialVersionUID</A></CODE></TD>
+<TD ALIGN="right"><CODE>1L</CODE></TD>
+</TR>
+</FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<P>
+
+<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="3">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<A NAME="eu.clarin.cmdi.mdservice.action.MDRepoProxyAction.serialVersionUID"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
+<CODE>private&nbsp;static&nbsp;final&nbsp;long</CODE></FONT></TD>
+<TD ALIGN="left"><CODE><A HREF="eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#serialVersionUID">serialVersionUID</A></CODE></TD>
+<TD ALIGN="right"><CODE>1L</CODE></TD>
+</TR>
+</FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<P>
+
+<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="3">eu.clarin.cmdi.mdservice.model.<A HREF="eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model">QuerySet</A></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<A NAME="eu.clarin.cmdi.mdservice.model.QuerySet.serialVersionUID"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
+<CODE>private&nbsp;static&nbsp;final&nbsp;long</CODE></FONT></TD>
+<TD ALIGN="left"><CODE><A HREF="eu/clarin/cmdi/mdservice/model/QuerySet.html#serialVersionUID">serialVersionUID</A></CODE></TD>
+<TD ALIGN="right"><CODE>1L</CODE></TD>
+</TR>
+</FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?constant-values.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="constant-values.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/deprecated-list.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/deprecated-list.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/deprecated-list.html	(revision 1516)
@@ -0,0 +1,146 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Deprecated List
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Deprecated List";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Deprecated</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?deprecated-list.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="deprecated-list.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Deprecated API</B></H2>
+</CENTER>
+<HR SIZE="4" NOSHADE>
+<B>Contents</B><UL>
+</UL>
+
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Deprecated</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?deprecated-list.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="deprecated-list.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Admin.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Admin.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Admin.html	(revision 1516)
@@ -0,0 +1,437 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:36 CEST 2010 -->
+<TITLE>
+Admin
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Admin";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Admin.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV CLASS&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/Admin.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Admin.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class Admin</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.Admin</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>Admin</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+Helper class, main-class to run as command-line java-app for testing
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+</DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;java.util.Properties</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#config">config</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#config_path">config_path</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#Admin()">Admin</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#copyStreams(java.io.InputStream, java.io.OutputStream)">copyStreams</A></B>(java.io.InputStream&nbsp;in,
+            java.io.OutputStream&nbsp;out)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.util.Properties</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#getConfig()">getConfig</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#loadConfig()">loadConfig</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#loadConfig(java.lang.String)">loadConfig</A></B>(java.lang.String&nbsp;configPath)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#notifyUser(java.lang.String)">notifyUser</A></B>(java.lang.String&nbsp;msg)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html#writeToFile(java.lang.String, java.io.InputStream)">writeToFile</A></B>(java.lang.String&nbsp;path,
+            java.io.InputStream&nbsp;in)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="config_path"><!-- --></A><H3>
+config_path</H3>
+<PRE>
+private static java.lang.String <B>config_path</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="config"><!-- --></A><H3>
+config</H3>
+<PRE>
+private static java.util.Properties <B>config</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="Admin()"><!-- --></A><H3>
+Admin</H3>
+<PRE>
+public <B>Admin</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="main(java.lang.String[])"><!-- --></A><H3>
+main</H3>
+<PRE>
+public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="loadConfig()"><!-- --></A><H3>
+loadConfig</H3>
+<PRE>
+public static void <B>loadConfig</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="loadConfig(java.lang.String)"><!-- --></A><H3>
+loadConfig</H3>
+<PRE>
+public static void <B>loadConfig</B>(java.lang.String&nbsp;configPath)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getConfig()"><!-- --></A><H3>
+getConfig</H3>
+<PRE>
+public static java.util.Properties <B>getConfig</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="notifyUser(java.lang.String)"><!-- --></A><H3>
+notifyUser</H3>
+<PRE>
+public static void <B>notifyUser</B>(java.lang.String&nbsp;msg)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyStreams(java.io.InputStream, java.io.OutputStream)"><!-- --></A><H3>
+copyStreams</H3>
+<PRE>
+public static void <B>copyStreams</B>(java.io.InputStream&nbsp;in,
+                               java.io.OutputStream&nbsp;out)
+                        throws java.io.IOException,
+                               java.lang.InterruptedException</PRE>
+<DL>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.io.IOException</CODE>
+<DD><CODE>java.lang.InterruptedException</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="writeToFile(java.lang.String, java.io.InputStream)"><!-- --></A><H3>
+writeToFile</H3>
+<PRE>
+public static void <B>writeToFile</B>(java.lang.String&nbsp;path,
+                               java.io.InputStream&nbsp;in)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Admin.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV CLASS&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/Admin.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Admin.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Cache.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Cache.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Cache.html	(revision 1516)
@@ -0,0 +1,543 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:36 CEST 2010 -->
+<TITLE>
+Cache
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Cache";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Cache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/Cache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Cache.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class Cache</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.Cache</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>Cache</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+This is a rudimentary caching mechanism.
+ serializes the inputstream to a file (identifier => filename)
+ and returns the inpustream based on the identifier
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>master</DD>
+</DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.Integer</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#cachecounter">cachecounter</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#cachepath">cachepath</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#PREFIX">PREFIX</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#singleton">singleton</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;java.lang.Integer</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#start_cache">start_cache</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#Cache()">Cache</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>protected &nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#finalize()">finalize</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#formPath(java.lang.String)">formPath</A></B>(java.lang.String&nbsp;id)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#getCache()">getCache</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.Integer</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#getCounter()">getCounter</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#getFromCache(java.lang.String)">getFromCache</A></B>(java.lang.String&nbsp;id)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.Integer</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#initCachecounter()">initCachecounter</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read counter-integer from file in cache
+ or start that file</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#putInCache(java.lang.String, java.io.InputStream)">putInCache</A></B>(java.lang.String&nbsp;id,
+           java.io.InputStream&nbsp;instream)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;here the external key for the data gets cache-internal counter-id assigned
+ which is also returned back
+ can be used (as shorthand instead of the (long) external key) from outside to retrieve the data.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#updateCachecounter()">updateCachecounter</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#writeCachecounter(java.lang.Integer)">writeCachecounter</A></B>(java.lang.Integer&nbsp;i)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="PREFIX"><!-- --></A><H3>
+PREFIX</H3>
+<PRE>
+public static java.lang.String <B>PREFIX</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="singleton"><!-- --></A><H3>
+singleton</H3>
+<PRE>
+private static <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A> <B>singleton</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="cachepath"><!-- --></A><H3>
+cachepath</H3>
+<PRE>
+private java.lang.String <B>cachepath</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="cachecounter"><!-- --></A><H3>
+cachecounter</H3>
+<PRE>
+private java.lang.Integer <B>cachecounter</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="start_cache"><!-- --></A><H3>
+start_cache</H3>
+<PRE>
+private static final java.lang.Integer <B>start_cache</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="Cache()"><!-- --></A><H3>
+Cache</H3>
+<PRE>
+public <B>Cache</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="getCache()"><!-- --></A><H3>
+getCache</H3>
+<PRE>
+public static <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A> <B>getCache</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="finalize()"><!-- --></A><H3>
+finalize</H3>
+<PRE>
+protected void <B>finalize</B>()
+                 throws java.lang.Throwable</PRE>
+<DL>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE>finalize</CODE> in class <CODE>java.lang.Object</CODE></DL>
+</DD>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Throwable</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putInCache(java.lang.String, java.io.InputStream)"><!-- --></A><H3>
+putInCache</H3>
+<PRE>
+public java.lang.String <B>putInCache</B>(java.lang.String&nbsp;id,
+                                   java.io.InputStream&nbsp;instream)</PRE>
+<DL>
+<DD>here the external key for the data gets cache-internal counter-id assigned
+ which is also returned back
+ can be used (as shorthand instead of the (long) external key) from outside to retrieve the data.
+ This is primarily meant to be able to reuse the recordset-data, when reading one record.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>id</CODE> - <DD><CODE>instream</CODE> - 
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getFromCache(java.lang.String)"><!-- --></A><H3>
+getFromCache</H3>
+<PRE>
+public java.io.InputStream <B>getFromCache</B>(java.lang.String&nbsp;id)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="formPath(java.lang.String)"><!-- --></A><H3>
+formPath</H3>
+<PRE>
+public java.lang.String <B>formPath</B>(java.lang.String&nbsp;id)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getCounter()"><!-- --></A><H3>
+getCounter</H3>
+<PRE>
+public java.lang.Integer <B>getCounter</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="initCachecounter()"><!-- --></A><H3>
+initCachecounter</H3>
+<PRE>
+public java.lang.Integer <B>initCachecounter</B>()</PRE>
+<DL>
+<DD>read counter-integer from file in cache
+ or start that file
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="updateCachecounter()"><!-- --></A><H3>
+updateCachecounter</H3>
+<PRE>
+public void <B>updateCachecounter</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="writeCachecounter(java.lang.Integer)"><!-- --></A><H3>
+writeCachecounter</H3>
+<PRE>
+public void <B>writeCachecounter</B>(java.lang.Integer&nbsp;i)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Cache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/Cache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Cache.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html	(revision 1516)
@@ -0,0 +1,500 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:36 CEST 2010 -->
+<TITLE>
+CompRegistryProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="CompRegistryProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CompRegistryProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="CompRegistryProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class CompRegistryProxyAction</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">com.opensymphony.xwork2.ActionSupport
+      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">eu.clarin.cmdi.mdservice.action.GenericProxyAction</A>
+          <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction</B>
+</PRE>
+<DL>
+<DT><B>All Implemented Interfaces:</B> <DD>com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable</DD>
+</DL>
+<HR>
+<DL>
+<DT><PRE>public class <B>CompRegistryProxyAction</B><DT>extends <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></DL>
+</PRE>
+
+<P>
+Acts as a Struts 2 controller 
+ serves the requests regarding Components
+ it passes them further (Proxy) to the ComponentRegistry.
+  
+ Nested Components are resolved during xsl-transformation.
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction">Serialized Form</A></DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#compid">compid</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#proxy_key">proxy_key</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#serialVersionUID">serialVersionUID</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>LOG</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.Action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from interface com.opensymphony.xwork2.Action</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>ERROR, INPUT, LOGIN, NONE, SUCCESS</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#CompRegistryProxyAction()">CompRegistryProxyAction</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getCompid()">getCompid</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getFullFormat()">getFullFormat</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getProxyKey()">getProxyKey</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;primitive identification of the target-proxy
+ base for finding the right base_url in the props
+ subclass has to override with its specific proxykey</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getRequestKey()">getRequestKey</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getTargetRequest()">getTargetRequest</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uses base_url and (optionally) compid to form a url
+ no compid => list all components/profiles</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#setCompid(java.lang.String)">setCompid</A></B>(java.lang.String&nbsp;compid)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_eu.clarin.cmdi.mdservice.action.GenericProxyAction"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#execute()">execute</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getActionkey()">getActionkey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getBaseURL()">getBaseURL</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getCollection()">getCollection</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFormat()">getFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getMaxdepth()">getMaxdepth</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getQ()">getQ</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getResultStream()">getResultStream</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getUserMsg()">getUserMsg</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#prepare()">prepare</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setActionkey(java.lang.String)">setActionkey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setCollection(java.lang.String)">setCollection</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setFormat(java.lang.String)">setFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setMaxdepth(int)">setMaxdepth</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setQ(java.lang.String)">setQ</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setUserMsg(java.lang.String)">setUserMsg</A></CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="serialVersionUID"><!-- --></A><H3>
+serialVersionUID</H3>
+<PRE>
+private static final long <B>serialVersionUID</B></PRE>
+<DL>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction.serialVersionUID">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="proxy_key"><!-- --></A><H3>
+proxy_key</H3>
+<PRE>
+private java.lang.String <B>proxy_key</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="compid"><!-- --></A><H3>
+compid</H3>
+<PRE>
+private java.lang.String <B>compid</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="CompRegistryProxyAction()"><!-- --></A><H3>
+CompRegistryProxyAction</H3>
+<PRE>
+public <B>CompRegistryProxyAction</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="getCompid()"><!-- --></A><H3>
+getCompid</H3>
+<PRE>
+public java.lang.String <B>getCompid</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setCompid(java.lang.String)"><!-- --></A><H3>
+setCompid</H3>
+<PRE>
+public void <B>setCompid</B>(java.lang.String&nbsp;compid)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getFullFormat()"><!-- --></A><H3>
+getFullFormat</H3>
+<PRE>
+public java.lang.String <B>getFullFormat</B>()</PRE>
+<DL>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFullFormat()">getFullFormat</A></CODE> in class <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></CODE></DL>
+</DD>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getProxyKey()"><!-- --></A><H3>
+getProxyKey</H3>
+<PRE>
+public java.lang.String <B>getProxyKey</B>()</PRE>
+<DL>
+<DD><B>Description copied from class: <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getProxyKey()">GenericProxyAction</A></CODE></B></DD>
+<DD>primitive identification of the target-proxy
+ base for finding the right base_url in the props
+ subclass has to override with its specific proxykey
+<P>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getProxyKey()">getProxyKey</A></CODE> in class <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></CODE></DL>
+</DD>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getRequestKey()"><!-- --></A><H3>
+getRequestKey</H3>
+<PRE>
+public java.lang.String <B>getRequestKey</B>()</PRE>
+<DL>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getRequestKey()">getRequestKey</A></CODE> in class <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></CODE></DL>
+</DD>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getTargetRequest()"><!-- --></A><H3>
+getTargetRequest</H3>
+<PRE>
+public java.net.URL <B>getTargetRequest</B>()
+                              throws java.lang.Exception</PRE>
+<DL>
+<DD>uses base_url and (optionally) compid to form a url
+ no compid => list all components/profiles
+<P>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getTargetRequest()">getTargetRequest</A></CODE> in class <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></CODE></DL>
+</DD>
+<DD><DL>
+
+<DT><B>Returns:</B><DD>the URL to component-registry
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Exception</CODE></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CompRegistryProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="CompRegistryProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/DCRProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/DCRProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/DCRProxyAction.html	(revision 1516)
@@ -0,0 +1,368 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:36 CEST 2010 -->
+<TITLE>
+DCRProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="DCRProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DCRProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="DCRProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class DCRProxyAction</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">com.opensymphony.xwork2.ActionSupport
+      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">eu.clarin.cmdi.mdservice.action.GenericProxyAction</A>
+          <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.DCRProxyAction</B>
+</PRE>
+<DL>
+<DT><B>All Implemented Interfaces:</B> <DD>com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable</DD>
+</DL>
+<HR>
+<DL>
+<DT><PRE>public class <B>DCRProxyAction</B><DT>extends <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></DL>
+</PRE>
+
+<P>
+Acts as a Struts 2 controller 
+ serves the requests regarding DataCategories
+ it passes them further (Proxy) to the Data Category Registry.
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#eu.clarin.cmdi.mdservice.action.DCRProxyAction">Serialized Form</A></DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#proxy_key">proxy_key</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#serialVersionUID">serialVersionUID</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>LOG</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.Action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from interface com.opensymphony.xwork2.Action</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>ERROR, INPUT, LOGIN, NONE, SUCCESS</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#DCRProxyAction()">DCRProxyAction</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#getTargetRequest()">getTargetRequest</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uses base_url and (optionally) id to form a url
+ no id => ?</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_eu.clarin.cmdi.mdservice.action.GenericProxyAction"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#execute()">execute</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getActionkey()">getActionkey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getBaseURL()">getBaseURL</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getCollection()">getCollection</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFormat()">getFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFullFormat()">getFullFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getMaxdepth()">getMaxdepth</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getProxyKey()">getProxyKey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getQ()">getQ</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getRequestKey()">getRequestKey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getResultStream()">getResultStream</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getUserMsg()">getUserMsg</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#prepare()">prepare</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setActionkey(java.lang.String)">setActionkey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setCollection(java.lang.String)">setCollection</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setFormat(java.lang.String)">setFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setMaxdepth(int)">setMaxdepth</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setQ(java.lang.String)">setQ</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setUserMsg(java.lang.String)">setUserMsg</A></CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="serialVersionUID"><!-- --></A><H3>
+serialVersionUID</H3>
+<PRE>
+private static final long <B>serialVersionUID</B></PRE>
+<DL>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#eu.clarin.cmdi.mdservice.action.DCRProxyAction.serialVersionUID">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="proxy_key"><!-- --></A><H3>
+proxy_key</H3>
+<PRE>
+private java.lang.String <B>proxy_key</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="DCRProxyAction()"><!-- --></A><H3>
+DCRProxyAction</H3>
+<PRE>
+public <B>DCRProxyAction</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="getTargetRequest()"><!-- --></A><H3>
+getTargetRequest</H3>
+<PRE>
+public java.net.URL <B>getTargetRequest</B>()
+                              throws java.lang.Exception</PRE>
+<DL>
+<DD>uses base_url and (optionally) id to form a url
+ no id => ?list all datacategories?
+<P>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getTargetRequest()">getTargetRequest</A></CODE> in class <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></CODE></DL>
+</DD>
+<DD><DL>
+
+<DT><B>Returns:</B><DD>the URL to data category xml format
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Exception</CODE></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DCRProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="DCRProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/GenericProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/GenericProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/GenericProxyAction.html	(revision 1516)
@@ -0,0 +1,884 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+GenericProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="GenericProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GenericProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="GenericProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class GenericProxyAction</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">com.opensymphony.xwork2.ActionSupport
+      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.GenericProxyAction</B>
+</PRE>
+<DL>
+<DT><B>All Implemented Interfaces:</B> <DD>com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable</DD>
+</DL>
+<DL>
+<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A></DD>
+</DL>
+<HR>
+<DL>
+<DT><PRE>public class <B>GenericProxyAction</B><DT>extends com.opensymphony.xwork2.ActionSupport</DL>
+</PRE>
+
+<P>
+main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#eu.clarin.cmdi.mdservice.action.GenericProxyAction">Serialized Form</A></DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#actionkey">actionkey</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Properties to be filled by Struts with according request-parameters</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#base_url">base_url</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#collection">collection</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#format">format</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#maxdepth">maxdepth</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#q">q</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#resultStream">resultStream</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#serialVersionUID">serialVersionUID</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#sourceStream">sourceStream</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#userMsg">userMsg</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>LOG</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.Action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from interface com.opensymphony.xwork2.Action</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>ERROR, INPUT, LOGIN, NONE, SUCCESS</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#GenericProxyAction()">GenericProxyAction</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#execute()">execute</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default Action method</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getActionkey()">getActionkey</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getBaseURL()">getBaseURL</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getCollection()">getCollection</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFormat()">getFormat</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFullFormat()">getFullFormat</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getMaxdepth()">getMaxdepth</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getProxyKey()">getProxyKey</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;primitive identification of the target-proxy
+ base for finding the right base_url in the props
+ subclass has to override with its specific proxykey</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getQ()">getQ</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getRequestKey()">getRequestKey</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getResultStream()">getResultStream</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The stream holding the resulting data to be sent back to the user as response</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getTargetRequest()">getTargetRequest</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getUserMsg()">getUserMsg</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#prepare()">prepare</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setActionkey(java.lang.String)">setActionkey</A></B>(java.lang.String&nbsp;actionKey)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setCollection(java.lang.String)">setCollection</A></B>(java.lang.String&nbsp;collection)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setFormat(java.lang.String)">setFormat</A></B>(java.lang.String&nbsp;format)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setMaxdepth(int)">setMaxdepth</A></B>(int&nbsp;maxdepth)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setQ(java.lang.String)">setQ</A></B>(java.lang.String&nbsp;q)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setUserMsg(java.lang.String)">setUserMsg</A></B>(java.lang.String&nbsp;userMsg)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="serialVersionUID"><!-- --></A><H3>
+serialVersionUID</H3>
+<PRE>
+private static final long <B>serialVersionUID</B></PRE>
+<DL>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#eu.clarin.cmdi.mdservice.action.GenericProxyAction.serialVersionUID">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="actionkey"><!-- --></A><H3>
+actionkey</H3>
+<PRE>
+private java.lang.String <B>actionkey</B></PRE>
+<DL>
+<DD>Properties to be filled by Struts with according request-parameters
+<P>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="q"><!-- --></A><H3>
+q</H3>
+<PRE>
+private java.lang.String <B>q</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="collection"><!-- --></A><H3>
+collection</H3>
+<PRE>
+private java.lang.String <B>collection</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="maxdepth"><!-- --></A><H3>
+maxdepth</H3>
+<PRE>
+private int <B>maxdepth</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="format"><!-- --></A><H3>
+format</H3>
+<PRE>
+private java.lang.String <B>format</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="userMsg"><!-- --></A><H3>
+userMsg</H3>
+<PRE>
+private java.lang.String <B>userMsg</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="resultStream"><!-- --></A><H3>
+resultStream</H3>
+<PRE>
+private java.io.InputStream <B>resultStream</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="sourceStream"><!-- --></A><H3>
+sourceStream</H3>
+<PRE>
+private java.io.InputStream <B>sourceStream</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="base_url"><!-- --></A><H3>
+base_url</H3>
+<PRE>
+private java.net.URL <B>base_url</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="GenericProxyAction()"><!-- --></A><H3>
+GenericProxyAction</H3>
+<PRE>
+public <B>GenericProxyAction</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="getQ()"><!-- --></A><H3>
+getQ</H3>
+<PRE>
+public java.lang.String <B>getQ</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setQ(java.lang.String)"><!-- --></A><H3>
+setQ</H3>
+<PRE>
+public void <B>setQ</B>(java.lang.String&nbsp;q)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getCollection()"><!-- --></A><H3>
+getCollection</H3>
+<PRE>
+public java.lang.String <B>getCollection</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setCollection(java.lang.String)"><!-- --></A><H3>
+setCollection</H3>
+<PRE>
+public void <B>setCollection</B>(java.lang.String&nbsp;collection)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getMaxdepth()"><!-- --></A><H3>
+getMaxdepth</H3>
+<PRE>
+public int <B>getMaxdepth</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setMaxdepth(int)"><!-- --></A><H3>
+setMaxdepth</H3>
+<PRE>
+public void <B>setMaxdepth</B>(int&nbsp;maxdepth)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getFormat()"><!-- --></A><H3>
+getFormat</H3>
+<PRE>
+public java.lang.String <B>getFormat</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setFormat(java.lang.String)"><!-- --></A><H3>
+setFormat</H3>
+<PRE>
+public void <B>setFormat</B>(java.lang.String&nbsp;format)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getActionkey()"><!-- --></A><H3>
+getActionkey</H3>
+<PRE>
+public java.lang.String <B>getActionkey</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setActionkey(java.lang.String)"><!-- --></A><H3>
+setActionkey</H3>
+<PRE>
+public void <B>setActionkey</B>(java.lang.String&nbsp;actionKey)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getFullFormat()"><!-- --></A><H3>
+getFullFormat</H3>
+<PRE>
+public java.lang.String <B>getFullFormat</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getProxyKey()"><!-- --></A><H3>
+getProxyKey</H3>
+<PRE>
+public java.lang.String <B>getProxyKey</B>()</PRE>
+<DL>
+<DD>primitive identification of the target-proxy
+ base for finding the right base_url in the props
+ subclass has to override with its specific proxykey
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getUserMsg()"><!-- --></A><H3>
+getUserMsg</H3>
+<PRE>
+public java.lang.String <B>getUserMsg</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setUserMsg(java.lang.String)"><!-- --></A><H3>
+setUserMsg</H3>
+<PRE>
+public void <B>setUserMsg</B>(java.lang.String&nbsp;userMsg)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getResultStream()"><!-- --></A><H3>
+getResultStream</H3>
+<PRE>
+public java.io.InputStream <B>getResultStream</B>()</PRE>
+<DL>
+<DD>The stream holding the resulting data to be sent back to the user as response
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getBaseURL()"><!-- --></A><H3>
+getBaseURL</H3>
+<PRE>
+public java.net.URL <B>getBaseURL</B>()
+                        throws java.lang.Exception</PRE>
+<DL>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Exception</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getTargetRequest()"><!-- --></A><H3>
+getTargetRequest</H3>
+<PRE>
+public java.net.URL <B>getTargetRequest</B>()
+                              throws java.lang.Exception</PRE>
+<DL>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Exception</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getRequestKey()"><!-- --></A><H3>
+getRequestKey</H3>
+<PRE>
+public java.lang.String <B>getRequestKey</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="prepare()"><!-- --></A><H3>
+prepare</H3>
+<PRE>
+public void <B>prepare</B>()
+             throws java.lang.Exception</PRE>
+<DL>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Exception</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="execute()"><!-- --></A><H3>
+execute</H3>
+<PRE>
+public java.lang.String <B>execute</B>()
+                         throws java.lang.Exception</PRE>
+<DL>
+<DD>default Action method
+<P>
+<DD><DL>
+<DT><B>Specified by:</B><DD><CODE>execute</CODE> in interface <CODE>com.opensymphony.xwork2.Action</CODE><DT><B>Overrides:</B><DD><CODE>execute</CODE> in class <CODE>com.opensymphony.xwork2.ActionSupport</CODE></DL>
+</DD>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Exception</CODE></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GenericProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="GenericProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Helpers.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Helpers.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/Helpers.html	(revision 1516)
@@ -0,0 +1,333 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Helpers
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Helpers";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Helpers.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/Helpers.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Helpers.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class Helpers</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.Helpers</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>Helpers</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;java.io.PrintStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html#log">log</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html#Helpers()">Helpers</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html#copy(java.io.InputStream, java.io.OutputStream)">copy</A></B>(java.io.InputStream&nbsp;in,
+     java.io.OutputStream&nbsp;out)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html#notifyUser(java.lang.String)">notifyUser</A></B>(java.lang.String&nbsp;msg)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;org.w3c.dom.Document</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html#readFSLS(java.lang.String)">readFSLS</A></B>(java.lang.String&nbsp;infile)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="log"><!-- --></A><H3>
+log</H3>
+<PRE>
+private static java.io.PrintStream <B>log</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="Helpers()"><!-- --></A><H3>
+Helpers</H3>
+<PRE>
+public <B>Helpers</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="readFSLS(java.lang.String)"><!-- --></A><H3>
+readFSLS</H3>
+<PRE>
+public static org.w3c.dom.Document <B>readFSLS</B>(java.lang.String&nbsp;infile)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="notifyUser(java.lang.String)"><!-- --></A><H3>
+notifyUser</H3>
+<PRE>
+public static void <B>notifyUser</B>(java.lang.String&nbsp;msg)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copy(java.io.InputStream, java.io.OutputStream)"><!-- --></A><H3>
+copy</H3>
+<PRE>
+public static void <B>copy</B>(java.io.InputStream&nbsp;in,
+                        java.io.OutputStream&nbsp;out)
+                 throws java.io.IOException,
+                        java.lang.InterruptedException</PRE>
+<DL>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.io.IOException</CODE>
+<DD><CODE>java.lang.InterruptedException</CODE></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Helpers.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/Helpers.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Helpers.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html	(revision 1516)
@@ -0,0 +1,414 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+MDRepoProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="MDRepoProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MDRepoProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDRepoProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class MDRepoProxyAction</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">com.opensymphony.xwork2.ActionSupport
+      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">eu.clarin.cmdi.mdservice.action.GenericProxyAction</A>
+          <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.MDRepoProxyAction</B>
+</PRE>
+<DL>
+<DT><B>All Implemented Interfaces:</B> <DD>com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable</DD>
+</DL>
+<HR>
+<DL>
+<DT><PRE>public class <B>MDRepoProxyAction</B><DT>extends <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></DL>
+</PRE>
+
+<P>
+Main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#eu.clarin.cmdi.mdservice.action.MDRepoProxyAction">Serialized Form</A></DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#proxy_key">proxy_key</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#serialVersionUID">serialVersionUID</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;java.util.HashMap&lt;java.lang.String,java.lang.String&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#urls">urls</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>LOG</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_com.opensymphony.xwork2.Action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from interface com.opensymphony.xwork2.Action</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>ERROR, INPUT, LOGIN, NONE, SUCCESS</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#MDRepoProxyAction()">MDRepoProxyAction</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#getProxyKey()">getProxyKey</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;primitive identification of the target-proxy
+ base for finding the right base_url in the props
+ subclass has to override with its specific proxykey</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#getTargetRequest()">getTargetRequest</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uses base_url + url_pattern (parametrized by actionkey) to form a url</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_eu.clarin.cmdi.mdservice.action.GenericProxyAction"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#execute()">execute</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getActionkey()">getActionkey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getBaseURL()">getBaseURL</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getCollection()">getCollection</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFormat()">getFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFullFormat()">getFullFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getMaxdepth()">getMaxdepth</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getQ()">getQ</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getRequestKey()">getRequestKey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getResultStream()">getResultStream</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getUserMsg()">getUserMsg</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#prepare()">prepare</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setActionkey(java.lang.String)">setActionkey</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setCollection(java.lang.String)">setCollection</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setFormat(java.lang.String)">setFormat</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setMaxdepth(int)">setMaxdepth</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setQ(java.lang.String)">setQ</A>, <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setUserMsg(java.lang.String)">setUserMsg</A></CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_com.opensymphony.xwork2.ActionSupport"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class com.opensymphony.xwork2.ActionSupport</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="serialVersionUID"><!-- --></A><H3>
+serialVersionUID</H3>
+<PRE>
+private static final long <B>serialVersionUID</B></PRE>
+<DL>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#eu.clarin.cmdi.mdservice.action.MDRepoProxyAction.serialVersionUID">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="proxy_key"><!-- --></A><H3>
+proxy_key</H3>
+<PRE>
+private java.lang.String <B>proxy_key</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="urls"><!-- --></A><H3>
+urls</H3>
+<PRE>
+private static final java.util.HashMap&lt;java.lang.String,java.lang.String&gt; <B>urls</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="MDRepoProxyAction()"><!-- --></A><H3>
+MDRepoProxyAction</H3>
+<PRE>
+public <B>MDRepoProxyAction</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="getProxyKey()"><!-- --></A><H3>
+getProxyKey</H3>
+<PRE>
+public java.lang.String <B>getProxyKey</B>()</PRE>
+<DL>
+<DD><B>Description copied from class: <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getProxyKey()">GenericProxyAction</A></CODE></B></DD>
+<DD>primitive identification of the target-proxy
+ base for finding the right base_url in the props
+ subclass has to override with its specific proxykey
+<P>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getProxyKey()">getProxyKey</A></CODE> in class <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></CODE></DL>
+</DD>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getTargetRequest()"><!-- --></A><H3>
+getTargetRequest</H3>
+<PRE>
+public java.net.URL <B>getTargetRequest</B>()
+                              throws java.lang.Exception</PRE>
+<DL>
+<DD>uses base_url + url_pattern (parametrized by actionkey) to form a url
+<P>
+<DD><DL>
+<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getTargetRequest()">getTargetRequest</A></CODE> in class <CODE><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></CODE></DL>
+</DD>
+<DD><DL>
+
+<DT><B>Returns:</B><DD>the URL to the component-file
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.Exception</CODE></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MDRepoProxyAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDRepoProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/MDTransformer.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/MDTransformer.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/MDTransformer.html	(revision 1516)
@@ -0,0 +1,494 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+MDTransformer
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="MDTransformer";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MDTransformer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;NEXT CLASS</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/MDTransformer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDTransformer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.action</FONT>
+<BR>
+Class MDTransformer</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.action.MDTransformer</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>MDTransformer</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+Helper class, encapsulating the xsl-transformations handling
+ the contract is, that the requester passes a key, which can be resolved to a xsl-script (momentary mapped in properties: Admin.getConfig())
+ Bad things happen, if the key or the appropriate xsl-file do not exist
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+</DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#singleton">singleton</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#srcFile">srcFile</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>(package private) &nbsp;javax.xml.transform.TransformerFactory</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#tfactory">tfactory</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#MDTransformer()">MDTransformer</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#getMDTransformer()">getMDTransformer</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#getXSLPath(java.lang.String)">getXSLPath</A></B>(java.lang.String&nbsp;key)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get the path to the transform-xsl file from properties, based on the key</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;javax.xml.transform.stream.StreamSource</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#getXSLStreamSource(java.lang.String)">getXSLStreamSource</A></B>(java.lang.String&nbsp;key)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.io.InputStream, java.lang.String)">transformXML</A></B>(java.io.InputStream&nbsp;xmlStream,
+             java.lang.String&nbsp;transkey)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;just a wrapper for the main method translating the output-stream into a input-stream (expected by the Controller-Actions to return as response)</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.io.InputStream, java.lang.String, java.io.OutputStream)">transformXML</A></B>(java.io.InputStream&nbsp;in,
+             java.lang.String&nbsp;transkey,
+             java.io.OutputStream&nbsp;out)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The main method for transforming, applies the appropriate (based on the transkey) stylesheet on the xml-stream
+ and writes the result into the output stream.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.lang.String, java.lang.String)">transformXML</A></B>(java.lang.String&nbsp;xml,
+             java.lang.String&nbsp;transkey)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this is for xml present as string.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.net.URL, java.lang.String)">transformXML</A></B>(java.net.URL&nbsp;xmlFile,
+             java.lang.String&nbsp;transkey)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;another wrapper for the main method allowing to directly pass a URL to the source-xml</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="srcFile"><!-- --></A><H3>
+srcFile</H3>
+<PRE>
+private java.net.URL <B>srcFile</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="singleton"><!-- --></A><H3>
+singleton</H3>
+<PRE>
+private static <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A> <B>singleton</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="tfactory"><!-- --></A><H3>
+tfactory</H3>
+<PRE>
+javax.xml.transform.TransformerFactory <B>tfactory</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="MDTransformer()"><!-- --></A><H3>
+MDTransformer</H3>
+<PRE>
+public <B>MDTransformer</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="getMDTransformer()"><!-- --></A><H3>
+getMDTransformer</H3>
+<PRE>
+public static <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A> <B>getMDTransformer</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getXSLPath(java.lang.String)"><!-- --></A><H3>
+getXSLPath</H3>
+<PRE>
+private java.lang.String <B>getXSLPath</B>(java.lang.String&nbsp;key)</PRE>
+<DL>
+<DD>get the path to the transform-xsl file from properties, based on the key
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>key</CODE> - 
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getXSLStreamSource(java.lang.String)"><!-- --></A><H3>
+getXSLStreamSource</H3>
+<PRE>
+private javax.xml.transform.stream.StreamSource <B>getXSLStreamSource</B>(java.lang.String&nbsp;key)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="transformXML(java.io.InputStream, java.lang.String, java.io.OutputStream)"><!-- --></A><H3>
+transformXML</H3>
+<PRE>
+public void <B>transformXML</B>(java.io.InputStream&nbsp;in,
+                         java.lang.String&nbsp;transkey,
+                         java.io.OutputStream&nbsp;out)
+                  throws javax.xml.transform.TransformerException,
+                         java.io.IOException</PRE>
+<DL>
+<DD>The main method for transforming, applies the appropriate (based on the transkey) stylesheet on the xml-stream
+ and writes the result into the output stream.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>in</CODE> - InpuStream with xml<DD><CODE>transkey</CODE> - this defines the stylesheet to use and is also passed to the stylesheet as "format"-parameter<DD><CODE>out</CODE> - the stream to write the output to
+<DT><B>Throws:</B>
+<DD><CODE>javax.xml.transform.TransformerException</CODE>
+<DD><CODE>java.io.IOException</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="transformXML(java.io.InputStream, java.lang.String)"><!-- --></A><H3>
+transformXML</H3>
+<PRE>
+public java.io.InputStream <B>transformXML</B>(java.io.InputStream&nbsp;xmlStream,
+                                        java.lang.String&nbsp;transkey)
+                                 throws java.io.IOException,
+                                        java.lang.InterruptedException,
+                                        javax.xml.transform.TransformerException</PRE>
+<DL>
+<DD>just a wrapper for the main method translating the output-stream into a input-stream (expected by the Controller-Actions to return as response)
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>xmlStream</CODE> - the source xml stream<DD><CODE>transkey</CODE> - 
+<DT><B>Returns:</B><DD>result-stream (converted to InputStream)
+<DT><B>Throws:</B>
+<DD><CODE>java.io.IOException</CODE>
+<DD><CODE>java.lang.InterruptedException</CODE>
+<DD><CODE>javax.xml.transform.TransformerException</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="transformXML(java.net.URL, java.lang.String)"><!-- --></A><H3>
+transformXML</H3>
+<PRE>
+public java.io.InputStream <B>transformXML</B>(java.net.URL&nbsp;xmlFile,
+                                        java.lang.String&nbsp;transkey)
+                                 throws java.io.IOException,
+                                        java.lang.InterruptedException,
+                                        javax.xml.transform.TransformerException</PRE>
+<DL>
+<DD>another wrapper for the main method allowing to directly pass a URL to the source-xml
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>xmlFile</CODE> - URL of the source-file<DD><CODE>transkey</CODE> - 
+<DT><B>Returns:</B><DD>the result-stream (already converted to an InputStream)
+<DT><B>Throws:</B>
+<DD><CODE>javax.xml.transform.TransformerException</CODE>
+<DD><CODE>java.io.IOException</CODE>
+<DD><CODE>java.lang.InterruptedException</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="transformXML(java.lang.String, java.lang.String)"><!-- --></A><H3>
+transformXML</H3>
+<PRE>
+public java.lang.String <B>transformXML</B>(java.lang.String&nbsp;xml,
+                                     java.lang.String&nbsp;transkey)</PRE>
+<DL>
+<DD>this is for xml present as string.
+ if xml in a file or a stream, use the other methods
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>xml</CODE> - xml as string<DD><CODE>transkey</CODE> - 
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MDTransformer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;NEXT CLASS</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/MDTransformer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDTransformer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Admin.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Admin.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Admin.html	(revision 1516)
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.Admin
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.Admin";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useAdmin.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Admin.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.Admin</B></H2>
+</CENTER>
+No usage of eu.clarin.cmdi.mdservice.action.Admin
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useAdmin.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Admin.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Cache.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Cache.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Cache.html	(revision 1516)
@@ -0,0 +1,196 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.Cache
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.Cache";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useCache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Cache.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.Cache</B></H2>
+</CENTER>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Packages that use <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><A HREF="#eu.clarin.cmdi.mdservice.action"><B>eu.clarin.cmdi.mdservice.action</B></A></TD>
+<TD>&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Uses of <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A> in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A></FONT></TH>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A> declared as <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></CODE></FONT></TD>
+<TD><CODE><B>Cache.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#singleton">singleton</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A> that return <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></CODE></FONT></TD>
+<TD><CODE><B>Cache.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html#getCache()">getCache</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useCache.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Cache.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/CompRegistryProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/CompRegistryProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/CompRegistryProxyAction.html	(revision 1516)
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useCompRegistryProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="CompRegistryProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction</B></H2>
+</CENTER>
+No usage of eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useCompRegistryProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="CompRegistryProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/DCRProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/DCRProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/DCRProxyAction.html	(revision 1516)
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.DCRProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.DCRProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useDCRProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="DCRProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.DCRProxyAction</B></H2>
+</CENTER>
+No usage of eu.clarin.cmdi.mdservice.action.DCRProxyAction
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useDCRProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="DCRProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/GenericProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/GenericProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/GenericProxyAction.html	(revision 1516)
@@ -0,0 +1,202 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.GenericProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.GenericProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useGenericProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="GenericProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.GenericProxyAction</B></H2>
+</CENTER>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Packages that use <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><A HREF="#eu.clarin.cmdi.mdservice.action"><B>eu.clarin.cmdi.mdservice.action</B></A></TD>
+<TD>&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Uses of <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A> in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A></FONT></TH>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Subclasses of <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A> in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;class</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Acts as a Struts 2 controller 
+ serves the requests regarding Components
+ it passes them further (Proxy) to the ComponentRegistry.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;class</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Acts as a Struts 2 controller 
+ serves the requests regarding DataCategories
+ it passes them further (Proxy) to the Data Category Registry.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;class</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useGenericProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="GenericProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Helpers.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Helpers.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/Helpers.html	(revision 1516)
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.Helpers
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.Helpers";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useHelpers.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Helpers.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.Helpers</B></H2>
+</CENTER>
+No usage of eu.clarin.cmdi.mdservice.action.Helpers
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useHelpers.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Helpers.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/MDRepoProxyAction.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/MDRepoProxyAction.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/MDRepoProxyAction.html	(revision 1516)
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.MDRepoProxyAction
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.MDRepoProxyAction";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useMDRepoProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDRepoProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.MDRepoProxyAction</B></H2>
+</CENTER>
+No usage of eu.clarin.cmdi.mdservice.action.MDRepoProxyAction
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useMDRepoProxyAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDRepoProxyAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/MDTransformer.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/MDTransformer.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/class-use/MDTransformer.html	(revision 1516)
@@ -0,0 +1,196 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.action.MDTransformer
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.action.MDTransformer";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useMDTransformer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDTransformer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.action.MDTransformer</B></H2>
+</CENTER>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Packages that use <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><A HREF="#eu.clarin.cmdi.mdservice.action"><B>eu.clarin.cmdi.mdservice.action</B></A></TD>
+<TD>&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Uses of <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A> in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A></FONT></TH>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A> declared as <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></CODE></FONT></TD>
+<TD><CODE><B>MDTransformer.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#singleton">singleton</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A> that return <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></CODE></FONT></TD>
+<TD><CODE><B>MDTransformer.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html#getMDTransformer()">getMDTransformer</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/action/\class-useMDTransformer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="MDTransformer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-frame.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-frame.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-frame.html	(revision 1516)
@@ -0,0 +1,46 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+eu.clarin.cmdi.mdservice.action
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+
+</HEAD>
+
+<BODY BGCOLOR="white">
+<FONT size="+1" CLASS="FrameTitleFont">
+<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html" target="classFrame">eu.clarin.cmdi.mdservice.action</A></FONT>
+<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+<TR>
+<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
+Classes</FONT>&nbsp;
+<FONT CLASS="FrameItemFont">
+<BR>
+<A HREF="Admin.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">Admin</A>
+<BR>
+<A HREF="Cache.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">Cache</A>
+<BR>
+<A HREF="CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">CompRegistryProxyAction</A>
+<BR>
+<A HREF="DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">DCRProxyAction</A>
+<BR>
+<A HREF="GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">GenericProxyAction</A>
+<BR>
+<A HREF="Helpers.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">Helpers</A>
+<BR>
+<A HREF="MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">MDRepoProxyAction</A>
+<BR>
+<A HREF="MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action" target="classFrame">MDTransformer</A></FONT></TD>
+</TR>
+</TABLE>
+
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-summary.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-summary.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-summary.html	(revision 1516)
@@ -0,0 +1,195 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+eu.clarin.cmdi.mdservice.action
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="eu.clarin.cmdi.mdservice.action";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV PACKAGE&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/package-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<H2>
+Package eu.clarin.cmdi.mdservice.action
+</H2>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Class Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A></B></TD>
+<TD>Helper class, main-class to run as command-line java-app for testing</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A></B></TD>
+<TD>This is a rudimentary caching mechanism.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A></B></TD>
+<TD>Acts as a Struts 2 controller 
+ serves the requests regarding Components
+ it passes them further (Proxy) to the ComponentRegistry.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A></B></TD>
+<TD>Acts as a Struts 2 controller 
+ serves the requests regarding DataCategories
+ it passes them further (Proxy) to the Data Category Registry.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A></B></TD>
+<TD>main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action">Helpers</A></B></TD>
+<TD>&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A></B></TD>
+<TD>Main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A></B></TD>
+<TD>Helper class, encapsulating the xsl-transformations handling
+ the contract is, that the requester passes a key, which can be resolved to a xsl-script (momentary mapped in properties: Admin.getConfig())
+ Bad things happen, if the key or the appropriate xsl-file do not exist</TD>
+</TR>
+</TABLE>
+&nbsp;
+
+<P>
+<DL>
+</DL>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV PACKAGE&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/package-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-tree.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-tree.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-tree.html	(revision 1516)
@@ -0,0 +1,158 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+eu.clarin.cmdi.mdservice.action Class Hierarchy
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="eu.clarin.cmdi.mdservice.action Class Hierarchy";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-tree.html"><B>NEXT</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/package-tree.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+Hierarchy For Package eu.clarin.cmdi.mdservice.action
+</H2>
+</CENTER>
+<DL>
+<DT><B>Package Hierarchies:</B><DD><A HREF="../../../../../overview-tree.html">All Packages</A></DL>
+<HR>
+<H2>
+Class Hierarchy
+</H2>
+<UL>
+<LI TYPE="circle">java.lang.Object<UL>
+<LI TYPE="circle">com.opensymphony.xwork2.ActionSupport (implements com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, java.io.Serializable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware)
+<UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>GenericProxyAction</B></A><UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>CompRegistryProxyAction</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>DCRProxyAction</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>MDRepoProxyAction</B></A></UL>
+</UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Admin</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Cache</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Helpers</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action"><B>MDTransformer</B></A></UL>
+</UL>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-tree.html"><B>NEXT</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/package-tree.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-use.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-use.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/action/package-use.html	(revision 1516)
@@ -0,0 +1,186 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Package eu.clarin.cmdi.mdservice.action
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Package eu.clarin.cmdi.mdservice.action";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/package-use.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Package<br>eu.clarin.cmdi.mdservice.action</B></H2>
+</CENTER>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Packages that use <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><A HREF="#eu.clarin.cmdi.mdservice.action"><B>eu.clarin.cmdi.mdservice.action</B></A></TD>
+<TD>&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Classes in <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A> used by <A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/class-use/Cache.html#eu.clarin.cmdi.mdservice.action"><B>Cache</B></A></B>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a rudimentary caching mechanism.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/class-use/GenericProxyAction.html#eu.clarin.cmdi.mdservice.action"><B>GenericProxyAction</B></A></B>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/action/class-use/MDTransformer.html#eu.clarin.cmdi.mdservice.action"><B>MDTransformer</B></A></B>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Helper class, encapsulating the xsl-transformations handling
+ the contract is, that the requester passes a key, which can be resolved to a xsl-script (momentary mapped in properties: Admin.getConfig())
+ Bad things happen, if the key or the appropriate xsl-file do not exist</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/action/package-use.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/Query.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/Query.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/Query.html	(revision 1516)
@@ -0,0 +1,959 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:35 CEST 2010 -->
+<TITLE>
+Query
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Query";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Query.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV CLASS&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/Query.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Query.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.model</FONT>
+<BR>
+Class Query</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.model.Query</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>Query</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#collection">collection</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temporary default;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#COLLECTIONS">COLLECTIONS</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#maxdepth">maxdepth</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#MODEL">MODEL</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#msg">msg</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#PARSED">PARSED</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#PARSEERROR">PARSEERROR</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;org.z3950.zing.cql.CQLNode</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#query_cql">query_cql</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#query_string">query_string</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#RECORDSET">RECORDSET</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#result">result</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reference to the result-object</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#syntax">syntax</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#target">target</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;meant a target url/service, allowing querying different services on per query basis
+ not used yet</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.net.URL</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#targetRequest">targetRequest</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#type">type</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#Query(java.lang.String)">Query</A></B>(java.lang.String&nbsp;queryString)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#Query(java.lang.String, java.lang.String)">Query</A></B>(java.lang.String&nbsp;queryString,
+      java.lang.String&nbsp;type)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;another constructor, with user's querystring and type of the query;
+ problematic not setting the collection!</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#Query(java.lang.String, java.lang.String, java.lang.String)">Query</A></B>(java.lang.String&nbsp;queryString,
+      java.lang.String&nbsp;type,
+      java.lang.String&nbsp;collection)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;main constructor, with user's querystring and type of the query, and context-collection (at the moment just one)</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getCollection()">getCollection</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getMaxdepth()">getMaxdepth</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getMsg()">getMsg</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getQueryString()">getQueryString</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getResult()">getResult</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getStatus()">getStatus</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getType()">getType</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.Boolean</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#isStatus(java.lang.String)">isStatus</A></B>(java.lang.String&nbsp;qstatus)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;org.z3950.zing.cql.CQLNode</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#parse()">parse</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tries to parse the query_string according the CQL-syntax
+ if successful returns the root-node of the parse-tree</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#setCollection(java.lang.String)">setCollection</A></B>(java.lang.String&nbsp;collection)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#setMaxdepth(int)">setMaxdepth</A></B>(int&nbsp;maxdepth)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#setMsg(java.lang.String)">setMsg</A></B>(java.lang.String&nbsp;msg)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#setQueryString(java.lang.String)">setQueryString</A></B>(java.lang.String&nbsp;queryString)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#setResult(eu.clarin.cmdi.mdservice.model.Result)">setResult</A></B>(<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>&nbsp;result)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#setType(java.lang.String)">setType</A></B>(java.lang.String&nbsp;type)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#toCMDIndex()">toCMDIndex</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if the query is just a path-like structure
+ "transforms" to cmdIndex-format, means replace('</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#toURLParam()">toURLParam</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;construct the URL-Param</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#toXCQL()">toXCQL</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;provides a xml-version of the query (if parsed successfully)
+ according to the XCQL-schema defined in the SRU/CQL standard</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html#toXPath()">toXPath</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;provides a xpath version of the query, based on the XCQL-version,
+ applying a stylesheet on the XCQL-version</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="COLLECTIONS"><!-- --></A><H3>
+COLLECTIONS</H3>
+<PRE>
+public static java.lang.String <B>COLLECTIONS</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="MODEL"><!-- --></A><H3>
+MODEL</H3>
+<PRE>
+public static java.lang.String <B>MODEL</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="RECORDSET"><!-- --></A><H3>
+RECORDSET</H3>
+<PRE>
+public static java.lang.String <B>RECORDSET</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="PARSED"><!-- --></A><H3>
+PARSED</H3>
+<PRE>
+public static java.lang.String <B>PARSED</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="PARSEERROR"><!-- --></A><H3>
+PARSEERROR</H3>
+<PRE>
+public static java.lang.String <B>PARSEERROR</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="type"><!-- --></A><H3>
+type</H3>
+<PRE>
+private java.lang.String <B>type</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="target"><!-- --></A><H3>
+target</H3>
+<PRE>
+private java.lang.String <B>target</B></PRE>
+<DL>
+<DD>meant a target url/service, allowing querying different services on per query basis
+ not used yet
+<P>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="targetRequest"><!-- --></A><H3>
+targetRequest</H3>
+<PRE>
+private java.net.URL <B>targetRequest</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="syntax"><!-- --></A><H3>
+syntax</H3>
+<PRE>
+private java.lang.String <B>syntax</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="query_string"><!-- --></A><H3>
+query_string</H3>
+<PRE>
+private java.lang.String <B>query_string</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="query_cql"><!-- --></A><H3>
+query_cql</H3>
+<PRE>
+private org.z3950.zing.cql.CQLNode <B>query_cql</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="msg"><!-- --></A><H3>
+msg</H3>
+<PRE>
+private java.lang.String <B>msg</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="collection"><!-- --></A><H3>
+collection</H3>
+<PRE>
+private java.lang.String <B>collection</B></PRE>
+<DL>
+<DD>temporary default;
+<P>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="maxdepth"><!-- --></A><H3>
+maxdepth</H3>
+<PRE>
+private int <B>maxdepth</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="result"><!-- --></A><H3>
+result</H3>
+<PRE>
+private <A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A> <B>result</B></PRE>
+<DL>
+<DD>reference to the result-object
+<P>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="Query(java.lang.String)"><!-- --></A><H3>
+Query</H3>
+<PRE>
+public <B>Query</B>(java.lang.String&nbsp;queryString)</PRE>
+<DL>
+</DL>
+<HR>
+
+<A NAME="Query(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
+Query</H3>
+<PRE>
+public <B>Query</B>(java.lang.String&nbsp;queryString,
+             java.lang.String&nbsp;type,
+             java.lang.String&nbsp;collection)</PRE>
+<DL>
+<DD>main constructor, with user's querystring and type of the query, and context-collection (at the moment just one)
+<P>
+<DL>
+<DT><B>Parameters:</B><DD><CODE>queryString</CODE> - <DD><CODE>type</CODE> - <DD><CODE>collection</CODE> - </DL>
+</DL>
+<HR>
+
+<A NAME="Query(java.lang.String, java.lang.String)"><!-- --></A><H3>
+Query</H3>
+<PRE>
+public <B>Query</B>(java.lang.String&nbsp;queryString,
+             java.lang.String&nbsp;type)</PRE>
+<DL>
+<DD>another constructor, with user's querystring and type of the query;
+ problematic not setting the collection!
+<P>
+<DL>
+<DT><B>Parameters:</B><DD><CODE>queryString</CODE> - <DD><CODE>type</CODE> - </DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="isStatus(java.lang.String)"><!-- --></A><H3>
+isStatus</H3>
+<PRE>
+public java.lang.Boolean <B>isStatus</B>(java.lang.String&nbsp;qstatus)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getStatus()"><!-- --></A><H3>
+getStatus</H3>
+<PRE>
+public java.lang.String <B>getStatus</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getType()"><!-- --></A><H3>
+getType</H3>
+<PRE>
+public java.lang.String <B>getType</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setType(java.lang.String)"><!-- --></A><H3>
+setType</H3>
+<PRE>
+public void <B>setType</B>(java.lang.String&nbsp;type)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getQueryString()"><!-- --></A><H3>
+getQueryString</H3>
+<PRE>
+public java.lang.String <B>getQueryString</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setQueryString(java.lang.String)"><!-- --></A><H3>
+setQueryString</H3>
+<PRE>
+public void <B>setQueryString</B>(java.lang.String&nbsp;queryString)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setCollection(java.lang.String)"><!-- --></A><H3>
+setCollection</H3>
+<PRE>
+public void <B>setCollection</B>(java.lang.String&nbsp;collection)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getCollection()"><!-- --></A><H3>
+getCollection</H3>
+<PRE>
+public java.lang.String <B>getCollection</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setMaxdepth(int)"><!-- --></A><H3>
+setMaxdepth</H3>
+<PRE>
+public void <B>setMaxdepth</B>(int&nbsp;maxdepth)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getMaxdepth()"><!-- --></A><H3>
+getMaxdepth</H3>
+<PRE>
+public int <B>getMaxdepth</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setResult(eu.clarin.cmdi.mdservice.model.Result)"><!-- --></A><H3>
+setResult</H3>
+<PRE>
+public void <B>setResult</B>(<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>&nbsp;result)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getResult()"><!-- --></A><H3>
+getResult</H3>
+<PRE>
+public <A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A> <B>getResult</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getMsg()"><!-- --></A><H3>
+getMsg</H3>
+<PRE>
+public java.lang.String <B>getMsg</B>()</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setMsg(java.lang.String)"><!-- --></A><H3>
+setMsg</H3>
+<PRE>
+public void <B>setMsg</B>(java.lang.String&nbsp;msg)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toURLParam()"><!-- --></A><H3>
+toURLParam</H3>
+<PRE>
+public java.lang.String <B>toURLParam</B>()
+                            throws java.net.MalformedURLException</PRE>
+<DL>
+<DD>construct the URL-Param
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD>
+<DT><B>Throws:</B>
+<DD><CODE>java.net.MalformedURLException</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="parse()"><!-- --></A><H3>
+parse</H3>
+<PRE>
+public org.z3950.zing.cql.CQLNode <B>parse</B>()</PRE>
+<DL>
+<DD>tries to parse the query_string according the CQL-syntax
+ if successful returns the root-node of the parse-tree
+<P>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toXCQL()"><!-- --></A><H3>
+toXCQL</H3>
+<PRE>
+public java.lang.String <B>toXCQL</B>()</PRE>
+<DL>
+<DD>provides a xml-version of the query (if parsed successfully)
+ according to the XCQL-schema defined in the SRU/CQL standard
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toXPath()"><!-- --></A><H3>
+toXPath</H3>
+<PRE>
+public java.lang.String <B>toXPath</B>()</PRE>
+<DL>
+<DD>provides a xpath version of the query, based on the XCQL-version,
+ applying a stylesheet on the XCQL-version
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD>XPath-query</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toCMDIndex()"><!-- --></A><H3>
+toCMDIndex</H3>
+<PRE>
+public java.lang.String <B>toCMDIndex</B>()</PRE>
+<DL>
+<DD>if the query is just a path-like structure
+ "transforms" to cmdIndex-format, means replace('.', '/') ;)
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Query.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV CLASS&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/Query.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Query.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/QuerySet.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/QuerySet.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/QuerySet.html	(revision 1516)
@@ -0,0 +1,319 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:36 CEST 2010 -->
+<TITLE>
+QuerySet
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="QuerySet";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/QuerySet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/QuerySet.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="QuerySet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#methods_inherited_from_class_java.util.Vector">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;METHOD</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.model</FONT>
+<BR>
+Class QuerySet</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">java.util.AbstractCollection&lt;E&gt;
+      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">java.util.AbstractList&lt;E&gt;
+          <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">java.util.Vector&lt;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;
+              <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.model.QuerySet</B>
+</PRE>
+<DL>
+<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Cloneable, java.lang.Iterable&lt;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;, java.util.Collection&lt;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;, java.util.List&lt;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;, java.util.RandomAccess</DD>
+</DL>
+<HR>
+<DL>
+<DT><PRE>public class <B>QuerySet</B><DT>extends java.util.Vector&lt;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;</DL>
+</PRE>
+
+<P>
+Stub for a Class for handling/managing multiple queries
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#eu.clarin.cmdi.mdservice.model.QuerySet">Serialized Form</A></DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html#serialVersionUID">serialVersionUID</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_java.util.Vector"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from class java.util.Vector</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>capacityIncrement, elementCount, elementData</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="fields_inherited_from_class_java.util.AbstractList"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Fields inherited from class java.util.AbstractList</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>modCount</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html#QuerySet(java.util.Collection)">QuerySet</A></B>(java.util.Collection&lt;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;&nbsp;queries)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.util.Vector"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.util.Vector</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.util.AbstractList"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.util.AbstractList</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>iterator, listIterator, listIterator</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.util.List"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from interface java.util.List</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>iterator, listIterator, listIterator</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="serialVersionUID"><!-- --></A><H3>
+serialVersionUID</H3>
+<PRE>
+private static final long <B>serialVersionUID</B></PRE>
+<DL>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#eu.clarin.cmdi.mdservice.model.QuerySet.serialVersionUID">Constant Field Values</A></DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="QuerySet(java.util.Collection)"><!-- --></A><H3>
+QuerySet</H3>
+<PRE>
+public <B>QuerySet</B>(java.util.Collection&lt;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;&nbsp;queries)</PRE>
+<DL>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/QuerySet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/QuerySet.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="QuerySet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#methods_inherited_from_class_java.util.Vector">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;METHOD</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/Result.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/Result.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/Result.html	(revision 1516)
@@ -0,0 +1,481 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:36 CEST 2010 -->
+<TITLE>
+Result
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Result";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Result.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;NEXT CLASS</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/Result.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Result.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+eu.clarin.cmdi.mdservice.model</FONT>
+<BR>
+Class Result</H2>
+<PRE>
+java.lang.Object
+  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>eu.clarin.cmdi.mdservice.model.Result</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>Result</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+Currently not used! Everything is done directly in MDRepoProxyAction.
+  
+ Meant as Class holding the result of a query (parentQuery)
+ This is a "passive" object, depending on its parentQuery
+ which is setting the resultStream in its execute-method
+<P>
+
+<P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>vronk</DD>
+</DL>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#HTML">HTML</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#HTMLSNIPPET">HTMLSNIPPET</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#parentQuery">parentQuery</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#rawresult">rawresult</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;holds the stream receiving data from the provider (MDRepository...)</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#XML">XML</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;available formats</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#Result(eu.clarin.cmdi.mdservice.model.Query)">Result</A></B>(<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&nbsp;q)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#getHeader()">getHeader</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a stub for a header to be returned with every result
+ not used yet</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#getResultStream()">getResultStream</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;without format-parameter, you get the raw-data-stream (XML?)</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#getResultStream(java.lang.String)">getResultStream</A></B>(java.lang.String&nbsp;format)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this is the main method to get the formatted-result
+ precondition: the rawresult already arrived, ie parentQuery.execute() already issued</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#getResultStream(java.lang.String, java.io.InputStream)">getResultStream</A></B>(java.lang.String&nbsp;format,
+                java.io.InputStream&nbsp;in)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html#setInputStream(java.io.InputStream)">setInputStream</A></B>(java.io.InputStream&nbsp;in)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="XML"><!-- --></A><H3>
+XML</H3>
+<PRE>
+public static java.lang.String <B>XML</B></PRE>
+<DL>
+<DD>available formats
+<P>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="HTML"><!-- --></A><H3>
+HTML</H3>
+<PRE>
+public static java.lang.String <B>HTML</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="HTMLSNIPPET"><!-- --></A><H3>
+HTMLSNIPPET</H3>
+<PRE>
+public static java.lang.String <B>HTMLSNIPPET</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="parentQuery"><!-- --></A><H3>
+parentQuery</H3>
+<PRE>
+private <A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A> <B>parentQuery</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="rawresult"><!-- --></A><H3>
+rawresult</H3>
+<PRE>
+private java.io.InputStream <B>rawresult</B></PRE>
+<DL>
+<DD>holds the stream receiving data from the provider (MDRepository...)
+<P>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="Result(eu.clarin.cmdi.mdservice.model.Query)"><!-- --></A><H3>
+Result</H3>
+<PRE>
+public <B>Result</B>(<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&nbsp;q)</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="getResultStream(java.lang.String)"><!-- --></A><H3>
+getResultStream</H3>
+<PRE>
+public java.io.InputStream <B>getResultStream</B>(java.lang.String&nbsp;format)
+                                    throws java.io.IOException,
+                                           java.lang.InterruptedException,
+                                           javax.xml.transform.TransformerException</PRE>
+<DL>
+<DD>this is the main method to get the formatted-result
+ precondition: the rawresult already arrived, ie parentQuery.execute() already issued
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>format</CODE> - is passed as the transkey to the transformer
+<DT><B>Returns:</B><DD>the input stream with the formatted/transformed result
+<DT><B>Throws:</B>
+<DD><CODE>java.io.IOException</CODE>
+<DD><CODE>java.lang.InterruptedException</CODE>
+<DD><CODE>javax.xml.transform.TransformerException</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getResultStream()"><!-- --></A><H3>
+getResultStream</H3>
+<PRE>
+public java.io.InputStream <B>getResultStream</B>()</PRE>
+<DL>
+<DD>without format-parameter, you get the raw-data-stream (XML?) received from the provider
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getResultStream(java.lang.String, java.io.InputStream)"><!-- --></A><H3>
+getResultStream</H3>
+<PRE>
+public void <B>getResultStream</B>(java.lang.String&nbsp;format,
+                            java.io.InputStream&nbsp;in)
+                     throws java.io.IOException,
+                            java.lang.InterruptedException,
+                            javax.xml.transform.TransformerException</PRE>
+<DL>
+<DD><DL>
+
+<DT><B>Throws:</B>
+<DD><CODE>java.io.IOException</CODE>
+<DD><CODE>java.lang.InterruptedException</CODE>
+<DD><CODE>javax.xml.transform.TransformerException</CODE></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="setInputStream(java.io.InputStream)"><!-- --></A><H3>
+setInputStream</H3>
+<PRE>
+public void <B>setInputStream</B>(java.io.InputStream&nbsp;in)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getHeader()"><!-- --></A><H3>
+getHeader</H3>
+<PRE>
+public java.lang.String <B>getHeader</B>()</PRE>
+<DL>
+<DD>a stub for a header to be returned with every result
+ not used yet
+<P>
+<DD><DL>
+
+<DT><B>Returns:</B><DD></DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Result.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;NEXT CLASS</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/Result.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Result.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/Query.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/Query.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/Query.html	(revision 1516)
@@ -0,0 +1,208 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.model.Query
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.model.Query";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/model/\class-useQuery.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Query.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.model.Query</B></H2>
+</CENTER>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Packages that use <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><A HREF="#eu.clarin.cmdi.mdservice.model"><B>eu.clarin.cmdi.mdservice.model</B></A></TD>
+<TD>&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.model"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Uses of <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A> in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A></FONT></TH>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A> declared as <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A></CODE></FONT></TD>
+<TD><CODE><B>Result.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html#parentQuery">parentQuery</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A> with parameters of type <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html#Result(eu.clarin.cmdi.mdservice.model.Query)">Result</A></B>(<A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&nbsp;q)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Constructor parameters in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A> with type arguments of type <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html#QuerySet(java.util.Collection)">QuerySet</A></B>(java.util.Collection&lt;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt;&nbsp;queries)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/model/\class-useQuery.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Query.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/QuerySet.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/QuerySet.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/QuerySet.html	(revision 1516)
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.model.QuerySet
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.model.QuerySet";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/model/\class-useQuerySet.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="QuerySet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.model.QuerySet</B></H2>
+</CENTER>
+No usage of eu.clarin.cmdi.mdservice.model.QuerySet
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/model/\class-useQuerySet.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="QuerySet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/Result.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/Result.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/class-use/Result.html	(revision 1516)
@@ -0,0 +1,212 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Class eu.clarin.cmdi.mdservice.model.Result
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Class eu.clarin.cmdi.mdservice.model.Result";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/model/\class-useResult.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Result.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Class<br>eu.clarin.cmdi.mdservice.model.Result</B></H2>
+</CENTER>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Packages that use <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><A HREF="#eu.clarin.cmdi.mdservice.model"><B>eu.clarin.cmdi.mdservice.model</B></A></TD>
+<TD>&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.model"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Uses of <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A> in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A></FONT></TH>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A> declared as <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></CODE></FONT></TD>
+<TD><CODE><B>Query.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html#result">result</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reference to the result-object</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A> that return <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;<A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></CODE></FONT></TD>
+<TD><CODE><B>Query.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html#getResult()">getResult</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A> with parameters of type <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>&nbsp;void</CODE></FONT></TD>
+<TD><CODE><B>Query.</B><B><A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Query.html#setResult(eu.clarin.cmdi.mdservice.model.Result)">setResult</A></B>(<A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>&nbsp;result)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../../index.html?eu/clarin/cmdi/mdservice/model/\class-useResult.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="Result.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-frame.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-frame.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-frame.html	(revision 1516)
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+eu.clarin.cmdi.mdservice.model
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+
+</HEAD>
+
+<BODY BGCOLOR="white">
+<FONT size="+1" CLASS="FrameTitleFont">
+<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html" target="classFrame">eu.clarin.cmdi.mdservice.model</A></FONT>
+<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+<TR>
+<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
+Classes</FONT>&nbsp;
+<FONT CLASS="FrameItemFont">
+<BR>
+<A HREF="Query.html" title="class in eu.clarin.cmdi.mdservice.model" target="classFrame">Query</A>
+<BR>
+<A HREF="QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model" target="classFrame">QuerySet</A>
+<BR>
+<A HREF="Result.html" title="class in eu.clarin.cmdi.mdservice.model" target="classFrame">Result</A></FONT></TD>
+</TR>
+</TABLE>
+
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-summary.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-summary.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-summary.html	(revision 1516)
@@ -0,0 +1,165 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+eu.clarin.cmdi.mdservice.model
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="eu.clarin.cmdi.mdservice.model";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;
+&nbsp;NEXT PACKAGE</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/package-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<H2>
+Package eu.clarin.cmdi.mdservice.model
+</H2>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Class Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A></B></TD>
+<TD>&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model">QuerySet</A></B></TD>
+<TD>Stub for a Class for handling/managing multiple queries</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A></B></TD>
+<TD>Currently not used!</TD>
+</TR>
+</TABLE>
+&nbsp;
+
+<P>
+<DL>
+</DL>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;
+&nbsp;NEXT PACKAGE</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/package-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-tree.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-tree.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-tree.html	(revision 1516)
@@ -0,0 +1,162 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+eu.clarin.cmdi.mdservice.model Class Hierarchy
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="eu.clarin.cmdi.mdservice.model Class Hierarchy";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-tree.html"><B>PREV</B></A>&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/package-tree.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+Hierarchy For Package eu.clarin.cmdi.mdservice.model
+</H2>
+</CENTER>
+<DL>
+<DT><B>Package Hierarchies:</B><DD><A HREF="../../../../../overview-tree.html">All Packages</A></DL>
+<HR>
+<H2>
+Class Hierarchy
+</H2>
+<UL>
+<LI TYPE="circle">java.lang.Object<UL>
+<LI TYPE="circle">java.util.AbstractCollection&lt;E&gt; (implements java.util.Collection&lt;E&gt;)
+<UL>
+<LI TYPE="circle">java.util.AbstractList&lt;E&gt; (implements java.util.List&lt;E&gt;)
+<UL>
+<LI TYPE="circle">java.util.Vector&lt;E&gt; (implements java.lang.Cloneable, java.util.List&lt;E&gt;, java.util.RandomAccess, java.io.Serializable)
+<UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.model.<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><B>QuerySet</B></A></UL>
+</UL>
+</UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.model.<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model"><B>Query</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.model.<A HREF="../../../../../eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model"><B>Result</B></A></UL>
+</UL>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../eu/clarin/cmdi/mdservice/action/package-tree.html"><B>PREV</B></A>&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/package-tree.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-use.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-use.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/eu/clarin/cmdi/mdservice/model/package-use.html	(revision 1516)
@@ -0,0 +1,176 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Uses of Package eu.clarin.cmdi.mdservice.model
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Uses of Package eu.clarin.cmdi.mdservice.model";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/package-use.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Package<br>eu.clarin.cmdi.mdservice.model</B></H2>
+</CENTER>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Packages that use <A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><A HREF="#eu.clarin.cmdi.mdservice.model"><B>eu.clarin.cmdi.mdservice.model</B></A></TD>
+<TD>&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.model"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+Classes in <A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A> used by <A HREF="../../../../../eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/class-use/Query.html#eu.clarin.cmdi.mdservice.model"><B>Query</B></A></B>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><B><A HREF="../../../../../eu/clarin/cmdi/mdservice/model/class-use/Result.html#eu.clarin.cmdi.mdservice.model"><B>Result</B></A></B>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Currently not used!</TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../../../../../index.html?eu/clarin/cmdi/mdservice/model/package-use.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/help-doc.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/help-doc.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/help-doc.html	(revision 1516)
@@ -0,0 +1,223 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+API Help
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="API Help";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Help</B></FONT>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?help-doc.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="help-doc.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H1>
+How This API Document Is Organized</H1>
+</CENTER>
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.<H3>
+Overview</H3>
+<BLOCKQUOTE>
+
+<P>
+The <A HREF="overview-summary.html">Overview</A> page is the front page of this API document and provides a list of all packages with a summary for each.  This page can also contain an overall description of the set of packages.</BLOCKQUOTE>
+<H3>
+Package</H3>
+<BLOCKQUOTE>
+
+<P>
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:<UL>
+<LI>Interfaces (italic)<LI>Classes<LI>Enums<LI>Exceptions<LI>Errors<LI>Annotation Types</UL>
+</BLOCKQUOTE>
+<H3>
+Class/Interface</H3>
+<BLOCKQUOTE>
+
+<P>
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:<UL>
+<LI>Class inheritance diagram<LI>Direct Subclasses<LI>All Known Subinterfaces<LI>All Known Implementing Classes<LI>Class/interface declaration<LI>Class/interface description
+<P>
+<LI>Nested Class Summary<LI>Field Summary<LI>Constructor Summary<LI>Method Summary
+<P>
+<LI>Field Detail<LI>Constructor Detail<LI>Method Detail</UL>
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.</BLOCKQUOTE>
+</BLOCKQUOTE>
+<H3>
+Annotation Type</H3>
+<BLOCKQUOTE>
+
+<P>
+Each annotation type has its own separate page with the following sections:<UL>
+<LI>Annotation Type declaration<LI>Annotation Type description<LI>Required Element Summary<LI>Optional Element Summary<LI>Element Detail</UL>
+</BLOCKQUOTE>
+</BLOCKQUOTE>
+<H3>
+Enum</H3>
+<BLOCKQUOTE>
+
+<P>
+Each enum has its own separate page with the following sections:<UL>
+<LI>Enum declaration<LI>Enum description<LI>Enum Constant Summary<LI>Enum Constant Detail</UL>
+</BLOCKQUOTE>
+<H3>
+Use</H3>
+<BLOCKQUOTE>
+Each documented package, class and interface has its own Use page.  This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A.  You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.</BLOCKQUOTE>
+<H3>
+Tree (Class Hierarchy)</H3>
+<BLOCKQUOTE>
+There is a <A HREF="overview-tree.html">Class Hierarchy</A> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.<UL>
+<LI>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.<LI>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</UL>
+</BLOCKQUOTE>
+<H3>
+Deprecated API</H3>
+<BLOCKQUOTE>
+The <A HREF="deprecated-list.html">Deprecated API</A> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</BLOCKQUOTE>
+<H3>
+Index</H3>
+<BLOCKQUOTE>
+The <A HREF="index-all.html">Index</A> contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.</BLOCKQUOTE>
+<H3>
+Prev/Next</H3>
+These links take you to the next or previous class, interface, package, or related page.<H3>
+Frames/No Frames</H3>
+These links show and hide the HTML frames.  All pages are available with or without frames.
+<P>
+<H3>
+Serialized Form</H3>
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+<P>
+<H3>
+Constant Field Values</H3>
+The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values.
+<P>
+<FONT SIZE="-1">
+<EM>
+This help file applies to API documentation generated using the standard doclet.</EM>
+</FONT>
+<BR>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Help</B></FONT>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?help-doc.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="help-doc.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/index-all.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/index-all.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/index-all.html	(revision 1516)
@@ -0,0 +1,689 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Index
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="./stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Index";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="./index.html?index-all.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="index-all.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="./allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="./allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_H_">H</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_M_">M</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_Q_">Q</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <A HREF="#_U_">U</A> <A HREF="#_W_">W</A> <A HREF="#_X_">X</A> <HR>
+<A NAME="_A_"><!-- --></A><H2>
+<B>A</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#actionkey"><B>actionkey</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>Properties to be filled by Struts with according request-parameters
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Admin</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>Helper class, main-class to run as command-line java-app for testing<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#Admin()"><B>Admin()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_B_"><!-- --></A><H2>
+<B>B</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#base_url"><B>base_url</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_C_"><!-- --></A><H2>
+<B>C</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Cache</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>This is a rudimentary caching mechanism.<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#Cache()"><B>Cache()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#cachecounter"><B>cachecounter</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#cachepath"><B>cachepath</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#collection"><B>collection</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#collection"><B>collection</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>temporary default;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#COLLECTIONS"><B>COLLECTIONS</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#compid"><B>compid</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>CompRegistryProxyAction</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>Acts as a Struts 2 controller 
+ serves the requests regarding Components
+ it passes them further (Proxy) to the ComponentRegistry.<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#CompRegistryProxyAction()"><B>CompRegistryProxyAction()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#config"><B>config</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#config_path"><B>config_path</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html#copy(java.io.InputStream, java.io.OutputStream)"><B>copy(InputStream, OutputStream)</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action">Helpers</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#copyStreams(java.io.InputStream, java.io.OutputStream)"><B>copyStreams(InputStream, OutputStream)</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_D_"><!-- --></A><H2>
+<B>D</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>DCRProxyAction</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>Acts as a Struts 2 controller 
+ serves the requests regarding DataCategories
+ it passes them further (Proxy) to the Data Category Registry.<DT><A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#DCRProxyAction()"><B>DCRProxyAction()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_E_"><!-- --></A><H2>
+<B>E</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html"><B>eu.clarin.cmdi.mdservice.action</B></A> - package eu.clarin.cmdi.mdservice.action<DD>&nbsp;<DT><A HREF="./eu/clarin/cmdi/mdservice/model/package-summary.html"><B>eu.clarin.cmdi.mdservice.model</B></A> - package eu.clarin.cmdi.mdservice.model<DD>&nbsp;<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#execute()"><B>execute()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>default Action method
+</DL>
+<HR>
+<A NAME="_F_"><!-- --></A><H2>
+<B>F</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#finalize()"><B>finalize()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#format"><B>format</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#formPath(java.lang.String)"><B>formPath(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_G_"><!-- --></A><H2>
+<B>G</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>GenericProxyAction</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#GenericProxyAction()"><B>GenericProxyAction()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getActionkey()"><B>getActionkey()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getBaseURL()"><B>getBaseURL()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#getCache()"><B>getCache()</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getCollection()"><B>getCollection()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#getCollection()"><B>getCollection()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getCompid()"><B>getCompid()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#getConfig()"><B>getConfig()</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#getCounter()"><B>getCounter()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFormat()"><B>getFormat()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#getFromCache(java.lang.String)"><B>getFromCache(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getFullFormat()"><B>getFullFormat()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getFullFormat()"><B>getFullFormat()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#getHeader()"><B>getHeader()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>a stub for a header to be returned with every result
+ not used yet
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getMaxdepth()"><B>getMaxdepth()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#getMaxdepth()"><B>getMaxdepth()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#getMDTransformer()"><B>getMDTransformer()</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#getMsg()"><B>getMsg()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getProxyKey()"><B>getProxyKey()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getProxyKey()"><B>getProxyKey()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>primitive identification of the target-proxy
+ base for finding the right base_url in the props
+ subclass has to override with its specific proxykey
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#getProxyKey()"><B>getProxyKey()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getQ()"><B>getQ()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#getQueryString()"><B>getQueryString()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getRequestKey()"><B>getRequestKey()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getRequestKey()"><B>getRequestKey()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#getResult()"><B>getResult()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getResultStream()"><B>getResultStream()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>The stream holding the resulting data to be sent back to the user as response
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#getResultStream(java.lang.String)"><B>getResultStream(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>this is the main method to get the formatted-result
+ precondition: the rawresult already arrived, ie parentQuery.execute() already issued
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#getResultStream()"><B>getResultStream()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>without format-parameter, you get the raw-data-stream (XML?)
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#getResultStream(java.lang.String, java.io.InputStream)"><B>getResultStream(String, InputStream)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#getStatus()"><B>getStatus()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#getTargetRequest()"><B>getTargetRequest()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>uses base_url and (optionally) compid to form a url
+ no compid => list all components/profiles
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#getTargetRequest()"><B>getTargetRequest()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A>
+<DD>uses base_url and (optionally) id to form a url
+ no id => ?
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getTargetRequest()"><B>getTargetRequest()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#getTargetRequest()"><B>getTargetRequest()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A>
+<DD>uses base_url + url_pattern (parametrized by actionkey) to form a url
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#getType()"><B>getType()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#getUserMsg()"><B>getUserMsg()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#getXSLPath(java.lang.String)"><B>getXSLPath(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>get the path to the transform-xsl file from properties, based on the key
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#getXSLStreamSource(java.lang.String)"><B>getXSLStreamSource(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_H_"><!-- --></A><H2>
+<B>H</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Helpers</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>&nbsp;<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html#Helpers()"><B>Helpers()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action">Helpers</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#HTML"><B>HTML</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#HTMLSNIPPET"><B>HTMLSNIPPET</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_I_"><!-- --></A><H2>
+<B>I</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#initCachecounter()"><B>initCachecounter()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>read counter-integer from file in cache
+ or start that file
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#isStatus(java.lang.String)"><B>isStatus(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_L_"><!-- --></A><H2>
+<B>L</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#loadConfig()"><B>loadConfig()</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#loadConfig(java.lang.String)"><B>loadConfig(String)</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html#log"><B>log</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action">Helpers</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_M_"><!-- --></A><H2>
+<B>M</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#maxdepth"><B>maxdepth</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#maxdepth"><B>maxdepth</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>MDRepoProxyAction</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>Main Struts 2 controller 
+ responds to requests (collections, model, recordset) 
+ by dispatching the requests to appropriate internal methods and filling the inputStream with the result<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#MDRepoProxyAction()"><B>MDRepoProxyAction()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action"><B>MDTransformer</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A><DD>Helper class, encapsulating the xsl-transformations handling
+ the contract is, that the requester passes a key, which can be resolved to a xsl-script (momentary mapped in properties: Admin.getConfig())
+ Bad things happen, if the key or the appropriate xsl-file do not exist<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#MDTransformer()"><B>MDTransformer()</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#MODEL"><B>MODEL</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#msg"><B>msg</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_N_"><!-- --></A><H2>
+<B>N</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#notifyUser(java.lang.String)"><B>notifyUser(String)</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html#notifyUser(java.lang.String)"><B>notifyUser(String)</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action">Helpers</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_P_"><!-- --></A><H2>
+<B>P</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#parentQuery"><B>parentQuery</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#parse()"><B>parse()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>tries to parse the query_string according the CQL-syntax
+ if successful returns the root-node of the parse-tree
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#PARSED"><B>PARSED</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#PARSEERROR"><B>PARSEERROR</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#PREFIX"><B>PREFIX</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#prepare()"><B>prepare()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#proxy_key"><B>proxy_key</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#proxy_key"><B>proxy_key</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#proxy_key"><B>proxy_key</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#putInCache(java.lang.String, java.io.InputStream)"><B>putInCache(String, InputStream)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>here the external key for the data gets cache-internal counter-id assigned
+ which is also returned back
+ can be used (as shorthand instead of the (long) external key) from outside to retrieve the data.
+</DL>
+<HR>
+<A NAME="_Q_"><!-- --></A><H2>
+<B>Q</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#q"><B>q</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model"><B>Query</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A><DD>&nbsp;<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#Query(java.lang.String)"><B>Query(String)</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#Query(java.lang.String, java.lang.String, java.lang.String)"><B>Query(String, String, String)</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>main constructor, with user's querystring and type of the query, and context-collection (at the moment just one)
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#Query(java.lang.String, java.lang.String)"><B>Query(String, String)</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>another constructor, with user's querystring and type of the query;
+ problematic not setting the collection!
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#query_cql"><B>query_cql</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#query_string"><B>query_string</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><B>QuerySet</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A><DD>Stub for a Class for handling/managing multiple queries<DT><A HREF="./eu/clarin/cmdi/mdservice/model/QuerySet.html#QuerySet(java.util.Collection)"><B>QuerySet(Collection&lt;Query&gt;)</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model">QuerySet</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_R_"><!-- --></A><H2>
+<B>R</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#rawresult"><B>rawresult</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>holds the stream receiving data from the provider (MDRepository...)
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html#readFSLS(java.lang.String)"><B>readFSLS(String)</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action">Helpers</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#RECORDSET"><B>RECORDSET</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#result"><B>result</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>reference to the result-object
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model"><B>Result</B></A> - Class in <A HREF="./eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A><DD>Currently not used!<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#Result(eu.clarin.cmdi.mdservice.model.Query)"><B>Result(Query)</B></A> - 
+Constructor for class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#resultStream"><B>resultStream</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_S_"><!-- --></A><H2>
+<B>S</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#serialVersionUID"><B>serialVersionUID</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html#serialVersionUID"><B>serialVersionUID</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">DCRProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#serialVersionUID"><B>serialVersionUID</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#serialVersionUID"><B>serialVersionUID</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/QuerySet.html#serialVersionUID"><B>serialVersionUID</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model">QuerySet</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setActionkey(java.lang.String)"><B>setActionkey(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setCollection(java.lang.String)"><B>setCollection(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#setCollection(java.lang.String)"><B>setCollection(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html#setCompid(java.lang.String)"><B>setCompid(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">CompRegistryProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setFormat(java.lang.String)"><B>setFormat(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#setInputStream(java.io.InputStream)"><B>setInputStream(InputStream)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setMaxdepth(int)"><B>setMaxdepth(int)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#setMaxdepth(int)"><B>setMaxdepth(int)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#setMsg(java.lang.String)"><B>setMsg(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setQ(java.lang.String)"><B>setQ(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#setQueryString(java.lang.String)"><B>setQueryString(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#setResult(eu.clarin.cmdi.mdservice.model.Result)"><B>setResult(Result)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#setType(java.lang.String)"><B>setType(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#setUserMsg(java.lang.String)"><B>setUserMsg(String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#singleton"><B>singleton</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#singleton"><B>singleton</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#sourceStream"><B>sourceStream</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#srcFile"><B>srcFile</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#start_cache"><B>start_cache</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#syntax"><B>syntax</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_T_"><!-- --></A><H2>
+<B>T</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#target"><B>target</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>meant a target url/service, allowing querying different services on per query basis
+ not used yet
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#targetRequest"><B>targetRequest</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#tfactory"><B>tfactory</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#toCMDIndex()"><B>toCMDIndex()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>if the query is just a path-like structure
+ "transforms" to cmdIndex-format, means replace('
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#toURLParam()"><B>toURLParam()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>construct the URL-Param
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#toXCQL()"><B>toXCQL()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>provides a xml-version of the query (if parsed successfully)
+ according to the XCQL-schema defined in the SRU/CQL standard
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#toXPath()"><B>toXPath()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>provides a xpath version of the query, based on the XCQL-version,
+ applying a stylesheet on the XCQL-version
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.io.InputStream, java.lang.String, java.io.OutputStream)"><B>transformXML(InputStream, String, OutputStream)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>The main method for transforming, applies the appropriate (based on the transkey) stylesheet on the xml-stream
+ and writes the result into the output stream.
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.io.InputStream, java.lang.String)"><B>transformXML(InputStream, String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>just a wrapper for the main method translating the output-stream into a input-stream (expected by the Controller-Actions to return as response)
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.net.URL, java.lang.String)"><B>transformXML(URL, String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>another wrapper for the main method allowing to directly pass a URL to the source-xml
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html#transformXML(java.lang.String, java.lang.String)"><B>transformXML(String, String)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action">MDTransformer</A>
+<DD>this is for xml present as string.
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Query.html#type"><B>type</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_U_"><!-- --></A><H2>
+<B>U</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#updateCachecounter()"><B>updateCachecounter()</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html#urls"><B>urls</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">MDRepoProxyAction</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html#userMsg"><B>userMsg</B></A> - 
+Variable in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_W_"><!-- --></A><H2>
+<B>W</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html#writeCachecounter(java.lang.Integer)"><B>writeCachecounter(Integer)</B></A> - 
+Method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action">Cache</A>
+<DD>&nbsp;
+<DT><A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html#writeToFile(java.lang.String, java.io.InputStream)"><B>writeToFile(String, InputStream)</B></A> - 
+Static method in class eu.clarin.cmdi.mdservice.action.<A HREF="./eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action">Admin</A>
+<DD>&nbsp;
+</DL>
+<HR>
+<A NAME="_X_"><!-- --></A><H2>
+<B>X</B></H2>
+<DL>
+<DT><A HREF="./eu/clarin/cmdi/mdservice/model/Result.html#XML"><B>XML</B></A> - 
+Static variable in class eu.clarin.cmdi.mdservice.model.<A HREF="./eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model">Result</A>
+<DD>available formats
+</DL>
+<HR>
+<A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_H_">H</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_M_">M</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_Q_">Q</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <A HREF="#_U_">U</A> <A HREF="#_W_">W</A> <A HREF="#_X_">X</A> 
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="./help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="./index.html?index-all.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="index-all.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="./allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="./allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/index.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/index.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/index.html	(revision 1516)
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc on Mon May 31 23:42:37 CEST 2010-->
+<TITLE>
+Generated Documentation (Untitled)
+</TITLE>
+<SCRIPT type="text/javascript">
+    targetPage = "" + window.location.search;
+    if (targetPage != "" && targetPage != "undefined")
+        targetPage = targetPage.substring(1);
+    if (targetPage.indexOf(":") != -1)
+        targetPage = "undefined";
+    function loadFrames() {
+        if (targetPage != "" && targetPage != "undefined")
+             top.classFrame.location = top.targetPage;
+    }
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+</HEAD>
+<FRAMESET cols="20%,80%" title="" onLoad="top.loadFrames()">
+<FRAMESET rows="30%,70%" title="" onLoad="top.loadFrames()">
+<FRAME src="overview-frame.html" name="packageListFrame" title="All Packages">
+<FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
+</FRAMESET>
+<FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
+<NOFRAMES>
+<H2>
+Frame Alert</H2>
+
+<P>
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+<BR>
+Link to<A HREF="overview-summary.html">Non-frame version.</A>
+</NOFRAMES>
+</FRAMESET>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/overview-frame.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/overview-frame.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/overview-frame.html	(revision 1516)
@@ -0,0 +1,44 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Overview List
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+
+</HEAD>
+
+<BODY BGCOLOR="white">
+
+<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+<TR>
+<TH ALIGN="left" NOWRAP><FONT size="+1" CLASS="FrameTitleFont">
+<B></B></FONT></TH>
+</TR>
+</TABLE>
+
+<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
+<TR>
+<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="allclasses-frame.html" target="packageFrame">All Classes</A></FONT>
+<P>
+<FONT size="+1" CLASS="FrameHeadingFont">
+Packages</FONT>
+<BR>
+<FONT CLASS="FrameItemFont"><A HREF="eu/clarin/cmdi/mdservice/action/package-frame.html" target="packageFrame">eu.clarin.cmdi.mdservice.action</A></FONT>
+<BR>
+<FONT CLASS="FrameItemFont"><A HREF="eu/clarin/cmdi/mdservice/model/package-frame.html" target="packageFrame">eu.clarin.cmdi.mdservice.model</A></FONT>
+<BR>
+</TD>
+</TR>
+</TABLE>
+
+<P>
+&nbsp;
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/overview-summary.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/overview-summary.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/overview-summary.html	(revision 1516)
@@ -0,0 +1,155 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Overview
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Overview";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?overview-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Packages</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="20%"><B><A HREF="eu/clarin/cmdi/mdservice/action/package-summary.html">eu.clarin.cmdi.mdservice.action</A></B></TD>
+<TD>&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="20%"><B><A HREF="eu/clarin/cmdi/mdservice/model/package-summary.html">eu.clarin.cmdi.mdservice.model</A></B></TD>
+<TD>&nbsp;</TD>
+</TR>
+</TABLE>
+
+<P>
+&nbsp;<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?overview-summary.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/overview-tree.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/overview-tree.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/overview-tree.html	(revision 1516)
@@ -0,0 +1,166 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Class Hierarchy
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Class Hierarchy";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+Hierarchy For All Packages</H2>
+</CENTER>
+<DL>
+<DT><B>Package Hierarchies:</B><DD><A HREF="eu/clarin/cmdi/mdservice/action/package-tree.html">eu.clarin.cmdi.mdservice.action</A>, <A HREF="eu/clarin/cmdi/mdservice/model/package-tree.html">eu.clarin.cmdi.mdservice.model</A></DL>
+<HR>
+<H2>
+Class Hierarchy
+</H2>
+<UL>
+<LI TYPE="circle">java.lang.Object<UL>
+<LI TYPE="circle">java.util.AbstractCollection&lt;E&gt; (implements java.util.Collection&lt;E&gt;)
+<UL>
+<LI TYPE="circle">java.util.AbstractList&lt;E&gt; (implements java.util.List&lt;E&gt;)
+<UL>
+<LI TYPE="circle">java.util.Vector&lt;E&gt; (implements java.lang.Cloneable, java.util.List&lt;E&gt;, java.util.RandomAccess, java.io.Serializable)
+<UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.model.<A HREF="eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model"><B>QuerySet</B></A></UL>
+</UL>
+</UL>
+<LI TYPE="circle">com.opensymphony.xwork2.ActionSupport (implements com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, java.io.Serializable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware)
+<UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>GenericProxyAction</B></A><UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>CompRegistryProxyAction</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>DCRProxyAction</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action"><B>MDRepoProxyAction</B></A></UL>
+</UL>
+<LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/Admin.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Admin</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/Cache.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Cache</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/Helpers.html" title="class in eu.clarin.cmdi.mdservice.action"><B>Helpers</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.action.<A HREF="eu/clarin/cmdi/mdservice/action/MDTransformer.html" title="class in eu.clarin.cmdi.mdservice.action"><B>MDTransformer</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.model.<A HREF="eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model"><B>Query</B></A><LI TYPE="circle">eu.clarin.cmdi.mdservice.model.<A HREF="eu/clarin/cmdi/mdservice/model/Result.html" title="class in eu.clarin.cmdi.mdservice.model"><B>Result</B></A></UL>
+</UL>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/package-list
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/package-list	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/package-list	(revision 1516)
@@ -0,0 +1,2 @@
+eu.clarin.cmdi.mdservice.action
+eu.clarin.cmdi.mdservice.model
Index: MDService2/branches/MDService_simple3/docs/javadocs/serialized-form.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/serialized-form.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/serialized-form.html	(revision 1516)
@@ -0,0 +1,377 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_12) on Mon May 31 23:42:37 CEST 2010 -->
+<TITLE>
+Serialized Form
+</TITLE>
+
+<META NAME="date" CONTENT="2010-05-31">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    if (location.href.indexOf('is-external=true') == -1) {
+        parent.document.title="Serialized Form";
+    }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?serialized-form.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="serialized-form.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H1>
+Serialized Form</H1>
+</CENTER>
+<HR SIZE="4" NOSHADE>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="center"><FONT SIZE="+2">
+<B>Package</B> <B>eu.clarin.cmdi.mdservice.action</B></FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Class <A HREF="eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction</A> extends <A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A> implements Serializable</B></FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+<B>serialVersionUID:&nbsp;</B>1L
+
+<P>
+<A NAME="serializedForm"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Serialized Fields</B></FONT></TH>
+</TR>
+</TABLE>
+
+<H3>
+proxy_key</H3>
+<PRE>
+java.lang.String <B>proxy_key</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+compid</H3>
+<PRE>
+java.lang.String <B>compid</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action.DCRProxyAction"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Class <A HREF="eu/clarin/cmdi/mdservice/action/DCRProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">eu.clarin.cmdi.mdservice.action.DCRProxyAction</A> extends <A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A> implements Serializable</B></FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+<B>serialVersionUID:&nbsp;</B>1L
+
+<P>
+<A NAME="serializedForm"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Serialized Fields</B></FONT></TH>
+</TR>
+</TABLE>
+
+<H3>
+proxy_key</H3>
+<PRE>
+java.lang.String <B>proxy_key</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action.GenericProxyAction"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Class <A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">eu.clarin.cmdi.mdservice.action.GenericProxyAction</A> extends com.opensymphony.xwork2.ActionSupport implements Serializable</B></FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+<B>serialVersionUID:&nbsp;</B>1L
+
+<P>
+<A NAME="serializedForm"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Serialized Fields</B></FONT></TH>
+</TR>
+</TABLE>
+
+<H3>
+actionkey</H3>
+<PRE>
+java.lang.String <B>actionkey</B></PRE>
+<DL>
+<DD>Properties to be filled by Struts with according request-parameters
+<P>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+q</H3>
+<PRE>
+java.lang.String <B>q</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+collection</H3>
+<PRE>
+java.lang.String <B>collection</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+maxdepth</H3>
+<PRE>
+int <B>maxdepth</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+format</H3>
+<PRE>
+java.lang.String <B>format</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+userMsg</H3>
+<PRE>
+java.lang.String <B>userMsg</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+resultStream</H3>
+<PRE>
+java.io.InputStream <B>resultStream</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+sourceStream</H3>
+<PRE>
+java.io.InputStream <B>sourceStream</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+<H3>
+base_url</H3>
+<PRE>
+java.net.URL <B>base_url</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.action.MDRepoProxyAction"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Class <A HREF="eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">eu.clarin.cmdi.mdservice.action.MDRepoProxyAction</A> extends <A HREF="eu/clarin/cmdi/mdservice/action/GenericProxyAction.html" title="class in eu.clarin.cmdi.mdservice.action">GenericProxyAction</A> implements Serializable</B></FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+<B>serialVersionUID:&nbsp;</B>1L
+
+<P>
+<A NAME="serializedForm"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Serialized Fields</B></FONT></TH>
+</TR>
+</TABLE>
+
+<H3>
+proxy_key</H3>
+<PRE>
+java.lang.String <B>proxy_key</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR SIZE="4" NOSHADE>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="center"><FONT SIZE="+2">
+<B>Package</B> <B>eu.clarin.cmdi.mdservice.model</B></FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+<A NAME="eu.clarin.cmdi.mdservice.model.QuerySet"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Class <A HREF="eu/clarin/cmdi/mdservice/model/QuerySet.html" title="class in eu.clarin.cmdi.mdservice.model">eu.clarin.cmdi.mdservice.model.QuerySet</A> extends java.util.Vector&lt;<A HREF="eu/clarin/cmdi/mdservice/model/Query.html" title="class in eu.clarin.cmdi.mdservice.model">Query</A>&gt; implements Serializable</B></FONT></TH>
+</TR>
+</TABLE>
+
+<P>
+<B>serialVersionUID:&nbsp;</B>1L
+
+<P>
+
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html?serialized-form.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="serialized-form.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
Index: MDService2/branches/MDService_simple3/docs/javadocs/stylesheet.css
===================================================================
--- MDService2/branches/MDService_simple3/docs/javadocs/stylesheet.css	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/javadocs/stylesheet.css	(revision 1516)
@@ -0,0 +1,29 @@
+/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF; color:#000000 }
+
+/* Headings */
+h1 { font-size: 145% }
+
+/* Table colors */
+.TableHeadingColor     { background: #CCCCFF; color:#000000 } /* Dark mauve */
+.TableSubHeadingColor  { background: #EEEEFF; color:#000000 } /* Light mauve */
+.TableRowColor         { background: #FFFFFF; color:#000000 } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont   { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
+.FrameHeadingFont { font-size:  90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
+.FrameItemFont    { font-size:  90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
+
+/* Navigation bar fonts and colors */
+.NavBarCell1    { background-color:#EEEEFF; color:#000000} /* Light mauve */
+.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */
+.NavBarFont1    { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;}
+
+.NavBarCell2    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
+.NavBarCell3    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
+
Index: MDService2/branches/MDService_simple3/docs/jsdocs/files.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/files.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/files.html	(revision 1516)
@@ -0,0 +1,382 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+		
+		<title>JsDoc Reference - File Index</title>
+		<meta name="generator" content="JsDoc Toolkit" />
+		
+		<style type="text/css">
+		/* default.css */
+body
+{
+	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
+	width: 800px;
+}
+
+.header
+{
+	clear: both;
+	background-color: #ccc;
+	padding: 8px;
+}
+
+h1
+{
+	font-size: 150%;
+	font-weight: bold;
+	padding: 0;
+	margin: 1em 0 0 .3em;
+}
+
+hr
+{
+	border: none 0;
+	border-top: 1px solid #7F8FB1;
+	height: 1px;
+}
+
+pre.code
+{
+	display: block;
+	padding: 8px;
+	border: 1px dashed #ccc;
+}
+
+#index
+{
+	margin-top: 24px;
+	float: left;
+	width: 160px;
+	position: absolute;
+	left: 8px;
+	background-color: #F3F3F3;
+	padding: 8px;
+}
+
+#content
+{
+	margin-left: 190px;
+	width: 600px;
+}
+
+.classList
+{
+	list-style-type: none;
+	padding: 0;
+	margin: 0 0 0 8px;
+	font-family: arial, sans-serif;
+	font-size: 1em;
+	overflow: auto;
+}
+
+.classList li
+{
+	padding: 0;
+	margin: 0 0 8px 0;
+}
+
+.summaryTable { width: 100%; }
+
+h1.classTitle
+{
+	font-size:170%;
+	line-height:130%;
+}
+
+h2 { font-size: 110%; }
+caption, div.sectionTitle
+{
+	background-color: #7F8FB1;
+	color: #fff;
+	font-size:130%;
+	text-align: left;
+	padding: 2px 6px 2px 6px;
+	border: 1px #7F8FB1 solid;
+}
+
+div.sectionTitle { margin-bottom: 8px; }
+.summaryTable thead { display: none; }
+
+.summaryTable td
+{
+	vertical-align: top;
+	padding: 4px;
+	border-bottom: 1px #7F8FB1 solid;
+	border-right: 1px #7F8FB1 solid;
+}
+
+/*col#summaryAttributes {}*/
+.summaryTable td.attributes
+{
+	border-left: 1px #7F8FB1 solid;
+	width: 140px;
+	text-align: right;
+}
+
+td.attributes, .fixedFont
+{
+	line-height: 15px;
+	color: #002EBE;
+	font-family: "Courier New",Courier,monospace;
+	font-size: 13px;
+}
+
+.summaryTable td.nameDescription
+{
+	text-align: left;
+	font-size: 13px;
+	line-height: 15px;
+}
+
+.summaryTable td.nameDescription, .description
+{
+	line-height: 15px;
+	padding: 4px;
+	padding-left: 4px;
+}
+
+.summaryTable { margin-bottom: 8px; }
+
+ul.inheritsList
+{
+	list-style: square;
+	margin-left: 20px;
+	padding-left: 0;
+}
+
+.detailList {
+	margin-left: 20px; 
+	line-height: 15px;
+}
+.detailList dt { margin-left: 20px; }
+
+.detailList .heading
+{
+	font-weight: bold;
+	padding-bottom: 6px;
+	margin-left: 0;
+}
+
+.light, td.attributes, .light a:link, .light a:visited
+{
+	color: #777;
+	font-style: italic;
+}
+
+.fineprint
+{
+	text-align: right;
+	font-size: 10px;
+}
+		</style>
+	</head>
+	
+	<body>
+		<div id="header">
+</div>
+		
+		<div id="index">
+			<div align="center"><a href="index.html">Class Index</a>
+| <a href="files.html">File Index</a></div>
+<hr />
+<h2>Classes</h2>
+<ul class="classList">
+	
+	<li><i><a href="symbols/_global_.html">_global_</a></i></li>
+	
+	<li><a href="symbols/Detail.html">Detail</a></li>
+	
+	<li><a href="symbols/detailcaller.html">detailcaller</a></li>
+	
+	<li><a href="symbols/ListWidget.html">ListWidget</a></li>
+	
+	<li><a href="symbols/listwidgetset.html">listwidgetset</a></li>
+	
+	<li><a href="symbols/NotifyMessage.html">NotifyMessage</a></li>
+	
+	<li><a href="symbols/notifyset.html">notifyset</a></li>
+	
+	<li><a href="symbols/Query.html">Query</a></li>
+	
+	<li><a href="symbols/queryset.html">queryset</a></li>
+	
+	<li><a href="symbols/SearchClause.html">SearchClause</a></li>
+	
+	<li><a href="symbols/searchclauseset.html">searchclauseset</a></li>
+	
+	<li><a href="symbols/SelectionList.html">SelectionList</a></li>
+	
+	<li><a href="symbols/selectionlistset.html">selectionlistset</a></li>
+	
+	<li><a href="symbols/String.html">String</a></li>
+	
+	<li><a href="symbols/tooltip.html">tooltip</a></li>
+	
+</ul>
+<hr />
+		</div>
+		
+		<div id="content">
+			<h1 class="classTitle">File Index</h1>
+			
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html">mdservice_model.js</a></h2>
+				
+This file provides basic client-side model of the Query-object. <code>Query</code> construction, 
+manipulating and <code>queryset</code> model functionality.
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_searchclause.js.html">mdservice_searchclause.js</a></h2>
+				
+This file contains model for building searchclausesets used in user queries.
+Consists of two parts:
+- SearchClause model [index,relation, value], with basic functionality - 
+creation, render, autocomplete.
+- Searchclauseset - container of actually used searchclauses in app
+with basic functionality for building container - add, remove, clear
+and conversion functions - conversions from-to querystring
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a></h2>
+				
+This is the main file, contains main app function (jquery-initialization). 
+The app main function runs setup functionality, which covers this domains:
+<dl>
+<dt>the variable initialization<dt>
+	<dd>functions from mdservice_searchclause.js, mdservice_widget.js, mdservice_ui_helpers.js</dd>
+<dt>loadData()</dt> 
+	<dd>loading data from repository and creating particular client-side representations  - functions from <a>mdservice_ui_load.js</a></dd>
+<dt>creating of ui-layout</dt>
+	<dd>i.e. split UI to individual panes  - functions from mdservice_ui_layout.js</dd>
+<dt>addFunctionality()</dt>
+	<dd>bind handlers to events of ui-elements (function directly in mdservice_ui.js)</dd>
+</dl>
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html">mdservice_ui_detail.js</a></h2>
+				
+The file for detail-call handling. Details are displayd differently based on settings for particular UI block.
+The file consists from Detail model and Detailset of all currently created detail-windows.
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a></h2>
+				
+The file contains UI concerned functions for building the pane structure from app settings 
+and a lot of other UI functionality for example tooltips, notifymessges, ui-block handling
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a></h2>
+				
+The file contains app load functionality. The load functions actualy used provides client side model building together with
+ui building. The load module is independant from app pane-layout and all ui-layout functionality.
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_settings.js.html">mdservice_ui_settings.js</a></h2>
+				
+This file includes avv variables and possibilities of app settings concerned more areas:
+data loading  - actions - possible to set details of data loading (uri)
+pane structure 
+	- layout_settings[pane_name], layoutBaseSettings - sets the properties of particular panes (ui-layout plugin settings )
+	- layout_initialisation - structure of particular pane placement
+app functionality - blocks_settings - the properties of particular ui blocks (type of detail-window display, commands-TODO)
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_widgets.js.html">mdservice_widgets.js</a></h2>
+				
+The file builds important widgets used in app.
+Following widqets are defined:
+<dl>
+<dt>notifyMessage</dt><dd>model and bulding of set of notifyMessages</dd>
+<dt>listWidget</dt><dd>the compact widget for creation list of elements, possible add, remove elements, addition through html - input 
+	possible to use autocomplete</dd>
+</dl>
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a></h2>
+				
+The file mainly should contain javascript assistance functions, which are not related directly to UI.
+Actualy includes string additional functions,  Url decoding , datetime conversions
+				<dl>
+					
+					
+					
+					
+				</dl>
+			</div>
+			<hr />
+			
+			
+		</div>
+		<div class="fineprint" style="clear:both">
+			
+			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Fri May 20 2011 21:19:05 GMT+0200 (MESZ)
+		</div>
+	</body>
+</html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/index.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/index.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/index.html	(revision 1516)
@@ -0,0 +1,322 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+		
+		<title>JsDoc Reference - Index</title>
+		<meta name="generator" content="JsDoc Toolkit" />
+		
+		<style type="text/css">
+		/* default.css */
+body
+{
+	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
+	width: 800px;
+}
+
+.header
+{
+	clear: both;
+	background-color: #ccc;
+	padding: 8px;
+}
+
+h1
+{
+	font-size: 150%;
+	font-weight: bold;
+	padding: 0;
+	margin: 1em 0 0 .3em;
+}
+
+hr
+{
+	border: none 0;
+	border-top: 1px solid #7F8FB1;
+	height: 1px;
+}
+
+pre.code
+{
+	display: block;
+	padding: 8px;
+	border: 1px dashed #ccc;
+}
+
+#index
+{
+	margin-top: 24px;
+	float: left;
+	width: 160px;
+	position: absolute;
+	left: 8px;
+	background-color: #F3F3F3;
+	padding: 8px;
+}
+
+#content
+{
+	margin-left: 190px;
+	width: 600px;
+}
+
+.classList
+{
+	list-style-type: none;
+	padding: 0;
+	margin: 0 0 0 8px;
+	font-family: arial, sans-serif;
+	font-size: 1em;
+	overflow: auto;
+}
+
+.classList li
+{
+	padding: 0;
+	margin: 0 0 8px 0;
+}
+
+.summaryTable { width: 100%; }
+
+h1.classTitle
+{
+	font-size:170%;
+	line-height:130%;
+}
+
+h2 { font-size: 110%; }
+caption, div.sectionTitle
+{
+	background-color: #7F8FB1;
+	color: #fff;
+	font-size:130%;
+	text-align: left;
+	padding: 2px 6px 2px 6px;
+	border: 1px #7F8FB1 solid;
+}
+
+div.sectionTitle { margin-bottom: 8px; }
+.summaryTable thead { display: none; }
+
+.summaryTable td
+{
+	vertical-align: top;
+	padding: 4px;
+	border-bottom: 1px #7F8FB1 solid;
+	border-right: 1px #7F8FB1 solid;
+}
+
+/*col#summaryAttributes {}*/
+.summaryTable td.attributes
+{
+	border-left: 1px #7F8FB1 solid;
+	width: 140px;
+	text-align: right;
+}
+
+td.attributes, .fixedFont
+{
+	line-height: 15px;
+	color: #002EBE;
+	font-family: "Courier New",Courier,monospace;
+	font-size: 13px;
+}
+
+.summaryTable td.nameDescription
+{
+	text-align: left;
+	font-size: 13px;
+	line-height: 15px;
+}
+
+.summaryTable td.nameDescription, .description
+{
+	line-height: 15px;
+	padding: 4px;
+	padding-left: 4px;
+}
+
+.summaryTable { margin-bottom: 8px; }
+
+ul.inheritsList
+{
+	list-style: square;
+	margin-left: 20px;
+	padding-left: 0;
+}
+
+.detailList {
+	margin-left: 20px; 
+	line-height: 15px;
+}
+.detailList dt { margin-left: 20px; }
+
+.detailList .heading
+{
+	font-weight: bold;
+	padding-bottom: 6px;
+	margin-left: 0;
+}
+
+.light, td.attributes, .light a:link, .light a:visited
+{
+	color: #777;
+	font-style: italic;
+}
+
+.fineprint
+{
+	text-align: right;
+	font-size: 10px;
+}
+		</style>
+	</head>
+	
+	<body>
+		<div id="header">
+</div>
+		
+		<div id="index">
+			<div align="center"><a href="index.html">Class Index</a>
+| <a href="files.html">File Index</a></div>
+<hr />
+<h2>Classes</h2>
+<ul class="classList">
+	
+	<li><i><a href="symbols/_global_.html">_global_</a></i></li>
+	
+	<li><a href="symbols/Detail.html">Detail</a></li>
+	
+	<li><a href="symbols/detailcaller.html">detailcaller</a></li>
+	
+	<li><a href="symbols/ListWidget.html">ListWidget</a></li>
+	
+	<li><a href="symbols/listwidgetset.html">listwidgetset</a></li>
+	
+	<li><a href="symbols/NotifyMessage.html">NotifyMessage</a></li>
+	
+	<li><a href="symbols/notifyset.html">notifyset</a></li>
+	
+	<li><a href="symbols/Query.html">Query</a></li>
+	
+	<li><a href="symbols/queryset.html">queryset</a></li>
+	
+	<li><a href="symbols/SearchClause.html">SearchClause</a></li>
+	
+	<li><a href="symbols/searchclauseset.html">searchclauseset</a></li>
+	
+	<li><a href="symbols/SelectionList.html">SelectionList</a></li>
+	
+	<li><a href="symbols/selectionlistset.html">selectionlistset</a></li>
+	
+	<li><a href="symbols/String.html">String</a></li>
+	
+	<li><a href="symbols/tooltip.html">tooltip</a></li>
+	
+</ul>
+<hr />
+		</div>
+		
+		<div id="content">
+			<h1 class="classTitle">Class Index</h1>
+			
+			
+			<div>
+				<h2><a href="symbols/_global_.html">_global_</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/Detail.html">Detail</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/detailcaller.html">detailcaller</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/ListWidget.html">ListWidget</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/listwidgetset.html">listwidgetset</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/NotifyMessage.html">NotifyMessage</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/notifyset.html">notifyset</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/Query.html">Query</a></h2>
+				Represents a Query.
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/queryset.html">queryset</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/SearchClause.html">SearchClause</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/searchclauseset.html">searchclauseset</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/SelectionList.html">SelectionList</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/selectionlistset.html">selectionlistset</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/String.html">String</a></h2>
+				
+			</div>
+			<hr />
+			
+			<div>
+				<h2><a href="symbols/tooltip.html">tooltip</a></h2>
+				
+			</div>
+			<hr />
+			
+			
+		</div>
+		<div class="fineprint" style="clear:both">
+			
+			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Fri May 20 2011 21:19:05 GMT+0200 (MESZ)
+		</div>
+	</body>
+</html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/NotifyMessage.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/NotifyMessage.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/NotifyMessage.html	(revision 1516)
@@ -0,0 +1,435 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+		<meta name="generator" content="JsDoc Toolkit" />
+		
+		<title>JsDoc Reference - NotifyMessage</title>
+
+		<style type="text/css">
+			/* default.css */
+body
+{
+	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
+	width: 800px;
+}
+
+.header
+{
+	clear: both;
+	background-color: #ccc;
+	padding: 8px;
+}
+
+h1
+{
+	font-size: 150%;
+	font-weight: bold;
+	padding: 0;
+	margin: 1em 0 0 .3em;
+}
+
+hr
+{
+	border: none 0;
+	border-top: 1px solid #7F8FB1;
+	height: 1px;
+}
+
+pre.code
+{
+	display: block;
+	padding: 8px;
+	border: 1px dashed #ccc;
+}
+
+#index
+{
+	margin-top: 24px;
+	float: left;
+	width: 160px;
+	position: absolute;
+	left: 8px;
+	background-color: #F3F3F3;
+	padding: 8px;
+}
+
+#content
+{
+	margin-left: 190px;
+	width: 600px;
+}
+
+.classList
+{
+	list-style-type: none;
+	padding: 0;
+	margin: 0 0 0 8px;
+	font-family: arial, sans-serif;
+	font-size: 1em;
+	overflow: auto;
+}
+
+.classList li
+{
+	padding: 0;
+	margin: 0 0 8px 0;
+}
+
+.summaryTable { width: 100%; }
+
+h1.classTitle
+{
+	font-size:170%;
+	line-height:130%;
+}
+
+h2 { font-size: 110%; }
+caption, div.sectionTitle
+{
+	background-color: #7F8FB1;
+	color: #fff;
+	font-size:130%;
+	text-align: left;
+	padding: 2px 6px 2px 6px;
+	border: 1px #7F8FB1 solid;
+}
+
+div.sectionTitle { margin-bottom: 8px; }
+.summaryTable thead { display: none; }
+
+.summaryTable td
+{
+	vertical-align: top;
+	padding: 4px;
+	border-bottom: 1px #7F8FB1 solid;
+	border-right: 1px #7F8FB1 solid;
+}
+
+/*col#summaryAttributes {}*/
+.summaryTable td.attributes
+{
+	border-left: 1px #7F8FB1 solid;
+	width: 140px;
+	text-align: right;
+}
+
+td.attributes, .fixedFont
+{
+	line-height: 15px;
+	color: #002EBE;
+	font-family: "Courier New",Courier,monospace;
+	font-size: 13px;
+}
+
+.summaryTable td.nameDescription
+{
+	text-align: left;
+	font-size: 13px;
+	line-height: 15px;
+}
+
+.summaryTable td.nameDescription, .description
+{
+	line-height: 15px;
+	padding: 4px;
+	padding-left: 4px;
+}
+
+.summaryTable { margin-bottom: 8px; }
+
+ul.inheritsList
+{
+	list-style: square;
+	margin-left: 20px;
+	padding-left: 0;
+}
+
+.detailList {
+	margin-left: 20px; 
+	line-height: 15px;
+}
+.detailList dt { margin-left: 20px; }
+
+.detailList .heading
+{
+	font-weight: bold;
+	padding-bottom: 6px;
+	margin-left: 0;
+}
+
+.light, td.attributes, .light a:link, .light a:visited
+{
+	color: #777;
+	font-style: italic;
+}
+
+.fineprint
+{
+	text-align: right;
+	font-size: 10px;
+}
+		</style>
+	</head>
+
+	<body>
+<!-- ============================== header ================================= -->	
+		<!-- begin static/header.html -->
+		<div id="header">
+</div>
+		<!-- end static/header.html -->
+
+<!-- ============================== classes index ============================ -->
+		<div id="index">
+			<!-- begin publish.classesIndex -->
+			<div align="center"><a href="../index.html">Class Index</a>
+| <a href="../files.html">File Index</a></div>
+<hr />
+<h2>Classes</h2>
+<ul class="classList">
+	
+	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
+	
+	<li><a href="../symbols/Detail.html">Detail</a></li>
+	
+	<li><a href="../symbols/detailcaller.html">detailcaller</a></li>
+	
+	<li><a href="../symbols/ListWidget.html">ListWidget</a></li>
+	
+	<li><a href="../symbols/listwidgetset.html">listwidgetset</a></li>
+	
+	<li><a href="../symbols/NotifyMessage.html">NotifyMessage</a></li>
+	
+	<li><a href="../symbols/notifyset.html">notifyset</a></li>
+	
+	<li><a href="../symbols/Query.html">Query</a></li>
+	
+	<li><a href="../symbols/queryset.html">queryset</a></li>
+	
+	<li><a href="../symbols/SearchClause.html">SearchClause</a></li>
+	
+	<li><a href="../symbols/searchclauseset.html">searchclauseset</a></li>
+	
+	<li><a href="../symbols/SelectionList.html">SelectionList</a></li>
+	
+	<li><a href="../symbols/selectionlistset.html">selectionlistset</a></li>
+	
+	<li><a href="../symbols/String.html">String</a></li>
+	
+	<li><a href="../symbols/tooltip.html">tooltip</a></li>
+	
+</ul>
+<hr />
+			<!-- end publish.classesIndex -->
+		</div>
+		
+		<div id="content">
+<!-- ============================== class title ============================ -->
+			<h1 class="classTitle">
+				
+				Class NotifyMessage
+			</h1>
+
+<!-- ============================== class summary ========================== -->			
+			<p class="description">
+				
+				
+			
+				
+				
+				
+					<br /><i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_widgets.js.html">mdservice_widgets.js</a>.
+				
+			</p>
+
+<!-- ============================== constructor summary ==================== -->			
+			
+			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class NotifyMessage.">
+				<caption>Class Summary</caption>
+				<thead>
+					<tr>
+						<th scope="col">Constructor Attributes</th>
+						<th scope="col">Constructor Name and Description</th>
+					</tr>
+				</thead>
+				<tbody>
+					<tr>
+						<td class="attributes">&nbsp;</td>
+						<td class="nameDescription" >
+							<div class="fixedFont">
+								<b><a href="../symbols/NotifyMessage.html#constructor">NotifyMessage</a></b>(dt, msg)
+							</div>
+							<div class="description"></div>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+			
+
+<!-- ============================== properties summary ===================== -->
+			
+
+<!-- ============================== methods summary ======================== -->
+			
+				
+				
+				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class NotifyMessage.">
+					<caption>Method Summary</caption>
+					<thead>
+						<tr>
+							<th scope="col">Method Attributes</th>
+							<th scope="col">Method Name and Description</th>
+						</tr>
+					</thead>
+					<tbody>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/NotifyMessage.html#getText">getText</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/NotifyMessage.html#render">render</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+					</tbody>
+				</table>
+				
+				
+				
+			
+<!-- ============================== events summary ======================== -->
+			
+
+<!-- ============================== constructor details ==================== -->		
+			
+			<div class="details"><a name="constructor"> </a>
+				<div class="sectionTitle">
+					Class Detail
+				</div>
+				
+				<div class="fixedFont">
+						<b>NotifyMessage</b>(dt, msg)
+				</div>
+				
+				<div class="description">
+					
+					
+				</div>
+				
+				
+				
+				
+					
+						<dl class="detailList">
+						<dt class="heading">Parameters:</dt>
+						
+							<dt>
+								 <b>dt</b>
+								
+							</dt>
+								<dd></dd>
+						
+							<dt>
+								 <b>msg</b>
+								
+							</dt>
+								<dd></dd>
+						
+						</dl>
+					
+					
+					
+					
+					
+					
+					
+
+			</div>
+			
+
+<!-- ============================== field details ========================== -->		
+			
+
+<!-- ============================== method details ========================= -->		
+			
+				<div class="sectionTitle">
+					Method Detail
+				</div>
+				
+					<a name="getText"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>getText</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="render"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>render</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					
+				
+			
+			
+<!-- ============================== event details ========================= -->		
+			
+			
+			<hr />
+		</div>
+
+		
+<!-- ============================== footer ================================= -->
+		<div class="fineprint" style="clear:both">
+			
+			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Fri May 20 2011 21:19:05 GMT+0200 (MESZ)
+		</div>
+	</body>
+</html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/Query.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/Query.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/Query.html	(revision 1516)
@@ -0,0 +1,1382 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+		<meta name="generator" content="JsDoc Toolkit" />
+		
+		<title>JsDoc Reference - Query</title>
+
+		<style type="text/css">
+			/* default.css */
+body
+{
+	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
+	width: 800px;
+}
+
+.header
+{
+	clear: both;
+	background-color: #ccc;
+	padding: 8px;
+}
+
+h1
+{
+	font-size: 150%;
+	font-weight: bold;
+	padding: 0;
+	margin: 1em 0 0 .3em;
+}
+
+hr
+{
+	border: none 0;
+	border-top: 1px solid #7F8FB1;
+	height: 1px;
+}
+
+pre.code
+{
+	display: block;
+	padding: 8px;
+	border: 1px dashed #ccc;
+}
+
+#index
+{
+	margin-top: 24px;
+	float: left;
+	width: 160px;
+	position: absolute;
+	left: 8px;
+	background-color: #F3F3F3;
+	padding: 8px;
+}
+
+#content
+{
+	margin-left: 190px;
+	width: 600px;
+}
+
+.classList
+{
+	list-style-type: none;
+	padding: 0;
+	margin: 0 0 0 8px;
+	font-family: arial, sans-serif;
+	font-size: 1em;
+	overflow: auto;
+}
+
+.classList li
+{
+	padding: 0;
+	margin: 0 0 8px 0;
+}
+
+.summaryTable { width: 100%; }
+
+h1.classTitle
+{
+	font-size:170%;
+	line-height:130%;
+}
+
+h2 { font-size: 110%; }
+caption, div.sectionTitle
+{
+	background-color: #7F8FB1;
+	color: #fff;
+	font-size:130%;
+	text-align: left;
+	padding: 2px 6px 2px 6px;
+	border: 1px #7F8FB1 solid;
+}
+
+div.sectionTitle { margin-bottom: 8px; }
+.summaryTable thead { display: none; }
+
+.summaryTable td
+{
+	vertical-align: top;
+	padding: 4px;
+	border-bottom: 1px #7F8FB1 solid;
+	border-right: 1px #7F8FB1 solid;
+}
+
+/*col#summaryAttributes {}*/
+.summaryTable td.attributes
+{
+	border-left: 1px #7F8FB1 solid;
+	width: 140px;
+	text-align: right;
+}
+
+td.attributes, .fixedFont
+{
+	line-height: 15px;
+	color: #002EBE;
+	font-family: "Courier New",Courier,monospace;
+	font-size: 13px;
+}
+
+.summaryTable td.nameDescription
+{
+	text-align: left;
+	font-size: 13px;
+	line-height: 15px;
+}
+
+.summaryTable td.nameDescription, .description
+{
+	line-height: 15px;
+	padding: 4px;
+	padding-left: 4px;
+}
+
+.summaryTable { margin-bottom: 8px; }
+
+ul.inheritsList
+{
+	list-style: square;
+	margin-left: 20px;
+	padding-left: 0;
+}
+
+.detailList {
+	margin-left: 20px; 
+	line-height: 15px;
+}
+.detailList dt { margin-left: 20px; }
+
+.detailList .heading
+{
+	font-weight: bold;
+	padding-bottom: 6px;
+	margin-left: 0;
+}
+
+.light, td.attributes, .light a:link, .light a:visited
+{
+	color: #777;
+	font-style: italic;
+}
+
+.fineprint
+{
+	text-align: right;
+	font-size: 10px;
+}
+		</style>
+	</head>
+
+	<body>
+<!-- ============================== header ================================= -->	
+		<!-- begin static/header.html -->
+		<div id="header">
+</div>
+		<!-- end static/header.html -->
+
+<!-- ============================== classes index ============================ -->
+		<div id="index">
+			<!-- begin publish.classesIndex -->
+			<div align="center"><a href="../index.html">Class Index</a>
+| <a href="../files.html">File Index</a></div>
+<hr />
+<h2>Classes</h2>
+<ul class="classList">
+	
+	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
+	
+	<li><a href="../symbols/Detail.html">Detail</a></li>
+	
+	<li><a href="../symbols/detailcaller.html">detailcaller</a></li>
+	
+	<li><a href="../symbols/ListWidget.html">ListWidget</a></li>
+	
+	<li><a href="../symbols/listwidgetset.html">listwidgetset</a></li>
+	
+	<li><a href="../symbols/NotifyMessage.html">NotifyMessage</a></li>
+	
+	<li><a href="../symbols/notifyset.html">notifyset</a></li>
+	
+	<li><a href="../symbols/Query.html">Query</a></li>
+	
+	<li><a href="../symbols/queryset.html">queryset</a></li>
+	
+	<li><a href="../symbols/SearchClause.html">SearchClause</a></li>
+	
+	<li><a href="../symbols/searchclauseset.html">searchclauseset</a></li>
+	
+	<li><a href="../symbols/SelectionList.html">SelectionList</a></li>
+	
+	<li><a href="../symbols/selectionlistset.html">selectionlistset</a></li>
+	
+	<li><a href="../symbols/String.html">String</a></li>
+	
+	<li><a href="../symbols/tooltip.html">tooltip</a></li>
+	
+</ul>
+<hr />
+			<!-- end publish.classesIndex -->
+		</div>
+		
+		<div id="content">
+<!-- ============================== class title ============================ -->
+			<h1 class="classTitle">
+				
+				Class Query
+			</h1>
+
+<!-- ============================== class summary ========================== -->			
+			<p class="description">
+				
+				
+			
+				Represents a Query.
+				
+				
+					<br /><i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html">mdservice_model.js</a>.
+				
+			</p>
+
+<!-- ============================== constructor summary ==================== -->			
+			
+			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class Query.">
+				<caption>Class Summary</caption>
+				<thead>
+					<tr>
+						<th scope="col">Constructor Attributes</th>
+						<th scope="col">Constructor Name and Description</th>
+					</tr>
+				</thead>
+				<tbody>
+					<tr>
+						<td class="attributes">&nbsp;</td>
+						<td class="nameDescription" >
+							<div class="fixedFont">
+								<b><a href="../symbols/Query.html#constructor">Query</a></b>(collection, columns, query, squery)
+							</div>
+							<div class="description">Creates a new Query</div>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+			
+
+<!-- ============================== properties summary ===================== -->
+			
+
+<!-- ============================== methods summary ======================== -->
+			
+				
+				
+				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class Query.">
+					<caption>Method Summary</caption>
+					<thead>
+						<tr>
+							<th scope="col">Method Attributes</th>
+							<th scope="col">Method Name and Description</th>
+						</tr>
+					</thead>
+					<tbody>
+					
+						<tr>
+							<td class="attributes">&lt;static&gt; &nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">Query.<b><a href="../symbols/Query.html#.collectiontext">collectiontext</a></b>(json)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&lt;static&gt; &nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">Query.<b><a href="../symbols/Query.html#.columnstext">columnstext</a></b>(json)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&lt;static&gt; &nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">Query.<b><a href="../symbols/Query.html#.fullformatstring">fullformatstring</a></b>(json)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#getcollectionindextext">getcollectionindextext</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#getcollectiontext">getcollectiontext</a></b>(what)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#getcolumnstext">getcolumnstext</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#link">link</a></b>(type)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#link_obsoleted">link_obsoleted</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#load">load</a></b>(json)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#next">next</a></b>(pages)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#open">open</a></b>(type)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&lt;static&gt; &nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">Query.<b><a href="../symbols/Query.html#.optionstext">optionstext</a></b>(json)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#publish">publish</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#query_uri">query_uri</a></b>()
+								</div>
+								<div class="description">special handling for special characters: double escaping (escape the %-sign)
+to survive the %-encoding through the request (and parsing) down to the transformation in XCQL2XPath.xsl
+it's: whitespace, and single and double-quotes (unified to double quotes %22)</div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&lt;static&gt; &nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">Query.<b><a href="../symbols/Query.html#.queryliststring">queryliststring</a></b>(squery, query)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#render">render</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#resubmit">resubmit</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#save">save</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&lt;static&gt; &nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">Query.<b><a href="../symbols/Query.html#.simplequerystring">simplequerystring</a></b>(querystring)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#sruquery_uri">sruquery_uri</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#submit">submit</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#toJSON">toJSON</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#toString">toString</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#updateColumns">updateColumns</a></b>(selectionlist)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/Query.html#updatecolumnstext">updatecolumnstext</a></b>(list)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+					</tbody>
+				</table>
+				
+				
+				
+			
+<!-- ============================== events summary ======================== -->
+			
+
+<!-- ============================== constructor details ==================== -->		
+			
+			<div class="details"><a name="constructor"> </a>
+				<div class="sectionTitle">
+					Class Detail
+				</div>
+				
+				<div class="fixedFont">
+						<b>Query</b>(collection, columns, query, squery)
+				</div>
+				
+				<div class="description">
+					Creates a new Query
+					
+				</div>
+				
+				
+				
+				
+					
+						<dl class="detailList">
+						<dt class="heading">Parameters:</dt>
+						
+							<dt>
+								 <b>collection</b>
+								
+							</dt>
+								<dd></dd>
+						
+							<dt>
+								 <b>columns</b>
+								
+							</dt>
+								<dd></dd>
+						
+							<dt>
+								 <b>query</b>
+								
+							</dt>
+								<dd></dd>
+						
+							<dt>
+								 <b>squery</b>
+								
+							</dt>
+								<dd></dd>
+						
+						</dl>
+					
+					
+					
+					
+					
+					
+					
+
+			</div>
+			
+
+<!-- ============================== field details ========================== -->		
+			
+
+<!-- ============================== method details ========================= -->		
+			
+				<div class="sectionTitle">
+					Method Detail
+				</div>
+				
+					<a name=".collectiontext"> </a>
+					<div class="fixedFont">&lt;static&gt; 
+					
+					
+					<span class="light">Query.</span><b>collectiontext</b>(json)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name=".columnstext"> </a>
+					<div class="fixedFont">&lt;static&gt; 
+					
+					
+					<span class="light">Query.</span><b>columnstext</b>(json)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name=".fullformatstring"> </a>
+					<div class="fixedFont">&lt;static&gt; 
+					
+					
+					<span class="light">Query.</span><b>fullformatstring</b>(json)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="getcollectionindextext"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>getcollectionindextext</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="getcollectiontext"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>getcollectiontext</b>(what)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>what</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="getcolumnstext"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>getcolumnstext</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="link"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>link</b>(type)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>type</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="link_obsoleted"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>link_obsoleted</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="load"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>load</b>(json)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="next"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>next</b>(pages)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>pages</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="open"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>open</b>(type)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>type</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name=".optionstext"> </a>
+					<div class="fixedFont">&lt;static&gt; 
+					
+					
+					<span class="light">Query.</span><b>optionstext</b>(json)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="publish"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>publish</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="query_uri"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>query_uri</b>()
+					
+					</div>
+					<div class="description">
+						special handling for special characters: double escaping (escape the %-sign)
+to survive the %-encoding through the request (and parsing) down to the transformation in XCQL2XPath.xsl
+it's: whitespace, and single and double-quotes (unified to double quotes %22)
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name=".queryliststring"> </a>
+					<div class="fixedFont">&lt;static&gt; 
+					
+					
+					<span class="light">Query.</span><b>queryliststring</b>(squery, query)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>squery</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>query</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="render"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>render</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="resubmit"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>resubmit</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="save"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>save</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name=".simplequerystring"> </a>
+					<div class="fixedFont">&lt;static&gt; 
+					
+					
+					<span class="light">Query.</span><b>simplequerystring</b>(querystring)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>querystring</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="sruquery_uri"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>sruquery_uri</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="submit"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>submit</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="toJSON"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>toJSON</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="toString"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>toString</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="updateColumns"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>updateColumns</b>(selectionlist)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>selectionlist</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="updatecolumnstext"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>updatecolumnstext</b>(list)
+					
+					</div>
+					<div class="description">
+						
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>list</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					
+				
+			
+			
+<!-- ============================== event details ========================= -->		
+			
+			
+			<hr />
+		</div>
+
+		
+<!-- ============================== footer ================================= -->
+		<div class="fineprint" style="clear:both">
+			
+			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Fri May 20 2011 21:19:05 GMT+0200 (MESZ)
+		</div>
+	</body>
+</html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/String.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/String.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/String.html	(revision 1516)
@@ -0,0 +1,445 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+		<meta name="generator" content="JsDoc Toolkit" />
+		
+		<title>JsDoc Reference - String</title>
+
+		<style type="text/css">
+			/* default.css */
+body
+{
+	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
+	width: 800px;
+}
+
+.header
+{
+	clear: both;
+	background-color: #ccc;
+	padding: 8px;
+}
+
+h1
+{
+	font-size: 150%;
+	font-weight: bold;
+	padding: 0;
+	margin: 1em 0 0 .3em;
+}
+
+hr
+{
+	border: none 0;
+	border-top: 1px solid #7F8FB1;
+	height: 1px;
+}
+
+pre.code
+{
+	display: block;
+	padding: 8px;
+	border: 1px dashed #ccc;
+}
+
+#index
+{
+	margin-top: 24px;
+	float: left;
+	width: 160px;
+	position: absolute;
+	left: 8px;
+	background-color: #F3F3F3;
+	padding: 8px;
+}
+
+#content
+{
+	margin-left: 190px;
+	width: 600px;
+}
+
+.classList
+{
+	list-style-type: none;
+	padding: 0;
+	margin: 0 0 0 8px;
+	font-family: arial, sans-serif;
+	font-size: 1em;
+	overflow: auto;
+}
+
+.classList li
+{
+	padding: 0;
+	margin: 0 0 8px 0;
+}
+
+.summaryTable { width: 100%; }
+
+h1.classTitle
+{
+	font-size:170%;
+	line-height:130%;
+}
+
+h2 { font-size: 110%; }
+caption, div.sectionTitle
+{
+	background-color: #7F8FB1;
+	color: #fff;
+	font-size:130%;
+	text-align: left;
+	padding: 2px 6px 2px 6px;
+	border: 1px #7F8FB1 solid;
+}
+
+div.sectionTitle { margin-bottom: 8px; }
+.summaryTable thead { display: none; }
+
+.summaryTable td
+{
+	vertical-align: top;
+	padding: 4px;
+	border-bottom: 1px #7F8FB1 solid;
+	border-right: 1px #7F8FB1 solid;
+}
+
+/*col#summaryAttributes {}*/
+.summaryTable td.attributes
+{
+	border-left: 1px #7F8FB1 solid;
+	width: 140px;
+	text-align: right;
+}
+
+td.attributes, .fixedFont
+{
+	line-height: 15px;
+	color: #002EBE;
+	font-family: "Courier New",Courier,monospace;
+	font-size: 13px;
+}
+
+.summaryTable td.nameDescription
+{
+	text-align: left;
+	font-size: 13px;
+	line-height: 15px;
+}
+
+.summaryTable td.nameDescription, .description
+{
+	line-height: 15px;
+	padding: 4px;
+	padding-left: 4px;
+}
+
+.summaryTable { margin-bottom: 8px; }
+
+ul.inheritsList
+{
+	list-style: square;
+	margin-left: 20px;
+	padding-left: 0;
+}
+
+.detailList {
+	margin-left: 20px; 
+	line-height: 15px;
+}
+.detailList dt { margin-left: 20px; }
+
+.detailList .heading
+{
+	font-weight: bold;
+	padding-bottom: 6px;
+	margin-left: 0;
+}
+
+.light, td.attributes, .light a:link, .light a:visited
+{
+	color: #777;
+	font-style: italic;
+}
+
+.fineprint
+{
+	text-align: right;
+	font-size: 10px;
+}
+		</style>
+	</head>
+
+	<body>
+<!-- ============================== header ================================= -->	
+		<!-- begin static/header.html -->
+		<div id="header">
+</div>
+		<!-- end static/header.html -->
+
+<!-- ============================== classes index ============================ -->
+		<div id="index">
+			<!-- begin publish.classesIndex -->
+			<div align="center"><a href="../index.html">Class Index</a>
+| <a href="../files.html">File Index</a></div>
+<hr />
+<h2>Classes</h2>
+<ul class="classList">
+	
+	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
+	
+	<li><a href="../symbols/Detail.html">Detail</a></li>
+	
+	<li><a href="../symbols/detailcaller.html">detailcaller</a></li>
+	
+	<li><a href="../symbols/ListWidget.html">ListWidget</a></li>
+	
+	<li><a href="../symbols/listwidgetset.html">listwidgetset</a></li>
+	
+	<li><a href="../symbols/NotifyMessage.html">NotifyMessage</a></li>
+	
+	<li><a href="../symbols/notifyset.html">notifyset</a></li>
+	
+	<li><a href="../symbols/Query.html">Query</a></li>
+	
+	<li><a href="../symbols/queryset.html">queryset</a></li>
+	
+	<li><a href="../symbols/SearchClause.html">SearchClause</a></li>
+	
+	<li><a href="../symbols/searchclauseset.html">searchclauseset</a></li>
+	
+	<li><a href="../symbols/SelectionList.html">SelectionList</a></li>
+	
+	<li><a href="../symbols/selectionlistset.html">selectionlistset</a></li>
+	
+	<li><a href="../symbols/String.html">String</a></li>
+	
+	<li><a href="../symbols/tooltip.html">tooltip</a></li>
+	
+</ul>
+<hr />
+			<!-- end publish.classesIndex -->
+		</div>
+		
+		<div id="content">
+<!-- ============================== class title ============================ -->
+			<h1 class="classTitle">
+				
+				Built-In Namespace String
+			</h1>
+
+<!-- ============================== class summary ========================== -->			
+			<p class="description">
+				
+				
+			
+				
+				
+				
+			</p>
+
+<!-- ============================== constructor summary ==================== -->			
+			
+
+<!-- ============================== properties summary ===================== -->
+			
+
+<!-- ============================== methods summary ======================== -->
+			
+				
+				
+				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class String.">
+					<caption>Method Summary</caption>
+					<thead>
+						<tr>
+							<th scope="col">Method Attributes</th>
+							<th scope="col">Method Name and Description</th>
+						</tr>
+					</thead>
+					<tbody>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/String.html#beginsWith">beginsWith</a></b>(t, i)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/String.html#endsWith">endsWith</a></b>(t, i)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/String.html#trim">trim</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+					</tbody>
+				</table>
+				
+				
+				
+			
+<!-- ============================== events summary ======================== -->
+			
+
+<!-- ============================== constructor details ==================== -->		
+			
+
+<!-- ============================== field details ========================== -->		
+			
+
+<!-- ============================== method details ========================= -->		
+			
+				<div class="sectionTitle">
+					Method Detail
+				</div>
+				
+					<a name="beginsWith"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>beginsWith</b>(t, i)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>t</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>i</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="endsWith"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>endsWith</b>(t, i)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>t</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>i</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="trim"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>trim</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					
+				
+			
+			
+<!-- ============================== event details ========================= -->		
+			
+			
+			<hr />
+		</div>
+
+		
+<!-- ============================== footer ================================= -->
+		<div class="fineprint" style="clear:both">
+			
+			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Fri May 20 2011 21:19:05 GMT+0200 (MESZ)
+		</div>
+	</body>
+</html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/_global_.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/_global_.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/_global_.html	(revision 1516)
@@ -0,0 +1,3002 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+		<meta name="generator" content="JsDoc Toolkit" />
+		
+		<title>JsDoc Reference - _global_</title>
+
+		<style type="text/css">
+			/* default.css */
+body
+{
+	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
+	width: 800px;
+}
+
+.header
+{
+	clear: both;
+	background-color: #ccc;
+	padding: 8px;
+}
+
+h1
+{
+	font-size: 150%;
+	font-weight: bold;
+	padding: 0;
+	margin: 1em 0 0 .3em;
+}
+
+hr
+{
+	border: none 0;
+	border-top: 1px solid #7F8FB1;
+	height: 1px;
+}
+
+pre.code
+{
+	display: block;
+	padding: 8px;
+	border: 1px dashed #ccc;
+}
+
+#index
+{
+	margin-top: 24px;
+	float: left;
+	width: 160px;
+	position: absolute;
+	left: 8px;
+	background-color: #F3F3F3;
+	padding: 8px;
+}
+
+#content
+{
+	margin-left: 190px;
+	width: 600px;
+}
+
+.classList
+{
+	list-style-type: none;
+	padding: 0;
+	margin: 0 0 0 8px;
+	font-family: arial, sans-serif;
+	font-size: 1em;
+	overflow: auto;
+}
+
+.classList li
+{
+	padding: 0;
+	margin: 0 0 8px 0;
+}
+
+.summaryTable { width: 100%; }
+
+h1.classTitle
+{
+	font-size:170%;
+	line-height:130%;
+}
+
+h2 { font-size: 110%; }
+caption, div.sectionTitle
+{
+	background-color: #7F8FB1;
+	color: #fff;
+	font-size:130%;
+	text-align: left;
+	padding: 2px 6px 2px 6px;
+	border: 1px #7F8FB1 solid;
+}
+
+div.sectionTitle { margin-bottom: 8px; }
+.summaryTable thead { display: none; }
+
+.summaryTable td
+{
+	vertical-align: top;
+	padding: 4px;
+	border-bottom: 1px #7F8FB1 solid;
+	border-right: 1px #7F8FB1 solid;
+}
+
+/*col#summaryAttributes {}*/
+.summaryTable td.attributes
+{
+	border-left: 1px #7F8FB1 solid;
+	width: 140px;
+	text-align: right;
+}
+
+td.attributes, .fixedFont
+{
+	line-height: 15px;
+	color: #002EBE;
+	font-family: "Courier New",Courier,monospace;
+	font-size: 13px;
+}
+
+.summaryTable td.nameDescription
+{
+	text-align: left;
+	font-size: 13px;
+	line-height: 15px;
+}
+
+.summaryTable td.nameDescription, .description
+{
+	line-height: 15px;
+	padding: 4px;
+	padding-left: 4px;
+}
+
+.summaryTable { margin-bottom: 8px; }
+
+ul.inheritsList
+{
+	list-style: square;
+	margin-left: 20px;
+	padding-left: 0;
+}
+
+.detailList {
+	margin-left: 20px; 
+	line-height: 15px;
+}
+.detailList dt { margin-left: 20px; }
+
+.detailList .heading
+{
+	font-weight: bold;
+	padding-bottom: 6px;
+	margin-left: 0;
+}
+
+.light, td.attributes, .light a:link, .light a:visited
+{
+	color: #777;
+	font-style: italic;
+}
+
+.fineprint
+{
+	text-align: right;
+	font-size: 10px;
+}
+		</style>
+	</head>
+
+	<body>
+<!-- ============================== header ================================= -->	
+		<!-- begin static/header.html -->
+		<div id="header">
+</div>
+		<!-- end static/header.html -->
+
+<!-- ============================== classes index ============================ -->
+		<div id="index">
+			<!-- begin publish.classesIndex -->
+			<div align="center"><a href="../index.html">Class Index</a>
+| <a href="../files.html">File Index</a></div>
+<hr />
+<h2>Classes</h2>
+<ul class="classList">
+	
+	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
+	
+	<li><a href="../symbols/Detail.html">Detail</a></li>
+	
+	<li><a href="../symbols/detailcaller.html">detailcaller</a></li>
+	
+	<li><a href="../symbols/ListWidget.html">ListWidget</a></li>
+	
+	<li><a href="../symbols/listwidgetset.html">listwidgetset</a></li>
+	
+	<li><a href="../symbols/NotifyMessage.html">NotifyMessage</a></li>
+	
+	<li><a href="../symbols/notifyset.html">notifyset</a></li>
+	
+	<li><a href="../symbols/Query.html">Query</a></li>
+	
+	<li><a href="../symbols/queryset.html">queryset</a></li>
+	
+	<li><a href="../symbols/SearchClause.html">SearchClause</a></li>
+	
+	<li><a href="../symbols/searchclauseset.html">searchclauseset</a></li>
+	
+	<li><a href="../symbols/SelectionList.html">SelectionList</a></li>
+	
+	<li><a href="../symbols/selectionlistset.html">selectionlistset</a></li>
+	
+	<li><a href="../symbols/String.html">String</a></li>
+	
+	<li><a href="../symbols/tooltip.html">tooltip</a></li>
+	
+</ul>
+<hr />
+			<!-- end publish.classesIndex -->
+		</div>
+		
+		<div id="content">
+<!-- ============================== class title ============================ -->
+			<h1 class="classTitle">
+				
+				Built-In Namespace _global_
+			</h1>
+
+<!-- ============================== class summary ========================== -->			
+			<p class="description">
+				
+				
+			
+				
+				
+				
+			</p>
+
+<!-- ============================== constructor summary ==================== -->			
+			
+
+<!-- ============================== properties summary ===================== -->
+			
+				
+				
+				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class _global_.">
+					<caption>Field Summary</caption>
+					<thead>
+						<tr>
+							<th scope="col">Field Attributes</th>
+							<th scope="col">Field Name and Description</th>
+						</tr>
+					</thead>
+					<tbody>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont">
+								<b><a href="../symbols/_global_.html#detail_container">detail_container</a></b>
+								</div>
+								<div class="description">Reference to UI-element</div>
+							</td>
+						</tr>
+					
+					</tbody>
+				</table>
+				
+				
+				
+			
+
+<!-- ============================== methods summary ======================== -->
+			
+				
+				
+				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class _global_.">
+					<caption>Method Summary</caption>
+					<thead>
+						<tr>
+							<th scope="col">Method Attributes</th>
+							<th scope="col">Method Name and Description</th>
+						</tr>
+					</thead>
+					<tbody>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#addDetailFunctionality">addDetailFunctionality</a></b>(q_header, query)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#addFunctionality">addFunctionality</a></b>()
+								</div>
+								<div class="description">This function is called during the initialization sequence and binds event-handlers to events of ui-elements.</div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#addPaging">addPaging</a></b>(elem)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#addToDetailList">addToDetailList</a></b>(elem, did)
+								</div>
+								<div class="description">allows to add ui-containers into the detail-pane.</div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#addToNotifylist">addToNotifylist</a></b>(x)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#addToQuerylist">addToQuerylist</a></b>(x)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#addToSClist">addToSClist</a></b>(div, i, j, rel)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#appendQueryUI">appendQueryUI</a></b>(json, i, qs)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#bindAdvancedCommand">bindAdvancedCommand</a></b>(cmd)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#bindCloseCommand">bindCloseCommand</a></b>(cmd)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#bindCommand">bindCommand</a></b>(parent, cmd)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#CloneObject">CloneObject</a></b>(inObj)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#Collection">Collection</a></b>(index, name)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#createBlock">createBlock</a></b>(name, _parent)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#createCommand">createCommand</a></b>(parent, cmd)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#createInfos">createInfos</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#createLayouts">createLayouts</a></b>(name)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#createQueriesUI">createQueriesUI</a></b>(json, qs)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#createTooltip">createTooltip</a></b>(parentwidget)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#dateFormat">dateFormat</a></b>(dt)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#findPos">findPos</a></b>(obj)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#getSelectedRepository">getSelectedRepository</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#getUrlVars">getUrlVars</a></b>(url)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#handleIndexSelection">handleIndexSelection</a></b>(elem)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#handleUIBlock">handleUIBlock</a></b>(elems)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#handleValueCaller">handleValueCaller</a></b>(_this)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#handleValueSelection">handleValueSelection</a></b>(elem)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#initDetailFloat">initDetailFloat</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#link">link</a></b>(action, format, params)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#ListItem">ListItem</a></b>(_name, _index)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadCollections">loadCollections</a></b>(ini)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadData">loadData</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadQuery">loadQuery</a></b>(q)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadQueryFromUriParams">loadQueryFromUriParams</a></b>(local_uri)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadQuerysets">loadQuerysets</a></b>(json, type)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadRepositories">loadRepositories</a></b>(json)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadTerms">loadTerms</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadTermsAutocomplete">loadTermsAutocomplete</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadTooltiptable">loadTooltiptable</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#loadWorkspaceProfiles">loadWorkspaceProfiles</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#notifyUser">notifyUser</a></b>(msg, type)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#openDialog">openDialog</a></b>(title, is_get)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#pageNext">pageNext</a></b>(cmd, pages)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#preprocessJSON">preprocessJSON</a></b>(json)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#query_wrapper_add_column">query_wrapper_add_column</a></b>(elem)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#reloadPage">reloadPage</a></b>(detail)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#removeTermset">removeTermset</a></b>(id)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#saveTermset">saveTermset</a></b>(id, name, listwidget)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#showDetail">showDetail</a></b>(_data, textStatus, xmlhttpreq)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#submit_query">submit_query</a></b>(columns, query, squery, ws)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#updateCollectionTree">updateCollectionTree</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#updateQueryDetailPane">updateQueryDetailPane</a></b>(query)
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#Workspace">Workspace</a></b>()
+								</div>
+								<div class="description"></div>
+							</td>
+						</tr>
+					
+					</tbody>
+				</table>
+				
+				
+				
+			
+<!-- ============================== events summary ======================== -->
+			
+				
+				
+				<table class="summaryTable" cellspacing="0" summary="A summary of the events documented in the class _global_.">
+					<caption>Event Summary</caption>
+					<thead>
+						<tr>
+							<th scope="col">Event Attributes</th>
+							<th scope="col">Event Name and Description</th>
+						</tr>
+					</thead>
+					<tbody>
+					
+						<tr>
+							<td class="attributes">&nbsp;</td>
+							<td class="nameDescription">
+								<div class="fixedFont"><b><a href="../symbols/_global_.html#event:clickQueryremove">clickQueryremove</a></b>()
+								</div>
+								<div class="description">Remove a query from queryset
+FIXME: shouldn't this primarily delete the query-object from the queryset?</div>
+							</td>
+						</tr>
+					
+					</tbody>
+				</table>
+				
+				
+				
+			
+
+<!-- ============================== constructor details ==================== -->		
+			
+
+<!-- ============================== field details ========================== -->		
+			
+				<div class="sectionTitle">
+					Field Detail
+				</div>
+				
+					<a name="detail_container"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>detail_container</b>
+					
+					</div>
+					<div class="description">
+						Reference to UI-element
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html">mdservice_ui_detail.js</a>.
+						
+						
+					</div>
+					
+					
+
+						
+						
+						
+						
+
+					
+				
+			
+
+<!-- ============================== method details ========================= -->		
+			
+				<div class="sectionTitle">
+					Method Detail
+				</div>
+				
+					<a name="addDetailFunctionality"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>addDetailFunctionality</b>(q_header, query)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html">mdservice_model.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>q_header</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>query</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="addFunctionality"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>addFunctionality</b>()
+					
+					</div>
+					<div class="description">
+						This function is called during the initialization sequence and binds event-handlers to events of ui-elements.
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="addPaging"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>addPaging</b>(elem)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>elem</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="addToDetailList"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>addToDetailList</b>(elem, did)
+					
+					</div>
+					<div class="description">
+						allows to add ui-containers into the detail-pane.
+
+Most of it is just to ensure a defined ordering:
+1. info, 2. index, 3. query, 4. record
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>elem</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>did</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="addToNotifylist"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>addToNotifylist</b>(x)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>x</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="addToQuerylist"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>addToQuerylist</b>(x)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>x</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="addToSClist"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>addToSClist</b>(div, i, j, rel)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>div</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>i</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>j</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>rel</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="appendQueryUI"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>appendQueryUI</b>(json, i, qs)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>i</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>qs</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="bindAdvancedCommand"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>bindAdvancedCommand</b>(cmd)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>cmd</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="bindCloseCommand"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>bindCloseCommand</b>(cmd)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>cmd</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="bindCommand"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>bindCommand</b>(parent, cmd)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>parent</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>cmd</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="CloneObject"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>CloneObject</b>(inObj)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>inObj</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="Collection"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>Collection</b>(index, name)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html">mdservice_model.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>index</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>name</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="createBlock"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>createBlock</b>(name, _parent)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>name</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>_parent</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="createCommand"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>createCommand</b>(parent, cmd)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>parent</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>cmd</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="createInfos"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>createInfos</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="createLayouts"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>createLayouts</b>(name)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>name</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="createQueriesUI"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>createQueriesUI</b>(json, qs)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>qs</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="createTooltip"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>createTooltip</b>(parentwidget)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>parentwidget</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="dateFormat"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>dateFormat</b>(dt)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>dt</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="findPos"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>findPos</b>(obj)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>obj</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="getSelectedRepository"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>getSelectedRepository</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="getUrlVars"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>getUrlVars</b>(url)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>url</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="handleIndexSelection"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>handleIndexSelection</b>(elem)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>elem</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="handleUIBlock"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>handleUIBlock</b>(elems)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>elems</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="handleValueCaller"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>handleValueCaller</b>(_this)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>_this</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="handleValueSelection"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>handleValueSelection</b>(elem)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>elem</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="initDetailFloat"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>initDetailFloat</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="link"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>link</b>(action, format, params)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html">mdservice_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>action</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>format</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>params</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="ListItem"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>ListItem</b>(_name, _index)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_widgets.js.html">mdservice_widgets.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>_name</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>_index</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadCollections"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadCollections</b>(ini)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>ini</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadData"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadData</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadQuery"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadQuery</b>(q)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>q</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadQueryFromUriParams"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadQueryFromUriParams</b>(local_uri)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>local_uri</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadQuerysets"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadQuerysets</b>(json, type)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>type</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadRepositories"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadRepositories</b>(json)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadTerms"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadTerms</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadTermsAutocomplete"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadTermsAutocomplete</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadTooltiptable"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadTooltiptable</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="loadWorkspaceProfiles"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>loadWorkspaceProfiles</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="notifyUser"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>notifyUser</b>(msg, type)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>msg</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>type</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="openDialog"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>openDialog</b>(title, is_get)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html">mdservice_ui_detail.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>title</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>is_get</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="pageNext"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>pageNext</b>(cmd, pages)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>cmd</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>pages</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="preprocessJSON"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>preprocessJSON</b>(json)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>json</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="query_wrapper_add_column"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>query_wrapper_add_column</b>(elem)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html">mdservice_model.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>elem</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="reloadPage"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>reloadPage</b>(detail)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html">mdservice_ui_helpers.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>detail</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="removeTermset"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>removeTermset</b>(id)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>id</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="saveTermset"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>saveTermset</b>(id, name, listwidget)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>id</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>name</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>listwidget</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="showDetail"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>showDetail</b>(_data, textStatus, xmlhttpreq)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html">mdservice_ui_detail.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>_data</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>textStatus</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>xmlhttpreq</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="submit_query"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>submit_query</b>(columns, query, squery, ws)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>columns</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>query</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>squery</b>
+									
+								</dt>
+								<dd></dd>
+							
+								<dt>
+									<b>ws</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="updateCollectionTree"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>updateCollectionTree</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html">mdservice_ui_load.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="updateQueryDetailPane"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>updateQueryDetailPane</b>(query)
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html">mdservice_ui_detail.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+							<dl class="detailList">
+							<dt class="heading">Parameters:</dt>
+							
+								<dt>
+									<b>query</b>
+									
+								</dt>
+								<dd></dd>
+							
+							</dl>
+						
+						
+						
+						
+						
+						
+						
+
+					<hr />
+				
+					<a name="Workspace"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>Workspace</b>()
+					
+					</div>
+					<div class="description">
+						
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html">mdservice_model.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					
+				
+			
+			
+<!-- ============================== event details ========================= -->		
+			
+				<div class="sectionTitle">
+					Event Detail
+				</div>
+				
+					<a name="event:clickQueryremove"> </a>
+					<div class="fixedFont">
+					
+					
+					<b>clickQueryremove</b>()
+					
+					</div>
+					<div class="description">
+						Remove a query from queryset
+FIXME: shouldn't this primarily delete the query-object from the queryset?
+						
+							<br />
+							<i>Defined in: </i> <a href="../symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html">mdservice_ui.js</a>.
+						
+						
+					</div>
+					
+					
+					
+						
+						
+						
+						
+						
+						
+						
+
+					
+				
+			
+			
+			<hr />
+		</div>
+
+		
+<!-- ============================== footer ================================= -->
+		<div class="fineprint" style="clear:both">
+			
+			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Fri May 20 2011 21:19:05 GMT+0200 (MESZ)
+		</div>
+	</body>
+</html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_helpers.js.html	(revision 1516)
@@ -0,0 +1,180 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/**
+<span class='line'>  2</span>  * @fileOverview The file mainly should contain javascript assistance functions, which are not related directly to UI.
+<span class='line'>  3</span>  * Actualy includes string additional functions,  Url decoding , datetime conversions
+<span class='line'>  4</span>  * @author 
+<span class='line'>  5</span>  * @version 
+<span class='line'>  6</span>  */</span><span class="WHIT">
+<span class='line'>  7</span> 
+<span class='line'>  8</span> </span><span class="COMM">// url params reading</span><span class="WHIT">
+<span class='line'>  9</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">params</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 10</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">getUrlVars</span><span class="PUNC">(</span><span class="NAME">url</span><span class="PUNC">)</span><span class="WHIT">
+<span class='line'> 11</span> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 12</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">url</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 13</span> </span><span class="WHIT">		</span><span class="NAME">url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">window.location.href</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 14</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 15</span> </span><span class="WHIT">    </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">vars</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">hash</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 16</span> </span><span class="WHIT">    </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">hashes</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url.slice</span><span class="PUNC">(</span><span class="NAME">url.indexOf</span><span class="PUNC">(</span><span class="STRN">'?'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">split</span><span class="PUNC">(</span><span class="STRN">'&'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 17</span> </span><span class="WHIT">    </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">hashes.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT">
+<span class='line'> 18</span> </span><span class="WHIT">    </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT">        </span><span class="NAME">hash</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">hashes</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">split</span><span class="PUNC">(</span><span class="STRN">'='</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 20</span> </span><span class="WHIT">        </span><span class="NAME">vars.push</span><span class="PUNC">(</span><span class="NAME">hash</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 21</span> </span><span class="WHIT">        </span><span class="NAME">vars</span><span class="PUNC">[</span><span class="NAME">hash</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">hash</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 22</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 23</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">vars</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 24</span> </span><span class="WHIT">    </span><span class="COMM">//return getUrlVars(window.location.href);</span><span class="WHIT">
+<span class='line'> 25</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 26</span> 
+<span class='line'> 27</span> 
+<span class='line'> 28</span> 
+<span class='line'> 29</span> </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="KEYW">typeof</span><span class="WHIT"> </span><span class="NAME">String.prototype.trim</span><span class="WHIT"> </span><span class="PUNC">!==</span><span class="WHIT"> </span><span class="STRN">'function'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">   </span><span class="NAME">String.prototype.trim</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">     </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.replace</span><span class="PUNC">(</span><span class="REGX">/^\s+|\s+$/g</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">    </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 30</span> 
+<span class='line'> 31</span> 
+<span class='line'> 32</span> </span><span class="NAME">String.prototype.beginsWith</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">t</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">==</span><span class="KEYW">false</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">	 </span><span class="PUNC">(</span><span class="NAME">t</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">t.length</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">t.toLowerCase</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 34</span> </span><span class="WHIT">	 </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">t.length</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toLowerCase</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 35</span> 
+<span class='line'> 36</span> 
+<span class='line'> 37</span> </span><span class="NAME">String.prototype.endsWith</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">t</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">==</span><span class="KEYW">false</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">t</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">	 </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.substring</span><span class="PUNC">(</span><span class="NAME">this.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">t.length</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">	 </span><span class="PUNC">(</span><span class="NAME">t.toLowerCase</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.substring</span><span class="PUNC">(</span><span class="NAME">this.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">	 </span><span class="NAME">t.length</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toLowerCase</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 41</span> 
+<span class='line'> 42</span> 
+<span class='line'> 43</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">Url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 44</span> </span><span class="WHIT">		 </span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="WHIT">			</span><span class="COMM">// public method for url encoding</span><span class="WHIT">
+<span class='line'> 46</span> </span><span class="WHIT">		</span><span class="NAME">encode</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">string</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">escape</span><span class="PUNC">(</span><span class="NAME">this._utf8_encode</span><span class="PUNC">(</span><span class="NAME">string</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 48</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 49</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 50</span> </span><span class="WHIT">		</span><span class="COMM">// public method for url decoding</span><span class="WHIT">
+<span class='line'> 51</span> </span><span class="WHIT">		</span><span class="NAME">decode</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">string</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 52</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this._utf8_decode</span><span class="PUNC">(</span><span class="NAME">unescape</span><span class="PUNC">(</span><span class="NAME">string</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 55</span> </span><span class="WHIT">		</span><span class="COMM">// private method for UTF-8 encoding</span><span class="WHIT">
+<span class='line'> 56</span> </span><span class="WHIT">		</span><span class="NAME">_utf8_encode</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">string</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">			</span><span class="NAME">string</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">string.replace</span><span class="PUNC">(</span><span class="REGX">/\r\n/g</span><span class="PUNC">,</span><span class="STRN">"\n"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">utftext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">string.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">n</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 61</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 62</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">string.charCodeAt</span><span class="PUNC">(</span><span class="NAME">n</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 63</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 64</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">128</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 65</span> </span><span class="WHIT">					</span><span class="NAME">utftext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="NAME">c</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 66</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="WHIT">				</span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">127</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">2048</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 68</span> </span><span class="WHIT">					</span><span class="NAME">utftext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">>></span><span class="WHIT"> </span><span class="NUMB">6</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="NUMB">192</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 69</span> </span><span class="WHIT">					</span><span class="NAME">utftext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">63</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="NUMB">128</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="WHIT">				</span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">					</span><span class="NAME">utftext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">>></span><span class="WHIT"> </span><span class="NUMB">12</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="NUMB">224</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">					</span><span class="NAME">utftext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">>></span><span class="WHIT"> </span><span class="NUMB">6</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">63</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="NUMB">128</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">					</span><span class="NAME">utftext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">63</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="NUMB">128</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 75</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 76</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 77</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 79</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">utftext</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 80</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">		</span><span class="COMM">// private method for UTF-8 decoding</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="WHIT">		</span><span class="NAME">_utf8_decode</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">utftext</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">string</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 85</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 86</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">c1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">c2</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 87</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 88</span> </span><span class="WHIT">			</span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">utftext.length</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 89</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 90</span> </span><span class="WHIT">				</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">utftext.charCodeAt</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 91</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 92</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">128</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 93</span> </span><span class="WHIT">					</span><span class="NAME">string</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="NAME">c</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 94</span> </span><span class="WHIT">					</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 95</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="WHIT">				</span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">191</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">224</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">					</span><span class="NAME">c2</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">utftext.charCodeAt</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">					</span><span class="NAME">string</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">31</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&lt;&lt;</span><span class="WHIT"> </span><span class="NUMB">6</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">c2</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">63</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 99</span> </span><span class="WHIT">					</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>100</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>101</span> </span><span class="WHIT">				</span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>102</span> </span><span class="WHIT">					</span><span class="NAME">c2</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">utftext.charCodeAt</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>103</span> </span><span class="WHIT">					</span><span class="NAME">c3</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">utftext.charCodeAt</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">2</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>104</span> </span><span class="WHIT">					</span><span class="NAME">string</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.fromCharCode</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">15</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&lt;&lt;</span><span class="WHIT"> </span><span class="NUMB">12</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">c2</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">63</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&lt;&lt;</span><span class="WHIT"> </span><span class="NUMB">6</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">|</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">c3</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="NUMB">63</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>105</span> </span><span class="WHIT">					</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>106</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>107</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'>108</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>109</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'>110</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">string</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>111</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>112</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'>113</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>114</span> 
+<span class='line'>115</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">dateFormat</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>116</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">month</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dt.getMonth</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">month</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>120</span> </span><span class="WHIT">		</span><span class="NAME">month</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"0"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">month</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>121</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>122</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">day</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dt.getDay</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>123</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">day</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">		</span><span class="NAME">day</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"0"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">day</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">hours</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dt.getHours</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">hours</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>128</span> </span><span class="WHIT">		</span><span class="NAME">hours</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"0"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">hours</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>129</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">minute</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dt.getMinutes</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>131</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">minute</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>132</span> </span><span class="WHIT">		</span><span class="NAME">minute</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"0"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">hours</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">second</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dt.getSeconds</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>135</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">second</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>136</span> </span><span class="WHIT">		</span><span class="NAME">second</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"0"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">second</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="WHIT">	</span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dt.getFullYear</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">month</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">day</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">hours</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">":"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">minute</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">":"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">second</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>139</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>140</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">str</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>141</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>142</span> 
+<span class='line'>143</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">link</span><span class="PUNC">(</span><span class="NAME">action</span><span class="PUNC">,</span><span class="NAME">format</span><span class="PUNC">,</span><span class="NAME">params</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>144</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">l</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">actions</span><span class="PUNC">[</span><span class="NAME">action</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">base_uri</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">format</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>145</span> 
+<span class='line'>146</span> </span><span class="WHIT">	</span><span class="COMM">// default param is q</span><span class="WHIT">
+<span class='line'>147</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">params</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>148</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="WHIT"> </span><span class="NAME">$.isArray</span><span class="PUNC">(</span><span class="NAME">params</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>149</span> </span><span class="WHIT">			</span><span class="NAME">l</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'/'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">params</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>150</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>151</span> </span><span class="WHIT">			</span><span class="NAME">l</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'?'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$.param</span><span class="PUNC">(</span><span class="NAME">params</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>152</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>153</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>154</span> </span><span class="WHIT">	</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"l:"</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">l</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>155</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">l</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>156</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>157</span> 
+<span class='line'>158</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">CloneObject</span><span class="PUNC">(</span><span class="NAME">inObj</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>159</span> </span><span class="WHIT">	</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">inObj</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>160</span> </span><span class="WHIT">		</span><span class="KEYW">this</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">inObj</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>161</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="PUNC">}</span><span class="COMM">// Usage:x = new CloneObject(obj);</span><span class="WHIT">
+<span class='line'>163</span> 
+<span class='line'>164</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">findPos</span><span class="PUNC">(</span><span class="NAME">obj</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>165</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">curleft</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">obj.offsetLeft</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>166</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">curtop</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">obj.offsetTop</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>167</span> </span><span class="WHIT">	</span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">obj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">obj.offsetParent</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>168</span> </span><span class="WHIT">		</span><span class="NAME">curleft</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">obj.offsetLeft</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>169</span> </span><span class="WHIT">		</span><span class="NAME">curtop</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">obj.offsetTop</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>170</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>171</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">x</span><span class="PUNC">:</span><span class="NAME">curleft</span><span class="PUNC">,</span><span class="NAME">y</span><span class="PUNC">:</span><span class="NAME">curtop</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>173</span> </span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_model.js.html	(revision 1516)
@@ -0,0 +1,969 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="WHIT"> </span><span class="COMM">/**
+<span class='line'>  2</span>  * @fileOverview  This file provides basic client-side model of the Query-object. &lt;code>Query&lt;/code> construction, 
+<span class='line'>  3</span>  * manipulating and &lt;code>queryset&lt;/code> model functionality. 
+<span class='line'>  4</span>  *
+<span class='line'>  5</span>  * @author 
+<span class='line'>  6</span>  * @version 
+<span class='line'>  7</span>  */</span><span class="WHIT">
+<span class='line'>  8</span> 
+<span class='line'>  9</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 10</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">formatquerystring_len</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">25</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 11</span> </span><span class="COMM">//var workspace;</span><span class="WHIT">
+<span class='line'> 12</span> 
+<span class='line'> 13</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">Workspace</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 14</span> 
+<span class='line'> 15</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 16</span> </span><span class="NAME">Workspace.save</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">id</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 17</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">JSONText</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 18</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qdata</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"/"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'> 20</span> 	if (type == "ADMIN"){
+<span class='line'> 21</span> 		JSONText = JSON.stringify(json_admin["WorkspaceProfile"]);
+<span class='line'> 22</span> 	} else {
+<span class='line'> 23</span> 		JSONText = JSON.stringify(jsonw["WorkspaceProfile"]);
+<span class='line'> 24</span> 	}
+<span class='line'> 25</span> 	*/</span><span class="WHIT">
+<span class='line'> 26</span> </span><span class="WHIT">	</span><span class="COMM">//var JSONText = JSON.stringify({"aa.a":"r"});</span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="WHIT">	</span><span class="COMM">//notifyUser(JSONText,'debug');</span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="WHIT">	</span><span class="NAME">JSONText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">JSON.stringify</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">		</span><span class="NAME">qdata</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"/"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">query.id</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">	</span><span class="NAME">$.post</span><span class="PUNC">(</span><span class="STRN">"/MDService2/workspaceprofilesave/"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qdata</span><span class="PUNC">,</span><span class="PUNC">{</span><span class="STRN">"data"</span><span class="PUNC">:</span><span class="NAME">JSONText</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 34</span> </span><span class="WHIT">		</span><span class="NAME">query.id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 35</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"id"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">query.id</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 36</span> </span><span class="WHIT">		</span><span class="NAME">appendQueryUI</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">iq</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userqueries'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 37</span> </span><span class="COMM">//	      alert("success");</span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">	</span><span class="COMM">//.success(function() { alert("second success"); })</span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">    </span><span class="COMM">//.error(function(e) { alert("error"); })</span><span class="WHIT">
+<span class='line'> 41</span> </span><span class="WHIT">    </span><span class="COMM">//.complete(function() { alert("complete"); });</span><span class="WHIT">
+<span class='line'> 42</span> 
+<span class='line'> 43</span> 
+<span class='line'> 44</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="COMM">/*
+<span class='line'> 46</span> Workspace.newQueryID = function(){
+<span class='line'> 47</span> 	var new_id;
+<span class='line'> 48</span> 	
+<span class='line'> 49</span> 	loadAdminFile();
+<span class='line'> 50</span> 	json_admin["Admin"]["maxqid"]  = parseInt(json_admin["Admin"]["maxqid"]) + 1;
+<span class='line'> 51</span> 	new_id = json_admin["Admin"]["maxqid"];
+<span class='line'> 52</span> 	Workspace.save("ADMIN");
+<span class='line'> 53</span> 	return new_id;
+<span class='line'> 54</span> };
+<span class='line'> 55</span> */</span><span class="WHIT">
+<span class='line'> 56</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">Collection</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">	</span><span class="NAME">this.index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">index</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">	</span><span class="NAME">this.name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="COMM">//var collections  = [];</span><span class="WHIT">
+<span class='line'> 61</span> 
+<span class='line'> 62</span> </span><span class="COMM">/**
+<span class='line'> 63</span> Creates a new Query
+<span class='line'> 64</span> @class Represents a Query. 
+<span class='line'> 65</span> */</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 66</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">Query</span><span class="PUNC">(</span><span class="NAME">collection</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="WHIT">	</span><span class="NAME">this.id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 68</span> </span><span class="WHIT">	</span><span class="NAME">this.collection</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection</span><span class="PUNC">;</span><span class="WHIT">   </span><span class="COMM">// []</span><span class="WHIT">
+<span class='line'> 69</span> </span><span class="WHIT">	</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="PUNC">;</span><span class="WHIT">         </span><span class="COMM">// string</span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">	</span><span class="NAME">this.query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">;</span><span class="WHIT">	         </span><span class="COMM">//sctext</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="WHIT">	</span><span class="NAME">this.squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">	</span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">	</span><span class="NAME">this.container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">	</span><span class="COMM">// page</span><span class="WHIT">
+<span class='line'> 75</span> </span><span class="WHIT">	</span><span class="NAME">this.startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 76</span> </span><span class="WHIT">	</span><span class="NAME">this.maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">this.startItem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 77</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="WHIT">	</span><span class="COMM">// repository</span><span class="WHIT">
+<span class='line'> 79</span> </span><span class="WHIT">	</span><span class="NAME">this.repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 80</span> </span><span class="WHIT">	</span><span class="NAME">this.options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">	</span><span class="NAME">this.time_created</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="WHIT">	</span><span class="NAME">this.format</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'htmltable'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="WHIT">	</span><span class="NAME">this.columns_widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 85</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 86</span> 
+<span class='line'> 87</span> </span><span class="NAME">Query.prototype.load</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 88</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 89</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 90</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.columns</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 91</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json.columns</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 92</span> </span><span class="WHIT">			</span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">item</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 93</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 94</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">columns_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 95</span> </span><span class="WHIT">			</span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">	</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 99</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>100</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collection</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>101</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.collections</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>102</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json.collections</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>103</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Collection</span><span class="PUNC">(</span><span class="NAME">item.index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">item.name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>104</span> </span><span class="WHIT">			</span><span class="NAME">collection</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>105</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>106</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>107</span> </span><span class="WHIT">	</span><span class="NAME">this.collection</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>108</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"querystring"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>109</span> </span><span class="WHIT">		</span><span class="NAME">this.query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>110</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>111</span> </span><span class="WHIT">		</span><span class="NAME">this.query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"querystring"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>112</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>113</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"squerystring"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>114</span> </span><span class="WHIT">		</span><span class="NAME">this.squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>115</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>116</span> </span><span class="WHIT">		</span><span class="NAME">this.squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"squerystring"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">	</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>120</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>121</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.options</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>122</span> </span><span class="WHIT">		</span><span class="NAME">this.options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>123</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.options</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">			</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json.options</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">				</span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">item</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>128</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">options_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>129</span> </span><span class="WHIT">				</span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>131</span> </span><span class="WHIT">			</span><span class="NAME">this.options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>132</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">			</span><span class="NAME">this.options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>135</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>136</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.time</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="WHIT">		</span><span class="NAME">this.time_created</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>139</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>140</span> </span><span class="WHIT">		</span><span class="NAME">this.time_created</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json.time</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>141</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>142</span> </span><span class="WHIT">	</span><span class="NAME">this.id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json.id</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>143</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>144</span> 
+<span class='line'>145</span> </span><span class="NAME">Query.prototype.save</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>146</span> </span><span class="WHIT">	</span><span class="COMM">//queryset id</span><span class="WHIT">
+<span class='line'>147</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>148</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>149</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">queries</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>150</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>151</span> </span><span class="WHIT">	</span><span class="COMM">//var iq = $('#userqueries').children().size();</span><span class="WHIT">
+<span class='line'>152</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">queries</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>153</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>154</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>155</span> </span><span class="WHIT">		</span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queries.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>156</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>157</span> </span><span class="WHIT">	</span><span class="COMM">// create queryID</span><span class="WHIT">
+<span class='line'>158</span> </span><span class="WHIT">	</span><span class="NAME">this.id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="COMM">//Workspace.newQueryID();//id + "_" + iq;</span><span class="WHIT">
+<span class='line'>159</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.toJSON</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>160</span> </span><span class="WHIT">	</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>161</span> </span><span class="WHIT">	</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">id</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="WHIT">	</span><span class="COMM">//appendQueryUI(jsonw["WorkspaceProfile"]["Querysets"][id]["Queries"][iq],iq, $('#userqueries'));</span><span class="WHIT">
+<span class='line'>163</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>164</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>165</span> 
+<span class='line'>166</span> 
+<span class='line'>167</span> </span><span class="NAME">Query.prototype.getcolumnstext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>168</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>169</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.columns_widget</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>170</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.columns</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>171</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.columns_widget.getListText</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>173</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>174</span> 
+<span class='line'>175</span> </span><span class="NAME">Query.prototype.updatecolumnstext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">list</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>176</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>177</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>178</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">list</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>179</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>180</span> </span><span class="WHIT">			</span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>181</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>182</span> </span><span class="WHIT">		</span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>183</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>184</span> </span><span class="WHIT">	</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>185</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>186</span> 
+<span class='line'>187</span> </span><span class="COMM">/** special handling for special characters: double escaping (escape the %-sign)
+<span class='line'>188</span>  * to survive the %-encoding through the request (and parsing) down to the transformation in XCQL2XPath.xsl
+<span class='line'>189</span>  * it's: whitespace, and single and double-quotes (unified to double quotes %22)
+<span class='line'>190</span> */</span><span class="WHIT">  </span><span class="WHIT">
+<span class='line'>191</span> 
+<span class='line'>192</span> </span><span class="NAME">Query.prototype.query_uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>193</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"?"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>194</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.query</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>195</span> </span><span class="WHIT">		</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"q="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">escape</span><span class="PUNC">(</span><span class="NAME">this.query</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>196</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>197</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.squery</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>198</span> </span><span class="WHIT">		</span><span class="NAME">escaped_sq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="NAME">escape</span><span class="PUNC">(</span><span class="NAME">this.squery</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/%20/g</span><span class="PUNC">,</span><span class="STRN">"%2520"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/\%2[27]/g</span><span class="PUNC">,</span><span class="STRN">"%2522"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>199</span> </span><span class="WHIT">		</span><span class="NAME">escaped_sq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">escaped_sq.replace</span><span class="PUNC">(</span><span class="REGX">/%7C/g</span><span class="PUNC">,</span><span class="STRN">"%257C"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/\+/g</span><span class="PUNC">,</span><span class="STRN">"%2B"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>200</span> </span><span class="WHIT">		</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"squery="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">escaped_sq</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>201</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">	</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"collection="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.getcollectiontext</span><span class="PUNC">(</span><span class="STRN">"index"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&columns="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.getcolumnstext</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&startItem="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.startItem</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&maximumItems="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.maximumItems</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&repository="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.repository</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT">  </span><span class="PUNC">(</span><span class="NAME">this.options</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">		</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&options=withSummary"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>207</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">params</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>208</span> 
+<span class='line'>209</span> </span><span class="WHIT">	</span><span class="COMM">//return $.param(this.query);</span><span class="WHIT">
+<span class='line'>210</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>211</span> 
+<span class='line'>212</span> </span><span class="NAME">Query.prototype.sruquery_uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>213</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"?operation=searchRetrieve&version=1.2&"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>214</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>215</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.query</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>216</span> </span><span class="WHIT">		</span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"( "</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">escape</span><span class="PUNC">(</span><span class="NAME">this.query</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" )"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>217</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>218</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.squery</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>219</span> </span><span class="WHIT">		</span><span class="NAME">escaped_sq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="NAME">escape</span><span class="PUNC">(</span><span class="NAME">this.squery</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/%20/g</span><span class="PUNC">,</span><span class="STRN">"%2520"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/\%2[27]/g</span><span class="PUNC">,</span><span class="STRN">"%2522"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>220</span> </span><span class="WHIT">		</span><span class="NAME">escaped_sq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">escaped_sq.replace</span><span class="PUNC">(</span><span class="REGX">/%7C/g</span><span class="PUNC">,</span><span class="STRN">"%257C"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">replace</span><span class="PUNC">(</span><span class="REGX">/\+/g</span><span class="PUNC">,</span><span class="STRN">"%2B"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>221</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">q.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>222</span> </span><span class="WHIT">			</span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" and "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>223</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>224</span> </span><span class="WHIT">		</span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">escaped_sq</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>226</span> </span><span class="WHIT">	</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"query="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&x-cmd-collections="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.getcollectiontext</span><span class="PUNC">(</span><span class="STRN">"index"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>227</span> </span><span class="WHIT">	</span><span class="STRN">"&startRecord="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.startItem</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&maximumRecords="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.maximumItems</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&x-cmd-repository="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.repository</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>228</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>229</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">params</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>231</span> 
+<span class='line'>232</span> </span><span class="NAME">Query.prototype.toString</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>233</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>234</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.getcollectiontext</span><span class="PUNC">(</span><span class="STRN">"name"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="STRN">" in "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.getcollectiontext</span><span class="PUNC">(</span><span class="STRN">"name"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>235</span> </span><span class="WHIT">	</span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Query.queryliststring</span><span class="PUNC">(</span><span class="NAME">this.squery</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.query</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" @"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.repository.toString</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>236</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">str</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>237</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>238</span> 
+<span class='line'>239</span> </span><span class="NAME">Query.prototype.publish</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>240</span> </span><span class="WHIT">	</span><span class="NAME">$.post</span><span class="PUNC">(</span><span class="STRN">"/MDService2/virtualcollection/USER/"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.id</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>241</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>242</span> 
+<span class='line'>243</span> </span><span class="NAME">Query.prototype.toJSON</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="COMM">//Query.prototype.query_json = function () {	</span><span class="WHIT">
+<span class='line'>245</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dt</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>246</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dateFormat</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//dt.toString("dd/mm/yyyy HH:mm:ss");</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="WHIT">	</span><span class="COMM">//var jsonq = { "options" : json_options, "bookmark" : bookmark, "time" : str_time};</span><span class="WHIT">
+<span class='line'>248</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.options</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>249</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.options</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>250</span> </span><span class="WHIT">		</span><span class="NAME">json_opts</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>251</span> </span><span class="WHIT">		</span><span class="NAME">json_opts</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.options</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>252</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>253</span> 
+<span class='line'>254</span> </span><span class="WHIT">	</span><span class="COMM">// collections</span><span class="WHIT">
+<span class='line'>255</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_coll</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>256</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>257</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.collection.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>258</span> </span><span class="WHIT">		</span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>259</span> </span><span class="WHIT">		</span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>260</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>261</span> </span><span class="WHIT">		</span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>262</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.collection.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>263</span> </span><span class="WHIT">			</span><span class="NAME">json_coll</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"index"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this.collection</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"name"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="NAME">this.collection</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">name</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>264</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>265</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>266</span> </span><span class="WHIT">	</span><span class="COMM">//columns</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_cols</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">colls</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.columns</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">colls</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">		</span><span class="COMM">//json_cols = {};</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">		</span><span class="NAME">json_cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">  </span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.columns.indexOf</span><span class="PUNC">(</span><span class="STRN">","</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>274</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>275</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">		</span><span class="NAME">json_cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT">		</span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT">				</span><span class="NAME">json_cols</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">pos</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT">				</span><span class="NAME">json_cols</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT">			</span><span class="NAME">cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols.substring</span><span class="PUNC">(</span><span class="NAME">pos</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT">			</span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols.indexOf</span><span class="PUNC">(</span><span class="STRN">","</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">			</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>286</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>287</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>288</span> </span><span class="WHIT">		</span><span class="NAME">json_cols</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>289</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>290</span> 
+<span class='line'>291</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"id"</span><span class="PUNC">:</span><span class="NAME">this.id</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>292</span> </span><span class="WHIT">				 </span><span class="STRN">"name"</span><span class="PUNC">:</span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>293</span> </span><span class="WHIT">			     </span><span class="STRN">"squerystring"</span><span class="PUNC">:</span><span class="NAME">this.squery</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>294</span> </span><span class="WHIT">				 </span><span class="STRN">"querystring"</span><span class="PUNC">:</span><span class="NAME">this.query</span><span class="PUNC">,</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>295</span> </span><span class="WHIT">				 </span><span class="STRN">"searchclauses"</span><span class="PUNC">:</span><span class="STRN">"null"</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>296</span> </span><span class="WHIT">				 </span><span class="STRN">"collections"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">json_coll</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>297</span> </span><span class="WHIT">				 </span><span class="STRN">"columns"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">json_cols</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>298</span> </span><span class="WHIT">				 </span><span class="STRN">"startItem"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this.startItem</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>299</span> </span><span class="WHIT">				 </span><span class="STRN">"maximumItems"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this.maximumItems</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>300</span> </span><span class="WHIT">				 </span><span class="STRN">"options"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">json_options</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>301</span> </span><span class="WHIT">				 </span><span class="STRN">"bookmark"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"0"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>302</span> </span><span class="WHIT">				 </span><span class="STRN">"time"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>303</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>304</span> </span><span class="WHIT">	</span><span class="NAME">jsonq.name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Query.fullformatstring</span><span class="PUNC">(</span><span class="NAME">jsonq</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>305</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>306</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="PUNC">;</span><span class="COMM">//JSON.stringify(jsonq);</span><span class="WHIT">
+<span class='line'>307</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>308</span> 
+<span class='line'>309</span> </span><span class="NAME">Query.prototype.getcollectiontext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">what</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>310</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>311</span> </span><span class="WHIT">	</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.collection.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>312</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">what</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"index"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>313</span> </span><span class="WHIT">			</span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.collection</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="WHIT">			</span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.collection</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">name</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>316</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>317</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">collection_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>319</span> </span><span class="WHIT">		</span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>320</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>321</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>322</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>323</span> </span><span class="NAME">Query.prototype.getcollectionindextext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>324</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>325</span> </span><span class="WHIT">	</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.collection.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>326</span> </span><span class="WHIT">		</span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.collection</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>327</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>328</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">collection_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>329</span> </span><span class="WHIT">		</span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>330</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>331</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>332</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>333</span> 
+<span class='line'>334</span> </span><span class="NAME">Query.collectiontext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>335</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>336</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.collections</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>337</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json.collections</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>338</span> </span><span class="WHIT">			</span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">item.name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>339</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>340</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">collection_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>341</span> </span><span class="WHIT">			</span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>342</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>343</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>344</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>345</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>346</span> 
+<span class='line'>347</span> </span><span class="NAME">Query.columnstext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>348</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>349</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.columns</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>350</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json.columns</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>351</span> </span><span class="WHIT">			</span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">item</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>352</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>353</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">columns_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>354</span> </span><span class="WHIT">			</span><span class="NAME">columns_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>355</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>356</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>357</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">columns_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>358</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>359</span> 
+<span class='line'>360</span> </span><span class="NAME">Query.optionstext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>361</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>362</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.options</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>363</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>364</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>365</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.options</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>366</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json.options</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>367</span> </span><span class="WHIT">			</span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">item</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>368</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>369</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">options_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>370</span> </span><span class="WHIT">			</span><span class="NAME">options_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">options_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>371</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>372</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>373</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">options_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>374</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>375</span> 
+<span class='line'>376</span> </span><span class="NAME">Query.fullformatstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>377</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json.querystring</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>378</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sqs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json.squerystring</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>379</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>380</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>381</span> </span><span class="WHIT">		</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>382</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>383</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">sqs</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>384</span> </span><span class="WHIT">		</span><span class="NAME">sqs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>385</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>386</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Query.collectiontext</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>387</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>388</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>389</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">len</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">formatquerystring_len</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>390</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>391</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">sqs</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>392</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">sqs.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NAME">len</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>393</span> </span><span class="WHIT">			</span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sqs.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">len</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"..| "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>394</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>395</span> </span><span class="WHIT">			</span><span class="NAME">sqs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sqs</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"                                     "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>396</span> </span><span class="WHIT">			</span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sqs.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">len</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"  | "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>397</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>398</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>399</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>400</span> </span><span class="WHIT">		</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Query.simplequerystring</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>401</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qs.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NAME">len</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>402</span> </span><span class="WHIT">			</span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qs.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">len</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"..| "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>403</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>404</span> </span><span class="WHIT">			</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"                                     "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>405</span> </span><span class="WHIT">			</span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qs.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">len</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"  | "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>406</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>407</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>408</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">collection_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">len</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">6</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>409</span> </span><span class="WHIT">		</span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">collection_text.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">len</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>410</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>411</span> </span><span class="WHIT">		</span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">full_str</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>412</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>413</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>414</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">full_str</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>415</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>416</span> 
+<span class='line'>417</span> </span><span class="NAME">Query.queryliststring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">squery</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>418</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">s_squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>419</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">s_query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>420</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>421</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>422</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>423</span> </span><span class="WHIT">		</span><span class="NAME">s_squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>424</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>425</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>426</span> </span><span class="WHIT">		</span><span class="NAME">s_query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>427</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>428</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">s_squery.length</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">s_query.length</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>429</span> </span><span class="WHIT">		</span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" & ("</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">Query.simplequerystring</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="STRN">")"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>430</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">s_squery.length</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>431</span> </span><span class="WHIT">		</span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>432</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>433</span> </span><span class="WHIT">		</span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="NAME">Query.simplequerystring</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>434</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>435</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">str</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>436</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>437</span> 
+<span class='line'>438</span> </span><span class="NAME">Query.simplequerystring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">querystring</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>439</span> 
+<span class='line'>440</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">querystring</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>441</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>442</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>443</span> </span><span class="WHIT">	</span><span class="NAME">querystring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Url.decode</span><span class="PUNC">(</span><span class="NAME">querystring</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>444</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>445</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">arr_and</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">querystring.split</span><span class="PUNC">(</span><span class="STRN">" and "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>446</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">simple_form</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>447</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">simple_form_all</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>448</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>449</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>450</span> </span><span class="WHIT">	</span><span class="KEYW">for</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">arr_and.length</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>451</span> </span><span class="WHIT">		</span><span class="NAME">arr_and</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$.trim</span><span class="PUNC">(</span><span class="NAME">arr_and</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>452</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">arr_or</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">arr_and</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">split</span><span class="PUNC">(</span><span class="STRN">" or "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>453</span> </span><span class="WHIT">		</span><span class="NAME">simple_form</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>454</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">;</span><span class="NAME">j</span><span class="PUNC">&lt;</span><span class="NAME">arr_or.length</span><span class="PUNC">;</span><span class="NAME">j</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>455</span> </span><span class="WHIT">			</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$.trim</span><span class="PUNC">(</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>456</span> </span><span class="WHIT">			</span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"("</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>457</span> </span><span class="WHIT">				</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>458</span> </span><span class="WHIT">				</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$.trim</span><span class="PUNC">(</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>459</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>460</span> </span><span class="WHIT">			</span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">substring</span><span class="PUNC">(</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">")"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>461</span> </span><span class="WHIT">				</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>462</span> </span><span class="WHIT">				</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$.trim</span><span class="PUNC">(</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>463</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>464</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>465</span> </span><span class="WHIT">				</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">" or "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>466</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>467</span> </span><span class="WHIT">				</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>468</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>469</span> </span><span class="WHIT">			</span><span class="NAME">simple_form</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">simple_form</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>470</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>471</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">arr_or.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>472</span> </span><span class="WHIT">			</span><span class="NAME">simple_form</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"("</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">simple_form</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">") "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>473</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>474</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>475</span> </span><span class="WHIT">			</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">" and  "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>476</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>477</span> </span><span class="WHIT">			</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>478</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>479</span> </span><span class="WHIT">		</span><span class="NAME">simple_form_all</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">simple_form_all</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">simple_form</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>480</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>481</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>482</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>483</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>484</span> </span><span class="WHIT">	</span><span class="COMM">//notifyUser("querystring:" + querystring, 'debug');</span><span class="WHIT">
+<span class='line'>485</span> </span><span class="WHIT">	</span><span class="COMM">//notifyUser("simplequerystring:" + simple_form_all, 'debug');</span><span class="WHIT">
+<span class='line'>486</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">simple_form_all</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>487</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>488</span> 
+<span class='line'>489</span> </span><span class="NAME">Query.prototype.render</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>490</span> </span><span class="COMM">/*
+<span class='line'>491</span> 	var x = "&lt;div id='" + this.listid + "' class='query_wrapper ui-widget' >&lt;div class='query_header ui-widget-header ui-state-default ui-corner-top'>" +
+<span class='line'>492</span> 	"&lt;span class='cmd cmd_get'>&lt;/span>&lt;span class='cmd cmd_save'>&lt;/span>&lt;span class='cmd cmd_del'> &lt;/span>" +
+<span class='line'>493</span> 	"&lt;span class='query_id'>" + 	this.listid + "&lt;/span>: &lt;span class='query'>" +
+<span class='line'>494</span> 	this.getcollectiontext("name") + ":" + Query.queryliststring(this.squery, this.query) + ", repository:" + this.repository.toString() + "&lt;/span>" + 
+<span class='line'>495</span> 			"&lt;a class='cmd cmd_xml' target='_blank' href='" + this.link("xml") + "'>xml&lt;/a> &lt;a class='cmd cmd_link' target='_blank' href='" + this.link("fullpage") + "' >link&lt;/a>&lt;/div>" +
+<span class='line'>496</span> 		//	&lt;span class='cmd cmd-xml'>&lt;/span>&lt;span class='cmd cmd-page'>&lt;/span>&lt;span class='cmd cmd-link'>&lt;/span>&lt;/div>" +		
+<span class='line'>497</span> 			//"&lt;div class='ui-context-dialog columns-wrapper'>&lt;div class='query-columns'>&lt;/div>&lt;span class='cmd cmd_del'>&lt;/span>&lt;/div>&lt;div class='result ui-widget-content ui-corner-bottom'>&lt;/div>";
+<span class='line'>498</span> 			"&lt;div class='result ui-widget-content ui-corner-bottom'>&lt;/div>";
+<span class='line'>499</span> 			*/</span><span class="WHIT">
+<span class='line'>500</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>501</span> 	var x = $('#querylistelement').html().toString();
+<span class='line'>502</span> 	x.replace('querylistelement', this.listid);
+<span class='line'>503</span> 	$(x).find(".query-id").text(this.listid);
+<span class='line'>504</span> 	$(x).children().children(".query").text(this.getcollectiontext("name") + ":" + Query.queryliststring(this.squery, this.query) + ", repository:" + this.repository.toString());
+<span class='line'>505</span> 	*/</span><span class="WHIT">
+<span class='line'>506</span> </span><span class="WHIT">	</span><span class="COMM">// FIXME: this is not nice, there should be a function providing the formatted string of the query.</span><span class="WHIT">
+<span class='line'>507</span> </span><span class="WHIT">	</span><span class="COMM">//var coll = (this.getcollectiontext("name") != "" ) ? " in " + this.getcollectiontext("name") : "";  </span><span class="WHIT">
+<span class='line'>508</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;div id='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"' class='query_wrapper ui-widget' name='query' >&lt;div class='query_header ui-widget-header ui-state-default ui-corner-top'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>509</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;span class='cmd cmd_get'>&lt;/span>&lt;span class='cmd cmd_del'> &lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>510</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;span class='query_id'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/span>: &lt;span class='query'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>511</span> </span><span class="WHIT">	</span><span class="NAME">this.toString</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>512</span> </span><span class="WHIT">	</span><span class="COMM">//Query.queryliststring(this.squery, this.query) + coll + " @" + this.repository.toString() + </span><span class="WHIT">
+<span class='line'>513</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>514</span> </span><span class="WHIT">			</span><span class="STRN">"&lt;/div>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>515</span> </span><span class="WHIT">			</span><span class="STRN">"&lt;div class='result ui-widget-content ui-corner-bottom'>&lt;/div>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>516</span> </span><span class="WHIT">	</span><span class="NAME">addToQuerylist</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>517</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>518</span> </span><span class="WHIT">	</span><span class="NAME">this.container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>519</span> 
+<span class='line'>520</span> </span><span class="WHIT">	</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"DEBUG: setting up removing query:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>521</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.container</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.query_header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>522</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"DEBUG: removing query:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>523</span> </span><span class="WHIT">		</span><span class="NAME">queryset.removequery</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>524</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>525</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>526</span> </span><span class="WHIT">	</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="NAME">this.container</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>527</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>528</span> </span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>529</span> </span><span class="WHIT"> </span><span class="NAME">Query.prototype.open</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>530</span> </span><span class="WHIT">	 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT">
+<span class='line'>531</span> </span><span class="WHIT">	    </span><span class="NAME">window.open</span><span class="PUNC">(</span><span class="NAME">this.link</span><span class="PUNC">(</span><span class="NAME">type</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>532</span> </span><span class="WHIT">	 </span><span class="KEYW">else</span><span class="WHIT">
+<span class='line'>533</span> </span><span class="WHIT">		</span><span class="NAME">window.open</span><span class="PUNC">(</span><span class="NAME">this.link</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>534</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>535</span> </span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>536</span> </span><span class="WHIT"> </span><span class="NAME">Query.prototype.link</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>537</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">=</span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>538</span> </span><span class="WHIT">	 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="PUNC">==</span><span class="STRN">"fullpage"</span><span class="PUNC">)</span><span class="WHIT">  </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>539</span> </span><span class="WHIT">		 </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'base'</span><span class="PUNC">,</span><span class="NAME">this.query_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>540</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>541</span> </span><span class="WHIT">		 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"xml"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>542</span> </span><span class="WHIT">			 </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'sru'</span><span class="PUNC">,</span><span class="NAME">this.sruquery_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>543</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>544</span> </span><span class="WHIT">			 </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'recordset'</span><span class="PUNC">,</span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.query_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>545</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>546</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>547</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>548</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>549</span> </span><span class="WHIT">  </span><span class="WHIT">
+<span class='line'>550</span> </span><span class="WHIT"> </span><span class="NAME">Query.prototype.link_obsoleted</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>551</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'>552</span> </span><span class="WHIT">		</span><span class="COMM">// JSON conversion</span><span class="WHIT">
+<span class='line'>553</span> </span><span class="WHIT">	 </span><span class="COMM">/*
+<span class='line'>554</span> 		if (this.query.length == 0){
+<span class='line'>555</span> 			xqstring = "[NULL]";
+<span class='line'>556</span> 		} else {
+<span class='line'>557</span> 			xqstring = this.query;
+<span class='line'>558</span> 		}
+<span class='line'>559</span> 		if (this.squery.length == 0){
+<span class='line'>560</span> 			xsquery = "[NULL]";
+<span class='line'>561</span> 		} else {
+<span class='line'>562</span> 			xsquery = this.squery;
+<span class='line'>563</span> 		}
+<span class='line'>564</span> 	 */</span><span class="WHIT">
+<span class='line'>565</span> </span><span class="WHIT">	 	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"squerystring"</span><span class="PUNC">:</span><span class="NAME">this.squery</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"querystring"</span><span class="PUNC">:</span><span class="NAME">this.query</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"searchclauses"</span><span class="PUNC">:</span><span class="STRN">"null"</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"collections"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this.json_coll</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"columns"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this.json_cols</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>566</span> 
+<span class='line'>567</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"?query="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">JSON.stringify</span><span class="PUNC">(</span><span class="NAME">jsonq</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&startItem="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.startItem</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&maximumItems="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.maximumItems</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>568</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>569</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>570</span> </span><span class="WHIT"> </span><span class="NAME">Query.prototype.submit</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>571</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'recordset'</span><span class="PUNC">,</span><span class="NAME">this.format</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.query_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>572</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>573</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>574</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"submitting query:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">uri</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>575</span> </span><span class="WHIT">		</span><span class="NAME">this.container.find</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>576</span> </span><span class="WHIT">					</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"result-loaded"</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>577</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>578</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">get</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>579</span> 
+<span class='line'>580</span> </span><span class="WHIT">					</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>581</span> </span><span class="WHIT">					</span><span class="NAME">get.addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>582</span> </span><span class="WHIT">					</span><span class="COMM">// get.show();</span><span class="WHIT">
+<span class='line'>583</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>584</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">result_header</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.result-header'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>585</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>586</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q_header</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>587</span> </span><span class="WHIT">					</span><span class="NAME">q_header</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.query_header'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>588</span> </span><span class="WHIT">					</span><span class="NAME">q_header.append</span><span class="PUNC">(</span><span class="NAME">result_header</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>589</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>590</span> </span><span class="WHIT">				 	</span><span class="NAME">addDetailFunctionality</span><span class="PUNC">(</span><span class="NAME">q_header</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>591</span> </span><span class="WHIT">				 	</span><span class="WHIT">
+<span class='line'>592</span> </span><span class="WHIT">					</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>593</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>594</span> 
+<span class='line'>595</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>596</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>597</span> </span><span class="NAME">Query.prototype.resubmit</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>598</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>599</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'recordset'</span><span class="PUNC">,</span><span class="NAME">this.format</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.query_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>600</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>601</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q_uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.query_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>602</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>603</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>604</span> </span><span class="WHIT">	</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"resubmitting query:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">uri</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>605</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>606</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">get</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>607</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">get.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>608</span> </span><span class="WHIT">		</span><span class="NAME">get</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_down'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>609</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>610</span> </span><span class="WHIT">	</span><span class="NAME">get.addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>611</span> </span><span class="WHIT">	</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>612</span> </span><span class="WHIT">	</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_down'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>613</span> </span><span class="WHIT">	</span><span class="COMM">// get.show();	</span><span class="WHIT">
+<span class='line'>614</span> 
+<span class='line'>615</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>616</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>617</span> </span><span class="WHIT">				</span><span class="COMM">// update link-hrefs</span><span class="WHIT">
+<span class='line'>618</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>619</span> </span><span class="WHIT">				</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"result-loaded ID:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>620</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>621</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.getQuery</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>622</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">".cmd_link"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"href"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">q.link</span><span class="PUNC">(</span><span class="STRN">"fullpage"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>623</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>624</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">get</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>625</span> </span><span class="WHIT">				</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>626</span> </span><span class="WHIT">				</span><span class="NAME">get.addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>627</span> </span><span class="WHIT">				</span><span class="COMM">// get.show();	</span><span class="WHIT">
+<span class='line'>628</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>629</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">result_header</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.result-header'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>630</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>631</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q_header</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>632</span> </span><span class="WHIT">				</span><span class="NAME">q_header</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.query_header'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>633</span> </span><span class="WHIT">				</span><span class="NAME">q_header.children</span><span class="PUNC">(</span><span class="STRN">'.result-header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>634</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>635</span> </span><span class="WHIT">				</span><span class="NAME">q_header.append</span><span class="PUNC">(</span><span class="NAME">result_header</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>636</span> </span><span class="WHIT">			 	</span><span class="NAME">addDetailFunctionality</span><span class="PUNC">(</span><span class="NAME">q_header</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>637</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>638</span> 
+<span class='line'>639</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>640</span> 
+<span class='line'>641</span> </span><span class="NAME">Query.prototype.updateColumns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">selectionlist</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>642</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">selectionlist</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>643</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">selectionlist.autoSelected</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>644</span> </span><span class="WHIT">			</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>645</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT">
+<span class='line'>646</span> </span><span class="WHIT">		</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>647</span> </span><span class="WHIT">			</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlist.listwidget.getListText</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>648</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>649</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>650</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>651</span> 
+<span class='line'>652</span> </span><span class="NAME">Query.prototype.next</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">pages</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>653</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>654</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>655</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">max_value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.result-header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"max_value"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>656</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>657</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">this.startItem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">>=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>658</span> </span><span class="WHIT">		</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">	</span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">this.startItem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>659</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">this.startItem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">>=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>660</span> </span><span class="WHIT">		</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">	</span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>661</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>662</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>663</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">&lt;=</span><span class="WHIT"> </span><span class="NAME">max_value</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>664</span> </span><span class="WHIT">			</span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>665</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">&lt;=</span><span class="WHIT"> </span><span class="NAME">max_value</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>666</span> </span><span class="WHIT">			</span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">max_value</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">start</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>667</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>668</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>669</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>670</span> </span><span class="WHIT">			</span><span class="NAME">this.startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">start</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>671</span> </span><span class="WHIT">			</span><span class="NAME">this.maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>672</span> </span><span class="WHIT">			</span><span class="NAME">this.resubmit</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>673</span> </span><span class="WHIT">			</span><span class="NAME">updateQueryDetailPane</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>674</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>675</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>676</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>677</span> 
+<span class='line'>678</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">queryset_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#querylist"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>679</span> 
+<span class='line'>680</span> </span><span class="COMM">/**
+<span class='line'>681</span>  * A singleton-object holding all queries.
+<span class='line'>682</span>  * @constructor
+<span class='line'>683</span> */</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>684</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">queryset</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">queries</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>685</span> </span><span class="WHIT">	</span><span class="NAME">container</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'#querylist'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>686</span> </span><span class="WHIT">	</span><span class="NAME">recordrowselected</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>687</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>688</span> </span><span class="WHIT">	</span><span class="NAME">addquery</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>689</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>690</span> </span><span class="WHIT">		</span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">this.queries.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>691</span> </span><span class="WHIT">		</span><span class="NAME">query.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"q"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>692</span> </span><span class="WHIT">		</span><span class="NAME">query.render</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>693</span> </span><span class="WHIT">		</span><span class="NAME">query.submit</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>694</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>695</span> 
+<span class='line'>696</span> </span><span class="WHIT">	</span><span class="NAME">removequery</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>697</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"removing query:"</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>698</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>699</span> </span><span class="WHIT">		 </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>700</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>701</span> </span><span class="WHIT">				</span><span class="NAME">this.queries.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>702</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>703</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>704</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>705</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"query removed, new queries.length:"</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>706</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>707</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>708</span> 
+<span class='line'>709</span> </span><span class="WHIT">	</span><span class="NAME">getsquery</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>710</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>711</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>712</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>713</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>714</span> </span><span class="WHIT">				</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">squery</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>715</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>716</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>717</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>718</span> </span><span class="WHIT">			</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>719</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>720</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">qstring</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>721</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>722</span> </span><span class="WHIT">	</span><span class="NAME">getquerystring</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>723</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>724</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>725</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>726</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>727</span> </span><span class="WHIT">				</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">query</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>728</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>729</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>730</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>731</span> </span><span class="WHIT">			</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>732</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>733</span> 
+<span class='line'>734</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">qstring</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>735</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>736</span> </span><span class="WHIT">	</span><span class="NAME">getcollections</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>737</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>738</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_coll</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">json_temp</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>739</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>740</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>741</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>742</span> </span><span class="WHIT">				</span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">collection</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>743</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>744</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>745</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">coll.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>746</span> </span><span class="WHIT">			</span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>747</span> </span><span class="WHIT">			</span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>748</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>749</span> </span><span class="WHIT">			</span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>750</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">coll.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>751</span> </span><span class="WHIT">				</span><span class="NAME">json_coll</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"index"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"name"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="NAME">coll</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">name</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>752</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>753</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>754</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">json_coll</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>755</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>756</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>757</span> </span><span class="WHIT">	</span><span class="NAME">getcolumns</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>758</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>759</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_cols</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">json_temp</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>760</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>761</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>762</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>763</span> </span><span class="WHIT">				</span><span class="NAME">cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">columns</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>764</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>765</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>766</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>767</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">cols</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>768</span> </span><span class="WHIT">			</span><span class="NAME">json_cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>769</span> </span><span class="WHIT">			</span><span class="NAME">json_cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>770</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">  </span><span class="WHIT">
+<span class='line'>771</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols.indexOf</span><span class="PUNC">(</span><span class="STRN">","</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>772</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>773</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>774</span> </span><span class="WHIT">			</span><span class="NAME">json_cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>775</span> </span><span class="WHIT">			</span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>776</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>777</span> </span><span class="WHIT">					</span><span class="NAME">json_cols</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NAME">pos</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>778</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>779</span> </span><span class="WHIT">					</span><span class="NAME">json_cols</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>780</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>781</span> </span><span class="WHIT">				</span><span class="NAME">cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols.substring</span><span class="PUNC">(</span><span class="NAME">pos</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>782</span> </span><span class="WHIT">				</span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols.indexOf</span><span class="PUNC">(</span><span class="STRN">","</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>783</span> </span><span class="WHIT">				</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>784</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>785</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>786</span> </span><span class="WHIT">			</span><span class="NAME">json_cols</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cols</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>787</span> 
+<span class='line'>788</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>789</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>790</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">json_cols</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>791</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>792</span> </span><span class="WHIT">	</span><span class="NAME">getoptions</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>793</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">opts</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>794</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_opts</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>795</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>796</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.queries.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>797</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>798</span> </span><span class="WHIT">				</span><span class="NAME">opts</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.queries</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">options</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>799</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>800</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>801</span> 
+<span class='line'>802</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">opts</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>803</span> </span><span class="WHIT">			</span><span class="NAME">json_opts</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>804</span> </span><span class="WHIT">			</span><span class="NAME">json_opts</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">opts</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>805</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>806</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">json_opts</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>807</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>808</span> </span><span class="WHIT">	</span><span class="NAME">resubmit</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>809</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.queries</span><span class="PUNC">[</span><span class="NAME">qid.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>810</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>811</span> </span><span class="WHIT">		</span><span class="NAME">query.repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>812</span> </span><span class="WHIT">		</span><span class="NAME">query.startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.start_record'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>813</span> </span><span class="WHIT">		</span><span class="NAME">query.maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.maximum_records'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>814</span> </span><span class="WHIT">		</span><span class="NAME">query.resubmit</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>815</span> 
+<span class='line'>816</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>817</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>818</span> </span><span class="WHIT">	</span><span class="NAME">getQuery</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>819</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.queries</span><span class="PUNC">[</span><span class="NAME">qid.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>820</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>821</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>822</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>823</span> 	next: function(qid,pages){
+<span class='line'>824</span> 		var query = queryset.queries[qid.substring(1)-1];
+<span class='line'>825</span> 		var start = 0;
+<span class='line'>826</span> 		var num = 0;
+<span class='line'>827</span> 		var max_value = $('#' + qid ).find('.result-header').attr("max_value");
+<span class='line'>828</span> 		
+<span class='line'>829</span> 		if (parseInt(query.startItem) + pages * page_record_count >= 1){
+<span class='line'>830</span> 			start =	parseInt(query.startItem) + pages * page_record_count ;
+<span class='line'>831</span> 		} else if (parseInt(query.startItem) + pages * page_record_count + page_record_count - 1 >= 1){
+<span class='line'>832</span> 			start =	1 ;
+<span class='line'>833</span> 		}
+<span class='line'>834</span> 		if (start > 0){
+<span class='line'>835</span> 			if (start + page_record_count - 1 &lt;= max_value) {
+<span class='line'>836</span> 				num = page_record_count;
+<span class='line'>837</span> 			} else if (start &lt;= max_value){
+<span class='line'>838</span> 				num = max_value - start;
+<span class='line'>839</span> 			}
+<span class='line'>840</span> 		
+<span class='line'>841</span> 			if (num > 0){
+<span class='line'>842</span> 				query.startItem =	start;
+<span class='line'>843</span> 				query.maximumItems = num;
+<span class='line'>844</span> 				query.resubmit();
+<span class='line'>845</span> 			}
+<span class='line'>846</span> 		}
+<span class='line'>847</span> 		
+<span class='line'>848</span> 	},
+<span class='line'>849</span> 	*/</span><span class="WHIT">
+<span class='line'>850</span> </span><span class="WHIT">	</span><span class="NAME">recorddetailselection</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">recordrow</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>851</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.recordrowselected</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>852</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.recordrowselected</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">'detailselection'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>853</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>854</span> </span><span class="WHIT">		</span><span class="NAME">this.recordrowselected</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">recordrow</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>855</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.recordrowselected</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'detailselection'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>856</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>857</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>858</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>859</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>860</span> 
+<span class='line'>861</span> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#querylist .cmd_columns'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>862</span> </span><span class="WHIT">	</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"DEBUG: #querylist.cmd_columns"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>863</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.columns-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toggle</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>864</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>865</span> 
+<span class='line'>866</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">query_wrapper_add_column</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>867</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query-columns'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.widget-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>868</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sl</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlistset.getselectionlist</span><span class="PUNC">(</span><span class="NAME">slid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>869</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">sl.autoSelected</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>870</span> </span><span class="WHIT">		</span><span class="NAME">sl.select</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>871</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>872</span> </span><span class="WHIT">	</span><span class="NAME">sl.listwidget.add</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.treecol'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.column-elem'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>873</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>874</span> </span><span class="WHIT">	</span><span class="COMM">//$(elem).data('query').updateColumns(slid);</span><span class="WHIT">
+<span class='line'>875</span> 
+<span class='line'>876</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>877</span> 
+<span class='line'>878</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">addDetailFunctionality</span><span class="PUNC">(</span><span class="NAME">q_header</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>879</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>880</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">q_header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">,</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>881</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.cmd_reload'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">,</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>882</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.cmds .cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">,</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>883</span> </span><span class="WHIT"> 	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.cmd_reload'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>884</span> </span><span class="WHIT"> 		</span><span class="COMM">/*
+<span class='line'>885</span>  		var qid;
+<span class='line'>886</span>  		if ($(this).parent().attr('class') == 'result-header'){
+<span class='line'>887</span>  			qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>888</span>  		} else {
+<span class='line'>889</span>  			var did = $(this).closest('.detail-wrapper').attr("id");
+<span class='line'>890</span>  			var slid = $(this).closest('.detail-wrapper').find('.selectionlist-widget').attr("id");
+<span class='line'>891</span>  			var detail = detailcaller.getdetail(did);
+<span class='line'>892</span>  			qid = detail.temp_id;
+<span class='line'>893</span>  			
+<span class='line'>894</span>  			var q = queryset.getQuery(qid);
+<span class='line'>895</span>  			if (selectionlistset.getselectionlist(slid).autoSelected()){
+<span class='line'>896</span>  	 			q.columns = "";
+<span class='line'>897</span>  			} else
+<span class='line'>898</span>  			{
+<span class='line'>899</span>  	 			q.columns = selectionlistset.getselectionlist(slid).listwidget.getListText();
+<span class='line'>900</span>  			}
+<span class='line'>901</span>   		}
+<span class='line'>902</span> 		//queryset.resubmit(qid);
+<span class='line'>903</span> 		*/</span><span class="WHIT">
+<span class='line'>904</span> </span><span class="WHIT"> 		</span><span class="COMM">// update columns if  reloaded from detail pane</span><span class="WHIT">
+<span class='line'>905</span> </span><span class="WHIT"> 		</span><span class="COMM">/*
+<span class='line'>906</span>  		if ($(this).parent().attr('class') != 'result-header'){
+<span class='line'>907</span>  			var slid = $(this).closest('.detail-wrapper').find('.selectionlist-widget').attr("id");
+<span class='line'>908</span>  			if (selectionlistset.getselectionlist(slid).autoSelected()){
+<span class='line'>909</span>  				$(this).data('query').columns = "";
+<span class='line'>910</span>  			} else
+<span class='line'>911</span>  			{
+<span class='line'>912</span>  				$(this).data('query').columns = selectionlistset.getselectionlist(slid).listwidget.getListText();
+<span class='line'>913</span>  			}
+<span class='line'>914</span>  		}
+<span class='line'>915</span>  		*/</span><span class="WHIT">
+<span class='line'>916</span> </span><span class="WHIT"> 		</span><span class="COMM">/*
+<span class='line'>917</span>  		var slid = $(this).closest('.detail-wrapper').find('.selectionlist-widget').attr("id");
+<span class='line'>918</span>  		if (slid != undefined){
+<span class='line'>919</span>  	 		$(this).data('query').updateColumns($(this).data('detail'));
+<span class='line'>920</span>  		}
+<span class='line'>921</span>  		*/</span><span class="WHIT">
+<span class='line'>922</span> </span><span class="WHIT"> 		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">updateColumns</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'selectionlist'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>923</span> </span><span class="WHIT"> 		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">resubmit</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>924</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>925</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.cmd_prev'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>926</span> </span><span class="WHIT">		</span><span class="COMM">/*
+<span class='line'>927</span> 		var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>928</span> 		queryset.next(qid,-1);
+<span class='line'>929</span> 		*/</span><span class="WHIT">
+<span class='line'>930</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>931</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>932</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.cmd_next'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>933</span> </span><span class="COMM">/*
+<span class='line'>934</span> 		var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>935</span> 		queryset.next(qid,1);
+<span class='line'>936</span> 		*/</span><span class="WHIT">
+<span class='line'>937</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>938</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>939</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>940</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.value-format'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">,</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>941</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.value-format'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>942</span> </span><span class="WHIT">		</span><span class="COMM">/*
+<span class='line'>943</span> 		var did = $(this).closest('.detail-wrapper').attr("id");
+<span class='line'>944</span>  		var qid = detailcaller.getdetail(did).temp_id;
+<span class='line'>945</span> 		var q = queryset.getQuery(qid);		
+<span class='line'>946</span> 		queryset.resubmit(qid);
+<span class='line'>947</span> 		*/</span><span class="WHIT">
+<span class='line'>948</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">format</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option:selected'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>949</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">resubmit</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>950</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>951</span> </span><span class="WHIT">	</span><span class="COMM">//q_header.find('.cmd_add').click(function(){</span><span class="WHIT">
+<span class='line'>952</span> </span><span class="WHIT">	</span><span class="COMM">//q_header.find('.cmd_columns').data('query', query);</span><span class="WHIT">
+<span class='line'>953</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.cmd_columns'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>954</span> </span><span class="WHIT">		</span><span class="NAME">query_wrapper_add_column</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>955</span> </span><span class="WHIT">		</span><span class="COMM">//$(this).data('query').resubmit();</span><span class="WHIT">
+<span class='line'>956</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>957</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.columns-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>958</span> </span><span class="WHIT">	</span><span class="NAME">q_header.find</span><span class="PUNC">(</span><span class="STRN">'.terms-tree'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">treeTable</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="NAME">initialState</span><span class="PUNC">:</span><span class="STRN">"collapsed"</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>959</span> 
+<span class='line'>960</span> 
+<span class='line'>961</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>962</span> </span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_searchclause.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_searchclause.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_searchclause.js.html	(revision 1516)
@@ -0,0 +1,647 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/**
+<span class='line'>  2</span>  * @fileOverview  This file contains model for building searchclausesets used in user queries.
+<span class='line'>  3</span>  * Consists of two parts:
+<span class='line'>  4</span>  * - SearchClause model [index,relation, value], with basic functionality - 
+<span class='line'>  5</span>  * creation, render, autocomplete.
+<span class='line'>  6</span>  * - Searchclauseset - container of actually used searchclauses in app
+<span class='line'>  7</span>  * with basic functionality for building container - add, remove, clear
+<span class='line'>  8</span>  * and conversion functions - conversions from-to querystring
+<span class='line'>  9</span>  *
+<span class='line'> 10</span>  * @author 
+<span class='line'> 11</span>  * @version 
+<span class='line'> 12</span>  */</span><span class="WHIT">
+<span class='line'> 13</span> 
+<span class='line'> 14</span> </span><span class="COMM">// client-side modelling of "business-objects":</span><span class="WHIT">
+<span class='line'> 15</span> </span><span class="COMM">// SearchClause, SearchClauseset, </span><span class="WHIT">
+<span class='line'> 16</span> 
+<span class='line'> 17</span> </span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 18</span> </span><span class="WHIT"> </span><span class="COMM">//TODO use select-options or autocomplete ???</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT"> </span><span class="COMM">//var  relation_autocomplete = new Array('any','all','=','>','&lt;'); </span><span class="WHIT">
+<span class='line'> 20</span> </span><span class="WHIT"> </span><span class="COMM">//var  value_autocomplete = new Array();</span><span class="WHIT">
+<span class='line'> 21</span> 
+<span class='line'> 22</span> </span><span class="COMM">/**
+<span class='line'> 23</span>  * SearchClause model [index,relation, value], with basic functionality - 
+<span class='line'> 24</span>  * creation, render, autocomplete.
+<span class='line'> 25</span>  * @constructor
+<span class='line'> 26</span> */</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">SearchClause</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">relation</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">	</span><span class="NAME">this.index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">index</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="WHIT">	</span><span class="NAME">this.relation</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">relation</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="WHIT">	</span><span class="NAME">this.value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">	</span><span class="NAME">this.negation</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">	</span><span class="NAME">this.is_category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 34</span> </span><span class="WHIT">	</span><span class="NAME">this.category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 35</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 36</span> </span><span class="WHIT">	</span><span class="NAME">this.i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 37</span> </span><span class="WHIT">	</span><span class="NAME">this.j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">	</span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">	</span><span class="NAME">this.container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 41</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.relation</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 42</span> </span><span class="WHIT">		</span><span class="NAME">this.relation</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"="</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 43</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 44</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 45</span> 
+<span class='line'> 46</span> </span><span class="NAME">SearchClause.prototype.GetIndexInput</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-input'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 48</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 49</span> 
+<span class='line'> 50</span> </span><span class="NAME">SearchClause.prototype.GetRelInput</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 51</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.rel_input'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 52</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="NAME">SearchClause.prototype.GetValueInput</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.value-input'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 55</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 56</span> 
+<span class='line'> 57</span> </span><span class="NAME">SearchClause.prototype.GetIndexSelect</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index_select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 60</span> 
+<span class='line'> 61</span> 
+<span class='line'> 62</span> </span><span class="NAME">SearchClause.prototype.GetValueSelect</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 63</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.value_select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 64</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 65</span> 
+<span class='line'> 66</span> </span><span class="NAME">SearchClause.prototype.render</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">rel</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 68</span> </span><span class="WHIT">	</span><span class="COMM">//TODO defaults</span><span class="WHIT">
+<span class='line'> 69</span> </span><span class="WHIT">	</span><span class="COMM">//this.relation = '=';</span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">	</span><span class="COMM">//var index_detail = "";</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="WHIT">	</span><span class="COMM">//if ((this.i == 0) && (this.j == 0)) {</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">	</span><span class="COMM">//	index_detail = "&lt;span name='detail_index' class='cmd cmd_detail'>&lt;/span>";</span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">	</span><span class="COMM">//}</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;div id='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.j</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"' class='sc-j or_level' >&lt;div id='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"' class='sc-wrapper focused' > "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'> 75</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='search'>&lt;span class='index-search'>&lt;select class='index_select'/>&lt;input type='text' class='index-input autocomplete-input' />&lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 76</span> </span><span class="WHIT">	</span><span class="COMM">//index_detail +</span><span class="WHIT">
+<span class='line'> 77</span> </span><span class="WHIT">	</span><span class="COMM">//"&lt;select type='text' class='rel_input' />" +</span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;select class='rel_input'>&lt;option value='='>=&lt;/option>&lt;option value='>'>>&lt;/option>&lt;option value='&lt;'>&lt;&lt;/option>&lt;option value='any'>any&lt;/option>&lt;option value='contains'>contains&lt;/option>&lt;option value='all'>all&lt;/option>&lt;/select>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 79</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;select class='value_select'/>&lt;input type='text' class='value-input' />&lt;span name='detail_value' class='cmd cmd_detail'>&lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'> 80</span> </span><span class="WHIT">	 </span><span class="STRN">"&lt;span class='sc_cmds'>&lt;span class='cmd cmd_sc_delete'> &lt;/span>&lt;span class='sc_id'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">	  </span><span class="STRN">"&lt;span class='cmd cmd_add_and'> &lt;/span>&lt;span class='cmd cmd_add_or'>&lt;/span>"</span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">	</span><span class="STRN">" &lt;/span>&lt;/div>&lt;div class='index-context'>&lt;table>&lt;/table>&lt;/div>&lt;/div>&lt;/div>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="WHIT">	</span><span class="NAME">addToSClist</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.j</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">rel</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 85</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 86</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 87</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e_index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.GetIndexInput</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 88</span> </span><span class="WHIT">	</span><span class="COMM">//new $.GrowingInput(e_index, {max: 80});</span><span class="WHIT">
+<span class='line'> 89</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e_relation</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.GetRelInput</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 90</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e_value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.GetValueInput</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 91</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index_select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.GetIndexSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 92</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">value_select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.GetValueSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 93</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 94</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">index_select</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 95</span> </span><span class="WHIT">	</span><span class="NAME">value_select.hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="WHIT">	</span><span class="COMM">//$(e_index).closest('.sc-wrapper').find('.index-context').hide();</span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">	</span><span class="COMM">//alert("focused: "  + $('.focused','#searchclauselist').size());</span><span class="WHIT">
+<span class='line'> 99</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>100</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>101</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>102</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">e_index</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>103</span> </span><span class="WHIT">	</span><span class="COMM">//alert("focused: "  + $('.focused','#searchclauselist').size());</span><span class="WHIT">
+<span class='line'>104</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>105</span> </span><span class="WHIT">	</span><span class="COMM">// set focus</span><span class="WHIT">
+<span class='line'>106</span> </span><span class="WHIT">	</span><span class="NAME">e_index.focusin</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>107</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>108</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>109</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>110</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>111</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>112</span> </span><span class="WHIT">	</span><span class="NAME">index_select.focusin</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>113</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>114</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>115</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>116</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">	</span><span class="NAME">e_relation.focusin</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>120</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>121</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>122</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>123</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">	</span><span class="NAME">e_value.focusin</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>128</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>129</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">this.j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_detail'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>131</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>132</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>135</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>136</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">	</span><span class="COMM">//TODO handle keydown</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="COMM">/*	e_index.keydown(function(ev){
+<span class='line'>139</span> 		var evStop = function(){ ev.stopPropagation(); ev.preventDefault(); };
+<span class='line'>140</span> 		if (ev.which === 13) evStop();
+<span class='line'>141</span> 		var evFocusNext = function(){
+<span class='line'>142</span> 			ev.preventDefault();
+<span class='line'>143</span> 			e_relation.focus();	
+<span class='line'>144</span> 		};
+<span class='line'>145</span> 		//notifyUser($(this).attr("value").length);
+<span class='line'>146</span> 		if ($(this).attr("value").length > 0 &&  ev.which === 32) evFocusNext(); // focus next element
+<span class='line'>147</span> 		
+<span class='line'>148</span> 	});
+<span class='line'>149</span> 	
+<span class='line'>150</span> 	e_relation.keydown(function(ev){
+<span class='line'>151</span> 		var evStop = function(){ ev.stopPropagation(); ev.preventDefault(); };
+<span class='line'>152</span> 		if (ev.which === 13) evStop();
+<span class='line'>153</span> 		var evFocusNext = function(){
+<span class='line'>154</span> 			e_value.focus();	
+<span class='line'>155</span> 		};
+<span class='line'>156</span> 		if (ev.which === 32) evFocusNext(); // focus next element
+<span class='line'>157</span> 		notifyUser(ev.which);
+<span class='line'>158</span> 	});
+<span class='line'>159</span> */</span><span class="WHIT">
+<span class='line'>160</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>161</span> </span><span class="WHIT">	</span><span class="COMM">//selects for the first use</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="WHIT">	</span><span class="NAME">index_select.change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>163</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option:selected'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>164</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>165</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>166</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>167</span> </span><span class="WHIT">	</span><span class="NAME">value_select.change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>168</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option:selected'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>169</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>170</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>171</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>173</span> </span><span class="WHIT">	</span><span class="NAME">e_index.val</span><span class="PUNC">(</span><span class="NAME">this.index</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>174</span> </span><span class="WHIT">	</span><span class="NAME">e_relation.val</span><span class="PUNC">(</span><span class="NAME">this.relation</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>175</span> </span><span class="WHIT">	</span><span class="NAME">e_value.val</span><span class="PUNC">(</span><span class="NAME">this.value</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>176</span> </span><span class="WHIT">	</span><span class="COMM">//update after text change</span><span class="WHIT">
+<span class='line'>177</span> </span><span class="WHIT">	</span><span class="NAME">e_index.bind</span><span class="PUNC">(</span><span class="STRN">'change'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>178</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>179</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>180</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>181</span> </span><span class="WHIT">		</span><span class="COMM">//alert("e-index-chabge;" + i + j + $(this).val());</span><span class="WHIT">
+<span class='line'>182</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>183</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"index_sc"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" changed to:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"debug"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>184</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">is_category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>185</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>186</span> </span><span class="WHIT">	</span><span class="NAME">e_relation.change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>187</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>188</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>189</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser("rel change:" + $(this).val(), 'debug');</span><span class="WHIT">
+<span class='line'>190</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">relation</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>191</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>192</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">is_category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>193</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>194</span> </span><span class="WHIT">	</span><span class="NAME">e_value.change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>195</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>196</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>197</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>198</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>199</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">is_category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>200</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>201</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">	</span><span class="KEYW">try</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">		</span><span class="NAME">this.initAutocomplete</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">catch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"autocomplete failed: "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">e.message</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>207</span> 
+<span class='line'>208</span> 
+<span class='line'>209</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>210</span> 	 e_value.autocompleteArray(value_autocomplete,{
+<span class='line'>211</span> 				autoFill:true,
+<span class='line'>212</span> 				width:90
+<span class='line'>213</span> 	});
+<span class='line'>214</span> 	 */</span><span class="WHIT">
+<span class='line'>215</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>216</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>217</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>218</span> </span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>219</span> </span><span class="WHIT"> </span><span class="NAME">SearchClause.prototype.initAutocomplete</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>220</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>221</span> </span><span class="WHIT">	 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">element_autocomplete.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>222</span> </span><span class="WHIT">	  </span><span class="WHIT">
+<span class='line'>223</span> </span><span class="WHIT">	 </span><span class="COMM">//autocomplete</span><span class="WHIT">
+<span class='line'>224</span> </span><span class="WHIT">		</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">handleTermsSelection</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">j</span><span class="PUNC">,</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>226</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">context</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-context'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>227</span> </span><span class="WHIT">			</span><span class="COMM">// fill context</span><span class="WHIT">
+<span class='line'>228</span> </span><span class="WHIT">			</span><span class="COMM">//$(context).remove();</span><span class="WHIT">
+<span class='line'>229</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">html</span><span class="PUNC">(</span><span class="NAME">elements_hashtable</span><span class="PUNC">[</span><span class="NAME">elem</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>231</span> </span><span class="WHIT">			</span><span class="COMM">/*
+<span class='line'>232</span> 			$(context).children('table').children().remove();
+<span class='line'>233</span> 			for(var ii=0;ii&lt; elements_hashtable[elem].length;ii++){
+<span class='line'>234</span> 				var row = '&lt;tr>&lt;td>' + elements_hashtable[elem][ii] + '&lt;/td>&lt;/tr>';
+<span class='line'>235</span> 				$(context).children('table').append(row);
+<span class='line'>236</span> 			}
+<span class='line'>237</span> 			*/</span><span class="WHIT">
+<span class='line'>238</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>239</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>240</span> </span><span class="WHIT">			</span><span class="COMM">//notifyUser($('#' + 'sc' +  i + '-' + j).find('.index-input').val(), 'debug');</span><span class="WHIT">
+<span class='line'>241</span> </span><span class="WHIT">			</span><span class="COMM">//$('#' + 'sc' +  i + '-' + j).find('.index-input').focus();</span><span class="WHIT">
+<span class='line'>242</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>243</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">blur</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>245</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>246</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">focusin</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>248</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>249</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>250</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>251</span> </span><span class="WHIT">					</span><span class="COMM">/*
+<span class='line'>252</span> 			var t = '&lt;div>&lt;table>&lt;tr>&lt;td>&lt;a href="">aaaa&lt;a>&lt;/td>&lt;/tr>&lt;tr>&lt;td>&lt;a href="">bbbb&lt;a>&lt;/td>&lt;/tr>&lt;table>&lt;/div>';
+<span class='line'>253</span> 			var x = '&lt;div class="index_context">&lt;table>&lt;/table>&lt;/div>';
+<span class='line'>254</span> 			$('.focused','#searchclauselist').find('.index_search').append(x);
+<span class='line'>255</span> 
+<span class='line'>256</span> 			
+<span class='line'>257</span> 			for(var i=0;i&lt; elements_hashtable[elem].length;i++){
+<span class='line'>258</span> 				var li = '&lt;span>&lt;a href="">' + elements_hashtable[elem][i] + '&lt;/a>&lt;/span>';
+<span class='line'>259</span> 				$('.focused','#searchclauselist').find('.index_context').append(li);
+<span class='line'>260</span> 			}*/</span><span class="WHIT">
+<span class='line'>261</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>262</span> </span><span class="WHIT">			</span><span class="COMM">//$('.focused','#searchclauselist').find('.index-input').hide();</span><span class="WHIT">
+<span class='line'>263</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>264</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>265</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>266</span> </span><span class="WHIT">		</span><span class="COMM">//autocomplete</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">		</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">findValue</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">			</span><span class="COMM">//if( li == null ) return alert("No match!");</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">		 </span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">e.selectValue</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>274</span> </span><span class="WHIT">			</span><span class="COMM">//alert(i+ ',' + j + sValue);</span><span class="WHIT">
+<span class='line'>275</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT">			</span><span class="NAME">handleTermsSelection</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">j</span><span class="PUNC">,</span><span class="NAME">sValue</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT">			</span><span class="COMM">//$('.focused','#searchclauselist').find('.value-input').focus();</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT">		 </span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT">		</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">selectItem</span><span class="PUNC">(</span><span class="NAME">li</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT">			</span><span class="NAME">findValue</span><span class="PUNC">(</span><span class="NAME">li</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>286</span> 
+<span class='line'>287</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.GetIndexInput</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">autocompleteArray</span><span class="PUNC">(</span><span class="NAME">element_autocomplete</span><span class="PUNC">,</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>288</span> </span><span class="WHIT">			</span><span class="NAME">autoFill</span><span class="PUNC">:</span><span class="KEYW">true</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>289</span> </span><span class="WHIT">			</span><span class="COMM">//width:150,</span><span class="WHIT">
+<span class='line'>290</span> </span><span class="WHIT">			</span><span class="NAME">onFindValue</span><span class="PUNC">:</span><span class="NAME">findValue</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>291</span> </span><span class="WHIT">			</span><span class="NAME">onItemSelect</span><span class="PUNC">:</span><span class="NAME">selectItem</span><span class="WHIT">
+<span class='line'>292</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>293</span> 
+<span class='line'>294</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'body'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.ac_results'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">css</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="STRN">'z-index'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'1000'</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>295</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'>296</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>297</span> 
+<span class='line'>298</span> </span><span class="NAME">SearchClause.prototype.CreateSelect</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">str</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">element</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>299</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index_select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">GetIndexSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>300</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index_input</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">GetIndexInput</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>301</span> </span><span class="WHIT">	</span><span class="NAME">index_select.show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>302</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;option value='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/option>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>303</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">element</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>304</span> </span><span class="WHIT">		</span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">x</span><span class="PUNC">+</span><span class="STRN">"&lt;option value='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/option>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>305</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>306</span> </span><span class="WHIT">	</span><span class="NAME">index_select.html</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>307</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>308</span> </span><span class="WHIT">	</span><span class="NAME">index_input.hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>309</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>310</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>311</span> 
+<span class='line'>312</span> </span><span class="NAME">SearchClause.prototype.PlainText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>313</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.index.trim</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">this.value.trim</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>316</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.is_category</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>317</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="STRN">"ISOCAT( "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.category</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">") "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.relation</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.value</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>319</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.index.replace</span><span class="PUNC">(</span><span class="STRN">" "</span><span class="PUNC">,</span><span class="STRN">"_"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.relation</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.value</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>320</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>321</span> </span><span class="COMM">/*
+<span class='line'>322</span> Searchclause.prototype.submit = function () {
+<span class='line'>323</span> 	
+<span class='line'>324</span> 	var uri = link('recordset','htmltable', this.query_uri());
+<span class='line'>325</span> 	notifyUser("submitting query:" +  uri);
+<span class='line'>326</span> 	
+<span class='line'>327</span> 	this.container.find('.result').load( uri, function() {
+<span class='line'>328</span> 				notifyUser("result-loaded");
+<span class='line'>329</span> 				var get = $(this).parent().find('.cmd_get');				
+<span class='line'>330</span> 
+<span class='line'>331</span> 				get.removeClass('cmd_get');
+<span class='line'>332</span> 				get.addClass('cmd_up');
+<span class='line'>333</span> 				// get.show();
+<span class='line'>334</span> 			});
+<span class='line'>335</span> 
+<span class='line'>336</span> }
+<span class='line'>337</span> */</span><span class="WHIT">
+<span class='line'>338</span> </span><span class="WHIT">    </span><span class="WHIT">
+<span class='line'>339</span> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.index-context td'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>340</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>341</span> </span><span class="WHIT">	</span><span class="NAME">searchclauseset.updatedata</span><span class="PUNC">(</span><span class="NAME">this.textContent</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>342</span> </span><span class="WHIT">	</span><span class="COMM">//$('.focused','#searchclauselist').find('.index-input').val(	this.textContent);</span><span class="WHIT">
+<span class='line'>343</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-context'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>344</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>345</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.value-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">focus</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>346</span> 
+<span class='line'>347</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>348</span> 
+<span class='line'>349</span> 
+<span class='line'>350</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">searchclauseset_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#searchclauselist"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>351</span> 
+<span class='line'>352</span> </span><span class="COMM">/**
+<span class='line'>353</span>  * container of actually used Searchclauses in the query-input
+<span class='line'>354</span>  * with basic functionality for building container - add, remove, clear
+<span class='line'>355</span>  * and conversion functions - conversions from-to querystring
+<span class='line'>356</span>  * @constructor 
+<span class='line'>357</span>  */</span><span class="WHIT">
+<span class='line'>358</span> 
+<span class='line'>359</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">searchclauseset</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>360</span> </span><span class="WHIT">		</span><span class="COMM">/**  @field */</span><span class="WHIT">
+<span class='line'>361</span> </span><span class="WHIT">	</span><span class="NAME">searchclauses</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>362</span> </span><span class="WHIT">	</span><span class="NAME">container</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'#searchclauselist'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>363</span> </span><span class="WHIT">	</span><span class="NAME">sctext</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>364</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>365</span> </span><span class="WHIT">	</span><span class="NAME">addsearchclause</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">searchclause</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">rel</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">_i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">_j</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>366</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">j</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>367</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>368</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.searchclauses.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>369</span> </span><span class="WHIT">			</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>370</span> </span><span class="WHIT">			</span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Array</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>371</span> </span><span class="WHIT">			</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>372</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>373</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"or"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>374</span> </span><span class="WHIT">				</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_i</span><span class="PUNC">;</span><span class="COMM">//this.searchclauses.length - 1;</span><span class="WHIT">
+<span class='line'>375</span> </span><span class="WHIT">				</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="COMM">//this.searchclauses[this.searchclauses.length - 1].length;</span><span class="WHIT">
+<span class='line'>376</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>377</span> </span><span class="WHIT">				</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.searchclauses.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>378</span> </span><span class="WHIT">				</span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Array</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>379</span> </span><span class="WHIT">				</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>380</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>381</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>382</span> </span><span class="WHIT">		</span><span class="NAME">searchclause.i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>383</span> </span><span class="WHIT">		</span><span class="NAME">searchclause.j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>384</span> </span><span class="WHIT">		</span><span class="NAME">searchclause.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"sc"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>385</span> </span><span class="WHIT">		</span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">searchclause</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>386</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>387</span> </span><span class="WHIT">		</span><span class="NAME">searchclause.render</span><span class="PUNC">(</span><span class="NAME">rel</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">						</span><span class="WHIT">
+<span class='line'>388</span> </span><span class="WHIT">		</span><span class="COMM">//$('#querylist').html(this.render());</span><span class="WHIT">
+<span class='line'>389</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>390</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>391</span> </span><span class="WHIT">	</span><span class="NAME">fillFromURL</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">url</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>392</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>393</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>394</span> </span><span class="WHIT">	</span><span class="NAME">clear</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>395</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"clear query"</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>396</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>397</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.searchclauses.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">--</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>398</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">--</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>399</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>400</span> 
+<span class='line'>401</span> </span><span class="WHIT">					</span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">splice</span><span class="PUNC">(</span><span class="NAME">j</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>402</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT">  </span><span class="PUNC">(</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>403</span> </span><span class="WHIT">						</span><span class="NAME">this.searchclauses.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>404</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>405</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>406</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>407</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>408</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>409</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>410</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>411</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>412</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>413</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>414</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">this.searchclauses.length</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>415</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>416</span> </span><span class="WHIT">		</span><span class="COMM">// reset focused</span><span class="WHIT">
+<span class='line'>417</span> </span><span class="WHIT">		</span><span class="COMM">//$('.sc-wrapper','#searchclauselist').each(function(){</span><span class="WHIT">
+<span class='line'>418</span> </span><span class="WHIT">		</span><span class="COMM">//	$(this).removeClass("focused");</span><span class="WHIT">
+<span class='line'>419</span> </span><span class="WHIT">		</span><span class="COMM">//});</span><span class="WHIT">
+<span class='line'>420</span> </span><span class="WHIT">		</span><span class="COMM">//$('#sc0-0').addClass("focused");</span><span class="WHIT">
+<span class='line'>421</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>422</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>423</span> </span><span class="WHIT">	</span><span class="COMM">//TODO remove only last items</span><span class="WHIT">
+<span class='line'>424</span> </span><span class="WHIT">	</span><span class="NAME">removesearchclause</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>425</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"removing sc:"</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>426</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>427</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>428</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>429</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">is_category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>430</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">relation</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"="</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>431</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>432</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#sc0-0'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>433</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#sc0-0'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.rel_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="STRN">"="</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>434</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#sc0-0'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.value-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>435</span> </span><span class="WHIT">			</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"cannot remove"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>436</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>437</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>438</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.searchclauses.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>439</span> </span><span class="WHIT">			</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"cannot remove"</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>440</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>441</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>442</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>443</span> </span><span class="WHIT">			</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"cannot remove"</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>444</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>445</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>446</span> </span><span class="WHIT">		</span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">splice</span><span class="PUNC">(</span><span class="NAME">j</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>447</span> </span><span class="WHIT">		 </span><span class="WHIT">
+<span class='line'>448</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT">  </span><span class="PUNC">(</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>449</span> </span><span class="WHIT">			</span><span class="NAME">this.searchclauses.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>450</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>451</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>452</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'sc'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>453</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>454</span> 
+<span class='line'>455</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"sc removed, new sc.length:"</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.searchclauses.length</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>456</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.searchclauses.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>457</span> </span><span class="WHIT">			</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"  new sc.or_length:"</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>458</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>459</span> </span><span class="WHIT">		</span><span class="COMM">// reset focused</span><span class="WHIT">
+<span class='line'>460</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>461</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>462</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>463</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#sc0-0'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"focused"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>464</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>465</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>466</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>467</span> 	// just test
+<span class='line'>468</span> 	load: function(i,j,rel,data) {
+<span class='line'>469</span> 		if (data["triple"] == null ) {
+<span class='line'>470</span> 			 this.searchclauses[i][j].index =  data["searchClause"]["index"];
+<span class='line'>471</span> 			 this.searchclauses[i][j].relation =  data["searchClause"]["relation"]["value"];
+<span class='line'>472</span> 			 this.searchclauses[i][j].value =  data["searchClause"]["term"];
+<span class='line'>473</span> 			 
+<span class='line'>474</span> 			 $('#sc0-0','#searchclauselist').find('.index-input').val(data["searchClause"]["index"]);
+<span class='line'>475</span> 			 $('#sc0-0','#searchclauselist').find('.relation_input').val(data["searchClause"]["relation"]["value"]);
+<span class='line'>476</span> 			 $('#sc0-0','#searchclauselist').find('.value-input').val(data["searchClause"]["term"]);
+<span class='line'>477</span> 		 } else {
+<span class='line'>478</span> 			 if (data["triple"]["boolean"]["value"] == "and") {
+<span class='line'>479</span> 				 //var sc = new SearchClause("","","");
+<span class='line'>480</span> 				 //this.addsearchclause(sc, "and", _i, _j)
+<span class='line'>481</span> 				 // update(leftO)
+<span class='line'>482</span> 				 // update(rightO)
+<span class='line'>483</span> 				 load(i,j,"",data["triple"]["leftOperand"]);
+<span class='line'>484</span> 				 i = this.searchclauses.length;
+<span class='line'>485</span> 				 load(i+1,j,"and",data["triple"]["rightOperand"]);
+<span class='line'>486</span> 			 } else {
+<span class='line'>487</span> 				 load(i,j,"",data["triple"]["leftOperand"]);
+<span class='line'>488</span> 				 j = this.searchclauses[i].length;
+<span class='line'>489</span> 				 load(i,j,"or",data["triple"]["rightOperand"]);
+<span class='line'>490</span> 			 }
+<span class='line'>491</span> 			 
+<span class='line'>492</span> 		 }
+<span class='line'>493</span> 		 
+<span class='line'>494</span> 	},
+<span class='line'>495</span> 	*/</span><span class="WHIT">
+<span class='line'>496</span> </span><span class="WHIT">	</span><span class="COMM">// from querystring to searchclauses</span><span class="WHIT">
+<span class='line'>497</span> </span><span class="WHIT">	</span><span class="NAME">buildfromquerystring</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>498</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">arr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Query.simplequerystring</span><span class="PUNC">(</span><span class="NAME">this.sctext</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>499</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sc</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">screl</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>500</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>501</span> </span><span class="WHIT">		</span><span class="NAME">this.clear</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>502</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>503</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser(arr,'debug');</span><span class="WHIT">
+<span class='line'>504</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">arr_and</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">arr.split</span><span class="PUNC">(</span><span class="STRN">" and "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>505</span> </span><span class="WHIT">		</span><span class="NAME">screl</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>506</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">arr_and.length</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>507</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">scstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$.trim</span><span class="PUNC">(</span><span class="NAME">arr_and</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>508</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>509</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">scstring.substring</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"("</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">scstring.substring</span><span class="PUNC">(</span><span class="NAME">scstring.length</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">")"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>510</span> </span><span class="WHIT">				</span><span class="NAME">scstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstring.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">scstring.length</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>511</span> </span><span class="WHIT">				</span><span class="NAME">scstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$.trim</span><span class="PUNC">(</span><span class="NAME">scstring</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>512</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>513</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>514</span> </span><span class="WHIT">			</span><span class="COMM">//notifyUser("i:" + scstring,'debug');</span><span class="WHIT">
+<span class='line'>515</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">arr_or</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstring.split</span><span class="PUNC">(</span><span class="STRN">" or "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>516</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">screl</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"and"</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>517</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">;</span><span class="NAME">j</span><span class="PUNC">&lt;</span><span class="NAME">arr_or.length</span><span class="PUNC">;</span><span class="NAME">j</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>518</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">scstr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$.trim</span><span class="PUNC">(</span><span class="NAME">arr_or</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>519</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>520</span> </span><span class="WHIT">				</span><span class="COMM">// parse rel</span><span class="WHIT">
+<span class='line'>521</span> </span><span class="WHIT">				</span><span class="COMM">//notifyUser("j:"+scstr,'debug');</span><span class="WHIT">
+<span class='line'>522</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">n</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>523</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">scarr</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>524</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">rel</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>525</span> </span><span class="WHIT">				</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.indexOf</span><span class="PUNC">(</span><span class="STRN">"="</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>526</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>527</span> </span><span class="WHIT">					</span><span class="NAME">scarr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.split</span><span class="PUNC">(</span><span class="STRN">"="</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>528</span> </span><span class="WHIT">					</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"="</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>529</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>530</span> </span><span class="WHIT">				</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.indexOf</span><span class="PUNC">(</span><span class="STRN">" any "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>531</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>532</span> </span><span class="WHIT">					</span><span class="NAME">scarr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.split</span><span class="PUNC">(</span><span class="STRN">" any "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>533</span> </span><span class="WHIT">					</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"any"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>534</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>535</span> </span><span class="WHIT">				</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.indexOf</span><span class="PUNC">(</span><span class="STRN">" contains "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>536</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>537</span> </span><span class="WHIT">					</span><span class="NAME">scarr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.split</span><span class="PUNC">(</span><span class="STRN">" contains "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>538</span> </span><span class="WHIT">					</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"contains"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>539</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>540</span> </span><span class="WHIT">				</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.indexOf</span><span class="PUNC">(</span><span class="STRN">"&lt;"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>541</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>542</span> </span><span class="WHIT">					</span><span class="NAME">scarr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.split</span><span class="PUNC">(</span><span class="STRN">"&lt;"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>543</span> </span><span class="WHIT">					</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>544</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>545</span> </span><span class="WHIT">				</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.indexOf</span><span class="PUNC">(</span><span class="STRN">">"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>546</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>547</span> </span><span class="WHIT">					</span><span class="NAME">scarr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.split</span><span class="PUNC">(</span><span class="STRN">">"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>548</span> </span><span class="WHIT">					</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">">"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>549</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>550</span> </span><span class="WHIT">				</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.indexOf</span><span class="PUNC">(</span><span class="STRN">" all "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>551</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>552</span> </span><span class="WHIT">					</span><span class="NAME">scarr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scstr.split</span><span class="PUNC">(</span><span class="STRN">" all "</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>553</span> </span><span class="WHIT">					</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"all"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>554</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>555</span> </span><span class="WHIT">				</span><span class="COMM">//var simplecalusetext = scstr.split("");</span><span class="WHIT">
+<span class='line'>556</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">screl</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"or"</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>557</span> </span><span class="WHIT">				</span><span class="COMM">//notifyUser("scarr:" + scarr[0] + scarr[1],'debug');</span><span class="WHIT">
+<span class='line'>558</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">scarr</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>559</span> </span><span class="WHIT">					</span><span class="NAME">sc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">SearchClause</span><span class="PUNC">(</span><span class="STRN">''</span><span class="PUNC">,</span><span class="STRN">''</span><span class="PUNC">,</span><span class="STRN">''</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>560</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>561</span> </span><span class="WHIT">					</span><span class="NAME">sc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">SearchClause</span><span class="PUNC">(</span><span class="NAME">scarr</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">rel</span><span class="PUNC">,</span><span class="NAME">scarr</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>562</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>563</span> 
+<span class='line'>564</span> </span><span class="WHIT">				</span><span class="NAME">this.addsearchclause</span><span class="PUNC">(</span><span class="NAME">sc</span><span class="PUNC">,</span><span class="NAME">screl</span><span class="PUNC">,</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>565</span> </span><span class="WHIT">				</span><span class="COMM">//searchclauseset.addsearchclause(sc,screl,i,j);</span><span class="WHIT">
+<span class='line'>566</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>567</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>568</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>569</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>570</span> </span><span class="WHIT">	</span><span class="COMM">// from searchclauses to querystring</span><span class="WHIT">
+<span class='line'>571</span> </span><span class="WHIT">	</span><span class="NAME">buildsctext</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>572</span> </span><span class="WHIT">	   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uncompletequery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>573</span> </span><span class="WHIT">	   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">ptext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>574</span> </span><span class="WHIT">	   </span><span class="WHIT">
+<span class='line'>575</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.searchtype_text'</span><span class="PUNC">,</span><span class="STRN">'#search'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>576</span> </span><span class="WHIT">			</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#query_area'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>577</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>578</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>579</span> </span><span class="WHIT">			</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>580</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.searchclauses.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>581</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">></span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" and "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>582</span> </span><span class="WHIT">				</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" ( "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>583</span> </span><span class="WHIT">				</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>584</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">></span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" or "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>585</span> </span><span class="WHIT">					</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" ( "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>586</span> </span><span class="WHIT">					</span><span class="NAME">ptext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">PlainText</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>587</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">ptext.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>588</span> </span><span class="WHIT">						</span><span class="NAME">uncompletequery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>589</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>590</span> </span><span class="WHIT">					</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">ptext</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>591</span> </span><span class="WHIT">					</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" ) "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>592</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>593</span> </span><span class="WHIT">				</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" ) "</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>594</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>595</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>596</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>597</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">uncompletequery</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>598</span> </span><span class="WHIT">			</span><span class="NAME">this.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>599</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>600</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">this.sctext</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>601</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>602</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>603</span> </span><span class="WHIT">	</span><span class="NAME">updatedata</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">term</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">is_category</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">category</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'>604</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>605</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>606</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>607</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>608</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">term</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>609</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">term</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>610</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">term.replace</span><span class="PUNC">(</span><span class="STRN">" "</span><span class="PUNC">,</span><span class="STRN">"_"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>611</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>612</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>613</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>614</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.value-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">focus</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>615</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>616</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.focused'</span><span class="PUNC">,</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.value-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">value</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>617</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>618</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>619</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>620</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">is_category</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>621</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">is_category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>622</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">category</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>623</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>624</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">is_category</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>625</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>626</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>627</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>628</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>629</span> </span><span class="WHIT">	</span><span class="NAME">initAutocomplete</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>630</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"init autocomplete"</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>631</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>632</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.searchclauses.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">--</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>633</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">--</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>634</span> </span><span class="WHIT">					</span><span class="NAME">this.searchclauses</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">j</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">initAutocomplete</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>635</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>636</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>637</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>638</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>639</span> 
+<span class='line'>640</span> </span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui.js.html	(revision 1516)
@@ -0,0 +1,1048 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/**
+<span class='line'>  2</span>  * @fileOverview  This is the main file, contains main app function (jquery-initialization). 
+<span class='line'>  3</span>  * The app main function runs setup functionality, which covers this domains:
+<span class='line'>  4</span>  * &lt;dl>
+<span class='line'>  5</span>  * &lt;dt>the variable initialization&lt;dt>
+<span class='line'>  6</span>  * 	&lt;dd>functions from mdservice_searchclause.js, mdservice_widget.js, mdservice_ui_helpers.js&lt;/dd>
+<span class='line'>  7</span>  * &lt;dt>loadData()&lt;/dt> 
+<span class='line'>  8</span>  * 	&lt;dd>loading data from repository and creating particular client-side representations  - functions from &lt;a>mdservice_ui_load.js&lt;/a>&lt;/dd>
+<span class='line'>  9</span>  * &lt;dt>creating of ui-layout&lt;/dt>
+<span class='line'> 10</span>  * 	&lt;dd>i.e. split UI to individual panes  - functions from mdservice_ui_layout.js&lt;/dd>
+<span class='line'> 11</span>  * &lt;dt>addFunctionality()&lt;/dt>
+<span class='line'> 12</span>  * 	&lt;dd>bind handlers to events of ui-elements (function directly in mdservice_ui.js)&lt;/dd>
+<span class='line'> 13</span>  * &lt;/dl>
+<span class='line'> 14</span>  * @author 
+<span class='line'> 15</span>  * @version 
+<span class='line'> 16</span>  */</span><span class="WHIT">
+<span class='line'> 17</span> 
+<span class='line'> 18</span> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT">		</span><span class="COMM">// turn on debugging (see jquery.xslTransform.js)</span><span class="WHIT">
+<span class='line'> 20</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">DEBUG</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 21</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 22</span> </span><span class="WHIT">		</span><span class="COMM">// check for jQuery and Sarissa</span><span class="WHIT">
+<span class='line'> 23</span> </span><span class="WHIT">		</span><span class="KEYW">try</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 24</span> </span><span class="WHIT">			</span><span class="NAME">jQuery</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 25</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="KEYW">catch</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 26</span> </span><span class="WHIT">			</span><span class="NAME">alert</span><span class="PUNC">(</span><span class="STRN">'You need to include jQuery!'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="WHIT">		</span><span class="COMM">/////// INIT VARIABLE SETTINGS</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="WHIT">		</span><span class="COMM">// get url parameters</span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">		</span><span class="NAME">url_params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getUrlVars</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">		</span><span class="COMM">// create searchclauses</span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">		</span><span class="COMM">//searchclauseset.addsearchclause(new SearchClause("","",""),"",0,0);</span><span class="WHIT">
+<span class='line'> 34</span> </span><span class="WHIT">		</span><span class="COMM">// load query if exists params</span><span class="WHIT">
+<span class='line'> 35</span> </span><span class="WHIT">		</span><span class="COMM">//loadQueryFromUriParams();	 </span><span class="WHIT">
+<span class='line'> 36</span> </span><span class="WHIT">		</span><span class="COMM">// create widgets</span><span class="WHIT">
+<span class='line'> 37</span> </span><span class="WHIT">		 </span><span class="NAME">columns_widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListWidget</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#columns-widget'</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"columns"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">		 </span><span class="NAME">collections_widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListWidget</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections-widget'</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"collections"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">		 </span><span class="NAME">listwidgetset.add</span><span class="PUNC">(</span><span class="NAME">columns_widget</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">		 </span><span class="NAME">listwidgetset.add</span><span class="PUNC">(</span><span class="NAME">collections_widget</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 41</span> </span><span class="WHIT">		</span><span class="COMM">//createInfos();</span><span class="WHIT">
+<span class='line'> 42</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 43</span> </span><span class="WHIT">		</span><span class="COMM">//////////// LOAD DATA</span><span class="WHIT">
+<span class='line'> 44</span> </span><span class="WHIT">		</span><span class="NAME">loadData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="WHIT">		</span><span class="COMM">//handleBubble();</span><span class="WHIT">
+<span class='line'> 46</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="WHIT">		</span><span class="NAME">addFunctionality</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 48</span> </span><span class="WHIT">		</span><span class="COMM">//addVisuals();</span><span class="WHIT">
+<span class='line'> 49</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 50</span> </span><span class="WHIT">		</span><span class="COMM">//queryuriparams loaded after collections and workspaceprofile are loaded</span><span class="WHIT">
+<span class='line'> 51</span> </span><span class="WHIT">		</span><span class="COMM">//loadQueryFromUriParams();	</span><span class="WHIT">
+<span class='line'> 52</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="WHIT">		</span><span class="COMM">////////////// CREATE  UI-LAYOUT</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">		</span><span class="NAME">createBlock</span><span class="PUNC">(</span><span class="STRN">'base'</span><span class="PUNC">,</span><span class="STRN">''</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 55</span> </span><span class="WHIT">		</span><span class="COMM">//jQuery.each(blocks_settings,function(index,block){</span><span class="WHIT">
+<span class='line'> 56</span> </span><span class="WHIT">		</span><span class="COMM">//	jQuery.each(block.sublayouts,function(index,name){</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">		</span><span class="COMM">//		createLayouts(name);</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">		</span><span class="COMM">//	});</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="WHIT">		</span><span class="COMM">//});</span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="WHIT">		</span><span class="NAME">createLayouts</span><span class="PUNC">(</span><span class="STRN">'base'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 61</span> 
+<span class='line'> 62</span> </span><span class="WHIT">		</span><span class="NAME">initDetailFloat</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 63</span> </span><span class="WHIT">		</span><span class="COMM">// autocomplete correction</span><span class="WHIT">
+<span class='line'> 64</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.addsearchclause</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">SearchClause</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 65</span> </span><span class="WHIT">		</span><span class="NAME">createInfos</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 66</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="WHIT">		</span><span class="NAME">detailcaller.calldetail</span><span class="PUNC">(</span><span class="NAME">undefined</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"info"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 68</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 69</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 70</span> 
+<span class='line'> 71</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">createInfos</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">info</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;span class='cmd cmd_info'>&lt;/span>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">info</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">	</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 75</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 76</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmd_info'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 77</span> </span><span class="WHIT">		</span><span class="COMM">//var a = $(this).parent().next().attr('id');</span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="WHIT">		</span><span class="COMM">//var uri = window.location.pathname + "static/info.xml";</span><span class="WHIT">
+<span class='line'> 79</span> </span><span class="WHIT">		</span><span class="COMM">//$.get(uri,{"id":a}, showDetail,'html');</span><span class="WHIT">
+<span class='line'> 80</span> </span><span class="WHIT">		</span><span class="NAME">detailcaller.calldetail</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 84</span> 
+<span class='line'> 85</span> 
+<span class='line'> 86</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 87</span> </span><span class="WHIT">	</span><span class="COMM">//var id = parseInt($('#repositories_select').find("option:selected").val());</span><span class="WHIT">
+<span class='line'> 88</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#repositories_select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//val();</span><span class="WHIT">
+<span class='line'> 89</span> 
+<span class='line'> 90</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 91</span> 
+<span class='line'> 92</span> </span><span class="COMM">/**
+<span class='line'> 93</span>  * This function is called during the initialization sequence and binds event-handlers to events of ui-elements.
+<span class='line'> 94</span>  * @function
+<span class='line'> 95</span>  */</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">addFunctionality</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">	</span><span class="COMM">// DEL COMMAND</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'> 99</span> 	$('.ui-dialog-titlebar .cmd_del').live('click',function(){
+<span class='line'>100</span> 		var did;
+<span class='line'>101</span> 		if ($(this).closest('.ui-dialog').length > 0){
+<span class='line'>102</span> 			did = $(this).closest('.ui-dialog').find('.detail-wrapper').attr('id');
+<span class='line'>103</span> 		}
+<span class='line'>104</span> 		if (did != undefined){
+<span class='line'>105</span> 			detail = detailcaller.getdetail(did);
+<span class='line'>106</span> 			detail.close();
+<span class='line'>107</span> 		}
+<span class='line'>108</span> 		$(this).closest('.ui-dialog').hide();
+<span class='line'>109</span> 	})
+<span class='line'>110</span> */</span><span class="WHIT">
+<span class='line'>111</span> </span><span class="WHIT">	</span><span class="COMM">/**
+<span class='line'>112</span> 	 * Remove a query from queryset
+<span class='line'>113</span> 	 * FIXME: shouldn't this primarily delete the query-object from the queryset? 
+<span class='line'>114</span> 	 * @event 
+<span class='line'>115</span> 	 * @name clickQueryremove
+<span class='line'>116</span> 	 */</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.query_header .cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>120</span> 
+<span class='line'>121</span> </span><span class="WHIT">	</span><span class="COMM">//TODO dialog</span><span class="WHIT">
+<span class='line'>122</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.detail-header .cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>123</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hasClass</span><span class="PUNC">(</span><span class="STRN">'detail-header'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dw</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="WHIT">			</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dw.attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>128</span> </span><span class="WHIT">			</span><span class="NAME">dw.hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>129</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="WHIT">		</span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>131</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>132</span> </span><span class="WHIT">				</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>135</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>136</span> </span><span class="WHIT">			</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">detailcaller.getdetail</span><span class="PUNC">(</span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">			</span><span class="NAME">detail.close</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>139</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>140</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>141</span> </span><span class="WHIT">	</span><span class="COMM">// DETAIL-CALLER</span><span class="WHIT">
+<span class='line'>142</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>143</span> 	$('.detail-caller, .cmd_detail').live('click',  function(event) {		
+<span class='line'>144</span> 		$(this).parent().children('.detail').toggle();
+<span class='line'>145</span> 		$(this).children('.cmd_down, .cmd_up').toggleClass('cmd_down cmd_up');		
+<span class='line'>146</span> 	});
+<span class='line'>147</span> 	*/</span><span class="WHIT">
+<span class='line'>148</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.detail-caller a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>149</span> </span><span class="WHIT">		</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>150</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>151</span> </span><span class="WHIT">	</span><span class="COMM">// open detail (from result-set, but also already within detail-view (ResourceRef, IsPartOf)	</span><span class="WHIT">
+<span class='line'>152</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.result a.internal, .mdrecord-detail a.internal'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>153</span> </span><span class="WHIT">		</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>154</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>155</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">// + " body";</span><span class="WHIT">
+<span class='line'>156</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser('internal-link: ' + uri,'debug' );</span><span class="WHIT">
+<span class='line'>157</span> </span><span class="WHIT">		</span><span class="COMM">//$.get(uri, showDetail,'html');</span><span class="WHIT">
+<span class='line'>158</span> </span><span class="WHIT">		</span><span class="NAME">detailcaller.calldetail</span><span class="PUNC">(</span><span class="NAME">undefined</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"record"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>159</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>160</span> 
+<span class='line'>161</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.detail-content a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>163</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"target"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"_blank"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>164</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>165</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>166</span> </span><span class="WHIT">			</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>167</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">// + " body";</span><span class="WHIT">
+<span class='line'>168</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"class"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"query"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>169</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">urlparams</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getUrlVars</span><span class="PUNC">(</span><span class="NAME">uri</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>170</span> </span><span class="WHIT">				</span><span class="NAME">loadQueryFromUriParams</span><span class="PUNC">(</span><span class="NAME">urlparams</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>171</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>173</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"class"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"bookmark"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>174</span> </span><span class="WHIT">					</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"record"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>175</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>176</span> </span><span class="WHIT">					</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>177</span> </span><span class="WHIT">					</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">type.substring</span><span class="PUNC">(</span><span class="NUMB">7</span><span class="PUNC">,</span><span class="NAME">type.length</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>178</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>179</span> </span><span class="WHIT">			</span><span class="COMM">//	$.get(uri, showDetail,'html'); */</span><span class="WHIT">
+<span class='line'>180</span> </span><span class="WHIT">				</span><span class="NAME">detailcaller.calldetail</span><span class="PUNC">(</span><span class="NAME">undefined</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>181</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>182</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>183</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>184</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.result a.external, .mdrecord-detail a.external'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>185</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>186</span> </span><span class="WHIT">		</span><span class="COMM">//event.preventDefault();		</span><span class="WHIT">
+<span class='line'>187</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">// + " body";</span><span class="WHIT">
+<span class='line'>188</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">'resource-link: '</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>189</span> </span><span class="WHIT">	</span><span class="COMM">//	$.get(uri, showDetail,'html'); */</span><span class="WHIT">
+<span class='line'>190</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>191</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>192</span> 	$('.result .cmd_detail').live('click',  function(event) {	
+<span class='line'>193</span> 		//var qid = $(this).closest('.query_wrapper').attr('id');
+<span class='line'>194</span> 		//var query = queryset.getQuery(qid);
+<span class='line'>195</span> 		
+<span class='line'>196</span> 		var uri = $(this).parent().find("a").attr('href'); // + " body";
+<span class='line'>197</span> 		$.get(uri, showDetail,'html');
+<span class='line'>198</span> 	});
+<span class='line'>199</span> 	*/</span><span class="WHIT">
+<span class='line'>200</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">".detail-caller, .cmd_detail"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>201</span> </span><span class="WHIT">		</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">		</span><span class="NAME">detailcaller.calldetail</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">".detail-caller-inline"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">		</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>207</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.detail'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toggle</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>208</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmd_down, .cmd_up'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toggleClass</span><span class="PUNC">(</span><span class="STRN">'cmd_down cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>209</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>210</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>211</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>212</span> </span><span class="WHIT">	</span><span class="COMM">// cmd_up cmd_down</span><span class="WHIT">
+<span class='line'>213</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmd_up'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>214</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT">  </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>215</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>216</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>217</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>218</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>219</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toggleClass</span><span class="PUNC">(</span><span class="STRN">'cmd_down cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>220</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>221</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmd_down'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>222</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT">  </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>223</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>224</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>226</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>227</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toggleClass</span><span class="PUNC">(</span><span class="STRN">'cmd_down cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>228</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>229</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmd_publish'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>231</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>232</span> </span><span class="WHIT">		</span><span class="NAME">query.publish</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>233</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>234</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>235</span> </span><span class="WHIT">	</span><span class="COMM">//////////////////////////////////////////////</span><span class="WHIT">
+<span class='line'>236</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#searchretrieve'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">submit</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>237</span> </span><span class="WHIT">		</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>238</span> </span><span class="WHIT">		</span><span class="COMM">//hideWelcomeMessage();</span><span class="WHIT">
+<span class='line'>239</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.buildsctext</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>240</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">searchclauseset.sctext</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>241</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>242</span> </span><span class="WHIT">		</span><span class="COMM">//submit_query (columns_widget.getColumnsListText(),searchclauseset.sctext, $('#input-simplequery').attr("value"), $('#input-withsummary').attr("checked"));</span><span class="WHIT">
+<span class='line'>243</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">searchclauseset.sctext</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>245</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#input-simplequery'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>246</span> </span><span class="WHIT">		</span><span class="COMM">// TODO we dont use columns-widget</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="COMM">//columns_widget.getColumnsListText();</span><span class="WHIT">
+<span class='line'>248</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collections</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collections_widget.widgets</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//searchclauseset.sctext;</span><span class="WHIT">
+<span class='line'>249</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">ws</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#input-withsummary'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"checked"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>250</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>251</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"processing query"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>252</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>253</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">jQuery.trim</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>254</span> </span><span class="WHIT">			</span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>255</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>256</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">jQuery.trim</span><span class="PUNC">(</span><span class="NAME">squery</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>257</span> </span><span class="WHIT">			</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>258</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>259</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>260</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Query</span><span class="PUNC">(</span><span class="NAME">collections</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//actions.collections.current, query );</span><span class="WHIT">
+<span class='line'>261</span> </span><span class="WHIT">		</span><span class="NAME">q.repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>262</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">ws</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>263</span> </span><span class="WHIT">			</span><span class="NAME">q.options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"withSummary"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>264</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>265</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"submit_query:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">q.query_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>266</span> </span><span class="WHIT">		</span><span class="NAME">queryset.addquery</span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.autocomplete-select-caller'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">".index-context"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prev</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">".autocomplete-input"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">change</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">".index-context"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>274</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.autocomplete-select-caller a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>275</span> </span><span class="WHIT">		</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.comp_detail input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'keyup'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#srquery'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'span.cmdelem_name'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT">				</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>286</span> </span><span class="WHIT">	 </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'a.open-in-context'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>287</span> </span><span class="WHIT">			</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>288</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>289</span> </span><span class="WHIT">			</span><span class="COMM">/* notifyUser("open_incontext:" + uri);
+<span class='line'>290</span> 			$(this).after("&lt;div class='ui-context-dialog cmds-ui-block' >&lt;/div>");
+<span class='line'>291</span> 			var trg = $(this).next(".ui-context-dialog");
+<span class='line'>292</span> 			trg.show();						
+<span class='line'>293</span> 			$(trg).load(uri); //function(event) {	} */</span><span class="WHIT">
+<span class='line'>294</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">contextual_uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">uri.replace</span><span class="PUNC">(</span><span class="STRN">'htmlpage'</span><span class="PUNC">,</span><span class="STRN">'htmldetail'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 		</span><span class="WHIT">
+<span class='line'>295</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>296</span> </span><span class="WHIT">			</span><span class="NAME">$.get</span><span class="PUNC">(</span><span class="NAME">contextual_uri</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">showDetail</span><span class="PUNC">,</span><span class="STRN">'html'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>297</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>298</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>299</span> </span><span class="COMM">// RECORDSET searchRetrieve</span><span class="WHIT">
+<span class='line'>300</span> </span><span class="WHIT">	 </span><span class="COMM">/*
+<span class='line'>301</span> 	$('#searchretrieve').submit( function(event) {
+<span class='line'>302</span> 			event.preventDefault();
+<span class='line'>303</span> 			//hideWelcomeMessage();
+<span class='line'>304</span> 			searchclauseset.buildsctext();
+<span class='line'>305</span> 			notifyUser(searchclauseset.sctext,'debug');
+<span class='line'>306</span> 			//submit_query ($('#columns_list').attr("value"),searchclauseset.sctext, $('#input-simplequery').attr("value"));			
+<span class='line'>307</span> 			submit_query (columns_widget.getColumnsListText(),searchclauseset.sctext, $('#input-simplequery').attr("value"), $('#input-withsummary').attr("checked"));
+<span class='line'>308</span> 	});
+<span class='line'>309</span> */</span><span class="WHIT">
+<span class='line'>310</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#columns-widget .cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>311</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">terms</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>312</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>313</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"termset_"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">id</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>316</span> </span><span class="WHIT">		</span><span class="NAME">columns_widget.getListWidget</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.list-item'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>317</span> </span><span class="WHIT">			</span><span class="NAME">terms</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>319</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>320</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dt</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>321</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dateFormat</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//dt.toString("dd/mm/yyyy HH:mm:ss");</span><span class="WHIT">
+<span class='line'>322</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsont</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"name"</span><span class="PUNC">:</span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"time"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"Terms"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="NAME">terms</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>323</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>324</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>325</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>326</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsont</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>327</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>328</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>329</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>330</span> </span><span class="WHIT">		</span><span class="NAME">loadTermsets</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>331</span> </span><span class="WHIT">		</span><span class="COMM">//createTermsUI(jsonw["WorkspaceProfile"]["CustomTermsets"][id],$('#userterms'));</span><span class="WHIT">
+<span class='line'>332</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeAttr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>333</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">last</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"selected"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>334</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="NAME">name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>335</span> </span><span class="WHIT">		</span><span class="NAME">createTermsUI</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userterms'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>336</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>337</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>338</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>339</span> 	$('#querylist .query_header').find('.cmd_del').live('click',  function(event) {
+<span class='line'>340</span> 		//showTermDetail($(this).parent().text());
+<span class='line'>341</span> 		
+<span class='line'>342</span> 		queryset.removequery($(this).closest('.query_wrapper').attr('id'));
+<span class='line'>343</span> 					
+<span class='line'>344</span> 	});
+<span class='line'>345</span> */</span><span class="WHIT">
+<span class='line'>346</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>347</span> 	$('#querylist .cmd_up').live('click',  function(event) {
+<span class='line'>348</span> 		$(this).closest('.query_wrapper').find('.result').hide();
+<span class='line'>349</span> 		$(this).toggleClass('cmd_down cmd_up');					
+<span class='line'>350</span> 	});
+<span class='line'>351</span> 
+<span class='line'>352</span> */</span><span class="WHIT">
+<span class='line'>353</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>354</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail_query .cmds .cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>355</span> </span><span class="WHIT">		</span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>356</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"here I would save query: "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"debug"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>357</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">save</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>358</span> </span><span class="WHIT">		</span><span class="COMM">//Workspace.saveQuery($(this).data('query'));</span><span class="WHIT">
+<span class='line'>359</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>360</span> 
+<span class='line'>361</span> </span><span class="WHIT">	</span><span class="COMM">/**
+<span class='line'>362</span> 	 * FIXME: this should only invoke appropriate query-function storing the query to workspaceprofile
+<span class='line'>363</span> 	 */</span><span class="WHIT">
+<span class='line'>364</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#querylist .cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>365</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>366</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>367</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>368</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>369</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>370</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>371</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">bookmark</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"0"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>372</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json_options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>373</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>374</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>375</span> </span><span class="WHIT">			</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"a"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>376</span> </span><span class="WHIT">			</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">qstring.substring</span><span class="PUNC">(</span><span class="NUMB">18</span><span class="PUNC">,</span><span class="NAME">qstring.length</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>377</span> </span><span class="WHIT">			</span><span class="NAME">bookmark</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"1"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>378</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>379</span> </span><span class="WHIT">			</span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>380</span> </span><span class="WHIT">			</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.getquerystring</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>381</span> </span><span class="WHIT">			</span><span class="NAME">json_coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.getcollections</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>382</span> </span><span class="WHIT">			</span><span class="NAME">json_cols</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.getcolumns</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>383</span> </span><span class="WHIT">			</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.getsquery</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>384</span> </span><span class="WHIT">			</span><span class="NAME">json_options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.getoptions</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>385</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>386</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"saving query: "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"debug"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>387</span> </span><span class="WHIT">		</span><span class="COMM">// JSON conversion</span><span class="WHIT">
+<span class='line'>388</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qstring.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>389</span> </span><span class="WHIT">			</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>390</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>391</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">squery.length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>392</span> </span><span class="WHIT">			</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>393</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>394</span> 
+<span class='line'>395</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>396</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userqueries'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>397</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>398</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>399</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>400</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>401</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dt</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>402</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dateFormat</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//dt.toString("dd/mm/yyyy HH:mm:ss");</span><span class="WHIT">
+<span class='line'>403</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"name"</span><span class="PUNC">:</span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"squerystring"</span><span class="PUNC">:</span><span class="NAME">squery</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"querystring"</span><span class="PUNC">:</span><span class="NAME">qstring</span><span class="PUNC">,</span><span class="STRN">"searchclauses"</span><span class="PUNC">:</span><span class="STRN">"null"</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"collections"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">json_coll</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"columns"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">json_cols</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"options"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">json_options</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"bookmark"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">bookmark</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"time"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>404</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>405</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>406</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">bookmark</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"1"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>407</span> </span><span class="WHIT">			</span><span class="NAME">qstring</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Url.decode</span><span class="PUNC">(</span><span class="NAME">qstring</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>408</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">qstring.split</span><span class="PUNC">(</span><span class="STRN">':'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>409</span> </span><span class="WHIT">			</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">s</span><span class="PUNC">[</span><span class="NAME">s.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">":"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">s</span><span class="PUNC">[</span><span class="NAME">s.length</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>410</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>411</span> </span><span class="WHIT">			</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Query.fullformatstring</span><span class="PUNC">(</span><span class="NAME">jsonq</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>412</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>413</span> </span><span class="WHIT">		</span><span class="NAME">jsonq.name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>414</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>415</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>416</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>417</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>418</span> </span><span class="WHIT">		</span><span class="NAME">appendQueryUI</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">iq</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userqueries'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>419</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>420</span> </span><span class="WHIT">		</span><span class="COMM">//$("#qs_select").append(new Option(Query.simplequerystring(qstring),iq));</span><span class="WHIT">
+<span class='line'>421</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>422</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>423</span> 	$('#querylist .cmd-xml').live('click',  function(event) {
+<span class='line'>424</span> 		var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>425</span> 
+<span class='line'>426</span> 		queryset.getQuery(qid).open('xml');
+<span class='line'>427</span> 	});
+<span class='line'>428</span> 	$('#querylist .cmd-page').live('click',  function(event) {
+<span class='line'>429</span> 		var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>430</span> 
+<span class='line'>431</span> 		queryset.getQuery(qid).open('htmlpage');
+<span class='line'>432</span> 	});
+<span class='line'>433</span> 	*/</span><span class="WHIT">
+<span class='line'>434</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>435</span> 	$('#querylist .cmd-link').live('click',  function(event) {
+<span class='line'>436</span> 		/* var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>437</span> 		var qstring = queryset.getquerystring(qid);	
+<span class='line'>438</span> 		var json_coll = queryset.getcollections(qid);
+<span class='line'>439</span> 		var json_cols = queryset.getcolumns(qid);
+<span class='line'>440</span> 		var squery = queryset.getsquery(qid);
+<span class='line'>441</span> 		// JSON conversion
+<span class='line'>442</span> 		if (qstring.length == 0){
+<span class='line'>443</span> 			qstring = "[NULL]";
+<span class='line'>444</span> 		}
+<span class='line'>445</span> 		if (squery.length == 0){
+<span class='line'>446</span> 			squery = "[NULL]";
+<span class='line'>447</span> 		}		
+<span class='line'>448</span> 		var jsonq = {"squerystring":squery, "querystring":qstring,"searchclauses":"null" , "collections" : json_coll, "columns" : json_cols};
+<span class='line'>449</span> 		///
+<span class='line'>450</span> 		
+<span class='line'>451</span> 		queryset.getQuery(qid).open();
+<span class='line'>452</span> 	});
+<span class='line'>453</span> 	*/</span><span class="WHIT">
+<span class='line'>454</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>455</span> 	$('.cmd_select').live('click',  function(event) {
+<span class='line'>456</span> 		var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>457</span> 					
+<span class='line'>458</span> 		searchclauseset.sctext = queryset.getquerystring(qid);
+<span class='line'>459</span> 		searchclauseset.buildfromquerystring();
+<span class='line'>460</span> 	});
+<span class='line'>461</span> 	*/</span><span class="WHIT">
+<span class='line'>462</span> </span><span class="WHIT">	</span><span class="COMM">/**
+<span class='line'>463</span> 	 * FIXME: this looks like a typo: #queryslist -> #querylist  
+<span class='line'>464</span> 	 */</span><span class="WHIT">
+<span class='line'>465</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#queryslist .cmd_reload'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>466</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>467</span> 
+<span class='line'>468</span> </span><span class="WHIT">		</span><span class="NAME">queryset.resubmit</span><span class="PUNC">(</span><span class="NAME">qid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>469</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>470</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>471</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>472</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>473</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>474</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmd_sc_delete'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>475</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>476</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>477</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser(i + j,'debug');</span><span class="WHIT">
+<span class='line'>478</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.removesearchclause</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>479</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>480</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>481</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmd_add_and'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>482</span> </span><span class="WHIT">		</span><span class="COMM">//showTermDetail($(this).parent().text());</span><span class="WHIT">
+<span class='line'>483</span> </span><span class="WHIT">		</span><span class="COMM">//$(this).next().hide();</span><span class="WHIT">
+<span class='line'>484</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="STRN">"AND"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>485</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">searchclause</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">SearchClause</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>486</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>487</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">j</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>488</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser(i + j,'debug');</span><span class="WHIT">
+<span class='line'>489</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.addsearchclause</span><span class="PUNC">(</span><span class="NAME">searchclause</span><span class="PUNC">,</span><span class="STRN">"and"</span><span class="PUNC">,</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">j</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>490</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>491</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>492</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmd_add_or'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>493</span> </span><span class="WHIT">		</span><span class="COMM">//showTermDetail($(this).parent().text());</span><span class="WHIT">
+<span class='line'>494</span> </span><span class="WHIT">		</span><span class="COMM">//$(this).next().hide();</span><span class="WHIT">
+<span class='line'>495</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">j</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>496</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="STRN">"OR"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>497</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">searchclause</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">SearchClause</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>498</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.addsearchclause</span><span class="PUNC">(</span><span class="NAME">searchclause</span><span class="PUNC">,</span><span class="STRN">"or"</span><span class="PUNC">,</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-i'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-j'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>499</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>500</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>501</span> 
+<span class='line'>502</span> </span><span class="WHIT">	</span><span class="COMM">///// datasets/queries</span><span class="WHIT">
+<span class='line'>503</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>504</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>505</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser($('#qts_input').val() + $('#qts_input').text(),'debug');</span><span class="WHIT">
+<span class='line'>506</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"name"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>507</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>508</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>509</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>510</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>511</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>512</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_add'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>513</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">new_name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"new_queryset"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>514</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>515</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_select option'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>516</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dt</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>517</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dateFormat</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//dt.toString("yyyy-MM-dd HH:mm:ss");</span><span class="WHIT">
+<span class='line'>518</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>519</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>520</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>521</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>522</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>523</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"name"</span><span class="PUNC">:</span><span class="NAME">new_name</span><span class="PUNC">,</span><span class="STRN">"created"</span><span class="PUNC">:</span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"Queries"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>524</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>525</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>526</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>527</span> </span><span class="WHIT">		</span><span class="COMM">//todo</span><span class="WHIT">
+<span class='line'>528</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>529</span> </span><span class="WHIT">		</span><span class="COMM">//loadWorkspace(jsonw["WorkspaceProfile"]["Querysets"]);</span><span class="WHIT">
+<span class='line'>530</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Option</span><span class="PUNC">(</span><span class="NAME">new_name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>531</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"false"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>532</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">last</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"true"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>533</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">new_name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>534</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>535</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_delete'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>536</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">count</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>537</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>538</span> </span><span class="WHIT">		</span><span class="COMM">//if (count > 1){</span><span class="WHIT">
+<span class='line'>539</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>540</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">Querysets.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>541</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>542</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NAME">id</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>543</span> </span><span class="WHIT">				</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">Querysets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">Querysets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>544</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>545</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>546</span> </span><span class="WHIT">			</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">Querysets</span><span class="PUNC">[</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>547</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>548</span> </span><span class="WHIT">			</span><span class="COMM">// set null string , if 0 querysets</span><span class="WHIT">
+<span class='line'>549</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">count</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>550</span> </span><span class="WHIT">				</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>551</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>552</span> </span><span class="WHIT">			</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>553</span> </span><span class="WHIT">			</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>554</span> </span><span class="WHIT">			</span><span class="COMM">//$("#qts_select option").remove();</span><span class="WHIT">
+<span class='line'>555</span> </span><span class="WHIT">			</span><span class="NAME">loadQuerysets</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">"user"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>556</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>557</span> </span><span class="WHIT">		</span><span class="COMM">//}</span><span class="WHIT">
+<span class='line'>558</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>559</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>560</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>561</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>562</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser($('#qts_input').val() + $('#qts_input').text(),'debug');</span><span class="WHIT">
+<span class='line'>563</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"name"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>564</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>565</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>566</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>567</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>568</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>569</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_add'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>570</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">new_name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"new_termset"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>571</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>572</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_select option'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>573</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dt</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>574</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dateFormat</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//dt.toString("yyyy-MM-dd HH:mm:ss");</span><span class="WHIT">
+<span class='line'>575</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>576</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>577</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>578</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>579</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>580</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"name"</span><span class="PUNC">:</span><span class="NAME">new_name</span><span class="PUNC">,</span><span class="STRN">"created"</span><span class="PUNC">:</span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"Terms"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>581</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>582</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>583</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>584</span> </span><span class="WHIT">		</span><span class="COMM">//todo</span><span class="WHIT">
+<span class='line'>585</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>586</span> </span><span class="WHIT">		</span><span class="COMM">//loadWorkspace(jsonw["WorkspaceProfile"]["Querysets"]);</span><span class="WHIT">
+<span class='line'>587</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Option</span><span class="PUNC">(</span><span class="NAME">new_name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>588</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"false"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>589</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">last</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"true"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>590</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">new_name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>591</span> </span><span class="WHIT">		</span><span class="NAME">createTermsUI</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userterms'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>592</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>593</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#ts_delete'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>594</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">count</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>595</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>596</span> </span><span class="WHIT">		</span><span class="COMM">//if (count > 1){</span><span class="WHIT">
+<span class='line'>597</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>598</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>599</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>600</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NAME">id</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>601</span> </span><span class="WHIT">				</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>602</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>603</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>604</span> </span><span class="WHIT">			</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets</span><span class="PUNC">[</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>605</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>606</span> </span><span class="WHIT">			</span><span class="COMM">// set null string , if 0 termsets</span><span class="WHIT">
+<span class='line'>607</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">count</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>608</span> </span><span class="WHIT">				</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>609</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>610</span> </span><span class="WHIT">			</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>611</span> </span><span class="WHIT">			</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>612</span> </span><span class="WHIT">			</span><span class="NAME">loadTermsets</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>613</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>614</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>615</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userterms .cmd_load'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>616</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">term</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">String.trim</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>617</span> </span><span class="WHIT">		</span><span class="NAME">columns_widget.add</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">term</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>618</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>619</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>620</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userterms .cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>621</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#ts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>622</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"href"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>623</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">str.substring</span><span class="PUNC">(</span><span class="NUMB">10</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>624</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>625</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>626</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NAME">iq</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>627</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>628</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>629</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>630</span> </span><span class="WHIT">		</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>631</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>632</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>633</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>634</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>635</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>636</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>637</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>638</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>639</span> </span><span class="WHIT">		</span><span class="NAME">loadTermsets</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>640</span> </span><span class="WHIT">		</span><span class="COMM">//$("#ts_select option").remove();</span><span class="WHIT">
+<span class='line'>641</span> </span><span class="WHIT">		</span><span class="COMM">//$("#ts_select option").first().attr("selected","true");</span><span class="WHIT">
+<span class='line'>642</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>643</span> 
+<span class='line'>644</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>645</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections .cmd_load'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>646</span> </span><span class="WHIT">		</span><span class="COMM">//hideWelcomeMessage();</span><span class="WHIT">
+<span class='line'>647</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collection_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>648</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>649</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collections</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>650</span> </span><span class="WHIT">		</span><span class="COMM">//collections.splice(0, collections.length);</span><span class="WHIT">
+<span class='line'>651</span> </span><span class="WHIT">		</span><span class="NAME">collections</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Collection</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">coll</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"handle"</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">String.trim</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">coll</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>652</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">columns_widget.getListText</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//$('#columns_list').attr("value");</span><span class="WHIT">
+<span class='line'>653</span> </span><span class="WHIT">		</span><span class="COMM">//var collections = collections_widget.getListText();</span><span class="WHIT">
+<span class='line'>654</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Query</span><span class="PUNC">(</span><span class="NAME">collections</span><span class="PUNC">,</span><span class="NAME">columns</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>655</span> </span><span class="WHIT">		</span><span class="NAME">query.repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>656</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>657</span> </span><span class="WHIT">		</span><span class="COMM">//searchclauseset.clear();</span><span class="WHIT">
+<span class='line'>658</span> </span><span class="WHIT">		</span><span class="NAME">queryset.addquery</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>659</span> </span><span class="WHIT">		</span><span class="COMM">//$('#collection_list').attr("value",query.getcollectiontext("name"));</span><span class="WHIT">
+<span class='line'>660</span> </span><span class="WHIT">		</span><span class="NAME">collections_widget.load</span><span class="PUNC">(</span><span class="NAME">query.collection</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>661</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>662</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>663</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#serverqueries .cmd_load'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>664</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>665</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#serverqts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>666</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"href"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>667</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">str.substring</span><span class="PUNC">(</span><span class="NUMB">9</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>668</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jQuery.parseJSON</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#serverqs"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"data"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>669</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>670</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>671</span> </span><span class="WHIT">		</span><span class="NAME">loadQuery</span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>672</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>673</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userqueries .cmd_load'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>674</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>675</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>676</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"href"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>677</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">str.substring</span><span class="PUNC">(</span><span class="NUMB">7</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>678</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>679</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>680</span> </span><span class="WHIT">		</span><span class="NAME">loadQuery</span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>681</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>682</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#userqueries .cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>683</span> </span><span class="WHIT">		</span><span class="COMM">//var count = $("#userqueries li").size();</span><span class="WHIT">
+<span class='line'>684</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>685</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"href"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>686</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">str.substring</span><span class="PUNC">(</span><span class="NUMB">7</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>687</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>688</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>689</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NAME">iq</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>690</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>691</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>692</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>693</span> </span><span class="WHIT">		</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>694</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>695</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>696</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>697</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>698</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>699</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>700</span> </span><span class="WHIT">		</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>701</span> </span><span class="WHIT">		</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>702</span> </span><span class="WHIT">		</span><span class="NAME">loadQuerysets</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">"user"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>703</span> </span><span class="WHIT">		</span><span class="COMM">//$("#qs_select option").remove();</span><span class="WHIT">
+<span class='line'>704</span> </span><span class="WHIT">		</span><span class="COMM">//$("#qs_select option").first().attr("selected","true");</span><span class="WHIT">
+<span class='line'>705</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>706</span> 
+<span class='line'>707</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>708</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-titlebar-del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>709</span> </span><span class="WHIT">		</span><span class="COMM">//$('#detail-float').dialog('close');</span><span class="WHIT">
+<span class='line'>710</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">t</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-content'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>711</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">t</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="STRN">'close'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>712</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>713</span> 
+<span class='line'>714</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-titlebar-up'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>715</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">t</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-content'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>716</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>717</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"tempheight"</span><span class="PUNC">,</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">height</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>718</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser("up(height):" + $(this).parents('.ui-widget').height(),'debug');</span><span class="WHIT">
+<span class='line'>719</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">height</span><span class="PUNC">(</span><span class="NUMB">30</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>720</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser("up(tempheight):" + $(this).parents('.ui-widget').attr("tempheight"),'debug');</span><span class="WHIT">
+<span class='line'>721</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>722</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>723</span> </span><span class="WHIT">		</span><span class="COMM">//$(t).find(".ui-dialog-buttonpane:first, .ui-dialog-content").stop({clearQueue:true}).fadeOut(300);</span><span class="WHIT">
+<span class='line'>724</span> </span><span class="WHIT">		</span><span class="COMM">//$(t).stop({clearQueue:true}).animate({height:'0px'},300);</span><span class="WHIT">
+<span class='line'>725</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>726</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up ui-dialog-titlebar-up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>727</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_down ui-dialog-titlebar-down'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>728</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>729</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-titlebar-down'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>730</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">t</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-content'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>731</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>732</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">h</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"tempheight"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>733</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser("down(tempheight):" + h,'debug');</span><span class="WHIT">
+<span class='line'>734</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">height</span><span class="PUNC">(</span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">h</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>735</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser("down(height):" + $(this).parents('.ui-widget').height(),'debug');</span><span class="WHIT">
+<span class='line'>736</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>737</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>738</span> </span><span class="WHIT">		</span><span class="COMM">//$(this).parents('.ui-widget').attr("tempheight",$(this).parents('.ui-widget').height());</span><span class="WHIT">
+<span class='line'>739</span> </span><span class="WHIT">		</span><span class="COMM">//$(t).find(".ui-dialog-content, .ui-dialog-buttonpane:first").stop({clearQueue:true}).fadeIn(800)</span><span class="WHIT">
+<span class='line'>740</span> </span><span class="WHIT">		</span><span class="COMM">//.end().stop({clearQueue:true}).animate({height:'100%'},300);</span><span class="WHIT">
+<span class='line'>741</span> 
+<span class='line'>742</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_down ui-dialog-titlebar-down'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>743</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up ui-dialog-titlebar-up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>744</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>745</span> 
+<span class='line'>746</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>747</span> 
+<span class='line'>748</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">initDetailFloat</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>749</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#detail-float"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">autoOpen</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>750</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#detail-float"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>751</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#detail-float"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">tabs</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>752</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>753</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">submit_query</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">columns</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">ws</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>754</span> </span><span class="WHIT">	</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"processing query"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>755</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>756</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">jQuery.trim</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>757</span> </span><span class="WHIT">		</span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>758</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>759</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">jQuery.trim</span><span class="PUNC">(</span><span class="NAME">squery</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>760</span> </span><span class="WHIT">		</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>761</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>762</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>763</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Query</span><span class="PUNC">(</span><span class="NAME">collections</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">query</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//actions.collections.current, query );</span><span class="WHIT">
+<span class='line'>764</span> </span><span class="WHIT">	</span><span class="NAME">q.repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>765</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">ws</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>766</span> </span><span class="WHIT">		</span><span class="NAME">q.options</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"withSummary"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>767</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>768</span> </span><span class="WHIT">	</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"submit_query:"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">q.query_uri</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>769</span> </span><span class="WHIT">	</span><span class="NAME">queryset.addquery</span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>770</span> </span><span class="WHIT">	</span><span class="COMM">//notifyUser("container" + q.container.attr('id'));</span><span class="WHIT">
+<span class='line'>771</span> </span><span class="WHIT">	</span><span class="COMM">//$("#querylist").append("sdfdsf");	</span><span class="WHIT">
+<span class='line'>772</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>773</span> 
+<span class='line'>774</span> </span><span class="COMM">/**
+<span class='line'>775</span>  * allows to add ui-containers into the detail-pane.
+<span class='line'>776</span>  * 
+<span class='line'>777</span>  * Most of it is just to ensure a defined ordering:
+<span class='line'>778</span>  * 1. info, 2. index, 3. query, 4. record
+<span class='line'>779</span>  */</span><span class="WHIT">
+<span class='line'>780</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">addToDetailList</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>781</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">exists</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>782</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>783</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>784</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">record_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>785</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">info_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>786</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>787</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>788</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>789</span> </span><span class="WHIT">			</span><span class="NAME">exists</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>790</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>791</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_index"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>792</span> </span><span class="WHIT">			</span><span class="NAME">index_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>793</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>794</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_query"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>795</span> </span><span class="WHIT">			</span><span class="NAME">query_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>796</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>797</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_record"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>798</span> </span><span class="WHIT">			</span><span class="NAME">record_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>799</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>800</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_info"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>801</span> </span><span class="WHIT">			</span><span class="NAME">info_elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>802</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>803</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>804</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">!</span><span class="NAME">exists</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>805</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_record"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>806</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>807</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>808</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_info"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>809</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prepend</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>810</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>811</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_index"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>812</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">info_elem</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>813</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">info_elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">after</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>814</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>815</span> </span><span class="WHIT">						</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">record_elem</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>816</span> </span><span class="WHIT">							</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">record_elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">before</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>817</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>818</span> </span><span class="WHIT">							</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prepend</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>819</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>820</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>821</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>822</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_query"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>823</span> </span><span class="WHIT">						</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">index_elem</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>824</span> </span><span class="WHIT">							</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">index_elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">after</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>825</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>826</span> </span><span class="WHIT">							</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">record_elem</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>827</span> </span><span class="WHIT">								</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">record_elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">before</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>828</span> </span><span class="WHIT">							</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>829</span> </span><span class="WHIT">								</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>830</span> </span><span class="WHIT">							</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>831</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>832</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>833</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>834</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>835</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>836</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>837</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>838</span> 
+<span class='line'>839</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>840</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>841</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>842</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>843</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>844</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>845</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>846</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>847</span> 
+<span class='line'>848</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">addToSClist</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">div</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">j</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">rel</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>849</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>850</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>851</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>852</span> </span><span class="WHIT">	</span><span class="COMM">//notifyUser(i + "," + j + "," + rel);</span><span class="WHIT">
+<span class='line'>853</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>854</span> </span><span class="WHIT">		</span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'&lt;div />'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"sc-i"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"and_level"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>855</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">appendTo</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">appendTo</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>856</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">,</span><span class="NAME">i</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>857</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>858</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">rel</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"and"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>859</span> </span><span class="WHIT">			</span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'&lt;div />'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"sc-i"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"and_level"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>860</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">,</span><span class="NAME">i</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>861</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">appendTo</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">appendTo</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>862</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>863</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">appendTo</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#searchclauselist'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>864</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>865</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>866</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>867</span> </span><span class="WHIT">	</span><span class="COMM">//$('#searchclauselist').append($(li));</span><span class="WHIT">
+<span class='line'>868</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>869</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>870</span> 
+<span class='line'>871</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">addToQuerylist</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>872</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#querylist"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prepend</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>873</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>874</span> 
+<span class='line'>875</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">addToNotifylist</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>876</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#notifylist"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prepend</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>877</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>878</span> 
+<span class='line'>879</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="NAME">parentwidget</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>880</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>881</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">ccmd</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>882</span> </span><span class="WHIT">	 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">parentwidget</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>883</span> </span><span class="WHIT">		 </span><span class="NAME">ccmd</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.cmd'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>884</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>885</span> </span><span class="WHIT">		 </span><span class="NAME">ccmd</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">parentwidget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>886</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>887</span> </span><span class="WHIT">	 </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">ccmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">mouseover</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>888</span> </span><span class="WHIT">		 </span><span class="COMM">// command name</span><span class="WHIT">
+<span class='line'>889</span> </span><span class="WHIT">		 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"class"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>890</span> </span><span class="WHIT">		 </span><span class="NAME">cmd</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cmd.substring</span><span class="PUNC">(</span><span class="NAME">cmd.indexOf</span><span class="PUNC">(</span><span class="STRN">"cmd_"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>891</span> </span><span class="WHIT">		 </span><span class="NAME">cmd</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cmd.split</span><span class="PUNC">(</span><span class="STRN">" "</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>892</span> </span><span class="WHIT">		 </span><span class="WHIT">
+<span class='line'>893</span> </span><span class="WHIT">		 </span><span class="COMM">// command place</span><span class="WHIT">
+<span class='line'>894</span> </span><span class="WHIT">		 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">place</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>895</span> </span><span class="WHIT">		 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>896</span> </span><span class="WHIT">			 </span><span class="NAME">place</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"."</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>897</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>898</span> </span><span class="WHIT">		 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.block'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>899</span> </span><span class="WHIT">			 </span><span class="NAME">place</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.block'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"."</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>900</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>901</span> </span><span class="WHIT">		 </span><span class="WHIT">
+<span class='line'>902</span> 
+<span class='line'>903</span> </span><span class="WHIT">		 </span><span class="COMM">// find tho tooltiptext</span><span class="WHIT">
+<span class='line'>904</span> </span><span class="WHIT">		 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">place</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>905</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>906</span> </span><span class="WHIT">		 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">tooltiptable</span><span class="PUNC">[</span><span class="NAME">a</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>907</span> </span><span class="WHIT">		 	</span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">tooltiptable</span><span class="PUNC">[</span><span class="NAME">a</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>908</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>909</span> </span><span class="WHIT">		 	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">tooltiptable</span><span class="PUNC">[</span><span class="NAME">cmd</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>910</span> </span><span class="WHIT">		 		</span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">tooltiptable</span><span class="PUNC">[</span><span class="NAME">cmd</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>911</span> </span><span class="WHIT">		 	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>912</span> </span><span class="WHIT">		 		</span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">a</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>913</span> </span><span class="WHIT">		 	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>914</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>915</span> </span><span class="WHIT">		 </span><span class="NAME">tooltip.show</span><span class="PUNC">(</span><span class="NAME">s</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>916</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>917</span> </span><span class="WHIT">	 </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">ccmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">mouseout</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>918</span> </span><span class="WHIT">		 </span><span class="NAME">tooltip.hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>919</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>920</span> 
+<span class='line'>921</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>922</span> 
+<span class='line'>923</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadQuery</span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>924</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">[</span><span class="STRN">"bookmark"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"1"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>925</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"/MDService2/record/htmldetail/"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">q</span><span class="PUNC">[</span><span class="STRN">"querystring"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>926</span> </span><span class="WHIT">		</span><span class="NAME">detailcaller.calldetail</span><span class="PUNC">(</span><span class="NAME">undefined</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"record"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>927</span> </span><span class="WHIT">		</span><span class="COMM">//var uri = "/MDService2/record/htmldetail/" + q["querystring"];</span><span class="WHIT">
+<span class='line'>928</span> </span><span class="WHIT">		</span><span class="COMM">//showDetail(null,'html');</span><span class="WHIT">
+<span class='line'>929</span> </span><span class="WHIT">		</span><span class="COMM">//$.get(uri, showDetail,'html');</span><span class="WHIT">
+<span class='line'>930</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>931</span> </span><span class="WHIT">		</span><span class="COMM">//hideWelcomeMessage();</span><span class="WHIT">
+<span class='line'>932</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Query</span><span class="PUNC">(</span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>933</span> </span><span class="WHIT">		</span><span class="NAME">query.load</span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>934</span> </span><span class="WHIT">		</span><span class="NAME">query.repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>935</span> </span><span class="WHIT">		</span><span class="NAME">queryset.addquery</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>936</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>937</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">query.query</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>938</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">searchclauseset.sctext</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>939</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.buildfromquerystring</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>940</span> 
+<span class='line'>941</span> </span><span class="WHIT">		</span><span class="COMM">//collections = query.collection;</span><span class="WHIT">
+<span class='line'>942</span> </span><span class="WHIT">		</span><span class="NAME">collections_widget.load</span><span class="PUNC">(</span><span class="NAME">query.collection</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>943</span> </span><span class="WHIT">		</span><span class="NAME">columns_widget.load</span><span class="PUNC">(</span><span class="NAME">query.columns.split</span><span class="PUNC">(</span><span class="STRN">','</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>944</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#input-simplequery'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="NAME">query.squery</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>945</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#input-withsummary'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"checked"</span><span class="PUNC">,</span><span class="PUNC">(</span><span class="NAME">query.options</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>946</span> </span><span class="WHIT">		</span><span class="NAME">updateCollectionTree</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>947</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>948</span> 
+<span class='line'>949</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>950</span> 
+<span class='line'>951</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadQueryFromUriParams</span><span class="PUNC">(</span><span class="NAME">local_uri</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>952</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>953</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>954</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">local_uri</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>955</span> </span><span class="WHIT">		</span><span class="NAME">url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url_params</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>956</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>957</span> </span><span class="WHIT">		</span><span class="NAME">url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">local_uri</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>958</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>959</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">[</span><span class="STRN">"q"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>960</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">[</span><span class="STRN">"squery"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>961</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collection</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">[</span><span class="STRN">"collection"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>962</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">[</span><span class="STRN">"startItem"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>963</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">[</span><span class="STRN">"maximumItems"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>964</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">[</span><span class="STRN">"repository"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>965</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">[</span><span class="STRN">"columns"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>966</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">collection</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>967</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>968</span> </span><span class="WHIT">			</span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>969</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>970</span> </span><span class="WHIT">			</span><span class="NAME">q</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">Url.decode</span><span class="PUNC">(</span><span class="NAME">q</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>971</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>972</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>973</span> </span><span class="WHIT">			</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>974</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>975</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">columns</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>976</span> </span><span class="WHIT">			</span><span class="NAME">columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>977</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>978</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">startItem</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>979</span> </span><span class="WHIT">			</span><span class="NAME">startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>980</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>981</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>982</span> </span><span class="WHIT">			</span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>983</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>984</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">repository</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>985</span> </span><span class="WHIT">			</span><span class="NAME">repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>986</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>987</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">collection</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>988</span> </span><span class="WHIT">			</span><span class="NAME">collection</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>989</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>990</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collections</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>991</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">collection.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>992</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">collection.split</span><span class="PUNC">(</span><span class="STRN">","</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>993</span> </span><span class="WHIT">			</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">coll</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>994</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">n</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>995</span> </span><span class="WHIT">					</span><span class="NAME">n</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">".folder:[handle='"</span><span class="PUNC">+</span><span class="NAME">item</span><span class="PUNC">+</span><span class="STRN">"']"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>996</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">simple_collection</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Collection</span><span class="PUNC">(</span><span class="NAME">item</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">n</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>997</span> </span><span class="WHIT">					</span><span class="NAME">collections</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">simple_collection</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>998</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>999</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>1000</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>1001</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Query</span><span class="PUNC">(</span><span class="NAME">collections</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">columns</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">q</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1002</span> </span><span class="WHIT">		</span><span class="NAME">query.startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">startItem</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1003</span> </span><span class="WHIT">		</span><span class="NAME">query.maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1004</span> </span><span class="WHIT">		</span><span class="NAME">query.repository</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">repository</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1005</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>1006</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>1007</span> </span><span class="WHIT">		</span><span class="NAME">queryset.addquery</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1008</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>1009</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.sctext</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">query.query</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1010</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">searchclauseset.sctext</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1011</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.buildfromquerystring</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1012</span> 
+<span class='line'>1013</span> </span><span class="WHIT">		</span><span class="COMM">//collections = query.collection;</span><span class="WHIT">
+<span class='line'>1014</span> </span><span class="WHIT">		</span><span class="NAME">collections_widget.load</span><span class="PUNC">(</span><span class="NAME">query.collection</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1015</span> </span><span class="WHIT">		</span><span class="NAME">columns_widget.load</span><span class="PUNC">(</span><span class="NAME">query.columns.split</span><span class="PUNC">(</span><span class="STRN">','</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1016</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#input-simplequery'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="NAME">query.squery</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1017</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#input-withsummary'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"checked"</span><span class="PUNC">,</span><span class="PUNC">(</span><span class="NAME">query.options</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1018</span> </span><span class="WHIT">		</span><span class="NAME">updateCollectionTree</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>1019</span> </span><span class="WHIT">		</span><span class="COMM">/*
+<span class='line'>1020</span> 		
+<span class='line'>1021</span> 		searchclauseset.sctext = query.query;
+<span class='line'>1022</span> 		notifyUser(searchclauseset.sctext,'debug');
+<span class='line'>1023</span> 		
+<span class='line'>1024</span> 		searchclauseset.buildfromquerystring();
+<span class='line'>1025</span> 
+<span class='line'>1026</span> 		$('#collection_list').attr("value",query.getcollectiontext("name"));
+<span class='line'>1027</span> 	
+<span class='line'>1028</span> 		columns_widget.load(query.columns.split(','));
+<span class='line'>1029</span> 		//$('#columns_list').attr("value",query.columns);
+<span class='line'>1030</span> 		$('#input-simplequery').attr("value",query.squery);	
+<span class='line'>1031</span> 
+<span class='line'>1032</span> 		$('#query-input').show();
+<span class='line'>1033</span> 				                                         
+<span class='line'>1034</span> 		//hideWelcomeMessage();
+<span class='line'>1035</span> 		*/</span><span class="WHIT">
+<span class='line'>1036</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>1037</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>1038</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>1039</span> 
+<span class='line'>1040</span> 
+<span class='line'>1041</span> </span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_detail.js.html	(revision 1516)
@@ -0,0 +1,535 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="WHIT"> </span><span class="WHIT">
+<span class='line'>  2</span> </span><span class="COMM">/**
+<span class='line'>  3</span>  * @fileOverview The file for detail-call handling. Details are displayd differently based on settings for particular UI block.
+<span class='line'>  4</span>  * The file consists from Detail model and Detailset of all currently created detail-windows.
+<span class='line'>  5</span>  * @author 
+<span class='line'>  6</span>  * @version 
+<span class='line'>  7</span>  */</span><span class="WHIT">
+<span class='line'>  8</span> 
+<span class='line'>  9</span> </span><span class="COMM">/**
+<span class='line'> 10</span>  * 
+<span class='line'> 11</span>  * @constructor
+<span class='line'> 12</span>  */</span><span class="WHIT">
+<span class='line'> 13</span> 
+<span class='line'> 14</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">Detail</span><span class="PUNC">(</span><span class="NAME">detailwidget</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 15</span> </span><span class="WHIT">	</span><span class="NAME">this.detailwidget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">detailwidget</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 16</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 17</span> </span><span class="WHIT">	</span><span class="NAME">this.did</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 18</span> </span><span class="WHIT">	</span><span class="NAME">this.content_parent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT">	</span><span class="NAME">this.content_wrapper</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 20</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 21</span> </span><span class="WHIT">	</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 22</span> </span><span class="WHIT">	</span><span class="NAME">this.type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 23</span> </span><span class="WHIT">	</span><span class="NAME">this.name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 24</span> </span><span class="WHIT">	</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 25</span> </span><span class="WHIT">	</span><span class="NAME">this.temp_id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 26</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="WHIT">	</span><span class="NAME">this.setData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="NAME">Detail.prototype.update</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">detailwidget</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">	</span><span class="NAME">this.detailwidget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">detailwidget</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">	</span><span class="NAME">this.temp_id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">	</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 34</span> </span><span class="WHIT">	</span><span class="NAME">this.setData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 35</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 36</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 37</span> </span><span class="NAME">Detail.prototype.setData</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.detailwidget</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 41</span> </span><span class="WHIT">	</span><span class="NAME">this.type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">blocks_settings</span><span class="PUNC">[</span><span class="NAME">this.name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">detail.type</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 42</span> </span><span class="WHIT">	</span><span class="KEYW">switch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.name</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 43</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'query'</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'> 44</span> </span><span class="WHIT">		</span><span class="COMM">//TODO class standard rename</span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="WHIT">		</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.columns-wrapper'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 46</span> </span><span class="WHIT">		</span><span class="NAME">this.url</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="WHIT">		</span><span class="NAME">this.temp_id</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.query_wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 48</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 49</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'collections'</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'> 50</span> </span><span class="WHIT">		</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections-block'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 51</span> </span><span class="WHIT">		</span><span class="NAME">this.url</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 52</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'record'</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">		</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 55</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">widget</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 56</span> </span><span class="WHIT">			</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"a"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'values'</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="WHIT">		</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 61</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 62</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 63</span> </span><span class="WHIT">			</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"values/htmllist/?q="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&sort=size&repository="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//$(widget).parent().find("a").attr('href');</span><span class="WHIT">
+<span class='line'> 64</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 65</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 66</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'index'</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="WHIT">		</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 68</span> </span><span class="WHIT">		</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'terms/htmldetail/?q=all'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 69</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'info'</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="WHIT">		</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.detailwidget</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">				</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'/MDService2/docs/xml/welcome #welcome'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 75</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 76</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 77</span> </span><span class="WHIT">				</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'/MDService2/docs/xml/welcome #welcome'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 79</span> 
+<span class='line'> 80</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">			</span><span class="COMM">//var a = $(this).parent().next().attr('id');</span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">			</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">window.location.pathname</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"static/info.xml"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 85</span> </span><span class="WHIT">	</span><span class="KEYW">default</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'> 86</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 87</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 88</span> </span><span class="NAME">Detail.prototype.getTitle</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 89</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">title</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 90</span> </span><span class="WHIT">	</span><span class="NAME">title</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"DETAIL: "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 91</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">title</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 92</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 93</span> </span><span class="NAME">Detail.prototype.create</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 94</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">cw</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;div id='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.did</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"' class='detail-wrapper ui-widget' >"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 95</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='detail-header ui-widget-header ui-state-default'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="COMM">// ui-corner-top'>" +</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;span class='cmd cmd_get'>&lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;span class='inner-title'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.getTitle</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="STRN">"&lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;span class='cmd cmd_del'>&lt;/span>&lt;/div>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'> 99</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='detail-content content'>&lt;/div>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>100</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;/div>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>101</span> </span><span class="WHIT">	</span><span class="NAME">this.content_wrapper</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cw</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>102</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>103</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>104</span> </span><span class="NAME">Detail.prototype.enrichContent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>105</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>106</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.columns-selected'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.widget-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>107</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">queryset.getQuery</span><span class="PUNC">(</span><span class="NAME">this.temp_id</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>108</span> </span><span class="WHIT">			</span><span class="COMM">//enrich link,xml</span><span class="WHIT">
+<span class='line'>109</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">links</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;a class='cmd cmd_xml' target='_blank' href='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">query.link</span><span class="PUNC">(</span><span class="STRN">"xml"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'>sru&lt;/a> "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>110</span> </span><span class="WHIT">				</span><span class="STRN">"&lt;a class='cmd cmd_link' target='_blank' href='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">query.link</span><span class="PUNC">(</span><span class="STRN">"fullpage"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"' >link&lt;/a>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>111</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmds'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">links</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>112</span> </span><span class="WHIT">			</span><span class="COMM">//enrich with selectionlist</span><span class="WHIT">
+<span class='line'>113</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">selectionlist</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">SelectionList</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.columns-selected'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>114</span> </span><span class="WHIT">			</span><span class="NAME">selectionlistset.add</span><span class="PUNC">(</span><span class="NAME">selectionlist</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>115</span> </span><span class="WHIT">			</span><span class="COMM">//selectionlist.listwidget.query = query;</span><span class="WHIT">
+<span class='line'>116</span> </span><span class="WHIT">			</span><span class="NAME">selectionlist.load</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_reload'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'selectionlist'</span><span class="PUNC">,</span><span class="NAME">selectionlist</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">query.columns</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">autolist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>120</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">query.listid</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'thead'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'th'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>121</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>122</span> </span><span class="WHIT">						</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>123</span> </span><span class="WHIT">							</span><span class="NAME">autolist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">autolist</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">						</span><span class="NAME">autolist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">autolist</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>128</span> </span><span class="WHIT">				</span><span class="NAME">selectionlist.autolist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">autolist</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>129</span> </span><span class="WHIT">				</span><span class="NAME">selectionlist.listwidget.load</span><span class="PUNC">(</span><span class="NAME">autolist.split</span><span class="PUNC">(</span><span class="STRN">','</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="WHIT">				</span><span class="NAME">selectionlist.select</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>131</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>132</span> </span><span class="WHIT">			</span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">				</span><span class="NAME">selectionlist.listwidget.load</span><span class="PUNC">(</span><span class="NAME">query.columns.split</span><span class="PUNC">(</span><span class="STRN">','</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="WHIT">				</span><span class="NAME">selectionlist.select</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>135</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>136</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>139</span> </span><span class="NAME">Detail.prototype.postprocessSelection</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>140</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"record"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>141</span> </span><span class="WHIT">		</span><span class="NAME">queryset.recorddetailselection</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.detailwidget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>142</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>143</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>144</span> </span><span class="NAME">Detail.prototype.openContent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>145</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>146</span> </span><span class="WHIT">		</span><span class="NAME">this.content_parent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>147</span> </span><span class="WHIT">		</span><span class="NAME">this.enrichContent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>148</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>149</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>150</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>151</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>152</span> 
+<span class='line'>153</span> </span><span class="NAME">Detail.prototype.openUrl</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>154</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>155</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>156</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.detailwidget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>157</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">load</span><span class="PUNC">(</span><span class="NAME">this.url</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">responseText</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">textStatus</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">XMLHttpRequest</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>158</span> </span><span class="WHIT">			</span><span class="COMM">//find info data</span><span class="WHIT">
+<span class='line'>159</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>160</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>161</span> </span><span class="WHIT">					</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">html</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-info'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>163</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>164</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">get</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>165</span> </span><span class="WHIT">			</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>166</span> </span><span class="WHIT">			</span><span class="NAME">get.addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>167</span> </span><span class="WHIT">			</span><span class="NAME">handleUIBlock</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>168</span> </span><span class="WHIT">			</span><span class="NAME">addPaging</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>169</span> </span><span class="WHIT">			</span><span class="COMM">//$(this).show();</span><span class="WHIT">
+<span class='line'>170</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>171</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_values"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="WHIT">				</span><span class="COMM">//$(this).find(".cmd_columns").click(function(event) {</span><span class="WHIT">
+<span class='line'>173</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">".cmd_query"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>174</span> </span><span class="WHIT">					</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>175</span> </span><span class="WHIT">					</span><span class="NAME">handleValueSelection</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>176</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>177</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>178</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_index"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>179</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">".terms-tree"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">treeTable</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="NAME">initialState</span><span class="PUNC">:</span><span class="STRN">"collapsed"</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>180</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"a.value-caller"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>181</span> </span><span class="WHIT">						</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>182</span> </span><span class="WHIT">						</span><span class="NAME">handleValueCaller</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>183</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>184</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">".terms-tree"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.treecol'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">".cmd_query"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>185</span> </span><span class="WHIT">						</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>186</span> </span><span class="WHIT">						</span><span class="NAME">handleIndexSelection</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>187</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>188</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>189</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>190</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>191</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>192</span> 
+<span class='line'>193</span> </span><span class="NAME">Detail.prototype.open</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>194</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>195</span> </span><span class="WHIT">	</span><span class="KEYW">switch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">blocks_settings</span><span class="PUNC">[</span><span class="NAME">this.name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">detail.type</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>196</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">"inline"</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'>197</span> </span><span class="WHIT">		</span><span class="COMM">//TODO </span><span class="WHIT">
+<span class='line'>198</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>199</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toggle</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>200</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>201</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.detailwidget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">after</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">			</span><span class="NAME">this.openUrl</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">"floating"</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'>207</span> </span><span class="WHIT">		</span><span class="NAME">this.openContent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>208</span> </span><span class="WHIT">		</span><span class="NAME">showDetail</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"html"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>209</span> </span><span class="WHIT">		</span><span class="COMM">//this.showFloatingDetail();</span><span class="WHIT">
+<span class='line'>210</span> </span><span class="WHIT">		</span><span class="NAME">this.openUrl</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>211</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>212</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">"pane"</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'>213</span> </span><span class="WHIT">		</span><span class="NAME">this.openContent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>214</span> </span><span class="WHIT">		</span><span class="NAME">addToDetailList</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"detail_"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>215</span> </span><span class="WHIT">		</span><span class="NAME">this.openUrl</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>216</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.url</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>217</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">get</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>218</span> </span><span class="WHIT">			</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>219</span> </span><span class="WHIT">			</span><span class="NAME">get.addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>220</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>221</span> </span><span class="WHIT">		</span><span class="COMM">//$('#detailblock').children('.content').scrollTop($(this.content_wrapper).position().top);</span><span class="WHIT">
+<span class='line'>222</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detailblock'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">scrollTop</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">position</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">top</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">height</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>223</span> </span><span class="WHIT">	</span><span class="KEYW">default</span><span class="PUNC">:</span><span class="COMM">//pane ?</span><span class="WHIT">
+<span class='line'>224</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>226</span> </span><span class="WHIT">	</span><span class="NAME">this.postprocessSelection</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>227</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>228</span> </span><span class="NAME">Detail.prototype.close</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>229</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.content_parent</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>231</span> </span><span class="WHIT">		</span><span class="NAME">this.content_parent.append</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>232</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>233</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>234</span> 
+<span class='line'>235</span> </span><span class="NAME">Detail.prototype.showFloatingDetail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>236</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.detailwidget</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">offset</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>237</span> </span><span class="WHIT">	</span><span class="COMM">//var iWidth = (options.width > 0) ? options.width : $input.width();</span><span class="WHIT">
+<span class='line'>238</span> </span><span class="WHIT">	</span><span class="COMM">// reposition</span><span class="WHIT">
+<span class='line'>239</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-floating'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">css</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>240</span> </span><span class="WHIT">		</span><span class="COMM">//width: parseInt(iWidth) + "px",</span><span class="WHIT">
+<span class='line'>241</span> </span><span class="WHIT">		</span><span class="NAME">top</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">pos.y</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.detailwidget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">height</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>242</span> </span><span class="WHIT">		</span><span class="NAME">left</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">pos.x</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>243</span> </span><span class="WHIT">		</span><span class="STRN">"z-index"</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"1000"</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>245</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-floating'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>246</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-floating'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>248</span> 
+<span class='line'>249</span> </span><span class="COMM">/**
+<span class='line'>250</span>  * Reference to UI-element
+<span class='line'>251</span>  * @field
+<span class='line'>252</span>  */</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>253</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">detail_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#detaillist"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>254</span> 
+<span class='line'>255</span> </span><span class="COMM">/**
+<span class='line'>256</span>  * Maintains/Manages the detail-list
+<span class='line'>257</span>  * @constructor
+<span class='line'>258</span>  */</span><span class="WHIT">
+<span class='line'>259</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">detailcaller</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">details</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>260</span> </span><span class="WHIT">	</span><span class="NAME">container</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'#detaillist'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>261</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>262</span> </span><span class="WHIT">	</span><span class="NAME">calldetail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">,</span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>263</span> </span><span class="WHIT">		</span><span class="COMM">//var name;</span><span class="WHIT">
+<span class='line'>264</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>265</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">content</span><span class="PUNC">;</span><span class="COMM">//, url;</span><span class="WHIT">
+<span class='line'>266</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">			</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getdetailname</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">				</span><span class="NAME">alert</span><span class="PUNC">(</span><span class="STRN">"detail name -  undefined"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">				</span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>274</span> </span><span class="WHIT">		</span><span class="COMM">// test for values</span><span class="WHIT">
+<span class='line'>275</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'values'</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.sc-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.index-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="WHIT">				</span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.details</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT">		</span><span class="COMM">//url = this.getdetailurl(name, widget);</span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT">			</span><span class="COMM">//content = this.getdetailcontent(name, widget);</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">			</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Detail</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">widget</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>286</span> </span><span class="WHIT">			</span><span class="NAME">this.adddetail</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>287</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>288</span> </span><span class="WHIT">			</span><span class="NAME">detail.close</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>289</span> </span><span class="WHIT">			</span><span class="COMM">//content = this.getdetailcontent(name, widget);</span><span class="WHIT">
+<span class='line'>290</span> </span><span class="WHIT">			</span><span class="NAME">detail.update</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">widget</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">url</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>291</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>292</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>293</span> </span><span class="WHIT">		</span><span class="NAME">detail.open</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>294</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>295</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>296</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>297</span> </span><span class="WHIT">	</span><span class="NAME">adddetail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>298</span> </span><span class="WHIT">		</span><span class="NAME">this.details</span><span class="PUNC">[</span><span class="NAME">detail.name</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>299</span> </span><span class="WHIT">		</span><span class="NAME">detail.did</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"detail_"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">detail.name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>300</span> </span><span class="WHIT">		</span><span class="NAME">detail.create</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>301</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>302</span> 
+<span class='line'>303</span> </span><span class="WHIT">	</span><span class="NAME">removedetail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>304</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"removing detail:"</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>305</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>306</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getdetail</span><span class="PUNC">(</span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>307</span> </span><span class="WHIT">		</span><span class="COMM">//detail.clear();</span><span class="WHIT">
+<span class='line'>308</span> </span><span class="WHIT">		</span><span class="NAME">this.details</span><span class="PUNC">[</span><span class="NAME">detail.name</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>309</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>310</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>311</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>312</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>313</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT">	</span><span class="NAME">getdetailname</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>316</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.result'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>317</span> </span><span class="WHIT">			</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"record"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>319</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.result-summary'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>320</span> </span><span class="WHIT">				</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"values"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>321</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>322</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.ui-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'name'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'query'</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>323</span> </span><span class="WHIT">					</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'query'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>324</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>325</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT">  </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.c-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'collections-widget'</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>326</span> </span><span class="WHIT">						</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'collections'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>327</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>328</span> </span><span class="WHIT">						</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"name"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"detail_index"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>329</span> </span><span class="WHIT">							</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'index'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>330</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>331</span> </span><span class="WHIT">							</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prev</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hasClass</span><span class="PUNC">(</span><span class="STRN">"value-input"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>332</span> </span><span class="WHIT">								</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'values'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>333</span> </span><span class="WHIT">							</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>334</span> </span><span class="WHIT">								</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hasClass</span><span class="PUNC">(</span><span class="STRN">"cmd_info"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>335</span> </span><span class="WHIT">									</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'info'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>336</span> </span><span class="WHIT">								</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>337</span> </span><span class="WHIT">							</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>338</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>339</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>340</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>341</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>342</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>343</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>344</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>345</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>346</span> </span><span class="COMM">/*	
+<span class='line'>347</span> 	getdetailcontent: function(name, widget) {
+<span class='line'>348</span> 		var content;
+<span class='line'>349</span> 		switch (name){
+<span class='line'>350</span> 		case 'query':
+<span class='line'>351</span> 			//TODO class standard rename
+<span class='line'>352</span> 			content = $(widget).closest('.query_wrapper').find('.columns-wrapper');
+<span class='line'>353</span> 			break;
+<span class='line'>354</span> 		case 'record':
+<span class='line'>355</span> 			content = undefined;
+<span class='line'>356</span> 			break;
+<span class='line'>357</span> 		case 'values':
+<span class='line'>358</span> 			content = undefined;
+<span class='line'>359</span> 			break;
+<span class='line'>360</span> 		default:
+<span class='line'>361</span> 		}
+<span class='line'>362</span> 		return content;
+<span class='line'>363</span> 	}, 
+<span class='line'>364</span> 	
+<span class='line'>365</span> 	getdetailurl: function(name, widget) {
+<span class='line'>366</span> 		var url;
+<span class='line'>367</span> 		switch (name){
+<span class='line'>368</span> 		case 'query':
+<span class='line'>369</span> 			url = undefined;
+<span class='line'>370</span> 			break;
+<span class='line'>371</span> 		case 'record':
+<span class='line'>372</span> 			url = $(widget).parent().find("a").attr('href');
+<span class='line'>373</span> 			break;
+<span class='line'>374</span> 		case 'values':
+<span class='line'>375</span> 			url = $(widget).parent().find("a").attr('href');
+<span class='line'>376</span> 			break;
+<span class='line'>377</span> 		default:
+<span class='line'>378</span> 		}
+<span class='line'>379</span> 
+<span class='line'>380</span> 		return url;
+<span class='line'>381</span> 	}, 
+<span class='line'>382</span> 	*/</span><span class="WHIT">
+<span class='line'>383</span> </span><span class="WHIT">	</span><span class="NAME">getdetail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">did</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>384</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>385</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.details</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>386</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.did</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>387</span> </span><span class="WHIT">				</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>388</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>389</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>390</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>391</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>392</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>393</span> 
+<span class='line'>394</span> 
+<span class='line'>395</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">showDetail</span><span class="PUNC">(</span><span class="NAME">_data</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">textStatus</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">xmlhttpreq</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>396</span> </span><span class="WHIT">	</span><span class="KEYW">try</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>397</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_data</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>398</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">blankdata</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;html>&lt;\html>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>399</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>400</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="PUNC">(</span><span class="KEYW">typeof</span><span class="WHIT"> </span><span class="NAME">xmlhttpreq</span><span class="PUNC">!=</span><span class="STRN">'undefined'</span><span class="PUNC">)</span><span class="WHIT">
+<span class='line'>401</span> </span><span class="WHIT">		</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>402</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">xmlhttpreq.responseXML</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>403</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">isinfo</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">xmlhttpreq.responseXML.baseURI.split</span><span class="PUNC">(</span><span class="STRN">"/static/info.xml?id="</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>404</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">isinfo</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"undefined"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>405</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">isinfo.length</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>406</span> </span><span class="WHIT">						</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">infoid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">RegExp</span><span class="PUNC">(</span><span class="STRN">'[\\?]id=([^&#]*)'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">exec</span><span class="PUNC">(</span><span class="NAME">xmlhttpreq.responseXML.baseURI</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>407</span> </span><span class="WHIT">						</span><span class="NAME">infoid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">infoid</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>408</span> </span><span class="WHIT">						</span><span class="NAME">infoid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">infoid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-info"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>409</span> </span><span class="WHIT">						</span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">_data</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">infoid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>410</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>411</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>412</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>413</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>414</span> 
+<span class='line'>415</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">!</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">is</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">":ui-dialog"</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>416</span> </span><span class="WHIT">			</span><span class="NAME">initDetailFloat</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>417</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>418</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>419</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT">  </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>420</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">html</span><span class="PUNC">(</span><span class="NAME">blankdata</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>421</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>422</span> </span><span class="WHIT">			</span><span class="NAME">openDialog</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>423</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT">
+<span class='line'>424</span> </span><span class="WHIT">		</span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>425</span> </span><span class="WHIT">			</span><span class="COMM">// detail data</span><span class="WHIT">
+<span class='line'>426</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>427</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>428</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">did.indexOf</span><span class="PUNC">(</span><span class="STRN">"-info"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>429</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">detailcaller.getdetail</span><span class="PUNC">(</span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>430</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pos</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail.detailwidget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">offset</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>431</span> </span><span class="WHIT">					</span><span class="NAME">pos.top</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">pos.top</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail.detailwidget</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">height</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>432</span> </span><span class="WHIT">					</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#detail-float"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'position'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="NAME">pos.left</span><span class="PUNC">,</span><span class="NAME">pos.top</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>433</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>434</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>435</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>436</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">html</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>437</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">title</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.inner-title'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'value'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>438</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">title</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">title</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.title, .inner-title'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">first</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>439</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">"option"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"title"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">title</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>440</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>441</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>442</span> 
+<span class='line'>443</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>444</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>445</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>446</span> </span><span class="WHIT">			</span><span class="NAME">openDialog</span><span class="PUNC">(</span><span class="NAME">title</span><span class="PUNC">,</span><span class="KEYW">false</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>447</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>448</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>449</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">catch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>450</span> </span><span class="WHIT">			</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>451</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>452</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>453</span> 
+<span class='line'>454</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">openDialog</span><span class="PUNC">(</span><span class="NAME">title</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">is_get</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>455</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="STRN">"isOpen"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>456</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">!</span><span class="WHIT"> </span><span class="NAME">is_get</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>457</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">get</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'div.ui-dialog-titlebar'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>458</span> </span><span class="WHIT">			</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_get'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'cmd_up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>459</span> </span><span class="WHIT">			</span><span class="NAME">get.removeClass</span><span class="PUNC">(</span><span class="STRN">'ui-dialog-titlebar-get'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'ui-dialog-titlebar-up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>460</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>461</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">up</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'div.ui-dialog-titlebar'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-titlebar-up'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>462</span> </span><span class="WHIT">			</span><span class="NAME">up.removeClass</span><span class="PUNC">(</span><span class="STRN">'.cmd_up .ui-dialog-titlebar-up'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'.cmd_get .ui-dialog-titlebar-get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>463</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">down</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'div.ui-dialog-titlebar'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-titlebar-down'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>464</span> </span><span class="WHIT">			</span><span class="NAME">down.removeClass</span><span class="PUNC">(</span><span class="STRN">'.cmd_down .ui-dialog-titlebar-down'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'.cmd_get .ui-dialog-titlebar-get'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>465</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>466</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'div.ui-dialog-titlebar'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.ui-dialog-title'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="NAME">title</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>467</span> </span><span class="WHIT">		</span><span class="COMM">//$('#detail-float').closest('.ui-dialog').show();</span><span class="WHIT">
+<span class='line'>468</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>469</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>470</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="STRN">'open'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>471</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'div.ui-dialog-titlebar'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'ui-state-default'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>472</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'div.ui-dialog-titlebar'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>473</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'&lt;span class="cmd cmd_del ui-dialog-titlebar-del "/>'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>474</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">is_get</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>475</span> </span><span class="WHIT">			</span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;span class="cmd cmd_get ui-dialog-titlebar-get"/>'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>476</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>477</span> </span><span class="WHIT">			</span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;span class="cmd cmd_up ui-dialog-titlebar-up"/>'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>478</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>479</span> </span><span class="WHIT">		</span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;span class="ui-dialog-title">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">title</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="STRN">'&lt;/span>'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>480</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#detail-float'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'div.ui-dialog-titlebar'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>481</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>482</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>483</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#detail-float"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dialog</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>484</span> </span><span class="WHIT">			</span><span class="NAME">beforeclose</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">ui</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>485</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>486</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">did</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>487</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>488</span> </span><span class="WHIT">				</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>489</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>490</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">did</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>491</span> </span><span class="WHIT">				</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">detailcaller.getdetail</span><span class="PUNC">(</span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>492</span> </span><span class="WHIT">				</span><span class="NAME">detail.close</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>493</span> </span><span class="WHIT">				</span><span class="COMM">//if (detail.name == "collections"){</span><span class="WHIT">
+<span class='line'>494</span> </span><span class="WHIT">					</span><span class="NAME">detailcaller.removedetail</span><span class="PUNC">(</span><span class="NAME">did</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>495</span> </span><span class="WHIT">				</span><span class="COMM">//}</span><span class="WHIT">
+<span class='line'>496</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>497</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>498</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>499</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>500</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>501</span> 
+<span class='line'>502</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>503</span> 
+<span class='line'>504</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">updateQueryDetailPane</span><span class="PUNC">(</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>505</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">detailcaller.getdetail</span><span class="PUNC">(</span><span class="STRN">"detail_query"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>506</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>507</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">query.listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">detail.temp_id</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>508</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_xml'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">,</span><span class="NAME">query.link</span><span class="PUNC">(</span><span class="STRN">"xml"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>509</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail.content_wrapper</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_link'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">,</span><span class="NAME">query.link</span><span class="PUNC">(</span><span class="STRN">"fullpage"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>510</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>511</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>512</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>513</span> </span><span class="COMM">/*
+<span class='line'>514</span> function updateColumnsFromDetail(query){
+<span class='line'>515</span> 	var detail = detailcaller.getdetail("detail_query");
+<span class='line'>516</span> 	if (detail != undefined){
+<span class='line'>517</span> 		if (query.listid == detail.temp_id){
+<span class='line'>518</span> 			
+<span class='line'>519</span> 			if (selectionlistset.getselectionlist(slid).autoSelected()){
+<span class='line'>520</span> 				this.columns = "";
+<span class='line'>521</span> 			} else
+<span class='line'>522</span> 			{
+<span class='line'>523</span> 				this.columns = selectionlistset.getselectionlist(slid).listwidget.getListText();
+<span class='line'>524</span> 			}
+<span class='line'>525</span> 		}
+<span class='line'>526</span> 	}
+<span class='line'>527</span> }
+<span class='line'>528</span> */</span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_helpers.js.html	(revision 1516)
@@ -0,0 +1,466 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/**
+<span class='line'>  2</span>  * @fileOverview  The file contains UI concerned functions for building the pane structure from app settings 
+<span class='line'>  3</span>  * and a lot of other UI functionality for example tooltips, notifymessges, ui-block handling
+<span class='line'>  4</span>  *
+<span class='line'>  5</span>  * @author 
+<span class='line'>  6</span>  * @version 
+<span class='line'>  7</span>  */</span><span class="WHIT">
+<span class='line'>  8</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">createBlock</span><span class="PUNC">(</span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">_parent</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>  9</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">ui_array</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 10</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layout</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 11</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">_class</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 12</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">len</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 13</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">layout_elem</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 14</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">_parent</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 15</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layout_div</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 16</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 17</span> </span><span class="WHIT">	</span><span class="COMM">// append UI</span><span class="WHIT">
+<span class='line'> 18</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">_parent</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT">		</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'body'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 20</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 21</span> </span><span class="WHIT">		</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_parent</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 22</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 23</span> </span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 24</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">settings</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 25</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">settings</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 26</span> </span><span class="WHIT">		</span><span class="NAME">settings</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CloneObject</span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">model_settings</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">		</span><span class="NAME">settings</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">settings</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">	</span><span class="NAME">jQuery.each</span><span class="PUNC">(</span><span class="NAME">block_positions</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="NAME">position</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">position</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">			</span><span class="NAME">ui_array</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">position</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 34</span> </span><span class="WHIT">			</span><span class="NAME">len</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ui_array.lenght</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 35</span> </span><span class="WHIT">			</span><span class="NAME">jQuery.each</span><span class="PUNC">(</span><span class="NAME">ui_array</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 36</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">e</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">elem</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 37</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">elem</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">						</span><span class="NAME">layout_div</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'&lt;div>&lt;/div>'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">position</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">"cmds-ui-block"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"layoutname"</span><span class="PUNC">,</span><span class="NAME">name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 41</span> </span><span class="WHIT">						</span><span class="NAME">e</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">createBlock</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">layout_div</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">  </span><span class="COMM">// compode element</span><span class="WHIT">
+<span class='line'> 42</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">layout_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 43</span> </span><span class="WHIT">						</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">parent.append</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">layout_div</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 44</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'-'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">position</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"layoutname"</span><span class="PUNC">,</span><span class="NAME">name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 46</span> </span><span class="WHIT">						</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">blocks_settings</span><span class="PUNC">[</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="WHIT">							</span><span class="COMM">//jQuery.each(blocks_settings[$(elem).attr("id")].sublayouts,function(index, ee){</span><span class="WHIT">
+<span class='line'> 48</span> </span><span class="WHIT">							</span><span class="COMM">//	createBlock(ee, $('#' + ee));</span><span class="WHIT">
+<span class='line'> 49</span> </span><span class="WHIT">							</span><span class="COMM">//});</span><span class="WHIT">
+<span class='line'> 50</span> </span><span class="WHIT">							</span><span class="NAME">jQuery.each</span><span class="PUNC">(</span><span class="NAME">blocks_settings</span><span class="PUNC">[</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">commands.block</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 51</span> </span><span class="WHIT">								</span><span class="NAME">createCommand</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 52</span> </span><span class="WHIT">								</span><span class="NAME">bindCommand</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="WHIT">							</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 55</span> </span><span class="WHIT">						</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">parent.append</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 56</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">					</span><span class="COMM">//layout_initialisation[name].parent.height(layout_initialisation[name].parent.height() + $(layout_div).height());</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="WHIT">					</span><span class="NAME">settings</span><span class="PUNC">[</span><span class="NAME">position</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"__paneSelector"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"."</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">position</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="WHIT">					</span><span class="COMM">//position + "__paneSelector" = "." + name + "-" + position</span><span class="WHIT">
+<span class='line'> 61</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 62</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 63</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 64</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 65</span> </span><span class="WHIT">	</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">settings</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">settings</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 66</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">layout_div</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 68</span> 
+<span class='line'> 69</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">createLayouts</span><span class="PUNC">(</span><span class="NAME">name</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">ui_array</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layout</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">	</span><span class="COMM">// append UI	</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">	</span><span class="NAME">layout</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">layout</span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">settings</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 75</span> 
+<span class='line'> 76</span> </span><span class="WHIT">	</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">layout</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">layout</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 77</span> </span><span class="WHIT">	</span><span class="NAME">jQuery.each</span><span class="PUNC">(</span><span class="NAME">block_positions</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="NAME">position</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">position</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 79</span> </span><span class="WHIT">			</span><span class="NAME">ui_array</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">name</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">position</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 80</span> </span><span class="WHIT">			</span><span class="NAME">jQuery.each</span><span class="PUNC">(</span><span class="NAME">ui_array</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">layout_initialisation</span><span class="PUNC">[</span><span class="NAME">elem</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">					</span><span class="NAME">createLayouts</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 85</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 86</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 87</span> 
+<span class='line'> 88</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 89</span> 
+<span class='line'> 90</span> 
+<span class='line'> 91</span> </span><span class="COMM">//append blocks functionality</span><span class="WHIT">
+<span class='line'> 92</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">createCommand</span><span class="PUNC">(</span><span class="NAME">parent</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 93</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"&lt;span class='cmd "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'>&lt;/span>"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">appendTo</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">parent</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 94</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT">  </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">parent</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 95</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 96</span> 
+<span class='line'> 97</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">bindCommand</span><span class="PUNC">(</span><span class="NAME">parent</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">command</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">parent</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 99</span> </span><span class="WHIT">	</span><span class="KEYW">switch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>100</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">"cmd_close"</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>101</span> </span><span class="WHIT">		</span><span class="NAME">bindCloseCommand</span><span class="PUNC">(</span><span class="NAME">command</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>102</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>103</span> </span><span class="WHIT">	</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">"cmd_advanced"</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>104</span> </span><span class="WHIT">		</span><span class="NAME">bindAdvancedCommand</span><span class="PUNC">(</span><span class="NAME">command</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>105</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>106</span> </span><span class="WHIT">	</span><span class="KEYW">default</span><span class="PUNC">:</span><span class="WHIT">
+<span class='line'>107</span> </span><span class="WHIT">		</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>108</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>109</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>110</span> 
+<span class='line'>111</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">bindAdvancedCommand</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>112</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>113</span> </span><span class="WHIT">		</span><span class="COMM">//var advanced = $(this).closest('.cmds-ui-block').attr("id") + '_advanced';</span><span class="WHIT">
+<span class='line'>114</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.ui-advanced'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">toggle</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>115</span> </span><span class="WHIT">		</span><span class="COMM">// TODO tag &lt;table>  auto-resize dont work !!!!!  </span><span class="WHIT">
+<span class='line'>116</span> </span><span class="WHIT">		</span><span class="COMM">//if ($(this).closest('.cmds-ui-block').find('.ui-advanced').is(":visible") == false){</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">		</span><span class="COMM">//	var name = $(this).closest('.cmds-ui-block').attr("layoutname");</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">		</span><span class="COMM">//	layout_initialisation[name].layout.sizePane("north",$("#input-simplequery").height(),false, false);</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">		</span><span class="COMM">//}</span><span class="WHIT">
+<span class='line'>120</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>121</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>122</span> 
+<span class='line'>123</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">bindCloseCommand</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>128</span> 
+<span class='line'>129</span> </span><span class="COMM">////</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">handleValueCaller</span><span class="PUNC">(</span><span class="NAME">_this</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>131</span> 
+<span class='line'>132</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">_this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">after</span><span class="PUNC">(</span><span class="STRN">'&lt;div class="ui-context-dialog cmds-ui-closable cmd cmd_get" >&lt;/div>'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">					</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">	</span><span class="NAME">detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">_this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.ui-context-dialog'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>135</span> </span><span class="WHIT">	</span><span class="NAME">detail.load</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">_this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>136</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeClass</span><span class="PUNC">(</span><span class="STRN">'cmd_get cmd'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">				</span><span class="NAME">handleUIBlock</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="WHIT">				</span><span class="NAME">addPaging</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>139</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>140</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>141</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_columns'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>142</span> </span><span class="WHIT">					</span><span class="NAME">event.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>143</span> </span><span class="WHIT">					</span><span class="NAME">handleValueSelection</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>144</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>145</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>146</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>147</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">handleIndexSelection</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>148</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.treecol'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.column-elem'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>149</span> </span><span class="WHIT">	</span><span class="NAME">searchclauseset.updatedata</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>150</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>151</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">handleValueSelection</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>152</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>153</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.ui-context-dialog'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'.treecol'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>154</span> </span><span class="WHIT">		</span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.ui-context-dialog'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">siblings</span><span class="PUNC">(</span><span class="STRN">'.treecol'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.column-elem'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>155</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>156</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'td'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>157</span> </span><span class="WHIT">	</span><span class="NAME">searchclauseset.updatedata</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>158</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>159</span> </span><span class="COMM">//</span><span class="WHIT">
+<span class='line'>160</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">handleUIBlock</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">elems</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>161</span> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>163</span> </span><span class="COMM">//	$('#left-menu').addClass('ui-accordion ui-widget ui-helper-reset ui-accordion-icons');	</span><span class="WHIT">
+<span class='line'>164</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elems</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'ui-helper-reset ui-corner-all'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>165</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elems</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'ui-widget-header ui-state-default ui-corner-top'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>166</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elems</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">addClass</span><span class="PUNC">(</span><span class="STRN">'ui-widget-content ui-corner-bottom'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>167</span> </span><span class="COMM">/*	$(elems).children('.header').click(function() {
+<span class='line'>168</span> 		$(this).next().toggle('fast');
+<span class='line'>169</span> 		return false;
+<span class='line'>170</span> 	}).next().hide();
+<span class='line'>171</span> 	*/</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>173</span> </span><span class="WHIT">	</span><span class="COMM">//$(elems).children('.header').prepend('&lt;span class="cmd cmd-collapse cmd_down" > &lt;/span>');</span><span class="WHIT">
+<span class='line'>174</span> </span><span class="WHIT">	</span><span class="COMM">//$(elems).find('.cmd-collapse').click(function(event) {</span><span class="WHIT">
+<span class='line'>175</span> </span><span class="WHIT">	</span><span class="COMM">//		$(this).closest('.header').next().toggle('fast');</span><span class="WHIT">
+<span class='line'>176</span> </span><span class="WHIT">	</span><span class="COMM">//		//$(this).toggleClass('cmd_down cmd_up');</span><span class="WHIT">
+<span class='line'>177</span> </span><span class="WHIT">	</span><span class="COMM">//		return false;</span><span class="WHIT">
+<span class='line'>178</span> </span><span class="WHIT">	</span><span class="COMM">//	});</span><span class="WHIT">
+<span class='line'>179</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>180</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elems</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>181</span> </span><span class="WHIT">		</span><span class="COMM">// default is: hidden</span><span class="WHIT">
+<span class='line'>182</span> </span><span class="WHIT">		</span><span class="COMM">/*
+<span class='line'>183</span> 		if ($(this).hasClass('init-show'))  {		
+<span class='line'>184</span> 			$(this).children('.content').show();
+<span class='line'>185</span> 			$(this).find('.cmd-collapse').toggleClass('cmd_down cmd_up');		
+<span class='line'>186</span> 		} else {
+<span class='line'>187</span> 			$(this).children('.content').hide();			
+<span class='line'>188</span> 		}		
+<span class='line'>189</span> 			*/</span><span class="WHIT">
+<span class='line'>190</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hasClass</span><span class="PUNC">(</span><span class="STRN">'cmds-ui-closable'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT">  </span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>191</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prepend</span><span class="PUNC">(</span><span class="STRN">'&lt;span class="cmd cmd_close" > &lt;/span>'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>192</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_close'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>193</span> </span><span class="WHIT">					</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-closable'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>194</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>195</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>196</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>197</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>198</span> 
+<span class='line'>199</span> 
+<span class='line'>200</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">addPaging</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>201</span> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">header</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">content</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.content'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pagingSize</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>207</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'start-item'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>208</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">countItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'max-value'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//$(content).find('tr').size;</span><span class="WHIT">
+<span class='line'>209</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'maximum-items'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>210</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>211</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">countItems</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>212</span> </span><span class="WHIT">		</span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">countItems</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>213</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>214</span> 
+<span class='line'>215</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">paging</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'&lt;div class="cmds-navi-header ui-widget">&lt;span class="label" >from:&lt;/span>&lt;span>&lt;input type="text" class="value start-item paging-input">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>216</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;/input>&lt;/span>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>217</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;span class="label" >max:&lt;/span>&lt;span>&lt;input type="text" class="value maximum-items paging-input" >&lt;/input>&lt;/span>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>218</span> </span><span class="WHIT">  </span><span class="STRN">'&lt;span class="cmd cmd_reload" />'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>219</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;span class="cmd cmd_prev">'</span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>220</span> </span><span class="WHIT">	</span><span class="COMM">//'&lt;xsl:choose>' +</span><span class="WHIT">
+<span class='line'>221</span> </span><span class="WHIT">	</span><span class="COMM">//	'&lt;xsl:when test="$startItem = '1'">' +</span><span class="WHIT">
+<span class='line'>222</span> </span><span class="WHIT">	</span><span class="COMM">//		'&lt;xsl:attribute name="disabled">disabled&lt;/xsl:attribute>' +</span><span class="WHIT">
+<span class='line'>223</span> </span><span class="WHIT">	</span><span class="COMM">//	'&lt;/xsl:when>' +</span><span class="WHIT">
+<span class='line'>224</span> </span><span class="WHIT">	</span><span class="COMM">//'&lt;/xsl:choose>' +</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;/span>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>226</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;span class="cmd cmd_next">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>227</span> </span><span class="WHIT">	</span><span class="COMM">//'&lt;xsl:choose>' +</span><span class="WHIT">
+<span class='line'>228</span> </span><span class="WHIT">	</span><span class="COMM">//	'&lt;xsl:when test="$maximumItems &gt; numberOfRecords or $maximumItems = numberOfRecords">' +</span><span class="WHIT">
+<span class='line'>229</span> </span><span class="WHIT">	</span><span class="COMM">//		'&lt;xsl:attribute name="disabled">disabled&lt;/xsl:attribute>' +</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="WHIT">	</span><span class="COMM">//	'&lt;/xsl:when>' +</span><span class="WHIT">
+<span class='line'>231</span> </span><span class="WHIT">	</span><span class="COMM">//	'&lt;/xsl:choose>' +</span><span class="WHIT">
+<span class='line'>232</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;/span>&lt;/div'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>233</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>234</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">paging</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>235</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.start-item'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="NAME">startItem</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>236</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.maximum-items'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="NAME">maximumItems</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>237</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>238</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_reload'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>239</span> </span><span class="WHIT">		</span><span class="NAME">reloadPage</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>240</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>241</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>242</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>243</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_next'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="WHIT">		</span><span class="NAME">pageNext</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>245</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>246</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">header</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_prev'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>248</span> </span><span class="WHIT">		</span><span class="NAME">pageNext</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>249</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>250</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>251</span> 
+<span class='line'>252</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>253</span> 
+<span class='line'>254</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">pageNext</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">pages</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>255</span> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>256</span> </span><span class="WHIT">	</span><span class="COMM">//TODO</span><span class="WHIT">
+<span class='line'>257</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">numItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'max-value'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//$(cmd).closest('.cmds-ui-block').children('.content').find('tr').length;</span><span class="WHIT">
+<span class='line'>258</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'start-item'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>259</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'maximum-items'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>260</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>261</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>262</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>263</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>264</span> </span><span class="WHIT">	</span><span class="COMM">//var max_value = $('#' + qid ).find('.result-header').attr("max_value");</span><span class="WHIT">
+<span class='line'>265</span> 
+<span class='line'>266</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">		</span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">numItems</span><span class="WHIT"> </span><span class="PUNC">>=</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">		</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">	</span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">startItem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">page_record_count</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">startItem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">page_record_count</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">page_record_count</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">>=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT">		</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">startItem</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">pages</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">page_record_count</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>274</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>275</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">start</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT">		</span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.start-item'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'value'</span><span class="PUNC">,</span><span class="NAME">start</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.maximum-items'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'value'</span><span class="PUNC">,</span><span class="NAME">num</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT">			</span><span class="NAME">reloadPage</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">cmd</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>286</span> 
+<span class='line'>287</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>288</span> 	if (parseInt(startItem) + pages * page_record_count >= 1){
+<span class='line'>289</span> 		start =	parseInt(startItem) + pages * page_record_count ;
+<span class='line'>290</span> 	} else  {
+<span class='line'>291</span> 		if (parseInt(startItem) + pages * page_record_count + page_record_count - 1 >= 1){
+<span class='line'>292</span> 			start =	1 ;
+<span class='line'>293</span> 		} 
+<span class='line'>294</span> 	}
+<span class='line'>295</span> 	
+<span class='line'>296</span> 	if (start > 0){
+<span class='line'>297</span> 		if (start + page_record_count - 1 &lt;= numItems) {
+<span class='line'>298</span> 			num = page_record_count;
+<span class='line'>299</span> 		} else if (start &lt;= numItems){
+<span class='line'>300</span> 			num = numItems - start;
+<span class='line'>301</span> 		}
+<span class='line'>302</span> 	
+<span class='line'>303</span> 		if (num > 0){
+<span class='line'>304</span> 			$(cmd).closest('.header').find('.start-item').attr('value',start);
+<span class='line'>305</span> 			$(cmd).closest('.header').find('.maximum-items').attr('value',num);
+<span class='line'>306</span> 			
+<span class='line'>307</span> 			reloadPage($(cmd).closest('.cmds-ui-block'));
+<span class='line'>308</span> 		}
+<span class='line'>309</span> 	}
+<span class='line'>310</span> 	*/</span><span class="WHIT">
+<span class='line'>311</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>312</span> 
+<span class='line'>313</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">reloadPage</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>316</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>317</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">get</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">localName</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"body"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="WHIT">		</span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.URL</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>319</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>320</span> </span><span class="WHIT">		</span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parents</span><span class="PUNC">(</span><span class="STRN">'.number'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'href'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>321</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>322</span> 
+<span class='line'>323</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>324</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">startItem</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>325</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>326</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>327</span> </span><span class="WHIT">	</span><span class="COMM">//from paging attributes</span><span class="WHIT">
+<span class='line'>328</span> </span><span class="WHIT">	</span><span class="NAME">startItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.start-item'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>329</span> </span><span class="WHIT">	</span><span class="NAME">maximumItems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.header'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.maximum-items'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>330</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>331</span> 
+<span class='line'>332</span> </span><span class="WHIT">	</span><span class="COMM">// create the uri params</span><span class="WHIT">
+<span class='line'>333</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>334</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">uri.indexOf</span><span class="PUNC">(</span><span class="STRN">"startItem="</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>335</span> </span><span class="WHIT">		 </span><span class="NAME">temp</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">uri.substring</span><span class="PUNC">(</span><span class="NAME">uri.indexOf</span><span class="PUNC">(</span><span class="STRN">"startItem="</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>336</span> </span><span class="WHIT">		 </span><span class="NAME">len</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">temp.split</span><span class="PUNC">(</span><span class="STRN">"&"</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>337</span> </span><span class="WHIT">		 </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">uri.replace</span><span class="PUNC">(</span><span class="NAME">uri.substr</span><span class="PUNC">(</span><span class="NAME">uri.indexOf</span><span class="PUNC">(</span><span class="STRN">"&startItem="</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="NAME">len</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="STRN">''</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>338</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>339</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>340</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">uri.indexOf</span><span class="PUNC">(</span><span class="STRN">"maximumItems="</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>341</span> </span><span class="WHIT">		 </span><span class="NAME">temp</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">uri.substring</span><span class="PUNC">(</span><span class="NAME">uri.indexOf</span><span class="PUNC">(</span><span class="STRN">"maximumItems="</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>342</span> </span><span class="WHIT">		 </span><span class="NAME">len</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">temp.split</span><span class="PUNC">(</span><span class="STRN">"&"</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>343</span> </span><span class="WHIT">		 </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">uri.replace</span><span class="PUNC">(</span><span class="NAME">uri.substr</span><span class="PUNC">(</span><span class="NAME">uri.indexOf</span><span class="PUNC">(</span><span class="STRN">"&maximumItems="</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="NAME">len</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="STRN">''</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>344</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>345</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>346</span> </span><span class="WHIT">	</span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&startItem="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">startItem</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&maximumItems="</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">maximumItems</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>347</span> 
+<span class='line'>348</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">get</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">localName</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"body"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>349</span> </span><span class="WHIT">		</span><span class="NAME">location.href</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>350</span> </span><span class="COMM">//		window.open(uri);</span><span class="WHIT">
+<span class='line'>351</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>352</span> </span><span class="WHIT">		</span><span class="COMM">//remove old content</span><span class="WHIT">
+<span class='line'>353</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>354</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>355</span> </span><span class="WHIT">		</span><span class="COMM">//load new content</span><span class="WHIT">
+<span class='line'>356</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">detail</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">load</span><span class="PUNC">(</span><span class="NAME">uri</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>357</span> </span><span class="WHIT">			</span><span class="NAME">handleUIBlock</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>358</span> </span><span class="WHIT">			</span><span class="NAME">addPaging</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'.cmds-ui-block'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>359</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>360</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>361</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>362</span> 
+<span class='line'>363</span> 
+<span class='line'>364</span> 
+<span class='line'>365</span> </span><span class="COMM">//TOOLTIP</span><span class="WHIT">
+<span class='line'>366</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tooltiptable</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>367</span> 
+<span class='line'>368</span> </span><span class="COMM">/** 
+<span class='line'>369</span>  * Helper-object for displaying tooltips
+<span class='line'>370</span>  * @constructor
+<span class='line'>371</span>  */</span><span class="WHIT">
+<span class='line'>372</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tooltip</span><span class="PUNC">=</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>373</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'tt'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>374</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">top</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>375</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">left</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>376</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">maxw</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">300</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>377</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">speed</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>378</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">timer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">20</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>379</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">endalpha</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">95</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>380</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">alpha</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>381</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">tt</span><span class="PUNC">,</span><span class="NAME">t</span><span class="PUNC">,</span><span class="NAME">c</span><span class="PUNC">,</span><span class="NAME">b</span><span class="PUNC">,</span><span class="NAME">h</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>382</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">ie</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.all</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>383</span> </span><span class="WHIT">	 </span><span class="KEYW">return</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>384</span> 
+<span class='line'>385</span> </span><span class="WHIT">	</span><span class="NAME">show</span><span class="PUNC">:</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">v</span><span class="PUNC">,</span><span class="NAME">w</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>386</span> </span><span class="WHIT">		 </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">tt</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>387</span> </span><span class="WHIT">			 </span><span class="NAME">tt</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.createElement</span><span class="PUNC">(</span><span class="STRN">'div'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>388</span> </span><span class="WHIT">			 </span><span class="NAME">tt.setAttribute</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">,</span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>389</span> </span><span class="WHIT">			 </span><span class="NAME">document.body.appendChild</span><span class="PUNC">(</span><span class="NAME">tt</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>390</span> </span><span class="WHIT">			 </span><span class="NAME">tt.style.opacity</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>391</span> </span><span class="WHIT">			 </span><span class="NAME">tt.style.filter</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'alpha(opacity=0)'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>392</span> </span><span class="WHIT">			 </span><span class="NAME">document.onmousemove</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.pos</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>393</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>394</span> </span><span class="WHIT">		 </span><span class="NAME">tt.style.zIndex</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"1000"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>395</span> </span><span class="WHIT">		</span><span class="NAME">tt.style.display</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'block'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>396</span> </span><span class="WHIT">		</span><span class="NAME">tt.innerHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">v</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>397</span> </span><span class="WHIT">		</span><span class="NAME">tt.style.width</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">w</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="NAME">w</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'px'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'auto'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>398</span> 
+<span class='line'>399</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="PUNC">(</span><span class="PUNC">!</span><span class="NAME">w</span><span class="WHIT">  </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">ie</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>400</span> </span><span class="WHIT">			 </span><span class="NAME">tt.style.width</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">tt.offsetWidth</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>401</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>402</span> 
+<span class='line'>403</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">tt.offsetWidth</span><span class="WHIT">  </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NAME">maxw</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="NAME">tt.style.width</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">maxw</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'px'</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>404</span> 
+<span class='line'>405</span> </span><span class="WHIT">			</span><span class="NAME">h</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">tt.offsetHeight</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">top</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>406</span> </span><span class="WHIT">			</span><span class="NAME">clearInterval</span><span class="PUNC">(</span><span class="NAME">tt.timer</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>407</span> </span><span class="WHIT">			</span><span class="NAME">tt.timer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="NAME">setInterval</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="NAME">tooltip.fade</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="NAME">timer</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>408</span> </span><span class="WHIT">		</span><span class="COMM">//$('body').find('.ac_results').css({'z-index' : '1000'});</span><span class="WHIT">
+<span class='line'>409</span> </span><span class="WHIT">	  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>410</span> </span><span class="WHIT">	  </span><span class="WHIT">
+<span class='line'>411</span> </span><span class="WHIT">	  </span><span class="NAME">pos</span><span class="PUNC">:</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>412</span> </span><span class="WHIT">	   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">u</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ie</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="NAME">event.clientY</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">document.documentElement.scrollTop</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">e.pageY</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>413</span> </span><span class="WHIT">	   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">l</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ie</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="NAME">event.clientX</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">document.documentElement.scrollLeft</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">e.pageX</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>414</span> </span><span class="WHIT">	   </span><span class="NAME">tt.style.top</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">u</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">h</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'px'</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//(u - h) + 'px';</span><span class="WHIT">
+<span class='line'>415</span> </span><span class="WHIT">	   </span><span class="NAME">tt.style.left</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">l</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">left</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'px'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>416</span> </span><span class="WHIT">	  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>417</span> </span><span class="WHIT">	  </span><span class="WHIT">
+<span class='line'>418</span> </span><span class="WHIT">	  </span><span class="NAME">fade</span><span class="PUNC">:</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">d</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>419</span> </span><span class="WHIT">	   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">alpha</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>420</span> </span><span class="WHIT">	   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">endalpha</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">d</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">d</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>421</span> </span><span class="WHIT">	    </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">speed</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>422</span> </span><span class="WHIT">	   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">endalpha</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">speed</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">d</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>423</span> </span><span class="WHIT">	    </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">endalpha</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">a</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>424</span> </span><span class="WHIT">	   </span><span class="PUNC">}</span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">alpha</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">speed</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">d</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>425</span> </span><span class="WHIT">	     </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">a</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>426</span> </span><span class="WHIT">	   </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>427</span> </span><span class="WHIT">	   </span><span class="NAME">alpha</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">d</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>428</span> </span><span class="WHIT">	   </span><span class="NAME">tt.style.opacity</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">alpha</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="PUNC">.</span><span class="NUMB">01</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>429</span> </span><span class="WHIT">	   </span><span class="NAME">tt.style.filter</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'alpha(opacity='</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">alpha</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">')'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>430</span> </span><span class="WHIT">	  </span><span class="PUNC">}</span><span class="KEYW">else</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>431</span> </span><span class="WHIT">	    </span><span class="NAME">clearInterval</span><span class="PUNC">(</span><span class="NAME">tt.timer</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>432</span> </span><span class="WHIT">	     </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">d</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="NAME">tt.style.display</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'none'</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>433</span> </span><span class="WHIT">	  </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>434</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>435</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>436</span> </span><span class="WHIT">	 </span><span class="NAME">hide</span><span class="PUNC">:</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>437</span> </span><span class="WHIT">		 </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">tt</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>438</span> </span><span class="WHIT">			 </span><span class="NAME">clearInterval</span><span class="PUNC">(</span><span class="NAME">tt.timer</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>439</span> </span><span class="WHIT">			 </span><span class="NAME">tt.timer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">setInterval</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="NAME">tooltip.fade</span><span class="PUNC">(</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="NAME">timer</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>440</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>441</span> </span><span class="WHIT">	  </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>442</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>443</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>444</span> 
+<span class='line'>445</span> 
+<span class='line'>446</span> </span><span class="WHIT">	</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">notifyUser</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">msg</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>447</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">notifymessage</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">NotifyMessage</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="NAME">msg</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>448</span> </span><span class="WHIT">		</span><span class="NAME">notifyset.add</span><span class="PUNC">(</span><span class="NAME">notifymessage</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>449</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>450</span> 
+<span class='line'>451</span> </span><span class="WHIT">	</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">notifyUser</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">msg</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>452</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>453</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="PUNC">==</span><span class="STRN">'debug'</span><span class="WHIT"> </span><span class="PUNC">&</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="PUNC">(</span><span class="KEYW">typeof</span><span class="WHIT"> </span><span class="NAME">console</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"undefined"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>454</span> </span><span class="WHIT">				</span><span class="NAME">console.log</span><span class="PUNC">(</span><span class="NAME">msg</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>455</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>456</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">notifymessage</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">NotifyMessage</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="NAME">msg</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>457</span> </span><span class="WHIT">				</span><span class="NAME">notifyset.add</span><span class="PUNC">(</span><span class="NAME">notifymessage</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>458</span> </span><span class="WHIT">		  </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>459</span> </span><span class="WHIT">	</span><span class="PUNC">}</span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_load.js.html	(revision 1516)
@@ -0,0 +1,519 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="WHIT">
+<span class='line'>  2</span> </span><span class="COMM">/**
+<span class='line'>  3</span>  * @fileOverview  The file contains app load functionality. The load functions actualy used provides client side model building together with
+<span class='line'>  4</span>  * ui building. The load module is independant from app pane-layout and all ui-layout functionality.
+<span class='line'>  5</span>  *
+<span class='line'>  6</span>  * @author 
+<span class='line'>  7</span>  * @version 
+<span class='line'>  8</span>  */</span><span class="WHIT">
+<span class='line'>  9</span> 
+<span class='line'> 10</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 11</span> </span><span class="WHIT">	</span><span class="COMM">//loadWelcomeMessage();</span><span class="WHIT">
+<span class='line'> 12</span> </span><span class="WHIT">	</span><span class="NAME">loadTooltiptable</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 13</span> </span><span class="WHIT">	</span><span class="NAME">loadWorkspaceProfiles</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 14</span> </span><span class="WHIT">	</span><span class="COMM">//loadCollections(); // loaded after WorkspaceProfile is loaded</span><span class="WHIT">
+<span class='line'> 15</span> </span><span class="WHIT">	</span><span class="COMM">//loadTerms(); 		 // loaded after WorkspaceProfile is loaded</span><span class="WHIT">
+<span class='line'> 16</span> </span><span class="WHIT">	</span><span class="COMM">//loadTermsAutocomplete(); //handleQueryInput();</span><span class="WHIT">
+<span class='line'> 17</span> </span><span class="WHIT">	</span><span class="COMM">//createTooltip()</span><span class="WHIT">
+<span class='line'> 18</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT">	</span><span class="COMM">//loadComponentsRegistry();	</span><span class="WHIT">
+<span class='line'> 20</span> </span><span class="WHIT">	</span><span class="COMM">//loadDCR();</span><span class="WHIT">
+<span class='line'> 21</span> 
+<span class='line'> 22</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 23</span> 
+<span class='line'> 24</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadTooltiptable</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 25</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 26</span> </span><span class="WHIT">	 </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">window.location.pathname</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"static/info.xml"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="WHIT">	 </span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">	 </span><span class="NAME">$.get</span><span class="PUNC">(</span><span class="NAME">uri</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">textStatus</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="WHIT">	 	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'#commands'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'dt'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="WHIT">	 		</span><span class="NAME">tooltiptable</span><span class="PUNC">[</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">	 		</span><span class="COMM">//$(this).next('dd').text();</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">	 	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">	 </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="STRN">'html'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 34</span> 
+<span class='line'> 35</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 36</span> </span><span class="COMM">/*
+<span class='line'> 37</span> function loadAdminFile(){
+<span class='line'> 38</span> 	json_admin = {'Admin':{'maxqid':'0','QueryIndices':'null'}};
+<span class='line'> 39</span> 	
+<span class='line'> 40</span> 	jQuery.getJSON("/MDService2/workspaceprofile/admin",function(data){
+<span class='line'> 41</span> 			json_admin = preprocessJSON(data);
+<span class='line'> 42</span> 	});
+<span class='line'> 43</span> }
+<span class='line'> 44</span> */</span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadWorkspaceProfiles</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 46</span> </span><span class="WHIT">	</span><span class="COMM">//empty json</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="WHIT">	</span><span class="NAME">jsonw</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">'WorkspaceProfile'</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="STRN">'CustomTermsets'</span><span class="PUNC">:</span><span class="STRN">'null'</span><span class="PUNC">,</span><span class="STRN">'Termsets'</span><span class="PUNC">:</span><span class="STRN">'null'</span><span class="PUNC">,</span><span class="STRN">'Repositories'</span><span class="PUNC">:</span><span class="STRN">'null'</span><span class="PUNC">,</span><span class="STRN">'Querysets'</span><span class="PUNC">:</span><span class="STRN">'null'</span><span class="PUNC">,</span><span class="STRN">'created'</span><span class="PUNC">:</span><span class="STRN">'null'</span><span class="PUNC">,</span><span class="STRN">'lastchanged'</span><span class="PUNC">:</span><span class="STRN">'null'</span><span class="PUNC">,</span><span class="STRN">'profilename'</span><span class="PUNC">:</span><span class="STRN">'null'</span><span class="PUNC">}</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 48</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 49</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 50</span> </span><span class="WHIT">	</span><span class="COMM">// USER WORKSPACEPROFILE</span><span class="WHIT">
+<span class='line'> 51</span> </span><span class="WHIT">	</span><span class="NAME">jQuery.getJSON</span><span class="PUNC">(</span><span class="STRN">"/MDService2/workspaceprofile/user"</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 52</span> </span><span class="WHIT">		</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">[</span><span class="STRN">'WorkspaceProfile'</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="WHIT">				</span><span class="NAME">jsonw</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">preprocessJSON</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'> 55</span> </span><span class="WHIT">				</span><span class="NAME">jQuery.getJSON</span><span class="PUNC">(</span><span class="STRN">"/MDService2/workspaceprofile/server"</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 56</span> </span><span class="WHIT">					</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">[</span><span class="STRN">'WorkspaceProfile'</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">							</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">json</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">preprocessJSON</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">							</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#serverqs"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"data"</span><span class="PUNC">,</span><span class="NAME">JSON.stringify</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="WHIT">							</span><span class="NAME">loadQuerysets</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">"server"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="WHIT">							</span><span class="NAME">loadRepositories</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Repositories"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 61</span> </span><span class="WHIT">							</span><span class="NAME">loadCollections</span><span class="PUNC">(</span><span class="KEYW">true</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'> 62</span> </span><span class="WHIT">							</span><span class="NAME">loadTerms</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 63</span> </span><span class="WHIT">							</span><span class="NAME">loadTermsAutocomplete</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 64</span> </span><span class="WHIT">							</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 65</span> </span><span class="WHIT">							</span><span class="WHIT">
+<span class='line'> 66</span> </span><span class="WHIT">							</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 68</span> 
+<span class='line'> 69</span> </span><span class="WHIT">				</span><span class="NAME">loadQuerysets</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">"user"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">				</span><span class="COMM">//loadTermsets(jsonw["WorkspaceProfile"]["CustomTermsets"]);</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="WHIT">				</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 75</span> 
+<span class='line'> 76</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 77</span> 
+<span class='line'> 78</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadCollections</span><span class="PUNC">(</span><span class="NAME">ini</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 79</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coll_uri</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'collections'</span><span class="PUNC">,</span><span class="STRN">'htmllist?repository='</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 80</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#collections"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">jstree</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">		</span><span class="STRN">"html_data"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="WHIT">			</span><span class="STRN">"ajax"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="WHIT">				</span><span class="STRN">"url"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">coll_uri</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 85</span> </span><span class="WHIT">				</span><span class="STRN">"data"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">n</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 86</span> </span><span class="WHIT">					</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">  </span><span class="COMM">//id : n.attr ? n.attr("id") : 0 ,</span><span class="WHIT">
+<span class='line'> 87</span> </span><span class="WHIT">							  </span><span class="NAME">collection</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">n.attr</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="NAME">n.attr</span><span class="PUNC">(</span><span class="STRN">"handle"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 88</span> </span><span class="WHIT">							  </span><span class="NAME">maxdepth</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">n.attr</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 89</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 90</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 91</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 92</span> </span><span class="WHIT">		</span><span class="NAME">types</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 93</span> </span><span class="WHIT">			</span><span class="COMM">// the default type</span><span class="WHIT">
+<span class='line'> 94</span> </span><span class="WHIT">			</span><span class="STRN">"default"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 95</span> </span><span class="WHIT">				</span><span class="STRN">"max_children"</span><span class="WHIT">	</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="WHIT">				</span><span class="STRN">"max_depth"</span><span class="WHIT">		</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">				</span><span class="STRN">"valid_children"</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"all"</span><span class="WHIT">
+<span class='line'> 98</span> 
+<span class='line'> 99</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>100</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>101</span> 
+<span class='line'>102</span> </span><span class="WHIT">		</span><span class="STRN">"plugins"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">"themes"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"html_data"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"ui"</span><span class="WHIT"> </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"checkbox"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"types"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"search"</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>103</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>104</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>105</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">bind</span><span class="PUNC">(</span><span class="STRN">'loaded.jstree reopen.jstree'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="PUNC">)</span><span class="WHIT">
+<span class='line'>106</span> </span><span class="WHIT">			</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>107</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">(</span><span class="NAME">event.type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"loaded"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="PUNC">(</span><span class="NAME">ini</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>108</span> </span><span class="WHIT">					</span><span class="NAME">loadQueryFromUriParams</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>109</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>110</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>111</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dataelems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">data.inst.get_container</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>112</span> </span><span class="WHIT">				</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">dataelems</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>113</span> </span><span class="WHIT">					</span><span class="COMM">//data.inst.get_container().unblock();		</span><span class="WHIT">
+<span class='line'>114</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>115</span> 
+<span class='line'>116</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">bind</span><span class="PUNC">(</span><span class="STRN">"change_state.jstree"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dataelems</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">data.inst.get_container</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">!</span><span class="NAME">local_collections</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>120</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collections</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>121</span> </span><span class="WHIT">			</span><span class="COMM">//collections.splice(0, collections.length);</span><span class="WHIT">
+<span class='line'>122</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>123</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.jstree-checked'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">!</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hasClass</span><span class="PUNC">(</span><span class="STRN">"jstree-checked"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">					</span><span class="COMM">//notifyUser("selection...:" + index + ":" + String.trim($(this).children('a').text())  + $(this).attr("handle"),'debug');	</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">					</span><span class="NAME">coll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Collection</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"handle"</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">String.trim</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="WHIT">					</span><span class="NAME">collections</span><span class="PUNC">[</span><span class="NAME">collections.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">coll</span><span class="PUNC">;</span><span class="WHIT">						</span><span class="WHIT">
+<span class='line'>128</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>129</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>131</span> </span><span class="WHIT">			</span><span class="NAME">collections_widget.load</span><span class="PUNC">(</span><span class="NAME">collections</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>132</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>135</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">bind</span><span class="PUNC">(</span><span class="STRN">"search.jstree"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">  </span><span class="WHIT">
+<span class='line'>136</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">data.rslt.nodes.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#collections'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">jstree</span><span class="PUNC">(</span><span class="STRN">"checkbox.check_node"</span><span class="PUNC">,</span><span class="NAME">data.rslt.nodes</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>139</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>140</span> </span><span class="WHIT">		</span><span class="COMM">//alert("Found " + data.rslt.nodes.length + " nodes matching '" + data.rslt.str + "'.");  </span><span class="WHIT">
+<span class='line'>141</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">  </span><span class="WHIT">
+<span class='line'>142</span> 
+<span class='line'>143</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>144</span> 
+<span class='line'>145</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">updateCollectionTree</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>146</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>147</span> 	local_collections = true;
+<span class='line'>148</span> 	var cc = $('#collections').jstree("get_checked");
+<span class='line'>149</span> 	$('#collections').jstree("uncheck_all");
+<span class='line'>150</span> 	$.each(collections, function(){
+<span class='line'>151</span> 		$('#collections').jstree("search",this.name);
+<span class='line'>152</span> 	});
+<span class='line'>153</span> 	local_collections = false;
+<span class='line'>154</span> 	*/</span><span class="WHIT">
+<span class='line'>155</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>156</span> 
+<span class='line'>157</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadTerms</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>158</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#model_profiles'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">load</span><span class="PUNC">(</span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'terms'</span><span class="PUNC">,</span><span class="STRN">'htmlselect'</span><span class="PUNC">,</span><span class="NAME">actions.terms.current</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'?repository='</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>159</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>160</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#terms-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'change'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>161</span> </span><span class="WHIT">		</span><span class="COMM">//notifyUser(this.value,'debug');</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="WHIT">		</span><span class="NAME">update</span><span class="PUNC">(</span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'terms'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'htmllist'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.value</span><span class="PUNC">)</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'?maxdepth='</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">actions.terms.maxdepth</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&repository='</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>163</span> </span><span class="WHIT">				</span><span class="STRN">'#terms-select'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'#model_terms'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>164</span> </span><span class="WHIT">					</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>165</span> </span><span class="WHIT">						</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#model_terms .treeview"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">treeview</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>166</span> </span><span class="WHIT">							</span><span class="NAME">animated</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"fast"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>167</span> </span><span class="WHIT">							</span><span class="NAME">collapsed</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="WHIT">
+<span class='line'>168</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>169</span> </span><span class="WHIT">						</span><span class="COMM">//notifyUser($("#model_terms .treeview"),'debug');</span><span class="WHIT">
+<span class='line'>170</span> </span><span class="WHIT">						</span><span class="NAME">notifyUser</span><span class="PUNC">(</span><span class="STRN">"loaded: #model_terms .treeview"</span><span class="PUNC">,</span><span class="STRN">'debug'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>171</span> </span><span class="WHIT">						</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="WHIT">						</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>173</span> </span><span class="WHIT">			</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>174</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>175</span> </span><span class="WHIT">	</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>176</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>177</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#terms .cmd_filter'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>178</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">term</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'span.data'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>179</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'.searchtype_text'</span><span class="PUNC">,</span><span class="STRN">'#search'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>180</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">t</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#query_area'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>181</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#query_area'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">t</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" "</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">term</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>182</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>183</span> </span><span class="WHIT">			</span><span class="NAME">searchclauseset.updatedata</span><span class="PUNC">(</span><span class="NAME">term</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>184</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>185</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>186</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>187</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>188</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#terms .cmd_columns'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>189</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">term</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'span.data'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>190</span> </span><span class="WHIT">		</span><span class="NAME">columns_widget.add</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">term</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>191</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>192</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>193</span> 
+<span class='line'>194</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>195</span> 
+<span class='line'>196</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadRepositories</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>197</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>198</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">$select</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>199</span> </span><span class="WHIT">	</span><span class="NAME">$select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#repositories_select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>200</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>201</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">	</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">String</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>207</span> </span><span class="WHIT">		    </span><span class="NAME">$select.append</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Option</span><span class="PUNC">(</span><span class="NAME">this.name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.id</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>208</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>209</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>210</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>211</span> </span><span class="WHIT">	</span><span class="COMM">// select first</span><span class="WHIT">
+<span class='line'>212</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">url_params</span><span class="PUNC">[</span><span class="STRN">"repository"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>213</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">r</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">url_params</span><span class="PUNC">[</span><span class="STRN">"repository"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>214</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">r</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"true"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>215</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>216</span> </span><span class="WHIT">		</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">first</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"true"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>217</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>218</span> 
+<span class='line'>219</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>220</span> </span><span class="WHIT">	</span><span class="NAME">$select.change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>221</span> </span><span class="WHIT">		</span><span class="NAME">loadCollections</span><span class="PUNC">(</span><span class="KEYW">false</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>222</span> </span><span class="WHIT">		</span><span class="NAME">loadTerms</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>223</span> </span><span class="WHIT">		</span><span class="NAME">loadTermsAutocomplete</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>224</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#model_profiles'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">load</span><span class="PUNC">(</span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'terms'</span><span class="PUNC">,</span><span class="STRN">'htmlselect'</span><span class="PUNC">,</span><span class="NAME">actions.terms.current</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'?repository='</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>226</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>227</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>228</span> 
+<span class='line'>229</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadTermsAutocomplete</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>231</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">elem</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>232</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#terms_autocomplete'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>233</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#terms_autocomplete'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">css</span><span class="PUNC">(</span><span class="STRN">'display'</span><span class="PUNC">,</span><span class="STRN">'none'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>234</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#terms_autocomplete'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">load</span><span class="PUNC">(</span><span class="NAME">link</span><span class="PUNC">(</span><span class="STRN">'terms_autocomplete'</span><span class="PUNC">,</span><span class="STRN">'autocomplete/?q=all&repository='</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">getSelectedRepository</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>235</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'term'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">index</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>236</span> </span><span class="WHIT">			</span><span class="NAME">elem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"name"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>237</span> </span><span class="WHIT">			</span><span class="NAME">element_autocomplete</span><span class="PUNC">[</span><span class="NAME">index</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">elem</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>238</span> </span><span class="WHIT">			</span><span class="NAME">elements_hashtable</span><span class="PUNC">[</span><span class="NAME">elem</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">html</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>239</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>240</span> </span><span class="WHIT">		</span><span class="COMM">// add autocomplete 's</span><span class="WHIT">
+<span class='line'>241</span> </span><span class="WHIT">		</span><span class="NAME">searchclauseset.initAutocomplete</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>242</span> </span><span class="WHIT">		</span><span class="NAME">columns_widget.initAutocomplete</span><span class="PUNC">(</span><span class="NAME">element_autocomplete</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>243</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>245</span> 
+<span class='line'>246</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">appendQueryUI</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">,</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">del</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>248</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>249</span> </span><span class="WHIT">	</span><span class="COMM">//var ul;</span><span class="WHIT">
+<span class='line'>250</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>251</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>252</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'userqs'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>253</span> </span><span class="WHIT">		</span><span class="NAME">del</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'&lt;span class="cmd cmd_del" >&lt;xsl:text> &lt;/xsl:text>&lt;/span>'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>254</span> </span><span class="WHIT">		</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">name:&lt;/span>&lt;input type="text" class="input-name" value="'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">json.name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'">&lt;/div>'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>255</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>256</span> </span><span class="WHIT">		</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">name:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">json.name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>257</span> </span><span class="WHIT">		</span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>258</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>259</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>260</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">timestr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>261</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.time</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>262</span> </span><span class="WHIT">		</span><span class="NAME">timestr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json.time</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>263</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>264</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json.squerystring</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>265</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>266</span> </span><span class="WHIT">		</span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">qq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json.querystring</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">qq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"[NULL]"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">		</span><span class="NAME">qq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'&lt;div class="cmds-elem-plus" >&lt;span class="cmd cmd_load">&lt;/span>&lt;span class="detail-caller-inline" >&lt;a href="'</span><span class="PUNC">+</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'_'</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">+</span><span class="STRN">'" >'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT">	</span><span class="NAME">json.name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;/a>&lt;/span>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>274</span> </span><span class="WHIT">	</span><span class="NAME">del</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>275</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;span class="cmd cmd_publish">&lt;/span>&lt;div class="detail" >'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">	</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">squery:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">squery</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">query:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">Query.simplequerystring</span><span class="PUNC">(</span><span class="NAME">qq</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">collections:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">Query.collectiontext</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">columns:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">Query.columnstext</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">time:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">timestr</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT">	</span><span class="COMM">//'&lt;div class="cmds-elem-prop">&lt;span class="label">startItem:&lt;/span>&lt;span class="value">' + Query.startItem + '&lt;/span>&lt;/div>' +</span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT">	</span><span class="COMM">//'&lt;div class="cmds-elem-prop">&lt;span class="label">maxItems:&lt;/span>&lt;span class="value">' + Query.maximumItems + '&lt;/span>&lt;/div>' +</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT">	</span><span class="COMM">//'&lt;div class="cmds-elem-prop">&lt;span class="label">repository:&lt;/span>&lt;span class="value">' + Query.repository + '&lt;/span>&lt;/div>' +</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">bookmark:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">json.bookmark</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>286</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;div class="cmds-elem-prop">&lt;span class="label">options:&lt;/span>&lt;span class="value">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">Query.optionstext</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="STRN">'&lt;/span>&lt;/div>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>287</span> </span><span class="WHIT">	</span><span class="STRN">'&lt;/div>'</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>288</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>289</span> </span><span class="WHIT">	</span><span class="COMM">//dt = Date.parse('2010-10-18, 10:06 AM'); dt.toString('dd/mm/yyyy HH:mm:ss GMT') </span><span class="WHIT">
+<span class='line'>290</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>291</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>292</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">query</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Query</span><span class="PUNC">(</span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>293</span> </span><span class="WHIT">	</span><span class="NAME">query.load</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>294</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"[href='"</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"_"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"']"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.cmds-elem-plus'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">data</span><span class="PUNC">(</span><span class="STRN">'query'</span><span class="PUNC">,</span><span class="NAME">query</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>295</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.detail'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">css</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="STRN">'z-index'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'1000'</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>296</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>297</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.input-name'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">keydown</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ev</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>298</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">evStop</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>299</span> </span><span class="WHIT">			</span><span class="NAME">ev.stopPropagation</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>300</span> </span><span class="WHIT">			</span><span class="NAME">ev.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>301</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>302</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">ev.which</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NUMB">13</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>303</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#qts_select option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>304</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>305</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parent</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'a'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"href"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>306</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">str.substring</span><span class="PUNC">(</span><span class="NUMB">7</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>307</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>308</span> </span><span class="WHIT">			</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">iq</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>309</span> </span><span class="WHIT">			</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>310</span> </span><span class="WHIT">			</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>311</span> </span><span class="WHIT">			</span><span class="NAME">evStop</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>312</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>313</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT">	</span><span class="NAME">createTooltip</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>316</span> 
+<span class='line'>317</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">createQueriesUI</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>319</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json.Queries</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>320</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json.Queries</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>321</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">this</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>322</span> </span><span class="WHIT">				</span><span class="NAME">appendQueryUI</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">,</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>323</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>324</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>325</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>326</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>327</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>328</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">loadQuerysets</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>329</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>330</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">$select</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>331</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"user"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>332</span> </span><span class="WHIT">		</span><span class="NAME">$select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>333</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>334</span> </span><span class="WHIT">		</span><span class="NAME">$select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#serverqts_select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>335</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>336</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>337</span> </span><span class="WHIT">	</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>338</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>339</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">String</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>340</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>341</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>342</span> </span><span class="WHIT">			</span><span class="COMM">//notifyUser(i + ',' + this.name + ',' + this.created,'debug');</span><span class="WHIT">
+<span class='line'>343</span> </span><span class="WHIT">		    </span><span class="NAME">$select.append</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Option</span><span class="PUNC">(</span><span class="NAME">this.name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>344</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>345</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>346</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>347</span> </span><span class="WHIT">		</span><span class="COMM">// find id of selected</span><span class="WHIT">
+<span class='line'>348</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>349</span> </span><span class="WHIT">			</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">first</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"true"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>350</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>351</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>352</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>353</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"user"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>354</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">jsonq</span><span class="PUNC">[</span><span class="STRN">"name"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>355</span> </span><span class="WHIT">				</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#userqueries"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>356</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>357</span> </span><span class="WHIT">				</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#serverqueries"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>358</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>359</span> </span><span class="WHIT">			</span><span class="NAME">createQueriesUI</span><span class="PUNC">(</span><span class="NAME">jsonq</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>360</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>361</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>362</span> </span><span class="WHIT">		</span><span class="NAME">$select.change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>363</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>364</span> </span><span class="WHIT">				</span><span class="COMM">// find id of selected</span><span class="WHIT">
+<span class='line'>365</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>366</span> </span><span class="WHIT">				</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsonq</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>367</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>368</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"user"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>369</span> </span><span class="WHIT">					</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#qts_input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">jsonq</span><span class="PUNC">[</span><span class="STRN">"name"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>370</span> </span><span class="WHIT">					</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#userqueries"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>371</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>372</span> </span><span class="WHIT">					</span><span class="NAME">qs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#serverqueries"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>373</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>374</span> </span><span class="WHIT">				</span><span class="NAME">createQueriesUI</span><span class="PUNC">(</span><span class="NAME">jsonq</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">qs</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>375</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>376</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>377</span> </span><span class="WHIT">	     </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>378</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>379</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>380</span> 
+<span class='line'>381</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>382</span> 
+<span class='line'>383</span> 
+<span class='line'>384</span> </span><span class="KEYW">function</span><span class="WHIT">  </span><span class="NAME">preprocessJSON</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>385</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>386</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"QueryIndices"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>387</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">String</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"QueryIndices"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>388</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">QueryIndices</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>389</span> </span><span class="WHIT">					</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"QueryIndices"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>390</span> </span><span class="WHIT">					</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"QueryIndices"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>391</span> </span><span class="WHIT">					</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"QueryIndices"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>392</span> </span><span class="WHIT">					</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"Admin"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"QueryIndices"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>393</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>394</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>395</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>396</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>397</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>398</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>399</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>400</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>401</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">String</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>402</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>403</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>404</span> </span><span class="WHIT">			</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>405</span> </span><span class="WHIT">			</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>406</span> </span><span class="WHIT">			</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>407</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>408</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>409</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>410</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>411</span> </span><span class="WHIT">		    </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.Terms</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>412</span> </span><span class="WHIT">		    	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>413</span> </span><span class="WHIT">				</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>414</span> </span><span class="WHIT">				</span><span class="NAME">this.Terms</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>415</span> </span><span class="WHIT">		    	</span><span class="NAME">this.Terms</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>416</span> </span><span class="WHIT">		    </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>417</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>418</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>419</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>420</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">Querysets</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>421</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>422</span> </span><span class="WHIT">		</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>423</span> </span><span class="WHIT">		</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>424</span> </span><span class="WHIT">		</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>425</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>426</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">String</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>427</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>428</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>429</span> </span><span class="WHIT">		    </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.Queries</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>430</span> </span><span class="WHIT">		    	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>431</span> </span><span class="WHIT">				</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"Queries"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>432</span> </span><span class="WHIT">				</span><span class="NAME">this.Queries</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>433</span> </span><span class="WHIT">		    	</span><span class="NAME">this.Queries</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>434</span> </span><span class="WHIT">		    </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>435</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>436</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>437</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Querysets"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>438</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">String</span><span class="PUNC">(</span><span class="NAME">this.Queries</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>439</span> </span><span class="WHIT">				</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.Queries</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>440</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.collections</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>441</span> </span><span class="WHIT">						</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.collections</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>442</span> </span><span class="WHIT">					    	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"collections"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>443</span> </span><span class="WHIT">							</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"collections"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>444</span> </span><span class="WHIT">							</span><span class="NAME">this.collections</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>445</span> </span><span class="WHIT">					    	</span><span class="NAME">this.collections</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>446</span> </span><span class="WHIT">					    </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>447</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>448</span> </span><span class="WHIT">					</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>449</span> </span><span class="WHIT">						</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.columns</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>450</span> </span><span class="WHIT">					    	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"columns"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>451</span> </span><span class="WHIT">							</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">[</span><span class="STRN">"columns"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"item"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>452</span> </span><span class="WHIT">							</span><span class="NAME">this.columns</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>453</span> </span><span class="WHIT">					    	</span><span class="NAME">this.columns</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jj</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>454</span> </span><span class="WHIT">					    </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>455</span> </span><span class="WHIT">					</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>456</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>457</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>458</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>459</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>460</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>461</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">json</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>462</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>463</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>464</span> 
+<span class='line'>465</span> 
+<span class='line'>466</span> 
+<span class='line'>467</span> 
+<span class='line'>468</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">saveTermset</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">listwidget</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>469</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">terms</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>470</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>471</span> </span><span class="WHIT">	</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">listwidget.widgets</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">elem</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>472</span> </span><span class="WHIT">		</span><span class="NAME">terms</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">elem.name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>473</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>474</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>475</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dt</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>476</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dateFormat</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//dt.toString("dd/mm/yyyy HH:mm:ss");</span><span class="WHIT">
+<span class='line'>477</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsont</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="STRN">"name"</span><span class="PUNC">:</span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"time"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">str_time</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"Terms"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="NAME">terms</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>478</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>479</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>480</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>481</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>482</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>483</span> </span><span class="WHIT">	</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsont</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>484</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>485</span> </span><span class="WHIT">	</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>486</span> </span><span class="WHIT">	</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>487</span> 
+<span class='line'>488</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>489</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">removeTermset</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>490</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>491</span> 
+<span class='line'>492</span> </span><span class="WHIT">	</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NAME">id</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>493</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">+</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>494</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>495</span> 
+<span class='line'>496</span> </span><span class="WHIT">	</span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">CustomTermsets</span><span class="PUNC">[</span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>497</span> </span><span class="WHIT">	</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">size</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>498</span> </span><span class="WHIT">	</span><span class="COMM">// set null string , if 0 </span><span class="WHIT">
+<span class='line'>499</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">size</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>500</span> </span><span class="WHIT">		</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>501</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>502</span> </span><span class="WHIT">	</span><span class="COMM">//saveWorkspace("USER");</span><span class="WHIT">
+<span class='line'>503</span> </span><span class="WHIT">	</span><span class="NAME">Workspace.save</span><span class="PUNC">(</span><span class="STRN">"USER"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>504</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>505</span> 
+<span class='line'>506</span> </span><span class="COMM">/*
+<span class='line'>507</span> function loadWelcomeMessage(){	
+<span class='line'>508</span> 	$('#welcomedetail').load("/MDService2/docs/xml/welcome #welcome", function() { //profile.collections.base_uri,
+<span class='line'>509</span> 		$('#welcome').addClass("ui-helper-reset ui-corner-all ui-widget-content");
+<span class='line'>510</span> 	});
+<span class='line'>511</span> }
+<span class='line'>512</span> */</span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_settings.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_settings.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_ui_settings.js.html	(revision 1516)
@@ -0,0 +1,325 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="WHIT">
+<span class='line'>  2</span> </span><span class="COMM">/**
+<span class='line'>  3</span>  * @fileOverview This file includes avv variables and possibilities of app settings concerned more areas:
+<span class='line'>  4</span>  * data loading  - actions - possible to set details of data loading (uri)
+<span class='line'>  5</span>  * pane structure 
+<span class='line'>  6</span>  *	- layout_settings[pane_name], layoutBaseSettings - sets the properties of particular panes (ui-layout plugin settings )
+<span class='line'>  7</span>  *	- layout_initialisation - structure of particular pane placement
+<span class='line'>  8</span>  * app functionality - blocks_settings - the properties of particular ui blocks (type of detail-window display, commands-TODO)
+<span class='line'>  9</span>  * @author 
+<span class='line'> 10</span>  * @version 
+<span class='line'> 11</span>  */</span><span class="WHIT">
+<span class='line'> 12</span> 
+<span class='line'> 13</span> </span><span class="COMM">//VARIABLES</span><span class="WHIT">
+<span class='line'> 14</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">jsonw</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">json_admin</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 15</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">url_params</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 16</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">local_collections</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 17</span> 
+<span class='line'> 18</span> </span><span class="KEYW">var</span><span class="WHIT">  </span><span class="NAME">element_autocomplete</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Array</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="KEYW">var</span><span class="WHIT">  </span><span class="NAME">elements_hashtable</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 20</span> 
+<span class='line'> 21</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">outerLayout</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">middleLayout</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">innerLayout</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 22</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">block_positions</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"center"</span><span class="PUNC">,</span><span class="STRN">"north"</span><span class="PUNC">,</span><span class="STRN">"south"</span><span class="PUNC">,</span><span class="STRN">"east"</span><span class="PUNC">,</span><span class="STRN">"west"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 23</span> 
+<span class='line'> 24</span> 
+<span class='line'> 25</span> </span><span class="COMM">// LOAD DATA SEETTINGS</span><span class="WHIT">
+<span class='line'> 26</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">actions</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="WHIT">			</span><span class="NAME">base</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">			</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/"</span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="WHIT">		</span><span class="NAME">collections</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">			</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/collections/"</span><span class="PUNC">,</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">			</span><span class="NAME">current</span><span class="PUNC">:</span><span class="STRN">'olac'</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="WHIT">		</span><span class="NAME">elements</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 34</span> </span><span class="WHIT">				</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/element/"</span><span class="PUNC">,</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'> 35</span> </span><span class="WHIT">				</span><span class="NAME">current</span><span class="PUNC">:</span><span class="STRN">''</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 36</span> </span><span class="WHIT">		</span><span class="NAME">terms</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 37</span> </span><span class="WHIT">			</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/terms/"</span><span class="PUNC">,</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">			</span><span class="NAME">current</span><span class="PUNC">:</span><span class="STRN">'all'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">			</span><span class="NAME">maxdepth</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NUMB">8</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">		</span><span class="NAME">terms_autocomplete</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 41</span> </span><span class="WHIT">				</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/terms/"</span><span class="PUNC">,</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 42</span> </span><span class="WHIT">				</span><span class="NAME">current</span><span class="PUNC">:</span><span class="STRN">''</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 43</span> </span><span class="WHIT">		</span><span class="NAME">components</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 44</span> </span><span class="WHIT">				</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/comp/"</span><span class="PUNC">,</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="WHIT">				</span><span class="NAME">current</span><span class="PUNC">:</span><span class="STRN">''</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 46</span> </span><span class="WHIT">				</span><span class="COMM">/* current:'cmdi-corpus-aac2'}, */</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="WHIT">		</span><span class="NAME">compprofiles</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 48</span> </span><span class="WHIT">				</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/compprofile/"</span><span class="PUNC">,</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'> 49</span> </span><span class="WHIT">					</span><span class="NAME">current</span><span class="PUNC">:</span><span class="STRN">''</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 50</span> </span><span class="WHIT">					</span><span class="COMM">/* current:'cmdi-corpus-aac2'}, */</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 51</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'> 52</span> </span><span class="WHIT">		</span><span class="NAME">recordset</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="WHIT">				</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/recordset/"</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 55</span> 
+<span class='line'> 56</span> </span><span class="WHIT">		</span><span class="NAME">isocat</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">				</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/datcats/"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">				</span><span class="NAME">current</span><span class="PUNC">:</span><span class="NUMB">5</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="WHIT">		</span><span class="NAME">sru</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 61</span> </span><span class="WHIT">				</span><span class="NAME">base_uri</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"/MDService2/sru/"</span><span class="WHIT">
+<span class='line'> 62</span> </span><span class="WHIT">			 </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'> 63</span> 
+<span class='line'> 64</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 65</span> 
+<span class='line'> 66</span> 
+<span class='line'> 67</span> 
+<span class='line'> 68</span> </span><span class="COMM">// LAYOUT SETTING</span><span class="WHIT">
+<span class='line'> 69</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layoutBaseSettings</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="WHIT">		</span><span class="COMM">//	center__paneSelector:	".base-center" </span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="WHIT">		</span><span class="COMM">//,	west__paneSelector:		".base-west" </span><span class="WHIT">
+<span class='line'> 73</span> </span><span class="WHIT">		</span><span class="COMM">//,	east__paneSelector:		".base-east"</span><span class="WHIT">
+<span class='line'> 74</span> </span><span class="WHIT">		</span><span class="COMM">//,	north__paneSelector:	".base-north" </span><span class="WHIT">
+<span class='line'> 75</span> </span><span class="WHIT">		    </span><span class="NAME">size</span><span class="PUNC">:</span><span class="WHIT">					</span><span class="STRN">"auto"</span><span class="WHIT">
+<span class='line'> 76</span> </span><span class="WHIT">		  </span><span class="PUNC">,</span><span class="WHIT">	</span><span class="NAME">west__size</span><span class="PUNC">:</span><span class="WHIT">				</span><span class="NUMB">140</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 77</span> </span><span class="WHIT">		  </span><span class="PUNC">,</span><span class="WHIT">	</span><span class="NAME">east__size</span><span class="PUNC">:</span><span class="WHIT">				</span><span class="NUMB">280</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="WHIT">		</span><span class="COMM">//,	north__size:			200</span><span class="WHIT">
+<span class='line'> 79</span> </span><span class="WHIT">		  </span><span class="PUNC">,</span><span class="WHIT">	</span><span class="NAME">spacing_open</span><span class="PUNC">:</span><span class="WHIT">			</span><span class="NUMB">4</span><span class="COMM">//8 // ALL panes</span><span class="WHIT">
+<span class='line'> 80</span> </span><span class="WHIT">		</span><span class="COMM">//,	spacing_closed:			12//12 // ALL panes</span><span class="WHIT">
+<span class='line'> 81</span> </span><span class="WHIT">		</span><span class="COMM">//,	north__spacing_open:	0</span><span class="WHIT">
+<span class='line'> 82</span> </span><span class="WHIT">		</span><span class="COMM">//,	south__spacing_closed:	0</span><span class="WHIT">
+<span class='line'> 83</span> </span><span class="WHIT">		</span><span class="COMM">//,	north__maxSize:			200</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="WHIT">		</span><span class="COMM">//,	south__maxSize:			200</span><span class="WHIT">
+<span class='line'> 85</span> </span><span class="WHIT">		  </span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">contentSelector</span><span class="PUNC">:</span><span class="WHIT">		</span><span class="STRN">".content"</span><span class="WHIT">
+<span class='line'> 86</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 87</span> 
+<span class='line'> 88</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layoutSettings_querysearch_advanced</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 89</span> </span><span class="WHIT">		</span><span class="NAME">north__size</span><span class="PUNC">:</span><span class="WHIT">			</span><span class="NUMB">200</span><span class="WHIT">
+<span class='line'> 90</span> </span><span class="WHIT">	</span><span class="PUNC">,</span><span class="WHIT">	</span><span class="NAME">north__spacing_open</span><span class="PUNC">:</span><span class="WHIT">	</span><span class="NUMB">2</span><span class="WHIT">
+<span class='line'> 91</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 92</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layoutSettings_columns_collections</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 93</span> </span><span class="WHIT">		</span><span class="NAME">west__size</span><span class="PUNC">:</span><span class="WHIT">			</span><span class="NUMB">300</span><span class="WHIT">
+<span class='line'> 94</span> </span><span class="WHIT">	</span><span class="PUNC">,</span><span class="WHIT">	</span><span class="NAME">west__spacing_open</span><span class="PUNC">:</span><span class="WHIT">	</span><span class="NUMB">2</span><span class="WHIT">
+<span class='line'> 95</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layoutSettings_coll_block</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">		</span><span class="NAME">north__size</span><span class="PUNC">:</span><span class="WHIT">			</span><span class="NUMB">60</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">	</span><span class="PUNC">,</span><span class="WHIT">	</span><span class="NAME">north__spacing_open</span><span class="PUNC">:</span><span class="WHIT">	</span><span class="NUMB">2</span><span class="WHIT">
+<span class='line'> 99</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>100</span> 
+<span class='line'>101</span> </span><span class="COMM">/* layout sample
+<span class='line'>102</span> var layoutSettings_Outer = {
+<span class='line'>103</span> 		name: "outerLayout" // NO FUNCTIONAL USE, but could be used by custom code to 'identify' a layout
+<span class='line'>104</span> 		// options.defaults apply to ALL PANES - but overridden by pane-specific settings
+<span class='line'>105</span> 	,	defaults: {
+<span class='line'>106</span> 			size:					"auto"
+<span class='line'>107</span> 		,	minSize:				50
+<span class='line'>108</span> 		,	paneClass:				"pane" 		// default = 'ui-layout-pane'
+<span class='line'>109</span> 		,	resizerClass:			"resizer"	// default = 'ui-layout-resizer'
+<span class='line'>110</span> 		,	togglerClass:			"toggler"	// default = 'ui-layout-toggler'
+<span class='line'>111</span> 		,	buttonClass:			"button"	// default = 'ui-layout-button'
+<span class='line'>112</span> 		,	contentSelector:		".content"	// inner div to auto-size so only it scrolls, not the entire pane!
+<span class='line'>113</span> 		,	contentIgnoreSelector:	"span"		// 'paneSelector' for content to 'ignore' when measuring room for content
+<span class='line'>114</span> 		,	togglerLength_open:		35			// WIDTH of toggler on north/south edges - HEIGHT on east/west edges
+<span class='line'>115</span> 		,	togglerLength_closed:	35			// "100%" OR -1 = full height
+<span class='line'>116</span> 		,	hideTogglerOnSlide:		true		// hide the toggler when pane is 'slid open'
+<span class='line'>117</span> 		,	togglerTip_open:		"Close This Pane"
+<span class='line'>118</span> 		,	togglerTip_closed:		"Open This Pane"
+<span class='line'>119</span> 		,	resizerTip:				"Resize This Pane"
+<span class='line'>120</span> 		//	effect defaults - overridden on some panes
+<span class='line'>121</span> 		,	fxName:					"slide"		// none, slide, drop, scale
+<span class='line'>122</span> 		,	fxSpeed_open:			750
+<span class='line'>123</span> 		,	fxSpeed_close:			1500
+<span class='line'>124</span> 		,	fxSettings_open:		{ easing: "easeInQuint" }
+<span class='line'>125</span> 		,	fxSettings_close:		{ easing: "easeOutQuint" }
+<span class='line'>126</span> 	}
+<span class='line'>127</span> 	,	north: {
+<span class='line'>128</span> 			spacing_open:			1			// cosmetic spacing
+<span class='line'>129</span> 		,	togglerLength_open:		0			// HIDE the toggler button
+<span class='line'>130</span> 		,	togglerLength_closed:	-1			// "100%" OR -1 = full width of pane
+<span class='line'>131</span> 		,	resizable: 				false
+<span class='line'>132</span> 		,	slidable:				false
+<span class='line'>133</span> 		//	override default effect
+<span class='line'>134</span> 		,	fxName:					"none"
+<span class='line'>135</span> 		}
+<span class='line'>136</span> 	,	south: {
+<span class='line'>137</span> 			maxSize:				200
+<span class='line'>138</span> 		,	spacing_closed:			0			// HIDE resizer & toggler when 'closed'
+<span class='line'>139</span> 		,	slidable:				false		// REFERENCE - cannot slide if spacing_closed = 0
+<span class='line'>140</span> 		,	initClosed:				true
+<span class='line'>141</span> 		//	CALLBACK TESTING...
+<span class='line'>142</span> 		,	onhide_start:			function () { return confirm("START South pane hide \n\n onhide_start callback \n\n Allow pane to hide?"); }
+<span class='line'>143</span> 		,	onhide_end:				function () { alert("END South pane hide \n\n onhide_end callback"); }
+<span class='line'>144</span> 		,	onshow_start:			function () { return confirm("START South pane show \n\n onshow_start callback \n\n Allow pane to show?"); }
+<span class='line'>145</span> 		,	onshow_end:				function () { alert("END South pane show \n\n onshow_end callback"); }
+<span class='line'>146</span> 		,	onopen_start:			function () { return confirm("START South pane open \n\n onopen_start callback \n\n Allow pane to open?"); }
+<span class='line'>147</span> 		,	onopen_end:				function () { alert("END South pane open \n\n onopen_end callback"); }
+<span class='line'>148</span> 		,	onclose_start:			function () { return confirm("START South pane close \n\n onclose_start callback \n\n Allow pane to close?"); }
+<span class='line'>149</span> 		,	onclose_end:			function () { alert("END South pane close \n\n onclose_end callback"); }
+<span class='line'>150</span> 		//,	onresize_start:			function () { return confirm("START South pane resize \n\n onresize_start callback \n\n Allow pane to be resized?)"); }
+<span class='line'>151</span> 		,	onresize_end:			function () { alert("END South pane resize \n\n onresize_end callback \n\n NOTE: onresize_start event was skipped."); }
+<span class='line'>152</span> 		}
+<span class='line'>153</span> 	,	west: {
+<span class='line'>154</span> 			size:					250
+<span class='line'>155</span> 		,	spacing_closed:			21			// wider space when closed
+<span class='line'>156</span> 		,	togglerLength_closed:	21			// make toggler 'square' - 21x21
+<span class='line'>157</span> 		,	togglerAlign_closed:	"top"		// align to top of resizer
+<span class='line'>158</span> 		,	togglerLength_open:		0			// NONE - using custom togglers INSIDE west-pane
+<span class='line'>159</span> 		,	togglerTip_open:		"Close West Pane"
+<span class='line'>160</span> 		,	togglerTip_closed:		"Open West Pane"
+<span class='line'>161</span> 		,	resizerTip_open:		"Resize West Pane"
+<span class='line'>162</span> 		,	slideTrigger_open:		"click" 	// default
+<span class='line'>163</span> 		,	initClosed:				true
+<span class='line'>164</span> 		//	add 'bounce' option to default 'slide' effect
+<span class='line'>165</span> 		,	fxSettings_open:		{ easing: "easeOutBounce" }
+<span class='line'>166</span> 		}
+<span class='line'>167</span> 	,	east: {
+<span class='line'>168</span> 			size:					250
+<span class='line'>169</span> 		,	spacing_closed:			21			// wider space when closed
+<span class='line'>170</span> 		,	togglerLength_closed:	21			// make toggler 'square' - 21x21
+<span class='line'>171</span> 		,	togglerAlign_closed:	"top"		// align to top of resizer
+<span class='line'>172</span> 		,	togglerLength_open:		0 			// NONE - using custom togglers INSIDE east-pane
+<span class='line'>173</span> 		,	togglerTip_open:		"Close East Pane"
+<span class='line'>174</span> 		,	togglerTip_closed:		"Open East Pane"
+<span class='line'>175</span> 		,	resizerTip_open:		"Resize East Pane"
+<span class='line'>176</span> 		,	slideTrigger_open:		"mouseover"
+<span class='line'>177</span> 		,	initClosed:				true
+<span class='line'>178</span> 		//	override default effect, speed, and settings
+<span class='line'>179</span> 		,	fxName:					"drop"
+<span class='line'>180</span> 		,	fxSpeed:				"normal"
+<span class='line'>181</span> 		,	fxSettings:				{ easing: "" } // nullify default easing
+<span class='line'>182</span> 		}
+<span class='line'>183</span> 	,	center: {
+<span class='line'>184</span> 			paneSelector:			"#mainContent" 			// sample: use an ID to select pane instead of a class
+<span class='line'>185</span> 		,	onresize:				"innerLayout.resizeAll"	// resize INNER LAYOUT when center pane resizes
+<span class='line'>186</span> 		,	minWidth:				200
+<span class='line'>187</span> 		,	minHeight:				200
+<span class='line'>188</span> 		}
+<span class='line'>189</span> };
+<span class='line'>190</span> */</span><span class="WHIT">
+<span class='line'>191</span> 
+<span class='line'>192</span> </span><span class="COMM">//BLOCKS LAYOUT</span><span class="WHIT">
+<span class='line'>193</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">layout_initialisation</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>194</span> </span><span class="WHIT">	</span><span class="NAME">base</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>195</span> </span><span class="WHIT">		</span><span class="NAME">layout</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>196</span> </span><span class="WHIT">		</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'body'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>197</span> </span><span class="WHIT">		</span><span class="NAME">model_settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">layoutBaseSettings</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>198</span> </span><span class="WHIT">		</span><span class="NAME">settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>199</span> </span><span class="WHIT">		</span><span class="NAME">center</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">'base_center_p'</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>200</span> </span><span class="WHIT">		</span><span class="NAME">west</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">'base_west_p'</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>201</span> </span><span class="WHIT">		</span><span class="NAME">east</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">'#detailblock'</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">		</span><span class="NAME">north</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">'#titlelogin'</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">		 </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">	</span><span class="NAME">base_center_p</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">			 </span><span class="NAME">layout</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>207</span> </span><span class="WHIT">			</span><span class="NAME">model_settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">layoutBaseSettings</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>208</span> </span><span class="WHIT">			</span><span class="NAME">settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>209</span> </span><span class="WHIT">			</span><span class="NAME">center</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#querylistblock"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>210</span> </span><span class="WHIT">			</span><span class="NAME">north</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#querysearch"</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>211</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>212</span> </span><span class="WHIT">	</span><span class="NAME">base_west_p</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>213</span> </span><span class="WHIT">			</span><span class="NAME">layout</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>214</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>215</span> </span><span class="WHIT">			</span><span class="NAME">model_settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">layoutBaseSettings</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>216</span> </span><span class="WHIT">			</span><span class="NAME">settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>217</span> </span><span class="WHIT">			</span><span class="NAME">center</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#user-space"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>218</span> </span><span class="WHIT">			</span><span class="NAME">north</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#public-space"</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>219</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>220</span> </span><span class="WHIT">		</span><span class="COMM">//querysearch_advanced: {</span><span class="WHIT">
+<span class='line'>221</span> </span><span class="WHIT">		</span><span class="COMM">//	parent: "",</span><span class="WHIT">
+<span class='line'>222</span> </span><span class="WHIT">		</span><span class="COMM">//	model_settings: layoutBaseSettings,</span><span class="WHIT">
+<span class='line'>223</span> </span><span class="WHIT">		</span><span class="COMM">//	settings: layoutSettings_querysearch_advanced,</span><span class="WHIT">
+<span class='line'>224</span> </span><span class="WHIT">		</span><span class="COMM">//	center: ["columns_collections"],</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">		</span><span class="COMM">//	north: ["#sc-list"]</span><span class="WHIT">
+<span class='line'>226</span> </span><span class="WHIT">		</span><span class="COMM">//},</span><span class="WHIT">
+<span class='line'>227</span> </span><span class="WHIT">		</span><span class="NAME">columns_collections</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>228</span> </span><span class="WHIT">			</span><span class="NAME">layout</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>229</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="WHIT">			</span><span class="NAME">model_settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">layoutBaseSettings</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>231</span> </span><span class="WHIT">			</span><span class="NAME">settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="COMM">//layoutSettings_columns_collections,</span><span class="WHIT">
+<span class='line'>232</span> </span><span class="WHIT">			</span><span class="NAME">west</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"columns_block"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>233</span> </span><span class="WHIT">			</span><span class="NAME">center</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"collections_block"</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>234</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>235</span> </span><span class="WHIT">		</span><span class="NAME">columns_block</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>236</span> </span><span class="WHIT">			</span><span class="NAME">layout</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>237</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>238</span> </span><span class="WHIT">			</span><span class="NAME">model_settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">layoutSettings_coll_block</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>239</span> </span><span class="WHIT">			</span><span class="NAME">settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>240</span> </span><span class="WHIT">			</span><span class="NAME">center</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#terms-block"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>241</span> </span><span class="WHIT">			</span><span class="NAME">north</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#columns-selection"</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>242</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>243</span> </span><span class="WHIT">		</span><span class="NAME">collections_block</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="WHIT">			</span><span class="NAME">layout</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>245</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>246</span> </span><span class="WHIT">			</span><span class="NAME">model_settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">layoutSettings_coll_block</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="WHIT">			</span><span class="NAME">settings</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>248</span> </span><span class="WHIT">			</span><span class="NAME">center</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#collections-block"</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>249</span> </span><span class="WHIT">			</span><span class="NAME">north</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="STRN">"#collections-selection"</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>250</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>251</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>252</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>253</span> </span><span class="COMM">// type = [floating, pane, inline]</span><span class="WHIT">
+<span class='line'>254</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">blocks_settings</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>255</span> </span><span class="WHIT">	</span><span class="NAME">querysearch</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>256</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#querysearch"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>257</span> </span><span class="WHIT">		</span><span class="COMM">//sublayouts: ['querysearch_advanced'],</span><span class="WHIT">
+<span class='line'>258</span> </span><span class="WHIT">		</span><span class="NAME">commands</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>259</span> </span><span class="WHIT">			</span><span class="NAME">block</span><span class="PUNC">:</span><span class="PUNC">[</span><span class="STRN">'cmd_advanced'</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>260</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>261</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>262</span> </span><span class="WHIT">	</span><span class="NAME">querylist</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>263</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#querylistblock"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>264</span> </span><span class="WHIT">		</span><span class="COMM">//sublayouts: [],</span><span class="WHIT">
+<span class='line'>265</span> </span><span class="WHIT">		</span><span class="NAME">commands</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>266</span> </span><span class="WHIT">			</span><span class="NAME">block</span><span class="PUNC">:</span><span class="PUNC">[</span><span class="STRN">'cmd_close'</span><span class="PUNC">]</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">	</span><span class="NAME">collections</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#collections"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT">			</span><span class="NAME">type</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"floating"</span><span class="WHIT">
+<span class='line'>274</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>275</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">	</span><span class="NAME">terms</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#terms"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT">			</span><span class="NAME">type</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"pane"</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT">	</span><span class="NAME">index</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>286</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>287</span> </span><span class="WHIT">			</span><span class="NAME">type</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"pane"</span><span class="WHIT">
+<span class='line'>288</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>289</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>290</span> </span><span class="WHIT">	</span><span class="NAME">values</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>291</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#values"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>292</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>293</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>294</span> </span><span class="WHIT">			</span><span class="NAME">type</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"floating"</span><span class="WHIT">
+<span class='line'>295</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>296</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>297</span> </span><span class="WHIT">	</span><span class="NAME">query</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>298</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#query"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>299</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>300</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>301</span> </span><span class="WHIT">			</span><span class="NAME">type</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"pane"</span><span class="WHIT">
+<span class='line'>302</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>303</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>304</span> </span><span class="WHIT">	</span><span class="NAME">record</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>305</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#records"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>306</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>307</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>308</span> </span><span class="WHIT">			</span><span class="NAME">type</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"pane"</span><span class="WHIT">
+<span class='line'>309</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>310</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>311</span> </span><span class="WHIT">	</span><span class="NAME">info</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>312</span> </span><span class="WHIT">		</span><span class="NAME">id</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"#info"</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>313</span> </span><span class="WHIT">		</span><span class="NAME">detail</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT">			</span><span class="NAME">parent</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="WHIT">			</span><span class="NAME">type</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"pane"</span><span class="WHIT">
+<span class='line'>316</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>317</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="PUNC">}</span><span class="PUNC">;</span></pre></body></html>
Index: MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_widgets.js.html
===================================================================
--- MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_widgets.js.html	(revision 1516)
+++ MDService2/branches/MDService_simple3/docs/jsdocs/symbols/src/C__Users_m_3lingua_clarin_CMDI__repo2_MDService2_WebContent_scripts_mdservice_widgets.js.html	(revision 1516)
@@ -0,0 +1,682 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
+	.KEYW {color: #933;}
+	.COMM {color: #bbb; font-style: italic;}
+	.NUMB {color: #393;}
+	.STRN {color: #393;}
+	.REGX {color: #339;}
+	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
+	</style></head><body><pre><span class='line'>  1</span> <span class="WHIT">
+<span class='line'>  2</span> </span><span class="COMM">/**
+<span class='line'>  3</span>  * @fileOverview The file builds important widgets used in app.
+<span class='line'>  4</span>  * Following widqets are defined:
+<span class='line'>  5</span>  * &lt;dl>
+<span class='line'>  6</span>  * &lt;dt>notifyMessage&lt;/dt>&lt;dd>model and bulding of set of notifyMessages&lt;/dd>
+<span class='line'>  7</span>  * &lt;dt>listWidget&lt;/dt>&lt;dd>the compact widget for creation list of elements, possible add, remove elements, addition through html - input 
+<span class='line'>  8</span>  *	possible to use autocomplete&lt;/dd>
+<span class='line'>  9</span>  * &lt;/dl>
+<span class='line'> 10</span>  * @author 
+<span class='line'> 11</span>  * @version 
+<span class='line'> 12</span>  */</span><span class="WHIT">
+<span class='line'> 13</span> </span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 14</span> </span><span class="COMM">/**
+<span class='line'> 15</span>  * 
+<span class='line'> 16</span>  * @constructor 
+<span class='line'> 17</span>  */</span><span class="WHIT">
+<span class='line'> 18</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">NotifyMessage</span><span class="PUNC">(</span><span class="NAME">dt</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">msg</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 19</span> </span><span class="WHIT">	</span><span class="NAME">this.dt</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dt</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 20</span> </span><span class="WHIT">	</span><span class="NAME">this.msg</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">msg</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 21</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 22</span> 
+<span class='line'> 23</span> </span><span class="NAME">NotifyMessage.prototype.getText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 24</span> 
+<span class='line'> 25</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">month</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.dt.getMonth</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 26</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">day</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.dt.getDate</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 27</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">year</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.dt.getFullYear</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 28</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">h</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.dt.getHours</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 29</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.dt.getMinutes</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 30</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.dt.getSeconds</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 31</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="NAME">year</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">month</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"-"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">day</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">" "</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">h</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">":"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">m</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">":"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">s</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"  :"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.msg</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 32</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">m</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 33</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 34</span> 
+<span class='line'> 35</span> 
+<span class='line'> 36</span> </span><span class="NAME">NotifyMessage.prototype.render</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 37</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;div id='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"' class='notify_wrapper ui-widget' >"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'> 38</span> </span><span class="WHIT">			</span><span class="COMM">//"&lt;span class='notifymessage_id'>" + this.listid + "&lt;/span>: " +</span><span class="WHIT">
+<span class='line'> 39</span> </span><span class="WHIT">			</span><span class="STRN">"&lt;span class='notifymessage'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.getText</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/span>&lt;/div>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 40</span> </span><span class="WHIT">	</span><span class="NAME">addToNotifylist</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 41</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 42</span> </span><span class="WHIT">	</span><span class="NAME">this.container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 43</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.container</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.notifymessage'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">dblclick</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 44</span> </span><span class="WHIT">		</span><span class="NAME">showNotifyMessages</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 45</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 46</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 47</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">notify_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">"#notifylist"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 48</span> 
+<span class='line'> 49</span> </span><span class="COMM">/**
+<span class='line'> 50</span>  * Maintains the notify messages
+<span class='line'> 51</span>  * @constructor 
+<span class='line'> 52</span>  */</span><span class="WHIT">
+<span class='line'> 53</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">notifyset</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">notifymessages</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 54</span> </span><span class="WHIT">	</span><span class="NAME">container</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'#notifylist'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 55</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 56</span> </span><span class="WHIT">	</span><span class="NAME">add</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">notifymessage</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 57</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'> 58</span> </span><span class="WHIT">		</span><span class="NAME">this.notifymessages</span><span class="PUNC">[</span><span class="NAME">this.notifymessages.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">notifymessage</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 59</span> </span><span class="WHIT">		</span><span class="NAME">notifymessage.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"nm"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.notifymessages.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 60</span> </span><span class="WHIT">		</span><span class="NAME">notifymessage.render</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'> 61</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'> 62</span> 
+<span class='line'> 63</span> </span><span class="WHIT">	</span><span class="NAME">remove</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">mid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'> 64</span> </span><span class="WHIT">		 </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.notifymessages.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 65</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.notifymessages</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">mid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 66</span> </span><span class="WHIT">				</span><span class="NAME">this.notifymessages.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 67</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'> 68</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 69</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">mid</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 70</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'> 71</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 72</span> </span><span class="COMM">////////////////////////////////////////////////////////////////////////</span><span class="WHIT">
+<span class='line'> 73</span> 
+<span class='line'> 74</span> </span><span class="COMM">/**
+<span class='line'> 75</span>  * @field 
+<span class='line'> 76</span>  * @memberOf ListWidget
+<span class='line'> 77</span>  */</span><span class="WHIT">
+<span class='line'> 78</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">collections_widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 79</span> 
+<span class='line'> 80</span> </span><span class="COMM">/**
+<span class='line'> 81</span>  * @field 
+<span class='line'> 82</span>  * @memberOf ListWidget
+<span class='line'> 83</span>  */</span><span class="WHIT">
+<span class='line'> 84</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">columns_widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 85</span> 
+<span class='line'> 86</span> </span><span class="COMM">/**
+<span class='line'> 87</span>  * @field 
+<span class='line'> 88</span>  * @memberOf ListWidget
+<span class='line'> 89</span>  */</span><span class="WHIT">
+<span class='line'> 90</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">active_widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 91</span> 
+<span class='line'> 92</span> </span><span class="COMM">/**
+<span class='line'> 93</span>  * A generic widget allowing manipulating lists
+<span class='line'> 94</span>  * @constructor 
+<span class='line'> 95</span>  */</span><span class="WHIT">
+<span class='line'> 96</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">ListWidget</span><span class="PUNC">(</span><span class="NAME">_parent_div</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'> 97</span> </span><span class="WHIT">	</span><span class="NAME">this.parent_div</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">_parent_div</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//$('#columns-widget');	</span><span class="WHIT">
+<span class='line'> 98</span> </span><span class="WHIT">	</span><span class="NAME">this.listwidget_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'> 99</span> </span><span class="WHIT">	</span><span class="NAME">this.widgets</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>100</span> </span><span class="WHIT">	</span><span class="NAME">this.lvid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>101</span> </span><span class="WHIT">	</span><span class="NAME">this.type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>102</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>103</span> </span><span class="WHIT">	</span><span class="COMM">//this.query = undefined;</span><span class="WHIT">
+<span class='line'>104</span> </span><span class="WHIT">	</span><span class="COMM">//this.init();</span><span class="WHIT">
+<span class='line'>105</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>106</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>107</span> </span><span class="COMM">/*
+<span class='line'>108</span> ListWidget.prototype.getType = function(){
+<span class='line'>109</span> 	if (this.type == "collections") {
+<span class='line'>110</span> 		return "cls";
+<span class='line'>111</span> 	}
+<span class='line'>112</span> 	return "col";
+<span class='line'>113</span> };
+<span class='line'>114</span> */</span><span class="WHIT">
+<span class='line'>115</span> </span><span class="NAME">ListWidget.prototype.getTypePrefix</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>116</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">typeprefix</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>117</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"columns"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>118</span> </span><span class="WHIT">		</span><span class="NAME">typeprefix</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="STRN">"col_"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>119</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>120</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"collections"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>121</span> </span><span class="WHIT">		</span><span class="NAME">typeprefix</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="STRN">"cls_"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>122</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>123</span> </span><span class="WHIT">	</span><span class="NAME">typeprefix</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">typeprefix</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.lvid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"_"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>124</span> </span><span class="WHIT">	</span><span class="COMM">//var qid = $(this).closest('.query_wrapper').attr("id");</span><span class="WHIT">
+<span class='line'>125</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">typeprefix</span><span class="PUNC">;</span><span class="COMM">//"col_" + qid + "_";</span><span class="WHIT">
+<span class='line'>126</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>127</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>128</span> 
+<span class='line'>129</span> </span><span class="NAME">ListWidget.prototype.add</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">list_item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>130</span> </span><span class="WHIT">	</span><span class="NAME">this.widgets</span><span class="PUNC">[</span><span class="NAME">this.widgets.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">list_item</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>131</span> </span><span class="WHIT">	</span><span class="NAME">list_item.parent_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getListWidget</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>132</span> </span><span class="WHIT">	</span><span class="NAME">list_item.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getTypePrefix</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.widgets.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>133</span> </span><span class="WHIT">	</span><span class="NAME">list_item.render</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>134</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>135</span> 
+<span class='line'>136</span> </span><span class="NAME">ListWidget.prototype.clear</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>137</span> </span><span class="WHIT">	</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.widgets</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">list_item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>138</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>139</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>140</span> </span><span class="WHIT">	</span><span class="NAME">this.widgets.splice</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.widgets.length</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>141</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>142</span> 
+<span class='line'>143</span> </span><span class="NAME">ListWidget.prototype.remove</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>144</span> </span><span class="WHIT">	</span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.widgets.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>145</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.widgets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">id</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>146</span> </span><span class="WHIT">			</span><span class="COMM">//if (this.type == "collections"){</span><span class="WHIT">
+<span class='line'>147</span> </span><span class="WHIT">			</span><span class="COMM">//	var n = this.widgets[i].index;</span><span class="WHIT">
+<span class='line'>148</span> </span><span class="WHIT">			</span><span class="COMM">//	//$('#collections').find("[href=" + n + "]");</span><span class="WHIT">
+<span class='line'>149</span> </span><span class="WHIT">			</span><span class="COMM">//	$('#collections').find('.jstree-checked').each(function(){</span><span class="WHIT">
+<span class='line'>150</span> </span><span class="WHIT">			</span><span class="COMM">//		var jstreename = $(this).find('a').attr("href").split('?')[1].split('&')[0].split('=')[1];</span><span class="WHIT">
+<span class='line'>151</span> </span><span class="WHIT">			</span><span class="COMM">//		if (jstreename == n){</span><span class="WHIT">
+<span class='line'>152</span> </span><span class="WHIT">			</span><span class="COMM">//			$(this).removeClass("jstree-checked").addClass("jstree-unchecked");</span><span class="WHIT">
+<span class='line'>153</span> </span><span class="WHIT">			</span><span class="COMM">//			//$('#collections').plugins.checkbox.uncheck($(this));</span><span class="WHIT">
+<span class='line'>154</span> </span><span class="WHIT">			</span><span class="COMM">//		}</span><span class="WHIT">
+<span class='line'>155</span> </span><span class="WHIT">			</span><span class="COMM">//	});</span><span class="WHIT">
+<span class='line'>156</span> </span><span class="WHIT">			</span><span class="COMM">//}</span><span class="WHIT">
+<span class='line'>157</span> </span><span class="WHIT">			</span><span class="NAME">this.widgets.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>158</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>159</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>160</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>161</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>162</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>163</span> 
+<span class='line'>164</span> </span><span class="NAME">ListWidget.prototype.render</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>165</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x_save</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>166</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x_detail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>167</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>168</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x_input</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>169</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>170</span> </span><span class="WHIT">	</span><span class="COMM">//x_input = "&lt;input type='text' class='input-widget autocomplete-input' />";</span><span class="WHIT">
+<span class='line'>171</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'columns-widget'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>172</span> </span><span class="WHIT">		</span><span class="NAME">x_save</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="STRN">"&lt;span class='cmd cmd_save' />"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>173</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>174</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'collections-widget'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>175</span> </span><span class="WHIT">		</span><span class="NAME">x_save</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;span class='cmd cmd_detail' />"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>176</span> </span><span class="WHIT">		</span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"Collections"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>177</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>178</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;div id='"</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.lvid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"' class='widget-wrapper ui-widget' >"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>179</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='widget-header'>"</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="COMM">// ui-widget-header ui-state-default ui-corner-top'>" +</span><span class="WHIT">
+<span class='line'>180</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;label>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/label>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="COMM">//"&lt;span>" + name + "&lt;/span>" + </span><span class="WHIT">
+<span class='line'>181</span> </span><span class="WHIT">	</span><span class="NAME">x_save</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">x_detail</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/div>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>182</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='widget-content'>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">x_input</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>183</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='index-context'>&lt;table>&lt;/table>&lt;/div>&lt;div class='list-widget'>&lt;/div>&lt;/div>&lt;/div>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>184</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>185</span> 
+<span class='line'>186</span> </span><span class="WHIT">	</span><span class="NAME">listwidget_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.list-widget'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//$('#columns-list'); </span><span class="WHIT">
+<span class='line'>187</span> 
+<span class='line'>188</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.lvid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">' .cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">live</span><span class="PUNC">(</span><span class="STRN">'click'</span><span class="PUNC">,</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">event</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>189</span> </span><span class="WHIT">	</span><span class="COMM">//$(this.parent_div).find('.cmd_del').live('click',  function(event) {</span><span class="WHIT">
+<span class='line'>190</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">colid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.list-item'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>191</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">lvid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.widget-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>192</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">lv</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>193</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sl</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>194</span> </span><span class="WHIT">		</span><span class="COMM">//var q;</span><span class="WHIT">
+<span class='line'>195</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">lvid.beginsWith</span><span class="PUNC">(</span><span class="STRN">"sl"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>196</span> </span><span class="WHIT">			</span><span class="NAME">sl</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlistset.getselectionlist</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>197</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">sl.autoSelected</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>198</span> </span><span class="WHIT">				</span><span class="NAME">sl.select</span><span class="PUNC">(</span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>199</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>200</span> </span><span class="WHIT">			</span><span class="NAME">lv</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sl.listwidget</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>201</span> </span><span class="WHIT">			</span><span class="COMM">//q = $(this).closest('.detail-wrapper').find('.cmd_reload').data();</span><span class="WHIT">
+<span class='line'>202</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>203</span> </span><span class="WHIT">			</span><span class="NAME">lv</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">listwidgetset.getlistwidget</span><span class="PUNC">(</span><span class="NAME">lvid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>204</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>205</span> </span><span class="WHIT">		</span><span class="NAME">lv.remove</span><span class="PUNC">(</span><span class="NAME">colid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>206</span> </span><span class="WHIT">		</span><span class="COMM">//resubmit query</span><span class="WHIT">
+<span class='line'>207</span> </span><span class="WHIT">		</span><span class="COMM">/*
+<span class='line'>208</span> 		if (lvid.beginsWith("sl")){
+<span class='line'>209</span> 			q.query.updateColumns(sl);
+<span class='line'>210</span> 			q.query.resubmit();
+<span class='line'>211</span> 		}
+<span class='line'>212</span> 		*/</span><span class="WHIT">
+<span class='line'>213</span> </span><span class="WHIT">		</span><span class="COMM">/*
+<span class='line'>214</span> 		if ($(this).parent().parent().parent().attr('class') == 'query-columns'){
+<span class='line'>215</span> 			var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>216</span> 			var q = queryset.getQuery(qid);
+<span class='line'>217</span> 			q.columns_widget.remove(colid);
+<span class='line'>218</span> 		}else {
+<span class='line'>219</span> 		if ($(this).parent().parent().parent().attr('id') == "columns-widget"){	
+<span class='line'>220</span> 			columns_widget.remove(colid);
+<span class='line'>221</span> 		} else {
+<span class='line'>222</span> 			collections_widget.remove(colid);
+<span class='line'>223</span> 		}
+<span class='line'>224</span> 		*/</span><span class="WHIT">
+<span class='line'>225</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>226</span> 
+<span class='line'>227</span> 
+<span class='line'>228</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">input</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.input-widget'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>229</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>230</span> </span><span class="WHIT">	</span><span class="NAME">input.focusin</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>231</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">colid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.list-item'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>232</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">lvid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.widget-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>233</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">lv</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">listwidgetset.getlistwidget</span><span class="PUNC">(</span><span class="NAME">lvid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>234</span> </span><span class="WHIT">		</span><span class="NAME">active_widget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">lv</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>235</span> </span><span class="COMM">/*		if ($(this).parent().attr('class') == 'query-columns'){
+<span class='line'>236</span> 			var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>237</span> 			var q = queryset.getQuery(qid);
+<span class='line'>238</span> 			active_widget = q.columns_widget;
+<span class='line'>239</span> 		}else{
+<span class='line'>240</span> 			active_widget = columns_widget;
+<span class='line'>241</span> 		}
+<span class='line'>242</span> 		*/</span><span class="WHIT">
+<span class='line'>243</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>244</span> </span><span class="WHIT">	</span><span class="NAME">input.bind</span><span class="PUNC">(</span><span class="STRN">'change'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>245</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>246</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>247</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>248</span> </span><span class="WHIT">	</span><span class="NAME">input.keydown</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ev</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>249</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">evStop</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>250</span> </span><span class="WHIT">			</span><span class="NAME">ev.stopPropagation</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>251</span> </span><span class="WHIT">			</span><span class="NAME">ev.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>252</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>253</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">ev.which</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NUMB">13</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>254</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">colid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.list-item'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>255</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">lvid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.widget-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>256</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">lv</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">listwidgetset.getlistwidget</span><span class="PUNC">(</span><span class="NAME">lvid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>257</span> </span><span class="WHIT">			</span><span class="NAME">lv.add</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>258</span> </span><span class="COMM">/*			if ($(this).parent().attr('class') == 'query-columns'){
+<span class='line'>259</span> 				var qid = $(this).closest('.query_wrapper').attr("id");
+<span class='line'>260</span> 				var q = queryset.getQuery(qid);
+<span class='line'>261</span> 				q.columns_widget.add(new ListItem($(this).val()));
+<span class='line'>262</span> 			}else{
+<span class='line'>263</span> 				columns_widget.add(new  ListItem($(this).val()));
+<span class='line'>264</span> 			}
+<span class='line'>265</span> 			evStop();
+<span class='line'>266</span> 			*/</span><span class="WHIT">
+<span class='line'>267</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>268</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>269</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>270</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">'id'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"collections-widget"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>271</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">input</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>272</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>273</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>274</span> 
+<span class='line'>275</span> </span><span class="WHIT"> </span><span class="NAME">ListWidget.prototype.getListWidget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>276</span> </span><span class="WHIT">	 </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.list-widget'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>277</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>278</span> </span><span class="NAME">ListWidget.prototype.initAutocomplete</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">autocomplete_array</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>279</span> </span><span class="WHIT"> 	</span><span class="WHIT">
+<span class='line'>280</span> </span><span class="WHIT"> 	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">autocomplete_array.size</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>281</span> </span><span class="WHIT"> 	 </span><span class="WHIT">
+<span class='line'>282</span> </span><span class="WHIT"> 	 </span><span class="COMM">//autocomplete</span><span class="WHIT">
+<span class='line'>283</span> </span><span class="WHIT"> 	</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">handleSelectionWidget</span><span class="PUNC">(</span><span class="NAME">elem</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">widget</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>284</span> </span><span class="WHIT"> 		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">input</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">widget.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.input-widget'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>285</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">context</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">input</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">next</span><span class="PUNC">(</span><span class="STRN">'.index-context'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>286</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>287</span> </span><span class="WHIT">		</span><span class="COMM">// fill context</span><span class="WHIT">
+<span class='line'>288</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">html</span><span class="PUNC">(</span><span class="NAME">elements_hashtable</span><span class="PUNC">[</span><span class="NAME">elem</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>289</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>290</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">input</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">blur</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>291</span> </span><span class="WHIT"> 				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>292</span> </span><span class="WHIT"> 			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>293</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">input</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">focusin</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>294</span> </span><span class="WHIT"> 				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">context</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>295</span> </span><span class="WHIT"> 			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>296</span> </span><span class="WHIT"> 						</span><span class="WHIT">
+<span class='line'>297</span> </span><span class="WHIT"> 		</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>298</span> </span><span class="WHIT"> 		</span><span class="WHIT">
+<span class='line'>299</span> </span><span class="WHIT"> 		</span><span class="COMM">//autocomplete</span><span class="WHIT">
+<span class='line'>300</span> </span><span class="WHIT"> 		</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">findValueWidget</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>301</span> </span><span class="WHIT"> 			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">e.selectValue</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>302</span> </span><span class="WHIT"> 			</span><span class="NAME">handleSelectionWidget</span><span class="PUNC">(</span><span class="NAME">sValue</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">active_widget</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>303</span> </span><span class="WHIT"> 		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>304</span> </span><span class="WHIT"> 		 </span><span class="WHIT">
+<span class='line'>305</span> </span><span class="WHIT"> 		</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">selectItemWidget</span><span class="PUNC">(</span><span class="NAME">li</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>306</span> </span><span class="WHIT"> 			</span><span class="NAME">findValueWidget</span><span class="PUNC">(</span><span class="NAME">li</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>307</span> </span><span class="WHIT"> 		</span><span class="PUNC">}</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>308</span> 
+<span class='line'>309</span> </span><span class="WHIT"> 	 		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">ac</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.input-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">autocompleteArray</span><span class="PUNC">(</span><span class="NAME">autocomplete_array</span><span class="PUNC">,</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>310</span> </span><span class="WHIT"> 	 			</span><span class="NAME">autoFill</span><span class="PUNC">:</span><span class="KEYW">true</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>311</span> </span><span class="WHIT"> 	 			</span><span class="NAME">width</span><span class="PUNC">:</span><span class="NUMB">150</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>312</span> </span><span class="WHIT"> 	 			</span><span class="NAME">onFindValue</span><span class="PUNC">:</span><span class="NAME">findValueWidget</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>313</span> </span><span class="WHIT"> 	 			</span><span class="NAME">onItemSelect</span><span class="PUNC">:</span><span class="NAME">selectItemWidget</span><span class="WHIT">
+<span class='line'>314</span> </span><span class="WHIT"> 	 			</span><span class="COMM">//extraParams: {oo, '75'}</span><span class="WHIT">
+<span class='line'>315</span> </span><span class="WHIT"> 	 		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>316</span> 
+<span class='line'>317</span> </span><span class="WHIT"> 	 		</span><span class="COMM">//ac.setExtraParams({aaa:3});</span><span class="WHIT">
+<span class='line'>318</span> </span><span class="WHIT"> 	 </span><span class="WHIT">
+<span class='line'>319</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>320</span> </span><span class="NAME">ListWidget.prototype.load</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">items</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>321</span> </span><span class="WHIT">	</span><span class="NAME">this.clear</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>322</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>323</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">items</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>324</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"collections"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>325</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">items.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="PUNC">++</span><span class="NAME">i</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>326</span> </span><span class="WHIT">				</span><span class="NAME">this.add</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">items</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">items</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">index</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>327</span> </span><span class="WHIT">			 </span><span class="PUNC">}</span><span class="WHIT">   </span><span class="WHIT">
+<span class='line'>328</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT">
+<span class='line'>329</span> </span><span class="WHIT">		</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>330</span> </span><span class="WHIT">			</span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">items.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="PUNC">++</span><span class="NAME">i</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>331</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">items</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>332</span> </span><span class="WHIT">					</span><span class="NAME">this.add</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">items</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>333</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>334</span> </span><span class="WHIT">			 </span><span class="PUNC">}</span><span class="WHIT">   </span><span class="WHIT">
+<span class='line'>335</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>336</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>337</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>338</span> 
+<span class='line'>339</span> </span><span class="NAME">ListWidget.prototype.getListText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>340</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">column_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>341</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.type</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"collections"</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>342</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.widgets</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">column</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>343</span> </span><span class="WHIT">			</span><span class="NAME">column_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">column_text</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">jQuery.trim</span><span class="PUNC">(</span><span class="NAME">column.index</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>344</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>345</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>346</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.widgets</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">column</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>347</span> </span><span class="WHIT">			</span><span class="NAME">column_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">column_text</span><span class="WHIT">  </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">","</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">jQuery.trim</span><span class="PUNC">(</span><span class="NAME">column.name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>348</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>349</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>350</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>351</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>352</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">column_text.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>353</span> </span><span class="WHIT">		</span><span class="NAME">column_text</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">column_text.substring</span><span class="PUNC">(</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>354</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>355</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">column_text</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>356</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>357</span> 
+<span class='line'>358</span> 
+<span class='line'>359</span> 
+<span class='line'>360</span> 
+<span class='line'>361</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">_name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">_index</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>362</span> </span><span class="WHIT">	</span><span class="NAME">this.name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_name</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>363</span> </span><span class="WHIT">	</span><span class="NAME">this.index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_index</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>364</span> </span><span class="WHIT">	</span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>365</span> </span><span class="WHIT">	</span><span class="NAME">this.parent_container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>366</span> </span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>367</span> 
+<span class='line'>368</span> </span><span class="NAME">ListItem.prototype.render</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>369</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>370</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x_save</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>371</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>372</span> </span><span class="WHIT">	</span><span class="COMM">//if ($(this.parent_container).parent().attr("id") == 'columns-widget') {</span><span class="WHIT">
+<span class='line'>373</span> </span><span class="WHIT">	</span><span class="COMM">//	x_save = "&lt;span class='cmd cmd_save' />";</span><span class="WHIT">
+<span class='line'>374</span> </span><span class="WHIT">	</span><span class="COMM">//}</span><span class="WHIT">
+<span class='line'>375</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>376</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;div id='"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'class='list-item'>&lt;span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/span>&lt;span class='cmd cmd_del'> &lt;/span>"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">x_save</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"&lt;/div>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>377</span> 
+<span class='line'>378</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_container</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">prepend</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>379</span> </span><span class="WHIT">	</span><span class="COMM">//$('#columns-list').prepend(x);</span><span class="WHIT">
+<span class='line'>380</span> </span><span class="WHIT">	</span><span class="COMM">//addToColumnslist(x);	</span><span class="WHIT">
+<span class='line'>381</span> </span><span class="WHIT">	</span><span class="NAME">this.container</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listid</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>382</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>383</span> 
+<span class='line'>384</span> </span><span class="COMM">/**
+<span class='line'>385</span>  * FIXME: What is this for?
+<span class='line'>386</span>  * @constructor
+<span class='line'>387</span>  */</span><span class="WHIT">
+<span class='line'>388</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>389</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">listwidgetset</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">listwidgets</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>390</span> </span><span class="WHIT">		</span><span class="NAME">container</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'#listwidgetlist'</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>391</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>392</span> </span><span class="WHIT">		</span><span class="NAME">add</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">listwidget</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>393</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>394</span> </span><span class="WHIT">			</span><span class="NAME">this.listwidgets</span><span class="PUNC">[</span><span class="NAME">this.listwidgets.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">listwidget</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>395</span> </span><span class="WHIT">			</span><span class="NAME">listwidget.lvid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"lv"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.listwidgets.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>396</span> </span><span class="WHIT">			</span><span class="NAME">listwidget.render</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>397</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>398</span> 
+<span class='line'>399</span> </span><span class="WHIT">		</span><span class="NAME">remove</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">lvid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>400</span> </span><span class="WHIT">			 </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.listwidgets.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>401</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.listwidgets</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">listid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">mid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>402</span> </span><span class="WHIT">					</span><span class="NAME">this.listwidgets.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>403</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>404</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>405</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">lvid</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>406</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>407</span> </span><span class="WHIT">		</span><span class="NAME">getlistwidget</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">lvid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>408</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">listwidget</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>409</span> </span><span class="WHIT">			</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.listwidgets</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>410</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.lvid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">lvid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>411</span> </span><span class="WHIT">					</span><span class="NAME">listwidget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>412</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>413</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>414</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">listwidget</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>415</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>416</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>417</span> </span><span class="WHIT">	</span><span class="COMM">////////////////////////////////////////////////////////////////////////</span><span class="WHIT">
+<span class='line'>418</span> 
+<span class='line'>419</span> 
+<span class='line'>420</span> </span><span class="COMM">//////  SELECTION LIST - COMBOBOX</span><span class="WHIT">
+<span class='line'>421</span> </span><span class="COMM">/**
+<span class='line'>422</span>  * Selection List implemented as Combobox
+<span class='line'>423</span>  * @constructor 
+<span class='line'>424</span>  */</span><span class="WHIT">
+<span class='line'>425</span> 
+<span class='line'>426</span> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">SelectionList</span><span class="PUNC">(</span><span class="NAME">_parent_div</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>427</span> </span><span class="WHIT">	</span><span class="NAME">this.parent_div</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">_parent_div</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>428</span> </span><span class="WHIT">	</span><span class="COMM">//this.container = "";</span><span class="WHIT">
+<span class='line'>429</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>430</span> </span><span class="WHIT">	</span><span class="COMM">//this.listwidget_container = {};</span><span class="WHIT">
+<span class='line'>431</span> </span><span class="WHIT">	</span><span class="NAME">this.items</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>432</span> </span><span class="WHIT">	</span><span class="NAME">this.items</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="STRN">"&lt;new>"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>433</span> </span><span class="WHIT">	</span><span class="NAME">this.items</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="STRN">"&lt;auto>"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>434</span> </span><span class="WHIT">	</span><span class="NAME">this.autolist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>435</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>436</span> </span><span class="WHIT">	</span><span class="NAME">this.slid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>437</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>438</span> </span><span class="WHIT">	</span><span class="NAME">this.listwidget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListWidget</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>439</span> </span><span class="WHIT">	</span><span class="COMM">//this.type = type;</span><span class="WHIT">
+<span class='line'>440</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>441</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>442</span> </span><span class="NAME">SelectionList.prototype.getSelect</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>443</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">select</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>444</span> </span><span class="WHIT">	</span><span class="NAME">select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>445</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">select</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>446</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>447</span> </span><span class="NAME">SelectionList.prototype.createSelect</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>448</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">items</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.items</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>449</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.slid</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>450</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">$select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>451</span> </span><span class="WHIT">	</span><span class="NAME">$select.children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>452</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>453</span> </span><span class="WHIT">	</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.items</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>454</span> </span><span class="WHIT">		</span><span class="NAME">items</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">lvid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"_"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>455</span> </span><span class="WHIT">		</span><span class="NAME">$select.append</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Option</span><span class="PUNC">(</span><span class="NAME">item.name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>456</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>457</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>458</span> </span><span class="WHIT">	</span><span class="NAME">$select.change</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">data</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>459</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"option"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">size</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>460</span> </span><span class="WHIT">			</span><span class="COMM">// find id of selected</span><span class="WHIT">
+<span class='line'>461</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$select.find</span><span class="PUNC">(</span><span class="STRN">"option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>462</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>463</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sl</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlistset.getselectionlist</span><span class="PUNC">(</span><span class="NAME">slid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>464</span> </span><span class="WHIT">			</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>465</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>466</span> </span><span class="WHIT">					</span><span class="NAME">sl.listwidget.load</span><span class="PUNC">(</span><span class="NAME">sl.autolist.split</span><span class="PUNC">(</span><span class="STRN">','</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>467</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="KEYW">else</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>468</span> </span><span class="WHIT">					</span><span class="NAME">sl.listwidget.clear</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>469</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>470</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"disabled"</span><span class="PUNC">,</span><span class="STRN">"disabled"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>471</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"disabled"</span><span class="PUNC">,</span><span class="STRN">"disabled"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>472</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>473</span> </span><span class="WHIT">				</span><span class="NAME">sl.listwidget.load</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>474</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeAttr</span><span class="PUNC">(</span><span class="STRN">"disabled"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>475</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">removeAttr</span><span class="PUNC">(</span><span class="STRN">"disabled"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>476</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>477</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>478</span> </span><span class="WHIT">     </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>479</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>480</span> </span><span class="NAME">SelectionList.prototype.load</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>481</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">items</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.items</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>482</span> </span><span class="WHIT">	</span><span class="COMM">//var $select = this.getSelect();</span><span class="WHIT">
+<span class='line'>483</span> </span><span class="WHIT">	</span><span class="COMM">//$select.children().remove();</span><span class="WHIT">
+<span class='line'>484</span> 
+<span class='line'>485</span> </span><span class="WHIT">	</span><span class="COMM">//&lt;auto>,&lt;new></span><span class="WHIT">
+<span class='line'>486</span> </span><span class="WHIT">	</span><span class="COMM">//$select.append(new Option(this.items[0], 0));</span><span class="WHIT">
+<span class='line'>487</span> </span><span class="WHIT">	</span><span class="COMM">//$select.append(new Option(this.items[1], 1));</span><span class="WHIT">
+<span class='line'>488</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">json</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="STRN">"null"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>489</span> </span><span class="WHIT">		</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">json</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="NAME">item</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>490</span> </span><span class="WHIT">			</span><span class="NAME">items</span><span class="PUNC">[</span><span class="NAME">items.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">item.name</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>491</span> </span><span class="WHIT">			</span><span class="COMM">//$select.append(new Option(item.name, i+2));</span><span class="WHIT">
+<span class='line'>492</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>493</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>494</span> </span><span class="WHIT">	</span><span class="COMM">/*
+<span class='line'>495</span> 	// find id of selected
+<span class='line'>496</span> 	if ($select.find("option").size() > 0) {
+<span class='line'>497</span> 		$select.find("option").first().attr("selected","true");
+<span class='line'>498</span> 		var id = parseInt($select.find("option:selected").val());
+<span class='line'>499</span> 		this.listwidget.load(json[id]["Terms"]);
+<span class='line'>500</span> 	}
+<span class='line'>501</span> 	*/</span><span class="WHIT">
+<span class='line'>502</span> </span><span class="WHIT">	</span><span class="NAME">this.createSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>503</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>504</span> </span><span class="NAME">SelectionList.prototype.add</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>505</span> </span><span class="WHIT">	</span><span class="NAME">this.items</span><span class="PUNC">[</span><span class="NAME">this.items.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">item</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>506</span> </span><span class="WHIT">	</span><span class="COMM">//list_item.parent_container = this.getListWidget();</span><span class="WHIT">
+<span class='line'>507</span> </span><span class="WHIT">	</span><span class="NAME">item.listid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.slid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"_"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.items.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>508</span> </span><span class="WHIT">	</span><span class="NAME">this.getSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Option</span><span class="PUNC">(</span><span class="NAME">this.items</span><span class="PUNC">[</span><span class="NAME">this.items.length</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.items.length</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>509</span> </span><span class="WHIT">	</span><span class="COMM">//list_item.render();</span><span class="WHIT">
+<span class='line'>510</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>511</span> 
+<span class='line'>512</span> </span><span class="NAME">SelectionList.prototype.clear</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>513</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.items.length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>514</span> </span><span class="WHIT">		</span><span class="NAME">this.items.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.items.length</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>515</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>516</span> </span><span class="WHIT">	</span><span class="NAME">this.listwidget.clear</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>517</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>518</span> 
+<span class='line'>519</span> </span><span class="NAME">SelectionList.prototype.remove</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>520</span> </span><span class="WHIT">	</span><span class="NAME">this.items.splice</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>521</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>522</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">select</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>523</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">select</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">each</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">item</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>524</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>525</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>526</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>527</span> </span><span class="NAME">SelectionList.prototype.autoSelected</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>528</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.getSelected</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>529</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>530</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>531</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>532</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>533</span> </span><span class="NAME">SelectionList.prototype.getSelected</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>534</span> </span><span class="WHIT">	</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.getSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option:selected'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>535</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>536</span> </span><span class="NAME">SelectionList.prototype.select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>537</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.getSelect</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'option'</span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NAME">id</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"selected"</span><span class="PUNC">,</span><span class="STRN">"selected"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="COMM">//get(id).selectedIndex = id; </span><span class="WHIT">
+<span class='line'>538</span> </span><span class="WHIT">	</span><span class="COMM">//var sl = this;//selectionlistset.getselectionlist(this.slid);</span><span class="WHIT">
+<span class='line'>539</span> </span><span class="WHIT">	</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>540</span> </span><span class="WHIT">		</span><span class="NAME">this.listwidget.load</span><span class="PUNC">(</span><span class="NAME">jsonw</span><span class="PUNC">[</span><span class="STRN">"WorkspaceProfile"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"CustomTermsets"</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">]</span><span class="PUNC">[</span><span class="STRN">"Terms"</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>541</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>542</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>543</span> </span><span class="WHIT">			</span><span class="NAME">this.listwidget.load</span><span class="PUNC">(</span><span class="NAME">this.autolist.split</span><span class="PUNC">(</span><span class="STRN">','</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>544</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>545</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>546</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>547</span> </span><span class="NAME">SelectionList.prototype.render</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>548</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"&lt;div id='"</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.slid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="STRN">"' class='widget-wrapper ui-widget selectionlist-widget' >"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>549</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='widget-content'>&lt;div class='selectionlist-select'>&lt;select>&lt;/select>"</span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>550</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;span class='cmd cmd_save' />&lt;span class='cmd cmd_saveas' />&lt;span class='cmd cmd_del' />&lt;/div>"</span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>551</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div>&lt;input type='text' class='saveas-input' />&lt;/div>"</span><span class="PUNC">+</span><span class="WHIT">
+<span class='line'>552</span> </span><span class="WHIT">	</span><span class="STRN">"&lt;div class='selectionlist-listwidget'>&lt;/div>&lt;/div>"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>553</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="NAME">x</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>554</span> 
+<span class='line'>555</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>556</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>557</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">select</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>558</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="KEYW">return</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>559</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">select</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">text</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>560</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>561</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.widget-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>562</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">selectionlist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlistset.getselectionlist</span><span class="PUNC">(</span><span class="NAME">slid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>563</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>564</span> </span><span class="WHIT">		</span><span class="NAME">saveTermset</span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">selectionlist.listwidget</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>565</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>566</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_saveas'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>567</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">saveas</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.saveas-input'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>568</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">saveas</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>569</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">saveas</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">focus</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>570</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>571</span> </span><span class="WHIT">		</span><span class="COMM">/*
+<span class='line'>572</span> 		var name = $(this).closest('.selectionlist-select').find('.saveas-input').text();
+<span class='line'>573</span> 		var slid = $(this).closest('widget-wrapper').attr("id");
+<span class='line'>574</span> 		var selectionlist = selectionlistset.getselectionlist(slid);
+<span class='line'>575</span> 		
+<span class='line'>576</span> 		selectionlist.add(name);
+<span class='line'>577</span> 		*/</span><span class="WHIT">
+<span class='line'>578</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>579</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">click</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>580</span> </span><span class="WHIT">		</span><span class="COMM">//find selected</span><span class="WHIT">
+<span class='line'>581</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">select</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="STRN">'select'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>582</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">parseInt</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">select</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">"option:selected"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">val</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>583</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="KEYW">return</span><span class="PUNC">;</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>584</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>585</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>586</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">selectionlist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlistset.getselectionlist</span><span class="PUNC">(</span><span class="NAME">slid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>587</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>588</span> </span><span class="WHIT">		</span><span class="NAME">removeTermset</span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">2</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>589</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>590</span> </span><span class="WHIT">		</span><span class="NAME">selectionlist.remove</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>591</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>592</span> </span><span class="WHIT">			</span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">id</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>593</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>594</span> </span><span class="WHIT">		</span><span class="NAME">selectionlist.select</span><span class="PUNC">(</span><span class="NAME">id</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>595</span> </span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>596</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>597</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>598</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.saveas-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">focusout</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>599</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>600</span> </span><span class="WHIT">		</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>601</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>602</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.saveas-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">keydown</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ev</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>603</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">evStop</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">ev.stopPropagation</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">ev.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>604</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">ev.which</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NUMB">23</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>605</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">,</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>606</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>607</span> </span><span class="WHIT">			</span><span class="NAME">evStop</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>608</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>609</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">evSaveAs</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">select</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>610</span> </span><span class="WHIT">			</span><span class="NAME">ev.preventDefault</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>611</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>612</span> </span><span class="WHIT">			</span><span class="COMM">//var slid = $(this).closest('.widget-wrapper').attr("id");</span><span class="WHIT">
+<span class='line'>613</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">selectionlist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlistset.getselectionlist</span><span class="PUNC">(</span><span class="NAME">slid</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>614</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>615</span> </span><span class="WHIT">			</span><span class="NAME">saveTermset</span><span class="PUNC">(</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">selectionlist.listwidget</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>616</span> </span><span class="WHIT">			</span><span class="NAME">selectionlist.add</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListItem</span><span class="PUNC">(</span><span class="NAME">name</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>617</span> </span><span class="WHIT">			</span><span class="NAME">selectionlist.select</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">select</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">children</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>618</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>619</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">length</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT">  </span><span class="NAME">ev.which</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NUMB">13</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">evSaveAs</span><span class="PUNC">(</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"value"</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>620</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-widget'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'select'</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>621</span> </span><span class="WHIT">				</span><span class="NAME">$</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">closest</span><span class="PUNC">(</span><span class="STRN">'.widget-wrapper'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>622</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>623</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>624</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.saveas-input'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>625</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_del'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"disabled"</span><span class="PUNC">,</span><span class="STRN">"disabled"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>626</span> </span><span class="WHIT">	</span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-select'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.cmd_save'</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">attr</span><span class="PUNC">(</span><span class="STRN">"disabled"</span><span class="PUNC">,</span><span class="STRN">"disabled"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>627</span> </span><span class="WHIT">	</span><span class="NAME">this.listwidget</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">ListWidget</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="PUNC">(</span><span class="NAME">this.parent_div</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">find</span><span class="PUNC">(</span><span class="STRN">'.selectionlist-listwidget'</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>628</span> </span><span class="WHIT">	</span><span class="NAME">this.listwidget.lvid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.slid</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"_lv"</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>629</span> </span><span class="WHIT">	</span><span class="NAME">this.listwidget.render</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>630</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>631</span> </span><span class="WHIT">	</span><span class="COMM">//$(this.parent_div).find</span><span class="WHIT">
+<span class='line'>632</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>633</span> 
+<span class='line'>634</span> </span><span class="WHIT"> </span><span class="COMM">/*
+<span class='line'>635</span> SelectionList.prototype.load = function(items) {
+<span class='line'>636</span> 	this.clear();
+<span class='line'>637</span> 		
+<span class='line'>638</span> 	for(var i=0; i&lt;items.length; ++i) {
+<span class='line'>639</span> 			this.add(new ListItem(items[i]));
+<span class='line'>640</span> 	}   
+<span class='line'>641</span> };
+<span class='line'>642</span> */</span><span class="WHIT">
+<span class='line'>643</span> </span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>644</span> </span><span class="COMM">/**
+<span class='line'>645</span>  * FIXME: What is this for?
+<span class='line'>646</span>  *  @constructor
+<span class='line'>647</span>  */</span><span class="WHIT">
+<span class='line'>648</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">selectionlistset</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">selectionlists</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>649</span> </span><span class="WHIT">			</span><span class="WHIT">
+<span class='line'>650</span> </span><span class="WHIT">		</span><span class="NAME">add</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">selectionlist</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>651</span> </span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>652</span> </span><span class="WHIT">			</span><span class="NAME">this.selectionlists</span><span class="PUNC">[</span><span class="NAME">this.selectionlists.length</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">selectionlist</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>653</span> </span><span class="WHIT">			</span><span class="NAME">selectionlist.slid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"sl"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.selectionlists.length</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>654</span> </span><span class="WHIT">			</span><span class="NAME">selectionlist.render</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">				</span><span class="WHIT">
+<span class='line'>655</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>656</span> 
+<span class='line'>657</span> </span><span class="WHIT">		</span><span class="NAME">remove</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">slid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">		</span><span class="WHIT">
+<span class='line'>658</span> </span><span class="WHIT">			 </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">this.selectionlists.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>659</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.selectionlists</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">slid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>660</span> </span><span class="WHIT">					</span><span class="NAME">this.selectionlists.splice</span><span class="PUNC">(</span><span class="NAME">i</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>661</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
+<span class='line'>662</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="WHIT">	</span><span class="WHIT">
+<span class='line'>663</span> </span><span class="WHIT">			</span><span class="NAME">$</span><span class="PUNC">(</span><span class="STRN">'#'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>664</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
+<span class='line'>665</span> </span><span class="WHIT">		</span><span class="NAME">getselectionlist</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">slid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>666</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">selectionlist</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>667</span> </span><span class="WHIT">			</span><span class="NAME">$.each</span><span class="PUNC">(</span><span class="NAME">this.selectionlists</span><span class="PUNC">,</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>668</span> </span><span class="WHIT">				</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">this.slid</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">slid</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
+<span class='line'>669</span> </span><span class="WHIT">					</span><span class="NAME">selectionlist</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>670</span> </span><span class="WHIT">				</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>671</span> </span><span class="WHIT">			</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>672</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">selectionlist</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>673</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
+<span class='line'>674</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
+<span class='line'>675</span> </span></pre></body></html>
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/AdminAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/AdminAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/AdminAction.java	(revision 1516)
@@ -0,0 +1,111 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.HashMap;
+
+import eu.clarin.cmdi.mdservice.internal.Cache;
+
+import net.sf.json.JSONObject;
+import net.sf.json.xml.XMLSerializer;
+
+/*
+ * import org.jzkit.service.*; 
+import org.jzkit.search.provider.iface.Searchable;
+import org.jzkit.search.provider.iface.SearchableFactory;
+*/
+
+/**
+ * This is meant for administrative tasks. Currently only action is related to <code>cache</code> viewing and clearing.
+ *
+ */
+public class AdminAction extends GenericAction {
+
+	private static final long serialVersionUID = 1L;
+	
+	
+	private String date;
+	private String datefrom;
+	private String dateto;
+	
+	public String getDate() {
+		return date;
+	}
+
+	public void setDate(String date) {
+		this.date = date;
+	}
+	
+	public String getDatefrom() {
+		return datefrom;
+	}
+
+	public void setDatefrom(String datefrom) {
+		this.datefrom = datefrom;
+	}
+
+	public String getDateto() {
+		return dateto;
+	}
+
+	public void setDateto(String dateto) {
+		this.dateto = dateto;
+	}
+
+	
+	@Override 
+	public String getFullFormat() {
+		return "admin2" + getFormat();
+	}
+	
+	public String getBaseURI() { 
+		String uri = "file:/" + Cache.getCache().getCacheIndexPath();		
+		return uri;
+	}
+
+	public String del() throws Exception {
+		
+		//String connection_descriptor_string = "";
+		//SearchableFactory sf = app_ctx.getBean("SearchableFactory");
+	    //Searchable z3950_target = sf.create(connection_descriptor_string);//create(new IRServiceDescriptor("proto=z3950,addr=www.lcweb.gov:210,code=LC,shortname=\"Library of congress\",longname="\"Library of congress\""));
+
+		//getServletRequest().getRemoteUser()
+		if (getServletRequest().getRemoteUser() != null){
+			if ( getServletRequest().getRemoteUser().toLowerCase().equals("admin")){
+				HashMap<String,String> clear_params = new HashMap<String,String>();
+				if (this.getActionkey() != null){
+					clear_params.put("type", getActionkey());	
+				}
+				if (this.getRepository() != null){
+					clear_params.put("repository", String.valueOf(getRepository()));	
+				}	
+				if (this.getDate() != null){
+					clear_params.put("date", getDate());	
+				}
+				if (this.getDatefrom() != null){
+					clear_params.put("datefrom", getDatefrom());	
+				}
+				if (this.getDateto() != null){
+					clear_params.put("dateto", getDateto());	
+				}
+				//int removed;
+				this.setResultStream(Cache.getCache().clear(clear_params));
+				
+				//String ret = "1";
+				//this.setResultStream( new ByteArrayInputStream(String.valueOf(removed).getBytes()));
+				
+				return SUCCESS;
+
+			}
+		}
+		
+		return ERROR;
+		
+	}
+	
+	}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/CompRegistryProxyAction.java	(revision 1516)
@@ -0,0 +1,221 @@
+ package eu.clarin.cmdi.mdservice.action;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.Cache;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+
+/**
+ * Acts as a Struts 2 controller 
+ * serves the requests regarding Components
+ * it passes them further (Proxy) to the ComponentRegistry.
+ *  
+ * Nested Components are resolved during xsl-transformation. 
+ * @author vronk 
+ *
+ */
+public class CompRegistryProxyAction extends GenericProxyAction {
+
+	private static final long serialVersionUID = 1L;
+	
+	private String proxy_key = "compregistry";
+	private String compid;
+	
+	public String getCompid() {
+		return compid;
+	}
+
+	public void setCompid(String compid) {
+		this.compid = compid;
+	}
+
+	@Override 
+	public String getFullFormat() {
+		if (compid==null || compid.equals("")) {
+			if (getActionkey().equals("elements")){
+				return "terms2" + getFormat();	
+			} else {
+				return "complist2" + getFormat();
+			}
+		} else {
+			return "comp2" + getFormat();
+		}
+	}
+	
+	@Override
+	public String getProxyKey() {
+		return proxy_key;
+	}
+	
+	@Override
+	/*
+	public String getRequestKey() {
+		String key="";
+		if (getActionkey()!=null) {
+			key += getActionkey() + "//-" ;
+		}
+		if (getCompid()!=null) {
+			key += getCompid() + "//-" ;
+		}
+		 
+		return key;
+	}
+*/
+	 public String getRequestKey() {
+		String key="";
+		if (getActionkey()!=null) {
+			key += getActionkey() + "//-" ;
+		}else {
+			key +="//-" ;
+		}
+		if (getCompid()!=null) {
+			key += getCompid() + "//-" ;
+		} else {
+			key +="//-" ;
+		}
+		//if (getCollection()!=null) {
+		key +="//-" ;
+		
+		//if (getSquery()!=null) {
+		key +="//-" ;
+		
+		if (getStartItem()!=null) {
+			key += getStartItem() + "//-";
+		}
+			else{
+				key +="//-" ;
+		}
+		if (getMaximumItems()!=null) {
+			key += getMaximumItems() + "//-";
+		}
+		else{
+			key +="//-" ;
+		}
+		
+		key += getRepository()  + "//-";
+		key += getMaxdepth()  + "//-";
+		
+		if (getLang()!=null) {
+			key += getLang() + "//-";
+		}else{
+			key +="//-" ;
+		}
+		
+		 
+		return key;
+	}
+
+		
+	@SuppressWarnings("deprecation")	
+	@Override
+	public void prepare() throws Exception {		
+		
+		//Admin.notifyUser("CRPA.prepare");
+		if (!getActionkey().equals("elements"))	{
+			super.prepare();
+		} else	{
+//			Admin.notifyUser("CRPA.prepareSourceStream - elements");
+			String xcid;
+			InputStream _sourceStream;
+			InputStream __sourceStream;
+			InputStream _resultStream;
+			
+			_sourceStream = Cache.getCache().getFromCache(getRequestKey());
+			if (_sourceStream == null) {
+	//				Admin.notifyUser("CRPA.prepareSourceStream- profiles");
+					setActionkey("profiles");
+					setFormat("xmlresolved");
+					__sourceStream = Cache.getCache().getFromCache(getRequestKey());
+					if (__sourceStream == null) {
+						__sourceStream = getSourceStream();
+						xcid = Cache.getCache().putInCache(getRequestKey(),__sourceStream);			
+						//Admin.notifyUser("CRPA-putting in cache: " + getRequestKey());	
+						__sourceStream = Cache.getCache().getFromCache(getRequestKey());
+					} else{
+						//Admin.notifyUser("CRPA-reading from cache: " + getRequestKey());	
+					}
+			//		Admin.notifyUser("CCCRPA." + getTargetRequest());
+				//	Admin.notifyUser("CCCRPA." + getFullFormat());
+					MDTransformer transformer = new MDTransformer();
+					transformer.setSrcFile(getTargetRequest());
+					transformer.setParams(createTransformerParams());
+					_sourceStream = transformer.transformXML(__sourceStream);//, getFullFormat(),null,null,null,null,null,null);
+				//	Admin.notifyUser("CRPA.- elements");
+					setActionkey("elements");
+					setFormat("htmllist");
+					xcid = Cache.getCache().putInCache(getRequestKey(),_sourceStream);			
+			//		Admin.notifyUser("CRPA-putting in cache: " + getRequestKey());
+					_sourceStream = Cache.getCache().getFromCache(getRequestKey());
+			} /*else {
+					Admin.notifyUser("CRPA-reading from cache: " + getRequestKey());
+			}*/
+				/*
+			File file=new File(Cache.getCache().formPath(getRequestKey()));
+			Admin.notifyUser("File-absolutePath " + file.getAbsolutePath());
+			URL url = null;
+			   try{
+				   url = file.toURL();
+				   Admin.notifyUser("URL-tostring " + url.toString());
+				   }  catch (MalformedURLException me){
+			  }
+			 */
+			
+			if (getFormat().equals("xml")) {			
+				_resultStream = _sourceStream;	
+			}else {
+				// set URL as srcFile (for MDTransformer to pass to xsl-scripts) 
+				MDTransformer transformer = new MDTransformer();
+				transformer.setSrcFile(getTargetRequest());
+				transformer.setParams(MDTransformer.createParamsMap(getFullFormat()));
+				_resultStream = transformer.transformXML(_sourceStream);//, getFullFormat());
+					
+			}
+	
+			Admin.notifyUser(getProxyKey() + " success:" + (_resultStream!=null));
+			
+			setSourceStream(_sourceStream);
+			setResultStream(_resultStream);
+
+			/*
+			if (getFormat().equals("txt")) {
+				File f=new File(Cache.getCache().formPath("terms_autocomplete.txt"));
+			    OutputStream out=new FileOutputStream(f);
+			    byte buf[]=new byte[1024];
+			    int len;
+			    while((len=getResultStream().read(buf))>0)
+			    	out.write(buf,0,len);
+			    out.close();
+Admin.notifyUser("terms_autocomplete.txt");
+			}
+			*/
+			
+		}
+
+	}
+
+
+	/**
+	 * uses base_url and (optionally) compid to form a url
+	 * no compid => list all components/profiles
+	 * @return the URL to component-registry
+	 * @throws Exception 
+	 */
+	public URL getTargetRequest() throws IOException {
+        // URL targetURL =new URL( base_url, compname + ".xml");
+		URL targetURL = null;
+		if (compid==null || compid.equals("")) {
+			targetURL =new URL( getBaseURL(), getActionkey() );
+		} else {
+			targetURL =new URL( getBaseURL(), getActionkey() + "/clarin.eu:cr1:" + compid);
+		}
+//		Admin.notifyUser("CompReg.targetURL:" + targetURL);		
+     //   URLConnection urlConnection = targetURL.openConnection();
+//        urlConnection.setRequestProperty("Accept", "application/xml");                 
+        return targetURL;
+	}
+
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/DCRProxyAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/DCRProxyAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/DCRProxyAction.java	(revision 1516)
@@ -0,0 +1,164 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLConnection;
+import java.util.HashMap;
+
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.model.Termset;
+
+/**
+ * Acts as a Struts 2 controller 
+ * serves the requests regarding DataCategories
+ * it passes them further (Proxy) to the Data Category Registry.
+ *   
+ * @author vronk 
+ *
+ */
+
+public class DCRProxyAction extends GenericProxyAction {
+
+	private String proxy_key = "dcregistry";
+	private static Logger log = Logger.getLogger("DCRProxyAction");
+	
+	private String dcrid;
+	
+	public static String ALL = "all";
+	public static String DATCAT = "datcat";
+	public static String DATCATS = "datcats";
+	
+	private static final long serialVersionUID = 1L;
+	
+	
+	public String getDcrid() {
+		return dcrid;
+	}
+
+	public void setDcrid(String dcrid) {
+		this.dcrid = dcrid;
+	}
+
+	public Termset getDCR() {		
+		String dcr_id="";
+		if (getQ()!=null && !getQ().equals("")) dcr_id = getQ();
+		// override with dcrid-param
+		if (getDcrid()!=null && !getDcrid().equals("")) dcr_id = getDcrid();			
+
+		Termset res = (Termset) Termset.getTermset(dcr_id);
+		if (res==null)		Admin.notifyUser("getDCR(): no termset found for:" + dcr_id);
+		//else
+			//Admin.notifyUser("getDCR():" + res.getAttr("id") + ":" + res.getAttr("url") );
+		
+		return res;
+	}
+	
+	public String getDCRAttr(String key) {	
+		Termset dcr = getDCR();
+		String val=""; 
+		if (dcr!=null) val= dcr.getAttr(key);
+		 return val;
+	}
+	
+	@Override
+	public String getProxyKey() {
+		return proxy_key;
+	}
+	 
+	public String getFullFormat() {
+		Termset dcr = getDCR();
+		String srcformat="", srctype=""; 
+		if (dcr!=null){ 
+				srcformat = dcr.getAttr("format");
+				srctype = dcr.getAttr("type");
+		} else { 
+			 srcformat = ALL;
+			 srctype = "datcat";
+		}
+			return srctype + "-" + srcformat  + "2" + getFormat();		
+	}
+	
+	public URL getBaseURL() throws MalformedURLException {
+		
+		if (base_url == null) {
+			base_url = new URL(getBaseURI());
+		}
+		
+		return base_url;
+	}
+	
+	public String getBaseURI() {		
+		return getDCRAttr("url");
+	}
+	
+	/**
+	 * uses base_url and (optionally) id to form a url
+	 * no id => ?list all datacategories?
+	 * @return the URL to data category xml format
+	 * @throws Exception 
+	 */
+	public URL getTargetRequest() throws IOException {
+
+		URL targetURL = null;
+	
+		//if (getActionkey().equals(DATCATS)) {
+		if ((getQ()!=null && !getQ().equals(""))) {
+			//targetURL =new URL(getBaseURI() + "?dcif-mode=all&workingLanguage=" + getLang()) ;
+			targetURL =new URL(getBaseURI() + "?dcif-mode=all&workingLanguage=" + getLang()) ;
+		}
+		/*
+			if (getQ()==null || getQ().equals("")) {			
+					// get all available datcat-sets from terms_setup.xml
+				
+				targetURL =getBaseURL();
+			} else {
+				targetURL =new URL( getBaseURL(), "/" + getQ());
+			}
+			*/
+//		Admin.notifyUser("DCRProxy.targetURL:" + targetURL);
+
+	    return targetURL;
+	}
+	
+	public InputStream getSourceStream() throws IOException {
+
+		InputStream resultStream = null; 
+		// if no arguments  - get the local-config file 
+		// FIXME: although this should be competence of TermsProxyAction
+		if ((getQ().equals(ALL) || getQ()==null || getQ().equals("")) && (getActionkey().equals(DATCATS))) {
+			log.debug("serving terms.file:" + Admin.getConfig().getProperty("terms.file"));
+			resultStream = this.getClass().getClassLoader().getResourceAsStream(Admin.getConfig().getProperty("terms.file"));
+		} else {
+		
+		/* need to set Request-Property: Accept to xml 
+		 * for to get dcif/xml from DCR-server by means of content negotiation */
+		URLConnection urlConnection = getTargetRequest().openConnection();
+		
+		if (getDCRAttr("format").equals("dcif")) {		
+			urlConnection.setRequestProperty("Accept", "application/dcif+xml");
+			log.debug("setting header Accept:" + urlConnection.getRequestProperty("Accept"));
+		}
+        //urlConnection.setRequestProperty("Accept-Language", getLang());
+        
+        //
+        	resultStream = urlConnection.getInputStream();
+		}
+        return resultStream;    
+    
+	}
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericAction.java	(revision 1516)
@@ -0,0 +1,445 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.log4j.Logger;
+import org.apache.struts2.interceptor.ServletRequestAware;
+
+import com.opensymphony.xwork2.ActionSupport;
+
+import eu.clarin.cmdi.mdservice.internal.Cache;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Diagnostics;
+import eu.clarin.cmdi.mdservice.proxy.ProxyInterface;
+
+
+
+/**
+ * main Struts2 controller (ie implemenets the struts' execute()-method), all other Actions are derived from.   
+ * Defines the methods used for retrieving the data 
+ * and provides basic implementation where possible.
+ * Also responsible for caching and transformation of the result. 
+ *  
+ * @author vronk
+ */
+public class GenericAction extends ActionSupport 
+implements ServletRequestAware 
+{
+	public static Logger log = Logger.getLogger("GenericAction");
+	private static final long serialVersionUID = 1L;
+	
+	
+	private Diagnostics diagnostics;
+	/** 
+	 * Properties to be filled by Struts with according request-parameters
+	 */	
+	private String actionkey = "generic";
+	private String cache = Cache.SKIP;
+	private String lang="en";
+	private String q;
+	private String format="xml"; // default no transformation
+	private String actionContentType;
+	private String userMsg;
+	private HttpServletRequest request; 
+	private long duration = 0;
+	private String repository;
+	private InputStream resultStream;
+	private InputStream sourceStream;
+	
+	private Map<String,String[]> params;
+	
+//	protected URL base_url ;
+	
+	private ProxyInterface target_proxy;
+		
+	 			
+	public ProxyInterface getTargetProxy() {
+		return target_proxy;
+	}
+
+	public void setTargetProxy(ProxyInterface proxy) {
+		target_proxy = proxy;
+		target_proxy.setSourceAction(this);
+	}
+
+/**
+ * Empty implementation, subclasses have to decide themselves, which proxy to take.
+ */	
+	public void setTargetProxy() {
+}
+
+	 public Diagnostics getDiagnostics(){
+		 if (diagnostics == null){
+			 diagnostics  = new Diagnostics();
+		 }
+		 return this.diagnostics;
+	 }
+	 
+	 public void setDiagnostics(Diagnostics diagnostics){
+		 this.diagnostics = diagnostics;
+	 }
+	 
+	 public String getCache() {
+		return cache;
+	}
+
+	public void setCache(String cache) {
+		this.cache = cache;
+	}
+
+	public String getFormat() {
+		return format;
+	}
+
+	public void setFormat(String format) {
+		this.format = format;
+	}
+	 
+	public String getQ() {
+		return q;
+	}
+
+	public void setQ(String pq) {
+		if (pq == null) pq="";
+		/*
+		if (q != null){
+			if (q.trim().length() == 0){
+				q = null;
+			}
+		}
+		*/
+		this.q = pq;
+	}
+
+
+	public void setRepository(String repository) {
+		this.repository = repository;
+	}
+	
+	public String getRepository() {
+		//default repository = 1 (set on init)
+		return repository;
+	}
+	
+	/**
+	 * is used in struts.xml to dynamically set the mime-type of the result, depending on the format-parameter
+	 * @return
+	 */
+	public String getActionContentType() {
+		if (format.toLowerCase().startsWith("html")) {
+			this.actionContentType = "text/html";		
+			//this.actionContentType = "application/xhtml+xml";
+		} else {
+			this.actionContentType = "text/xml";
+		}
+		
+		return actionContentType;
+	}
+
+	public void setActionContentType(String actionContentType) {
+		this.actionContentType = actionContentType;
+	}
+	
+	public String getActionkey() {
+		return actionkey;
+	}
+
+	public void setActionkey(String actionKey) {
+		actionkey = actionKey;
+	}
+
+	public String getLang() {
+		return lang;
+	}
+
+	public void setLang(String lang) {
+		this.lang = lang;
+	}
+
+	public String getFullFormat() {		
+		return actionkey + "2" + format;
+	}
+
+
+	/**
+	 * TODO: this should be replaced by the diagnostics-mechanism
+	 * @return
+	 */
+	public String getUserMsg() {
+		return userMsg;
+	}
+
+	public void setUserMsg(String userMsg) {
+		this.userMsg = this.userMsg + "\n" + userMsg;
+	}
+	
+	/**
+	 * TODO: check what this does, where it is used?
+	 * @return
+	 */
+	@Override
+	public void setServletRequest(HttpServletRequest arg0) {
+		request = arg0;
+	}
+
+	public HttpServletRequest getServletRequest() {
+		return request;	
+	}
+
+	/**
+	 * The stream holding the resulting data to be sent back to the user as response
+	 * @return
+	 */
+	public InputStream getResultStream() {
+	        return resultStream;
+    }
+	public void setResultStream(InputStream _resultStream){
+		resultStream = _resultStream;
+	}
+	public void setSourceStream(InputStream _sourceStream){
+		sourceStream = _sourceStream;
+	}
+	
+	 
+	/**
+	 * Get the sourceStream from the target proxy	 
+	 * @return
+	 * @throws IOException
+	 * @throws NoStylesheetException
+	 */
+		public InputStream getSourceStream() throws IOException, NoStylesheetException {		
+			return getTargetProxy().getSourceStream(); 
+		}
+		
+	/**
+	 * Reads in all the parameters of the request into an internal structure.
+	 * the Map is not Map<String,String>, but rather Map<String,String[]>, 
+	 * ie the value is an array of Strings!
+	 * http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/1.5/api/javax/servlet/ServletRequest.html#getParameterMap%28%29
+	 * 
+	 * This shall allow more flexibility in using the parameters in the subclasses (and less getter/setter stuff)
+	 * at the cost of circumventing the Struts-way.
+	 */
+	@SuppressWarnings("unchecked")
+	protected void loadParams() {
+		params = getServletRequest().getParameterMap();
+	}
+
+	public Map<String,String[]> getParams() {		
+		return params;
+	}
+
+	
+	/**
+	 * This is for simplified access to the the values of the request-parameters 
+	 * They are stored in the parameters-map as a String-array, 
+	 * but in most(?) situations, we expect just a simple string. 
+	 * @param key
+	 * @return
+	 */
+	public String getParam(String key) {
+		String v = "";
+		if (!(params.get(key)==null)) v=(String)params.get(key)[0];
+		return v;
+	}
+
+	public String[] getParamArray(String key) {
+		String[] a = null;
+		if (!(params.get(key)==null)) a=(String[])params.get(key);
+		return a;
+	}
+
+	/**
+	 * Constructs an unambiguous key for the request (encoding all the parameters).
+	 * This is used as identifier for caching 
+	 * @return key unambiguously encoding the request
+	 */
+	
+	 public String getRequestKey() {
+			String key="";
+			if (getActionkey()!=null) {
+				key += getActionkey() + "//-" ;
+			}else {
+				key +="//-" ;
+			}
+			/*if (getQ()!=null) {
+				key += getQ() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getCollection()!=null) {
+				key += getCollection() + "//-";
+			} else {
+				key +="//-" ;
+			}
+			if (getSquery()!=null) {
+				key += getSquery() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getStartItem()!=null) {
+				key += getStartItem() + "//-";
+			}
+				else{
+					key +="//-" ;
+			}
+			if (getMaximumItems()!=null) {
+				key += getMaximumItems() + "//-";
+			}
+			else{
+				key +="//-" ;
+			}
+			
+			key += getRepository()  + "//-";
+			key += getMaxdepth()  + "//-";
+			
+			if (getLang()!=null) {
+				key += getLang() + "//-";
+			}else{
+				key +="//-" ;
+			}			
+			 */
+		return key;
+	}
+	
+	 
+	public String addDurationKey(){
+		String req_key = getRequestKey();
+	
+		Double duration_d;
+
+	    duration_d = (double)duration; 
+	    duration_d = duration_d/1000.0;
+		req_key += duration_d + "//-";
+		return req_key;
+	}
+	
+	public HashMap<String,String> createTransformerParams(){
+		
+		HashMap<String,String> hm = new HashMap<String,String>();
+		
+	    if (getFullFormat() != null){
+			hm.put("format", getFullFormat());
+	    }
+	    /*
+		if (getColumns() != null){
+			hm.put("cols", getColumns());
+		} else {
+			hm.put("cols", "");
+		}
+		if (getStartItem() != null){
+			hm.put("startItem", getStartItem());
+		}
+		if (getMaximumItems() != null){
+			hm.put("maximumItems", getMaximumItems());	
+		}
+		if (getLang() != null){
+			hm.put("lang", getLang());
+		}
+		if (getQ() != null){
+		  	hm.put("q", getQ());
+		}
+		//if (getRepository() != null){
+	        hm.put("repository_name", String.valueOf(getRepository()));
+	        hm.put("repository_type", WorkspaceProfile.getRepositoryType(this.getRepository()));
+		//}
+        */
+		return hm;
+		
+	}
+	
+	/**
+	 * This is the work-horse function.
+	 * It does two things: 
+	 * a) check if the source data is already in cache (based on cache-key that is constructed from the request parameters)
+	 * b) if format-parameter provided, invokes the transformation. 
+	 * at the end the data to be returned as result is contained in the resultStream
+	 * If format is xml, then the data from sourceStream is passed further as resultStream. 
+	 *    
+	 * @throws Exception  This is handled by struts (is mapped to some result in struts.xml based on the Exception-Class)
+	 */
+	
+	public void prepare() throws Exception {
+			
+		loadParams();
+		setTargetProxy();
+		getTargetProxy().checkParams();
+		
+		String req_key = getRequestKey();
+		log.debug("request_key: " +  req_key); 
+		log.debug("params.size: " +  params.size());
+		log.debug(getActionkey() + ".targetURL: " + getTargetProxy().getTargetRequest() + " .format:" + getFullFormat());
+		
+		// Caching
+		String xcid;
+	
+		if (getCache().equals(Cache.SKIP)) {
+			
+			sourceStream = getSourceStream();
+			
+		} else { 
+			if (getCache().equals(Cache.USE)) {
+					sourceStream = Cache.getCache().getFromCache(req_key);
+			}
+			if (sourceStream == null) { // either not in cache or cache_flag=refresh
+				//sourceStream = getTargetRequest().openStream();
+				long startMillis = System.currentTimeMillis();
+				sourceStream = getSourceStream();
+				duration = System.currentTimeMillis() - startMillis;
+				req_key = addDurationKey();
+				
+				long now = System.currentTimeMillis();
+				xcid = Cache.getCache().putInCache(req_key,sourceStream);			
+				//Admin.notifyUser("putting in cache: " + req_key);			
+				sourceStream = Cache.getCache().getFromCache(req_key);
+			} /* else {
+				Admin.notifyUser("reading from cache: " + req_key);
+			} */
+		}
+			
+		if (format.equals("xml")) {			
+			resultStream = sourceStream;	
+		}else {
+			MDTransformer transformer = new MDTransformer();
+			// set URL as srcFile (for MDTransformer to pass to xsl-scripts)
+			// TODO: WHY??
+			transformer.setSrcFile(getTargetProxy().getTargetRequest());
+			transformer.setParams(createTransformerParams());
+			// here the transformation is invoked
+			resultStream = transformer.transformXML(sourceStream);
+		}
+		
+		log.debug(getActionkey() + " success:" + (resultStream!=null));
+	}
+
+	/**
+	 * default Action method that gets called by Struts. Everything interesting happens in prepare()
+	 */
+	public String execute() throws Exception {
+//		HttpServletRequest request = ServletActionContext.getRequest();
+		//Admin.notifyUser("session-attrs:");
+        //Admin.notifyUser(getServletRequest().getRemoteUser() );
+        //Admin.notifyUser(String.valueOf(getSession()));
+        
+        long now = System.currentTimeMillis();
+
+		prepare();
+		long duration = (System.currentTimeMillis() - now);
+		//duration
+
+		if (resultStream == null) {
+			return ERROR;	
+		} else {
+			return SUCCESS;
+		}		
+	}
+
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java	(revision 1516)
@@ -0,0 +1,528 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.log4j.Logger;
+import org.apache.struts2.interceptor.ServletRequestAware;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.Cache;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Diagnostics;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+/**
+ * main Struts2 controller (ie implemenets the struts' execute()-method), all other Actions are derived from.   
+ * Defines the methods used for retrieving the data 
+ * and provides basic implementation where possible.
+ *  
+ * @author vronk
+ */
+public class GenericProxyAction extends GenericAction 
+implements ServletRequestAware 
+{
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("GenericProxyAction");
+	
+	private Diagnostics diagnostics;
+	/** 
+	 * Properties to be filled by Struts with according request-parameters
+	 */	
+	private String actionkey;
+	private String q;
+	private String squery;
+	private String cache = Cache.USE;
+	private String collection;
+	private String columns;
+	private String startItem;
+	private String maximumItems;
+	private String sort;
+	private String lang="en";
+	private int maxdepth;	
+	private String format;
+	private String options;
+	private String actionContentType;
+	private String userMsg;
+	private String repository;
+	//private Map<String,Object> session;
+	private HttpServletRequest request; 
+	private long duration = 0;
+	private InputStream resultStream;
+	private InputStream sourceStream;
+	protected URL base_url ;
+		
+	 public GenericProxyAction(){
+		 super();
+		 initialize();
+	 }
+	 
+	 public void setRepositoryByIndex(int id){
+		
+				net.sf.json.JSONArray json = WorkspaceProfile.getRepositories();
+				if (json.size() > 0){
+					repository = json.getJSONObject(id).getString("name");
+				}
+			
+	 }
+	 
+	 protected void  initialize(){
+		 //repository = 1;
+		 setRepositoryByIndex(0);				
+	 }
+	 
+	 
+	 public Diagnostics getDiagnostics(){
+		 return this.diagnostics;
+	 }
+	 
+	 public void setDiagnostics(Diagnostics diagnostics){
+		 this.diagnostics = diagnostics;
+	 }
+	 public Diagnostics Diagnostics(){
+		 if (diagnostics == null){
+			 diagnostics  = new Diagnostics();
+		 }
+		 return this.diagnostics;
+	 }
+	public String getQ() {
+		return q;
+	}
+
+	public void setQ(String pq) {
+		if (pq == null) pq="";
+		/*
+		if (q != null){
+			if (q.trim().length() == 0){
+				q = null;
+			}
+		}
+		*/
+		this.q = pq;
+	}
+
+	public String getSquery() {
+		return squery;
+	}
+
+	public void setSquery(String psquery) {
+		if (psquery==null) psquery="";
+		this.squery = psquery;
+	}
+	
+	public String getCache() {
+		return cache;
+	}
+
+	public void setCache(String cache) {
+		this.cache = cache;
+	}
+
+	public String getCollection() {
+		return collection;
+	}
+
+	public void setCollection(String collection) {
+		this.collection = collection;
+	}
+	
+	//TODO defaults
+	public String getColumns() {
+		String cols = columns;
+		/*if (columns == null){
+			cols = "Id,Name,Title";
+		}
+		*/
+		return cols;
+	}
+
+	public void setColumns(String columns) {
+		this.columns = columns;
+	}
+	
+	public int getMaxdepth() {
+		return maxdepth;
+	}
+
+	public void setMaxdepth(int maxdepth) {
+		this.maxdepth = maxdepth;
+	}
+
+	public String getFormat() {
+		return format;
+	}
+
+	public void setFormat(String format) {
+		this.format = format;
+	}
+
+	public String getOptions() {
+		return options;
+	}
+
+	public void setOptions(String options) {
+		this.options = options;
+	}
+
+	/**
+	 * is used in struts.xml to dynamically set the mime-type of the result, depending on the format-parameter
+	 * @return
+	 */
+	public String getActionContentType() {
+		if (format.toLowerCase().startsWith("html")) {
+			this.actionContentType = "text/html";		
+			//this.actionContentType = "application/xhtml+xml";
+		} else {
+			this.actionContentType = "text/xml";
+		}
+		
+		return actionContentType;
+	}
+
+	public void setActionContentType(String actionContentType) {
+		this.actionContentType = actionContentType;
+	}
+	
+
+	public void setRepository(String repository) {
+		this.repository = repository;
+	}
+	
+	public String getRepository() {
+		//default repository = 1 (set on init)
+		return repository;
+	}
+	public String getActionkey() {
+		return actionkey;
+	}
+
+	public void setActionkey(String actionKey) {
+		actionkey = actionKey;
+	}
+
+	
+	public String getStartItem() {
+		return startItem;
+	}
+
+	public void setStartItem(String startItem) {
+		this.startItem = startItem;
+	}
+
+	public String getMaximumItems() {
+		return maximumItems;
+	}
+
+	public void setMaximumItems(String maximumItems) {
+		this.maximumItems = maximumItems;
+	}
+	
+
+	public String getSort() {
+		return sort;
+	}
+
+	public void setSort(String sort) {
+		this.sort = sort;
+	}
+
+	public String getLang() {
+		return lang;
+	}
+
+	public void setLang(String lang) {
+		this.lang = lang;
+	}
+
+	public String getFullFormat() {		
+		return actionkey + "2" + format;
+	}
+
+	/**
+	 * internal identification of the target-proxy
+	 * base for finding the right base_url in the properties
+	 * subclass has to override with its specific proxykey
+	 * @return the key identifying this type of proxy
+	 */
+	public String getProxyKey() {
+		return "";
+	}
+	
+	/**
+	 * TODO: check what this does, where it is used?
+	 * @return
+	 */
+	public String getUserMsg() {
+		return userMsg;
+	}
+
+	public void setUserMsg(String userMsg) {
+		this.userMsg = this.userMsg + "\n" + userMsg;
+	}
+	
+	/**
+	 * TODO: check what this does, where it is used?
+	 * @return
+	 */
+	@Override
+	public void setServletRequest(HttpServletRequest arg0) {
+		request = arg0;
+	}
+
+	public HttpServletRequest getServletRequest() {
+		return request;
+	}
+
+	/**
+	 * The stream holding the resulting data to be sent back to the user as response
+	 * @return
+	 */
+	public InputStream getResultStream() {
+	        return resultStream;
+    }
+	public void setResultStream(InputStream _resultStream){
+		resultStream = _resultStream;
+	}
+	public void setSourceStream(InputStream _sourceStream){
+		sourceStream = _sourceStream;
+	}
+	
+	/*
+	public InputStream getSourceStream() throws IOException {
+	        return getTargetRequest().openStream();
+    }
+*/
+	
+	
+	/**
+	 * Reads URI from the configuration (mdservice.properties) based on the proxy-key
+	 * @return the base-URI of the target repository or registry
+	 */
+	public String getBaseURI() {		
+		String uri =Admin.getConfig().getProperty(getProxyKey() + ".uri");		
+		return uri;
+	}
+
+	/**
+	 * Provides the base-URL specific to given target repository or registry 
+	 * @return
+	 * @throws MalformedURLException
+	 */	
+	public URL getBaseURL() throws MalformedURLException {		
+		if (base_url == null) {
+			base_url = new URL(getBaseURI());//Admin.getConfig().getProperty(getProxyKey() + ".uri"));
+		}
+		return base_url;
+	}
+	
+	/**
+	 * Constructs the actual URL to be send to the target repository/registry
+	 * It has to be overridden by the subclasses 
+	 * as every target service has a different request-pattern.  
+	 * @return URL of the target request 
+	 * @throws IOException
+	 */
+	public URL getTargetRequest() throws IOException {
+		URL targetURL = getBaseURL();                      
+        return targetURL;
+	}
+	
+	/**
+	 * Constructs an unambiguous key for the request (encoding all the parameters).
+	 * This is used as identifier for caching 
+	 * @return key unambiguously encoding the request
+	 */
+	
+	 public String getRequestKey() {
+			String key="";
+			if (getActionkey()!=null) {
+				key += getActionkey() + "//-" ;
+			}else {
+				key +="//-" ;
+			}
+			if (getQ()!=null) {
+				key += getQ() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getCollection()!=null) {
+				key += getCollection() + "//-";
+			} else {
+				key +="//-" ;
+			}
+			if (getSquery()!=null) {
+				key += getSquery() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getStartItem()!=null) {
+				key += getStartItem() + "//-";
+			}
+				else{
+					key +="//-" ;
+			}
+			if (getMaximumItems()!=null) {
+				key += getMaximumItems() + "//-";
+			}
+			else{
+				key +="//-" ;
+			}
+			
+			key += getRepository()  + "//-";
+			key += getMaxdepth()  + "//-";
+			
+			if (getLang()!=null) {
+				key += getLang() + "//-";
+			}else{
+				key +="//-" ;
+			}			
+			 
+		return key;
+	}
+	 
+	 
+	public InputStream getSourceStream() throws IOException, NoStylesheetException {		
+		return getTargetRequest().openStream();
+ 
+	}
+	
+	
+	
+		public String addDurationKey(){
+		String req_key = getRequestKey();
+	
+		Double duration_d;
+
+	    duration_d = (double)duration; 
+	    duration_d = duration_d/1000.0;
+		req_key += duration_d + "//-";
+		return req_key;
+	}
+	
+	public HashMap<String,String> createTransformerParams(){
+		
+		HashMap<String,String> hm = new HashMap<String,String>();
+		
+	    if (getFullFormat() != null){
+			hm.put("format", getFullFormat());
+	    }
+		if (getColumns() != null){
+			hm.put("cols", getColumns());
+		} else {
+			hm.put("cols", "");
+		}
+		if (getStartItem() != null){
+			hm.put("startItem", getStartItem());
+		}
+		if (getMaximumItems() != null){
+			hm.put("maximumItems", getMaximumItems());	
+		}
+		if (getLang() != null){
+			hm.put("lang", getLang());
+		}
+		if (getQ() != null){
+		  	hm.put("q", getQ());
+		}
+		//if (getRepository() != null){
+	        hm.put("repository_name", String.valueOf(getRepository()));
+	        hm.put("repository_type", WorkspaceProfile.getRepositoryType(this.getRepository()));
+		//}
+        
+		return hm;
+		
+	}
+	
+	/**
+	 * This is the work-horse function.
+	 * It does two things: 
+	 * a) check if the source data is already in cache (based on cache-key that is constructed from the request parameters)
+	 * b) if format-parameter provided, invokes the transformation. 
+	 * at the end the data to be returned as result is contained in the resultStream
+	 * If format is xml, then the data from sourceStream is passed further as resultStream. 
+	 *    
+	 * @throws Exception  This is handled by struts (is mapped to some result in struts.xml based on the Exception-Class)
+	 */
+	
+	public void prepare() throws Exception {		
+		
+		String req_key = getRequestKey();
+		Admin.notifyUser("request_key: " +  req_key); 
+		Admin.notifyUser(getProxyKey() + ".targetURL: " + getTargetRequest() + " .format:" + getFullFormat());
+		
+		// Caching
+		String xcid;
+	
+		// Admin.notifyUser("GPA.prepareSourceStream");
+		
+		if (getCache().equals(Cache.SKIP)) {
+			
+			sourceStream = getSourceStream();
+			
+		} else { 
+			if (getCache().equals(Cache.USE)) {
+					sourceStream = Cache.getCache().getFromCache(req_key);
+			}
+			if (sourceStream == null) { // either not in cache or cache_flag=refresh
+				//sourceStream = getTargetRequest().openStream();
+				long startMillis = System.currentTimeMillis();
+				sourceStream = getSourceStream();
+				duration = System.currentTimeMillis() - startMillis;
+				req_key = addDurationKey();
+				
+				long now = System.currentTimeMillis();
+				xcid = Cache.getCache().putInCache(req_key,sourceStream);			
+				//Admin.notifyUser("putting in cache: " + req_key);			
+				sourceStream = Cache.getCache().getFromCache(req_key);
+			} /* else {
+				Admin.notifyUser("reading from cache: " + req_key);
+			} */
+		}
+			
+		if (format.equals("xml")) {			
+			resultStream = sourceStream;	
+		}else {
+			MDTransformer transformer = new MDTransformer();
+			// set URL as srcFile (for MDTransformer to pass to xsl-scripts)
+			// TODO: WHY??
+			transformer.setSrcFile(getTargetRequest());
+			transformer.setParams(createTransformerParams());
+			// here the transformation is invoked
+			resultStream = transformer.transformXML(sourceStream);
+		}
+			
+		log.debug(getProxyKey() + " success:" + (resultStream!=null));
+	}
+
+	/**
+	 * default Action method that gets called by Struts. Everything interesting happens in prepare()
+	 */
+	public String execute() throws Exception {
+//		HttpServletRequest request = ServletActionContext.getRequest();
+
+		
+		//Admin.notifyUser("session-attrs:");
+        //Admin.notifyUser(getServletRequest().getRemoteUser() );
+        //Admin.notifyUser(String.valueOf(getSession()));
+        
+        long now = System.currentTimeMillis();
+
+		prepare();
+		long duration = (System.currentTimeMillis() - now);
+		//duration
+
+		if (resultStream == null) {
+			return ERROR;	
+		} else {
+			return SUCCESS;
+		}		
+	}
+
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericWorkspaceAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericWorkspaceAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericWorkspaceAction.java	(revision 1516)
@@ -0,0 +1,200 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.BufferedInputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.apache.log4j.Logger;
+
+import com.opensymphony.xwork2.ActionSupport;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+
+/**
+ *
+ * @author gaba 
+ *
+ */
+public class GenericWorkspaceAction extends ActionSupport 
+{
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("GenericWorkspaceAction");
+	
+	/** 
+	 * Properties to be filled by Struts with according request-parameters
+	 */	
+	private String actionkey;
+	private String q;
+	private String id;
+	private String format;
+	private String userMsg;
+	
+	private String base_path;
+	
+	public String getQ() {
+		return q;
+	}
+
+	public void setQ(String q) {
+		this.q = q;
+	}
+
+	public String getID() {
+		return id;
+	}
+
+	public void setID(String _id) {
+		this.id = _id;
+	}
+	
+	public String getFormat() {
+		return format;
+	}
+
+	public void setFormat(String format) {
+		this.format = format;
+	}
+	
+	public String getActionkey() {
+		return actionkey;
+	}
+
+	public void setActionkey(String actionKey) {
+		actionkey = actionKey;
+	}
+
+	/**
+	 * primitive identification of the target-proxy
+	 * base for finding the right base_url in the props
+	 * subclass has to override with its specific proxykey
+	 * @return
+	 */
+	public String getProxyKey() {
+		return "";
+	}
+	
+	public String getUserMsg() {
+		return userMsg;
+	}
+
+	public void setUserMsg(String userMsg) {
+		this.userMsg = this.userMsg + "\n" + userMsg;
+	}
+
+
+	private InputStream resultStream;
+	private InputStream sourceStream;
+
+	/**
+	 * The stream holding the resulting data to be sent back to the user as response
+	 * @return
+	 */
+	public InputStream getResultStream() {
+	        return resultStream;
+    }
+	public void setResultStream(InputStream _resultStream){
+		resultStream = _resultStream;
+	}
+	public void setSourceStream(InputStream _sourceStream){
+		sourceStream = _sourceStream;
+	}
+	
+	
+	public URL getBaseURL() {
+		File file=new File(getPath());
+	    URL url=null;
+	    try{
+		    url=file.toURI().toURL(); 
+		    Admin.notifyUser(" JSON TEST: url "  + url);
+	    } catch (MalformedURLException e){
+	    	Admin.notifyUser("JSON exception has been caught" + e);
+	    }
+	    
+	    return url;
+	}
+	
+	public String getBasePath() {		
+		if (base_path == null) {
+			base_path = Admin.getConfig().getProperty(getProxyKey() + ".path");
+		}
+		return base_path;
+	}
+	//TODO identification of WOrkspaceProfile (user, name, id)
+	public String getWorkspaceProfile() {
+		return "WorkspaceProfile.xml";
+	}
+	
+	public String getFullFormat() {
+		return "xml2json";
+	}
+	
+	public URL getURL() {
+		File file=new File(getPath());
+	    URL url=null;
+	    try{
+		    url=file.toURI().toURL();
+		    //Admin.notifyUser("url "  + url);
+	    } catch (MalformedURLException e){
+	    	//Admin.notifyUser("" + e);
+	    }
+		return url;
+	}
+	
+	
+	public String getPath() {
+		String targetPath = getBasePath() + getWorkspaceProfile();	   
+                      
+        return targetPath;
+	}
+
+	public InputStream getSourceStream() throws IOException {	
+		InputStream stream = new BufferedInputStream( new FileInputStream(getPath()));
+		
+		return   stream;
+	}
+	
+	public InputStream  getPart(InputStream stream){
+		return stream;
+	}
+	
+	public void prepare() throws Exception {		
+		
+		//Admin.notifyUser(getProxyKey() + ".targetURL: " + getTargetRequest() + " .format:" + getFullFormat());		
+		sourceStream = getSourceStream(); 
+		if (format.equals("xml")) {			
+			resultStream = sourceStream;	
+		}else { //JSON
+			// set srcFile (for MDTransformer to pass to xsl-scripts) 
+			MDTransformer transformer = new MDTransformer();
+			transformer.setSrcFile(getURL());
+			//InputStream tmp_s =  MDTransformer.getMDTransformer().transformXML(sourceStream, "attr2elements");
+			transformer.setParams(MDTransformer.createParamsMap(getFullFormat()));
+			InputStream s =  transformer.transformXML(sourceStream);//, getFullFormat());
+			resultStream = getPart(s);
+		}
+			
+		log.debug(getProxyKey() + " success:" + (resultStream!=null));
+	}
+
+	/**
+	 * default Action method
+	 */
+	public String execute() throws Exception {
+		
+		prepare();
+		if (resultStream == null) {
+			return ERROR;	
+		} else {
+			return SUCCESS;
+		}		
+	}
+	
+	
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/Pz2Action.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/Pz2Action.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/Pz2Action.java	(revision 1516)
@@ -0,0 +1,93 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.HashMap;
+import java.io.ByteArrayInputStream;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+import eu.clarin.cmdi.mdservice.internal.Cache;
+import eu.clarin.cmdi.mdservice.model.Query;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+/**
+ 
+ */
+public class Pz2Action extends RepoAction {
+
+	private static final long serialVersionUID = 1L;
+
+	private String proxy_key = "pazpar2";
+	
+	private String command;
+	private String query;
+	private String sessionID;
+	private String sort;
+	private String block;
+	
+	public void setCommand(String command) {
+		this.command = command;
+	}
+	public String getCommand() {
+		return command;
+	}
+	public void setQuery(String query) {
+		this.query = query;
+	}
+	public String getQuery() {
+		return query;
+	}
+	public void setSessionID(String sessionID) {
+		this.sessionID = sessionID;
+	}
+	public String getSessionID() {
+		return sessionID;
+	}
+
+	public void setSort(String sort) {
+		this.sort = sort;
+	}
+	public String getSort() {
+		return sort;
+	}
+	public void setBlock(String block) {
+		this.block = block;
+	}
+	public String getBlock() {
+		return block;
+	}
+	
+	//TODO cache after analysis
+	@Override
+	public String getCache() {
+		return Cache.SKIP;
+	}
+		
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/RepoAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/RepoAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/RepoAction.java	(revision 1516)
@@ -0,0 +1,294 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.BufferedInputStream;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
+import javax.xml.transform.TransformerException;
+
+import net.sf.json.JSON;
+import net.sf.json.JSONArray;
+import net.sf.json.JSONObject;
+import net.sf.json.JSONSerializer;
+//import net.sf.saxon.Controller;
+//import net.sf.saxon.event.MessageEmitter;
+
+
+import org.apache.log4j.Logger;
+import org.apache.struts2.interceptor.ServletRequestAware;
+import com.opensymphony.xwork2.ActionSupport;
+
+import eu.clarin.cmdi.mdservice.internal.Cache;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Diagnostic;
+import eu.clarin.cmdi.mdservice.model.Diagnostics;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+import eu.clarin.cmdi.mdservice.proxy.MDRepoProxy;
+import eu.clarin.cmdi.mdservice.proxy.Pz2Proxy;
+import eu.clarin.cmdi.mdservice.proxy.SRUProxy;
+
+/**
+ * a Struts2 controller, responsible for calls to repositories.
+ * After 2011-09 rework Action and Proxy are decoupled.
+ * So Action calls appropriate Proxy based upon the target repository type
+ * 
+ * responds to requests (collections, model, recordset) 
+ * by dispatching the requests to appropriate Proxy and filling the inputStream with the result
+ * It is possible to switch target-repository dynamically  (on every request). I.e. the client explicitly selects one of the repositories.
+ *
+ *  
+ * @author vronk
+ */
+public class RepoAction extends GenericAction 
+//implements ServletRequestAware 
+{
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("RepoAction");
+	
+	/** 
+	 * Properties to be filled by Struts with according request-parameters
+	 */	
+	private String actionkey;
+	
+	private String squery;	
+	private String collection;
+	private String columns;
+	private String startItem;
+	private String maximumItems;
+	private String sort;	
+	private int maxdepth;	
+	private String format="xml"; // default no transformation
+	private String options;
+
+	//private Map<String,Object> session;
+	protected URL base_url ;
+
+	
+
+	/**
+	 * Based on the repository type - we create a typed Proxy, that will do the work.
+	 * If the type is not recognized - that is a bad user error    
+	 */
+		public void setTargetProxy(){
+						
+			if (getRepository()==null) setRepository("clarin.at-mirror");
+			
+			switch (WorkspaceProfile.RepositoryType.toRepositoryType(WorkspaceProfile.getRepositoryType(getRepository())))
+			{		
+			    case PAZPAR: 
+			    	setTargetProxy(new Pz2Proxy());
+			    case SRU:
+			    	setTargetProxy(new SRUProxy());
+			    case MD:
+			    	setTargetProxy(new MDRepoProxy());
+			    default:
+			    	getDiagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "repository", "repository=" + getRepository() );
+			}
+			
+		}
+	
+	public String getSquery() {
+		return squery;
+	}
+
+	public void setSquery(String psquery) {
+		if (psquery==null) psquery="";
+		this.squery = psquery;
+	}
+	
+	public String getCollection() {
+		return collection;
+	}
+
+	public void setCollection(String collection) {
+		this.collection = collection;
+	}
+	
+	//TODO defaults
+	public String getColumns() {
+		String cols = columns;
+		/*if (columns == null){
+			cols = "Id,Name,Title";
+		}
+		*/
+		return cols;
+	}
+
+	public void setColumns(String columns) {
+		this.columns = columns;
+	}
+	
+	public int getMaxdepth() {
+		return maxdepth;
+	}
+
+	public void setMaxdepth(int maxdepth) {
+		this.maxdepth = maxdepth;
+	}
+
+	public String getFormat() {
+		return format;
+	}
+
+	public void setFormat(String format) {
+		this.format = format;
+	}
+
+	public String getOptions() {
+		return options;
+	}
+
+	public void setOptions(String options) {
+		this.options = options;
+	}
+
+	
+	public String getActionkey() {
+		return actionkey;
+	}
+
+	public void setActionkey(String actionKey) {
+		actionkey = actionKey;
+	}
+
+	
+	public String getStartItem() {
+		return startItem;
+	}
+
+	public void setStartItem(String startItem) {
+		this.startItem = startItem;
+	}
+
+	public String getMaximumItems() {
+		return maximumItems;
+	}
+
+	public void setMaximumItems(String maximumItems) {
+		this.maximumItems = maximumItems;
+	}
+	
+
+	public String getSort() {
+		return sort;
+	}
+
+	public void setSort(String sort) {
+		this.sort = sort;
+	}
+
+	
+	public String getFullFormat() {		
+		return actionkey + "2" + format;
+	}
+
+	/**
+	 * internal identification of the target-proxy
+	 * base for finding the right base_url in the properties
+	 * subclass has to override with its specific proxykey
+	 * @return the key identifying this type of proxy
+	 */
+	public String getProxyKey() {
+		return "";
+	}
+		
+	/**
+	 * Constructs an unambiguous key for the request (encoding all the parameters).
+	 * This is used as identifier for caching 
+	 * @return key unambiguously encoding the request
+	 */
+	
+	 public String getRequestKey() {
+			String key="";
+			if (getActionkey()!=null) {
+				key += getActionkey() + "//-" ;
+			}else {
+				key +="//-" ;
+			}
+			if (getQ()!=null) {
+				key += getQ() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getCollection()!=null) {
+				key += getCollection() + "//-";
+			} else {
+				key +="//-" ;
+			}
+			if (getSquery()!=null) {
+				key += getSquery() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getStartItem()!=null) {
+				key += getStartItem() + "//-";
+			}
+				else{
+					key +="//-" ;
+			}
+			if (getMaximumItems()!=null) {
+				key += getMaximumItems() + "//-";
+			}
+			else{
+				key +="//-" ;
+			}
+			
+			key += getRepository()  + "//-";
+			key += getMaxdepth()  + "//-";
+			
+			if (getLang()!=null) {
+				key += getLang() + "//-";
+			}else{
+				key +="//-" ;
+			}			
+			 
+		return key;
+	}
+	 
+		
+	public HashMap<String,String> createTransformerParams(){
+		
+		HashMap<String,String> hm = new HashMap<String,String>();
+		
+	    if (getFullFormat() != null){
+			hm.put("format", getFullFormat());
+	    }
+		if (getColumns() != null){
+			hm.put("cols", getColumns());
+		} else {
+			hm.put("cols", "");
+		}
+		if (getStartItem() != null){
+			hm.put("startItem", getStartItem());
+		}
+		if (getMaximumItems() != null){
+			hm.put("maximumItems", getMaximumItems());	
+		}
+		if (getLang() != null){
+			hm.put("lang", getLang());
+		}
+		if (getQ() != null){
+		  	hm.put("q", getQ());
+		}
+		//if (getRepository() != null){
+	        hm.put("repository_name", String.valueOf(getRepository()));
+	        hm.put("repository_type", WorkspaceProfile.getRepositoryType(this.getRepository()));
+		//}
+        
+		return hm;
+		
+	}
+	
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/SRUAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/SRUAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/SRUAction.java	(revision 1516)
@@ -0,0 +1,517 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.StringWriter;
+import java.io.UnsupportedEncodingException;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.TransformerFactoryConfigurationError;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+import eu.clarin.cmdi.mdservice.internal.Cache;
+
+
+
+
+public class SRUAction extends RepoAction 
+{
+
+	private static final long serialVersionUID = 1L;
+	
+	/** 
+	 * Properties to be filled by Struts with according request-parameters
+	 */	
+	private String q;
+	private String version;
+	private String operation;
+	private String query;
+	private String scanClause;
+	private int startRecord;
+	private int maximumRecords;
+	private String recordPacking;
+	private String recordSchema;
+	private String recordXPath;
+	private int resultSetTTL;
+	private String sortKeys;
+	private String stylesheet;	
+	private String x_cmd_repository;
+	private String x_cmd_collections;
+	private Set paramSet;
+
+	
+	private static int OP_SEARCHRETRIEVE = 1;
+	private static int OP_EXPLAIN = 2;
+	private static int OP_SCAN = 3;
+	
+	
+	//TODO cache after analysis ?
+	@Override
+	public String getCache() {
+		return Cache.SKIP;
+	}
+	
+	private final static HashMap<String,String> hash_operations = new HashMap<String,String>();
+	 static
+	 {	 
+		 hash_operations.put("searchRetrieve", "recordset");
+		 hash_operations.put("explain", "model"); /* could be terms*/ 
+		 hash_operations.put("scan", "values");
+	 }
+	 
+	 private final static HashMap<String,Integer> operation_code = new HashMap<String,Integer>();
+	 static
+	 {	 
+		 operation_code.put("searchRetrieve", OP_SEARCHRETRIEVE);
+		 operation_code.put("explain", OP_EXPLAIN);
+		 operation_code.put("scan", OP_SCAN);
+	 }
+	 
+	 public SRUAction(){
+		 super();
+		 initialize();
+	 }
+	 
+	 protected void  initialize(){
+		 //repository = 1;
+		 this.startRecord = 1;
+		 this.maximumRecords = 50;
+		 
+		 if (getServletRequest() != null){
+			 this.setX_cmd_repository(getServletRequest().getParameter("x-cmd-repository"));
+			//this.setRepository(this.getX_cmd_repository());
+			 paramSet = getServletRequest().getParameterMap().entrySet();			 
+		 }
+		 
+	 }
+	
+	 public String getQ() {
+			return q;
+		}
+
+		public void setQ(String q) {
+			this.q = q;
+		}
+	 
+
+	public String getVersion() {
+		return version;
+	}
+
+	public void setVersion(String version) {
+		this.version = version;
+	}
+
+	public String getOperation() {
+		return operation;
+	}
+
+	public void setOperation(String operation) {
+		this.operation = operation;
+	}
+	
+	public String getQuery() {
+		return query;
+	}
+
+	public void setQuery(String query) {
+		this.query = query;
+	}
+
+	public String getScanClause() {
+		return scanClause;
+	}
+
+	public void setScanClause(String scanClause) {
+		this.scanClause = scanClause;
+	}
+
+	
+	public int getStartRecord() {
+		return startRecord;
+	}
+
+	public void setStartRecord(int startRecord) {
+		this.startRecord = startRecord;
+	}
+	public int getMaximumRecords() {
+		return maximumRecords;
+	}
+
+	public void setMaximumRecords(int maximumRecords) {
+		this.maximumRecords = maximumRecords;
+	}
+	
+	public String getRecordPacking() {
+		return recordPacking;
+	}
+
+	public void setRecordPacking(String recordPacking) {
+		this.recordPacking = recordPacking;
+	}
+
+	public String getRecordSchema() {
+		return recordSchema;
+	}
+
+	public void setRecordSchema(String recordSchema) {
+		this.recordSchema = recordSchema;
+	}
+
+	public String getRecordXPath() {
+		return recordXPath;
+	}
+
+	public void setRecordXPath(String recordXPath) {
+		this.recordXPath = recordXPath;
+	}
+
+	public int getResultSetTTL() {
+		return resultSetTTL;
+	}
+
+	public void setResultSetTTL(int resultSetTTL) {
+		this.resultSetTTL = resultSetTTL;
+	}
+	
+	public String getSortKeys() {
+		return sortKeys;
+	}
+
+	public void setSortKeys(String sortKeys) {
+		this.sortKeys = sortKeys;
+	}
+		
+	public String getStylesheet() {
+		return stylesheet;
+	}
+
+	public void setStylesheet(String stylesheet) {
+		this.stylesheet = stylesheet;
+	}
+	
+	public String getX_cmd_repository(){
+		return x_cmd_repository;
+	}
+	
+	public void setX_cmd_repository(String x_cmd_repository){
+		this.x_cmd_repository = x_cmd_repository;
+	}
+
+	public String getX_cmd_collections(){
+		return x_cmd_collections;
+	}
+	
+	public void setX_cmd_collections(String x_cmd_collections){
+		this.x_cmd_collections = x_cmd_collections;
+	}
+
+	
+	public String getDiagnosticStreamName() throws TransformerConfigurationException, UnsupportedEncodingException, ParserConfigurationException, TransformerException, TransformerFactoryConfigurationError{
+		this.setResultStream(getDiagnostics().buildXMLStream());
+		return "resultStream";
+	}
+	/**
+	 * primitive identification of the target-proxy
+	 * base for finding the right base_url in the props
+	 * subclass has to override with its specific proxykey
+	 * @return
+	 */
+	public String getProxyKey() {
+		return "";
+	}
+	/*
+	@Override
+	public String getBaseURI() {		
+		Admin.notifyUser("SRU-repositorypath:" + WorkspaceProfile.getRepositoryPath(getRepository()));
+		String uri = WorkspaceProfile.getRepositoryPath(getRepository());//Admin.getConfig().getProperty(getProxyKey() + ".uri");		
+		return uri;
+	}
+	*/
+	
+	/* 
+	public void prepareOperation() throws UnsupportedEncodingException{
+		
+		mdrepoproxyaction = new MDRepoProxyAction();
+		mdrepoproxyaction.setDiagnostics(diagnostics);
+		mdrepoproxyaction.setActionkey(hash_operations.get(this.getOperation()));
+		
+		// set the SRU extern property in proxyaction
+		if (this.getX_cmd_repository() != null ) {
+			mdrepoproxyaction.setRepository(this.getX_cmd_repository());
+			//TODO\
+			if (mdrepoproxyaction.getBaseURI() == null) this.Diagnostics().Add(Diagnostic.UNSUPPORTED_PARAMETERVALUE, "Unknown repository." + getX_cmd_repository());
+		}
+		
+		if (operation.equals("searchRetrieve")){
+			
+			//query
+			mdrepoproxyaction.setSquery("");
+			if (this.query == null) {
+				this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "query");
+				//return -1;
+			}
+			mdrepoproxyaction.setQ(getQuery());			
+			mdrepoproxyaction.setFormat("xml");
+			
+			if ((this.startRecord < 0 ) ||((getServletRequest().getParameter("startRecord") != null)&&(getServletRequest().getParameter("startRecord").equals("0")))) {
+				this.Diagnostics().Add(new Diagnostic(Diagnostic.UNSUPPORTED_PARAMETERVALUE, "startRecord must by grater than 0."));//,Diagnostic.NONFATALNONSURORGATE));
+				//mdrepoproxyaction.setStartItem("1");
+			} else {
+				mdrepoproxyaction.setStartItem(Integer.toString(getStartRecord()));
+			}
+		
+			if ((this.maximumRecords < 0 ) ||((getServletRequest().getParameter("maximumRecords") != null) && (getServletRequest().getParameter("maximumRecords").equals("0")))){
+				   this.Diagnostics().Add(new Diagnostic(Diagnostic.UNSUPPORTED_PARAMETERVALUE, 
+						   "maximumRecords must by greater than 0."));
+			} else {
+				mdrepoproxyaction.setMaximumItems(Integer.toString(this.getMaximumRecords()));	
+			}
+			
+			if (this.getX_cmd_repository() != null ) {
+				mdrepoproxyaction.setRepository(this.getX_cmd_repository());
+				//TODO\
+				if (mdrepoproxyaction.getBaseURI() == null) this.Diagnostics().Add(Diagnostic.UNSUPPORTED_PARAMETERVALUE, "Unknown repository." + getX_cmd_repository());
+			}
+			if (this.getX_cmd_collections() != null ) {
+				mdrepoproxyaction.setCollection(this.getX_cmd_collections());
+			}
+
+		} else {
+			if (operation.equals("explain") || operation == null){
+				Admin.notifyUser("explaining", "debug");
+			}else {
+				if (operation.equals("scan")){
+					if (this.scanClause == null) {
+						this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "scanClause");
+						//return -1;
+					} else{
+						if (this.scanClause.equals("cmd.Collections")){
+							
+						} else {
+							if (this.scanClause.equals("cmd.Repository")){
+								XMLSerializer xmlserializer = new XMLSerializer();
+								String xml = xmlserializer.write( WorkspaceProfile.getRepositories());//mdrepoproxyaction.getRepositories() );  
+								this.setResultStream(new ByteArrayInputStream(xml.getBytes("UTF-8"))); 
+
+							} else {
+								
+							}
+						}
+					}
+				}else {
+					this.Diagnostics().Add(Diagnostic.UNSUPPOERTED_OPERATION, "Only searchRetrieve,explain scan supported.");				}
+			}
+		}
+	}
+	
+	public void sru2MD() throws UnsupportedEncodingException{
+		// special handling of parameter setting, x-cmd-... not alowed in java
+		this.setX_cmd_collections(getServletRequest().getParameter("x-cmd-collections"));		
+		// root call own SRU SERVER
+		//operation
+		if (operation.equals("explain") || operation == null){
+			// TODO: version param is mandatory for explain as well, but for root-request not!
+			//explain
+			termsproxyaction = new TermsProxyAction();
+			termsproxyaction.setDiagnostics(diagnostics);
+			termsproxyaction.setActionkey("terms");
+			
+			termsproxyaction.setQ("all");			
+			termsproxyaction.setFormat("sru-explain");			
+			
+			//return -1;
+		} else {				
+			//version		
+			if (this.version == null) {
+				this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "version");
+				//return -1;
+			} else {
+				if (!version.equals("1.2")) {
+					this.Diagnostics().Add(Diagnostic.UNSUPPORTED_VERSION, "Version 1.2 supported.");
+					//return -1;
+				}
+			}
+			
+			prepareOperation();
+		}
+		
+	}
+	
+	public void  prepareMD() throws Exception{
+		sru2MD();
+		if (Diagnostics().Accepted()){
+			// root-explain
+			if (this.termsproxyaction != null) {			
+				if (this.termsproxyaction.execute() == SUCCESS){
+					this.setResultStream(this.termsproxyaction.getResultStream());
+					//return SUCCESS;
+				}
+			} else {
+				//TODO diagnostic			 
+				if (this.mdrepoproxyaction.getTargetRequest() == null) {
+					Diagnostics().Add(Diagnostic.QUERYSYNTAXERROR);
+					//return ERROR;
+				}
+				if (this.mdrepoproxyaction.execute() == SUCCESS){
+					this.setResultStream(this.mdrepoproxyaction.getResultStream());
+					postprocess();
+					//return SUCCESS;
+				}
+			}
+		}
+		//return ERROR;
+	}
+	*/
+/** TODO: move to Utils
+ * 
+ * @param stream
+ * @return
+ * @throws IOException
+ */
+	public static String inputStreamAsString(InputStream stream)
+		throws IOException {
+		BufferedReader br = new BufferedReader(new InputStreamReader(stream));
+		StringBuilder sb = new StringBuilder();
+		String line = null;
+
+		while ((line = br.readLine()) != null) {
+		sb.append(line + "\n");
+		}
+
+		br.close();
+		return sb.toString();
+	}
+
+	 public static Document newDocumentFromInputStream(InputStream in) {
+		    DocumentBuilderFactory factory = null;
+		    DocumentBuilder builder = null;
+		    Document ret = null;
+
+		    try {
+		      factory = DocumentBuilderFactory.newInstance();
+		      builder = factory.newDocumentBuilder();
+		    } catch (ParserConfigurationException e) {
+		      e.printStackTrace();
+		    }
+
+		    try {
+		      ret = builder.parse(new InputSource(in));
+		    } catch (SAXException e) {
+		      e.printStackTrace();
+		    } catch (IOException e) {
+		      e.printStackTrace();
+		    }
+		    return ret;
+		  }
+
+
+	public void postprocess() throws TransformerConfigurationException, UnsupportedEncodingException, ParserConfigurationException, TransformerException, TransformerFactoryConfigurationError{
+		//recordPacking
+		if (this.getRecordPacking() != null){
+			if (this.getRecordPacking().toLowerCase().equals("string")){
+				/*
+				try {
+					// FIXME: Which package is IOUTils from? 
+					this.setResultStream(IOUtils.toInputStream(StringEscapeUtils.escapeXml(inputStreamAsString(this.getResultStream()))));
+				} catch (IOException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}*/
+
+			}
+		}
+		
+		// add diagnostics
+		if (getDiagnostics().Exists()){
+			Document doc = newDocumentFromInputStream(this.getResultStream());
+			Node r_element=  doc.getElementsByTagName("searchRetrieveResponse").item(0);
+			Document ddoc = getDiagnostics().buildXMLDocument();
+			Node d_element=  ddoc.getElementsByTagName("diagnostics").item(0);
+			doc.adoptNode(d_element);
+			r_element.appendChild(d_element);
+			DOMSource source = new DOMSource(doc);   
+			StringWriter xmlAsWriter = new StringWriter();   
+			StreamResult result = new StreamResult(xmlAsWriter);    
+			TransformerFactory.newInstance().newTransformer().transform(source, result);
+			this.setResultStream(new ByteArrayInputStream(xmlAsWriter.toString().getBytes("UTF-8")));
+		}
+	}
+	
+	//TODO create query + query.toURLParams ?
+	public String createURLParams(){
+		String params = "";
+		
+		//TODO params
+		if (paramSet == null){
+			if (!(operation == null)){
+				params = params + "operation=" + operation;
+			}
+			if (!(version == null)){
+				params = params + "&version=" + version;
+			}
+			if (!(query == null)){
+				params = params + "&query=" + query;
+			}
+			if (getStartRecord() > 0){
+				params = params + "&startRecord=" + String.valueOf(getStartRecord());
+			}
+			if (getMaximumRecords()> 0){
+				params = params + "&numRecords=" + String.valueOf(getMaximumRecords());
+			}
+		} else {
+			Iterator i = paramSet.iterator();
+			params = "";
+		    while(i.hasNext()){
+			      Map.Entry me = (Map.Entry)i.next();
+			      if (!(me.getKey().equals("x-cmd-repository") || me.getKey().equals("x-cmd-collections"))){
+				      params = params + "&" + me.getKey() + "=" + ((String[])me.getValue())[0];  
+			      }
+			}
+		    params = params.substring(1);
+
+		}
+
+		return params;
+	}
+	
+
+/*	
+	@Override 
+	public void prepare() throws Exception{
+		//this.setX_cmd_repository(getServletRequest().getParameter("x-cmd-repository"));
+		//this.setRepository(this.getX_cmd_repository());
+		//TODO xsl usage according particular repositories ?
+		//this.setActionkey("sru");
+		//this.setFormat("xml");
+		
+		//extern SRU repository
+		if (WorkspaceProfile.isSRURepository(getRepository()) || this.getBaseURI() == null){
+			super.prepare();
+		}
+		else {
+			 prepareMD();
+		}
+		
+	}
+*/
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/SaveWorkspaceAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/SaveWorkspaceAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/SaveWorkspaceAction.java	(revision 1516)
@@ -0,0 +1,205 @@
+package eu.clarin.cmdi.mdservice.action;
+
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.TransformerFactoryConfigurationError;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import net.sf.json.JSON;
+import net.sf.json.JSONSerializer;
+import net.sf.json.xml.XMLSerializer;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+
+/**
+ * Query load , save from PROFILE
+ *  
+ * @author 
+ *
+ */
+public class SaveWorkspaceAction extends GenericProxyAction {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+	private String q;
+	private String id;
+	private String base_path;
+	
+	 
+	/*
+	public XMLSerializer getXMLSerializer(){
+		if (serializer == null){
+			serializer = new XMLSerializer();
+		}
+		return serializer;
+	}
+	public JSONSerializer getJSONSerializer(){
+		if (json_serializer == null){
+			json_serializer = new JSONSerializer();
+		}
+		return json_serializer;
+	}
+	*/
+	public String getQ() {
+		return q;
+	}
+
+	public void setQ(String q) {
+		this.q = q;
+	}
+
+	public String getID() {
+		return id;
+	}
+
+	public void setID(String _id) {
+		this.id = _id;
+	}
+	public String getWorkspaceProfile() {
+		return "WorkspaceProfile.xml";
+	}
+	
+	public String getBasePath() {		
+		if (base_path == null) {
+			base_path = Admin.getConfig().getProperty("query.path");
+		}
+		return base_path;
+	}
+	public String getPath() {
+		String targetPath = getBasePath() + getWorkspaceProfile();	   
+                      
+        return targetPath;
+	}
+	
+	
+	public String getProxyKey() {
+		return "";
+	}
+	
+	public String getFullFormat() {
+		return "";
+	}
+	
+	public void changeNodeName(Document doc, Node node, String new_name){
+		// Create an element with the new name 
+		Node node2 = (Node ) doc.createElement(new_name); 
+		// Copy the attributes to the new element NamedNodeMap attrs = element.getAttributes(); for (int i=0; i<attrs.getLength(); i++) { Attr attr2 = (Attr)doc.importNode(attrs.item(i), true); element2.getAttributes().setNamedItem(attr2); } 
+		// Move all the children 
+		while (node.hasChildNodes()) { node2.appendChild(node.getFirstChild()); } 
+		// Replace the old node with the new node
+		Admin.notifyUser("replace:" + node2.getNodeName() + "," + node.getNodeName());
+		node.getParentNode().replaceChild(node2, node); 
+	}
+	public void prepare(){
+		
+        String jsonData = getQ();
+        Admin.notifyUser("JSON data:"+jsonData);
+        	
+        XMLSerializer serializer = new XMLSerializer();
+		JSON json = JSONSerializer.toJSON( jsonData );
+		//Admin.notifyUser("test5");
+		serializer.setRootName("WorkspaceProfile");
+        serializer.setTypeHintsEnabled(false);
+       	String xml = serializer.write( json );
+       	Admin.notifyUser("XML:" + xml);
+       	
+       	
+       	DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
+        DocumentBuilder builder;
+		try {
+			builder = factory.newDocumentBuilder();
+			try {
+				Document  document = builder.parse(new InputSource(new StringReader(xml)));
+				NodeList list = document.getElementsByTagName("e");
+				Admin.notifyUser("list:" + list.getLength());
+				while (list.getLength() > 0){
+					Admin.notifyUser(0 + "::" + list.item(0).getNodeName() + "::" + list.item(0).getParentNode().getNodeName());
+					if (list.item(0).getParentNode().getNodeName().equals("Queries")){
+						changeNodeName(document, list.item(0),"Query"); 
+					}else{
+						if (list.item(0).getParentNode().getNodeName().equals("Querysets")){
+							changeNodeName(document, list.item(0),"Queryset");
+						} else{
+							if (list.item(0).getParentNode().getNodeName().equals("collections")){
+								changeNodeName(document, list.item(0),"item");
+							}
+						}
+					}
+					list = document.getElementsByTagName("e");
+				}
+				
+				Transformer transformer;
+				try {
+					transformer = TransformerFactory.newInstance().newTransformer();
+					transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+					StreamResult result = new StreamResult(new StringWriter());
+					DOMSource source = new DOMSource(document);
+					try {
+						transformer.transform(source, result);
+						String xmlString = result.getWriter().toString();
+						
+						Admin.notifyUser("XML:" + xmlString);
+				        
+				       	InputStream is_xml = new ByteArrayInputStream( xmlString.getBytes( ) );
+				       	Admin.writeToFile(getPath(), is_xml);
+				       	
+					} catch (TransformerException e1) {
+						// TODO Auto-generated catch block
+						e1.printStackTrace();
+					}
+
+					
+					
+				} catch (TransformerConfigurationException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				} catch (TransformerFactoryConfigurationError e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}
+				
+			} catch (SAXException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+		} catch (ParserConfigurationException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+        
+       
+	}
+	
+	public String execute() throws Exception {
+		
+		prepare();
+		return SUCCESS;
+		
+		
+	}
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/StaticAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/StaticAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/StaticAction.java	(revision 1516)
@@ -0,0 +1,40 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.proxy.LocalProxy;
+
+import net.sf.json.JSONObject;
+import net.sf.json.xml.XMLSerializer;
+
+/**
+ * Simple Action to serve local static xml-data (pieces of documentation, and such)
+ *
+ */
+public class StaticAction extends GenericAction {
+
+	private static final long serialVersionUID = 1L;
+	
+	public void setTargetProxy(){
+		setTargetProxy(new LocalProxy());
+	}
+	
+/*
+	public URL getTargetRequest() throws IOException {
+	        
+		URL targetURL = null;
+
+		targetURL = new URL(getBaseURL(), getQ() + ".xml");
+	
+	    return targetURL;
+	}
+
+	public InputStream getSourceStream() throws IOException, NoStylesheetException {		
+		return getTargetRequest().openStream(); 
+	}
+*/
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/TermsProxyAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/TermsProxyAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/TermsProxyAction.java	(revision 1516)
@@ -0,0 +1,160 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.transform.TransformerException;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Termset;
+
+/**
+ * specialized subclass of main controller 
+ * provides "Terms" the magic mix from mdrepo, compreg and datcats   
+ * by dispatching the requests to appropriate internal methods and filling the inputStream with the result
+ *  
+ * @author vronk
+ *
+ */
+public class TermsProxyAction extends GenericProxyAction {
+
+	private static final long serialVersionUID = 1L;
+
+	public static String ALL = "all";
+	
+	private String proxy_key = "terms";
+	
+	@Override
+	public String getProxyKey() {
+		return proxy_key;
+	}
+
+	/* special handling for the two phase processing of dcr/rr Terms */ 
+	public void setProxyKey(String new_key) {
+		proxy_key=new_key;
+	}
+	
+	
+/* 	@Override
+	public String getFullFormat() {		
+		return "terms2extract";
+	}
+	*/
+	
+	/*
+	 @Override
+	 public String getRequestKey() {
+			String key="";
+			if (getActionkey()!=null) {
+				key += getActionkey() + "//-" ;
+			}
+			if (getQ()!=null) {
+				key += getQ() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getCollection()!=null) {
+				key += getCollection() + "//-";
+			} else {
+				key +="//-" ;
+			}
+			if (getSquery()!=null) {
+				key += getSquery() + "//-" ;
+			} else {
+				key +="//-" ;
+			}
+			if (getStartRecord()!=null) {
+				key += getStartRecord() + "//-";
+			}
+			if (getMaximumRecords()!=null) {
+				key += getMaximumRecords();
+			}
+			 
+			return key;
+	}
+	 */
+	public Termset getTermset() {		
+		String ts_id="";
+		if (getQ()!=null && !getQ().equals("")) ts_id = getQ();
+	
+		Termset res = (Termset) Termset.getTermset(ts_id);
+		
+		return res;
+	}
+	
+	public String getTSAttr(String key) {	
+		Termset ts = getTermset();
+		String val=""; 
+		if (ts!=null) val= ts.getAttr(key);
+		 return val;
+	}
+	
+	public URL getBaseURL() throws MalformedURLException {
+			
+		if (base_url == null) {
+			base_url = new URL(getBaseURI());
+		}
+		
+		return base_url;
+	}
+	
+	
+	 /**
+	 * uses base_url + url_pattern (parametrized by actionkey) to form a url
+	 * @return the URL to the terms
+	 * @throws Exception 
+	 */
+	public URL getTargetRequest() throws IOException {
+        // URL targetURL =new URL( base_url, compname + ".xml");
+	
+		
+		URL targetURL = null;
+		//targetURL = new URL(getBaseURI() + getQ());
+		Admin.notifyUser("TPA.q: " + getBaseURI() + getQ() + getRepository());
+		// FIXME: this looks like an ugly hack!
+		//if (getMaxdepth()==0)  setMaxdepth(1);
+		targetURL = new URL(getBaseURI() + getQ() + "&maxdepth=" + getMaxdepth() + "&repository=" + getRepository());
+		// TPA.targetURL:http://localhost:8080/MDService2/model/matrix/?q=all
+	    return targetURL;
+		
+	}
+	
+	public InputStream getSourceStream() throws IOException, NoStylesheetException{
+		String type = getTSAttr("type");
+		Admin.notifyUser("TPA.getSourceStream.TStype: " + type);
+		if (type.equals("dcr") | type.equals("rr")) {	
+			// if dcr|rr call model/matrix/all: http://localhost:8080/MDService2/model/matrix/?q=all
+			// + run through terms2extract transform (parametrized with getQ()-param!!), to serve the subset = appropriate Termset
+			URL matrix_all_URL = new URL(getBaseURI() + ALL + "&repository="+ getRepository());
+			//URL matrix_all_URL = new URL(getBaseURI() + ALL );
+			Admin.notifyUser("TPA.getSourceStream: " + getBaseURI() + ALL);
+			InputStream stream_matrix_all = matrix_all_URL.openStream(); 
+			InputStream resultStream=null;
+			try {
+				this.setProxyKey("terms.dcr");
+				MDTransformer transformer = new MDTransformer();
+				transformer.setParams(createTransformerParams());
+				/* IMPORTANT! change the format for the second phase:
+				 * (but preserve the original format for the third phase. */				
+				transformer.getParams().put("format","terms2extract");
+				
+				Admin.notifyUser("TPA.getSourceStream.transformer.effectiveTranskey: " + transformer.getTranskey() + ", for Termset:" + getTSAttr("name") + '#' + getTSAttr("id"));
+				resultStream = transformer.transformXML(stream_matrix_all);//, "terms2extract", getColumns(), getStartRecord(), getMaximumRecords(),getLang(),getQ(), getRepositoryPath());
+								
+			} catch (InterruptedException e) {				
+				Admin.notifyUser("TPA.getSourceStream(): "+ e.getMessage());
+			} catch (TransformerException e) {				
+				Admin.notifyUser("TPA.getSourceStream(): "+ e.getMessage());
+			}			
+			return resultStream;
+			
+		} else {
+			return getTargetRequest().openStream();
+		}		  
+	}
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/VirtualCollectionProxyAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/VirtualCollectionProxyAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/VirtualCollectionProxyAction.java	(revision 1516)
@@ -0,0 +1,142 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.BufferedReader;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.net.URLConnection;
+import java.util.HashMap;
+
+import org.w3c.dom.NodeList;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.Cache;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+
+/**
+ * 
+ *
+ */
+public class VirtualCollectionProxyAction extends WorkspaceAction {
+
+	private static final long serialVersionUID = 1L;
+	
+	//private String proxy_key = "virtual_collection";
+	
+	//private String qid;
+	//private String date;
+	//private String datefrom;
+	//private String dateto;
+	/*
+	public String getQid(){
+		return qid;
+	}
+	public void setQid(String qid){
+		this.qid = qid;
+	}
+	*/
+	@Override
+	protected void  initialize(){
+		setFormat("VC");
+	 }
+	
+	@Override 
+	public String getFullFormat() {
+		return "profile2" + getFormat();
+	}
+	
+	//@Override
+	//public String getProxyKey() {
+	//	return proxy_key;
+	//}
+	
+	public String getBaseURI() { 
+		String uri = "file:/" + Cache.getCache().getCacheIndexPath();		
+		return uri;
+	}
+	
+	@Override
+	public HashMap<String,String> createTransformerParams(){
+		
+		HashMap<String,String> hm = new HashMap<String,String>();
+		
+		if (getFullFormat() != null){
+			hm.put("format", getFullFormat());
+	    }
+	    if (getQid() != null){
+			hm.put("queryid", getQid());
+	    }
+        
+		return hm;
+		
+	}
+	public String publish() throws Exception {
+		
+		// find the workspace data
+		NodeList list = (NodeList) getWorkspace(); 
+        InputStream is = this.DocumentToStream(list.item(0));
+		//xslt transform to request data
+		MDTransformer transformer = new MDTransformer();
+		transformer.setSrcFile(getTargetRequest());
+		transformer.setParams(createTransformerParams());
+		InputStream requestStream = transformer.transformXML(is);
+		
+		java.io.Writer writer = new java.io.StringWriter(); 
+		char[] buffer = new char[1024];             
+		
+		java.io.Reader reader = new BufferedReader(                         
+		new InputStreamReader(requestStream, "UTF-8"));                 
+		int n;                 
+		while ((n = reader.read(buffer)) != -1) {                     
+			writer.write(buffer, 0, n); 
+		} 
+	
+		//create connection and post request data
+		// find out 
+		//"http://clarin.ids-mannheim.de/vcr/service/virtualcollection";
+		String urlstring = Admin.getConfig().getProperty("virtualcollection.uri");
+		String vcrstr = (String)getVcrid();//getQueryVcrid();
+		if (!vcrstr.equals("0")){
+			urlstring = urlstring + "/" + vcrstr;
+		}
+		//qlist.item(0).get
+        URL url = new URL(urlstring);
+        String charset = "UTF-8"; 
+        URLConnection urlconn = url.openConnection();
+        HttpURLConnection conn = (HttpURLConnection) urlconn;
+        conn.setDoOutput(true);
+        conn.setDoInput(true); 
+        conn.setRequestMethod("POST");
+        String encoding = new sun.misc.BASE64Encoder().encode("test1@ids-mannheim.de:test1234".getBytes());
+        conn.setRequestProperty("Authorization", "Basic " + encoding);
+        conn.setRequestProperty("Content-Type", "text/xml;charset=" + charset);//; charset=utf-8");
+        conn.setRequestProperty("Accept-Charset", charset); 
+        //System.setProperty("http.keepAlive", "false");
+        //conn.setRequestMethod("GET");
+        //conn("Expect", "100-continue"); 
+        //System.setProperty("http.agent", "");
+        
+    	OutputStreamWriter out = new OutputStreamWriter(
+                                  conn.getOutputStream());
+    	out.write(writer.toString());
+    	out.flush();
+    	out.close();
+    	
+       	InputStream responseStream; 
+        	
+       	Integer respCode = conn.getResponseCode();
+       	if (respCode == 200 || respCode == 201) {  
+        	    responseStream = conn.getInputStream(); 
+        	    //conn.getContent();
+        } else {    
+        		responseStream = conn.getErrorStream(); 
+        } 
+        	  
+        setResultStream(responseStream);
+        
+		return SUCCESS;
+	}
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/WorkspaceAction.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/WorkspaceAction.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/WorkspaceAction.java	(revision 1516)
@@ -0,0 +1,1112 @@
+package eu.clarin.cmdi.mdservice.action;
+
+import java.io.BufferedInputStream;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringWriter;
+import java.io.UnsupportedEncodingException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Result;
+import javax.xml.transform.Source;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.TransformerFactoryConfigurationError;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import net.sf.json.JSON;
+import net.sf.json.JSONObject;
+import net.sf.json.JSONSerializer;
+import net.sf.json.xml.XMLSerializer;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.SAXException;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+import eu.clarin.cmdi.mdservice.model.Diagnostic;
+
+
+/**
+ *
+ * @author 
+ *
+ */
+public class WorkspaceAction extends GenericProxyAction 
+//implements ServletRequestAware 
+{
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("WorkspaceAction");
+	
+	// workspaceprofiles
+	public static String USER = "user";
+	public static String SERVER = "server";
+	
+	// save element type
+	public static String SE_WORKSPACE = "workspace";
+	public static String SE_QUERYSET = "queryset";
+	public static String SE_QUERY = "query";
+	public static String SE_BOOKMARKSET = "bookmarkset";
+	public static String SE_BOOKMARK = "bookmark";
+	
+	// administration query identification
+	public static String ADMIN = "admin";
+	public static String FILENAME = "filename";
+	
+	public static String PROFILENAME_BASE = "WorkspaceProfile_";
+	public static String PROFILENAME_SERVER = "WorkspaceProfileServer.xml";
+	public static String PROFILENAME_DEFAULT = PROFILENAME_BASE + "default.xml";
+	public static String ADMINISTRATION_FILENAME = "Administration.xml";
+	
+	public static String WORKSPACE_FILENAME = "WorkspaceProfile.xml";
+	/** 
+	 * Properties to be filled by Struts with according request-parameters
+	 */	
+	//private String actionkey;
+	private String data;
+	private String type;  //workspacetype
+	private String elementtype;
+	private String qid;
+	private String qsid;
+	//private String format;
+	//private String userMsg;
+	private String base_path;
+	
+	
+	private static WorkspaceAction singleton;
+	private static String workspacefilename;
+	private static Document workspace_doc;
+	
+	//private String workspaceindex_path;
+	//private static Integer querycounter;
+	private static final Integer start_query = 1;
+	
+	
+	
+	//private HttpServletRequest request; 
+	
+	public String Workspace_filename(){
+		return WORKSPACE_FILENAME;
+	}
+
+	public void setWorkspace_filename(String workspace_filename) {
+		this.WORKSPACE_FILENAME = workspace_filename;
+	}
+	
+	public String getData(){
+		return data;
+	}
+
+	public void setData(String data) {
+		this.data = data;
+	}
+
+	public String getEelemnttype(){
+		return elementtype;
+	}
+
+	public void setElementtype(String elementtype) {
+		this.elementtype = elementtype;
+	}
+
+	public String getType() {
+		return type;
+	}
+
+	public void setType(String type) {
+		this.type = type;
+	}
+	
+	public String getQid() {
+		return qid;
+	}
+	
+	public void setQid(String qid) {
+		this.qid = qid;
+	}
+
+	public void setQsid(String qsid) {
+		this.qsid = qsid;
+	}
+	
+	public String getQsid() {
+		return qsid;
+	}
+
+	public WorkspaceAction () {	
+		this.elementtype = WorkspaceAction.SE_WORKSPACE;
+		workspacefilename = Admin.getConfig().getProperty("workspaceprofile.path") + Admin.getConfig().getProperty("workspace.file");
+		if (workspace_doc == null){
+			//workspacefilename = Admin.getConfig().getProperty("workspace.path") + Admin.getConfig().getProperty("workspace.file");
+			initDocument();
+		}
+	}
+	
+	public static WorkspaceAction getWorkspaceAction() {
+		if (singleton == null) {
+			singleton = new WorkspaceAction();
+		} 
+		return singleton;
+	}
+
+	protected void finalize() throws Throwable {	    
+	    try {	        
+	    	//updateQuerycounter();
+	    	//saveDocument();
+	    } catch(Exception e) {
+	    }	    
+	    finally {	        
+	        super.finalize();
+	        //more code can be written here as per need of application	        
+	    }
+	}
+	/**
+	 * primitive identification of the target-proxy
+	 * base for finding the right base_url in the props
+	 * subclass has to override with its specific proxykey
+	 * @return
+	 */
+	public String getProxyKey() {
+		return "workspaceprofile";
+	}
+
+	
+	@Override
+	public URL getBaseURL() {
+		File file=new File(getPath());
+	    URL url=null;
+	    try{
+		    url=file.toURI().toURL(); 
+		    log.debug("DEBUG: WorkspaceAction.getBaseURL(): "  + url);
+	    } catch (MalformedURLException e){
+	    	log.error("getBaseURL: JSON exception has been caught;\n getPath=" + getPath() );
+	    	Diagnostics().Add(Diagnostic.SYSTEM_ERROR, "WorkspaceAction.getBaseURL()", "JSON exception has been caught;\n getPath=" + getPath() );	    	
+	    }
+	    
+	    return url;
+	}
+	
+	public String getBasePath() {		
+		if (base_path == null) {
+			base_path = Admin.getConfig().getProperty(getProxyKey() + ".path");
+		}
+		return base_path;
+	}
+	
+	
+	public String getWorkspaceProfile() {
+		String profilename = null;
+		
+		if (type.toLowerCase().equals(USER)) {
+			if (getServletRequest().getRemoteUser() != null) {
+				profilename =  PROFILENAME_BASE + getServletRequest().getRemoteUser() + ".xml";
+			} else {
+				profilename = PROFILENAME_DEFAULT;
+			}
+		} else if (type.toLowerCase().equals(SERVER)) {
+			profilename =  PROFILENAME_SERVER;
+			/*
+			File f = new File(getBasePath() + profilename);
+			if (! f.exists()){
+				//Admin.notifyUser(" not exists");
+				profilename = "WorkspaceProfile_default.xml";
+			}
+			*/
+		} else if (type.toLowerCase().equals(ADMIN)){
+			profilename =  ADMINISTRATION_FILENAME;
+		} else if (type.toLowerCase().equals(FILENAME)){
+			profilename = WORKSPACE_FILENAME;
+		}
+		
+		if (profilename == null){
+			profilename = PROFILENAME_DEFAULT;
+			Admin.notifyUser("WorkspaceProfilePath not specified (USER, SERVER)!");
+		}
+		
+		Admin.notifyUser("WorkspaceProfilename : " + profilename);
+		return profilename;
+	}
+	
+	@Override
+	public String getFullFormat() {
+		return "xml2json";
+	}
+	
+	public URL getURL() {
+		File file=new File(getPath());
+	    URL url=null;
+	    try{
+		    url=file.toURI().toURL(); 
+		    //Admin.notifyUser("url "  + url);
+	    } catch (MalformedURLException e){
+	    	//Admin.notifyUser("" + e);
+	    }
+		return url;
+	}
+	
+	
+	public String getPath() {
+		String targetPath = getBasePath() + this.WORKSPACE_FILENAME;//getWorkspaceProfile();	   
+        log.debug("WorkspaceAction TARGETPATH: " + targetPath);              
+        return targetPath;
+	}
+
+	@Override
+	public InputStream getSourceStream() throws IOException {	
+		InputStream stream = new BufferedInputStream( new FileInputStream(getPath()));
+	
+		
+		return   stream;
+	}
+	
+	// set the server - session data =  repositories, termsets
+	public void setSessionData(InputStream source) throws IOException {
+		if (source == null) return;
+		if (this.getWorkspaceProfile() != PROFILENAME_SERVER) return;
+		
+		
+			
+	}
+	
+	/*
+	@Override
+	public void prepare() throws Exception {		
+		
+		//Admin.notifyUser("execute:");
+		InputStream in = getSourceStream();
+		this.setSourceStream(in); 
+		if (getFormat().equals("xml")) {			
+			setResultStream(in);	
+		}else { //JSON
+			// set srcFile (for MDTransformer to pass to xsl-scripts) 
+			MDTransformer transformer = new MDTransformer();
+			transformer.setSrcFile(getURL());
+			transformer.setParams(MDTransformer.createParamsMap(getFullFormat()));
+			setResultStream(transformer.transformXML(in));//, getFullFormat()));
+			//setSessionData(getResultStream());
+		}
+			
+		Admin.notifyUser(getProxyKey() + " success:" + (getResultStream()!=null));
+	}
+
+	public void changeNodeName(Document doc, Node node, String new_name){
+		// Create an element with the new name 
+		Node node2 = (Node ) doc.createElement(new_name); 
+		// Copy the attributes to the new element NamedNodeMap attrs = element.getAttributes(); for (int i=0; i<attrs.getLength(); i++) { Attr attr2 = (Attr)doc.importNode(attrs.item(i), true); element2.getAttributes().setNamedItem(attr2); } 
+		// Move all the children 
+		while (node.hasChildNodes()) { node2.appendChild(node.getFirstChild()); } 
+		// Replace the old node with the new node
+		Admin.notifyUser("replace:" + node2.getNodeName() + "," + node.getNodeName());
+		node.getParentNode().replaceChild(node2, node); 
+	}
+
+	public void administrateQid() throws IOException, SAXException, ParserConfigurationException, TransformerException{
+		WorkspaceAction wa = new WorkspaceAction();
+		wa.setType("Admin");
+		
+		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
+        DocumentBuilder builder;
+
+		builder = factory.newDocumentBuilder();
+		Document  document = builder.parse(wa.getSourceStream());
+		// find user-filename-id or create one
+		//add qid
+		//NodeList list = document.getElementsByTagName("e");
+		//Admin.notifyUser("list:" + list.getLength());
+
+		// save the changes
+		Transformer transformer;
+		transformer = TransformerFactory.newInstance().newTransformer();
+		transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+		StreamResult result = new StreamResult(new StringWriter());
+		DOMSource source = new DOMSource(document);
+		transformer.transform(source, result);
+		String xmlString = result.getWriter().toString();
+		InputStream is_xml = new ByteArrayInputStream( xmlString.getBytes( ) );
+		Admin.writeToFile(wa.getPath(), is_xml);
+		//wa.save();
+	}
+	
+	public String save() throws IOException, SAXException, ParserConfigurationException, TransformerException {
+		
+        String jsonData = getData();
+              
+        Admin.notifyUser("JSON data:"+jsonData);
+        if ((!this.getType().equals(ADMIN)) && this.getQid() != null) {
+			administrateQid();
+		} 
+        
+        XMLSerializer serializer = new XMLSerializer();
+		JSON json = JSONSerializer.toJSON( jsonData );
+		if (this.getType().equals(ADMIN)){
+			serializer.setRootName("Admin");
+		} else {
+			serializer.setRootName("WorkspaceProfile");	
+		}
+		serializer.setElementName("item");
+        serializer.setTypeHintsEnabled(false); 
+       	String xml = serializer.write( json );
+       	Admin.notifyUser("XML:" + xml);
+       	
+       	InputStream is_xml = new ByteArrayInputStream( xml.getBytes( ) );
+        
+       	Admin.writeToFile(getPath(), is_xml);
+   
+       	String ret = "1";
+		this.setResultStream( new ByteArrayInputStream(ret.getBytes()));
+				
+
+		return SUCCESS;
+	}
+*/
+	public void changeQueryId(Document doc, String from_id, String to_id) throws XPathExpressionException{
+		InputStream is = null;
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+	    String xpath_expr = "";
+		//xpath_expr = "//WorkspaceProfile/Querysets/item/Queries/item/id[.='" + from_id + "']";
+	    xpath_expr = "//item/id[.='" + from_id + "']";
+		expr = xpath.compile(xpath_expr);
+		Object result = null;
+		result = expr.evaluate(doc, XPathConstants.NODESET);
+		
+	    NodeList nodelist = (NodeList) result;
+	    nodelist.item(0).setTextContent(to_id);
+	}
+	public String createNewId(){//String name){
+		String name = "maxid";
+		String id = workspace_doc.getElementsByTagName(name).item(0).getTextContent();
+		Integer i = Integer.parseInt(id) + 1;
+		id = i.toString();
+		workspace_doc.getElementsByTagName(name).item(0).setTextContent(id);
+		return id.toString();
+	}
+	/*
+	public String createNewQsid(){
+		String id = workspace_doc.getElementsByTagName("maxqsid").item(0).getTextContent();
+		Integer i = Integer.parseInt(id) + 1;
+		id = i.toString();
+		workspace_doc.getElementsByTagName("maxqsid").item(0).setTextContent(id);
+		return id.toString();
+	}
+	*/
+	public InputStream createStream(String value) throws TransformerException, TransformerFactoryConfigurationError, ParserConfigurationException, UnsupportedEncodingException{
+        DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
+        DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
+        Document doc = docBuilder.newDocument();
+
+        ////////////////////////
+        //Creating the XML tree
+        Element root = doc.createElement("root");
+        root.setTextContent(value);
+        doc.appendChild(root);
+        //set up a transformer
+        TransformerFactory transfac = TransformerFactory.newInstance();
+        Transformer trans = transfac.newTransformer();
+        //trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
+        //trans.setOutputProperty(OutputKeys.INDENT, "yes");
+
+        //create string from xml tree
+        //StringWriter sw = new StringWriter();
+        //StreamResult result = new StreamResult(sw);
+        //DOMSource source = new DOMSource(doc);
+        //trans.transform(source, result);
+        
+
+        DOMSource source = new DOMSource(doc);   
+        StringWriter xmlAsWriter = new StringWriter();   
+        StreamResult result = new StreamResult(xmlAsWriter);     
+        TransformerFactory.newInstance().newTransformer().transform(source, result);   
+          
+        // write changes   
+        ByteArrayInputStream is = new ByteArrayInputStream(xmlAsWriter.toString().getBytes("UTF-8"));  
+           
+
+       return is;
+
+
+	}
+	public String getXMLRootName(){
+		String rootname = "WorkspaceProfile";
+		if (this.elementtype.equals(WorkspaceAction.SE_QUERY)){
+			rootname = "item";
+		}
+		if (this.elementtype.equals(WorkspaceAction.SE_QUERYSET)){
+			rootname = "item";
+		}
+		return rootname;
+	}
+	public  String  DocumentReplaceNewElement(Document new_doc) throws XPathExpressionException{
+		String newid = "";
+		if (this.elementtype.equals(WorkspaceAction.SE_WORKSPACE)){
+			NodeList wsnodelist = (NodeList) getWorkspace();
+	        // remove 
+	        //childeNode
+	        if (wsnodelist.getLength() > 0){
+	        	((Node)wsnodelist.item(0)).getParentNode().removeChild(wsnodelist.item(0));
+	        }
+	        //String qidstring = "";
+	        //if (qid.equals("0")) {
+	        //    newid = createNewQid();
+	        //    changeQueryId(new_doc,qid,newid);
+	        //}
+	        
+	        Node node = new_doc.getFirstChild();
+	        Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+	        ((Element)node2).setAttribute("user", getUserName());
+	        workspace_doc.getElementsByTagName("WorkspaceProfiles").item(0).appendChild(node2);
+		}
+		if (this.elementtype.equals(WorkspaceAction.SE_QUERY)){
+// new query
+			Node node = new_doc.getFirstChild();
+			if (this.qid.equals("0")){
+				newid = createNewId();//"maxqid");	 
+				new_doc.getElementsByTagName("id").item(0).setTextContent(newid);
+	 	        Element root = workspace_doc.getDocumentElement();
+	 	        Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+	 	        node2 = workspace_doc.renameNode(node2, "", "item");
+	 	   // apend to specific queryset
+				NodeList wsnodelist = (NodeList) getQueryParent();
+				Node anode = wsnodelist.item(0);
+				if (anode.getTextContent().trim().toLowerCase().equals("null")){
+					anode.setTextContent("");
+				}
+	 	        anode.appendChild(node2);
+			} 
+			
+			else {
+				// edit existing query
+				NodeList wsnodelist = (NodeList) getQuery();
+		        // remove 
+		        //childeNode
+		        if (wsnodelist.getLength() > 0){
+		        	//Element root = workspace_doc.getDocumentElement();
+		        	Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+		        	node2 = workspace_doc.renameNode(node2, "", "item");
+		        	Node qnode  = (Node)wsnodelist.item(0);
+		        	//root.replaceChild(node2,(Node)wsnodelist.item(0));	
+		        	
+		        	Element parentElement = (Element)qnode.getParentNode();
+					parentElement.insertBefore(node2, qnode);
+					qnode.getParentNode().removeChild(qnode);
+					parentElement.normalize();
+		        }
+			}
+		}
+		if (this.elementtype.equals(WorkspaceAction.SE_BOOKMARK)){
+			// new bookmark
+						Node node = new_doc.getFirstChild();
+						if (this.qid.equals("0")){
+							newid = createNewId();//"maxbid");	 
+							new_doc.getElementsByTagName("id").item(0).setTextContent(newid);
+				 	        Element root = workspace_doc.getDocumentElement();
+				 	        Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+				 	        node2 = workspace_doc.renameNode(node2, "", "item");
+				 	   // apend to specific bookmarkset
+							NodeList wsnodelist = (NodeList) getBookmarkParent();
+							Node anode = wsnodelist.item(0);
+							if (anode.getTextContent().trim().toLowerCase().equals("null")){
+								anode.setTextContent("");
+							}
+				 	        anode.appendChild(node2);
+						} 
+						
+						else {
+							// edit existing query
+							NodeList wsnodelist = (NodeList) getQuery();
+					        // remove 
+					        //childeNode
+					        if (wsnodelist.getLength() > 0){
+					        	//Element root = workspace_doc.getDocumentElement();
+					        	Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+					        	node2 = workspace_doc.renameNode(node2, "", "item");
+					        	Node qnode  = (Node)wsnodelist.item(0);
+					        	//root.replaceChild(node2,(Node)wsnodelist.item(0));	
+					        	
+					        	Element parentElement = (Element)qnode.getParentNode();
+								parentElement.insertBefore(node2, qnode);
+								qnode.getParentNode().removeChild(qnode);
+								parentElement.normalize();
+					        }
+						}
+					}
+		//new queryset
+		if (this.elementtype.equals(WorkspaceAction.SE_QUERYSET)){
+			// new queryset
+						Node node = new_doc.getFirstChild();
+						if (this.qsid.equals("0")){
+							newid = createNewId();//"maxqsid");	 
+							new_doc.getElementsByTagName("id").item(0).setTextContent(newid);
+				 	        Element root = workspace_doc.getDocumentElement();
+				 	        Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+				 	        node2 = workspace_doc.renameNode(node2, "", "item");
+				 	   // apend to specific querysets
+				 	        NodeList wsnodelist = (NodeList) this.getWorkspace();
+				 	        Element welem = (Element)wsnodelist.item(0);
+							Node anode = welem.getElementsByTagName("Querysets").item(0);
+							if (anode.getTextContent().trim().toLowerCase().equals("null")){
+								anode.setTextContent("");
+							}
+							anode.appendChild(node2);
+						} 
+						
+						else {
+							// edit existing queryset
+							NodeList wsnodelist = (NodeList) getQueryset();
+					        // remove 
+					        //childeNode
+					        if (wsnodelist.getLength() > 0){
+					        	//Element root = workspace_doc.getDocumentElement();
+					        	Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+					        	node2 = workspace_doc.renameNode(node2, "", "item");
+					        	Node qset  = (Node)wsnodelist.item(0);
+					        	
+					        	Element parentElement = (Element)qset.getParentNode();
+								parentElement.insertBefore(node2, qset);
+								qset.getParentNode().removeChild(qset);
+								parentElement.normalize();
+					        }
+						}
+					}
+		
+		//new bookmarkset
+		if (this.elementtype.equals(WorkspaceAction.SE_BOOKMARKSET)){
+			// new queryset
+						Node node = new_doc.getFirstChild();
+						if (this.qsid.equals("0")){
+							newid = createNewId();//"maxbsid");	 
+							new_doc.getElementsByTagName("id").item(0).setTextContent(newid);
+				 	        Element root = workspace_doc.getDocumentElement();
+				 	        Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+				 	        node2 = workspace_doc.renameNode(node2, "", "item");
+				 	   // apend to specific querysets
+				 	        NodeList wsnodelist = (NodeList) this.getWorkspace();
+				 	        Element welem = (Element)wsnodelist.item(0);
+				 	        Node anode = welem.getElementsByTagName("Bookmarksets").item(0);
+				 	       if (anode.getTextContent().trim().toLowerCase().equals("null")){
+								anode.setTextContent("");
+							}
+				 	        anode.appendChild(node2);
+						} 
+						
+						else {
+							// edit existing bookmarkset
+							NodeList wsnodelist = (NodeList) getBookmarkset();
+					        // remove 
+					        //childeNode
+					        if (wsnodelist.getLength() > 0){
+					        	//Element root = workspace_doc.getDocumentElement();
+					        	Node node2 = workspace_doc.adoptNode(node.cloneNode(true));
+					        	node2 = workspace_doc.renameNode(node2, "", "item");
+					        	Node qset  = (Node)wsnodelist.item(0);
+					        	
+					        	Element parentElement = (Element)qset.getParentNode();
+								parentElement.insertBefore(node2, qset);
+								qset.getParentNode().removeChild(qset);
+								parentElement.normalize();
+					        }
+						}
+					}
+		return newid;
+	}
+	
+	//todo .has("Queries")
+	public void parseDataInit(JSONObject json){
+		// workspaceelement
+		if (json.has("Querysets")) {
+			this.setQid("0");
+			this.setElementtype(WorkspaceAction.SE_WORKSPACE);
+		} else {
+			// Querysetelement
+			if (json.has("Queries")) {
+				this.setElementtype(WorkspaceAction.SE_QUERYSET);
+				this.setQsid(json.getString("id"));
+			} else {
+				if (json.has("Bookmarks")) {
+					this.setElementtype(WorkspaceAction.SE_BOOKMARKSET);
+					this.setQsid(json.getString("id"));
+				} else {
+					// Query-Bookmark-element
+					if (json.getString("bookmark").equals("1")) {
+						this.setElementtype(WorkspaceAction.SE_BOOKMARK);
+					} else {
+						// Queryelement
+						this.setElementtype(WorkspaceAction.SE_QUERY);
+					}
+					this.setQid(json.getString("id"));
+				}
+			}
+		}
+
+	}
+	public String save() throws ParserConfigurationException, SAXException, IOException, DOMException, XPathExpressionException, TransformerException, TransformerFactoryConfigurationError{
+		
+		// user data
+		String jsonData = getData();
+        XMLSerializer serializer = new XMLSerializer();
+		JSON json = JSONSerializer.toJSON( jsonData );
+		// init qid, elementtype
+		parseDataInit((JSONObject)json);
+		serializer.setRootName(getXMLRootName()); //"WorkspaceProfile");	
+		serializer.setElementName("item");
+        serializer.setTypeHintsEnabled(false); 
+       	String xml = serializer.write( json );
+       	//Admin.notifyUser("XML:" + xml);
+       	InputStream is_xml = new ByteArrayInputStream( xml.getBytes( ) );
+        // add to document
+       	//Admin.writeToFile(getPath(), is_xml);
+       	DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
+        DocumentBuilder builder = factory.newDocumentBuilder();
+        Document new_doc = builder.parse( is_xml );
+        // set user
+        //((Element)d.getFirstChild()).setAttribute("user", getServletRequest().getRemoteUser());
+        String newid = DocumentReplaceNewElement(new_doc);
+        
+
+      //TODO
+        saveDocument();
+        // return new qid
+        //String src = "<body>" + qidstring + "</body>";
+        //javax.xml.transform.stream.StreamSource s = new StreamSource(src);
+        //InputStream in = s.getInputStream(); 
+		this.setResultStream(createStream(newid));//(InputStream)(new ByteArrayInputStream(qidstring.getBytes())));
+		
+		
+		return SUCCESS;
+		
+	}
+	public InputStream DocumentToStream(Node node) throws TransformerConfigurationException, TransformerException, TransformerFactoryConfigurationError{
+		
+		InputStream is = null;
+		ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); 
+		Source xmlSource;
+		
+		if (node == null) {
+			xmlSource = new DOMSource(workspace_doc); 
+		} else {
+			xmlSource = new DOMSource(node);
+		}
+		Result outputTarget = new StreamResult(outputStream); 
+		TransformerFactory.newInstance().newTransformer().transform(xmlSource, outputTarget); 
+		is = new ByteArrayInputStream(outputStream.toByteArray()); 
+		return is;
+	}
+
+	public String DocumentToXMLString(){
+		Transformer transformer;
+		String xmlString = "";
+		try {
+				transformer = TransformerFactory.newInstance().newTransformer();
+				transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+
+				//initialize StreamResult with File object to save to file
+				StreamResult result = new StreamResult(new StringWriter());
+				DOMSource source = new DOMSource(workspace_doc);
+				try {
+					transformer.transform(source, result);
+				} catch (TransformerException e1) {
+					// TODO Auto-generated catch block
+					e1.printStackTrace();
+				}
+
+				xmlString = result.getWriter().toString();
+			} catch (TransformerConfigurationException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (TransformerFactoryConfigurationError e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+			
+		return xmlString;
+	}
+	
+	public void addWorkspaceToDocument(){
+		//{'WorkspaceProfile':{'CustomTermsets':'null',
+		//                     'Termsets':'null',
+		//                     'Repositories':'null',
+		//                     'Querysets':'null','created':'null','lastchanged':'null','profilename':'null'}};
+		Element we = workspace_doc.createElement("WorkspaceProfile");
+		we.setAttribute("user", getType().toLowerCase());
+		workspace_doc.getFirstChild().appendChild(we);
+		
+		Element e = workspace_doc.createElement("CustomTermsets");
+		e.setNodeValue("null");
+		we.appendChild(e);
+		
+		e = workspace_doc.createElement("Termsets");
+		e.setNodeValue("null");
+		we.appendChild(e);
+		
+		e = workspace_doc.createElement("Repositories");
+		e.setNodeValue("null");
+		we.appendChild(e);
+		
+		e = workspace_doc.createElement("Querysets");
+		e.setNodeValue("null");
+		we.appendChild(e);
+		
+		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
+		String strdate = dateFormat.format(new Date()).toString();
+		e = workspace_doc.createElement("created");
+		e.setNodeValue(strdate);
+		we.appendChild(e);
+		
+		e = workspace_doc.createElement("lastchanged");
+		e.setNodeValue(strdate);
+		we.appendChild(e);
+		
+		e = workspace_doc.createElement("profilename");
+		e.setNodeValue(getType().toLowerCase());
+		we.appendChild(e);
+	}
+	
+	public String getUserName(){
+		String userstring;
+		if (getType().toLowerCase().equals(SERVER)){
+			userstring = SERVER;
+		}else {
+			userstring = getServletRequest().getRemoteUser();
+			if (userstring == null){
+				userstring = "default";
+			}
+		}
+		return userstring;
+	}
+	public String getWorkspaceXPathExpression(){
+		String xpath_expr = "";
+
+		xpath_expr = "//Profiles/WorkspaceProfiles/WorkspaceProfile[@user='" + getUserName() + "']";
+
+		return xpath_expr;
+	}
+	
+	public Object getWorkspace() throws XPathExpressionException{
+		InputStream is = null;
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+			expr = xpath.compile(getWorkspaceXPathExpression());
+			//expression is evaluated with respect to a certain context node which is doc.
+			Object result = null;
+			try{
+		        result = expr.evaluate(workspace_doc, XPathConstants.NODESET);
+			} catch(Exception e){
+				
+			}
+
+	     return result;
+	}
+	
+	public Object getQuery() throws XPathExpressionException{
+		
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+			expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Querysets/item/Queries/item[id='" + this.qid + "']");
+			//expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Querysets/item/Queries/item[id='" +this.qid.toString()+"']");
+	    		    	//expr = xpath.compile("//item[@id='" + this.qid + "']");
+			//expression is evaluated with respect to a certain context node which is doc.
+			Object result = null;
+			try{
+		        result = expr.evaluate(workspace_doc, XPathConstants.NODESET);
+			} catch(Exception e){
+				
+			}
+
+	     return result;
+	}
+
+public Object getQueryParent() throws XPathExpressionException{
+		
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+			expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Querysets/item[id='" + this.qsid + "']/Queries");
+			//expression is evaluated with respect to a certain context node which is doc.
+			Object result = null;
+			try{
+		        result = expr.evaluate(workspace_doc, XPathConstants.NODESET);
+			} catch(Exception e){
+				
+			}
+
+	     return result;
+	}
+
+public Object getQueryVcrid() throws XPathExpressionException{
+	
+	XPathFactory factory = XPathFactory.newInstance(); 
+    XPath xpath = factory.newXPath(); 
+    XPathExpression expr;
+//		expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Querysets/item[id='" + this.qsid + "']/vcrid");
+		expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Querysets/item/Queries/item[id='" + this.qid + "']/vcrid");
+	    
+		//expression is evaluated with respect to a certain context node which is doc.
+		Object result = null;
+		try{
+	        result = expr.evaluate(workspace_doc, XPathConstants.STRING);
+		} catch(Exception e){
+			
+		}
+
+     return result;
+}
+
+public Object getVcrid() throws XPathExpressionException{
+	
+	XPathFactory factory = XPathFactory.newInstance(); 
+    XPath xpath = factory.newXPath(); 
+    XPathExpression expr1, expr2;
+		//expr = xpath.compile("item[id='" + this.qid + "']/vcrid");
+		expr1 = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Querysets/item/Queries/item[id='" + this.qid + "']/vcrid");
+		expr2 = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Bookmarksets/item[id='" + this.qid + "']/vcrid");
+	    
+		//expression is evaluated with respect to a certain context node which is doc.
+		Object result = null;
+		try{
+	        result = expr1.evaluate(workspace_doc, XPathConstants.STRING);
+		} catch(Exception e){
+			
+		}
+		if (result.equals("")){
+			try{
+		        result = expr2.evaluate(workspace_doc, XPathConstants.STRING);
+			} catch(Exception e){
+				
+			}
+		}
+     return result;
+}
+	public Object getQueryset() throws XPathExpressionException{
+		
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+			expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Querysets/item[id='" + this.qsid + "']");
+			//expression is evaluated with respect to a certain context node which is doc.
+			Object result = null;
+			try{
+		        result = expr.evaluate(workspace_doc, XPathConstants.NODESET);
+			} catch(Exception e){
+				
+			}
+
+	     return result;
+	}
+
+	public Object getBookmarkParent() throws XPathExpressionException{
+		
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+			expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Bookmarksets/item[id='" + this.qsid + "']/Bookmarks");
+			//expression is evaluated with respect to a certain context node which is doc.
+			Object result = null;
+			try{
+		        result = expr.evaluate(workspace_doc, XPathConstants.NODESET);
+			} catch(Exception e){
+				
+			}
+
+	     return result;
+	}
+	
+	public Object getBookmarkset() throws XPathExpressionException{
+		
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+			expr = xpath.compile("//Profiles/WorkspaceProfiles/WorkspaceProfile/Bookmarksets/item[id='" + this.qsid + "']");
+			//expression is evaluated with respect to a certain context node which is doc.
+			Object result = null;
+			try{
+		        result = expr.evaluate(workspace_doc, XPathConstants.NODESET);
+			} catch(Exception e){
+				
+			}
+
+	     return result;
+	}
+
+	
+	@Override
+	public void prepare() throws Exception {		
+		
+	        NodeList list = (NodeList) getWorkspace();//result;
+	        if (list.getLength() < 1) {
+	        	addWorkspaceToDocument();
+	        	list = (NodeList) getWorkspace();
+	        }
+	        if (list.getLength() > 1){
+	        	// error
+	        }
+	        // nodelistto stream
+	        InputStream is = this.DocumentToStream(list.item(0));
+	        this.setSourceStream(is);     
+		
+		if (getFormat().equals("xml")) {			
+			setResultStream(is);	
+		}else { //JSON
+			// set srcFile (for MDTransformer to pass to xsl-scripts) 
+			MDTransformer transformer = new MDTransformer();
+			transformer.setSrcFile(getURL());
+			transformer.setParams(MDTransformer.createParamsMap(getFullFormat()));
+			setResultStream(transformer.transformXML(is));//, getFullFormat()));
+			//setSessionData(getResultStream());
+		}
+			
+		log.debug(getProxyKey() + " success:" + (getResultStream()!=null));
+	}
+
+	
+	
+public void initDocument() {
+	
+	boolean init=false;
+	Integer counter = start_query;
+	//String fname = getPath();//workspacefile;
+	File f = new File (workspacefilename);
+		
+	if (!f.exists()) {
+				// create new  counter document
+				DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+	         	DocumentBuilder docBuilder;
+				try {
+					docBuilder = docFactory.newDocumentBuilder();
+					workspace_doc = docBuilder.newDocument();
+					// append root tag <index >
+					Element root = (Element) workspace_doc.createElement("Profiles");
+					//root.setAttribute("idcounter", "1");
+					workspace_doc.appendChild(root);
+					Element e = workspace_doc.createElement("Querycounter");
+					root.appendChild(e);
+					e = workspace_doc.createElement("maxqid");
+					e.setNodeValue(counter.toString());
+					e = workspace_doc.createElement("WorkspaceProfiles");
+					root.appendChild(e);
+
+					//updateQuerycounter();
+					this.saveDocument();
+					
+					//Admin.notifyUser("new document");
+				} catch (ParserConfigurationException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}
+	    }
+		else {
+			try {
+				
+	         	DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+	         	DocumentBuilder docBuilder;
+				try {
+					docBuilder = docFactory.newDocumentBuilder();		    
+					try {
+							workspace_doc = docBuilder.parse(workspacefilename);
+					} catch (SAXException e) {
+							// TODO Auto-generated catch block
+							
+							e.printStackTrace();
+					}
+				} catch (ParserConfigurationException e) {
+						// TODO Auto-generated catch block
+						e.printStackTrace();
+				}
+		         	
+		         //read counter
+		         //counter = new Integer(workspace_doc.getFirstChild().getFirstChild().getFirstChild().getNodeValue());
+		         init = true;
+		    }  catch (IOException ex){
+		    	//Admin.notifyUser("initCacheCounter:" + ex.toString());
+		        ex.printStackTrace();
+		    }
+		}
+		
+	    //return counter;
+	}
+/*
+	public void updateQuerycounter () {
+		workspace_doc.getFirstChild().getAttributes().getNamedItem("idcounter").setNodeValue(querycounter.toString());
+	    saveDocument();
+	}
+	*/
+	public void saveDocument() {
+	//public void writeQuerycounter (Integer i) {		
+		
+		// first update <index idcounter>
+		//workspace_doc.getFirstChild().getAttributes().getNamedItem("idcounter").setNodeValue(i.toString());
+		
+		//Admin.notifyUser("writeCacheCounter:" + i.toString());
+		// write xml
+		Transformer transformer;
+		try {
+			transformer = TransformerFactory.newInstance().newTransformer();
+			transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+
+			//initialize StreamResult with File object to save to file
+			StreamResult result = new StreamResult(new StringWriter());
+			DOMSource source = new DOMSource(workspace_doc);
+			try {
+				transformer.transform(source, result);
+			} catch (TransformerException e1) {
+				// TODO Auto-generated catch block
+				e1.printStackTrace();
+			}
+
+			String xmlString = result.getWriter().toString();
+
+			File f = new File (workspacefilename);
+			FileWriter fw;
+			try {
+				fw = new FileWriter(f);
+				try {
+					fw.write(xmlString);
+					fw.close();
+				} catch (IOException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}	
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+		} catch (TransformerConfigurationException e2) {
+			// TODO Auto-generated catch block
+			e2.printStackTrace();
+		} catch (TransformerFactoryConfigurationError e2) {
+			// TODO Auto-generated catch block
+			e2.printStackTrace();
+		}
+	}
+	
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Admin.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Admin.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Admin.java	(revision 1516)
@@ -0,0 +1,368 @@
+package eu.clarin.cmdi.mdservice.internal;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.Properties;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.w3c.dom.Document;
+import org.xml.sax.SAXException;
+
+import net.sf.json.JSON;
+import net.sf.json.JSONSerializer;
+import net.sf.json.xml.XMLSerializer;
+
+
+import eu.clarin.cmdi.mdservice.model.Query;
+import org.apache.log4j.Logger;
+
+/**
+ * Helper class, main-class to run as command-line java-app for testing
+ * 
+ * @author vronk
+ *
+ */
+
+public class Admin {
+
+	
+	private static String config_path = "mdservice.properties";
+	private static Properties  config;
+	public static Logger log = Logger.getLogger(Admin.class);
+	
+	public static String FATAL = "fatal";
+	public static String ERROR = "error";
+	public static String WARN = "warn";
+	public static String INFO = "info";
+	public static String DEBUG = "debug";
+	public static String TRACE = "trace";
+	
+	
+	public static void main(String[] args) {		
+
+		//log = Logger.getLogger(Admin.class);
+		//DOMConfigurator.configure("log4j.xml"); 
+		//log.debug("WELCOME LOG4J");
+		
+		//String dirpath = "C:/apps/ApacheTomcat/webapps/mdservice/schemas";
+		
+		//CMDRegistryProxy cmdreg = new CMDRegistryProxy ();
+		
+		//cmdreg.readCompRegistryFromDir(dirpath);
+		
+		//System.out.println(cmdreg.listComponents());
+
+		testJSON();
+		
+		//loadConfig(config_path);
+		
+		/*
+		//Query q = new Query("dc.title=dino or dinosaur", Query.RECORDSET);
+		//Query q = new Query("( ( Date any 2005 ) or ( Date any 2001 ) ) and ( ( Description any part ) )", Query.RECORDSET);
+		Query q = new Query("( ( Date any 2005 ) or ( Country = \"United States\" ) ) and ( ( Description any part ) )", Query.RECORDSET);
+		//System.out.println(q.toXCQL());
+		System.out.println(q.toXPath());
+		*/
+		//Query q = new Query("CMD", "cmdIndex");
+		
+		//try {
+			
+			/*
+
+			Query q = new Query("Title=the", Query.RECORDSET, "olac" );
+			q.execute();
+		 
+		 InputStream inputStream = q.getResult().getResultStream("htmltable");
+	*/	 
+		//MDTransformer.getMDTransformer(q.getResult().getResultStream("xml"),"model2html",);
+		/*
+			MDRepoProxyAction mrpa = new MDRepoProxyAction();
+			// crp.setCompname("cmdi-corpus-aac2");
+			mrpa.setQ("Title any the");
+			mrpa.setCollection("olac");
+			mrpa.setActionkey("recordset");
+			mrpa.setFormat("xml");
+			mrpa.execute();
+			InputStream inputStream = mrpa.getInputStream();
+			
+			Cache.getCache().putInCache("test", inputStream);
+			*/
+			
+			/*
+			DCRProxyAction dcr = new DCRProxyAction();
+			dcr.setDc("1253");
+			InputStream	inputStream = MDTransformer.getMDTransformer().transformXML(dcr.getSourceStream(), "dcif2htmldiv");		
+
+			*/
+			/* 
+			CompRegistryProxyAction crp = new CompRegistryProxyAction ();
+			// crp.setCompname("cmdi-corpus-aac2");
+			crp.setFormat("htmllist");
+			crp.execute();
+			InputStream inputStream = crp.getInputStream();
+	*/
+			
+		//	InputStream inputStream = MDRepositoryProxy.getMDRepo().getCollections(null);
+			
+			//copyStreams(inputStream,System.out);
+			/*
+		} catch (IOException e1) {
+			// TODO Auto-generated catch block
+			e1.printStackTrace();
+		} catch (InterruptedException e1) {
+			// TODO Auto-generated catch block
+			e1.printStackTrace();
+		}	catch (Exception e) {
+			Admin.notifyUser(e.getMessage());
+		}
+	*/
+			
+		//System.out.println(res.xmlString());
+		//System.out.println(res.toFormat("MODEL2VIEW"));
+		
+		
+		//System.out.println(res.xmlString());
+		
+//		MDRepositoryProxy.getMDRepo().queryModel("CMD", System.out);
+		
+		//testParse();
+		
+		/*
+		 * CMDComponent testcomp = new CMDComponent("C:/apps/ApacheTomcat/webapps/mdservice/schemas/component-olac.xml");
+		 
+		System.out.println(testcomp.name());
+		System.out.println("components:");
+		for (Iterator it = testcomp.components().iterator();
+		it.hasNext();) {
+			CMDComponentType comp = (CMDComponentType)it.next();
+			System.out.println(comp.getName() + " " + comp.getConceptLink() + "\n");
+			
+		}
+
+		System.out.println("elements:");
+		for (Iterator it = testcomp.elements().iterator();
+		it.hasNext();) {
+			CMDElementType comp = (CMDElementType)it.next();
+			System.out.println(comp.getName() + " " + comp.getConceptLink() + "\n");
+			
+		}
+		*/
+	}
+
+	/*
+	public static void testCache (InputStream instream) {
+		String myKey = "myKey2";
+		String myValue;
+		int myRefreshPeriod = 1000;
+		GeneralCacheAdministrator admin = new GeneralCacheAdministrator();
+		System.out.print(admin.isMemoryCaching());
+		System.out.print(admin.getProperty("cache.path"));
+		
+		try {
+		    // Get from the cache
+		    myValue = (String) admin.getFromCache(myKey, myRefreshPeriod);
+		    System.out.println("value from cache:" + myValue);
+		} catch (NeedsRefreshException nre) {
+		    try {
+		        // Get the value (probably from the database)
+	//	        myValue = "This is the content retrieved.";
+		        // Store in the cache
+		        admin.putInCache(myKey, instream.toString());
+		        System.out.println("freshfromcache: " );
+		        System.out.println(admin.getFromCache(myKey, myRefreshPeriod));
+		        //copyStreams((InputStream) admin.getFromCache(myKey, myRefreshPeriod),System.out);
+		    } catch (Exception ex) {
+		        // We have the current content if we want fail-over.
+//		        myValue = (String) nre.getCacheContent();
+		        // It is essential that cancelUpdate is called if the
+		        // cached content is not rebuilt
+		        admin.cancelUpdate(myKey);
+		    }
+		//System.out.println(myValue);
+	}
+	*/
+	public static void loadConfig() {
+		loadConfig(config_path);
+	}
+
+	public static void loadConfig(String configPath) {
+		
+		System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl");
+		InputStream config_file;
+		 
+		try {			
+			config_file = Admin.class.getClassLoader().getResourceAsStream(configPath);
+			
+//		     System.out.println(config_file);
+			if (config_file == null) {
+			     Admin.notifyUser("CONFIGURATION ERROR: Properties file not found!");
+			} else {
+				
+				System.out.println("Reading configuration from: " + Admin.class.getClassLoader().getResource(configPath));
+				//config_file = new FileInputStream(configPath);
+				config = new Properties();
+				config.load(config_file);	
+			}
+			
+		} catch (FileNotFoundException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} 
+	}
+	
+	
+	public static Properties getConfig() {
+		if (config==null)  {
+			loadConfig(config_path);
+		}
+		return config;
+	}
+
+	public static void notifyUser(String msg ) {
+		notifyUser(msg, Admin.DEBUG);
+	}
+	public static void notifyUser(String msg, String type ) {
+		//Logger log = Logger.getLogger("Admin.class");
+		if (msg.length() == 0){
+			return;
+		}
+		if (type.equals(Admin.FATAL)) {
+			log.fatal(msg);
+		}
+		if (type.equals(Admin.ERROR)) {
+			log.error(msg);
+		}
+		if (type.equals(Admin.WARN)) {
+			log.warn(msg);
+		}
+		if (type.equals(Admin.INFO)) {
+			log.info(msg);
+		}
+		if (type.equals(Admin.DEBUG)) {
+			log.debug(msg);
+		}
+		if (type.equals(Admin.TRACE)) {
+			log.trace(msg);
+		}
+		//System.out.println(msg);
+	}
+
+
+	public static InputStream loadFile(String path) {
+		
+		InputStream file=null;
+		 
+		try {			
+			file = Admin.class.getClassLoader().getResourceAsStream(path);
+			
+//		     System.out.println(config_file);
+			if (file == null) {
+			     Admin.notifyUser("File not found!: " + path);
+			} else {
+				
+				System.out.println("Reading in: " + Admin.class.getClassLoader().getResource(path));
+				//config_file = new FileInputStream(configPath);
+		//		Properties test = new Properties();
+			//	test.load(file);
+			}
+			/*
+		} catch (FileNotFoundException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+			*/
+		}   catch (Exception e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} 
+		
+		return file;
+	}
+	
+	
+	public static Document getXMLDocument(String path) {
+		Document retdoc=null;
+		try {
+			
+         	DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+         	DocumentBuilder docBuilder;
+			try {
+				docBuilder = docFactory.newDocumentBuilder();		    
+				try {
+					Admin.notifyUser("trying to read from:" + path);
+					InputStream xmlstream =  loadFile(path);					
+					//retdoc= docBuilder.parse(fname);
+					retdoc= docBuilder.parse(xmlstream);
+					Admin.notifyUser("read in:" + retdoc);
+				} catch (SAXException e) {
+						// TODO Auto-generated catch block
+						Admin.notifyUser(e.getMessage());
+						e.printStackTrace();
+				}
+			} catch (ParserConfigurationException e) {
+					// TODO Auto-generated catch block
+				Admin.notifyUser(e.getMessage());
+					e.printStackTrace();
+			}
+	         	
+	         
+	    }  catch (IOException ex){
+	    	//Admin.notifyUser("initCacheCounter:" + ex.toString());
+	        ex.printStackTrace();
+	    } catch (Exception e) {
+	    	Admin.notifyUser("Admin.getXMLDocument():" + e.getMessage());
+	    }
+	    return retdoc;
+	}
+	
+
+	
+public static void copyStreams (InputStream in, OutputStream out) throws IOException, InterruptedException {		
+		
+		byte[] buffer = new byte[1024];
+		int len = in.read(buffer);
+		while (len != -1) {
+		    out.write(buffer, 0, len);
+		    len = in.read(buffer);
+		    if (Thread.interrupted()) {
+		        throw new InterruptedException();
+		    }
+		}
+	}
+	
+public static void writeToFile (String path, InputStream in) {	
+	try
+	    {
+			File f=new File(path);	    
+		    OutputStream out=new FileOutputStream(f);
+		    copyStreams(in,out);	    
+		    out.close();	    
+	    }
+	    catch (Exception e){
+	    	Admin.notifyUser("ERROR writeToFile");
+	    	e.printStackTrace();
+	    }
+	}
+
+public static void testJSON() {
+Admin.notifyUser("JSON TEST");
+    String str = "{'name':'JSON','integer':1,'double':2.0,'boolean':true,'nested':{'id':42},'array':[1,2,3]}";
+    Query q = new Query("dc.title=dino or dinosaur", Query.RECORDSET);
+        JSON json = JSONSerializer.toJSON( str);  
+        XMLSerializer xmlSerializer = new XMLSerializer();  
+        String xml = xmlSerializer.write( json ); 
+        Admin.notifyUser(xml);
+}
+
+}
+
+
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Cache.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Cache.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Cache.java	(revision 1516)
@@ -0,0 +1,626 @@
+package eu.clarin.cmdi.mdservice.internal;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringWriter;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.HashMap;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Result;
+import javax.xml.transform.Source;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.TransformerFactoryConfigurationError;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.apache.commons.lang.StringEscapeUtils;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.xml.sax.SAXException;
+
+import eu.clarin.cmdi.mdservice.model.Query;
+
+/**
+ * This is a rudimentary caching mechanism.
+ * It serializes the inputstream to a file (identifier => filename) (putInCache())
+ * or returns the inputstream based on the identifier (getFromCache())
+ * 
+ * <p>It maintains the cache_index (persisted as xml-file in the cache-folder)
+ * mapping the request parameters to the indexed files.</p>
+ * 
+ * This is an internal object, direct user access to cache-data via interface is only possible via <code>AdminAction</code>
+ * @author master
+ *
+ */
+
+public class Cache {
+	public static String PREFIX = "xc_";
+	
+	public static String USE = "use";
+	public static String REFRESH = "refresh";
+	public static String SKIP= "skip";	
+	
+	private static Cache singleton;
+	private String cachepath; 
+	private String cacheindex_path;
+	private static Integer cachecounter;
+	private static final Integer start_cache = 1;
+	
+	private static Document cacheindex_doc;
+	
+	
+	public Cache () {		
+		cachepath = Admin.getConfig().getProperty("cache.path");
+		cacheindex_path = cachepath + Admin.getConfig().getProperty("cacheindex.file");
+		cachecounter = initCachecounter();
+		
+	}
+	
+	public static Cache getCache() {
+		if (singleton == null) {
+			singleton = new Cache();
+		} 
+		return singleton;
+	}
+
+	public String getCacheIndexPath() {
+		return getCache().cacheindex_path;
+		
+	}
+
+	protected void finalize() throws Throwable {	    
+	    try {	        
+	    	updateCachecounter();
+	    } catch(Exception e) {
+	    }	    
+	    finally {	        
+	        super.finalize();
+	        //more code can be written here as per need of application	        
+	    }
+	}
+	
+	/**
+	 * Here the external key for the data gets cache-internal counter-id assigned
+	 * which is also returned back.
+	 * 
+	 * The external key gets parsed and put as individual attributes in the <f>-element:
+	 * 
+	 * <code>
+	 * <f collection="" date="2011-04-20 01:06:50" duration="0.227" id="3" lang="en"
+     *   maxDepth="1"
+     *   maximumItems=""
+     *   query=""
+     *   repository="localhost-mirror"
+     *   squery=""
+     *   startItem=""
+     *   type="collections"/>
+      </code>
+	 *  
+	 * 
+	 * @param key_info a complex string carrying all relevant parameters
+	 * @param instream data to be stored
+	 * @return
+	 */
+	public String putInCache(String key_info, InputStream instream) {
+
+		Admin.notifyUser("CACHE.putInCache:"+key_info);
+		Integer c = getCounter();
+		String xc;
+		
+		
+		//update xml_structure
+		Element e = cacheindex_doc.createElement("f");
+		//Attr attr = cacheindex_doc.createAttribute("id");
+		//attr.setValue(c.toString());
+		//e.setNamedItem(attr);
+		e.setAttribute("id", c.toString());
+		String[] key_array = key_info.split("//-");
+		
+		e.setAttribute("type", key_array[0]);
+		if (key_array.length > 1){
+			String query_str;
+			if (key_array[0].equals("recordset")){
+				query_str = transformQuery(key_array[1]);
+			} else {
+				query_str = key_array[1];
+			}
+			e.setAttribute("query", query_str);
+		}else{
+			e.setAttribute("query", "");
+		}
+		if (key_array.length > 2){
+			e.setAttribute("collection", key_array[2]);
+		}else{
+			e.setAttribute("collection", "");
+		}
+		if (key_array.length > 3){
+			e.setAttribute("squery", key_array[3]);
+		}else{
+			e.setAttribute("squery", "");
+		}
+		if (key_array.length > 4){
+			e.setAttribute("startItem", key_array[4]);
+		}else{
+			e.setAttribute("startItem", "");
+		}
+		if (key_array.length > 5){
+			e.setAttribute("maximumItems", key_array[5]);
+		}else{
+			e.setAttribute("maximumItems", "");
+		}
+		
+		if (key_array.length > 6){
+			e.setAttribute("repository", key_array[6]);
+		}else{
+			e.setAttribute("repository", "");
+		}
+		if (key_array.length > 7){
+			e.setAttribute("maxDepth", key_array[7]);
+		}else{
+			e.setAttribute("maxDepth", "");
+		}
+		if (key_array.length > 8){
+			e.setAttribute("lang", key_array[8]);
+		}else{
+			e.setAttribute("lang", "");
+		}
+		if (key_array.length > 9){
+			e.setAttribute("duration", key_array[9]);
+		}else{
+			e.setAttribute("duration", "");
+		}
+		
+		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
+		e.setAttribute("date", dateFormat.format(new Date()).toString());
+		cacheindex_doc.getFirstChild().appendChild(e);
+		
+		// update XML-counter
+	    //Admin.writeToFile(formPath(id + xc),instream);
+		
+		updateCachecounter();
+		
+		xc = PREFIX + key_array[0] + "_" + c.toString();
+		Admin.notifyUser("CACHE.putInCache.filename:" + xc + ".xml");
+		Admin.writeToFile(cachepath + xc + ".xml",instream);
+		
+	    return xc;
+	}
+	
+	
+	public InputStream getFromCache(String key_info) {
+		   
+		
+		   File f = new File (formPath(key_info));
+		   //Admin.notifyUser("CACHE.getFromCache:"+key_info);
+		   
+		   
+		    if (f.exists()) { // read from file to InputStream;
+		    	Admin.notifyUser("CACHE.getFromCache.fromfile:"+f.getName() + "[#" + key_info + "]");
+		    	InputStream instream;
+				try {
+					instream = new FileInputStream(f); 
+
+					return instream;
+				} catch (FileNotFoundException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+					return null;
+				}
+		    	
+		    } else { //not cached, my dear 
+		    	Admin.notifyUser("CACHE.getFromCache: NOT CACHED" + "[#" + key_info + "]");
+		    	return null;
+		    }	    
+	}
+ 
+	private String transformQuery (String str) {
+		String transformed;
+		Query query;
+		
+		if (str == null) return "";
+		if (str.trim().length() == 0) return "";
+		
+		// provisional hack, setting simple string to ""
+		query = new Query("", str,"recordset","");
+		if (query.isStatus(Query.PARSEERROR)) {
+			Admin.notifyUser("Cache.transformQuery.PARSEERROR:" + query.getMsg());
+			// pass this bad news to the client
+			//setUserMsg(query.getMsg());
+			transformed = "";
+		} else {
+			transformed =  Query.getSimpleQueryString(str);
+			transformed = StringEscapeUtils.escapeXml(transformed);
+			//Admin.notifyUser("CACHE.transformQuery:"+transformed);
+		}
+		return transformed;
+	}
+	
+	
+	 //TODO: sanitize-key
+	public String formPath (String key_info) {
+		String id="";
+		String path="";
+		String xpath_expr="";
+		
+		String[] key_array = key_info.split("//-");
+		String query_str;		
+		
+		if(key_array.length > 1){
+		//	Admin.notifyUser("formPATH- querystring:" + key_array[1]);
+			if (key_array[0].equals("recordset")){
+				query_str = this.transformQuery(key_array[1]);	
+			//	Admin.notifyUser("formPATH- querystring-transformed:" + query_str);
+			}
+			else {
+				query_str = key_array[1];
+			}
+		} else {
+			query_str = "";
+		}
+		xpath_expr = "//index/f[@type='" + key_array[0] + "'";
+		xpath_expr = xpath_expr + " and @query='"+query_str+"'";
+		
+		if (key_array.length > 2){
+			xpath_expr = xpath_expr + "and @collection='"+key_array[2]+"'";
+		}else{
+			xpath_expr = xpath_expr + " and @collection=''";
+		}
+		if (key_array.length > 3){
+			xpath_expr = xpath_expr + "and @squery='"+key_array[3]+"'";
+		}else{
+			xpath_expr = xpath_expr + " and @squery=''";
+		}
+		if (key_array.length > 4){
+			xpath_expr = xpath_expr + "and @startItem='"+key_array[4]+"'";
+		}else{
+			xpath_expr = xpath_expr + " and @startItem=''";
+		}
+		if (key_array.length > 5){
+			xpath_expr = xpath_expr + "and @maximumItems='"+key_array[5]+"'";
+		}else{
+			xpath_expr = xpath_expr + " and @maximumItems=''";
+		}
+		
+		if (key_array.length > 6){
+			xpath_expr = xpath_expr + "and @repository='"+key_array[6]+"'";
+		}else{
+			xpath_expr = xpath_expr + " and @repository=''";
+		}
+		if (key_array.length > 7){
+			xpath_expr = xpath_expr + "and @maxDepth='"+key_array[7]+"'";
+		}else{
+			xpath_expr = xpath_expr + " and @maxDepth=''";
+		}
+		if (key_array.length > 8){
+			xpath_expr = xpath_expr + "and @lang='"+key_array[8]+"']";
+		}else{
+			xpath_expr = xpath_expr + " and @lang='']";
+		}
+		
+		//Admin.notifyUser("formPath:xpath:"+xpath_expr);
+		//creating an XPathFactory:
+        XPathFactory factory = XPathFactory.newInstance();
+        //using this factory to create an XPath object: 
+        XPath xpath = factory.newXPath();
+        //XPath object created compiles the XPath expression: 
+        XPathExpression expr;
+		try {
+			expr = xpath.compile(xpath_expr);
+			//expression is evaluated with respect to a certain context node which is doc.
+	        Object result = expr.evaluate(cacheindex_doc, XPathConstants.NODESET);
+	        NodeList list = (NodeList) result;
+	        if (list.getLength() > 0) {
+		        id = list.item(0).getAttributes().getNamedItem("id").getNodeValue();
+		        path = cachepath + PREFIX + key_array[0] + "_"+id + ".xml";
+	        }  else if (list.getLength() > 1){
+	        	Admin.notifyUser("formPath ERROR:!!!:multiple paths:"+key_info);
+	        	
+	        }
+	        
+		} catch (XPathExpressionException e) {
+			// TODO Auto-generated catch block
+			Admin.notifyUser("ERROR Cache.formPath: "+xpath_expr);
+		}
+		
+	    return path;
+	}
+	
+	public Integer getCounter () {
+		cachecounter = cachecounter +1 ;
+		return cachecounter;
+	}
+	
+	/**
+	 * read counter-integer from file in cache
+	 * or start that file
+	 * @return The current maximum cache counter
+	 */
+	public Integer initCachecounter() {
+		
+		Integer counter = start_cache;
+		boolean init=false;
+		String fname = cacheindex_path;
+		File f = new File (fname);
+		
+		//Admin.notifyUser("initCacheCounter");
+		if (!f.exists()) {
+				// create new  counter document
+				DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+	         	DocumentBuilder docBuilder;
+				try {
+					docBuilder = docFactory.newDocumentBuilder();
+					cacheindex_doc = docBuilder.newDocument();
+					// append root tag <index >
+					Element root = (Element) cacheindex_doc.createElement("index");
+					root.setAttribute("idcounter", "1");
+					cacheindex_doc.appendChild(root);
+					writeCachecounter(counter);
+					
+					//Admin.notifyUser("new document");
+				} catch (ParserConfigurationException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}
+				
+			//} catch (IOException e2) {
+			//	Admin.notifyUser("ERROR creating cache counter");
+			//	e2.printStackTrace();
+			//}
+	    }
+		else {
+			try {
+				
+	         	DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+	         	DocumentBuilder docBuilder;
+				try {
+					docBuilder = docFactory.newDocumentBuilder();		    
+					try {
+							cacheindex_doc = docBuilder.parse(fname);
+					} catch (SAXException e) {
+							// TODO Auto-generated catch block
+							
+							e.printStackTrace();
+					}
+				} catch (ParserConfigurationException e) {
+						// TODO Auto-generated catch block
+						e.printStackTrace();
+				}
+		         	
+		         //read counter
+		         counter = new Integer(cacheindex_doc.getFirstChild().getAttributes().getNamedItem("idcounter").getNodeValue());
+		         init = true;
+		    }  catch (IOException ex){
+		    	//Admin.notifyUser("initCacheCounter:" + ex.toString());
+		        ex.printStackTrace();
+		    }
+		}
+		
+	    return counter;
+	    /*
+    	      //use buffering, reading one line at a time
+    	      //FileReader always assumes default encoding is OK!
+	    	BufferedReader input =  new BufferedReader(new FileReader(f));
+	    		try {
+	    			String line = null; //not declared within while loop
+		        /*
+		        * readLine is a bit quirky :
+		        * it returns the content of a line MINUS the newline.
+		        * it returns null only for the END of the stream.
+		        * it returns an empty String if two newlines appear in a row.
+		        *
+	    		try {
+					if (( line = input.readLine()) != null){
+						try {
+							counter = new Integer(line);
+						} catch (NumberFormatException e) {
+						// if not a number, write a number
+							init=true;	
+						}  
+					} else {
+						init=true;
+					}
+				} catch (IOException e) {
+					init=true;
+				}
+		        
+		        if (init) {		        		        	
+  	        	    writeCachecounter( start_cache);					
+		        }
+		        
+    		} finally {
+    	        input.close();
+    	     }	 
+    	     */   	
+	}
+
+	public void updateCachecounter () {
+		//Admin.notifyUser("CACHEcounter:" + cachecounter);
+	    writeCachecounter( cachecounter);
+	}
+	public void writeCachecounter (Integer i) {		
+		
+		// first update <index idcounter>
+		cacheindex_doc.getFirstChild().getAttributes().getNamedItem("idcounter").setNodeValue(i.toString());
+		
+		//Admin.notifyUser("writeCacheCounter:" + i.toString());
+		// write xml
+		Transformer transformer;
+		try {
+			transformer = TransformerFactory.newInstance().newTransformer();
+			transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+
+			//initialize StreamResult with File object to save to file
+			StreamResult result = new StreamResult(new StringWriter());
+			DOMSource source = new DOMSource(cacheindex_doc);
+			try {
+				transformer.transform(source, result);
+			} catch (TransformerException e1) {
+				// TODO Auto-generated catch block
+				e1.printStackTrace();
+			}
+
+			String xmlString = result.getWriter().toString();
+			//Admin.notifyUser("writeCacheCounter:" + xmlString);
+			//Admin.writeToFile("", result);
+
+
+			File f = new File (cacheindex_path);
+			FileWriter fw;
+			try {
+				fw = new FileWriter(f);
+				try {
+					fw.write(xmlString);
+					fw.close();
+				} catch (IOException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}	
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+		} catch (TransformerConfigurationException e2) {
+			// TODO Auto-generated catch block
+			e2.printStackTrace();
+		} catch (TransformerFactoryConfigurationError e2) {
+			// TODO Auto-generated catch block
+			e2.printStackTrace();
+		}
+		
+			
+
+		/*
+		File f = new File (Admin.getConfig().getProperty("cache.path") + "counter.txt");
+ 	    
+		try {
+			Writer output = new BufferedWriter(new FileWriter(f));		
+	      //FileWriter always assumes default encoding is OK!
+			try {
+				output.write( i);
+			} finally {
+				output.close();
+			}	
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		*/
+	}
+	
+	public InputStream clear(HashMap<String,String> clear_params) throws ParserConfigurationException, TransformerConfigurationException, TransformerException, TransformerFactoryConfigurationError {
+		String xpath_expr = "";
+		Integer removed = 0;
+		InputStream is = null;
+		
+		if (clear_params.size() > 0 ) {
+			if (clear_params.containsKey("repository")){
+				xpath_expr = xpath_expr + " and @repository='" + clear_params.get("repository") + "'";
+			}
+			if (clear_params.containsKey("type")){
+				xpath_expr = xpath_expr + " and @type='" + clear_params.get("type") + "'";
+			}
+			if (clear_params.containsKey("date")){
+				xpath_expr = xpath_expr + " and @date='" + clear_params.get("date") + "'";
+			}
+			if (clear_params.containsKey("datefrom")){
+				xpath_expr = xpath_expr + " and @date >= '" + clear_params.get("datefrom") + "'";
+			}
+			if (clear_params.containsKey("dateto")){
+				xpath_expr = xpath_expr + " and @date <= '" + clear_params.get("dateto") + "'";
+			}
+			if (xpath_expr.length()>0){
+				xpath_expr = xpath_expr.substring(5);
+			}
+			xpath_expr = "//index/f[" + xpath_expr + "]";
+		} else {
+			xpath_expr = "//index/f";
+		}
+	
+		////////// remove index_lines  + files
+		String id,type,path;
+		File f;
+		//creating an XPathFactory:
+		XPathFactory factory = XPathFactory.newInstance();
+		//using this factory to create an XPath object: 
+		XPath xpath = factory.newXPath();
+		//XPath object created compiles the XPath expression: 
+		XPathExpression expr;
+		try {
+			expr = xpath.compile(xpath_expr);
+			//expression is evaluated with respect to a certain context node which is doc.
+	        Object result = expr.evaluate(cacheindex_doc, XPathConstants.NODESET);
+	        NodeList list = (NodeList) result;
+	        
+	        //create deleted_doc
+	        DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+         	DocumentBuilder docBuilder;
+			docBuilder = docFactory.newDocumentBuilder();
+			Document deleted_doc = docBuilder.newDocument();
+			Element root = (Element) deleted_doc.createElement("index");
+			root.setAttribute("count_deleted", String.valueOf(list.getLength()) );
+			deleted_doc.appendChild(root);
+			
+			// delete items
+			for(int i = 0;i< list.getLength();i++){
+				
+				id = list.item(i).getAttributes().getNamedItem("id").getNodeValue();
+		        type = list.item(i).getAttributes().getNamedItem("type").getNodeValue();
+		        path = cachepath + PREFIX + type + "_"+id + ".xml";
+		        f = new File (path);
+		        
+		        f.delete();
+		        cacheindex_doc.getFirstChild().removeChild(list.item(i));
+		        
+		        Element e = deleted_doc.createElement("f");
+		        e.setAttribute("filename", path);
+		        e.setAttribute("id", id);
+		        deleted_doc.getFirstChild().appendChild(e);
+			}  
+			
+			//create resultstream
+			ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); 
+			Source xmlSource = new DOMSource(deleted_doc); 
+			Result outputTarget = new StreamResult(outputStream); 
+			TransformerFactory.newInstance().newTransformer().transform(xmlSource, outputTarget); 
+			is = new ByteArrayInputStream(outputStream.toByteArray()); 
+
+			removed = list.getLength();
+	        
+		} catch (XPathExpressionException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		
+		//////// set the index value
+		NodeList nl = cacheindex_doc.getElementsByTagName("f");
+		if (nl.getLength() < 1){
+			cachecounter = 1;
+		}else {
+			cachecounter = Integer.parseInt(nl.item(nl.getLength()-1).getAttributes().getNamedItem("id").getNodeValue());
+		}
+		this.updateCachecounter();
+		return is;
+	}
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Helpers.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Helpers.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Helpers.java	(revision 1516)
@@ -0,0 +1,148 @@
+package eu.clarin.cmdi.mdservice.internal;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.io.PrintStream;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.FactoryConfigurationError;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.w3c.dom.Document;
+import org.xml.sax.SAXException;
+
+public class Helpers {
+
+	private static PrintStream log;
+	
+	public static Document readFSLS(String infile)
+	{
+		Document document = null;
+		try {
+		    DocumentBuilderFactory factory = 
+		    DocumentBuilderFactory.newInstance();
+		    DocumentBuilder builder = factory.newDocumentBuilder();
+		    document = builder.parse(infile);		    
+		}
+		catch (FactoryConfigurationError e) {
+		    // unable to get a document builder factory
+			notifyUser(e.getClass() + ": " + e.getLocalizedMessage());
+		} 
+		catch (ParserConfigurationException e) {
+		    // parser was unable to be configured
+			notifyUser(e.getClass() + ": " + e.getLocalizedMessage());			
+		}
+		catch (IOException e) {
+		    // i/o error
+			notifyUser(e.getClass() + ": io-error " + e.getLocalizedMessage());			
+		} catch (SAXException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		
+		return document;
+	}
+	
+	public static void notifyUser (String msg) {
+		if (log== null) { log = System.err; }
+		log.println(msg);
+		
+	}
+
+	public static void copy (InputStream in, OutputStream out) throws IOException, InterruptedException {		
+		
+		byte[] buffer = new byte[1024];
+		int len = in.read(buffer);
+		while (len != -1) {
+		    out.write(buffer, 0, len);
+		    len = in.read(buffer);
+		    if (Thread.interrupted()) {
+		        throw new InterruptedException();
+		    }
+		}
+	}
+	
+
+	public static Document getDocument(InputStream is){
+		Document doc = null;
+		DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+     	DocumentBuilder docBuilder;
+		try {
+			docBuilder = docFactory.newDocumentBuilder();
+			doc = docBuilder.parse(is);
+		} catch (ParserConfigurationException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (SAXException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}	
+		return doc;
+	}
+	
+	public static String getDocumentData(InputStream is, String expression){
+		String data = "";
+	
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+		try {
+			expr = xpath.compile(expression);
+			data = (String) expr.evaluate(getDocument(is), XPathConstants.STRING);
+		} catch (XPathExpressionException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		        
+		return data;
+		
+	}
+	/*
+	 * TODO: this should go to Utilities!
+	 */
+	public  static String convertStreamToString(InputStream is) {  
+		
+		BufferedReader reader = new BufferedReader(new InputStreamReader(is));  
+		StringBuilder sb = new StringBuilder();  
+		String line = null;  
+		
+		try {
+			while ((line = reader.readLine()) != null) {  
+			                 sb.append(line + "\n");  
+			}
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}  finally {
+			try {
+				is.close();
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+			try {
+				is.reset();
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+		}
+		  
+		
+		return sb.toString();  
+	}
+
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/MDTransformer.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/MDTransformer.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/MDTransformer.java	(revision 1516)
@@ -0,0 +1,331 @@
+package eu.clarin.cmdi.mdservice.internal;
+
+import java.io.BufferedInputStream;
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+
+import org.apache.log4j.Logger;
+
+import net.sf.saxon.event.MessageEmitter;
+
+//import com.icl.saxon.*;
+//import com.icl.saxon.FeatureKeys;
+//import com.icl.saxon.Loader;
+//import com.icl.saxon.output.Emitter;
+
+
+/**
+ * Helper class, encapsulating the xsl-transformations handling.
+ * The contract is, that the requester passes a key, which can be resolved to a xsl-script (momentary mapped in properties: Admin.getConfig())
+ * 
+ * Bad things happen, if the key or the appropriate xsl-file do not exist - well the client gets a diagnostic message.
+ *    
+ * 
+ * @author vronk
+ *
+ */
+
+public class MDTransformer {
+	
+	private static Logger log = Logger.getLogger("MDRepoProxy");
+	
+	private URL srcFile ;
+	private HashMap<String,String> params;
+		
+	// don't use singleton!! Bad things happen
+	// private MDTransformer singleton;
+	TransformerFactory tfactory ; 
+	
+	public MDTransformer () {		
+		tfactory = TransformerFactory.newInstance();	
+	}
+	
+	
+	public URL getSrcFile() {
+		return srcFile;
+	}
+
+	public void setSrcFile(URL srcFile) {
+		this.srcFile = srcFile;
+	}
+
+	/**
+	 * This serves the caller (mainly GenericProxyAction.prepare())
+	 * to provide/fill the request parameters. 
+	 * They then get translated to stylesheet-parameters (in SetTransformerParameters()).
+	 * @return
+	 */
+	public void setParams(HashMap<String,String> params){
+		this.params = params;
+	}
+	
+	
+	public HashMap<String,String> getParams(){
+		return this.params;
+	}
+	/**
+	 * get the path to the transform-xsl file from properties, based on the key (aka format-parameter)
+	 * @param key
+	 * @return
+	 * @throws NoStylesheetException - if no matching entry in properties could be found 
+	 */
+	private String getXSLPath (String key) throws NoStylesheetException {		
+		String xslpath = "";
+		String xslfilename= Admin.getConfig().getProperty("xsl." + key);
+		
+		if (xslfilename!=null) {			
+			xslpath =  Admin.getConfig().getProperty("scripts.path") + xslfilename;
+		} else {
+			throw new NoStylesheetException("No Stylesheet found for format-key: " + key);
+		}
+		log.debug("xslfile:" + xslpath);
+		return xslpath;
+	}
+
+	/**
+	 * Tries to load the stylesheet based on the key.
+	 * This is done in two steps:
+	 * 1. try to resolve the key to a path
+	 * 2. get the xsl-file as a stream (and establish it as StreamSource) 
+	 * 
+	 * @param key The key identifying the stylesheet for the transformation as passed by GenericProxyAction.
+	 * @return the stylesheet to be applied (as StreamSource)
+	 * @throws NoStylesheetException If the stylesheet could not be located
+	 */
+	private StreamSource getXSLStreamSource (String key) throws NoStylesheetException{		
+		
+		InputStream xslstream;
+					
+		//URL myURL = new URL (getXSLPath(key));
+		//xslstream = myURL.openStream();
+		String xslPath = getXSLPath(key);
+		xslstream = this.getClass().getClassLoader().getResourceAsStream(xslPath);
+		StreamSource streamSource = new StreamSource(xslstream);
+
+		streamSource.setSystemId(this.getClass().getClassLoader().getResource(xslPath).toString());
+		return streamSource ;	
+		
+	}
+	
+	public String getTranskey(){
+		return params.get("format");
+	}
+
+	/**
+	 * Makes the request-parameters available in the stylesheets
+	 * by translating them to stylesheet-parameters
+	 * @param transformer
+	 */
+	public void SetTransformerParameters(Transformer transformer){
+		
+		Set<Map.Entry<String,String>> set = params.entrySet();
+		Iterator<Map.Entry<String,String>> i = set.iterator();
+
+	    while(i.hasNext()){
+	      Map.Entry<String,String> e = (Map.Entry<String,String>)i.next();
+	      transformer.setParameter((String)e.getKey(), (String)e.getValue());
+	    }
+	}
+	
+	/**
+	 * The main method for transforming, applies the appropriate (based on the transkey) stylesheet on the xml-stream
+	 * and writes the result into the output stream.    
+	 * @param in InpuStream with xml  
+	 * @param transkey this defines the stylesheet to use and is also passed to the stylesheet as "format"-parameter 
+	 * @param out the stream to write the output to
+	 * @throws TransformerException
+	 * @throws IOException
+	 * @throws NoStylesheetException 
+	 */
+	public void transformXML (InputStream in, OutputStream out ) throws TransformerException, IOException, NoStylesheetException {
+	//public void transformXML (InputStream in, String transkey, String cols, String startRecord, String maximumRecords, String lang, String q, String repositoryURI, OutputStream out ) throws TransformerException, IOException {
+	
+			System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl");
+	        // Create a transform factory instance.
+	        TransformerFactory tfactory = TransformerFactory.newInstance();
+	        //OutputStream os = new ByteArrayOutputStream();
+	        StreamResult stream = new StreamResult(out);
+	        
+	        // Create a transformer for the stylesheet.
+	        	//String xslpath = getXSLPath(transkey);	        
+	        Transformer transformer = tfactory.newTransformer(
+	        							getXSLStreamSource(getTranskey()));
+	        SetTransformerParameters(transformer);
+	        
+	        //MessageWarner gg = new net.sf.saxon.event.MessageWarner();
+	        MessageEmitter me = new net.sf.saxon.event.MessageEmitter();
+	        StringWriter w = new StringWriter();
+	        me.setWriter(w);
+	       ((net.sf.saxon.Controller)transformer).setMessageEmitter(me);//new net.sf.saxon.event.MessageWarner());
+
+	       
+	        if (srcFile!=null) {
+	        	
+	        	File f = new File(srcFile.getPath());
+	        	    
+		        //Admin.notifyUser("src:" + srcFile.getFile());
+		        //Admin.notifyUser("fpath:" + f.getAbsolutePath());
+		        String root_uri =  srcFile.toString();
+		        String xsrcfile =  srcFile.getFile();
+		        if  (srcFile.getProtocol().equals("file")) {
+		        	root_uri = "file:///" + f.getParent().replace('\\', '/');
+		        	xsrcfile = "file:///" + f.getPath().replace('\\', '/');
+		        } 
+		        // TODO repository-path -removed, bad formating
+		        String[] xsrcfiles = xsrcfile.split("&repository=");
+		        String[] root_uris = root_uri.split("&repository=");
+		        xsrcfile = xsrcfiles[0];
+		        root_uri = root_uris[0];
+		        ///
+		        
+		        log.debug("root_uri:" +  root_uri );
+		        log.debug("xsrcfile:" +  xsrcfile );
+		        
+		        transformer.setParameter("root_uri", root_uri );
+		        transformer.setParameter("src_file", xsrcfile);
+	        } else {
+	        	log.error("transformXML(): srcFile not set!!");	        		
+	        }
+	        // 
+	        StreamSource src =new StreamSource();      	        
+	        src.setInputStream(in);
+	        // Transform the source XML to out-stream
+	        transformer.transform(src, stream );
+	        
+	        // Write <xsl:message>
+	        writeXslMessages(w);
+	        ///Admin.notifyUser(w.getBuffer().toString());	        
+   }
+	
+
+	/**
+	 * just a wrapper for the main method translating the output-stream into a input-stream (expected by the Controller-Actions to return as response)
+	 * @param xmlStream the source xml stream 
+	 * @param transkey 
+	 * @return result-stream (converted to InputStream)
+	 * @throws IOException
+	 * @throws InterruptedException
+	 * @throws TransformerException
+	 * @throws NoStylesheetException 
+	 */
+	public InputStream transformXML ( InputStream xmlStream) throws IOException, InterruptedException, TransformerException, NoStylesheetException {
+	//public InputStream transformXML ( InputStream xmlStream, String transkey, String cols, String startRecord, String maximumRecords, String lang, String q, String repositoryURI) throws IOException, InterruptedException, TransformerException {
+		
+		ByteArrayOutputStream out = new ByteArrayOutputStream();
+		transformXML(xmlStream, out);		
+	    InputStream transformedStream = new ByteArrayInputStream(out.toByteArray());
+	    return transformedStream;
+	}
+	
+	/**
+	 * another wrapper for the main method allowing to directly pass a URL to the source-xml    
+	 * @param xmlFile URL of the source-file   
+	 * @param transkey
+	 * @return the result-stream (already converted to an InputStream) 
+	 * @throws TransformerException
+	 * @throws IOException
+	 * @throws NoStylesheetException 
+	 */
+	public InputStream transformXML (URL xmlFile ) throws IOException, InterruptedException, TransformerException, NoStylesheetException {
+	//public InputStream transformXML (URL xmlFile, String transkey ) throws IOException, InterruptedException, TransformerException {
+		srcFile= xmlFile;
+		InputStream  xmlStream =
+	     new BufferedInputStream(new FileInputStream(xmlFile.getPath()));
+	    
+		return transformXML ( xmlStream); 
+	}
+
+
+	/**
+	 * this is for xml-data present as string (primarily the query string present as XCQL).
+	 * if xml in a file or a stream, use the other methods 
+	 * @param xml xml-data as string
+	 * @param transkey 
+	 * @return
+	 * @throws NoStylesheetException 
+	 * @throws IOException 
+	 */
+	public String transformXML (String xml) throws NoStylesheetException {
+	//public String transformXML (String xml, String transkey ) {
+		String result="";
+		try {
+	        // Create a transform factory instance.
+			System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl");
+			//System.setProperty("javax.xml.transform.TransformerFactory", "com.icl.saxon.TransformerFactoryImpl");
+	        TransformerFactory tfactory = TransformerFactory.newInstance();
+	        OutputStream os = new ByteArrayOutputStream();
+	        StreamResult stream = new StreamResult(os);
+	        // Create a transformer for the stylesheet.
+	        Transformer transformer = tfactory.newTransformer(
+	        				getXSLStreamSource(getTranskey()));
+
+	        MessageEmitter me = new net.sf.saxon.event.MessageEmitter();
+	        StringWriter w = new StringWriter();
+	        me.setWriter(w);
+	        ((net.sf.saxon.Controller)transformer).setMessageEmitter(me);//new net.sf.saxon.event.MessageWarner());
+
+	        // Transform the source XML to System.out.
+	        StreamSource src =new StreamSource();        
+	        Reader reader  = new StringReader(xml);
+	        src.setReader(reader);
+	        
+	        transformer.transform(src, stream );
+	                            //  new StreamResult(new File("Simple2.out")));
+	     // Write <xsl:message>
+	        writeXslMessages(w);
+	          
+	        result = os.toString(); 
+	        
+			} catch (TransformerException e) {
+				e.printStackTrace();
+			}
+			
+			return result;
+	}
+
+	private void writeXslMessages(StringWriter w){
+        
+        byte[] bytes = w.getBuffer().toString().getBytes();
+        InputStream is =  new ByteArrayInputStream(bytes);
+        BufferedReader br = new BufferedReader(new InputStreamReader(is));
+        String s;
+		try {
+			while ((s = br.readLine()) != null){
+	        	Admin.notifyUser(s);
+	        }
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+	}
+	
+	public static HashMap<String,String> createParamsMap(String transkey){
+		HashMap<String,String> hm = new HashMap<String,String>();
+		
+	    if (transkey != null){
+			hm.put("format", transkey);
+	    }
+	    return hm;
+	}
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/NoStylesheetException.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/NoStylesheetException.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/NoStylesheetException.java	(revision 1516)
@@ -0,0 +1,9 @@
+package eu.clarin.cmdi.mdservice.internal;
+
+public class NoStylesheetException extends Exception {
+
+	public NoStylesheetException(String msg) {
+		super(msg);
+	}
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Diagnostic.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Diagnostic.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Diagnostic.java	(revision 1516)
@@ -0,0 +1,153 @@
+package eu.clarin.cmdi.mdservice.model;
+
+/**
+ * The main model class, carrying users_query
+ * able to parse and transform the user-string
+ * and execute the query, ie issue appropriate request on the MDRepository
+ * getting the url-wording right from MDRepositoryProxy
+ *   
+ * At the moment just responsible for querying MDRepository
+ * perhaps unify approach for other proxies - subtyping this Class  
+ */
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashMap;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.apache.commons.io.IOUtils;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.z3950.zing.cql.CQLNode;
+import org.z3950.zing.cql.CQLParseException;
+import org.z3950.zing.cql.CQLParser;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+
+public class Diagnostic {	
+	public static int SYSTEM_ERROR = 1;
+	public static int UNSUPPOERTED_OPERATION = 4;
+	public static int UNSUPPORTED_VERSION = 5;
+	public static int UNSUPPORTED_PARAMETERVALUE = 6;
+	public static int MANDATORY_NOTSUPPLIED = 7;
+	public static int UNSUPPORTED_PARAMETER = 8;
+	public static int QUERYSYNTAXERROR = 10;
+	
+	// types ?
+	public static String FATAL = "fatal";
+	public static String NONFATALSURROGATE = "surrogate";
+	public static String NONFATALNONSURORGATE = "nonsurrogate";
+	
+	public static String NAMESPACE = "info:srw/diagnostic/1/";
+	
+	private String type;
+	
+	private int number;
+	private String details;  
+	private String message;
+	
+	public int getNumber(){
+		return this.number;
+	}
+	
+	public void setNumber(int number){
+		this.number = number;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+	
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String Type(){
+		String t = this.type;
+		
+		if (t == null){
+			t = Diagnostic.diagnostictypes.get(this.number);
+			if (t == null){
+				t = FATAL;
+			}
+		}
+		return t;
+	}
+	public Diagnostic(int number) {
+		this.number = number;
+		this.message = diagnosticmessage.get(number);
+		//this.type = null;
+	}
+
+	public Diagnostic(int number, String details) {
+		this(number,details,null);
+	}
+
+	public Diagnostic(int number, String details, String type) {
+		this(number);
+		this.details = details;
+		this.type = type;
+	}
+
+	public Diagnostic(int number, String details, String type,String message) {
+		this.number = number;
+		this.details = details;
+		this.type = type;
+		this.message = message;
+	}
+	
+	private final static HashMap<Integer,String> diagnosticmessage = new HashMap<Integer,String>();
+	 static
+	 {	diagnosticmessage.put(SYSTEM_ERROR, "General system error.");
+	 	diagnosticmessage.put(UNSUPPOERTED_OPERATION, "Unsupported operation.");
+	 	diagnosticmessage.put(UNSUPPORTED_VERSION, "Unsupported version.");
+	 	diagnosticmessage.put(UNSUPPORTED_PARAMETERVALUE, "Unsupported parameter value.");
+	 	diagnosticmessage.put(MANDATORY_NOTSUPPLIED, "Mandatory parameter not supplied.");
+	 	diagnosticmessage.put(UNSUPPORTED_PARAMETER, "Unsupported Parameter.");
+	 	diagnosticmessage.put(QUERYSYNTAXERROR, "Query syntax error.");
+
+	 } 
+	 public final static HashMap<Integer,String> diagnostictypes = new HashMap<Integer,String>();
+	 static
+	 {	diagnostictypes.put(SYSTEM_ERROR, FATAL);
+	 	diagnostictypes.put(UNSUPPOERTED_OPERATION, FATAL);
+	 	diagnostictypes.put(UNSUPPORTED_VERSION, FATAL);
+	 	diagnostictypes.put(UNSUPPORTED_PARAMETERVALUE, FATAL);
+	 	diagnostictypes.put(MANDATORY_NOTSUPPLIED, FATAL);
+	 	diagnostictypes.put(UNSUPPORTED_PARAMETER, FATAL);
+	 	diagnostictypes.put(QUERYSYNTAXERROR, FATAL);
+
+	 } 
+	 
+	public Element buildXMLNode(Document doc){
+		
+		Element d = doc.createElement("diagnostic");
+		Attr attr = doc.createAttribute("xmlns");
+		attr.setValue("http://www.loc.gov/zing/srw/diagnostic/");
+		d.setAttributeNode(attr);
+
+		Element uri = doc.createElement("uri");
+		uri.appendChild(doc.createTextNode(NAMESPACE + Integer.toString(number)));
+		d.appendChild(uri);
+		
+		if (this.details != null){
+			Element details = doc.createElement("details");
+			details.appendChild(doc.createTextNode(this.details));
+			d.appendChild(details);
+		}
+		
+		if (this.message != null){
+			Element message = doc.createElement("message");
+			message.appendChild(doc.createTextNode(this.message));
+			d.appendChild(message);
+		}
+		return d;
+		  
+	}
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Diagnostics.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Diagnostics.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Diagnostics.java	(revision 1516)
@@ -0,0 +1,130 @@
+package eu.clarin.cmdi.mdservice.model;
+
+/**
+ * The main model class, carrying users_query
+ * able to parse and transform the user-string
+ * and execute the query, ie issue appropriate request on the MDRepository
+ * getting the url-wording right from MDRepositoryProxy
+ *   
+ * At the moment just responsible for querying MDRepository
+ * perhaps unify approach for other proxies - subtyping this Class  
+ */
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringWriter;
+import java.io.UnsupportedEncodingException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.TransformerFactoryConfigurationError;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.apache.commons.io.IOUtils;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.z3950.zing.cql.CQLNode;
+import org.z3950.zing.cql.CQLParseException;
+import org.z3950.zing.cql.CQLParser;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+
+public class Diagnostics {	
+
+	private ArrayList<Diagnostic> list; 
+	private InputStream xmlstream;
+
+	public Diagnostics() {
+		list = new ArrayList<Diagnostic>();
+	}
+
+	public void Add(int number, String details, String message) {
+		list.add(new Diagnostic(number, details, message));
+	}
+	
+	public void Add(int number, String details) {
+		list.add(new Diagnostic(number, details));
+	}
+	public void Add(int number) {
+		list.add(new Diagnostic(number));
+	}
+	
+	public void Add(Diagnostic diagnostic){
+		list.add(diagnostic);
+	}
+	
+	public Document buildXMLDocument() throws ParserConfigurationException{
+		Document doc = null;
+		  DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+		  DocumentBuilder docBuilder;
+			docBuilder = docFactory.newDocumentBuilder();
+			//root elements
+			  doc = docBuilder.newDocument();
+			  Element response = doc.createElement("searchRetrieveResponse");
+			  doc.appendChild(response);
+			  
+			  Element version = doc.createElement("version");
+			  version.appendChild(doc.createTextNode("1.2"));
+			  response.appendChild(version);
+		 
+			  Element numberofrecords = doc.createElement("numberOfRecords");
+			  numberofrecords.appendChild(doc.createTextNode("0"));
+			  response.appendChild(numberofrecords);
+			  
+			  Element d = doc.createElement("diagnostics");
+			  Iterator itr = list.iterator();
+				while(itr.hasNext())
+					d.appendChild(((Diagnostic)itr.next()).buildXMLNode(doc));
+			  response.appendChild(d);
+			  
+
+		return doc;
+	}
+	// @SuppressWarnings("unchecked")
+	public InputStream buildXMLStream() throws ParserConfigurationException, TransformerConfigurationException, TransformerException, TransformerFactoryConfigurationError, UnsupportedEncodingException{
+		if (xmlstream == null){
+			Document doc = buildXMLDocument();
+			DOMSource source = new DOMSource(doc);   
+			StringWriter xmlAsWriter = new StringWriter();   
+			StreamResult result = new StreamResult(xmlAsWriter);    
+			TransformerFactory.newInstance().newTransformer().transform(source, result);
+			xmlstream = new ByteArrayInputStream(xmlAsWriter.toString().getBytes("UTF-8"));
+		}
+		return xmlstream;
+	}
+	
+	public boolean Accepted(){
+		boolean accepted = true;
+		
+		if (this.list.size() > 0){
+			 Iterator itr = list.iterator();
+				while(itr.hasNext() && accepted) 
+				{
+					Diagnostic d = (Diagnostic)itr.next();
+					if (d.Type().equals(Diagnostic.FATAL)){
+						accepted = false;	
+					}
+				}
+			//		accepted = accepted && !((Diagnostic)itr.next()).Type().equals(Diagnostic.FATAL);		
+		}
+		return accepted;
+	}
+	
+	public boolean Exists(){
+		return this.list.size() > 0;
+	}
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Query.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Query.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Query.java	(revision 1516)
@@ -0,0 +1,521 @@
+package eu.clarin.cmdi.mdservice.model;
+
+/**
+ * The main model class, carrying users_query
+ * able to parse and transform the user-string
+ * and execute the query, ie issue appropriate request on the MDRepository
+ * getting the url-wording right from MDRepositoryProxy
+ *   
+ * At the moment just responsible for querying MDRepository
+ * perhaps unify approach for other proxies - subtyping this Class  
+ */
+
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.w3c.dom.Document;
+import org.z3950.zing.cql.CQLNode;
+import org.z3950.zing.cql.CQLParseException;
+import org.z3950.zing.cql.CQLParser;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+
+public class Query {	
+	public static String COLLECTIONS = "collections";
+	public static String COLUMNS = "columns";
+	public static String MODEL = "model";
+	public static String VALUES = "values";
+	public static String RECORDSET = "search";
+	public static String RECORD = "record";
+	public static String SRUEXTERN = "sruextern";
+	
+	public static String PARSED = "parsed";
+	public static String UNPARSED = "unparsed";
+	public static String PARSEERROR = "parseerror";
+	
+	private String type;
+	/**
+	 * meant a target url/service, allowing querying different services on per query basis
+	 * not used yet 
+	 */
+	private String target;	
+	
+	private URL targetRequest;
+	private String syntax = "cql";  /* cql, cmdIndex, xpath */
+	private String squery_string;
+	private String query_string;
+	private String full_query_string;
+	private CQLNode query_cql;
+	private String msg;
+	/**
+	 * temporary default;
+	 */
+	private String collection="";
+	private String columns="Id,name";
+	private String startItem = "1";
+	private String maximumItems = "50";
+	private String squery = null;
+	private String options = null;
+	private String sort;
+	private int maxdepth=1;
+	
+	private Map sruMap = null;
+	/**
+	 * reference to the result-object
+	 */
+	private Result result = new Result(this);
+
+	
+	public Query(String squeryString, String queryString) {		
+		this(squeryString, queryString, MODEL);
+	}
+
+	/**	
+	 * main constructor, with user's querystring and type of the query, and context-collection (at the moment just one) 
+	 * @param queryString
+	 * @param type
+	 * @param collection
+	 */
+
+	public Query(String squeryString,String queryString, String type, String collection, String columns) {
+		this.type =type;
+		if (squeryString == null)squeryString ="";
+		if (queryString == null)queryString ="";
+		setFullQueryString(squeryString, queryString);
+		setCollection(collection);
+		setColumns(columns);
+	}
+	
+	/**	
+	 * main constructor, with user's querystring and type of the query, and context-collection (at the moment just one) 
+	 * @param queryString
+	 * @param type
+	 * @param collection
+	 */
+
+	public Query(String squeryString, String queryString, String type, String collection) {
+		//this.type =type;
+		//setFullQueryString(squeryString, queryString);
+		//setCollection(collection);
+		this(squeryString, queryString, type, collection, "Id,name");
+	}
+
+	/**	
+	 * another constructor, with user's querystring and type of the query;
+	 * problematic not setting the collection!  
+	 * @param queryString
+	 * @param type
+	 */
+
+	public Query(String squeryString, String queryString, String type) {
+		//this.type =type;
+		//if (squeryString == null)squeryString =""; 
+		//setFullQueryString(squeryString, queryString);
+		this(squeryString, queryString, type, "");
+	}
+
+	public Boolean isStatus(String qstatus) {
+		return (qstatus.equals(getStatus()));
+	}
+	
+	public String getStatus() {
+		if (type.equals(Query.RECORDSET) && query_cql== null && (full_query_string != "")) {
+			return Query.PARSEERROR;
+		} else {
+			return Query.UNPARSED;
+		}
+		
+	}
+	
+	public String getType() {
+		return type;
+	}
+
+	public void setType(String type) {
+		this.type = type;
+	}
+
+	public String getQueryString() {
+		return query_string;
+	}
+
+	public void setFullQueryString(String squeryString, String queryString) {
+		
+		query_string=queryString;
+		
+		if (squeryString.trim().length() == 0){
+			squeryString = null;
+		}
+		if (queryString.trim().length() == 0){
+			queryString = null;
+		}
+		
+		String squery = createsqueryString(squeryString);
+		if (squery != null && queryString != null){
+			full_query_string = "(" + squery + " ) and (" + queryString + ")";
+		} else if (squery != null) {
+			full_query_string = squery;
+		} else if (queryString != null){
+			full_query_string = queryString;
+		} else {
+			full_query_string = "";
+		}
+		Admin.notifyUser("QUERY.FULLQUERYSTRING:" + full_query_string);
+		if (type.equals(RECORDSET) && (full_query_string.length() > 0)) {	
+			parse();
+			//preprocess();
+		}
+			
+	}
+	
+	public String getFullQueryString() {
+		return full_query_string;
+	}
+
+	
+	public void setCollection(String collection) {
+		if (collection!=null) {
+			this.collection = collection;
+		}
+	}
+	
+	public String getCollection() {
+		return collection;
+	}
+	
+	public String getColumns() {
+		return columns;
+	}
+	
+	public void setColumns(String columns) {
+		if (columns!=null) {
+			this.columns = columns;
+		}
+	}
+
+	public String getSQuery() {
+		return this.squery;
+	}
+	
+	public void setSQuery(String squery) {
+		if (squery!=null) {
+			this.squery = squery;
+		}
+	}
+	
+	public String getOptions() {
+		return options;
+	}
+
+	public void setOptions(String options) {
+		this.options = options;
+	}
+
+	public String getSort() {
+		return sort;
+	}
+
+	public void setSort(String sort) {
+		this.sort = sort;
+	}
+
+	public String getStartItem() {
+		return startItem;
+	}
+	
+	public void setStartItem(String startItem) {
+		if (startItem!=null) {
+			if (startItem.equals("")){
+				// sets default startItem
+				this.startItem = "1";
+			}else {
+				this.startItem = startItem;
+			}
+		}
+	}
+	
+	public String getMaximumItems() {
+		return maximumItems;
+	}
+	
+	public void setMaximumItems(String maximumItems) {
+		if (maximumItems!=null) {
+			if (maximumItems.equals("")){
+				this.maximumItems = "50";
+			} else {
+				this.maximumItems = maximumItems;	
+			}
+		}
+	}
+	public void setMaxdepth(int maxdepth) {
+		if (maxdepth > 0) {
+			this.maxdepth = maxdepth;
+		}
+	}
+
+	public int getMaxdepth() {
+		return maxdepth;
+	}
+
+	public void setResult(Result result) {
+		this.result = result;
+	}
+
+
+	public Result getResult() {
+		return result;
+	}
+	
+	public String getMsg() {
+		return msg;
+	}
+
+	public void setMsg(String msg) {
+		this.msg = msg;
+	}
+
+	
+	public Map getSruMap() {
+		return sruMap;
+	}
+
+	public void setSruMap(Map sruMap) {
+		this.sruMap = sruMap;
+	}
+
+	
+	// apply rules form squery
+	public String createsqueryString (String _squery){
+		String sq = null;
+		
+		if (_squery !=null){
+			sq = "* any " + _squery;
+		}
+
+		return sq;
+	}
+	public static String getSimpleQueryString(String querystring) {
+		String[] arr_and = querystring.split(" and ");
+		String simple_form = "";
+		String simple_form_all = "";
+		String rel = "";
+		
+		for( int i=0;i<arr_and.length;i++){
+			arr_and[i] = arr_and[i].trim();
+			String[] arr_or = arr_and[i].split(" or ");
+			simple_form = "";
+			for( int j=0;j<arr_or.length;j++){
+				arr_or[j] = arr_or[j].trim();
+				while (arr_or[j].substring(0,1).equals("(") ) {
+					arr_or[j] = arr_or[j].substring(1,arr_or[j].length());
+					arr_or[j] = arr_or[j].trim();
+				}
+				while ( arr_or[j].substring(arr_or[j].length()-1,arr_or[j].length()).equals(")")){
+					arr_or[j] = arr_or[j].substring(0,arr_or[j].length()-1);
+					arr_or[j] = arr_or[j].trim();
+				}
+				if (j > 0) { 
+					rel = " or ";
+				} else {
+					rel = "";
+				}
+				simple_form = simple_form + rel + arr_or[j];
+			}
+			//Admin.notifyUser(simple_form);
+			if (arr_or.length > 1){
+				simple_form = "(" + simple_form + ") ";
+			}
+			if (i > 0) { 
+				rel = " and  ";
+			} else {
+				rel = "";
+			}
+			simple_form_all = simple_form_all + rel + simple_form;
+			
+		}
+		
+		return simple_form_all;
+	}
+	/**
+	 * construct the URL-Param 
+	 * @return
+	 * @throws MalformedURLException
+	 * TODO url-encode (especially the query-param) ! 
+	 */
+	public String toURLParam() throws MalformedURLException {
+		
+		String targetRequest;
+		
+		if (type.equals(MODEL)) {
+			targetRequest = fromCMDIndex2Xpath() + "&maxdepth=" + getMaxdepth()  ; /* + "&maxdepth=" + getMaxdepth() );  "&collection=" + getCollection() + */
+		} else if (type.equals(SRUEXTERN)) {
+			targetRequest = "";//fromCMDIndex2Xpath() + "&maxdepth=" + getMaxdepth()  ; /* + "&maxdepth=" + getMaxdepth() );  "&collection=" + getCollection() + */
+			
+			Set set = sruMap.entrySet();
+			Iterator i = set.iterator();
+			
+		    while(i.hasNext()){
+			      Map.Entry me = (Map.Entry)i.next();
+			      targetRequest = targetRequest + "&" + me.getKey() + "=" + me.getValue();
+			}
+					
+		} else if (type.equals(VALUES)) {
+			targetRequest = fromCMDIndex2Xpath() ; /* + "&maxdepth=" + getMaxdepth() );  "&collection=" + getCollection() + */
+			
+			if (startItem != null) {
+				targetRequest = targetRequest +  "&startItem=" + getStartItem();
+			}
+			if (maximumItems != null) {
+				targetRequest = targetRequest +  "&maxItems=" + getMaximumItems();
+			}
+			if (sort != null) {
+				targetRequest = targetRequest +  "&sort=" + getSort();
+			}
+			
+		} else if (type.equals(RECORD)) {
+			//  2010-07-11 this is just a hack, because url-encoding the handle acted strange
+			//String corrid = getQueryString().replace('_', '/');
+			//  2010-12-28 needed for the lucene-index to recognize..
+				//  probably not the best place to handle -> move to repository: sanitize-query? 
+			String corrid = getQueryString().replace(":","\\:").toLowerCase();
+			Admin.notifyUser("Query.toURLParam.corrid=" + corrid);
+			targetRequest = "//MdSelfLink[ft:query(.,'" + corrid + "')]";			 
+		} else {
+				if (query_cql == null){
+					targetRequest =  "//*" + "&collection=" + getCollection();
+				} else {
+					targetRequest = toXPath() + "&collection=" + getCollection();	
+				}
+				if (startItem != null) {
+					targetRequest = targetRequest +  "&startItem=" + getStartItem();
+				}
+				if (maximumItems != null) {
+					targetRequest = targetRequest +  "&maxItems=" + getMaximumItems();
+				}
+				if ((options != null)) {
+					targetRequest = targetRequest +  "&format=xml-" + getOptions();
+				}
+		}
+	
+		return targetRequest;
+		
+}
+	
+	/**
+	 * tries to parse the full_query_string according the CQL-syntax
+	 * if successful returns the root-node of the parse-tree
+	 */
+	public CQLNode parse() {
+		 
+	  try {
+		CQLParser parser = new CQLParser();		
+		// cannot accept '-' at the CQL beginning
+		String local_full_query_string = full_query_string;
+		local_full_query_string = local_full_query_string.replace("-", "%2D");
+
+		query_cql = parser.parse(local_full_query_string);
+	  }
+		catch (CQLParseException e) {
+			// TODO better handling of failed parse  
+			setMsg("Query.ParseError-"+ e.getClass() + ": " + e.getMessage());
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		
+        
+		return query_cql;
+	}
+	
+	/**
+	 */
+	public void  preprocess() {
+		 
+	  try {	
+		Admin.notifyUser(toXCQL());
+			
+		
+		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
+		DocumentBuilder builder = factory.newDocumentBuilder();
+		Document doc = builder.parse(new org.xml.sax.InputSource(new java.io.StringReader(toXCQL())));
+			
+		//Admin.notifyUser("document created");
+		SearchClauses searchclauses = new SearchClauses(doc);
+		//do the processing
+		searchclauses.process();
+		String xml_s = searchclauses.toXML();
+		
+		//Admin.notifyUser("AAAA2:" + xml_s);
+	  }
+		catch (Exception e) {
+			e.printStackTrace();
+		}
+		return;
+	}
+	
+	
+	/**
+	 * provides a xml-version of the query (if parsed successfully)
+	 * according to the XCQL-schema defined in the SRU/CQL standard	
+	 * @return
+	 */
+	public String toXCQL() {	
+		 return query_cql.toXCQL(0);
+	}
+
+	/**
+	 * provides a xpath version of the query, based on the XCQL-version,
+	 * applying a stylesheet on the XCQL-version  
+	 * @return XPath-query
+	 * @throws IOException 
+	 */
+	public String toXPath() {	
+		MDTransformer transformer = new MDTransformer();
+		transformer.setParams(MDTransformer.createParamsMap("XCQL2XPATH"));
+		try {
+			return transformer.transformXML(toXCQL());
+		} catch (NoStylesheetException e) {
+			setMsg("Query.toXPath-"+ e.getClass() + ": " + e.getMessage());
+			return "";
+		}
+	}
+
+	/**
+	 * if the query is just a path-like structure
+	 * "transforms" the cmdIndex-format to appropriate XPath, means replace('.', '/') ;)
+	 * and resolves back possible profile-prefix
+	 * @return
+	 */
+	public String fromCMDIndex2Xpath() {
+		String xpath = "";
+		if (query_string.contains(":")) {
+			int delim_index = query_string.indexOf(":");
+			String profile_name = query_string.substring(0,delim_index );
+			Termset res = (Termset) Termset.getTermset(profile_name);			  
+			if (res!=null) {
+				profile_name= res.getAttr("name");
+			} 
+			if (profile_name.equals("")) {
+				xpath=query_string.substring(delim_index); 
+			} else {
+				xpath = profile_name + "//" + query_string.substring(delim_index+1);
+			}
+				
+		} else {
+			xpath = query_string; 
+		}
+				
+		 return xpath.replace(".", "//"); 
+	}
+
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/QuerySet.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/QuerySet.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/QuerySet.java	(revision 1516)
@@ -0,0 +1,26 @@
+package eu.clarin.cmdi.mdservice.model;
+
+import java.util.Collection;
+import java.util.Vector;
+
+/**
+ * Stub for a Class for handling/managing multiple queries
+ *  
+ * @author vronk
+ *
+ */
+public class QuerySet extends Vector<Query> {
+	
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+
+	public QuerySet(Collection<Query> queries) {
+	  super(queries);	
+	}
+	
+	
+	
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Result.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Result.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Result.java	(revision 1516)
@@ -0,0 +1,102 @@
+package eu.clarin.cmdi.mdservice.model;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.xml.transform.TransformerException;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+
+/**
+ * Currently not used! Everything is done directly in MDRepoProxyAction.
+ *  
+ * Meant as Class holding the result of a query (parentQuery)
+ * This is a "passive" object, depending on its parentQuery
+ * which is setting the resultStream in its execute-method  
+ * @author vronk
+ *
+ */
+public class Result {
+
+	/**
+	 * available formats
+	 */
+	public static String XML = "xml";
+	public static String HTML = "html";
+	public static String HTMLSNIPPET = "htmlsnippet";
+	
+	private Query parentQuery;
+	
+	/**
+	 * holds the stream receiving data from the provider (MDRepository...)  
+	 */
+	private InputStream rawresult;
+	
+	public Result (Query q) {
+		parentQuery = q;
+	//	transformed_out	= new ByteArrayOutputStream();
+		//setResultStream(new ByteArrayOutputStream());
+	}
+	
+		
+	/**
+	 * this is the main method to get the formatted-result
+	 * precondition: the rawresult already arrived, ie parentQuery.execute() already issued  
+	 * @param format is passed as the transkey to the transformer
+	 * @return the input stream with the formatted/transformed result
+	 * @throws IOException
+	 * @throws InterruptedException
+	 * @throws TransformerException
+	 * @throws NoStylesheetException 
+	 */
+	public InputStream getResultStream(String format) throws IOException, InterruptedException, TransformerException, NoStylesheetException {
+		String transformkey;
+		
+		if (format.equals(XML)) {
+			return rawresult;
+		} else {	
+			transformkey = parentQuery.getType() + "2" + format;
+			Admin.notifyUser("transformkey: " + transformkey );
+			MDTransformer transformer = new MDTransformer();
+			transformer.setParams(MDTransformer.createParamsMap(transformkey));
+			return transformer.transformXML(rawresult);//, transformkey);
+		}	
+	}
+
+	/**
+	 * without format-parameter, you get the raw-data-stream (XML?) received from the provider
+	 * @return
+	 */
+	public InputStream getResultStream() {
+		return rawresult;		
+	}
+
+	public void getResultStream(String format, InputStream in) throws IOException, InterruptedException, TransformerException, NoStylesheetException {
+			in = getResultStream(format);
+	}
+
+	
+	public void setInputStream(InputStream in) {
+		this.rawresult = in;		
+	}
+
+	/**
+	 * a stub for a header to be returned with every result
+	 * not used yet
+	 * @return
+	 */
+	public String getHeader() {
+		String header = "";
+			
+		header = "<header>";
+		header += "<userquery>" + parentQuery.getQueryString() + "</userquery>"; 
+		header += "<xpathquery>" + parentQuery.toXPath() + "</xpathquery>";		
+		header += "</header>";
+		
+		
+		return header; 
+	}
+
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/SearchClause.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/SearchClause.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/SearchClause.java	(revision 1516)
@@ -0,0 +1,70 @@
+package eu.clarin.cmdi.mdservice.model;
+
+/**
+ 
+ */
+
+
+
+public class SearchClause{	
+	private String _index;
+	private String relation;	
+	private String value;
+	private Boolean negation;
+	
+	private Boolean is_category;
+	private String category;
+
+
+	public SearchClause() {
+		_index = "";
+		relation = "";
+		value = "";
+		
+		negation = false;
+		is_category = false;
+		category = "";
+	}
+	public SearchClause(String __index,String  _relation, String  _value){
+		_index = __index;
+		relation = _relation;
+		value = _value;
+		
+		negation = false;
+		is_category = false;
+		category = "";
+	}
+	
+	public void setIndex(String __index) {
+		if (__index!=null) {
+			this._index = __index;
+		}
+	}
+
+	public String getIndex() {
+		return _index;
+	}
+
+	public void setRelation(String _relation) {
+		if (_relation!=null) {
+			this.relation = _relation;
+		}
+	}
+
+	public String getRelation() {
+		return relation;
+	}
+	
+	public void setValue(String _value) {
+		if (_value!=null) {
+			this.value = _value;
+		}
+	}
+
+	public String getValue() { 	
+		return value;
+	}
+
+}
+
+
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/SearchClauses.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/SearchClauses.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/SearchClauses.java	(revision 1516)
@@ -0,0 +1,269 @@
+package eu.clarin.cmdi.mdservice.model;
+
+import java.io.StringWriter;
+
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.action.DCRProxyAction;
+
+
+public class SearchClauses{
+	private String xml_string;
+	private Document xml_document;
+	private SearchClause[][] list;
+	
+	
+	public SearchClauses(Document _doc){
+		list = new SearchClause[20][20];
+		
+		for(int i=0;i<20;i++){
+			for(int j=0;j<20;j++){
+				list[i][j]=null;
+			}
+		}
+		xml_document=  _doc;
+		Admin.notifyUser("SCCCCC: constuctor");
+		deserialize();
+		// do processing
+	}
+	
+	// create array from xml_document
+	private int getLastAnd(){
+		for(int i=0; i< 20;i++){
+			if (list[i][0] == null) return i;
+		}
+		return 0;
+	}
+	private int getLastOr(int i){
+		for(int j=0;j< 20;j++){
+			if (list[i][j] == null) return j;
+		}
+		return 0;
+	}
+	
+	private void deserialize(Node node, int level){
+		NodeList nodeList;
+		String b;
+		SearchClause sc;
+		int or_last;
+		
+		if (node.getNodeName().equals("tripple")){
+			nodeList = node.getChildNodes();
+			b = nodeList.item(0).getFirstChild().getNodeValue();
+			deserialize(b,nodeList.item(1), nodeList.item(2), level);
+		}else{
+			if (node.getNodeName().equals("searchClause")){
+				nodeList = node.getChildNodes();
+				sc = new SearchClause(nodeList.item(0).getNodeValue(), nodeList.item(1).getFirstChild().getNodeValue(), nodeList.item(2).getNodeValue());
+				or_last = getLastOr(level);
+				list[level][or_last] = sc;
+			}
+		}
+
+	}
+	private void deserialize(String rel, Node left, Node right, int and_level){
+		String b;
+		NodeList nodeList;
+		SearchClause sc;
+		int and_last;
+		
+		if (rel.equals("and")) {
+			deserialize(left, and_level);
+			and_last = getLastAnd();
+			deserialize(right, and_last);			
+		}
+		if (rel.equals("or")) {
+			deserialize(left, and_level);
+			deserialize(right, and_level);
+		}
+		
+	}
+	private void deserialize(){
+		Node node;
+		NodeList nodeList;
+		String b;
+		SearchClause sc;
+		
+		node = xml_document.getFirstChild();
+		if (node.getNodeName().equals("tripple")){
+			nodeList = node.getChildNodes();
+			b = nodeList.item(0).getFirstChild().getNodeValue();
+			deserialize(b,nodeList.item(1), nodeList.item(2),0);
+		}else{
+			Admin.notifyUser("SCCCCC: deserialize");
+			if (node.getNodeName().equals("searchClause")){
+			
+				nodeList = node.getChildNodes();
+				sc = new SearchClause(nodeList.item(1).getTextContent().trim(), nodeList.item(3).getTextContent().trim(), nodeList.item(5).getTextContent().trim());
+				list[0][0] = sc;
+			}
+		}
+		Admin.notifyUser("SCCCCC: list " + list[0][0].getIndex() + list[0][0].getValue());
+		
+		
+	}
+	
+	// create xml_document from array-list
+	// create xml-string from xml_document
+	private Element serialize(SearchClause sc){
+		Element e, root, e_rel;
+		
+		root = xml_document.createElement("searchClause");
+		e = xml_document.createElement("index");
+		e.setNodeValue(sc.getIndex());
+		root.appendChild(e);
+		e_rel = xml_document.createElement("relation");
+		//e.setNodeValue(list[0][0].getRelation());
+		root.appendChild(e_rel);
+		e = xml_document.createElement("term");
+		e.setNodeValue(sc.getValue());
+		root.appendChild(e);
+		
+		e = xml_document.createElement("value");
+		e.setNodeValue(sc.getValue());
+		e_rel.appendChild(e);
+		
+		return root;
+	}
+	
+	private Element serialize(Element e1, Element e2, String operand){
+		Element e, root, e_rel;
+		
+		root = xml_document.createElement("tripple");
+		e_rel = xml_document.createElement("boolean");
+		e = xml_document.createElement("value");
+		e.setNodeValue(operand);
+		e_rel.appendChild(e);
+		root.appendChild(e_rel);
+
+		e = xml_document.createElement("leftOperand");
+		e.appendChild(e1);
+		root.appendChild(e);
+		
+		e = xml_document.createElement("rightOperand");
+		e.appendChild(e2);
+		root.appendChild(e);
+		
+		return root;
+	}
+	
+	private void serialize(){
+		Node node;
+		Element root, e, e_rel, ej, ej_last = null;
+		
+		// remove old document
+		Admin.notifyUser("SCCCCC: serialize");
+		Admin.notifyUser("SCCCCC: " + xml_document.getChildNodes().getLength());
+		xml_document.removeChild(xml_document.getFirstChild());
+		Admin.notifyUser("SCCCCC: CLEARED " + xml_document.getChildNodes().getLength());
+		
+		if ((getLastAnd() == 1) && (getLastOr(0) == 1)){
+			Admin.notifyUser("SCCCCC: searchClause ");
+			root = xml_document.createElement("searchClause");
+			e = xml_document.createElement("index");
+			e.setTextContent(list[0][0].getIndex());
+			root.appendChild(e);
+			e_rel = xml_document.createElement("relation");
+			root.appendChild(e_rel);
+			e = xml_document.createElement("term");
+			e.setTextContent(list[0][0].getValue());
+			root.appendChild(e);
+			
+			e = xml_document.createElement("value");
+			e.setTextContent(list[0][0].getRelation());
+			e_rel.appendChild(e);
+			
+		} else {
+			root = xml_document.createElement("tripple");
+			
+			for(int i=0;i<20;i++){
+				if (list[i][0] == null){
+					break;
+				}
+				ej = serialize(list[i][0]);
+				for(int j=1;j<20;j++){
+					if (list[i][j] == null){
+						break;
+					}
+					e = serialize(list[i][j]);
+					ej = serialize(ej,e,"or");
+				}
+				if (ej_last != null){
+					ej_last = serialize(ej_last, ej, "and");
+				}
+				ej_last = ej;
+			}
+		}
+        xml_document.appendChild(root);
+
+		
+		////////////////// to XML-string
+		
+        
+      //set up a transformer
+        TransformerFactory transfac = TransformerFactory.newInstance();
+        Transformer trans;
+		try {
+			trans = transfac.newTransformer();
+			trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
+	        trans.setOutputProperty(OutputKeys.INDENT, "yes");
+
+	        //create string from xml tree
+	        StringWriter sw = new StringWriter();
+	        StreamResult result = new StreamResult(sw);
+	        DOMSource source = new DOMSource(xml_document);
+	        try {
+				trans.transform(source, result);
+			} catch (TransformerException e1) {
+				// TODO Auto-generated catch block
+				e1.printStackTrace();
+			}
+	        xml_string = sw.toString();
+	        Admin.notifyUser("SERIALIZED-XML:  " + xml_string);
+		} catch (TransformerConfigurationException e1) {
+			// TODO Auto-generated catch block
+			e1.printStackTrace();
+		}
+        
+
+	}
+	
+	public String toXML(){
+		serialize();
+		return xml_string;
+	}
+	
+	//TODO processing
+	// replace ISOCAT - category by elements
+	// optimize
+	// remove duplicates
+	
+	public void process(){
+		DCRProxyAction a = new DCRProxyAction();
+		//TODO format, actionkey - 
+		
+		try {
+			//a.execute();
+			//TODO update list structure according ELEMENTS
+		} catch (Exception e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		//insert into a[i]
+		
+		
+	}
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Termset.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Termset.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Termset.java	(revision 1516)
@@ -0,0 +1,104 @@
+package eu.clarin.cmdi.mdservice.model;
+
+import java.util.HashMap;
+
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import eu.clarin.cmdi.mdservice.internal.Admin;
+
+public class Termset {
+
+	private final static HashMap<String,Object> termsets = new HashMap<String,Object>();
+	
+	private final HashMap<String,String> attrs = new HashMap<String,String>();
+	
+	public Termset () {		
+	}
+
+	public Termset (Node n) {
+		this.setAttrs(n);
+	}
+	
+	public void setAttrs(Node n) {
+	
+			for (int i=0; i < n.getAttributes().getLength(); i++) {
+				String key = n.getAttributes().item(i).getNodeName();
+				String value = n.getAttributes().item(i).getNodeValue();
+				attrs.put(key, value);
+			}		
+	}
+	
+	public String getAttr(String key) {
+	  return attrs.get(key);
+	}
+
+	public static HashMap<String, Object> getTermsets() {
+		if (termsets.size() == 0) {
+			initTermsets();			
+		}
+		return termsets;
+	}
+
+	public static Termset getTermset(String ts_id) {		
+		
+		Termset res = (Termset) getTermsets().get(ts_id);
+		if (res==null) Admin.notifyUser("getTermset(): no termset found for:" + ts_id);
+		//else
+			//Admin.notifyUser("getDCR():" + res.getAttr("id") + ":" + res.getAttr("url") );		
+		return res;
+	}
+	
+	public static String getTermsetAttr(String ts_id, String key) {	
+		Termset ts = getTermset(ts_id);
+		String val=""; 
+		if (ts!=null) val= ts.getAttr(key);
+		 return val;
+	}
+
+	public static void initTermsets() {
+			Document dcrs_setup = Admin.getXMLDocument(Admin.getConfig().getProperty("terms.file"));
+		
+		//	Admin.loadFile(Admin.getConfig().getProperty("service.list.file"));		 
+			Admin.notifyUser("initTermsets().loaded.");					
+			//.getDocumentElement().getLocalName()
+			//Document chains_doc = Admin.getXMLDocument(Admin.getConfig().getProperty("chains.file"));
+	
+			//Admin.notifyUser("formPath:xpath:"+xpath_expr);
+			//creating an XPathFactory:
+	        XPathFactory factory = XPathFactory.newInstance();
+	        //using this factory to create an XPath object: 
+	        XPath xpath = factory.newXPath();
+	        //XPath object created compiles the XPath expression: 
+	        XPathExpression expr;
+			try {
+				expr = xpath.compile("//Termset");
+				//expression is evaluated with respect to a certain context node which is doc.
+		        Object result = expr.evaluate(dcrs_setup, XPathConstants.NODESET);
+		        NodeList list = (NodeList) result;
+	
+		        // <Termset type="dcr" id="isocat" label="isoCAT" url="http://www.isocat.org/rest/" format="dcif" />
+		        for (int i = 0; i<list.getLength();i++) {
+		        	//String value = list.item(i).getTextContent();
+		        	Node n = list.item(i);	        	    	
+		        	Termset ts = new Termset(n);        		
+		        	 	        	
+		        	Admin.notifyUser("reading in Termset: " + ts.getAttr("id"));
+		        	termsets.put(ts.getAttr("id"), ts );
+		        }    
+			} catch (XPathExpressionException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+
+	}
+	
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/WorkspaceProfile.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/WorkspaceProfile.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/WorkspaceProfile.java	(revision 1516)
@@ -0,0 +1,214 @@
+package eu.clarin.cmdi.mdservice.model;
+
+import java.io.BufferedInputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.xml.transform.TransformerException;
+
+import net.sf.json.JSONArray;
+import net.sf.json.JSONObject;
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.action.GenericProxyAction;
+import eu.clarin.cmdi.mdservice.internal.Helpers;
+import eu.clarin.cmdi.mdservice.internal.MDTransformer;
+import eu.clarin.cmdi.mdservice.action.WorkspaceAction;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+
+/**
+ 
+ */
+
+
+
+public class WorkspaceProfile{	
+
+	//TODO new class
+	public static enum RepositoryType
+	{
+		MD, SRU, PAZPAR,NOVALUE;
+
+	    public static RepositoryType toRepositoryType(String str)
+	    {
+	        try {
+	            return valueOf(str.toUpperCase());
+	        } 
+	        catch (Exception ex) {
+	            return NOVALUE;
+	        }
+	    }   
+	}
+
+	private static JSONArray repositories = null;
+	private static JSONObject options = null;
+	
+	
+	public static JSONArray getRepositories(){
+		if (repositories == null){
+			try {
+				WorkspaceProfile.setRepositories(WorkspaceProfile.createRepositories());
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (InterruptedException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (TransformerException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (NoStylesheetException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+		}
+		return repositories;
+	}
+	
+	public static void setRepositories(JSONArray rep){
+		WorkspaceProfile.repositories = rep;
+	}
+	
+	public static JSONObject getOptions(){
+		if (options == null ) {
+			try {
+				WorkspaceProfile.setOptions(WorkspaceProfile.createOptions());
+			} catch (IOException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (InterruptedException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (TransformerException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			} catch (NoStylesheetException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+		}
+		return options;
+	}
+	
+	public static void setOptions(JSONObject op){
+		WorkspaceProfile.options = op;
+	}
+	
+	public WorkspaceProfile() {
+	}
+	
+	public static JSONArray createRepositories() throws IOException, InterruptedException, TransformerException, NoStylesheetException{
+		String path = Admin.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
+		File file=new File(path);
+		InputStream in  = new BufferedInputStream( new FileInputStream(path));;
+		
+		MDTransformer transformer = new MDTransformer();
+		transformer.setSrcFile(file.toURI().toURL());
+		transformer.setParams(MDTransformer.createParamsMap("xml2json"));
+		InputStream jsonstream = transformer.transformXML(in);
+		
+		JSONObject json = JSONObject.fromObject(Helpers.convertStreamToString(jsonstream));
+		JSONArray wparray = json.getJSONObject("Profiles").getJSONArray("WorkspaceProfiles");
+		JSONArray array = null;
+		for (int i = 0; i < wparray.size(); ++i) {     
+			JSONObject wp = wparray.getJSONObject(i); 
+			if (wp.get("Repositories") != null){
+				array = wp.getJSONArray("Repositories");
+				break;
+			}
+		}	
+		
+		// repository as static variable
+		return array;
+	
+		// repository as session attribute
+		/*
+		HttpSession session = getServletRequest().getSession();
+		//JSONArray param = (JSONArray) session.getAttribute("repositories");
+		JSONArray param = new JSONArray();
+        param.add(array);
+        session.setAttribute("repositories", param);
+		 */
+	}
+	
+	public static JSONObject createOptions() throws IOException, InterruptedException, TransformerException, NoStylesheetException{
+		String path = Admin.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
+		File file=new File(path);
+		InputStream in  = new BufferedInputStream( new FileInputStream(path));;
+		
+		MDTransformer transformer = new MDTransformer();
+		transformer.setSrcFile(file.toURI().toURL());
+		transformer.setParams(MDTransformer.createParamsMap("xml2json"));
+		InputStream jsonstream = transformer.transformXML(in);
+		
+		JSONObject json = JSONObject.fromObject(Helpers.convertStreamToString(jsonstream));
+		JSONArray wparray = json.getJSONObject("Profiles").getJSONArray("WorkspaceProfiles");
+		JSONObject obj = null;
+		for (int i = 0; i < wparray.size(); ++i) {     
+			JSONObject wp = wparray.getJSONObject(i); 
+			if (wp.get("Options") != null){
+				obj = wp.getJSONObject("Options");
+				break;
+			}
+		}	
+		
+		// options as static variable
+		return obj;
+	
+	}
+	
+	public static String getOption(String opt_key){
+		String option_val = null;
+		
+		net.sf.json.JSONObject json = getOptions(); 
+		option_val = json.getString(opt_key);
+
+		return option_val;
+		
+	}
+	
+	public static String getRepositoryPath(String repository_name){
+		String repository_path = null;
+		
+		
+		
+		// static repositories
+		net.sf.json.JSONArray json = WorkspaceProfile.getRepositories(); 
+		for(int i=0;i<json.size();i++){
+			if (json.getJSONObject(i).getString("name").equals(repository_name)){
+				repository_path =  json.getJSONObject(i).getString("uri");
+			}
+		}
+		
+		return repository_path;
+		
+	}
+	
+	public static String getRepositoryType(String repository_name){
+	String typestr = "";
+		
+		
+		// static repositories
+		net.sf.json.JSONArray json = WorkspaceProfile.getRepositories(); 
+		for(int i=0;i<json.size();i++){
+			if (json.getJSONObject(i).getString("name").equals(repository_name)){
+				typestr =  json.getJSONObject(i).getString("type");
+			}
+		}
+		
+		return (typestr);
+
+	}
+	public static Boolean isSRURepository(String repository_name){
+		//Boolean issru = false;
+		String typestr = getRepositoryType(repository_name);
+		
+		return (typestr.equals("sru"));
+		
+	}
+
+
+}
+
+
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/BasicProxy.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/BasicProxy.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/BasicProxy.java	(revision 1516)
@@ -0,0 +1,131 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.HashMap;
+import java.io.ByteArrayInputStream;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+
+import eu.clarin.cmdi.mdservice.action.GenericAction;
+import eu.clarin.cmdi.mdservice.action.RepoAction;
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Diagnostic;
+import eu.clarin.cmdi.mdservice.model.Query;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+/**
+ * Base class for implementation of proxies to target systems.
+ * This is now (after rework 2011-09) decoupled from the called Action. 
+ * 
+ * Defines the methods used for retrieving the data 
+ * and provides basic implementation where possible.
+ *
+ *  
+ * @author vronk
+ *
+ */
+public class BasicProxy implements ProxyInterface{
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("BasicProxy");
+ 
+	private String proxy_key = "basic";
+	
+	private GenericAction source_action;
+	
+	public GenericAction getSourceAction() {
+			return source_action;
+	}
+	
+	@Override
+	public void setSourceAction(GenericAction action) {		
+		source_action = action;
+		
+	}
+	
+	/**
+	 * Convenience function to access the request-parameters in the Action  
+	 * @param key
+	 * @return
+	 */
+	public String getParam(String key) {
+		return getSourceAction().getParam(key);
+	}
+	
+	public void checkParams() {
+		// required Params	
+	}
+	
+	
+	/**
+	 * identification of the target-proxy (type)
+	 * base for finding the right base_url in the props
+	 * subclass has to override with its specific proxykey
+	 * @return
+	 */
+	public String getProxyKey() {				
+			return proxy_key;		
+	}
+
+	/**
+	 * Get the base_uri based on the action-key
+	 */
+		
+	public String getBaseURI() {		
+		String uri =Admin.getConfig().getProperty(getSourceAction().getActionkey() + ".uri");				
+		return uri;
+	}
+
+	/**
+	 * Provides the base-URL specific to given target repository or registry 
+	 * @return 
+	 * @throws MalformedURLException
+	 */	
+	public URL getBaseURL() throws MalformedURLException {		
+		URL base_url = new URL(getBaseURI());		
+		return base_url;
+	}
+	
+	
+	/**
+	 * uses base_url + url_pattern (parametrized by actionkey) to form a url
+	 * @return the full target-request URL to be sent to the target repository
+	 * @throws Exception 
+	 */	
+	public URL getTargetRequest() throws IOException {
+		 
+		URL targetURL =getBaseURL();
+		
+		log.debug("getTargetRequest().targetURL:" + targetURL);
+	    return targetURL;
+		
+	}
+
+	public InputStream getSourceStream() throws IOException, NoStylesheetException {
+		return getTargetRequest().openStream();		
+	}
+
+	
+
+}	
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/GenericProxy.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/GenericProxy.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/GenericProxy.java	(revision 1516)
@@ -0,0 +1,16 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+
+import eu.clarin.cmdi.mdservice.action.GenericAction;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+
+public interface GenericProxy {
+
+	public URL getTargetRequest() throws IOException;
+	public InputStream getSourceStream() throws IOException, NoStylesheetException;
+	public void setSourceAction(GenericAction action) ;
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/LocalProxy.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/LocalProxy.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/LocalProxy.java	(revision 1516)
@@ -0,0 +1,88 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.HashMap;
+import java.io.ByteArrayInputStream;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+
+import eu.clarin.cmdi.mdservice.action.GenericAction;
+import eu.clarin.cmdi.mdservice.action.RepoAction;
+import eu.clarin.cmdi.mdservice.internal.Admin;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Diagnostic;
+import eu.clarin.cmdi.mdservice.model.Query;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+/**
+ * Base class for implementation of proxies to target systems.
+ * This is now (after rework 2011-09) decoupled from the called Action. 
+ * 
+ * Defines the methods used for retrieving the data 
+ * and provides basic implementation where possible.
+ *
+ *  
+ * @author vronk
+ *
+ */
+public class LocalProxy extends BasicProxy{
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("LocalProxy");
+ 
+	private String proxy_key = "local";
+
+	public void checkParams() {
+		// required Params
+		if (getParam("q")=="") {
+			getSourceAction().getDiagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "q");
+		}
+	}
+	
+	/**
+	 * identification of the target-proxy (type)
+	 * base for finding the right base_url in the props
+	 * subclass has to override with its specific proxykey
+	 * @return
+	 */
+	public String getProxyKey() {				
+			return proxy_key;		
+	}
+
+		
+	/**
+	 * forms a URL  to get the local resource
+	 * @return the URL to the local resource, as required by the q-param
+	 * @throws Exception 
+	 */	
+	public URL getTargetRequest() throws IOException {
+		
+		URL targetURL = new URL(getBaseURL(), getParam("q") + ".xml");
+		
+		log.debug("getTargetRequest().targetURL:" + targetURL);
+	    return targetURL;
+		
+	}
+
+
+}	
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/MDRepoProxy.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/MDRepoProxy.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/MDRepoProxy.java	(revision 1516)
@@ -0,0 +1,120 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.HashMap;
+import java.io.ByteArrayInputStream;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Query;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+/**
+ * Proxy to the Metadata Repository.  
+ * Responds to requests (collections, model, recordset) 
+ * by dispatching the requests to appropriate internal methods and filling the inputStream with the result
+ * 
+ * It is possible to switch target-repository dynamically  (on every request). I.e. the client explicitly selects one of the repositories.
+ *  
+ * @author vronk
+ *
+ */
+public class MDRepoProxy extends RepoProxy {
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("MDRepoProxy");
+	
+	private String proxy_key = "mdrepository";
+	
+	/**
+	 * Override of the basic method provided by the super-class 
+	 */	
+	@Override	
+	public String getBaseURI() {		
+		String uri = WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository());		
+		return uri;
+	}
+	
+	@Override
+	public String getProxyKey() {
+		return proxy_key;
+	}
+	
+	/**
+	 * A mapping between the actionkeys in the request and the operation-parameter expected by the MDRepository 
+	 */
+	private final static HashMap<String,String> urls = new HashMap<String,String>();
+	 static
+	 {	 urls.put("collection", "?operation=getCollections&collection=");
+	  	 urls.put("model", "?operation=queryModel&q=");
+	  	 urls.put("values", "?operation=scanIndex&q=");
+	 	 urls.put("search", "?operation=searchRetrieve&query=");
+	 	 urls.put("record", "?operation=searchRetrieve&query=");
+	 } 
+ 
+	/**
+	 * uses base_url + url_pattern (parametrized by actionkey) to form a url
+	 * @return the full target-request URL to be sent to the target repository
+	 * @throws Exception 
+	 */
+	 @Override
+	public URL getTargetRequest() throws IOException {
+        
+		 Query query = new Query(getParam("squery"), getParam("q"),getSourceAction().getActionkey());
+		 
+		 URL targetURL =new URL( getBaseURL(), urls.get(getSourceAction().getActionkey()) + query.toURLParam());
+		 
+		 return targetURL;
+		/*
+		log.debug("MDRPx.getQ:" + getSquery() + " and (" +  getQ() + ")");
+		log.debug("MDRPA.getActionkey:" + getActionkey());		
+		
+		
+
+	// check if the query could get parsed
+		if (query.isStatus(Query.PARSEERROR)) {
+			log.debug("MDRPA.query.PARSEERROR:" + query.getMsg());
+			// pass this bad news to the client
+			setUserMsg(query.getMsg());
+			return null;
+		} else {
+			query.setMaxdepth(getMaxdepth());		
+			query.setCollection(getCollection());
+			query.setColumns(getColumns());
+			query.setMaximumItems(getMaximumItems());
+			query.setStartItem(getStartItem());
+			query.setOptions(getOptions());
+			query.setSort(getSort());
+		
+			URL targetURL = null;
+			targetURL =new URL( getBaseURL(), urls.get(getActionkey()) + query.toURLParam() );
+			Admin.notifyUser("MDRPA.targetURL.query.toURLParam:" + query.toURLParam());
+			Admin.notifyUser("MDRPA.targetURL:" + targetURL);
+	        return targetURL;
+		}
+		*/
+		 
+	}
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/ProxyInterface.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/ProxyInterface.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/ProxyInterface.java	(revision 1516)
@@ -0,0 +1,20 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+
+import eu.clarin.cmdi.mdservice.action.GenericAction;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+
+public interface ProxyInterface {
+
+	public URL getTargetRequest() throws IOException;
+	public InputStream getSourceStream() throws IOException, NoStylesheetException;
+	public void setSourceAction(GenericAction action) ;
+	/** 
+	 * if problems set Diagnostics
+	 */
+	public void checkParams() ;
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/Pz2Proxy.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/Pz2Proxy.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/Pz2Proxy.java	(revision 1516)
@@ -0,0 +1,248 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.HashMap;
+import java.io.ByteArrayInputStream;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Query;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+/**
+ 
+ */
+public class Pz2Proxy extends RepoProxy {
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("Pz2Proxy");
+	
+	private String proxy_key = "pazpar2";
+	
+	private String command;
+	private String query;
+	private String sessionID;
+	private String sort;
+	private String block;
+	
+	public void setCommand(String command) {
+		this.command = command;
+	}
+	public String getCommand() {
+		return command;
+	}
+	public void setQuery(String query) {
+		this.query = query;
+	}
+	public String getQuery() {
+		return query;
+	}
+	public void setSessionID(String sessionID) {
+		this.sessionID = sessionID;
+	}
+	public String getSessionID() {
+		return sessionID;
+	}
+
+	public void setSort(String sort) {
+		this.sort = sort;
+	}
+	public String getSort() {
+		return sort;
+	}
+	public void setBlock(String block) {
+		this.block = block;
+	}
+	public String getBlock() {
+		return block;
+	}
+	
+	
+	public String createURLParams(){
+		String params = "?";
+		if (!(command == null)){
+			params = params + "command=" + command;
+		}
+		if (!(sessionID == null)){
+			params = params + "&session=" + sessionID;
+		}
+		if (!(query == null)){
+			params = params + "&query=" + query;
+		}
+		/*
+		  if (!(getSourceAction().getStartItem() == null)){
+		 
+			params = params + "&start=" + getSourceAction().getStartItem();
+		}
+		if (!(getSourceAction().getMaximumItems() == null)){
+			params = params + "&num=" + getSourceAction().getMaximumItems();
+		}
+		*/
+		if (!(sort == null)){
+			params = params + "&sort=" + sort;
+			if (!(block == null)){
+				params = params + ":" + block;
+			}
+		}
+		
+		return params;
+	}
+	@Override
+	public String getBaseURI() {		
+		String uri = WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository());		
+		return uri;
+	}
+	
+	@Override
+	public URL getTargetRequest() throws IOException {
+        URL targetURL = null;		
+			
+		targetURL =new URL( getBaseURL(), createURLParams() );
+		log.debug("Pz2.targetURL:" + targetURL);
+	    return targetURL;
+	}
+	
+/**
+ * Overrides the default implementation for the case, when the Service shall act as "collector",
+ * waiting for the final result (implemented in getSourcePz2
+ * The distinction is based on the command parameter: if it is given, the Class(Service) acts as a basic proxy
+ * transparently passing the communication between client and target repository.  
+ */
+	@Override
+	public InputStream getSourceStream() throws IOException, NoStylesheetException {
+		if (getCommand() == null){
+			try {
+				return getSourcePz2();
+			} catch (Exception e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+		} 
+			
+		return super.getSourceStream();
+	}
+	
+/**
+ * TODO: move to Utils
+ * @param is
+ * @return
+ */
+	public Document getDocument(InputStream is){
+		Document doc = null;
+		DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
+     	DocumentBuilder docBuilder;
+		try {
+			docBuilder = docFactory.newDocumentBuilder();
+			doc = docBuilder.parse(is);
+		} catch (ParserConfigurationException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (SAXException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}	
+		return doc;
+	}
+	
+/**
+ * TODO: move to Utils
+ * @param is
+ * @param expression
+ * @return
+ */
+	public String getDocumentData(InputStream is, String expression){
+		String sessionid = "";
+	
+		XPathFactory factory = XPathFactory.newInstance(); 
+	    XPath xpath = factory.newXPath(); 
+	    XPathExpression expr;
+		try {
+			expr = xpath.compile(expression);
+			sessionid = (String) expr.evaluate(getDocument(is), XPathConstants.STRING);
+		} catch (XPathExpressionException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+		        
+		return sessionid;
+		
+	}
+
+/**
+ * This function wraps the session-based communication with a Pazpar2-target, waiting until all the responses were returned (or timeout occured)
+ * returning the full result at the end.   
+ * @return returns the collected final result as a stream
+ * @throws Exception
+ */
+	public InputStream getSourcePz2() throws Exception {
+		
+		InputStream is = null;
+		// TODO param settings
+		//init
+		setCommand("init");
+		String sessionID = getDocumentData(this.getSourceStream(), "//init/session");
+		// get result
+		setCommand("search");
+		setSessionID(sessionID);
+		//setQuery(this.getSquery()); //matej 20110903
+		setQuery(this.getQuery());
+		String ok = getDocumentData(this.getSourceStream(),"//search/status");
+		
+		String activeclients = "1";
+		setCommand("show");
+		setSort("relevance");
+		setBlock("1");
+		//TODO timeout  settings
+		long startMillis = System.currentTimeMillis();
+		long timeout = 0;
+		if (WorkspaceProfile.getOption("pazpartimeout") == null){
+			timeout = 1000;
+		} else {
+			timeout = Integer.parseInt(WorkspaceProfile.getOption("pazpartimeout"));
+		}
+		while (Integer.parseInt(activeclients) > 0){
+			//activeclients = getDocumentData(this.getSourceStream(), "//show/activeclients");
+			is = this.getSourceStream();
+			activeclients = getDocumentData(is, "//show/activeclients");
+			Thread.sleep(1000); 
+			log.debug("ActiveClients: " + activeclients);
+			if ((System.currentTimeMillis() - startMillis)/1000 > timeout) {
+				break;
+			}
+		}
+		is = this.getSourceStream();
+		return is;
+	}
+	
+}
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/RepoProxy.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/RepoProxy.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/RepoProxy.java	(revision 1516)
@@ -0,0 +1,162 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.HashMap;
+import java.io.ByteArrayInputStream;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+
+import eu.clarin.cmdi.mdservice.action.GenericAction;
+import eu.clarin.cmdi.mdservice.action.RepoAction;
+import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
+import eu.clarin.cmdi.mdservice.model.Diagnostic;
+import eu.clarin.cmdi.mdservice.model.Query;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+/**
+ * Base class for implementation of proxies to target systems.
+ * This is now (after rework 2011-09) decoupled from the called Action. 
+ * 
+ * Defines the methods used for retrieving the data 
+ * and provides basic implementation where possible.
+ *
+ *  
+ * @author vronk
+ *
+ */
+public class RepoProxy extends BasicProxy{
+
+	private static final long serialVersionUID = 1L;
+	private static Logger log = Logger.getLogger("RepoProxy");
+ 
+	private String proxy_key = "repo";
+		
+	// should perhaps be RepoAction, but it gets complicated with the types
+	private GenericAction source_action;
+	
+	
+	public GenericAction getSourceAction() {
+			return source_action;
+	}
+	
+/*	public RepoAction getSourceAction() {
+		return source_action;
+}*/
+	
+	@Override
+	public void setSourceAction(GenericAction action) {		
+		source_action = action;
+		
+	}
+	
+	/**
+	 * Convenience function to access the request-parameters in the Action  
+	 * @param key
+	 * @return
+	 */
+	public String getParam(String key) {
+		return getSourceAction().getParam(key);
+	}
+	
+	public void checkParams() {
+		// required Params
+		if (getParam("repository")=="") {
+			getSourceAction().getDiagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "repository");
+		}
+	}
+	
+	
+	/**
+	 * identification of the target-proxy (type)
+	 * base for finding the right base_url in the props
+	 * subclass has to override with its specific proxykey
+	 * @return
+	 */
+	public String getProxyKey() {				
+			return proxy_key;		
+	}
+
+	/**
+	 * Override of the basic method provided by the super-class:
+	 * Read the repository-uri from the WorkspaceProfile based on the repository-parameter 
+	 */
+		
+	public String getBaseURI() {		
+		String uri = WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository());		
+		return uri;
+	}
+
+	/**
+	 * Provides the base-URL specific to given target repository or registry 
+	 * @return
+	 * @throws MalformedURLException
+	 */	
+	public URL getBaseURL() throws MalformedURLException {		
+		URL base_url = new URL(getBaseURI());		
+		return base_url;
+	}
+	
+	
+	public InputStream getSourceStream() throws IOException, NoStylesheetException {
+		return getTargetRequest().openStream();		
+	}
+ 
+	 public String fullQueryString(){
+		String  full_query_string= "TODO: construct fullQueryString";
+		
+		/* matej 20110903
+		 *  String full_query_string= this.getQ();
+		 	
+		if (!getSquery().equals("") && !this.getQ().equals("")){
+				full_query_string = "(" + this.getSquery() + " ) and (" + this.getQ() + ")";
+			} else if (!this.getSquery().equals("")) {
+				full_query_string = this.getSquery();
+			} else if (!this.getQ().equals("")){
+				full_query_string = this.getQ();
+			} else {
+				full_query_string = "";
+			}
+		*/
+		return full_query_string;
+	 }
+	 
+
+	/**
+	 * uses base_url + url_pattern (parametrized by actionkey) to form a url
+	 * @return the full target-request URL to be sent to the target repository
+	 * @throws Exception 
+	 */	
+	public URL getTargetRequest() throws IOException {
+		 
+		
+		//URL targetURL =new URL( getBaseURL(), urls.get(getActionkey()) + query.toURLParam() );
+		URL targetURL =getBaseURL();
+		
+		log.debug("getTargetRequest().targetURL:" + targetURL);
+	    return targetURL;
+		
+	}
+
+	
+
+}	
Index: MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SRUProxy.java
===================================================================
--- MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SRUProxy.java	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SRUProxy.java	(revision 1516)
@@ -0,0 +1,551 @@
+package eu.clarin.cmdi.mdservice.proxy;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+import eu.clarin.cmdi.mdservice.model.Diagnostics;
+import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
+
+
+public class SRUProxy extends RepoProxy
+//implements ServletRequestAware 
+{
+
+	private static final long serialVersionUID = 1L;
+	
+	private String proxy_key = "sru";
+	private static Logger log = Logger.getLogger("SRUProxy");
+	
+	private Diagnostics diagnostics;
+	
+	
+	/** 
+	 * Properties to be filled by Struts with according request-parameters
+	 */	
+	private String q;
+	private String version;
+	private String operation;
+	private String query;
+	private String scanClause;
+	private int startRecord;
+	private int maximumRecords;
+	private String recordPacking;
+	private String recordSchema;
+	private String recordXPath;
+	private int resultSetTTL;
+	private String sortKeys;
+	private String stylesheet;	
+	private String x_cmd_repository;
+	private String x_cmd_collections;
+	private Set paramSet;
+
+	private static int OP_SEARCHRETRIEVE = 1;
+	private static int OP_EXPLAIN = 2;
+	private static int OP_SCAN = 3;
+	
+	
+	private final static HashMap<String,String> hash_operations = new HashMap<String,String>();
+	 static
+	 {	 
+		 hash_operations.put("searchRetrieve", "recordset");
+		 hash_operations.put("explain", "model"); /* could be terms*/ 
+		 hash_operations.put("scan", "values");
+	 }
+	 
+	 private final static HashMap<String,Integer> operation_code = new HashMap<String,Integer>();
+	 static
+	 {	 
+		 operation_code.put("searchRetrieve", OP_SEARCHRETRIEVE);
+		 operation_code.put("explain", OP_EXPLAIN);
+		 operation_code.put("scan", OP_SCAN);
+	 }
+	 
+	 public SRUProxy(){
+		 super();
+		 initialize();
+	 }
+	 
+	 protected void  initialize(){
+				
+		 // TODO set SRU params
+			// missing collections, columns...
+			setOperation("searchRetrieve");
+			//TODO what version
+			setVersion("1.2");
+			//setStartRecord(Integer.parseInt(getSourceAction().getStartItem()));
+			//setMaximumRecords(Integer.parseInt(getSourceAction().getMaximumItems()));
+		// This is probably bloedsinn:
+			setX_cmd_repository(getSourceAction().getRepository());
+			setQuery(this.fullQueryString());
+			
+	/*	 
+		 if (getServletRequest() != null){
+			 this.setX_cmd_repository(getServletRequest().getParameter("x-cmd-repository"));
+			 this.setRepository(this.getX_cmd_repository());
+			 paramSet = getServletRequest().getParameterMap().entrySet();			 
+		 }
+		*/
+	 }
+	 
+	 @Override
+	public String getProxyKey() {				
+			return proxy_key;		
+	}
+
+	 /*@Override
+		public void setServletRequest(HttpServletRequest arg0) {
+			request = arg0;
+		}
+
+		public HttpServletRequest getServletRequest() {
+			return request;
+		}
+		*/
+		public Diagnostics getDiagnostics(){
+			return this.diagnostics;
+		}
+		
+		public void setDiagnostics(Diagnostics diagnostics){
+			this.diagnostics = diagnostics;
+		}
+	
+		
+	 public String getQ() {
+			return q;
+		}
+
+		public void setQ(String q) {
+			this.q = q;
+		}
+	 /*
+	 public InputStream getResultStream() {
+	     return resultStream;
+	 }
+	 public void setResultStream(InputStream _resultStream){
+		resultStream = _resultStream;
+	 }
+	*/
+
+	public String getVersion() {
+		return version;
+	}
+
+	public void setVersion(String version) {
+		this.version = version;
+	}
+
+	public String getOperation() {
+		return operation;
+	}
+
+	public void setOperation(String operation) {
+		this.operation = operation;
+	}
+	
+	public String getQuery() {
+		return query;
+	}
+
+	public void setQuery(String query) {
+		this.query = query;
+	}
+
+	public String getScanClause() {
+		return scanClause;
+	}
+
+	public void setScanClause(String scanClause) {
+		this.scanClause = scanClause;
+	}
+
+	
+	public int getStartRecord() {
+		return startRecord;
+	}
+
+	public void setStartRecord(int startRecord) {
+		this.startRecord = startRecord;
+	}
+	public int getMaximumRecords() {
+		return maximumRecords;
+	}
+
+	public void setMaximumRecords(int maximumRecords) {
+		this.maximumRecords = maximumRecords;
+	}
+	
+	public String getRecordPacking() {
+		return recordPacking;
+	}
+
+	public void setRecordPacking(String recordPacking) {
+		this.recordPacking = recordPacking;
+	}
+
+	public String getRecordSchema() {
+		return recordSchema;
+	}
+
+	public void setRecordSchema(String recordSchema) {
+		this.recordSchema = recordSchema;
+	}
+
+	public String getRecordXPath() {
+		return recordXPath;
+	}
+
+	public void setRecordXPath(String recordXPath) {
+		this.recordXPath = recordXPath;
+	}
+
+	public int getResultSetTTL() {
+		return resultSetTTL;
+	}
+
+	public void setResultSetTTL(int resultSetTTL) {
+		this.resultSetTTL = resultSetTTL;
+	}
+	
+	public String getSortKeys() {
+		return sortKeys;
+	}
+
+	public void setSortKeys(String sortKeys) {
+		this.sortKeys = sortKeys;
+	}
+		
+	public String getStylesheet() {
+		return stylesheet;
+	}
+
+	public void setStylesheet(String stylesheet) {
+		this.stylesheet = stylesheet;
+	}
+	
+	public String getX_cmd_repository(){
+		return x_cmd_repository;
+	}
+	
+	public void setX_cmd_repository(String x_cmd_repository){
+		this.x_cmd_repository = x_cmd_repository;
+	}
+
+	public String getX_cmd_collections(){
+		return x_cmd_collections;
+	}
+	
+	public void setX_cmd_collections(String x_cmd_collections){
+		this.x_cmd_collections = x_cmd_collections;
+	}
+	
+	
+	@Override
+	public String getBaseURI() {		
+		log.debug("SRU-repositorypath:" + WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository()));
+		String uri = WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository());//Admin.getConfig().getProperty(getProxyKey() + ".uri");		
+		return uri;
+	}
+	
+	public Diagnostics Diagnostics(){
+		if (this.diagnostics == null){
+			this.diagnostics = new Diagnostics();
+		}
+		return this.diagnostics;
+	}
+/*	
+	public void prepareOperation() throws UnsupportedEncodingException{
+		
+		mdrepoproxyaction = new MDRepoProxyAction();
+		mdrepoproxyaction.setDiagnostics(diagnostics);
+		mdrepoproxyaction.setActionkey(hash_operations.get(this.getOperation()));
+		
+		// set the SRU extern property in proxyaction
+		if (this.getX_cmd_repository() != null ) {
+			mdrepoproxyaction.setRepository(this.getX_cmd_repository());
+			//TODO\
+			if (mdrepoproxyaction.getBaseURI() == null) this.Diagnostics().Add(Diagnostic.UNSUPPORTED_PARAMETERVALUE, "Unknown repository." + getX_cmd_repository());
+		}
+		
+		if (operation.equals("searchRetrieve")){
+			
+			//query
+			mdrepoproxyaction.setSquery("");
+			if (this.query == null) {
+				this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "query");
+				//return -1;
+			}
+			mdrepoproxyaction.setQ(getQuery());			
+			mdrepoproxyaction.setFormat("xml");
+			
+			if ((this.startRecord < 0 ) ||((getServletRequest().getParameter("startRecord") != null)&&(getServletRequest().getParameter("startRecord").equals("0")))) {
+				this.Diagnostics().Add(new Diagnostic(Diagnostic.UNSUPPORTED_PARAMETERVALUE, "startRecord must by grater than 0."));//,Diagnostic.NONFATALNONSURORGATE));
+				//mdrepoproxyaction.setStartItem("1");
+			} else {
+				mdrepoproxyaction.setStartItem(Integer.toString(getStartRecord()));
+			}
+		
+			if ((this.maximumRecords < 0 ) ||((getServletRequest().getParameter("maximumRecords") != null) && (getServletRequest().getParameter("maximumRecords").equals("0")))){
+				   this.Diagnostics().Add(new Diagnostic(Diagnostic.UNSUPPORTED_PARAMETERVALUE, 
+						   "maximumRecords must by greater than 0."));
+			} else {
+				mdrepoproxyaction.setMaximumItems(Integer.toString(this.getMaximumRecords()));	
+			}
+			
+			if (this.getX_cmd_repository() != null ) {
+				mdrepoproxyaction.setRepository(this.getX_cmd_repository());
+				//TODO\
+				if (mdrepoproxyaction.getBaseURI() == null) this.Diagnostics().Add(Diagnostic.UNSUPPORTED_PARAMETERVALUE, "Unknown repository." + getX_cmd_repository());
+			}
+			if (this.getX_cmd_collections() != null ) {
+				mdrepoproxyaction.setCollection(this.getX_cmd_collections());
+			}
+
+		} else {
+			if (operation.equals("explain") || operation == null){
+				Admin.notifyUser("explaining", "debug");
+			}else {
+				if (operation.equals("scan")){
+					if (this.scanClause == null) {
+						this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "scanClause");
+						//return -1;
+					} else{
+						if (this.scanClause.equals("cmd.Collections")){
+							
+						} else {
+							if (this.scanClause.equals("cmd.Repository")){
+								XMLSerializer xmlserializer = new XMLSerializer();
+								String xml = xmlserializer.write( WorkspaceProfile.getRepositories());//mdrepoproxyaction.getRepositories() );  
+								this.setResultStream(new ByteArrayInputStream(xml.getBytes("UTF-8"))); 
+
+							} else {
+								
+							}
+						}
+					}
+				}else {
+					this.Diagnostics().Add(Diagnostic.UNSUPPOERTED_OPERATION, "Only searchRetrieve,explain scan supported.");				}
+			}
+		}
+	}
+	
+	public void sru2MD() throws UnsupportedEncodingException{
+		// special handling of parameter setting, x-cmd-... not alowed in java
+		this.setX_cmd_collections(getServletRequest().getParameter("x-cmd-collections"));		
+		// root call own SRU SERVER
+		//operation
+		if (operation.equals("explain") || operation == null){
+			// TODO: version param is mandatory for explain as well, but for root-request not!
+			//explain
+			termsproxyaction = new TermsProxyAction();
+			termsproxyaction.setDiagnostics(diagnostics);
+			termsproxyaction.setActionkey("terms");
+			
+			termsproxyaction.setQ("all");			
+			termsproxyaction.setFormat("sru-explain");			
+			
+			//return -1;
+		} else {				
+			//version		
+			if (this.version == null) {
+				this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "version");
+				//return -1;
+			} else {
+				if (!version.equals("1.2")) {
+					this.Diagnostics().Add(Diagnostic.UNSUPPORTED_VERSION, "Version 1.2 supported.");
+					//return -1;
+				}
+			}
+			
+			prepareOperation();
+		}
+		
+	}
+	
+	public void  prepareMD() throws Exception{
+		sru2MD();
+		if (Diagnostics().Accepted()){
+			// root-explain
+			if (this.termsproxyaction != null) {			
+				if (this.termsproxyaction.execute() == SUCCESS){
+					this.setResultStream(this.termsproxyaction.getResultStream());
+					//return SUCCESS;
+				}
+			} else {
+				//TODO diagnostic			 
+				if (this.mdrepoproxyaction.getTargetRequest() == null) {
+					Diagnostics().Add(Diagnostic.QUERYSYNTAXERROR);
+					//return ERROR;
+				}
+				if (this.mdrepoproxyaction.execute() == SUCCESS){
+					this.setResultStream(this.mdrepoproxyaction.getResultStream());
+					postprocess();
+					//return SUCCESS;
+				}
+			}
+		}
+		//return ERROR;
+	}
+	*/
+	
+/** TODO: move to Utils
+ * 
+ * @param stream
+ * @return
+ * @throws IOException
+ */
+	public static String inputStreamAsString(InputStream stream)
+		throws IOException {
+		BufferedReader br = new BufferedReader(new InputStreamReader(stream));
+		StringBuilder sb = new StringBuilder();
+		String line = null;
+
+		while ((line = br.readLine()) != null) {
+		sb.append(line + "\n");
+		}
+
+		br.close();
+		return sb.toString();
+	}
+
+	 public static Document newDocumentFromInputStream(InputStream in) {
+		    DocumentBuilderFactory factory = null;
+		    DocumentBuilder builder = null;
+		    Document ret = null;
+
+		    try {
+		      factory = DocumentBuilderFactory.newInstance();
+		      builder = factory.newDocumentBuilder();
+		    } catch (ParserConfigurationException e) {
+		      e.printStackTrace();
+		    }
+
+		    try {
+		      ret = builder.parse(new InputSource(in));
+		    } catch (SAXException e) {
+		      e.printStackTrace();
+		    } catch (IOException e) {
+		      e.printStackTrace();
+		    }
+		    return ret;
+		  }
+
+/*
+	public void postprocess() throws TransformerConfigurationException, UnsupportedEncodingException, ParserConfigurationException, TransformerException, TransformerFactoryConfigurationError{
+		//recordPacking
+		if (this.getRecordPacking() != null){
+			if (this.getRecordPacking().toLowerCase().equals("string")){
+				try {
+					this.setResultStream(IOUtils.toInputStream(StringEscapeUtils.escapeXml(inputStreamAsString(this.getResultStream()))));
+				} catch (IOException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}
+
+			}
+		}
+		
+		// add diagnostics
+		if (Diagnostics().Exists()){
+			Document doc = newDocumentFromInputStream(this.getResultStream());
+			Node r_element=  doc.getElementsByTagName("searchRetrieveResponse").item(0);
+			Document ddoc = Diagnostics().buildXMLDocument();
+			Node d_element=  ddoc.getElementsByTagName("diagnostics").item(0);
+			doc.adoptNode(d_element);
+			r_element.appendChild(d_element);
+			DOMSource source = new DOMSource(doc);   
+			StringWriter xmlAsWriter = new StringWriter();   
+			StreamResult result = new StreamResult(xmlAsWriter);    
+			TransformerFactory.newInstance().newTransformer().transform(source, result);
+			this.setResultStream(new ByteArrayInputStream(xmlAsWriter.toString().getBytes("UTF-8")));
+		}
+	}
+	*/
+	//TODO create query + query.toURLParams ?
+	public String createURLParams(){
+		String params = "";
+		
+		//TODO params
+		if (paramSet == null){
+			if (!(operation == null)){
+				params = params + "operation=" + operation;
+			}
+			if (!(version == null)){
+				params = params + "&version=" + version;
+			}
+			if (!(query == null)){
+				params = params + "&query=" + query;
+			}
+			if (getStartRecord() > 0){
+				params = params + "&startRecord=" + String.valueOf(getStartRecord());
+			}
+			if (getMaximumRecords()> 0){
+				params = params + "&numRecords=" + String.valueOf(getMaximumRecords());
+			}
+		} else {
+			Iterator i = paramSet.iterator();
+			params = "";
+		    while(i.hasNext()){
+			      Map.Entry me = (Map.Entry)i.next();
+			      if (!(me.getKey().equals("x-cmd-repository") || me.getKey().equals("x-cmd-collections"))){
+				      params = params + "&" + me.getKey() + "=" + ((String[])me.getValue())[0];  
+			      }
+			}
+		    params = params.substring(1);
+
+		}
+
+		return params;
+	}
+	@Override
+	public URL getTargetRequest() throws IOException {
+		String requestURI = "";
+		URL targetURL;
+		
+		if (this.getBaseURI() == null){
+			requestURI = this.getX_cmd_repository();
+		} else {
+			requestURI = this.getBaseURI();
+		}
+	    
+	    targetURL = new URL(requestURI + "?" + createURLParams());
+		return targetURL;
+	}
+
+
+	/*
+	@Override 
+	public void prepare() throws Exception{
+		//this.setX_cmd_repository(getServletRequest().getParameter("x-cmd-repository"));
+		//this.setRepository(this.getX_cmd_repository());
+		//TODO xsl usage according particular repositories ?
+		//this.setActionkey("sru");
+		//this.setFormat("xml");
+		
+		//extern SRU repository
+		if (WorkspaceProfile.isSRURepository(getRepository()) || this.getBaseURI() == null){
+			super.prepare();
+		}
+		else {
+			 prepareMD();
+		}
+		
+	}
+	*/
+
+}
Index: MDService2/branches/MDService_simple3/src/log4j.dtd
===================================================================
--- MDService2/branches/MDService_simple3/src/log4j.dtd	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/log4j.dtd	(revision 1516)
@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- Authors: Chris Taylor, Ceki Gulcu. -->
+
+<!-- Version: 1.2 -->
+
+<!-- A configuration element consists of optional renderer
+elements,appender elements, categories and an optional root
+element. -->
+
+<!ELEMENT log4j:configuration (renderer*, appender*,plugin*, (category|logger)*,root?,
+                               (categoryFactory|loggerFactory)?)>
+
+<!-- The "threshold" attribute takes a level value below which -->
+<!-- all logging statements are disabled. -->
+
+<!-- Setting the "debug" enable the printing of internal log4j logging   -->
+<!-- statements.                                                         -->
+
+<!-- By default, debug attribute is "null", meaning that we not do touch -->
+<!-- internal log4j logging settings. The "null" value for the threshold -->
+<!-- attribute can be misleading. The threshold field of a repository	 -->
+<!-- cannot be set to null. The "null" value for the threshold attribute -->
+<!-- simply means don't touch the threshold field, the threshold field   --> 
+<!-- keeps its old value.                                                -->
+     
+<!ATTLIST log4j:configuration
+  xmlns:log4j              CDATA #FIXED "http://jakarta.apache.org/log4j/" 
+  threshold                (all|trace|debug|info|warn|error|fatal|off|null) "null"
+  debug                    (true|false|null)  "null"
+  reset                    (true|false) "false"
+>
+
+<!-- renderer elements allow the user to customize the conversion of  -->
+<!-- message objects to String.                                       -->
+
+<!ELEMENT renderer EMPTY>
+<!ATTLIST renderer
+  renderedClass  CDATA #REQUIRED
+  renderingClass CDATA #REQUIRED
+>
+
+<!-- Appenders must have a name and a class. -->
+<!-- Appenders may contain an error handler, a layout, optional parameters -->
+<!-- and filters. They may also reference (or include) other appenders. -->
+<!ELEMENT appender (errorHandler?, param*,
+      rollingPolicy?, triggeringPolicy?, connectionSource?,
+      layout?, filter*, appender-ref*)>
+<!ATTLIST appender
+  name 		CDATA 	#REQUIRED
+  class 	CDATA	#REQUIRED
+>
+
+<!ELEMENT layout (param*)>
+<!ATTLIST layout
+  class		CDATA	#REQUIRED
+>
+
+<!ELEMENT filter (param*)>
+<!ATTLIST filter
+  class		CDATA	#REQUIRED
+>
+
+<!-- ErrorHandlers can be of any class. They can admit any number of -->
+<!-- parameters. -->
+
+<!ELEMENT errorHandler (param*, root-ref?, logger-ref*,  appender-ref?)> 
+<!ATTLIST errorHandler
+   class        CDATA   #REQUIRED 
+>
+
+<!ELEMENT root-ref EMPTY>
+
+<!ELEMENT logger-ref EMPTY>
+<!ATTLIST logger-ref
+  ref CDATA #REQUIRED
+>
+
+<!ELEMENT param EMPTY>
+<!ATTLIST param
+  name		CDATA   #REQUIRED
+  value		CDATA	#REQUIRED
+>
+
+
+<!-- The priority class is org.apache.log4j.Level by default -->
+<!ELEMENT priority (param*)>
+<!ATTLIST priority
+  class   CDATA	#IMPLIED
+  value	  CDATA #REQUIRED
+>
+
+<!-- The level class is org.apache.log4j.Level by default -->
+<!ELEMENT level (param*)>
+<!ATTLIST level
+  class   CDATA	#IMPLIED
+  value	  CDATA #REQUIRED
+>
+
+
+<!-- If no level element is specified, then the configurator MUST not -->
+<!-- touch the level of the named category. -->
+<!ELEMENT category (param*,(priority|level)?,appender-ref*)>
+<!ATTLIST category
+  class         CDATA   #IMPLIED
+  name		CDATA	#REQUIRED
+  additivity	(true|false) "true"  
+>
+
+<!-- If no level element is specified, then the configurator MUST not -->
+<!-- touch the level of the named logger. -->
+<!ELEMENT logger (level?,appender-ref*)>
+<!ATTLIST logger
+  name		CDATA	#REQUIRED
+  additivity	(true|false) "true"  
+>
+
+
+<!ELEMENT categoryFactory (param*)>
+<!ATTLIST categoryFactory 
+   class        CDATA #REQUIRED>
+
+<!ELEMENT loggerFactory (param*)>
+<!ATTLIST loggerFactory
+   class        CDATA #REQUIRED>
+
+<!ELEMENT appender-ref EMPTY>
+<!ATTLIST appender-ref
+  ref CDATA #REQUIRED
+>
+
+<!-- plugins must have a name and class and can have optional parameters -->
+<!ELEMENT plugin (param*, connectionSource?)>
+<!ATTLIST plugin
+  name 		CDATA 	   #REQUIRED
+  class 	CDATA  #REQUIRED
+>
+
+<!ELEMENT connectionSource (dataSource?, param*)>
+<!ATTLIST connectionSource
+  class        CDATA  #REQUIRED
+>
+
+<!ELEMENT dataSource (param*)>
+<!ATTLIST dataSource
+  class        CDATA  #REQUIRED
+>
+
+<!ELEMENT triggeringPolicy ((param|filter)*)>
+<!ATTLIST triggeringPolicy
+  name 		CDATA  #IMPLIED
+  class 	CDATA  #REQUIRED
+>
+
+<!ELEMENT rollingPolicy (param*)>
+<!ATTLIST rollingPolicy
+  name 		CDATA  #IMPLIED
+  class 	CDATA  #REQUIRED
+>
+
+
+<!-- If no priority element is specified, then the configurator MUST not -->
+<!-- touch the priority of root. -->
+<!-- The root category always exists and cannot be subclassed. -->
+<!ELEMENT root (param*, (priority|level)?, appender-ref*)>
+
+
+<!-- ==================================================================== -->
+<!--                       A logging event                                -->
+<!-- ==================================================================== -->
+<!ELEMENT log4j:eventSet (log4j:event*)>
+<!ATTLIST log4j:eventSet
+  xmlns:log4j             CDATA #FIXED "http://jakarta.apache.org/log4j/" 
+  version                (1.1|1.2) "1.2" 
+  includesLocationInfo   (true|false) "true"
+>
+
+
+
+<!ELEMENT log4j:event (log4j:message, log4j:NDC?, log4j:throwable?, 
+                       log4j:locationInfo?, log4j:properties?) >
+
+<!-- The timestamp format is application dependent. -->
+<!ATTLIST log4j:event
+    logger     CDATA #REQUIRED
+    level      CDATA #REQUIRED
+    thread     CDATA #REQUIRED
+    timestamp  CDATA #REQUIRED
+    time       CDATA #IMPLIED
+>
+
+<!ELEMENT log4j:message (#PCDATA)>
+<!ELEMENT log4j:NDC (#PCDATA)>
+
+<!ELEMENT log4j:throwable (#PCDATA)>
+
+<!ELEMENT log4j:locationInfo EMPTY>
+<!ATTLIST log4j:locationInfo
+  class  CDATA	#REQUIRED
+  method CDATA	#REQUIRED
+  file   CDATA	#REQUIRED
+  line   CDATA	#REQUIRED
+>
+
+<!ELEMENT log4j:properties (log4j:data*)>
+
+<!ELEMENT log4j:data EMPTY>
+<!ATTLIST log4j:data
+  name   CDATA	#REQUIRED
+  value  CDATA	#REQUIRED
+>
Index: MDService2/branches/MDService_simple3/src/log4j.xml
===================================================================
--- MDService2/branches/MDService_simple3/src/log4j.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/log4j.xml	(revision 1516)
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+    
+    <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
+       <layout class="org.apache.log4j.PatternLayout"> 
+          <!--  <param name="ConversionPattern" value="%d %-5p %c.%M:%L - %m%n"/>-->
+          <!--  <param name="ConversionPattern" value="[%5p] %d{mm:ss} (%F:%M:%L)%n%m%n%n"/> -->
+          <param name="ConversionPattern" value="[%5p] %c.%M %d{yyyy-MM-dd hh:mm:ss} : %m%n"/>
+          <!--  -->
+       </layout> 
+    </appender>
+ 
+ 	<appender name="FILE" class="org.apache.log4j.FileAppender"> 
+                <param name="File" value="testlog4j.log"/> 
+                <layout class="org.apache.log4j.PatternLayout"> 
+                        <param name="ConversionPattern" value="[%5p] %d{yyyy-MM-dd hh:mm:ss} : %m%n"/> 
+                </layout> 
+    </appender> 
+ 
+ <!-- 
+ <appender name="info-out" class="org.apache.log4j.FileAppender"> 
+                <param name="File" value="info.log"/> 
+                <layout class="org.apache.log4j.PatternLayout"> 
+                        <param name="ConversionPattern" value="%m%n"/> 
+                </layout> 
+                <filter class="org.apache.log4j.varia.LevelMatchFilter">
+                        <param name="LevelToMatch" value="info" />
+                        <param name="AcceptOnMatch" value="true"/>
+                </filter>
+                <filter class="org.apache.log4j.varia.DenyAllFilter" />
+        </appender> 
+
+        <appender name="error-out" class="org.apache.log4j.FileAppender"> 
+                <param name="Append" value="false"/>       
+                <param name="File" value="error.log"/> 
+                <layout class="org.apache.log4j.PatternLayout"> 
+                        <param name="ConversionPattern" value="%m%n"/> 
+                </layout> 
+                <filter class="org.apache.log4j.varia.LevelMatchFilter">
+                        <param name="LevelToMatch" value="error" />
+                        <param name="AcceptOnMatch" value="true"/>
+                </filter>
+                <filter class="org.apache.log4j.varia.DenyAllFilter" />
+                <filter class="org.apache.log4j.varia.LevelRangeFilter"> 
+                        <param name="LevelMax" value="error"/>     
+                        <param name="LevelMin" value="error"/>
+                        <param name="AcceptOnMatch" value="true"/> 
+                </filter>
+                
+        </appender> 
+
+ 
+  -->
+    <!-- specify the logging level for loggers from other libraries -->
+  
+    <logger name="com.opensymphony">
+    	<level value="INFO" />
+    </logger>
+
+    <logger name="org.apache.struts2">
+    	 <level value="INFO" />
+    </logger>
+    
+    <logger name="freemarker">
+    	 <level value="INFO" />
+    </logger>
+	
+   <!-- for all other loggers log only debug and above log messages -->
+     <root>
+        <priority value="DEBUG"/> 
+        <appender-ref ref="STDOUT" /> 
+        <appender-ref ref="FILE" />
+        <!-- 
+        <appender-ref ref="FILE1" />
+        <appender-ref ref="FILE2" />
+         -->
+     </root> 
+    
+</log4j:configuration> 
+
Index: MDService2/branches/MDService_simple3/src/mdservice.properties
===================================================================
--- MDService2/branches/MDService_simple3/src/mdservice.properties	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/mdservice.properties	(revision 1516)
@@ -0,0 +1,89 @@
+// should be obsolete:
+//mdrepository.uri = http://demo.spraakdata.gu.se/clarin/cmd/model/stats/
+//mdrepository.uri = http://localhost:8680/exist/rest/db/clarin/cmd-model.xql/
+//mdrepository.uri = http://clarin.aac.ac.at/exist/rest/db/clarin/cmd-model.xql/
+//collections.uri = http://demo.spraakdata.gu.se/clarin/cmd/model/stats?operation=getCollections&maxdepth=3&collection=
+//collections.uri = http://clarin.aac.ac.at/exist/rest/db/clarin/cmd-model.xql?operation=getCollections&maxdepth=2&collection=
+//collections.uri = http://localhost:8680/exist/rest/db/clarin/cmd-model.xql?operation=getCollections&collection=
+
+
+static.uri=http://localhost:8080/MDService2/static/
+terms.uri = http://localhost:8080/MDService2/model/matrix/?q=
+terms.dcr.uri = http://localhost:8080/MDService2/terms/extract/?q=
+terms.file=terms_setup.xml
+
+//?? dcregistry.uri = http://www.isocat.org/rest/
+compregistry.uri = http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/
+virtualcollection.uri = http://clarin.ids-mannheim.de/vcr/service/virtualcollection
+
+scripts.path = xsl/
+//cache.path = /srv/tomcat6/webapps/MDService2_cache/
+//workspaceprofile.path = /srv/tomcat6/webapps/MDService2_profiles/
+cache.path = C:/apps/apache-tomcat/webapps/MDService2_cache/
+workspaceprofile.path = C:/apps/apache-tomcat/webapps/MDService2_profiles/
+//cache.path = C:/apache-tomcat-6.0.26/webapps/MDService2_cache/
+//workspaceprofile.path = C:/apache-tomcat-6.0.26/webapps/MDService2_profiles/
+workspace.file = WorkspaceProfile.xml
+
+cacheindex.file = cache_index.xml
+xml.comp = 
+xsl.profile2VC = profile2VC.xsl
+xsl.XCQL2XPATH = XCQL2Xpath.xsl
+xsl.recordset2htmltable = mdset2view.xsl
+xsl.recordset2htmlpage = mdset2view.xsl
+xsl.recordset2htmllist = mdset2view.xsl
+xsl.recordset2htmlsimple = mdset2view.xsl
+xsl.sru2htmlpage = sru2view.xsl
+xsl.sru2htmltable = sru2view.xsl
+xsl.pazpar22htmlpage = mdset_pazpar2view.xsl
+xsl.pazpar22htmlpagelist = mdset_pazpar2view.xsl
+xsl.pazpar22htmltable = mdset_pazpar2view.xsl
+xsl.record2htmldetail = mdinst2view.xsl
+xsl.record2htmlpage = mdinst2view.xsl
+xsl.collection2htmllist = collection2view.xsl
+xsl.collection2htmlpage = collection2view.xsl
+xsl.model2matrix = model2matrix.xsl
+xsl.model2htmlpage = model2view.xsl
+xsl.model2htmltable = model2view.xsl
+xsl.model2htmllist = model2view.xsl
+xsl.model2htmlselect = model2view.xsl
+xsl.values2htmlpage = values2view.xsl
+xsl.values2htmllist = values2view.xsl
+xsl.terms2extract = terms_extract.xsl
+xsl.terms2htmlselect = terms2view.xsl
+xsl.terms2htmllist = terms2view.xsl
+xsl.terms2flat = terms2view.xsl
+xsl.terms2autocomplete = terms2view.xsl
+xsl.terms2htmlpage = terms2view.xsl
+xsl.terms2htmldetail = terms2view.xsl
+xsl.terms2htmltable = terms2view.xsl
+xsl.terms2sru-explain = sru_explain.xsl
+
+xsl.comp2htmlpage = comp2view.xsl
+xsl.comp2htmllist = comp2view.xsl
+xsl.comp2htmldetail = comp2view.xsl
+xsl.complist2htmllist = complist2view.xsl
+xsl.complist2htmlselect = complist2view.xsl
+xsl.complist2htmldetail = complist2view.xsl
+//xsl.dc2htmldiv = dcif2view.xsl
+//xsl.dc2htmllist = dcif2view.xsl
+
+xsl.datcat-all2terms = datcat_all2terms.xsl
+xsl.dcr-rdf2terms = datcat_rdf2terms.xsl
+xsl.rr-rdf2terms = datcat_rdf2terms.xsl
+xsl.dcr-dcif2terms = datcat_dcif2terms.xsl
+
+
+xsl.collection2html = collection2view.xsl
+xsl.complist2xmlresolved = complist_resolved.xsl
+
+xsl.terms2txt = complist2termstxt.xsl
+xsl.xml2json = xml2json.xsl
+xsl.attr2elements = attr2elements.xsl
+
+xsl.admin2htmlpage = cache2view.xsl
+xsl.docs2htmlpage = docs2view.xsl
+xsl.docs2htmldetail = docs2view.xsl
+xsl.docs2htmlpagetest = test2view.xsl
+xsl.static2htmlpage = static2view.xsl
+xsl.static2htmldetail = static2view.xsl
Index: MDService2/branches/MDService_simple3/src/oscache.properties
===================================================================
--- MDService2/branches/MDService_simple3/src/oscache.properties	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/oscache.properties	(revision 1516)
@@ -0,0 +1,140 @@
+# CACHE IN MEMORY
+#
+# If you want to disable memory caching, just uncomment this line.
+#
+cache.memory=false
+
+
+# CACHE KEY
+#
+# This is the key that will be used to store the cache in the application
+# and session scope.
+#
+# If you want to set the cache key to anything other than the default
+# uncomment this line and change the cache.key
+#
+# cache.key=__oscache_cache
+
+
+# USE HOST DOMAIN NAME IN KEY
+#
+# Servers for multiple host domains may wish to add host name info to
+# the generation of the key.  If this is true, then uncomment the
+# following line.
+#
+# cache.use.host.domain.in.key=true
+
+
+# CACHE LISTENERS
+#
+# These hook OSCache events and perform various actions such as logging
+# cache hits and misses, or broadcasting to other cache instances across a cluster.
+# See the documentation for further information.
+#
+# cache.event.listeners=com.opensymphony.oscache.plugins.clustersupport.JMSBroadcastingListener,  \
+#                       com.opensymphony.oscache.extra.CacheEntryEventListenerImpl,               \
+#                       com.opensymphony.oscache.extra.CacheMapAccessEventListenerImpl,           \
+#                       com.opensymphony.oscache.extra.ScopeEventListenerImpl,                    \
+#                       com.opensymphony.oscache.extra.StatisticListenerImpl
+
+
+# CACHE PERSISTENCE CLASS
+#
+# Specify the class to use for persistence. If you use the supplied DiskPersistenceListener,
+# don't forget to supply the cache.path property to specify the location of the cache
+# directory.
+# 
+# If a persistence class is not specified, OSCache will use memory caching only.
+#
+cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener
+# cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.HashDiskPersistenceListener
+
+# CACHE OVERFLOW PERSISTENCE
+# Use persistent cache in overflow or not. The default value is false, which means
+# the persistent cache will be used at all times for every entry.  true is the recommended setting.
+#
+# cache.persistence.overflow.only=true
+
+# CACHE DIRECTORY
+#
+# This is the directory on disk where caches will be stored by the DiskPersistenceListener.
+# it will be created if it doesn't already exist. Remember that OSCache must have
+# write permission to this directory.
+#
+# Note: for Windows machines, this needs \ to be escaped
+# ie Windows:
+cache.path=c:\\apps\\ApacheTomcat\\webapps\\MDService2_cache
+# or *ix:
+# cache.path=/opt/myapp/cache
+#
+# cache.path=c:\\app\\cache
+
+
+# CACHE ALGORITHM
+#
+# Default cache algorithm to use. Note that in order to use an algorithm
+# the cache size must also be specified. If the cache size is not specified,
+# the cache algorithm will be Unlimited cache.
+#
+# cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache
+# cache.algorithm=com.opensymphony.oscache.base.algorithm.FIFOCache
+# cache.algorithm=com.opensymphony.oscache.base.algorithm.UnlimitedCache
+
+# THREAD BLOCKING BEHAVIOR
+#
+# When a request is made for a stale cache entry, it is possible that another thread is already
+# in the process of rebuilding that entry. This setting specifies how OSCache handles the
+# subsequent 'non-building' threads. The default behaviour (cache.blocking=false) is to serve
+# the old content to subsequent threads until the cache entry has been updated. This provides
+# the best performance (at the cost of serving slightly stale data). When blocking is enabled,
+# threads will instead block until the new cache entry is ready to be served. Once the new entry
+# is put in the cache the blocked threads will be restarted and given the new entry.
+# Note that even if blocking is disabled, when there is no stale data available to be served
+# threads will block until the data is added to the cache by the thread that is responsible
+# for building the data.
+#
+# cache.blocking=false
+
+# CACHE SIZE
+#
+# Default cache size in number of items. If a size is specified but not
+# an algorithm, the cache algorithm used will be LRUCache.
+#
+cache.capacity=1000
+
+
+# CACHE UNLIMITED DISK
+# Use unlimited disk cache or not. The default value is false, which means
+# the disk cache will be limited in size to the value specified by cache.capacity.
+#
+# cache.unlimited.disk=false
+
+
+# JMS CLUSTER PROPERTIES
+#
+# Configuration properties for JMS clustering. See the clustering documentation
+# for more information on these settings.
+#
+#cache.cluster.jms.topic.factory=java:comp/env/jms/TopicConnectionFactory
+#cache.cluster.jms.topic.name=java:comp/env/jms/OSCacheTopic
+#cache.cluster.jms.node.name=node1
+
+
+# JAVAGROUPS CLUSTER PROPERTIES
+#
+# Configuration properites for the JavaGroups clustering. Only one of these
+# should be specified. Default values (as shown below) will be used if niether
+# property is set. See the clustering documentation and the JavaGroups project
+# (www.javagroups.com) for more information on these settings.
+#
+#cache.cluster.properties=UDP(mcast_addr=231.12.21.132;mcast_port=45566;ip_ttl=32;\
+#mcast_send_buf_size=150000;mcast_recv_buf_size=80000):\
+#PING(timeout=2000;num_initial_members=3):\
+#MERGE2(min_interval=5000;max_interval=10000):\
+#FD_SOCK:VERIFY_SUSPECT(timeout=1500):\
+#pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;max_xmit_size=8192):\
+#UNICAST(timeout=300,600,1200,2400):\
+#pbcast.STABLE(desired_avg_gossip=20000):\
+#FRAG(frag_size=8096;down_thread=false;up_thread=false):\
+#pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)
+#cache.cluster.multicast.ip=231.12.21.132
Index: MDService2/branches/MDService_simple3/src/struts.xml
===================================================================
--- MDService2/branches/MDService_simple3/src/struts.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/struts.xml	(revision 1516)
@@ -0,0 +1,255 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
+    "http://struts.apache.org/dtds/struts-2.0.dtd">
+<struts>
+
+	<constant name="struts.enable.SlashesInActionNames" value="true"/>
+	<constant name="struts.devMode" value="false" />
+	<constant name="struts.serve.static" value="false"/>
+	
+
+	<package name="basicstruts2" extends="struts-default">
+
+ 		<default-action-ref name="catchall" />
+ 				
+		<global-results>
+			    <!-- <result name="exception">/Exception.jsp</result>--> 
+			    <result name="exception">/ExceptionXML.jsp</result>
+			    <result name="nostylesheet-exception">/ExceptionNoStylesheet.jsp</result> 
+			  	<result name="repositorydown-exception">/ExceptionXMLRepositoryDown.jsp</result>
+			    <!-- tried setting html-status, didn't work:  
+			    	<result name="exception">
+			      <param name="status">500</param>
+			      <param name="location">/Error.jsp</param>			    
+			    </result> -->
+			    <result name="error">/Error.jsp</result>
+			    <!-- <result name="error" type="redirectAction"></result>
+			     --> 
+		</global-results>
+
+        <global-exception-mappings>
+            <exception-mapping exception="java.lang.Exception" result="exception"/>
+            <exception-mapping exception="eu.clarin.cmdi.mdservice.action.NoStylesheetException" result="nostylesheet-exception"/>
+            <exception-mapping exception="java.io.IOException" result="repositorydown-exception"/>
+            
+        </global-exception-mappings>
+		
+        <!-- If no class attribute is specified the framework will assume success and 
+        render the result index.jsp -->
+        <!-- If no name value for the result node is specified the success value is the default -->
+		<!-- <action name="index">
+			<result>/index.jsp</result>
+		</action>
+		 
+		 
+		<action name="/?*">
+			<result>/index.jsp?{1}</result>
+		</action>
+-->
+	<!-- 	<action name="/?*" class="eu.clarin.cmdi.mdservice.action.StaticAction" method="execute"> 
+			   <param name="actionkey">static</param>
+			   <param name="format">htmlpage</param>
+			   <param name="q">index</param>			   
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		-->
+		<action name="index" class="eu.clarin.cmdi.mdservice.action.StaticAction" method="execute"> 
+			   <param name="actionkey">static</param>
+			   <param name="format">htmlpage</param>
+			   <param name="q">index</param>			   
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+
+		<action name="catchall" class="eu.clarin.cmdi.mdservice.action.StaticAction" method="execute"> 
+			   <param name="actionkey">static</param>
+			   <param name="format">htmlpage</param>
+			   <param name="q">catchall</param>			   
+			   <param name="userMsg">Invalid request!</param>
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+	<action name="static/*" class="eu.clarin.cmdi.mdservice.action.StaticAction" method="execute"> 
+			   <param name="format">htmlpage</param>
+			   <param name="q">{1}</param>
+			   <param name="actionkey">static</param>
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+
+		
+		<action name="comp/*" class="eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction" method="execute">
+			   	<param name="compid">{1}</param>
+			   	<param name="actionkey">components</param>
+			    <result type="stream">		
+			        <param name="contentType">${getActionContentType()}</param>			        
+			        <param name="inputName">resultStream</param>
+			    </result>
+		</action>
+
+		<action name="compprofile/*" class="eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction" method="execute">			   	
+			   	<param name="compid">{1}</param>
+			   	<param name="actionkey">profiles</param>
+			    <result type="stream">		
+			        <param name="contentType">${getActionContentType()}</param>			        
+			        <param name="inputName">resultStream</param>
+			    </result>
+		</action>
+
+		<action name="element/*" class="eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction" method="execute">
+			   	<param name="compid">{1}</param>
+			   	<param name="actionkey">elements</param>
+			    <result type="stream">		
+			        <param name="contentType">${getActionContentType()}</param>			        
+			        <param name="inputName">resultStream</param>
+			    </result>
+		</action>
+		
+		<action name="terms/*" class="eu.clarin.cmdi.mdservice.action.TermsProxyAction" method="execute">			   	
+			   	<param name="q">{1}</param>
+			   	<param name="actionkey">terms</param>
+			    <result type="stream">
+			       <param name="contentType">${getActionContentType()}</param>			        			        
+			        <param name="inputName">resultStream</param>
+			    </result>
+		</action>
+		
+		<action name="datcat/*" class="eu.clarin.cmdi.mdservice.action.DCRProxyAction" method="execute">			   
+			   <param name="q">{1}</param>
+			   <param name="actionkey">datcat</param>
+			    <result type="stream">			   
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		
+		<action name="datcats/*" class="eu.clarin.cmdi.mdservice.action.DCRProxyAction" method="execute">		   	   
+			   <param name="q">{1}</param>		
+			   <param name="actionkey">datcats</param>
+			    <result type="stream">			   
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		
+		<action name="workspaceprofile/*" class="eu.clarin.cmdi.mdservice.action.WorkspaceAction" method="execute">
+			   <param name="format">JSON</param>
+			   <param name="type">{1}</param> 
+			   <!-- + workspace, queryset or as params
+			   <param name="workspace">{2}</param>
+			   <param name="queryset">{3}</param>
+			    -->
+			   <param name="actionkey"></param>
+			    <result type="stream">			   
+			        <param name="contentType">application/json</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		
+		<action name="workspaceprofilesave/*/*" class="eu.clarin.cmdi.mdservice.action.WorkspaceAction" method="save">		
+			   <param name="format">JSON</param>
+			   <param name="type">{1}</param> 
+			   <param name="qsid">{2}</param>
+			   <!-- <param name="data">{1}</param>	
+			   <param name="actionkey"></param>	 
+			    -->	    
+			    
+			   <result type="stream">			   
+			        <param name="contentType">text/xml</param>
+			        <param name="inputName">resultStream</param>		        
+			    </result>
+		</action>
+		
+		<action name="virtualcollection/*/*" class="eu.clarin.cmdi.mdservice.action.VirtualCollectionProxyAction" method="publish">		 
+			   <param name="type">{1}</param> 
+			   <param name="qid">{2}</param>
+			     <result type="stream">		
+			        <param name="contentType">text/xml</param>			        
+			        <param name="inputName">resultStream</param>
+			    </result> 
+		</action>
+				
+		<action name="admin/*" class="eu.clarin.cmdi.mdservice.action.AdminAction" method="execute">			   
+			   <param name="actionkey">{1}</param>
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		
+		<action name="admin/cache/del" class="eu.clarin.cmdi.mdservice.action.AdminAction" method="del"> 
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		
+		<action name="pazpar2/" class="eu.clarin.cmdi.mdservice.action.Pz2Action" method="execute">
+			   <result name="success" type="stream">			       
+			        <param name="contentType">${getActionContentType()}</param> 
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		
+		<action name="sru/*" class="eu.clarin.cmdi.mdservice.action.SRUAction" method="execute"> 
+			   <param name="q">{1}</param>
+			   <result name="success" type="stream">			       
+			        <param name="contentType">text/xml</param> 
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+			    <result name="error" type="stream">			       
+			        <param name="contentType">text/xml</param> 
+			        <param name="inputName">${getDiagnosticStreamName()}</param>			        
+			    </result>
+		</action>
+		
+		<action name="model/*" class="eu.clarin.cmdi.mdservice.action.RepoAction" method="execute">
+			<param name="q">{1}</param> 
+			   <param name="actionkey">model</param>			   
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+
+		<action name="search/*" class="eu.clarin.cmdi.mdservice.action.RepoAction" method="execute">
+			   <param name="q">{*}</param> 
+			   <param name="actionkey">search</param>			   
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+		
+		<action name="record/*" class="eu.clarin.cmdi.mdservice.action.RepoAction" method="execute">
+			   <param name="q">{1}</param> 
+			   <param name="actionkey">record</param>			   
+			    <result type="stream">			    
+			        <param name="contentType">${getActionContentType()}</param>
+			        <param name="inputName">resultStream</param>			        
+			    </result>
+		</action>
+
+	  <action name="collections/*" class="eu.clarin.cmdi.mdservice.action.RepoAction" method="execute">
+			   	<param name="format">{1}</param>
+			   	<param name="actionkey">collections</param>
+			    <result type="stream">		
+			        <param name="contentType">${getActionContentType()}</param>			        
+			        <param name="inputName">resultStream</param>
+			    </result>
+		</action>
+
+		
+	</package>
+
+</struts>
Index: MDService2/branches/MDService_simple3/src/terms_setup.xml
===================================================================
--- MDService2/branches/MDService_simple3/src/terms_setup.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/terms_setup.xml	(revision 1516)
@@ -0,0 +1,14 @@
+<Termsets>
+	<Termset type="model" id="olac" name="olac" url="" format="terms|cmdrepo" />
+	<Termset type="model" id="olact" name="OLAC-DcmiTerms" url="" format="terms|cmdrepo" />
+	<Termset type="model" id="lrt" name="LrtInventoryResource" url="" format="terms|cmdrepo" />
+	<Termset type="model" id="coll" name="collection" url="" format="terms|cmdrepo" />
+	<Termset type="model" id="tcp" name="TextCorpusProfile" url="" format="terms|cmdrepo" />
+	<Termset type="model" id="tei" name="teiHeader" url="" format="terms" />
+ 	
+	<Termset type="dcr" id="isocat" name="isoCAT" url="http://www.isocat.org/rest/profile/5" url_prefix="http://www.isocat.org/datcat/" format="dcif" />
+	<Termset type="dcr" id="dce" name="dublincore elements" url="http://purl.org/dc/elements/1.1/" url_prefix="http://purl.org/dc/elements/1.1/"  format="rdf" />
+	<Termset type="dcr" id="dct" name="dublincore terms" url="http://purl.org/dc/terms/" url_prefix="http://purl.org/dc/terms/"  format="rdf" />	
+	<Termset type="rr" id="relcat" name="Relation Registry CMDI-set" url="http://lux13.mpi.nl/relcat/rest/set/cmdi" url_prefix="http://lux13.mpi.nl/relcat/rest/set/cmdi" format="rdf" />
+	<Termset type="rr" id="reldc" name="Relation Registry DC-set" url="http://lux13.mpi.nl/relcat/rest/set/dc" url_prefix="http://lux13.mpi.nl/relcat/rest/set/dc" format="rdf" />	
+</Termsets>
Index: MDService2/branches/MDService_simple3/src/xsl/XCQL2Xpath.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/XCQL2Xpath.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/XCQL2Xpath.xsl	(revision 1516)
@@ -0,0 +1,225 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:my="myFunctions">
+
+<!-- 
+<purpose>transform XCQL to xpath
+! WARNING: not pure Xpath! actually it adapts the query on the query-interface of MD-Repository
+in particular there is special handling for index "collection" 
+</purpose>
+<history>
+	<change on="2010-01-28" type="created" by="vr"></change>			
+	<change on="2010-07-01" type="changed" by="vr">handling of collection-filter</change>
+</history>
+<sample>
+<triple>
+  <boolean>
+    <value>and</value>
+  </boolean>
+  <leftOperand>
+    <searchClause>
+      <index>bath.author</index>
+      <relation>
+        <value>any</value>
+      </relation>
+      <term>fish</term>
+    </searchClause>
+  </leftOperand>
+  <rightOperand>
+    <searchClause>
+      <index>dc.title</index>
+      <relation>
+        <value>all</value>
+      </relation>
+      <term>cat dog</term>
+    </searchClause>
+  </rightOperand>
+</triple>
+</sample>
+      -->
+      
+
+<xsl:include href="cmd_functions.xsl"/>
+<!--<xsl:include href="params.xsl"/>
+<xsl:variable name="terms_setup" select="document($terms_setup_uri)" />
+<xsl:variable name="terms_flat" select="document($terms_flat_uri)" />
+-->
+<xsl:output method="text" />
+
+<xsl:template match="/">
+<xsl:message>XCQL: <xsl:copy-of select="." /></xsl:message>
+	<xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="triple">
+		
+	<xsl:choose>
+	<!--  this is rather hacky yet
+	currently not used, because collection is a separate parameter and does not show up in the cql 
+aim is: special handling of collection-index (as separate parameter)
+
+precondition: collection-index just as rightOperand on top-nesting-level and boolean='and'
+ -->
+		<xsl:when test="rightOperand/searchClause/index='collection'" >
+			<xsl:apply-templates select="leftOperand/*" />
+			<xsl:apply-templates select="rightOperand/*" mode="collection"/>			
+		</xsl:when>
+		<xsl:otherwise>
+			<xsl:if test="not(ancestor::triple)" >//Components[</xsl:if>			
+				<xsl:call-template name="boolean" >
+					<xsl:with-param name="op" select="boolean/value" />
+					<xsl:with-param name="left" >
+						<xsl:apply-templates select="leftOperand/*" />
+					</xsl:with-param>
+					<xsl:with-param name="right" >
+						<xsl:apply-templates select="rightOperand/*" />
+					</xsl:with-param>
+				</xsl:call-template>
+			<xsl:if test="not(ancestor::triple)" >]</xsl:if>				
+		</xsl:otherwise>
+	</xsl:choose>
+	
+</xsl:template>
+
+<xsl:template name="boolean">
+	<xsl:param name="op" />
+	<xsl:param name="left" />
+	<xsl:param name="right" />
+	<xsl:message>XCQL2XPath.template-boolean.$op:<xsl:value-of select="$op" /></xsl:message>
+	
+
+	<xsl:choose>
+		<xsl:when test="$op='and'">
+			<xsl:text></xsl:text>
+			<xsl:value-of select="$left" />
+			<xsl:text>][</xsl:text><xsl:value-of select="$right" /><xsl:text></xsl:text>
+		</xsl:when>
+		<xsl:when test="$op='or'">
+			<xsl:value-of select="$left" />
+			<xsl:text>%20or%20</xsl:text><xsl:value-of select="$right" />
+		</xsl:when>		
+	</xsl:choose>
+	
+	
+</xsl:template>
+
+<xsl:template match="searchClause">
+	<xsl:apply-templates select="index" />
+	<xsl:apply-templates select="relation">
+		<xsl:with-param name="term" select="term" />
+	</xsl:apply-templates>	
+</xsl:template>
+
+
+<!--   aim is: special handling of collection-filter (as separate parameter) -->
+<xsl:template match="searchClause" mode="collection">
+		<xsl:text>&amp;collection=</xsl:text><xsl:value-of select="term"></xsl:value-of>		
+</xsl:template>
+
+<xsl:template match="index">
+
+	<!-- reverting the "escaping" of whitespaces in indices with datcat-name -->
+	<xsl:variable name="ix_string" select="replace(text(),'_',' ')" />
+	
+	<xsl:variable name="ix_resolved" >	
+		<xsl:choose>
+			<xsl:when test="contains(.,':')">
+				<xsl:variable name="prefix" select="substring-before(.,':')" />				
+				<xsl:variable name="termset" select="$terms_setup/Termsets/Termset[@id=$prefix]" />				
+				
+				<xsl:message>XCQL2XPath.index:<xsl:copy-of select="$termset"/>
+								ix_string:<xsl:value-of select="$ix_string"/>
+				</xsl:message>
+				<xsl:choose>
+				<!-- magic happening here  -->
+					<xsl:when test="$termset[@type='dcr' or @type='rr']">
+						<xsl:variable name="expanded_context" select="$terms_flat//context[@path=$ix_string]"></xsl:variable>
+							<xsl:variable name="expanded_query" >
+								<xsl:text>(</xsl:text>
+								<xsl:for-each select="distinct-values($expanded_context//context[@elem]/@path)">
+									<xsl:variable name="prefix" select="substring-before(.,':')" />
+									<xsl:variable name="termset" select="$terms_setup/Termsets/Termset[@id=$prefix]" />									
+									<xsl:value-of select="concat($termset/@name,'//',substring-after(.,':'))" />
+									<xsl:if test="position()!=last()"><xsl:text>|</xsl:text></xsl:if>
+								</xsl:for-each>
+								<xsl:text>)</xsl:text>
+							</xsl:variable>
+							<xsl:message>expanded-context:<xsl:value-of select="$expanded_query" /></xsl:message>
+						<xsl:value-of select="$expanded_query" />
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:value-of select="concat($termset/@name,'//',substring-after(.,':'))" />	
+					</xsl:otherwise>
+				</xsl:choose>
+				 
+			</xsl:when>
+			<xsl:otherwise><xsl:value-of select="." />
+			</xsl:otherwise>
+		</xsl:choose>		
+		
+	</xsl:variable>
+	<!-- <xsl:variable name="ix_xpathed" select="translate($ix_resolved, '.', '/')" ></xsl:variable> -->
+	<xsl:variable name="ix_xpathed" select="my:index2xpath(.)" ></xsl:variable> 
+	<xsl:choose>
+		<xsl:when test="(.='cql.serverChoice' or .='*') and not(ancestor::triple)" >//Components</xsl:when>
+		<xsl:when test=".='cql.serverChoice' or .='*'" >.</xsl:when>				
+		<xsl:when test="ancestor::triple" >
+			<xsl:value-of select="concat('.//',$ix_xpathed)" />
+		</xsl:when>
+		<xsl:otherwise>		
+			<xsl:value-of select="concat('//',$ix_xpathed)" />	
+		</xsl:otherwise>
+	</xsl:choose>
+</xsl:template>
+
+<xsl:template match="relation">
+	<xsl:param name="term" />
+
+	<xsl:param name="sanitized_term"  select="replace($term,' ','+')" />	
+	<xsl:text>[</xsl:text>
+		<xsl:choose>	
+			<xsl:when test="$term='*' or $term='_'" >
+				<xsl:text>true()</xsl:text>				
+			</xsl:when>				
+						
+			<xsl:when test="value='contains'" >
+				<xsl:text>contains(.,'</xsl:text><xsl:value-of select="$sanitized_term"/><xsl:text>')</xsl:text>				
+			</xsl:when>
+			<xsl:when test="(value='any' or preceding-sibling::index='*' or preceding-sibling::index='cql.serverChoice')" >
+				<!--  use full-text querying: [ft:query(., "language")] -->
+				<xsl:choose>	
+					<xsl:when test="starts-with($term,'%22')" >
+						<xsl:text>ft:query(.,&lt;phrase&gt;</xsl:text><xsl:value-of select="replace(lower-case($sanitized_term),'%22','')" /><xsl:text>&lt;/phrase&gt;)</xsl:text>										
+					</xsl:when>
+					<xsl:when test="contains($term,'%7C')" >						
+						<xsl:text>ft:query(.,'</xsl:text><xsl:value-of select="replace(lower-case($sanitized_term),'%7C','')"/><xsl:text>')</xsl:text>				
+					</xsl:when>				
+					<xsl:when test="contains($term,'%20') or contains($sanitized_term,'+')" > <!--  AND-combined full-text search-->													
+							<xsl:for-each select="tokenize(replace($sanitized_term,'\+','%20'),'%20')" >
+								<xsl:if test=".!=''" >
+									<xsl:text>ft:query(.,'</xsl:text><xsl:value-of select="."/><xsl:text>')</xsl:text>
+									<xsl:message><xsl:value-of select="concat(position(),':', .)" ></xsl:value-of></xsl:message>
+									<xsl:if test="position()!=last()" ><xsl:text>][</xsl:text></xsl:if>
+								</xsl:if>
+							</xsl:for-each>						
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:text>ft:query(.,'</xsl:text><xsl:value-of select="lower-case($sanitized_term)"/><xsl:text>')</xsl:text>
+					</xsl:otherwise>
+				</xsl:choose> 
+			</xsl:when>
+			<xsl:when test="value='='" >
+				<xsl:text>.%20eq%20</xsl:text> <xsl:text>'</xsl:text><xsl:value-of select="$sanitized_term"/><xsl:text>'</xsl:text>				
+			</xsl:when>
+			<xsl:otherwise>		
+				<xsl:text>.</xsl:text> <xsl:value-of select="value" />
+				<xsl:text>'</xsl:text><xsl:value-of select="$sanitized_term"/><xsl:text>'</xsl:text>	
+			</xsl:otherwise>
+		</xsl:choose>	
+	<xsl:text>]</xsl:text>
+	
+</xsl:template>
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/cache2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/cache2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/cache2view.xsl	(revision 1516)
@@ -0,0 +1,51 @@
+﻿<?xml version="1.0"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
+
+<!-- 
+<purpose>convert MDService2 cache-index to a html-table</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-11-12" type="created" by="vr">based on xml2htmltable</change>	
+	
+</history>
+-->
+
+<xsl:include href="cmd_commons.xsl"/>
+
+<xsl:param name="title" >MDService2 - cache</xsl:param>
+
+	
+<!--<xsl:output method="xml" encoding="UTF-8"/>-->
+
+<xsl:template name="continue-root">
+	
+	<xsl:variable name="count_fields" select="count($cache_cols)" />
+	
+	<table class="show">
+		<thead>
+			<tr>
+			<xsl:for-each select="$cache_cols">
+				<th><xsl:value-of select="." /></th>
+			</xsl:for-each>			
+			</tr>
+		</thead>
+		<xsl:for-each-group select="//f" group-by="@type" >
+			<tr><td colspan="{$count_fields}"  ><h3 id="{@type}" ><a href="#{@type}" ><xsl:value-of select="@type" /></a></h3></td></tr>
+			<xsl:for-each select="current-group()" >				
+				<tr>
+				<xsl:variable name="curr" select="." />
+					<xsl:for-each select="$cache_cols" >						
+						<xsl:variable name="value" select="$curr/@*[name()=current()]" />
+						<xsl:variable name="number" select="if (number($value)=number($value)) then 'number' else ''"></xsl:variable>
+							<td class="{$number}"><xsl:value-of select="$value" /></td>
+					</xsl:for-each>
+				</tr>
+			</xsl:for-each>
+		</xsl:for-each-group>
+  </table>
+    		
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/cmd_commons.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/cmd_commons.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/cmd_commons.xsl	(revision 1516)
@@ -0,0 +1,190 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:my="myFunctions"
+ exclude-result-prefixes="my">
+
+<!-- 
+<purpose>generic templates for MDService2</purpose>
+<history>
+	<change on="2010-03-19" type="created" by="vr">based on 3RMA/suki/dc4_commons.xsl</change>			
+	<change on="2010-03-23" type="changed" by="vr">really started rework - added html wrapper, ...</change>			
+	<change on="2010-12-29" type="changed" by="vr">extracted function into: cmd_functions.xsl</change>
+</history>
+
+-->
+
+<xsl:include href="cmd_functions.xsl"/>
+<xsl:include href="html_snippets.xsl"/>
+
+<xsl:param name="src_file" />	
+<!--  FIXME: he? -->	
+<xsl:param name="root_uri" select="$src_file" />		
+
+<!-- common starting point for all stylesheet; cares for unified html-envelope
+and passes back to the individual stylesheets for the content (via template: continue-root) -->
+<xsl:template match="/">
+	<!--	<xsl:message>root_document-uri:<xsl:value-of select="$root_uri" /></xsl:message>-->		
+	  	<xsl:choose>    		
+    	 	<xsl:when test="contains($format,'htmlpage')" >
+    	 		<xsl:call-template name="html"/>    
+    	 	</xsl:when>
+    	 	<xsl:when test="contains($format,'htmlsimple')" >
+    	 		<xsl:call-template name="htmlsimple"/>    
+    	 	</xsl:when>
+    	 	<xsl:otherwise>    	 		
+    	 		<xsl:call-template name="continue-root"/>    
+    	 	</xsl:otherwise>
+    	 </xsl:choose>
+</xsl:template>
+
+
+<xsl:template name="html">
+
+	<html xmlns="http://www.w3.org/1999/xhtml" >
+	<head>
+		<xsl:call-template name="html-head"></xsl:call-template>
+	   	<xsl:call-template name="callback-header"/> 
+	</head>
+	<body>
+		
+		<xsl:call-template name="page-header" />	
+	
+		<h1><xsl:value-of select="$title"/></h1>
+				
+		<xsl:call-template name="continue-root"/>
+		    
+	</body>
+	</html>
+</xsl:template>
+
+<!-- a html-envelope for a simple (noscript) view -->
+<xsl:template name="htmlsimple">
+	<html xmlns="http://www.w3.org/1999/xhtml" > 
+	<head>
+ 		<title><xsl:value-of select="$title"/></title>
+ 		<link href="{$base_dir}/style/cmds-ui.css" type="text/css" rel="stylesheet"></link>
+
+   		<!-- <xsl:call-template name="callback-header"/> -->   		 	
+	</head>
+	
+	<xsl:call-template name="page-header" />
+		
+	<body>
+		<!-- <h1><xsl:value-of select="$title"/></h1> -->		
+			<xsl:call-template name="continue-root"/>    
+	</body>
+	</html>
+</xsl:template>
+
+<xsl:template name="callback-header">
+
+</xsl:template>
+
+<!-- 
+<xsl:template name="continue-root">
+</xsl:template>
+ -->
+    
+<!--  generic templates -->
+<xsl:template name="attr-detail-div" >
+		<div class="detail">
+			<xsl:for-each select="@*" >
+				<div class="cmds-elem-prop"><span class="label"><xsl:value-of select="name()" />: </span>
+					<span class="value"><xsl:value-of select="." /></span></div>
+			</xsl:for-each>
+		</div>
+</xsl:template>
+
+<xsl:template name="format-field" >
+	<xsl:param name="elems" />
+  					<xsl:choose>
+  						 <xsl:when test="$elems/*" > 					
+			  					<xsl:apply-templates select="$elems" mode="format-xmlelem" >	
+			  					</xsl:apply-templates>		  					
+		  				</xsl:when>
+		  				<xsl:when test="count($elems) &gt; 1" >
+		  					<ul>
+			  					<xsl:for-each select="$elems" >		  					
+			  						<li><xsl:call-template name="format-value" /></li>
+			  					</xsl:for-each>
+		  					</ul>
+		  				</xsl:when>
+		  				<xsl:otherwise>
+		  					<xsl:call-template name="format-value">
+		  						<xsl:with-param name="value" select="$elems" />
+		  					</xsl:call-template>		  					
+		  				</xsl:otherwise>  			
+			  		</xsl:choose>
+					 
+</xsl:template>
+
+<xsl:template name="format-value" >
+<xsl:param name="value" select="."/>
+	<!-- cnt_value:<xsl:value-of select="count($value)" />  -->
+  					<xsl:choose>
+  						 <xsl:when test="starts-with($value[1], 'http:') " >
+								<a target="_blank" class="external" href="{$value}"><xsl:value-of select="$value"></xsl:value-of></a>
+						</xsl:when>
+						<xsl:otherwise>
+								<xsl:value-of select="$value" />
+						</xsl:otherwise>
+					</xsl:choose>
+</xsl:template>  				
+
+<!-- copied from mdinst2view.xsl
+	generic html-view for xml-elements  
+-->
+<xsl:template match="*" mode="format-xmlelem" >
+	
+	<xsl:if test="exists(.//text()) or @*" >
+		<xsl:variable name="has_text" >
+			<xsl:choose>
+				<xsl:when test="normalize-space(text()[1])='Unspecified'">unspecified</xsl:when>
+				<xsl:when test="not(normalize-space(string-join(text(),''))='')">text</xsl:when>				
+				<xsl:otherwise>empty</xsl:otherwise>
+			</xsl:choose>			
+		</xsl:variable>
+		<xsl:variable name="has_children" select="if(*) then 'has-children' else ''"  />
+			
+		<div class="cmds-xmlelem {$has_children} value-{$has_text}" >		
+				<span class="label"><xsl:value-of select="name()" />:</span>
+				<span class="value"><xsl:call-template name="format-value" > 
+										<xsl:with-param name="value" select="text()[.!='']" />
+									</xsl:call-template>
+				</span>
+			<xsl:apply-templates select="*" mode="format-xmlelem"/>
+			<xsl:if test="@*">
+				<div class="attributes">
+					<xsl:apply-templates select="@*" mode="format-attr"/>
+				</div>
+			</xsl:if>
+		</div>	
+	</xsl:if>
+</xsl:template>	
+
+<xsl:template match="@*" mode="format-attr">
+	<span class="label">@<xsl:value-of select="name()" />: </span><span class="value"><xsl:call-template name="format-value" /><!--<xsl:value-of select="." /> --></span>; 
+</xsl:template>	
+
+<xsl:template name="getName" >
+		<xsl:value-of select="(.//*[lower-case(name()) = $name_element])[1]" /> 
+</xsl:template>
+
+<xsl:template name="getContext" >
+<!--	<div class="is-part-of collections" ><xsl:value-of select=".//IsPartOf" /> </div>-->
+	<xsl:apply-templates select=".//IsPartOfList" />
+</xsl:template>
+
+	
+<xsl:template match="IsPartOfList" >
+	<div class="ispartof-list"><span class="label">in: </span>
+		<xsl:apply-templates select=".//IsPartOf" />
+	</div>
+</xsl:template>	
+
+<xsl:template match="IsPartOf" >
+	<a class="internal" href="{concat($default_prefix, my:encodePID(.))}"><xsl:value-of select="." /></a> >
+</xsl:template>	
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/cmd_functions.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/cmd_functions.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/cmd_functions.xsl	(revision 1516)
@@ -0,0 +1,316 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:my="myFunctions">
+
+<!-- 
+<purpose>generic functions for MDService2</purpose>
+<history>
+	<change on="2010-12-29" type="created" by="vr">extracted from cmd_commons.xsl</change>
+</history>
+
+-->
+<xsl:include href="params.xsl"/>
+
+<!-- <xsl:param name="mode" select="'html'" /> -->
+
+<xsl:param name="dict_file" select="'dict.xml'" />
+<xsl:variable name="dict" select="document($dict_file)" />
+<xsl:variable name="terms_setup" select="document($terms_setup_uri)" />
+<xsl:variable name="terms_flat" select="document($terms_flat_uri)" />
+
+
+<!-- params for include-processing 
+moved to params.xsl
+	<xsl:param name="components_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/'" />		
+	<xsl:param name="prefix_replace" select="'file:///C:/Users/master/3lingua/clarin/CMDI/_repo2/metadata/toolkit/components'" />
+-->
+
+<!--  should be obsoleted by model2matrix.xsl
+but it is not..
+-->
+<xsl:variable name="term_matrix" >
+		
+		<xsl:for-each select="//CMD_Element" >
+					<xsl:variable name="context" select="my:context(.)" >
+					</xsl:variable>
+			<Term  elem="{@name}" datcat="{@ConceptLink}" profile="{ancestor::profileDescription[1]/name}" 
+							parent="{ancestor::CMD_Component[1]/@name}"  context="{$context}" >
+								<xsl:copy-of select="." />
+			</Term>
+		</xsl:for-each>
+	
+</xsl:variable>
+<!-- 
+<xsl:template match="Term" mode="matrix" >
+		
+		<xsl:for-each select=".//Term" >
+			<xsl:variable name="context" select="my:context(.)" >
+					</xsl:variable>
+			<Term  elem="{@name}" datcat="{my:term2datcat(@name)}" profile="{ancestor::profileDescription[1]/name}" 
+							parent="{ancestor::Term[1]/@name}"  context="{$context}" >
+								<xsl:copy-of select="." />
+			</Term>
+		</xsl:for-each>
+	
+</xsl:template>
+
+ -->
+ 
+<xsl:function name="my:profilematrix" >
+    <xsl:param name="term"/>
+    
+    <xsl:variable name="profile" select="my:profile($term,true())" />
+    <Terms name="{$profile/name}"  id="{$profile/id}">
+    	<xsl:for-each select="$profile//CMD_Component|$profile//CMD_Element" >
+					<xsl:variable name="context" select="my:context(.)" />						
+					
+					<xsl:variable name="id"  >
+							<xsl:choose>
+								<xsl:when test="@ComponentId">
+									<xsl:value-of select="@ComponentId" />
+								</xsl:when>
+								<xsl:otherwise>
+									<xsl:value-of select="ancestor::CMD_Component[@ComponentId][1]/@ComponentId" /><xsl:text>#</xsl:text>
+									<xsl:for-each select="ancestor::CMD_Component[not(descendant-or-self::CMD_Component[@ComponentId])]" >
+									<xsl:value-of select="@name" />.</xsl:for-each><xsl:value-of select="@name" />
+								</xsl:otherwise>
+							</xsl:choose>							
+					</xsl:variable>
+			<Term  name="{@name}" datcat="{@ConceptLink}" id="{$id}" 
+							parent="{ancestor::CMD_Component[1]/@name}" context="{$context}" 
+							>
+								<!--  <xsl:copy-of select="." /> -->
+			</Term>
+		</xsl:for-each>
+	</Terms>
+    
+</xsl:function>
+
+<xsl:function name="my:profile" >
+    <xsl:param name="term"/>
+    <xsl:param name="resolve" /> <!--  true|false-->
+    
+    <!-- <xsl:message>cmdprofiles_uri: <xsl:value-of select="$cmdprofiles_uri" /></xsl:message>  -->
+    
+    <xsl:variable name="profile" select="doc($cmdprofiles_uri)//profileDescription[name=$term]" />
+    
+    <xsl:choose>
+      <xsl:when test="$resolve=true()">
+      		<xsl:apply-templates select="$profile" mode="include" />
+      </xsl:when>
+      <xsl:otherwise>
+      		<xsl:copy-of select="$profile" />
+      </xsl:otherwise>
+    </xsl:choose>
+    
+        
+</xsl:function>
+
+<!--
+<xsl:function name="my:term2datcat">
+    <xsl:param name="term"/>                              
+    <xsl:value-of select="$term_matrix/*[@elem=$term]/@datcat" />                     			
+</xsl:function>
+-->
+
+	<xsl:function name="my:dict">
+     <xsl:param name="key"/>                              
+     <xsl:value-of select="my:dict($key, $key)" />                     			
+   </xsl:function>
+   
+	<xsl:function name="my:dict">
+     <xsl:param name="key"/>                            
+     <xsl:param name="fallback"/>      
+     		<xsl:choose>
+  			<xsl:when test="$dict/list/item[@key=$key]" >
+  				<xsl:value-of select="$dict/list/item[@key=$key]" />
+  			</xsl:when>  			
+  			<xsl:when test="$dict/list/item[.=$key]" >
+  				<xsl:value-of select="$dict/list/item[.=$key]/@key" />
+  			</xsl:when>  			
+  			<xsl:otherwise>
+  			<xsl:value-of select="$fallback" />
+  			</xsl:otherwise>
+  		</xsl:choose>
+   </xsl:function>
+   		
+	<xsl:function name="my:extractID" >		
+		<xsl:param name="uri" />
+		
+		<xsl:choose>
+			<xsl:when test="contains($uri,$isocat_base_uri)">
+				<xsl:value-of select="substring-after($uri, $isocat_base_uri)" />
+			</xsl:when>
+			<xsl:when test="contains($uri,$components_id_prefix)">
+			<!--   <xsl:value-of select="substring-after($uri,$components_id_prefix)" /> -->
+				<xsl:value-of select="substring-after($uri, $components_id_prefix)" />
+			</xsl:when>
+			<xsl:otherwise><xsl:value-of select="$uri" /></xsl:otherwise>
+		</xsl:choose>		
+	</xsl:function>
+	
+	
+	<xsl:function name="my:shortURL" >
+		<xsl:param name="url" />
+		<!--   <xsl:value-of select="replace($url, 'http://www.isocat.org/datcat/','isocat:')" /> -->
+		 <xsl:variable name="matching_termset"  select="if($url!='') then $terms_setup/Termsets/Termset[@url_prefix][starts-with($url,@url_prefix)] else ()" />
+		 <!-- <xsl:variable name="matchinge_termset"  select="if($url!='') then if ($terms_setup/Termsets/Termset[@url_prefix][starts-with($url,@url_prefix)]) then $terms_setup/Termsets/Termset[@url_prefix][starts-with($url,@url_prefix)][1] 
+		 				else if $terms_setup/Termsets/Termset[@url][starts-with($url,@url)] then $terms_setup/Termsets/Termset[@url][starts-with($url,@url)][1] else ()" /> -->  
+		 <xsl:message>shortURL: <xsl:value-of select="$matching_termset/@url_prefix" />:: <xsl:value-of select="$url" />
+		</xsl:message>  		
+		<xsl:value-of select="if ($matching_termset/@url_prefix and $matching_termset/@url_prefix!='' and $url!='') then replace($url, $matching_termset[1]/@url_prefix, concat(string-join($matching_termset/@id,','),':')) else $url" />		
+	</xsl:function>	
+	
+	<!--  rewrite specific URLs (linking to target services) to redirect them locally (via MDService)
+	should work for: dcif:dataCategory@pid, pcompone
+	-->
+	<xsl:function name="my:rewriteURL" >
+		<xsl:param name="url" />	
+		<xsl:choose>
+				<xsl:when test="contains($url,$isocat_base_uri)">
+						<xsl:value-of select="replace($url, $isocat_uri_match, $isocat_uri_replace)" />
+				</xsl:when>	
+				<xsl:otherwise><xsl:value-of select="concat($detail_complist_prefix, my:extractID($url))" /></xsl:otherwise>
+			</xsl:choose>		
+	</xsl:function>	
+		
+		
+	<!-- shall be usable to form consistently all urls within xsl 
+	started from:   
+	{$base_dir}/values/htmllist/?q={@path} -->
+	<xsl:function name="my:formURL" >
+		<xsl:param name="action" />
+		<xsl:param name="format" />
+		<xsl:param name="q" />
+		
+		<xsl:choose>
+			<xsl:when test="$action=''">
+				<xsl:value-of select="concat($base_dir, '/?q=', $q, '&amp;repository=', $repository_name)" />
+			</xsl:when>
+			<xsl:when test="$q=''">
+				<xsl:value-of select="concat($base_dir, '/',$action, '/?format=', $format)" />
+			</xsl:when>			
+			<xsl:otherwise>
+				<xsl:value-of select="concat($base_dir, '/',$action, '/?format=', $format, '&amp;', $q, '&amp;repository=', $repository_name)" />
+			</xsl:otherwise>
+		</xsl:choose>
+		
+	</xsl:function>
+	
+		<!--  previously known as comppath -->
+	<xsl:function name="my:context" >
+		<xsl:param name="child" />
+		<xsl:variable name="collect" >
+				<xsl:for-each select="$child/ancestor::CMD_Component|$child/ancestor::Term" >
+						<xsl:value-of select="@name" />.</xsl:for-each><xsl:value-of select="$child/@name" />
+		</xsl:variable>
+		<xsl:value-of select="$collect" />	
+	</xsl:function>	
+
+	<xsl:function name="my:encodePID" >
+		<xsl:param name="pid" />				
+		<xsl:value-of select="encode-for-uri(replace(replace($pid,'/','%2F'),'\.','%2E'))" />	
+	</xsl:function>	
+   
+<!-- 
+<xsl:function name="my:numberFormat">
+<xsl:param name="unit" />
+	<xsl:choose>
+		<xsl:when test="$unit='count' or $unit='count-distinct'" ><xsl:value-of select="$format_count" /></xsl:when>
+		<xsl:when test="$unit='kg'" ><xsl:value-of select="$format_kg" /></xsl:when>
+		<xsl:when test="$unit='t'" ><xsl:value-of select="$format_t" /></xsl:when>
+		<xsl:when test="$unit='m3'" ><xsl:value-of select="$format_m3" /></xsl:when>
+		<xsl:when test="$unit='per' or $unit='percent'" ><xsl:value-of select="$format_per" /></xsl:when>
+		<xsl:when test="$unit='sum'" ><xsl:value-of select="$format_kg" /></xsl:when>
+		<xsl:otherwise><xsl:value-of select="$format_default" /></xsl:otherwise>		
+	</xsl:choose>
+</xsl:function>
+-->
+
+<xsl:function name="my:index2xpath">
+<xsl:param name="p_ix" />
+
+	<xsl:variable name="ix_string" select="replace($p_ix,'_',' ')" />
+
+	<xsl:variable name="ix_resolved" >
+		<xsl:choose>
+				<xsl:when test="contains($ix_string,':')">
+					<xsl:variable name="prefix" select="substring-before($ix_string,':')" />				
+					<xsl:variable name="termset" select="$terms_setup/Termsets/Termset[@id=$prefix]" />				
+					
+					<xsl:message>index2xpath.matching_termset:<xsl:copy-of select="$termset"/>
+									ix_string:<xsl:value-of select="$ix_string"/>
+					</xsl:message>
+					<xsl:choose>
+					<!-- magic happening here  -->
+						<xsl:when test="$termset[@type='dcr' or @type='rr']">
+							<xsl:variable name="expanded_context" select="$terms_flat//context[@path=$ix_string]"></xsl:variable>
+								<xsl:variable name="expanded_query" >
+									<xsl:text>(</xsl:text>
+									<xsl:for-each select="distinct-values($expanded_context//context[@elem]/@path)">
+										<xsl:variable name="prefix" select="substring-before(.,':')" />
+										<xsl:variable name="termset" select="$terms_setup/Termsets/Termset[@id=$prefix]" />									
+										<xsl:value-of select="concat($termset/@name,'//',substring-after(.,':'))" />
+										<xsl:if test="position()!=last()"><xsl:text>|</xsl:text></xsl:if>
+									</xsl:for-each>
+									<xsl:text>)</xsl:text>
+								</xsl:variable>
+								<xsl:message>expanded-context:<xsl:value-of select="$expanded_query" /></xsl:message>
+							<xsl:value-of select="$expanded_query" />
+						</xsl:when>
+						<xsl:when test="not($termset/@name)"> 
+							<!-- when no matching termset, simply  use the original prefix  -->
+							<xsl:value-of select="concat($prefix,'//',substring-after($ix_string,':'))" />
+						</xsl:when>
+						<xsl:otherwise>
+							<xsl:value-of select="concat($termset/@name,'//',substring-after($ix_string,':'))" />	
+						</xsl:otherwise>
+					</xsl:choose>
+					 
+				</xsl:when>
+				<xsl:otherwise><xsl:value-of select="$ix_string" />
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:variable>
+	<xsl:value-of select="translate($ix_resolved, '.', '/')" ></xsl:value-of>	
+</xsl:function>
+
+<!--  revert from xpath to cmdIndex
+	not inverted to my:index2xpath (yet): 
+	only handles simple xpaths (not union expansions)
+  -->
+<xsl:function name="my:xpath2index">
+<xsl:param name="p_xpath" />
+
+	<xsl:variable name="ix_resolved" >
+		<!-- get rid off leading slashes -->
+		<xsl:variable name="stripped" select="if (starts-with($p_xpath,'//')) then substring-after($p_xpath, '//') else $p_xpath"  />
+		<xsl:choose>
+				<xsl:when test="contains($stripped,'//')">
+					<xsl:variable name="prefix" select="substring-before($stripped,'//')" />				
+					<xsl:variable name="termset" select="$terms_setup/Termsets/Termset[@name=$prefix]" />				
+					
+					<xsl:message>xpath2index.matching_termset:<xsl:copy-of select="$termset/@id"/>									
+					</xsl:message>
+					<xsl:choose>
+						<!-- cannot really happen: 
+							<xsl:when test="$termset[@type='dcr' or @type='rr']">
+							-->
+						<xsl:when test="not($termset/@id)"> 
+							<!-- when no matching termset, simply  use the original prefix  -->
+							<xsl:value-of select="concat($prefix,':',substring-after($stripped,'//'))" />
+						</xsl:when>
+						<xsl:otherwise>
+							<xsl:value-of select="concat($termset/@id,':',substring-after($stripped,'//'))" />	
+						</xsl:otherwise>
+					</xsl:choose>					 
+				</xsl:when>
+				<xsl:otherwise><xsl:value-of select="$stripped" />
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:variable>
+	<xsl:value-of select="translate($ix_resolved, '/', '.')" ></xsl:value-of>	
+</xsl:function>
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/cmd_includes.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/cmd_includes.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/cmd_includes.xsl	(revision 1516)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:my="myFunctions"
+ exclude-result-prefixes="my">
+
+<!-- 
+<purpose>CMD-components inclusion mechanism</purpose>
+<history>
+	<change on="2011-09-01" type="created" by="vr">extracted from cmd_commons.xsl</change>
+</history>
+
+-->
+
+    <!-- resolve includes -->
+    <xsl:template match="@*|node()" mode="include">
+        <xsl:copy>
+            <xsl:apply-templates select="@*|node()" mode="include"/>
+        </xsl:copy>
+    </xsl:template>
+
+    <xsl:template match="CMD_Component[@ComponentId]" mode="include">
+    
+    		<!-- <xsl:param name="resolved_path" select="if (matches(@filename, $prefix)) then $prefix_replace else './'" /> -->
+
+    		<!-- <xsl:variable name="resolved_fn" select="if (matches(@filename, $prefix)) then replace(@filename, $prefix, $prefix_replace) else if (document-uri(/)) then @filename else concat( $root_uri, '/', @filename)" /> -->
+    		<!--  <xsl:variable name="resolved_fn" select="concat($components_uri, @ComponentId)" />  -->
+    		<xsl:variable name="resolved_fn" select="concat($components_uri, my:extractID(@ComponentId))" />   
+    	    <xsl:variable name="compid" select="@ComponentId" /> 
+	        
+        <!-- <xsl:variable name="resolved_fn" select="replace(@filename, 'http://www.clarin.eu/cmd/components', 'file:///C:/Users/master/3lingua/clarin/CMDI/_repo2/metadata/toolkit/components')" /> -->
+        
+        <xsl:message>resolved_fn:<xsl:value-of select="$resolved_fn" /></xsl:message>
+        <xsl:message>document-uri:<xsl:value-of select="document-uri(/)" /></xsl:message>
+        <!-- some of the outer CMD_Component attributes can overwrite the inner CMD_Component attributes -->
+        
+        <xsl:variable name="outer-attr" select="@CardinalityMin|@CardinalityMax"/>
+        <xsl:for-each select="document($resolved_fn)/CMD_ComponentSpec/CMD_Component">
+            <xsl:variable name="inner-attr" select="@*"/>
+            <xsl:copy>
+            		<!-- <xsl:attribute name="filename" select="replace($resolved_fn,$prefix_replace,'')" /> -->
+            	
+           		<xsl:attribute name="ComponentId" select="$compid" />
+                <xsl:apply-templates select="$outer-attr" mode="include"/>
+                <xsl:apply-templates select="$inner-attr[not(node-name(.) = $outer-attr/node-name(.))]" mode="include"/>
+                <xsl:apply-templates select="node()" mode="include">
+        <!--        	<xsl:with-param name="resolved_path" select="$resolved_path" /> -->
+                </xsl:apply-templates>
+            </xsl:copy>
+        </xsl:for-each>
+    </xsl:template>
+    
+
+    <xsl:template match="componentDescription[id] | profileDescription[id]" mode="include">
+    
+    	<!--  <xsl:variable name="resolved_uri" select="concat($root_uri, '/', id)" />-->
+    	<xsl:variable name="resolved_uri" select="concat($cmdprofiles_uri , '/', my:extractID(id))" /> 
+    	
+    <!--    <xsl:message>resolved_uri:<xsl:value-of select="$resolved_uri" /></xsl:message>
+        <xsl:message>document-uri:<xsl:value-of select="document-uri(/)" /></xsl:message> -->
+                
+        <xsl:copy>        	
+        	<xsl:apply-templates mode="include" />
+        	<xsl:apply-templates select="document($resolved_uri)" mode="include" />
+        	<!-- <xsl:copy-of select="document($resolved_uri)" /> -->
+       		<!-- <xsl:copy-of select="document(id, $root_uri)" />  -->
+        </xsl:copy>
+    </xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/collection2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/collection2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/collection2view.xsl	(revision 1516)
@@ -0,0 +1,246 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="myFunctions">
+<!-- 
+<purpose> convert fsls to html-list-snippet</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-06-22" type="created" by="vr">based on fsls2view.xsl</change>		
+</history>
+<sample> result
+	<ul id="browser" class="filetree treeview-famfamfam treeview">
+		<li><span class="folder">Folder 1</span>
+			<ul>
+				<li><span class="folder">Item 1.1</span>
+					<ul>
+</sample>
+-->
+
+<xsl:import href="cmd_commons.xsl" />
+
+<!-- <xsl:output method="xml" />  -->
+
+<xsl:param name="max_depth">0</xsl:param>
+<xsl:param name="sort">name</xsl:param> <!-- s=size|n=name|t=time -->
+<xsl:param name="style_dir" />
+<xsl:param name="basedir" >../..</xsl:param>
+<xsl:param name="format" />
+
+<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.' />
+
+<xsl:param name="title" >Collections Index: <xsl:value-of select="/Collections/@root"/></xsl:param>
+
+<xsl:template name="callback-header" >
+	<style type="text/css">
+		#collectionstree { margin-left: 10px; border: 1px solid #9999aa; border-collapse: collapse;}
+		.number { text-align: right; }
+		td { border-bottom: 1px solid #9999aa; padding: 1px 4px;}
+		.treecol {padding-left: 1.5em;}
+		table thead {background: #ccccff; font-size:0.9em; }
+		table thead tr th { border:1px solid #9999aa; font-weight:normal; text-align:left; padding: 1px 4px;}
+}  
+	</style> 
+	<script type="text/javascript" >
+		$(function(){
+			$("#collectionstree").treeTable();
+		});
+	</script>
+</xsl:template>
+
+<xsl:template name="continue-root" >
+<xsl:choose> 			   	 	
+	   	<xsl:when test="$format='collection2htmlpage'" >    	 					      
+			    <div id="collections">
+					<table id="collectionstree" >
+						<thead>
+						<tr><th class="treecol">Name</th><th>Count (visible) Subcoll</th><th>Count Resources</th><th>Handle</th></tr>
+						</thead>					
+						<xsl:apply-templates select="*/c" mode="detail">
+							<xsl:sort order="ascending" select="@n" />							
+						</xsl:apply-templates>
+					</table>
+				</div>	    	 				    		
+	  	 	</xsl:when>
+     	<xsl:otherwise>
+    	 		<!-- <div>
+    	 		 -->
+    	 		
+					 <ul class="treeview">
+						<xsl:apply-templates select="*" >
+							<xsl:sort order="ascending" select="@n" />							
+					</xsl:apply-templates>			
+					</ul>
+				<!-- </div>
+				 -->	
+	   	 </xsl:otherwise>
+   	</xsl:choose>
+	
+</xsl:template>
+<!-- treeview -->
+<xsl:template match="c" >
+	<xsl:variable name="lv" select="count(ancestor::c)" />
+	<xsl:variable name="root" select="/Collections/@root" />
+    	 		
+	<xsl:choose>
+	<xsl:when test="($lv&gt;0) or $root='root'">	
+	<li>
+		<xsl:attribute name="class">
+						<xsl:choose>
+					<xsl:when test="@cnt_subcolls=0">jstree-leaf</xsl:when>
+					<xsl:otherwise>jstree-closed</xsl:otherwise>
+				</xsl:choose>					
+		</xsl:attribute>
+  		<xsl:attribute name="handle">
+  		<xsl:value-of select="@handle"/>		
+		</xsl:attribute>
+			 <span class="cmd cmd_load"> </span>
+	  
+	 <!-- 
+	 <label class="showselection" count="0" some_selection="0" >o</label>
+	 <input type="checkbox" class="selection" child="undefined" />
+	 <span class="folder" >
+     	<xsl:attribute name="handle">
+    	<xsl:value-of select="@handle"/>
+  		</xsl:attribute>
+  		<a href="{my:formURL('record','htmldetail', @handle )}" ><xsl:value-of select="@n" /></a></span>  		
+     <span class="note"> |<xsl:value-of select="@cnt" />|</span><span class="cmd cmd_detail"> </span> 
+	  -->    
+     <a href="{my:formURL('record','htmldetail', @handle )}" ><xsl:value-of select="@n" /></a>
+
+		<xsl:if test="c and ($lv&lt;$max_depth or $max_depth=0)">
+			<ul>
+				<xsl:choose>
+					<xsl:when test="$sort='s'">				
+						<xsl:apply-templates select="c" >
+								<xsl:sort order="descending" select="@cnt" data-type="number" />
+						</xsl:apply-templates>		
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:apply-templates select="c" >
+								<xsl:sort order="ascending" select="@n" />
+						</xsl:apply-templates>		
+					</xsl:otherwise>
+				</xsl:choose>					
+			</ul>
+		
+		</xsl:if>
+	</li>
+	</xsl:when>
+	<xsl:otherwise>
+			<xsl:if test="c and ($lv&lt;$max_depth or $max_depth=0)">
+			
+				<xsl:choose>
+					<xsl:when test="$sort='s'">				
+						<xsl:apply-templates select="c" >
+								<xsl:sort order="descending" select="@cnt" data-type="number" />
+						</xsl:apply-templates>		
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:apply-templates select="c" >
+								<xsl:sort order="ascending" select="@n" />
+						</xsl:apply-templates>		
+					</xsl:otherwise>
+				</xsl:choose>					
+		
+		</xsl:if>
+	
+	</xsl:otherwise>
+	</xsl:choose>
+</xsl:template>
+<!--  old version treeview
+
+<xsl:template match="c" >
+	<xsl:variable name="lv" select="count(ancestor::c)" />
+	
+	<li>
+		<xsl:attribute name="class">
+						<xsl:choose>
+					<xsl:when test="@cnt_subcolls=0">				
+						jstree-leaf	
+					</xsl:when>
+					<xsl:otherwise>
+						jstree-closed
+					</xsl:otherwise>
+				</xsl:choose>					
+		</xsl:attribute>
+  		<xsl:attribute name="handle">
+  		<xsl:value-of select="@handle"/>		
+		</xsl:attribute>
+			 <span class="cmd cmd_load"> </span>
+	 <label class="showselection" count="0" some_selection="0" >o</label> 
+	 <input type="checkbox" class="selection" child="undefined" />    
+     <span class="folder" >
+     	<xsl:attribute name="handle">
+    	<xsl:value-of select="@handle"/>
+  		</xsl:attribute>
+  		<a href="{my:formURL('record','htmldetail', @handle )}" ><xsl:value-of select="@n" /></a></span>  		
+     <span class="note"> |<xsl:value-of select="@cnt" />|</span><span class="cmd cmd_detail"> </span> 
+		
+		<xsl:if test="c and ($lv&lt;$max_depth or $max_depth=0)">
+			<ul>
+				<xsl:choose>
+					<xsl:when test="$sort='s'">				
+						<xsl:apply-templates select="c" >
+								<xsl:sort order="descending" select="@cnt" data-type="number" />
+						</xsl:apply-templates>		
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:apply-templates select="c" >
+								<xsl:sort order="ascending" select="@n" />
+						</xsl:apply-templates>		
+					</xsl:otherwise>
+				</xsl:choose>					
+		</ul>
+		
+	</xsl:if>
+	</li>
+</xsl:template>
+ -->
+ 
+<xsl:template match="c" mode="detail" >
+<xsl:param name="parentid" select="'c-'" />
+
+<xsl:variable name="lv" select="count(ancestor::c)" />
+
+	<xsl:variable name="cid" >
+		<xsl:choose>
+		<xsl:when test="$lv=0"><xsl:value-of select="concat($parentid,position())" /></xsl:when>
+		<xsl:otherwise><xsl:value-of select="concat($parentid,'-', position())" /></xsl:otherwise>
+		</xsl:choose> 
+	</xsl:variable>
+	
+	<tr id="{$cid}" >
+	  <xsl:if test="$lv!=0" >
+	  	<xsl:attribute name="class" select="concat('child-of-',$parentid)" />
+	  </xsl:if>
+		<td class="treecol" ><xsl:value-of select="@n" /></td>		
+		<td class="number"><xsl:value-of select="count(.//c)" /></td>
+		<td class="number"><xsl:value-of select="@cnt" /></td>
+		<td><xsl:value-of select="@handle" /></td>			
+     </tr> 
+		<xsl:if test="c and ($lv&lt;$max_depth or $max_depth=0)">
+			
+				<xsl:choose>
+					<xsl:when test="$sort='s'">				
+						<xsl:apply-templates select="c" mode="detail">
+							<xsl:with-param name="parentid" select="$cid" />			
+								<xsl:sort order="descending" select="@cnt" data-type="number" />
+						</xsl:apply-templates>		
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:apply-templates select="c" mode="detail">
+							<xsl:with-param name="parentid" select="$cid" />
+								<xsl:sort order="ascending" select="@n" />
+						</xsl:apply-templates>		
+					</xsl:otherwise>
+				</xsl:choose>					
+					
+		</xsl:if>
+	
+</xsl:template>
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/comp2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/comp2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/comp2view.xsl	(revision 1516)
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- 
+    $Rev: 74 $ 
+    $Date: 2010-03-23 $ 
+    
+    created based on comp2schema.xsl vronk
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
+    xmlns:my="myFunctions">
+    <xsl:strip-space elements="*"/>
+    <xsl:include href="cmd_commons.xsl"/>
+
+    <!--  <xsl:output method="xml" encoding="UTF-8" indent="yes"/>  -->
+		
+	<xsl:param name="title" 
+		select="concat('Component view: ', if(/CMD_ComponentSpec/Header/Name/text()) then /CMD_ComponentSpec/Header/Name/text() else /CMD_ComponentSpec/CMD_Component[1]/@name)" />				
+	
+    <!--  includes-mode
+    	  and params  
+    		moved to cmd_commons.xsl -->
+    
+    <!-- main -->
+    <!-- <xsl:template match="/"> -->
+    <xsl:template name="continue-root"> 
+        <!-- Resolve all includes -->
+        <xsl:variable name="tree">
+            <xsl:apply-templates mode="include"/>
+        </xsl:variable>
+
+	        <!-- Process the complete tree -->        	        
+	        
+		<xsl:choose>
+    	 	<xsl:when test="$format='comp2htmldetail'" >
+    	 			<div id="compviewdetail">
+	    				<xsl:apply-templates select="$tree/*"/>
+	    				</div>
+    	 	</xsl:when>
+    	 	<xsl:when test="$format='comp2htmllist'" >    	 		
+    	 		<div id="compviewlist">
+    	 			<xsl:apply-templates select="$tree/*" mode="list"/>
+    	 		</div>
+    	 	</xsl:when>
+    	 	<xsl:otherwise>
+    	 			<div id="compviewdefault">
+	    	 			<xsl:apply-templates select="$tree/*" />
+	    	 		</div>
+    	 	</xsl:otherwise>
+    	 </xsl:choose>
+
+
+    </xsl:template>
+    
+
+    <!-- generate actual HTML(?)-view -->
+    <xsl:template match="/CMD_ComponentSpec">
+							
+				<div class="comp_detail">
+					<ul id="starttree" class="treeview">
+					<xsl:apply-templates />
+					</ul>
+				</div>				
+	</xsl:template>
+		
+		
+	<xsl:template match="Header">
+		<div class="note">
+			<xsl:apply-templates />
+		</div>
+	</xsl:template>
+				
+    <!--  generic -->
+    <xsl:template match="*">
+		<div class="elem"><span class="label"><xsl:value-of select="name()" />:</span>
+		<span class="value" ><xsl:value-of select="text()" /></span></div>		
+	</xsl:template>
+	
+	
+    <xsl:template match="CMD_Component">
+		<li>
+			<div class="cmdcomp"><h2><span class="cmdcomp_name" ><xsl:value-of select="@name" /></span>
+				<span  class="sub" ><xsl:value-of select="@filename" /><xsl:text> </xsl:text><xsl:apply-templates select="@ConceptLink" />
+				   	<xsl:if test="@CardinalityMin | @CardinalityMax" >
+						<span><xsl:value-of select="concat('{',@CardinalityMin, '..', @CardinalityMax,'}')" /></span>			
+					</xsl:if>		
+				</span>				
+			   	<xsl:if test="number(@CardinalityMax) &gt; 1 or @CardinalityMax='unbounded'" >
+					<span class="cmd cmd_add"><xsl:text> </xsl:text></span>			
+				</xsl:if>	
+			</h2>			
+			<xsl:apply-templates select="AttributeList"/> 				
+		 </div>
+     
+          <!--<xsl:apply-templates select="./AttributeList"/>	                
+          <xsl:apply-templates select="./CMD_Element"/> -->
+          <!-- process all components at one level deeper (recursive call) -->
+          <!-- <xsl:apply-templates select="./CMD_Component"/> -->          
+         
+				<ul>
+          <xsl:apply-templates select="*[not(name()='AttributeList')]"/> 
+         </ul>
+
+			<!-- </div>		 -->
+		</li>
+	</xsl:template>
+		
+	<xsl:template match="CMD_Element">
+	<li>
+		<div class="cmdelem"><span class="cmdelem_name"><xsl:value-of select="@name" /></span>
+		<span  class="sub" ><xsl:apply-templates select="@ConceptLink" />
+			<span>[<xsl:value-of select="concat('{',@CardinalityMin, '..', @CardinalityMax,'}')" /></span>
+		</span>
+		<!--<br/>		
+		  <input type="text" id="q_{@name}" value="" name="q_{@name}" /> 
+		<xsl:if test="number(@CardinalityMax) &gt; 1 or @CardinalityMax='unbounded'" >
+			<span class="cmd cmd_add"><xsl:text> </xsl:text></span>			
+		</xsl:if>		
+			-->
+			
+			<span><xsl:call-template name="valuescheme" /></span>		
+			<xsl:apply-templates select="AttributeList" />
+		</div>	
+	</li>
+	</xsl:template>
+	
+	<xsl:template name="valuescheme" >			
+		<xsl:if test="ValueScheme | @ValueScheme | Type" >
+			<span class="valuescheme">		
+				[<xsl:if test="@ValueScheme"><xsl:value-of select="concat('xs:',@ValueScheme)"/></xsl:if>
+				 <xsl:if test="Type"><xsl:value-of select="concat('xs:',Type)"/></xsl:if>
+				  <xsl:for-each select="ValueScheme/enumeration/item[position() &lt; $display_values_limit]" >
+					<span class="elem_value"><xsl:value-of select="." /></span>, </xsl:for-each>
+					<xsl:if test="count(ValueScheme/enumeration/item) &gt; $display_values_limit" >
+					...|<xsl:value-of select="count(.//item)"/> / <xsl:value-of select="string-length(ValueScheme)"/>|
+					</xsl:if>
+				]
+			
+			</span>
+		</xsl:if>	
+	</xsl:template>
+	
+	<xsl:template match="@ConceptLink">
+		<span class="conceptlink">[<a href="{my:rewriteURL(.)}" ><xsl:value-of select="my:shortURL(.)" /></a>]</span>				
+	</xsl:template>
+
+	<xsl:template match="@ComponentId">
+		<span class="componentid"><xsl:value-of select="." /></span>				
+	</xsl:template>
+
+	<xsl:template match="AttributeList">
+		<div class="attributes">
+				<xsl:apply-templates />
+		</div>				
+	</xsl:template>
+	
+	<xsl:template match="Attribute">
+		<span class="attribute">@<xsl:value-of select="Name"/>
+			<span><xsl:call-template name="valuescheme" /></span>		
+		</span>				
+	</xsl:template>
+
+
+
+ <!--  LIST  --> 
+ 
+ <xsl:template match="/CMD_ComponentSpec" mode="list">
+			<xsl:apply-templates select="Header" mode="list"/> 
+		<!--   srcfile:<xsl:value-of select="$src_file" /> -->
+			
+				<ul id="starttree" class="treeview">
+					<xsl:apply-templates select="CMD_Component" mode="list">
+					</xsl:apply-templates> 
+				</ul>				
+	</xsl:template>
+			
+	<xsl:template match="Header" mode="list">
+		<div class="note">
+			<xsl:apply-templates />
+		</div>
+	</xsl:template>
+
+  <xsl:template match="CMD_Component" mode="list">
+  		<xsl:variable name="detail_uri" select="if(@ComponentId) then concat($detail_comp_prefix, my:extractID(@ComponentId)) else concat($detail_profile_prefix, my:extractID(parent::CMD_ComponentSpec/Header/ID))" />
+		<li><a href="{$detail_uri}" ><xsl:value-of select="@name" /></a>
+			<span class="data comppath" ><xsl:value-of select="my:context(.)" /></span>
+			
+		<span class="cmd cmd_filter"><xsl:text> </xsl:text></span><span class="cmd cmd_detail" ><xsl:text> </xsl:text></span>
+		<!--
+		<div class="cmdcomp"><h2><xsl:value-of select="@name" />
+		<span  class="sub" ><xsl:value-of select="@filename" /><xsl:text> </xsl:text><xsl:apply-templates select="@ConceptLink" />
+		</span>
+		</h2>			-->
+		<ul>
+    	<xsl:apply-templates select="./*" mode="list"/> 
+    </ul>
+    </li>
+
+	</xsl:template>
+			
+	<xsl:template match="CMD_Element" mode="list">
+			<li><xsl:value-of select="@name" />
+				<span class="data comppath" ><xsl:value-of select="my:context(.)" /></span>
+				<span class="cmd cmd_filter"><xsl:text> </xsl:text></span><span class="cmd cmd_detail" ><xsl:text> </xsl:text></span>
+			</li>
+			
+		<!--
+		<span  class="sub" ><xsl:apply-templates select="@ConceptLink" /></span></h4>		
+			<span>[<xsl:value-of select="concat('{',@CardinalityMin, '..', @CardinalityMax,'}')" /></span>
+			<span><xsl:call-template name="valuescheme" /></span>		
+		</div>		 
+		-->
+	</xsl:template>
+	
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/complist2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/complist2terms.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/complist2terms.xsl	(revision 1516)
@@ -0,0 +1,240 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:my="myFunctions"
+  xmlns:dcif="http://www.isocat.org/ns/dcif"   
+>
+<!-- 
+<purpose> generate lists for Terms (CMDI-Elements, CMDI-components, Datcats)
+ based on the Components-list (provided by CompReg).
+		strategy:  regard CMD_Component, CMd_Element, ConceptLink</purpose>
+<params>
+<param name="isocat_file">the DCIF-Metadata-Profile</param>
+</params>
+<history>
+	<change on="2010-07-10" type="created" by="vr">from complist2stats.xsl</change>	
+</history>
+-->
+<xsl:include href="cmd_commons.xsl"/>
+    
+<xsl:param name="isocat_file" select="'../DCR/isocat_profile_5_dcif.xml'" />
+
+<xsl:param name="title" select="'Terms'" />
+
+<xsl:variable name="isocat" select="document($isocat_file)" />
+
+<xsl:variable name="concepts_nolang" 
+	select="//@ConceptLink[not(starts-with(.,'http://cdb.iso.org/lg/'))]" />
+
+
+
+<xsl:template name="continue-root">
+		<!--  <ul class="treeview"> -->
+		<xsl:call-template name="list-terms" />
+		<!--   </ul> -->
+</xsl:template>			
+
+<xsl:template name="summary-overall">
+		<table>
+		<tbody>
+			<tr><td>profileDescription</td><td align="right"><xsl:value-of select="count(//profileDescription)"/></td></tr>			
+			<tr><td>componentDescription</td><td align="right"><xsl:value-of select="count(//componentDescription)"/></td></tr>			
+			<tr><td>CMD_ComponentSpec</td><td align="right"><xsl:value-of select="count(//CMD_ComponentSpec)"/></td></tr>
+			<tr><td>profiles</td><td align="right"><xsl:value-of select="count(//CMD_ComponentSpec[@isProfile='true'])"/></td></tr>
+			<tr><td>CMD_Component</td><td align="right"><xsl:value-of select="count(//CMD_Component)"/></td></tr>			
+			<tr><td>distinct CMD_Component</td><td align="right"><xsl:value-of select="count(distinct-values(//CMD_Component/@name))"/></td></tr>			
+			<tr><td>CMD_Element</td><td align="right"><xsl:value-of select="count(//CMD_Element)"/></td></tr>						
+			<tr><td>distinct CMD_Element</td><td align="right"><xsl:value-of select="count(distinct-values(//CMD_Element/@name))"/></td></tr>						
+			<tr><td>CMD_Elements without ConceptLink</td><td align="right"><xsl:value-of select="count(distinct-values(//CMD_Element[@ConceptLink='' or not(@ConceptLink)]/@name))"/></td></tr>						
+			<tr><td>conceptlinks</td><td align="right"><xsl:value-of select="count(//@ConceptLink)"/></td></tr>						
+			<tr><td>conceptlinks (without lang-codes ISO639)</td><td align="right"><xsl:value-of select="count($concepts_nolang)"/></td></tr>						
+			<tr><td>distinct conceptlinks (without lang-codes)</td><td align="right"><xsl:value-of select="count(distinct-values($concepts_nolang))"/></td></tr>						
+			<tr><td>distinct CMD_Elem-conceptlinks</td><td align="right"><xsl:value-of select="count(distinct-values($concepts_nolang[parent::CMD_Element]))"/></td></tr>						
+			<tr><td>datcats in isocat-profile:Metadata#5</td><td align="right"><xsl:value-of select="count($isocat//dcif:dataCategory)"/></td></tr>						
+			
+			<tr><td>elem matrix</td><td align="right"><xsl:value-of select="count($term_matrix/Term)"/></td></tr>						
+			<tr><td>distinct profile-elem</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@profile,@elem)))"/></td></tr>
+			<tr><td>distinct profile-datcat</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@profile,@datcat)))"/></td></tr>
+			<tr><td>distinct parent-elem</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@parent,@elem)))"/></td></tr>
+			<tr><td>distinct profile-parent-elem</td><td align="right"><xsl:value-of select="count(distinct-values($term_matrix/Term/concat(@profile,@parent,@elem)))"/></td></tr>
+			
+		</tbody>
+</table>
+	
+</xsl:template>			
+
+
+<xsl:template name="summary-profiles">
+	
+	<table>
+		<caption>Profiles |<xsl:value-of select="count(//profileDescription)" />|</caption>
+		<thead><tr><th>name</th><th>|elem|</th><th>|distinct elems|</th><th>|distinct @ConceptLinks|</th></tr></thead>
+		<tbody>		
+				<xsl:for-each select="//profileDescription" >
+					<xsl:sort select="name" order="ascending"/>					
+						<tr><td><xsl:value-of select="name"/></td>									
+							<td align="right"><xsl:value-of select="count(.//CMD_Element)"/></td>
+							<td align="right"><xsl:value-of select="count(distinct-values(.//CMD_Element/@name))"/></td>
+							<td align="right"><xsl:value-of select="count(distinct-values(.//CMD_Element/@ConceptLink))"/></td>
+			
+						</tr>
+					
+				</xsl:for-each>
+		</tbody>
+	</table>
+
+</xsl:template>
+	
+<xsl:template name="list-terms">
+	
+	<div id="term-list" >
+		<span class="box_heading" >Elements</span> <span class="note">|<xsl:value-of select="count($term_matrix/Term)" />/<xsl:value-of select="count(distinct-values($term_matrix/Term/@elem))" />|</span>
+		
+			<ul>
+				<xsl:for-each-group select="$term_matrix/Term" group-by="lower-case(@elem)">
+					<xsl:sort select="lower-case(@elem)" order="ascending"/>					
+						<li><span class="term_detail_caller" ><a href="{@elem}" ><xsl:value-of select="@elem"/></a></span>
+							
+									<span class="note" >
+										|<xsl:value-of select="count(distinct-values(current-group()/@datcat))"/>/
+											<xsl:value-of select="count(distinct-values(current-group()/@profile))"/>/
+											<xsl:value-of select="count(current-group())"/>|
+											<!-- <xsl:value-of select="count(distinct-values(current-group()//node()[not(name()='CMD_Element')]/@ConceptLink))"/> -->
+									</span>
+									<span class="cmd cmd_filter"><xsl:text> </xsl:text></span><span class="cmd cmd_detail" ><xsl:text> </xsl:text></span><span class="cmd cmd_columns" ><xsl:text> </xsl:text></span>
+								<div class="term_detail" >
+									<div class="box_heading"><xsl:value-of select="@elem"/></div>
+										<ul>
+											<xsl:for-each-group select="current-group()" group-by="@datcat">
+												<li><xsl:value-of select="my:shortURL(@datcat)"/>
+													<ul>
+														<xsl:for-each-group select="current-group()" group-by="@profile" >
+															<li><xsl:value-of select="@profile" />
+																	<ul>
+																		<xsl:for-each select="current-group()/@comppath" >
+																				<li><span class="cmd cmd_filter"><xsl:text> </xsl:text></span> <span class="cmd cmd_detail"><xsl:text> </xsl:text></span> <span class="cmd cmd_columns"><xsl:text> </xsl:text></span>
+																					<a href="{.}" ><xsl:value-of select="." /></a></li>
+																		</xsl:for-each>
+																	</ul>
+															</li>
+														</xsl:for-each-group>
+													</ul>
+												</li>						
+											</xsl:for-each-group>
+										</ul>
+								</div>							
+						
+						</li>
+				</xsl:for-each-group>
+			</ul>	
+	</div>
+</xsl:template>
+	
+<xsl:template name="list-datcats">
+	
+	<table>
+		<caption>DatCats |<xsl:value-of select="count(distinct-values($term_matrix/Term/@datcat))" />| <span class="note">* Click on numbers to see detail </span></caption>
+				<thead><tr><th rowspan="2">id</th><th rowspan="2">name</th>
+					<th colspan="3" >count </th><th rowspan="2">elems</th></tr>
+					<tr><th>profile*</th><th >all*</th><th>elems</th> </tr>		</thead>
+		<tbody>		
+				<xsl:for-each-group select="$term_matrix/Term" group-by="@datcat">
+					<xsl:sort select="lower-case(@datcat)" order="ascending"/>					
+						<tr><td valign="top"><xsl:value-of select="my:shortURL(@datcat)"/></td>
+						<td valign="top"><xsl:value-of select="my:rewriteURL(@datcat)"/></td>
+						<td valign="top" align="right">
+							<span class="term_detail_caller" ><xsl:value-of select="count(distinct-values(current-group()/@profile))"/></span>
+							<div class="term_detail" >
+									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
+									<ul>
+										<xsl:for-each select="distinct-values(current-group()/@profile)" >
+											<li><xsl:value-of select="." /></li>
+										</xsl:for-each>
+									</ul>
+								</div>							
+						</td>
+						<td valign="top" align="right">
+							<span class="term_detail_caller" ><xsl:value-of select="count(current-group())"/></span>
+							<div class="term_detail" >
+									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
+									<ul>
+										<xsl:for-each-group select="current-group()" group-by="@profile" >
+											<li><xsl:value-of select="@profile" />
+													<ul>
+														<xsl:for-each select="current-group()/@comppath" >
+																<li><xsl:value-of select="." /></li>
+														</xsl:for-each>
+													</ul>
+											</li>
+										</xsl:for-each-group>
+									</ul>
+								</div>							
+						</td>
+						<td valign="top" align="right"><xsl:value-of select="count(distinct-values(current-group()/@elem))"/></td>						
+							
+						<td width="40%">						
+								<xsl:for-each select="distinct-values(current-group()/@elem)">
+									<xsl:sort select="." />
+									<xsl:value-of select="."/>,
+								</xsl:for-each>
+						</td>												
+						</tr>					
+				</xsl:for-each-group>
+		</tbody>
+	</table>
+	</xsl:template>
+
+	<!--
+	obsolete 
+<xsl:function name="m:shorturl" >
+	<xsl:param name="url" />
+	<xsl:value-of select="replace($url, 'http://www.isocat.org/datcat/','isocat:')" />	
+</xsl:function>	
+
+<xsl:function name="m:resolve" >
+	<xsl:param name="url" />	
+	<xsl:message>1:<xsl:value-of select="$url" /></xsl:message>
+	<xsl:variable name="field" select="'name'" />
+	<xsl:variable name="datcat"  select="$isocat//dcif:dataCategory[@pid=$url]" />	
+	<xsl:value-of select="$datcat/@name" />
+	<xsl:message><xsl:value-of select="$datcat/@name" /></xsl:message>
+</xsl:function>	
+
+<xsl:function name="m:resolve" >
+	<xsl:param name="url" />
+	<xsl:param name="field" />
+	<xsl:message>2:<xsl:value-of select="$url" /></xsl:message>
+	<xsl:variable name="datcat"  select="$isocat//dcif:dataCategory[@pid=$url]" />	
+	<xsl:value-of select="$datcat/@*[name()=$field]" />
+	
+</xsl:function>	
+-->
+
+<xsl:template name="obsolete">
+
+ <!--
+ <style type="text/css">
+ 		.term_detail { text-align: left; border: 1px solid #666699; background-color: #ccccff; position:absolute; }
+ 		.term_detail ul { padding-left: 16px; }
+ 		.hilight { background-color: #ccccff;}
+ 		.box_heading {font-weight:bold;}
+ </style>
+
+			<script type="text/javascript">			
+				$(function(){
+					
+					$('.term_detail').hide();
+					
+					$('.term_detail_caller').click(function() {
+									$(this).parent().find('.term_detail').toggle();
+									$(this).parents('tr').toggleClass('hilight');
+								});
+				});
+			</script>
+ -->
+</xsl:template>			
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/complist2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/complist2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/complist2view.xsl	(revision 1516)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--     
+    $Date: 2010-05-09 $ 
+    
+    created based on comp2view.xsl vronk
+
+<sample>
+	<componentDescription>
+		<id>clarin.eu:cr1:c_1272022528362</id>
+		<description>Type of data collection</description>
+		<name>Datacollection</name>
+		<registrationDate>04/26/2010 12:12:52 CEST</registrationDate>
+		<creatorName>Folkert de Vriend</creatorName>
+		â
+		<ns2:href>
+		http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/clarin.eu:cr1:c_1272022528362
+		</ns2:href>
+		<groupName>CLARIN-Nl</groupName>
+	</componentDescription>
+</sample>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
+    xmlns:my="myFunctions" >
+    <xsl:strip-space elements="*"/>
+    <xsl:include href="cmd_commons.xsl"/>
+
+    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
+
+	<xsl:param name="title" 
+		select="concat('Component view: ', if(/CMD_ComponentSpec/Header/Name/text()) then /CMD_ComponentSpec/Header/Name/text() else /CMD_ComponentSpec/CMD_Component[1]/@name)" />				
+			
+	    
+    <!-- main -->
+    <!-- <xsl:template match="/"> -->
+    <xsl:template name="continue-root"> 
+        
+          <!-- Process the complete tree -->        	        
+	      
+				<xsl:choose>
+	    	 	<xsl:when test="$format='complist2htmldetail'" >
+			      <div id="complist">
+			      		<table class="show">
+			      			<caption>Profiles in Component Registry</caption>
+			      			<thead>
+			      				<tr><th>name id</th><th>date author</th><th>description</th></tr>
+			      			</thead>
+		    	 				<xsl:apply-templates select="/*/*" mode="detail" />
+		    	 			</table>
+  	  	 		</div>
+		   	 	</xsl:when>		   	 	
+	    	 	<xsl:when test="$format='complist2htmlselect'" >    	 					      
+			      		<select id="profile-select" class="cmds-ui-elem-stretch">		
+		    	 				<xsl:apply-templates select="/*/*" mode="select"/>		    	 				
+		    				</select>	    	 				    		
+	    	 	</xsl:when>
+	    	 	<xsl:otherwise>
+	    	 			<div id="complist">
+			      		<ul>		
+		    	 				<xsl:apply-templates select="/*/*" />
+		    	 			</ul>
+		    			</div>	 
+	    	 	</xsl:otherwise>
+    	 </xsl:choose>
+			
+    </xsl:template>
+    
+    <!-- generate actual HTML(?)-view -->
+  <xsl:template match="/*/*">
+		<li><span><a href="{my:rewriteURL(id)}" ><xsl:value-of select="name" /></a></span></li>			
+	</xsl:template>
+
+  <xsl:template match="/*/*" mode="detail">
+  	<!--  concat($detail_complist_prefix, my:extractID(id)) -->
+		<tr><td><b><a href="{my:rewriteURL(id)}" ><xsl:value-of select="name" /></a></b></td>
+			<td><xsl:value-of select="substring(registrationDate,1,10)" /><br/>
+			<xsl:value-of select="creatorName" />
+			</td>
+			<td><xsl:value-of select="description" /></td>
+		</tr>			
+	</xsl:template>
+	
+	<xsl:template match="/*/*" mode="select">
+		<option value="{my:extractID(id)}" ><xsl:value-of select="name" /></option>			
+	</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/complist_resolved.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/complist_resolved.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/complist_resolved.xsl	(revision 1516)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--     
+    $Date: 2010-05-09 $ 
+    
+    created based on complist2view.xsl vronk
+
+<sample>
+	<componentDescription>
+		<id>clarin.eu:cr1:c_1272022528362</id>
+		<description>Type of data collection</description>
+		<name>Datacollection</name>
+		<registrationDate>04/26/2010 12:12:52 CEST</registrationDate>
+		<creatorName>Folkert de Vriend</creatorName>
+		â
+		<ns2:href>
+		http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/clarin.eu:cr1:c_1272022528362
+		</ns2:href>
+		<groupName>CLARIN-Nl</groupName>
+	</componentDescription>
+</sample>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
+    xmlns:my="myFunctions" >
+    <xsl:strip-space elements="*"/>
+    <xsl:include href="cmd_commons.xsl"/>
+
+    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
+
+		<xsl:param name="title" select="'ComplistResolved'" />				
+		<xsl:param name="_format"  select="'default'"/> <!-- table|list -->
+		
+
+<xsl:template name="continue-root">   
+  <xsl:apply-templates mode="include"/>
+      <!-- Resolve all includes -->
+  <!-- <xsl:variable name="tree"> </xsl:variable>  -->         
+</xsl:template>
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/datcat_all2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/datcat_all2terms.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/datcat_all2terms.xsl	(revision 1516)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:my="myFunctions"
+  	xmlns:dcif="http://www.isocat.org/ns/dcif"
+ >
+<!-- 
+<purpose> generate a termMatrix out of all datcats based on terms_setup.xml  </purpose>
+<strategy>fetch and concat the individual Termsets </strategy>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-10-10" type="created" by="vr"></change>
+</history>
+-->
+<xsl:import href="cmd_commons.xsl"/>
+
+<xsl:output method="xml" indent="yes" > </xsl:output>
+
+<xsl:param name="title" select="'Datcat terms all'"></xsl:param>
+
+<xsl:template name="continue-root">
+	<xsl:apply-templates  />
+</xsl:template>
+
+<xsl:template match="dcif:dataCategorySelection" >
+
+</xsl:template>
+
+<xsl:template match="Termsets" >
+	<xsl:copy>
+		<xsl:message>count dcr/rd termsets:<xsl:value-of select="count(Termset[@type='dcr' or @type='rr'])" /></xsl:message>
+		<xsl:apply-templates select="Termset[@type='dcr' or @type='rr']" />
+	</xsl:copy>
+</xsl:template>
+
+<xsl:template match="Termset" >
+	<xsl:variable name="resolved_termset_uri" select="concat($datcats_terms_uri,@id)" />
+	
+	<xsl:variable name="termset" select="document($resolved_termset_uri)" />
+	
+	<xsl:copy>
+		<xsl:copy-of select="@*" />
+		<xsl:copy-of select="$termset/Termset/*" />			
+	</xsl:copy>
+	
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/datcat_dcif2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/datcat_dcif2terms.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/datcat_dcif2terms.xsl	(revision 1516)
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:my="myFunctions"
+  	xmlns:dcif="http://www.isocat.org/ns/dcif"
+ >
+<!-- 
+<purpose> generate a termMatrix for a datcat-profile (dcif-based = isocat: http://www.isocat.org/rest/profile/5)</purpose>
+<strategy>map from rdf to Terms </strategy>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-10-10" type="created" by="vr"></change>
+</history>
+-->
+<xsl:import href="cmd_commons.xsl"/>
+
+<xsl:output method="xml" indent="yes" > </xsl:output>
+
+<xsl:param name="title" select="'Datcat terms'"></xsl:param>
+
+<xsl:template name="continue-root">
+<xsl:message>count terms:<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" /></xsl:message>
+	<xsl:apply-templates select="/dcif:dataCategorySelection" />
+</xsl:template>
+
+<xsl:template match="dcif:dataCategorySelection" >
+	<Termset id="isocat{if($lang!=$default_lang) then $lang else ''}" label="{concat(@name, ' [', $lang ,']')}" >		
+		<xsl:apply-templates select="dcif:dataCategory" />		
+	</Termset>
+</xsl:template>
+
+<!-- <Term elem="TextCorpusProfile" datcat="" corresponding_component="" parent="" context=".TextCorpusProfile" 
+name="TextCorpusProfile" count="8" count_text="199" count_distinct_text="87" path="TextCorpusProfile"/>
+ -->
+ 
+ <!--  handling compressed dcif-format -->
+<xsl:template match="dcif:dataCategory[@name]" >
+	<Term type="datcat" name="{@name}" datcat="{@pid}" id="{@identifier}">		
+		<xsl:for-each select="@*" >
+			<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
+		</xsl:for-each>
+	</Term>
+</xsl:template>
+
+ <!--  handling full dcif-format -->
+<xsl:template match="dcif:dataCategory" >
+	<xsl:variable name="n" >
+		<xsl:choose>
+			<xsl:when test=".//dcif:name[@xml:lang=$lang]">
+				<xsl:value-of select=".//dcif:name[@xml:lang=$lang]" />
+			</xsl:when>
+			<xsl:when test=".//dcif:name[@xml:lang=$default_lang]">
+				<xsl:value-of select=".//dcif:name[@xml:lang=$default_lang]" />
+			</xsl:when>
+			<xsl:when test=".//dcif:name">
+				<xsl:value-of select=".//dcif:name" />
+			</xsl:when>
+			<xsl:when test=".//dcif:dataElementName">
+				<xsl:value-of select=".//dcif:dataElementName" />
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select=".//dcif:identifier" />
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:variable>
+	
+	<!--  <xsl:variable name="datcat" select="my:shortURL(@pid)" />  -->
+				
+	<Term type="datcat" name="{$n}" datcat="{@pid}" id="{.//dcif:identifier}">
+		<xsl:copy-of select="dcif:administrationRecord/*" />
+		<xsl:choose>
+		<xsl:when test=".//dcif:languageSection[language=$lang]" >
+			<xsl:for-each select=".//dcif:languageSection[language=$lang]//*[@xml:lang=$lang]" >			
+					<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
+			</xsl:for-each>			
+		</xsl:when>
+		<xsl:otherwise>
+			<xsl:for-each select=".//dcif:languageSection[1]//*[exists(text()) and text()!='']" >			
+					<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
+			</xsl:for-each>
+		</xsl:otherwise>
+		</xsl:choose>
+						
+		<!--   probably need to add conceptual domain! -->
+	</Term>
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/datcat_rdf2terms.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/datcat_rdf2terms.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/datcat_rdf2terms.xsl	(revision 1516)
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:my="myFunctions"
+  xmlns:owl="http://www.w3.org/2002/07/owl#" 
+  xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:dcam="http://purl.org/dc/dcam/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+>
+<!-- 
+<purpose> generate a termMatrix for a datcat-profile (rdf-based = dublincore: http://dublincore.org/2008/01/14/dcelements.rdf#)</purpose>
+<strategy>map from rdf to Terms </strategy>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-10-10" type="created" by="vr"></change>
+</history>
+-->
+<xsl:import href="cmd_commons.xsl"/>
+
+<xsl:output method="xml" indent="yes" > </xsl:output>
+
+<xsl:param name="title" select="'Datcat terms'"></xsl:param>
+
+<xsl:template name="continue-root">
+
+	<xsl:message>continue in :<xsl:value-of select="name()" /></xsl:message>
+			<xsl:choose>    	 	
+	    	 	 <xsl:when test="contains($format,'rr-rdf')" >
+	    	 	 <xsl:message>count rels:<xsl:value-of select="count(/rdf:RDF/rdf:Description)" /></xsl:message>    	 						
+	    	 	 <xsl:message>src_file:<xsl:value-of select="$src_file" /></xsl:message>
+	    	 	 <xsl:message>root_uri:<xsl:value-of select="$root_uri" /></xsl:message>
+  	    	 		<xsl:call-template name="rr" />    	 		    
+	    	 	</xsl:when>
+	    	 	 <xsl:when test="//rdf:Property" >
+	    	 	 	<xsl:message>count terms:<xsl:value-of select="count(//rdf:Property)" /></xsl:message>	    	 	
+					<xsl:apply-templates select="/rdf:RDF/rdf:Description" mode="init" />
+				</xsl:when>				
+	    	 	<xsl:otherwise>
+	    	 			<xsl:apply-templates select="/rdf:RDF/rdf:Description[1]"  mode="init" />
+				</xsl:otherwise>
+			</xsl:choose>
+</xsl:template>
+
+<xsl:template match="rdf:Description" mode="init" >
+	<Termset id="{@rdf:about}" label="{dcterms:title}" >
+		<!-- different structures in:  
+			dcelements: -->
+		<xsl:apply-templates select="/rdf:RDF/rdf:Property" />
+		<!-- and dcterms: -->
+		<xsl:apply-templates select="/rdf:RDF/rdf:Description[position() &gt; 1]" mode="dcterm" />
+		
+	</Termset>
+</xsl:template>
+
+<xsl:template name="rr">
+	<xsl:variable name="rrroot"  select="rdf:RDF" />
+ <Termset type="rr" >
+  <!--  TODO: we have to match on ID/url! -->
+ 	<xsl:copy-of select="$terms_setup//Termset[@type='rr']/@*"  />
+	<xsl:for-each select="distinct-values(.//@rdf:about)" > <!--  .//@rdf:resource| -->
+		<xsl:variable name="datcat1" select="." />	
+		<Term type="rel" datcat="{$datcat1}"  >		
+			<xsl:for-each select="$rrroot/rdf:Description[@rdf:about=$datcat1]" >		
+				<Term type="rel" reltype="{name(*[1])}" datcat="{*/@rdf:resource}" />				
+			</xsl:for-each>
+			<!--  <xsl:for-each select="$rrroot/rdf:Description[*/@rdf:resource=$datcat1]" >
+				<Term type="rel"  name="y" ref="{@rdf:about}" />				
+			</xsl:for-each> -->		
+		 </Term>
+	</xsl:for-each>
+</Termset>
+
+</xsl:template>
+
+
+<!-- <Term elem="TextCorpusProfile" datcat="" corresponding_component="" parent="" context=".TextCorpusProfile" 
+name="TextCorpusProfile" count="8" count_text="199" count_distinct_text="87" path="TextCorpusProfile"/>
+ -->
+<xsl:template match="rdf:Property" >
+	<Term type="datcat" name="{rdfs:label}" datcat="{@rdf:about}" id="{@rdf:about}">
+		<xsl:for-each select="*" >
+			<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
+		</xsl:for-each>
+	</Term>
+</xsl:template>
+
+<xsl:template match="rdf:Description" mode="dcterm" >
+	<Term type="datcat" name="{rdfs:label}" datcat="{@rdf:about}" id="{@rdf:about}">
+		<xsl:for-each select="*" >
+			<xsl:element name="{name()}" ><xsl:value-of select="." /></xsl:element>			
+		</xsl:for-each>
+	</Term>
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/dcif2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/dcif2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/dcif2view.xsl	(revision 1516)
@@ -0,0 +1,169 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:dcif="http://www.isocat.org/ns/dcif"   
+	xmlns:xml="http://www.w3.org/XML/1998/namespace"
+	 xmlns:my="myFunctions"
+>
+<!-- 
+<purpose> generate a reduced html-view of a dcif-info</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-03-26" type="created" by="vr">from model2htmlsnippet.xsl</change>	
+</history>
+-->
+
+<xsl:output method="xml" />
+
+<xsl:include href="cmd_commons.xsl"/>
+
+<!-- 
+<xsl:param name="format" />
+<xsl:param name="lang" select="'en'" /> 
+
+<xsl:param name="mode" select="'div'" />
+<xsl:param name="base_uri" select="'http://www.isocat.org/datcat/'" />
+<xsl:param name="detail_uri_prefix"  select="'isocat/htmldiv'"/>
+-->
+
+<xsl:param name="title" >
+	<xsl:choose>
+		<xsl:when test="count(/dcif:dataCategorySelection/dcif:dataCategory) &gt; 1" >
+			<xsl:text>isocatDCSelection |</xsl:text>			
+			<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" /><xsl:text>| (</xsl:text>			 
+			<xsl:value-of select="concat(my:extractID(//dcif:dataCategory[1]/@pid), //dcif:identifier[1])" /><xsl:text>)</xsl:text>			
+		</xsl:when>
+		<xsl:otherwise>
+		<xsl:text>isocatDC: </xsl:text><xsl:value-of select="concat(my:extractID(//dcif:dataCategory[1]/@pid), //dcif:identifier[1])" /> 
+		</xsl:otherwise>		
+	</xsl:choose>
+	
+</xsl:param>
+
+
+
+<xsl:template name="continue-root" >
+	<!-- <h1><xsl:value-of select="$title"/></h1> -->
+<xsl:message>count DCs:<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" /></xsl:message>
+	<xsl:choose>
+		<xsl:when test="count(/dcif:dataCategorySelection/dcif:dataCategory) &gt; 1" >
+			<xsl:choose>
+				<xsl:when test="contains($format,'htmllist')">
+					<xsl:apply-templates select="/dcif:dataCategorySelection" mode="list" />
+				</xsl:when>
+				<xsl:otherwise>
+						<xsl:apply-templates select="/dcif:dataCategorySelection"/> 
+				</xsl:otherwise>		
+			</xsl:choose>				
+		</xsl:when>
+		<xsl:otherwise>
+				<xsl:apply-templates select="/dcif:dataCategorySelection/dcif:dataCategory"/> 
+		</xsl:otherwise>		
+	</xsl:choose>
+	
+
+	
+	
+</xsl:template>	
+
+<xsl:template match="dcif:dataCategorySelection" >
+	<div>
+	<h3>DCSelection: <xsl:apply-templates select="@name" /></h3>
+		<div class="header">
+		|<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" />|
+			<xsl:value-of select="dcif:globalInformation" />
+		</div>
+			
+		<table>
+			<tr>
+				<th>PID</th>
+				<th>identifier</th>
+				<th>name</th>
+				<th>definition</th>
+				<th>type</th>
+				<th>owner</th>		
+			</tr>	
+		<xsl:apply-templates select="dcif:dataCategory" mode="table" />
+		</table>					
+	</div>	
+	
+</xsl:template>	
+
+<xsl:template match="dcif:dataCategory" mode="table">
+	<tr>
+		<td><xsl:value-of select="my:extractID(@pid)" /></td>
+		<td><xsl:value-of select="@identifier" /></td>
+		<td><xsl:value-of select="@name" /></td>
+		<td><xsl:value-of select="@definition" /></td>
+		<td><xsl:value-of select="@type" /></td>
+		<td><xsl:value-of select="@owner" /></td>		
+	</tr>
+</xsl:template>	
+
+<xsl:template match="dcif:dataCategorySelection"  mode="list">
+	<div>
+	<h3>DCSelection: <xsl:apply-templates select="@name" /></h3>
+		<div class="header">
+		|<xsl:value-of select="count(/dcif:dataCategorySelection/dcif:dataCategory)" />|
+			<xsl:value-of select="dcif:globalInformation" />
+		</div>
+			
+		<ul>	
+			<xsl:apply-templates select="dcif:dataCategory" mode="list" />
+		</ul>					
+	</div>	
+	
+</xsl:template>	
+
+
+<xsl:template match="dcif:dataCategory" mode="list">
+		<li><div class="cmds-elem-plus">		
+			<span><a href="{my:rewriteURL(@pid)}" >
+						<xsl:value-of select="@name" /></a></span>
+						<div class="detail">
+							<xsl:value-of select="@definition" /><br/>
+							<xsl:value-of select="@type" />,<xsl:value-of select="@owner" />
+						</div>
+			</div>
+		</li>
+</xsl:template>	
+
+<xsl:template match="dcif:dataCategory" >
+
+	<div>
+	<h4><xsl:value-of select="concat(my:extractID(@pid), ': ', .//dcif:identifier)" /> 
+	</h4>
+		<xsl:apply-templates select=".//dcif:creationDate | .//dcif:profile | .//dcif:definition[@xml:lang=$lang]
+			" />					
+	</div>	
+	
+</xsl:template>	
+	
+	
+<xsl:template match="*" >
+	<!-- <xsl:param name="lv" select="1" />-->
+	<!--<xsl:variable name="lv" select="count(ancestor::d)" /> -->
+	<xsl:if test="string-length(.//text()) &gt; 1" >
+		<xsl:variable name="has_text" >
+			<xsl:choose>
+				<xsl:when test="normalize-space(text())='Unspecified'">unspecified</xsl:when>
+				<xsl:when test="not(normalize-space(text())='')">text</xsl:when>				
+				<xsl:otherwise>empty</xsl:otherwise>
+			</xsl:choose>
+			
+		</xsl:variable>
+		<div class="cmds-elem-prop value-{$has_text}" >
+		<span class="label"><xsl:value-of select="name()" />
+		<xsl:if test="@xml:lang" >(<xsl:value-of select="@xml:lang" />)</xsl:if>: </span>
+		<span class="value"><xsl:value-of select="text()" /></span>
+			<xsl:apply-templates select="*" />					
+		</div>	
+	</xsl:if>
+</xsl:template>	
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/docs2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/docs2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/docs2view.xsl	(revision 1516)
@@ -0,0 +1,49 @@
+﻿<?xml version="1.0"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- 
+<purpose>html-view for static xml-files</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-11-12" type="created" by="vr">based on xml2htmltable</change>	
+	
+</history>
+-->
+
+<xsl:include href="cmd_commons.xsl"/> 
+
+<xsl:param name="title" select="if (//div[1][@class='title']) then concat('CMDRSB: ', //div[1][@class='title']) else 'CMDRSB docs'" />
+
+	
+<!--<xsl:output method="html" encoding="UTF-8"/>-->
+
+<xsl:template name="continue-root">
+	<div class="info">
+		<a href="{$docs_baseuri}" >home</a>
+		<xsl:apply-templates  select="info/*[not(@class='title')]" />	
+    </div>
+</xsl:template>
+
+<xsl:template match="div[@id='commands']">
+	<xsl:copy>	
+		<xsl:apply-templates select="p|div|span|h3" />						
+		<dl>		
+		<xsl:for-each select="dl/dt" >		
+			<dt><span class="cmd {@id}"> </span><xsl:value-of select="." /></dt>
+			<xsl:copy-of select="following-sibling::*[1][name()='dd']" />
+		</xsl:for-each>
+		</dl>		
+	</xsl:copy>
+</xsl:template>
+
+<xsl:template match="*|@*">
+	<xsl:copy>
+		<xsl:apply-templates select="node()|@*" />
+	</xsl:copy>	
+</xsl:template>
+
+
+</xsl:stylesheet>
+  
Index: MDService2/branches/MDService_simple3/src/xsl/fsls2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/fsls2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/fsls2view.xsl	(revision 1516)
@@ -0,0 +1,126 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!-- 
+<purpose> convert fsls to html-list-snippet</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2009-11-15" type="created" by="vr">based on fs_view.xsl</change>	
+	<change on="2010-01-17" type="changed" by="vr">added hack: replace .xml -> .html (in name)</change>	
+	<change on="2010-03-28" type="created" by="vr">based on fsls2htmllist.xsl</change>	
+</history>
+<sample> result
+	<ul id="browser" class="filetree treeview-famfamfam treeview">
+		<li><span class="folder">Folder 1</span>
+			<ul>
+				<li><span class="folder">Item 1.1</span>
+					<ul>
+</sample>
+-->
+
+<xsl:import href="cmd_commons.xsl" />
+
+<xsl:param name="size_lowerbound">0</xsl:param>
+<xsl:param name="max_depth">2</xsl:param>
+<xsl:param name="show">file</xsl:param> <!-- file -->
+<xsl:param name="sort">name</xsl:param> <!-- s=size|n=name|t=time -->
+<xsl:param name="style_dir" />
+<xsl:param name="name_col_width" >50%</xsl:param>
+<xsl:param name="basedir" >../..</xsl:param>
+
+<xsl:param name="format" />
+
+<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.' />
+
+<xsl:param name="title" >Index: <xsl:value-of select="/d/@n"/></xsl:param>
+
+<xsl:template name="continue-root" >
+	<div>
+	<ul class="filetree treeview">
+		<xsl:apply-templates select="*" >							
+		</xsl:apply-templates>			
+	</ul>
+	</div>
+</xsl:template>
+
+<xsl:template match="d" >
+	<xsl:variable name="lv" select="count(ancestor::d)" />
+	
+	<li><span class="folder"><xsl:value-of select="@n" /></span>		
+	
+		<xsl:if test="$lv&lt;$max_depth or $max_depth=0">
+			<ul>
+				<xsl:choose>
+					<xsl:when test="$sort='s'">				
+						<xsl:apply-templates select="d[sum(.//f/@s[.!=''])&gt;=$size_lowerbound]" >
+								<xsl:sort order="descending" select="sum(.//f/@s[.!=''])" data-type="number" />
+						</xsl:apply-templates>		
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:apply-templates select="d[sum(.//f/@s[.!=''])&gt;=$size_lowerbound]" >
+								<xsl:sort order="ascending" select="@*[name()=$sort]" />
+						</xsl:apply-templates>		
+					</xsl:otherwise>
+				</xsl:choose>
+				
+				
+				<xsl:if test="contains($show,'file')" >
+					<xsl:choose>
+						<xsl:when test="$sort='s'">				
+							<xsl:apply-templates select="f[@s&gt;$size_lowerbound or @s='']" >
+								<xsl:sort order="descending" data-type="number" select="@s" />
+							</xsl:apply-templates>
+						</xsl:when>
+						<xsl:otherwise>
+							<xsl:apply-templates select="f[@s&gt;$size_lowerbound or @s='']" >
+									<xsl:sort order="ascending" select="@*[name()=$sort]" />
+							</xsl:apply-templates>
+						</xsl:otherwise>
+					</xsl:choose>
+					
+				</xsl:if>
+				
+		</ul>
+		
+	</xsl:if>
+	</li>
+</xsl:template>
+
+<xsl:template match="f">
+<xsl:variable name="href" ><xsl:call-template name="path"/>
+	</xsl:variable>
+	
+	
+	<li><span class="{@x}">
+		<a target="detail">
+				<xsl:attribute name="href" ><xsl:call-template name="fn" /></xsl:attribute>
+					<xsl:call-template name="fn" /></a>
+		</span></li>	
+</xsl:template>
+
+<xsl:template name="fn" >
+	<xsl:choose>
+		<xsl:when test="ends-with(@n,'.xml')" >
+				<xsl:value-of select="concat(substring-before(@n,'.xml'),'.html')" />
+		</xsl:when>
+		<xsl:otherwise>
+			<xsl:value-of select="@n" />
+		</xsl:otherwise>
+	</xsl:choose>
+	
+</xsl:template>
+
+
+<xsl:template name="dir" >
+	<xsl:for-each select="ancestor::d" ><xsl:value-of select="@n" />/</xsl:for-each>	
+</xsl:template>
+
+<xsl:template name="path" >
+	<xsl:text>file://</xsl:text><xsl:value-of select="$basedir" />/<xsl:call-template name="dir"/><xsl:value-of select="@n" />		
+</xsl:template>
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/html_snippets.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/html_snippets.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/html_snippets.xsl	(revision 1516)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:my="myFunctions"
+ exclude-result-prefixes="my">
+
+<!-- 
+<purpose>pieces of html wrapped in tempaltes, to be reused by other stylesheets</purpose>
+<history>
+	<change on="2011-09-01" type="created" by="vr">copied from  cmd_commons.xsl</change>
+</history>
+
+-->
+
+<xsl:template name="html-head">
+	
+	<title><xsl:value-of select="$title"/></title>
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+	
+	<link href="{$base_dir}/style/jquery/clarindotblue/jquery-ui-1.8.5.custom.css" type="text/css" rel="stylesheet" />
+<!-- 	<link href="{$base_dir}/style/jquery/jquery-treeview/jquery.treeview.css" rel="stylesheet" />
+	<link href="{$base_dir}/style/jquery/treetable/jquery.treeTable.css" rel="stylesheet" ></link>
+	 -->
+	<link href="{$base_dir}/style/cmds-ui.css" type="text/css" rel="stylesheet"></link>
+<!--	
+	<link href="{$base_dir}style/jquery/jquery-textboxlist/TextboxList.css" rel="stylesheet" type="text/css"></link>
+	<link href="{$base_dir}style/jquery/jquery-autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css"></link>
+-->
+	<script src="{$base_dir}/scripts/jquery/js/jquery-1.4.2.js" type="text/javascript"></script>
+	<script src="{$base_dir}/scripts/jquery/js/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>
+<!-- <script src="{$base_dir}/scripts/jquery/jquery-treeview/jquery.treeview.js" type="text/javascript"></script>
+	<script src="{$base_dir}/scripts/jquery/jquery-treeTable/jquery.treeTable.js" type="text/javascript"></script>
+	<script src="{$base_dir}/scripts/mdservice_helpers.js" type="text/javascript"></script>
+	-->
+	<!-- <script src="scripts/jquery/jquery-autocomplete/jquery.autocomplete.js" type="text/javascript"></script>
+	
+	<script src="scripts/mdservice_searchclause.js" type="text/javascript"></script>
+	<script src="scripts/mdservice_model.js" type="text/javascript"></script>
+	<script src="scripts/mdservice2_ui.js" type="text/javascript"></script>
+	  -->
+
+</xsl:template>
+
+
+<xsl:template name="page-header">
+	<div class="cmds-ui-block" id="titlelogin">
+	<div id="logo"><a href="http://www.clarin.eu" ><img src="{$base_dir}/style/imgs/clarin-logo.png" alt="CLARIN"></img></a> <div id="site-name" >Metadata Browser</div>
+	</div>
+		<div id="top-menu">
+				<div id="user">
+						<xsl:choose>
+							<xsl:when test="$user = ''" > 
+								<a href="workspace.jsp" >    login</a>
+							</xsl:when>
+							<xsl:otherwise>
+							User: <b><xsl:value-of select="$user" /></b><a href="logout.jsp" >    logout</a>
+							</xsl:otherwise>
+						</xsl:choose>													
+						<a target="_blank" href="static/info" > docs</a>
+				</div>
+				<div id="notify" class="cmds-elem-plus note" >
+					<div id="notifylist" class="note">
+					</div>
+				</div> 
+		</div>
+	</div>
+</xsl:template>
+
+
+<xsl:template name="query-input" >
+	
+	<!-- QUERYSEARCH - BLOCK -->	 
+	<div class="cmds-ui-block init-show"  id="querysearch" >
+	 	<div class="header ui-widget-header ui-state-default ui-corner-top" ><span>Search</span></div>
+	 	<div class="content" id="query-input" >   	
+		 	<form action="{my:formURL('recordset', 'htmlsimple','')}" method="get">							
+				<input type="text" id="input-simplequery" name="squery"/>
+				<input type="submit"  value="submit" id="submit-query"/>
+				
+				<div> 
+					<table class="cmds-ui-elem-stretch ui-advanced">
+					<tr>
+					<td valign="top">
+						<div id="repositories" >		
+								<label>Repository</label> <select id="repositories_select" ></select>								
+						</div>
+							<!--  selected collections  -->
+							<!-- <label>Collections</label><br/>-->
+				        	<div id="collections-widget" class="c-widget"></div>
+					    	
+					</td>
+					<td valign="top">
+						<label>Complex query</label><span name='detail_index' class='cmd cmd_detail'></span><br/>
+						<div id="searchclauselist"></div>							
+						<!--<input type="checkbox" checked="false" id="input-withsummary" name="WS"/><label>with Summary</label> 
+						 -->
+					</td>
+					</tr>					        
+				</table>	
+			</div>
+		</form>
+		</div>
+	</div>  	
+
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/mdinst2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/mdinst2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/mdinst2view.xsl	(revision 1516)
@@ -0,0 +1,131 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:my="myFunctions"  
+>
+<!-- 
+<purpose> generate a generic html view of a CMDI-instance.</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2009-12-31" type="created" by="vr">from cmd2view.xsl (no adaptation yet)</change>	
+	<change on="2010-03-20" type="changed" by="vr">only started to rework</change>	
+	<change on="2010-03-26" type="changed" by="vr">include cmd_commons.xsl</change>	
+	<change on="2010-07-11" type="changed" by="vr">integrate into MDService</change>
+</history>
+-->
+    
+<!--  method="xhtml" is saxon-specific! prevents  collapsing empty <script> tags, that makes browsers choke -->
+<xsl:output method="xhtml" media-type="application/xhtml+xml" indent="yes" encoding="UTF-8" 
+doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" /> 
+
+
+<xsl:include href="cmd_commons.xsl"/>
+
+<xsl:param name="base_uri" select="'file:///C:/Users/master/3lingua/clarin/CMDI/data/C4_cmds/'" />    
+
+<!--   <xsl:param name="mode" select="'htmldiv'" /> -->
+<xsl:param name="title" />
+<xsl:param name="inner_title" >
+<!-- Gather just first title/name or something -->  	
+  	<xsl:variable name="titles" select="(//Title|//title|//ResourceName|//Name|//name)" /> 
+		<!--  <xsl:variable name="titles">									 
+					<xsl:choose>
+					<xsl:when test="exists(//Title/text())">
+							<xsl:copy-of select="//Title" />
+					</xsl:when>
+					<xsl:when test="exists(//title/text())">
+							<xsl:copy-of select="//title" />
+					</xsl:when>
+					<xsl:otherwise>
+							<xsl:copy-of select="(//Name|//name)" />
+					</xsl:otherwise>
+				</xsl:choose>
+		</xsl:variable>
+		 -->
+		<!--<xsl:value-of select="count($titles)" /> -->
+		<xsl:value-of select="$titles[1]" />			
+</xsl:param>
+
+<xsl:template name="continue-root" >
+
+	<div class="mdrecord-detail" >
+		<xsl:choose>
+			<xsl:when test="contains($format,'htmlpage')">
+				<h3><xsl:value-of select="$inner_title" /></h3>
+				<xsl:call-template name="getContext" />
+			</xsl:when>	
+			<xsl:otherwise>
+			
+			<xsl:call-template name="getContext" />
+			<!-- <div class="is-part-of collections" ><xsl:value-of select=".//IsPartOf[@level=1]" /> </div> -->
+			<div class="title" ><xsl:call-template name="getName" /></div>
+			<!--
+				<span class="inner_title"><xsl:attribute name="value"><xsl:value-of select="$inner_title"/>
+				</xsl:attribute>
+				</span> 
+				-->
+			</xsl:otherwise>
+		</xsl:choose>		
+	 <!--<span class="label">MDRecord View: </span> 
+		<div class="title" ><xsl:value-of select="$inner_title"/></div>--> 
+	
+		
+		<xsl:apply-templates select=".//ResourceProxyList" />
+		<xsl:apply-templates select=".//Components/*" mode="format-xmlelem" />
+	</div>	
+</xsl:template>	
+
+	
+<xsl:template match="ResourceProxyList" >
+		<xsl:choose>
+			<xsl:when test="count(ResourceProxy) &gt; 1"> 
+				<div class="resource-links">
+					<span class="detail-caller">
+						<span class="cmd cmd_up" ></span><span class="label" >references </span><xsl:value-of select="count(ResourceProxy[ResourceType='Metadata'])" /> <span class="label" > MDRecords, </span> 
+									<xsl:value-of select="count(ResourceProxy[ResourceType='Resource'])" /> <span class="label" > Resources</span>
+					</span>					
+					<ul class="detail"> 
+						<xsl:if test="count(ResourceProxy) &gt; $resourceref_limit" >
+							<span class="label" >showing first </span> <xsl:value-of select="$resourceref_limit" /> <span class="label" > references. </span> 
+							<s><a href="{concat($default_prefix, my:encodePID(./ancestor::CMD/Header/MdSelfLink))}">see more</a></s>							
+						</xsl:if>
+						<xsl:apply-templates select="ResourceProxy[position() &lt; $resourceref_limit]" />
+					</ul>
+				</div>
+			</xsl:when>
+			<xsl:otherwise>
+				<ul>
+					<xsl:apply-templates />
+				</ul>			
+			</xsl:otherwise>
+		</xsl:choose>
+		
+</xsl:template>	
+	
+	<xsl:template match="ResourceProxy" >
+	
+			<xsl:variable name="href" >						 
+				<xsl:choose>
+					<xsl:when test="ResourceType='Resource'">
+							<xsl:value-of select="ResourceRef" />
+					</xsl:when>
+					<xsl:otherwise>
+							<xsl:value-of select="concat($default_prefix, my:encodePID(ResourceRef))" />
+					</xsl:otherwise>
+				</xsl:choose>				
+			</xsl:variable>
+			
+			<xsl:variable name="class" select=" if (ResourceType='Resource') then 'external' else 'internal'" />
+			
+		<li><span class="label" ><xsl:value-of select="ResourceType" />: </span> 
+				<a class="{$class}" href="{$href}" target="_blank" >
+						<xsl:value-of select="ResourceRef" />
+				</a>
+		</li>
+	</xsl:template>	
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/mdset2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/mdset2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/mdset2view.xsl	(revision 1516)
@@ -0,0 +1,397 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:saxon="http://saxon.sf.net/"
+  xmlns:my="myFunctions"
+  exclude-result-prefixes="saxon my xs" 
+>
+<!-- 
+<purpose> generate html view (probably various formats of a MDRepository response.</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>	
+	<change on="2010-03-26" type="created" by="vr">based on cmdi/scripts/cmdinst2view.xsl</change>	
+</history>
+-->
+<xsl:import href="model2matrix.xsl"/>
+<xsl:import href="terms2view.xsl"/>
+
+<!--  method="xhtml" is saxon-specific! prevents  collapsing empty <script> tags, that makes browsers choke -->
+<xsl:output method="xhtml" media-type="application/xhtml+xml" indent="yes" encoding="UTF-8" 
+doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" /> 
+
+  <!--
+  if this is added  to the output-element, it terribly slows down requests with recordset being injected via document() function
+   (like: http://localhost:8080/MDService2/docs/htmlpagetest/queries2)
+  doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />  
+  --> 
+
+<xsl:include href="cmd_commons.xsl"/>
+
+
+<xsl:param name="startItem">1</xsl:param>
+<xsl:param name="maximumItems">50</xsl:param>
+
+<!-- <xsl:param name="format" select="'table'" /> table|list|detail -->
+<xsl:param name="cols" >Id,Title,Location
+<!-- 
+<col label="id">Id</col>
+<col label="id">idno</col>
+<col label="name">Name</col>
+<col label="title">Title</col>
+<col label="title">title</col>
+<col label="loc" >Location</col>
+<col label="loc" >pubPlace</col>
+<col label="lang" >language</col>
+
+ -->
+</xsl:param>
+
+<xsl:param name="mode" select="'html'" />
+<xsl:param name="title" >
+	<xsl:text>MDRecordSet </xsl:text>
+</xsl:param>
+
+<xsl:variable name="columns" >
+<!-- <xsl:message>COLUMNS: <xsl:value-of select="$cols" /><xsl:value-of select="string-length($cols)" /></xsl:message>  -->
+	<xsl:variable name="colarray" select="tokenize($cols,',')"/>
+	<xsl:for-each select="$colarray" >
+		<col key="{.}" label="{replace(.,'^.*\.([^.]+)$','$1')}" xpath_osbolete="{replace(.,'\.','/')}" xpath="{my:index2xpath(.)}" />
+		<!-- if (contains(.,'.')) then reverse(.) else . -->
+	</xsl:for-each>
+	<xsl:if test="count($colarray)=0" >	
+		<xsl:copy-of select="$autocolumns"></xsl:copy-of>
+		<!-- <xsl:message>AUTOCOLUMNS: <xsl:copy-of select="$autocolumns" /><xsl:value-of select="count($autocolumns)" /></xsl:message> -->
+	</xsl:if>
+	
+</xsl:variable>
+
+<xsl:variable name="autocolumns" >
+	<xsl:variable name="precompute">
+		<xsl:for-each-group select="//Components//*[not(*)][exists(text())]" group-by="name()" >			
+			<xsl:sort select="sum(current-group()/string-length(string-join(text(),';')))" order="descending" />
+			<!-- <xsl:message>precomputing: <xsl:value-of select="name()" />
+				count: <xsl:value-of select="count(current-group())" /> sum:<xsl:value-of select="sum(current-group()/string-length(string-join(text(),';')))" /></xsl:message> -->
+			<col key="{name()}" label="{name()}" xpath="{name()}" />
+		</xsl:for-each-group>
+	</xsl:variable>
+	 <!-- <xsl:message>precompute: <xsl:copy-of select="$precompute" /><xsl:value-of select="count($precompute)" /></xsl:message>-->
+	<xsl:copy-of select="$precompute/*[position() &lt; $autocolumns_limit]"></xsl:copy-of> 
+</xsl:variable>
+
+<xsl:template name="continue-root" >
+
+<xsl:for-each select="searchRetrieveResponse" >
+<div>
+	<xsl:if test="not(contains($format, 'htmlsimple'))">
+		<xsl:call-template name="header" />
+	</xsl:if>
+	<xsl:choose>
+				<xsl:when test="contains($format,'htmltable')">
+					<xsl:apply-templates select="records" mode="table" />
+				</xsl:when>				
+				<xsl:when test="contains($format,'htmllist')">
+					<xsl:apply-templates select="records" mode="list" />
+				</xsl:when>				
+				<xsl:when test="contains($format, 'htmldetail')">
+					<xsl:apply-templates select="records" mode="detail" />
+				</xsl:when>
+				<xsl:when test="contains($format, 'htmlpage')">
+					<xsl:apply-templates select="records" mode="table" />
+				</xsl:when>
+				<xsl:when test="contains($format, 'htmlpagelist')">
+					<xsl:apply-templates select="records" mode="list" />
+				</xsl:when>		
+				<xsl:when test="contains($format, 'htmlsimple')">
+					<xsl:apply-templates select="records" mode="simple" />
+				</xsl:when>		
+				<xsl:otherwise>mdset2view: unrecognized format: <xsl:value-of select="$format" /></xsl:otherwise>
+	</xsl:choose>
+	</div>
+</xsl:for-each>	
+	
+</xsl:template>	
+	
+	
+<xsl:template match="*" >
+	<!-- <xsl:param name="lv" select="1" />-->
+	<!--<xsl:variable name="lv" select="count(ancestor::d)" /> -->
+	<!-- <xsl:if test="string-length(string-join(.//text(),'')) &gt; 1" > -->		 
+		<xsl:variable name="has_text" >
+			<xsl:choose>
+			<!-- FIXME: text()[1] ? is that safe?-->
+				<xsl:when test="normalize-space(text()[1])='Unspecified'">unspecified</xsl:when>
+				<xsl:when test="not(normalize-space(text()[1])='')">text</xsl:when>				
+				<xsl:otherwise>empty</xsl:otherwise>
+			</xsl:choose>
+			
+		</xsl:variable>
+		<div class="elem {$has_text}" ><span class="elem_name"><xsl:value-of select="name()" />:</span>
+		<span class="elem_value"><xsl:value-of select="text()" /></span>
+			<xsl:apply-templates select="*" />					
+		</div>
+	
+</xsl:template>	
+	
+	<!--
+sample header:	
+<numberOfRecords>524</numberOfRecords>
+    <echoedSearchRetrieveRequest>//Title[contains(.,'an')] /db/cmdi-mirror/silang_data 1 50</echoedSearchRetrieveRequest>
+    <diagnostics>50</diagnostics>
+    -->
+<xsl:template name="header">
+	<div class="result-header" >
+	<xsl:attribute name="max_value"><xsl:value-of select="numberOfRecords" /></xsl:attribute>
+	<xsl:variable name="cnt_hits" select="number(diagnostics)" />
+	
+	<span class="label" >hits: </span><span class="value hilight"><xsl:value-of select="numberOfRecords" /></span>;
+	<span class="label" >from:</span><span><input type="text" class="value start_record paging-input"><xsl:attribute name="value">
+    <xsl:value-of select="$startItem"/>
+  </xsl:attribute>
+	</input></span>
+	<span class="label" >max:</span><span><input type="text" class="value maximum_records paging-input" ><xsl:attribute name="value">
+    <xsl:value-of select="if(number($cnt_hits) &lt; number($maximumItems)) then $cnt_hits else $maximumItems"/>    
+  </xsl:attribute></input></span>
+  <span class="cmd cmd_reload" />  
+<!--	<button class="reload">reload</button>-->
+	<span class="cmd cmd_prev">	
+	<xsl:choose>
+		<xsl:when test="$startItem = '1'">
+			<xsl:attribute name="disabled">disabled</xsl:attribute>
+		</xsl:when>
+		</xsl:choose>
+	</span>
+	<span class="cmd cmd_next">	
+	<xsl:choose>
+		<xsl:when test="$maximumItems &gt; numberOfRecords or $maximumItems = numberOfRecords">
+			<xsl:attribute name="disabled">disabled</xsl:attribute>
+		</xsl:when>
+		</xsl:choose>
+	</span>
+	<span class="cmd cmd_detail" />	
+	<!--  <div class='ui-context-dialog ui-widget-content columns-wrapper'>  -->
+		<div class='ui-widget-content columns-wrapper'>
+			<div class='cmds'><span class="cmd cmd_reload" /><span class="cmd cmd_save" /><span class="cmd cmd_savenew" /></div>
+			<div class='query-columns'>
+			<label>Columns</label>
+				<xsl:call-template name="columns" />
+			</div>
+		</div>	  
+    </div>
+    <div class="note" ><span class="label" >echo: </span><span class="value"><xsl:value-of select="echoedSearchRetrieveRequest" /></span>;<span class="label" >duration: </span><span class="value"><xsl:value-of select="extraResponseData/duration" /></span>;</div>
+</xsl:template>	
+
+<xsl:template name="columns">
+	<table>
+	<tr><td valign="top">
+	<div class="columns-selected" >	
+	<!-- 
+		<span class="label">selected columns</span>
+		<ul class="query-columnslist">
+			<xsl:for-each select="$columns/*">
+  				<li><xsl:value-of select="@label"/><span class='cmd cmd_del'/></li>
+  			</xsl:for-each>
+  		</ul>
+	 -->
+  	</div>
+  	</td><td valign="top">
+  		<div>
+  		  	<span class="label" >format:</span>
+			<select class="value-format">
+			
+			<option value="htmltable">
+				<xsl:choose>
+				<xsl:when test="contains($format, 'htmltable')">
+					<xsl:attribute name="selected">selected</xsl:attribute>
+				</xsl:when>
+				</xsl:choose><xsl:text>table</xsl:text>		
+			</option>
+			<option value="htmllist">
+				<xsl:choose>
+				<xsl:when test="contains($format, 'htmllist')">
+					<xsl:attribute name="selected">selected</xsl:attribute>
+				</xsl:when>
+				</xsl:choose><xsl:text>list</xsl:text>
+			</option>
+			</select>
+		</div>
+  	<xsl:if test="extraResponseData/usedProfiles" >
+  		<div class="used-profiles">
+	  		<span class="label">used profiles in whole result</span>
+			<ul>
+				<xsl:for-each select="extraResponseData/usedProfiles/profile" >
+					<li><a href="{@id}" ><xsl:value-of select="@name"/></a><span class="note">|<xsl:value-of select="@count"/>|</span></li>
+				</xsl:for-each>
+			</ul>
+		</div>
+	</xsl:if>
+	</td></tr>	
+	<xsl:variable name="resultSummary" >		
+		<!-- wrap in <Terms> to make digestible for model2matrix -->
+		<xsl:variable name="terms" >
+			<Terms>
+			<!-- TODO: if already provided by mdrepo, use that, otherwise DIY -->		
+			<xsl:choose>
+				<xsl:when test="extraResponseData/resultSummary"><xsl:copy-of select="extraResponseData/resultSummary/Term" /></xsl:when>
+				<xsl:otherwise>
+				<!-- TODO! -->
+				</xsl:otherwise>
+			</xsl:choose>
+			</Terms>
+		</xsl:variable>
+		<xsl:apply-templates select="$terms" mode="matrix" />
+	</xsl:variable> 	
+	<!--   <xsl:message><xsl:value-of select="$resultSummary/*/name()" /> </xsl:message> -->
+	
+	<tr><td colspan="2">	
+	<div class="result-summary">	
+		<span class="label">structure summary of shown result</span>	
+		<!--  calling template in terms2view.xsl -->
+		<xsl:apply-templates select="$resultSummary" mode="terms-tree" />		
+	</div>	
+	</td></tr>
+	</table>
+</xsl:template>
+
+<xsl:template match="records" mode="table">
+    
+	<table class="show">		
+		<thead><tr><th>pos</th>		
+			<xsl:for-each select="$columns/*">
+  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
+  			</xsl:for-each>  			
+		</tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="CMD" mode="table" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+
+<xsl:template match="records" mode="list">
+    
+	<table class="show">		
+		<thead><tr><th>pos</th><th>record</th>			  			
+		</tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="CMD" mode="list" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+<!-- FIXME:   there should be a @match=`record` template to make it SRU-compatible -->
+
+<xsl:template match="CMD" mode="table">
+
+	<xsl:variable name="curr_record" select="." />
+	<xsl:variable name="fields" >
+		<xsl:for-each select="$columns/*">
+	  			<!-- <td ><xsl:value-of select="$curr_cmd//*[name()=current()]" /></td> -->
+	<!--  	<xsl:message><xsl:copy-of select="."></xsl:copy-of> </xsl:message> -->
+	 				 <xsl:variable name="curr_col_xpath" select="@xpath" />
+	  			<td> 			
+	  				<xsl:for-each select="$curr_record">
+	  					<xsl:call-template name="format-field" >
+	  						<xsl:with-param name="elems" select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
+	  					</xsl:call-template> 					
+	  				
+	  				</xsl:for-each>
+	  			</td>
+	  			</xsl:for-each>
+	  </xsl:variable>
+
+	<xsl:call-template name="record-table-row" >
+		<xsl:with-param name="fields" select="$fields" />
+	</xsl:call-template>
+	
+</xsl:template>
+
+<xsl:template match="CMD" mode="list">
+
+		<xsl:variable name="curr_record" select="." />			
+		<xsl:variable name="cmd_sel_fields" >
+			<xsl:for-each select="$columns/*">
+ 				<xsl:variable name="curr_col_xpath" select="@xpath" />  			 			
+  				<xsl:for-each select="$curr_record">  				
+  					<xsl:copy-of select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
+  				</xsl:for-each>  			
+  			</xsl:for-each>
+  		</xsl:variable>
+		<xsl:variable name="fields" >
+			<div>
+				<xsl:apply-templates select="$cmd_sel_fields" mode="format-xmlelem" />
+			</div>
+		</xsl:variable>
+
+	<xsl:call-template name="record-table-row" >
+		<xsl:with-param name="fields" select="$fields" />
+	</xsl:call-template>
+											
+</xsl:template>
+
+
+<xsl:template name="record-table-row">
+<xsl:param name="fields" />
+<!-- @field absolute_position compute records position over whole recordset, ie add `startItem` (important when paging)
+ -->
+	<xsl:variable name="absolute_position" select="if (number($startItem)=number($startItem)) then number($startItem) + position() - 1 else  position()" />
+	
+		<tr>
+		<td rowspan="2">
+			<xsl:choose>
+				<xsl:when test="exists(.//MdSelfLink)" >
+					<xsl:choose>
+						<xsl:when test="contains($format, 'htmlsimple')" >
+						<a class="internal" href="{concat('../../record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository_name)}" >
+								<xsl:value-of select="$absolute_position" />
+						</a>						
+						</xsl:when>
+						<xsl:otherwise>
+						<a class="internal" href="{concat('record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository_name)}" >
+								<xsl:value-of select="$absolute_position" />
+						</a>
+						</xsl:otherwise>
+					</xsl:choose>
+					<span class="cmd cmd_detail" ></span>				
+					<span class="cmd cmd_save" ></span>						
+				</xsl:when>
+				<xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise>
+			</xsl:choose>
+		</td>		
+		<td colspan="{count($columns/*)}" >
+				<xsl:call-template name="getContext" />
+			<div class="title" ><xsl:call-template name="getName" /></div>			
+		</td>
+		</tr>
+		<tr>
+			<xsl:copy-of select="$fields" />						
+		</tr>									
+</xsl:template>
+
+
+<xsl:template match="records" mode="simple">
+    
+    <form action="" method="get">
+				<input type="text" name="q" ><xsl:attribute name="value"><xsl:value-of select="$q"/></xsl:attribute> </input>				
+				<input type="submit" value="Submit" > </input><br/>				
+	</form>
+	<xsl:call-template name="header" />	
+	<table class="show">		
+		<thead><tr><th>pos</th>		
+			<xsl:for-each select="$columns/*">
+  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
+  			</xsl:for-each>  			
+		</tr></thead>
+		<tbody>	
+			<xsl:apply-templates select="CMD" mode="table" />	 			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/mdset_pazpar2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/mdset_pazpar2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/mdset_pazpar2view.xsl	(revision 1516)
@@ -0,0 +1,444 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:saxon="http://saxon.sf.net/"
+  xmlns:my="myFunctions" 
+>
+<!-- 
+<purpose> generate html view (probably various formats of a MDRepository response.</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>	
+	<change on="2010-03-26" type="created" by="vr">based on cmdi/scripts/cmdinst2view.xsl</change>	
+</history>
+-->
+ <xsl:import href="model2matrix.xsl"/>
+<xsl:import href="terms2view.xsl"/> 
+	<xsl:import href="cmd_commons.xsl"/>
+	<xsl:import href="util_xml_ay.xsl"/>
+
+<xsl:output method="html" />
+
+<xsl:param name="startItem">1</xsl:param>
+<xsl:param name="maximumItems">50</xsl:param>
+
+<!-- <xsl:param name="format" select="'table'" /> table|list|detail -->
+<xsl:param name="cols" >auto
+	<!--  Id,Title,Location
+<col label="id">Id</col>
+<col label="id">idno</col>
+<col label="name">Name</col>
+<col label="title">Title</col>
+<col label="title">title</col>
+<col label="loc" >Location</col>
+<col label="loc" >pubPlace</col>
+<col label="lang" >language</col>
+
+ -->
+</xsl:param>
+
+<xsl:param name="mode" select="'html'" />
+<xsl:param name="title" >
+	<xsl:text>MDRecordSet </xsl:text>
+</xsl:param>
+
+	<xsl:param name="numberOfRecords" >
+		<xsl:value-of select="/searchRetrieveResponse/numberOfRecords | /show/total"></xsl:value-of>
+	</xsl:param>
+	
+	<xsl:variable name="records" >
+		<xsl:choose>
+			<xsl:when test="exists(/show/hit)">
+				<xsl:copy-of select="/show/hit"  />
+			</xsl:when>				
+			<xsl:otherwise>
+				<xsl:copy-of select="/searchRetrieveResponse/records/record"  />
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:variable>
+
+<xsl:variable name="columns" >
+<!-- <xsl:message>COLUMNS: <xsl:value-of select="$cols" /><xsl:value-of select="string-length($cols)" /></xsl:message>  -->
+	<xsl:variable name="colarray" select="tokenize($cols,',')"/>
+	<xsl:for-each select="$colarray" >
+		<col key="{.}" label="{replace(.,'^.*\.([^.]+)$','$1')}" xpath_osbolete="{replace(.,'\.','/')}" xpath="{my:index2xpath(.)}" />
+		<!-- if (contains(.,'.')) then reverse(.) else . -->
+	</xsl:for-each>
+	<xsl:if test="count($colarray)=0" >	
+		<xsl:copy-of select="$autocolumns"></xsl:copy-of>
+		 <xsl:message>AUTOCOLUMNS: <xsl:copy-of select="$autocolumns" /><xsl:value-of select="count($autocolumns)" /></xsl:message> 
+	</xsl:if>
+	
+</xsl:variable>
+
+<xsl:variable name="autocolumns" >
+	<xsl:variable name="precompute">
+		<xsl:for-each-group select="//Components//*[not(*)][exists(text())]" group-by="name()" >			
+			<xsl:sort select="sum(current-group()/string-length(string-join(text(),';')))" order="descending" />
+			<!-- <xsl:message>precomputing: <xsl:value-of select="name()" />
+				count: <xsl:value-of select="count(current-group())" /> sum:<xsl:value-of select="sum(current-group()/string-length(string-join(text(),';')))" /></xsl:message> -->
+			<col key="{name()}" label="{name()}" xpath="{name()}" />
+		</xsl:for-each-group>
+	</xsl:variable>
+	 <!-- <xsl:message>precompute: <xsl:copy-of select="$precompute" /><xsl:value-of select="count($precompute)" /></xsl:message>-->
+	<xsl:copy-of select="$precompute/*[position() &lt; $autocolumns_limit]"></xsl:copy-of> 
+</xsl:variable>
+
+<xsl:template name="continue-root" >
+
+<xsl:for-each select="searchRetrieveResponse | show" >
+	
+	<xsl:if test="not(contains($format, 'htmlsimple'))">
+		<xsl:call-template name="header" />
+	</xsl:if>
+	
+	<!--DEBUG:<code><xsl:copy-of select="$records" /></code>
+	;format=<xsl:value-of select="$format"/> (<xsl:value-of select="contains($format, 'htmlpagelist')" />)-->
+	<xsl:choose>
+				<xsl:when test="contains($format,'htmltable')">
+					<xsl:call-template name="record-table" />
+				</xsl:when>				
+				<xsl:when test="contains($format,'htmllist')">
+					<xsl:apply-templates select="records" mode="list" />
+				</xsl:when>				
+				<xsl:when test="contains($format, 'htmldetail')">
+					<xsl:apply-templates select="records" mode="detail" />
+				</xsl:when>
+				<xsl:when test="contains($format, 'htmlpagelist')">
+					<xsl:call-template name="record-list" />
+					<!-- <xsl:apply-templates select="$records" mode="list" />-->
+				</xsl:when>		
+				<xsl:when test="contains($format, 'htmlpage')">
+<!--					<xsl:apply-templates select="records" mode="table" />-->
+						<xsl:call-template name="record-list" />
+				</xsl:when>
+				<xsl:when test="contains($format, 'htmlsimple')">
+					<xsl:apply-templates select="records" mode="simple" />
+				</xsl:when>		
+				<xsl:otherwise>mdset_pazpar2view: unrecognized format: <xsl:value-of select="$format" /></xsl:otherwise>
+	</xsl:choose>
+</xsl:for-each>	
+
+</xsl:template>	
+	
+	
+<xsl:template match="*" >
+	<!-- <xsl:param name="lv" select="1" />-->
+	<!--<xsl:variable name="lv" select="count(ancestor::d)" /> -->
+	<!-- <xsl:if test="string-length(string-join(.//text(),'')) &gt; 1" > -->		 
+		<xsl:variable name="has_text" >
+			<xsl:choose>
+			<!-- FIXME: text()[1] ? is that safe?-->
+				<xsl:when test="normalize-space(text()[1])='Unspecified'">unspecified</xsl:when>
+				<xsl:when test="not(normalize-space(text()[1])='')">text</xsl:when>				
+				<xsl:otherwise>empty</xsl:otherwise>
+			</xsl:choose>
+			
+		</xsl:variable>
+		<div class="elem {$has_text}" ><span class="elem_name"><xsl:value-of select="name()" />:</span>
+		<span class="elem_value"><xsl:value-of select="text()" /></span>
+			<xsl:apply-templates select="*" />					
+		</div>
+	
+</xsl:template>	
+	
+	<!--
+sample header:	
+<numberOfRecords>524</numberOfRecords>
+    <echoedSearchRetrieveRequest>//Title[contains(.,'an')] /db/cmdi-mirror/silang_data 1 50</echoedSearchRetrieveRequest>
+    <diagnostics>50</diagnostics>
+    -->
+<xsl:template name="header">
+	<div class="result-header" >
+	<xsl:attribute name="max_value"><xsl:value-of select="$numberOfRecords" /></xsl:attribute>
+	<xsl:variable name="cnt_hits" select="number(diagnostics|/show/num)" />
+	<span class="data activeclients" ><xsl:value-of select="/show/activeclients" /></span>;
+	<span class="data status" ><xsl:value-of select="/show/status" /></span>;
+	<span class="label" >hits: </span><span class="value hilight"><xsl:value-of select="$numberOfRecords" /></span>;
+	<span class="label" >from:</span><span><input type="text" class="value start_record paging-input"><xsl:attribute name="value">
+    <xsl:value-of select="$startItem"/>
+  </xsl:attribute>
+	</input></span>
+	<span class="label" >max:</span><span><input type="text" class="value maximum_records paging-input" ><xsl:attribute name="value">
+    <xsl:value-of select="if(number($cnt_hits) &lt; number($maximumItems)) then $cnt_hits else $maximumItems"/>    
+	</xsl:attribute></input></span>
+		
+  <span class="cmd cmd_reload" />  
+<!--	<button class="reload">reload</button>-->
+	<span class="cmd cmd_prev">	
+	<xsl:choose>
+		<xsl:when test="$startItem = '1'">
+			<xsl:attribute name="disabled">disabled</xsl:attribute>
+		</xsl:when>
+		</xsl:choose>
+	</span>
+	<span class="cmd cmd_next">	
+	<xsl:choose>
+		<xsl:when test="$maximumItems &gt;= $numberOfRecords">
+			<xsl:attribute name="disabled">disabled</xsl:attribute>
+		</xsl:when>
+		</xsl:choose>
+	</span>
+	<span class="cmd cmd_detail" />	
+	<!--  <div class='ui-context-dialog ui-widget-content columns-wrapper'>  -->
+		<div class='ui-widget-content columns-wrapper'>
+			<div class='cmds'><span class="cmd cmd_reload" /><span class="cmd cmd_save" /><span class="cmd cmd_savenew" /></div>
+			<div class='query-columns'>
+			<label>Columns</label>
+				<xsl:call-template name="columns" />
+			</div>
+		</div>
+				
+    </div>
+    <div class="note" ><span class="label" >echo: </span><span class="value"><xsl:value-of select="echoedSearchRetrieveRequest" /></span>;<span class="label" >duration: </span><span class="value"><xsl:value-of select="extraResponseData/duration" /></span>;</div>
+</xsl:template>	
+
+<xsl:template name="columns">
+	<table>
+	<tr><td valign="top">
+	<div class="columns-selected" >	
+	<!-- 
+		<span class="label">selected columns</span>
+		<ul class="query-columnslist">
+			<xsl:for-each select="$columns/*">
+  				<li><xsl:value-of select="@label"/><span class='cmd cmd_del'/></li>
+  			</xsl:for-each>
+  		</ul>
+	 -->
+  	</div>
+  	</td><td valign="top">
+  		<div>
+  		  	<span class="label" >format:</span>
+			<select class="value-format">
+			
+			<option value="htmltable">
+				<xsl:choose>
+				<xsl:when test="contains($format, 'htmltable')">
+					<xsl:attribute name="selected">selected</xsl:attribute>
+				</xsl:when>
+				</xsl:choose><xsl:text>table</xsl:text>		
+			</option>
+			<option value="htmllist">
+				<xsl:choose>
+				<xsl:when test="contains($format, 'htmllist')">
+					<xsl:attribute name="selected">selected</xsl:attribute>
+				</xsl:when>
+				</xsl:choose><xsl:text>list</xsl:text>
+			</option>
+			</select>
+		</div>
+  	<xsl:if test="extraResponseData/usedProfiles" >
+  		<div class="used-profiles">
+	  		<span class="label">used profiles in whole result</span>
+			<ul>
+				<xsl:for-each select="extraResponseData/usedProfiles/profile" >
+					<li><a href="{@id}" ><xsl:value-of select="@name"/></a><span class="note">|<xsl:value-of select="@count"/>|</span></li>
+				</xsl:for-each>
+			</ul>
+		</div>
+	</xsl:if>
+	</td></tr>	
+	<xsl:variable name="resultSummary" >		
+		<!-- wrap in <Terms> to make digestible for model2matrix -->
+		<xsl:variable name="terms" >
+			<Terms>
+			<!-- TODO: if already provided by mdrepo, use that, otherwise DIY -->		
+			<xsl:choose>
+				<xsl:when test="extraResponseData/resultSummary"><xsl:copy-of select="extraResponseData/resultSummary/Term" /></xsl:when>
+				<xsl:otherwise>
+					<xsl:call-template name="xml-ay">
+						<xsl:with-param name="dataset" select="$records"></xsl:with-param>
+					</xsl:call-template>
+				</xsl:otherwise>
+			</xsl:choose>
+			</Terms>
+		</xsl:variable>
+		<!-- <xsl:apply-templates select="$terms" mode="matrix" />-->
+		<xsl:copy-of select="$terms"></xsl:copy-of>
+	</xsl:variable> 	
+		<!--<xsl:message><xsl:copy-of select="$resultSummary"></xsl:copy-of></xsl:message>-->
+	
+	<tr><td colspan="2">	
+	<div class="result-summary">	
+		<span class="label">structure summary of shown result</span>	
+		<!--  calling template in terms2view.xsl -->		
+		<xsl:apply-templates select="$resultSummary" mode="terms-tree" />		
+	</div>	
+	</td></tr>
+	</table>
+</xsl:template>
+
+
+<xsl:template match="records" mode="table">
+    
+	<table class="show">		
+		<thead><tr><th>pos</th>		
+			<xsl:for-each select="$columns/*">
+  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
+  			</xsl:for-each>  			
+		</tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="CMD" mode="table" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+	<xsl:template name="record-table">
+		
+		<table class="show">		
+			<thead><tr><th>pos</th>		
+				<xsl:for-each select="$columns/*">
+					<th title="{@key}" ><xsl:value-of select="@label"/></th>
+				</xsl:for-each>  			
+			</tr></thead>
+			<tbody>		
+				<xsl:apply-templates select="$records" mode="tablerow" />			
+			</tbody>
+		</table>
+		
+	</xsl:template>
+	
+	<xsl:template name="record-list" >
+    
+	<table class="show">		
+		<thead><tr><th>pos</th><th>record</th>			  			
+		</tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="$records" mode="listitem" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+	
+	
+
+<!-- FIXME:   there should be a @match=`record` template to make it SRU-compatible -->
+
+<xsl:template match="*" mode="tablerow">
+
+	<xsl:variable name="curr_record" select="." />
+	<xsl:variable name="fields" >
+		<xsl:for-each select="$columns/*">
+	  			<!-- <td ><xsl:value-of select="$curr_cmd//*[name()=current()]" /></td> -->
+	<!--  	<xsl:message><xsl:copy-of select="."></xsl:copy-of> </xsl:message> -->
+	 				 <xsl:variable name="curr_col_xpath" select="@xpath" />
+	  			<td> 			
+	  				<xsl:for-each select="$curr_record">
+	  					<xsl:call-template name="format-field" >
+	  						<xsl:with-param name="elems" select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
+	  					</xsl:call-template> 					
+	  				
+	  				</xsl:for-each>
+	  			</td>
+	  			</xsl:for-each>
+	  </xsl:variable>
+
+	<xsl:call-template name="record-table-row" >
+		<xsl:with-param name="fields" select="$fields" />
+	</xsl:call-template>
+	
+</xsl:template>
+
+<xsl:template match="hit" mode="listitem">
+
+		<xsl:variable name="curr_record" select="." />			
+		<xsl:variable name="cmd_sel_fields" >			
+			<xsl:for-each select="$columns/*">
+ 				<xsl:variable name="curr_col_xpath" select="@xpath" />  			 			
+  				<xsl:for-each select="$curr_record">  				
+  					<xsl:copy-of select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
+  				</xsl:for-each>  			
+  			</xsl:for-each>
+  		</xsl:variable>
+		<xsl:variable name="fields" >
+			<div>
+				<xsl:apply-templates select="$cmd_sel_fields" mode="format-xmlelem" />
+			</div>
+		</xsl:variable>
+
+	<xsl:call-template name="record-table-row" >
+		<xsl:with-param name="fields" select="$fields" />
+	</xsl:call-template>
+											
+</xsl:template>
+
+
+<xsl:template name="record-table-row">
+<xsl:param name="fields" />
+<!-- @field absolute_position compute records position over whole recordset, ie add `startItem` (important when paging)
+ -->
+	<xsl:variable name="absolute_position" select="if (number($startItem)=number($startItem)) then number($startItem) + position() - 1 else  position()" />
+	
+		<tr>
+		<td rowspan="2">
+			<xsl:choose>
+				<xsl:when test="exists(.//MdSelfLink)" >
+					<xsl:choose>
+						<xsl:when test="contains($format, 'htmlsimple')" >
+						<a class="internal" href="{concat('../../record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository_name)}" >
+								<xsl:value-of select="$absolute_position" />
+						</a>						
+						</xsl:when>
+						<xsl:otherwise>
+						<a class="internal" href="{concat('record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository_name)}" >
+								<xsl:value-of select="$absolute_position" />
+						</a>
+						</xsl:otherwise>
+					</xsl:choose>
+					<span class="cmd cmd_detail" ></span>				
+					<span class="cmd cmd_save" ></span>						
+				</xsl:when>
+				<xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise>
+			</xsl:choose>
+		</td>		
+		<td colspan="{count($columns/*)}" >
+				<xsl:call-template name="getContext" />
+			<div class="title" ><xsl:call-template name="getName" /></div>			
+		</td>
+		</tr>
+		<tr>
+			<xsl:copy-of select="$fields" />						
+		</tr>									
+</xsl:template>
+
+
+<xsl:template match="records" mode="simple">
+    
+    <form action="" method="get">
+				<input type="text" name="q" ><xsl:attribute name="value"><xsl:value-of select="$q"/></xsl:attribute> </input>
+				
+				<input type="submit" value="Submit" > </input><br/>
+				<label>startItem: </label><input type="text" name="startItem" ><xsl:attribute name="value"><xsl:value-of select="$startItem"/></xsl:attribute> </input><br/>
+				<label> maxItems: </label><input type="text" name="maximumItems" ><xsl:attribute name="value"><xsl:value-of select="$maximumItems"/></xsl:attribute> </input>
+	</form>
+	<table class="show">		
+		<thead><tr><th>pos</th>		
+			<xsl:for-each select="$columns/*">
+  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
+  			</xsl:for-each>  			
+		</tr></thead>
+		<tbody>	
+			<xsl:apply-templates select="CMD" mode="table" />	 			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+<xsl:template name="getContext" >
+		<!--	<div class="is-part-of collections" ><xsl:value-of select=".//IsPartOf" /> </div>-->
+	<div class="ispartof-list"><span class="label">in: </span>
+		<xsl:apply-templates select="location" /> >
+	</div>
+</xsl:template>	
+	
+<xsl:template match="location" >
+		<!-- <a class="internal" href="{concat($default_prefix, my:encodePID(.))}"><xsl:value-of select="." /></a> >-->
+		<a class="external" href="{@id}"><xsl:value-of select="@name" /></a> +
+</xsl:template>
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/model2matrix.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/model2matrix.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/model2matrix.xsl	(revision 1516)
@@ -0,0 +1,429 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:my="myFunctions"
+>
+<!-- 
+<purpose> generate a termMatrix for a model summary (queryModel)</purpose>
+<strategy>match/merge model and CMD-profiles/components</strategy>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-10-09" type="created" by="vr"></change>
+</history>
+-->
+<xsl:import href="cmd_commons.xsl"/>
+
+<xsl:output method="xml" indent="yes" > </xsl:output>
+
+<xsl:template name="continue-root">
+	<xsl:apply-templates mode="matrix"  />
+</xsl:template>
+<xsl:param name="title" select="'Model matrix'"></xsl:param>
+
+
+<!--<xsl:variable name="termsets-model" select="" />-->
+<!--<xsl:variable name="termsets-datcat" select="" />-->
+
+
+<xsl:template match="Termset|Terms" mode="matrix" >
+
+	<!--  hack for bug: missing value in: Terms/Term/@name -->
+	<xsl:variable name="termset_name" select="if (not(Term/@name='')) then Term/@name else replace(Term/@path,'/','')"></xsl:variable>
+
+	<xsl:message>processing model-term: <xsl:value-of select="$termset_name" /> </xsl:message>
+	
+	<xsl:choose>
+	<xsl:when test="$termset_name='all'" >
+		<xsl:call-template name="full-matrix" />		
+	</xsl:when>	
+	<xsl:when test="$termset_name='Components'" >
+		<xsl:message>model2matrix.Components.repo_name: <xsl:value-of select="$repository_name" /></xsl:message>
+		<!--  get the whole Termset for every root-node (teiHeader, TCP, ...) -->
+		<Termsets>
+		<xsl:for-each select="Term/Term" >
+			<xsl:variable name="termset_name" select="@name" />						
+			
+			<xsl:variable name="termset_matrix" >
+				<xsl:choose>
+					<!-- if existing children, process directly those (enrich them in a separate matrix-run  -->
+					<xsl:when test="Term">
+						<xsl:variable name="terms" >							
+							<Termset>
+								<xsl:copy-of select="." />
+							</Termset>	
+						</xsl:variable>						
+						
+						<xsl:apply-templates select="$terms" mode="matrix" />						
+					</xsl:when>
+					<!--  else get the full summary for given termset -->
+					<xsl:otherwise>
+					<xsl:variable name="resolved_termset_uri" select="concat($model_matrix_uri,$termset_name,'&amp;maxdepth=8&amp;repository=',$repository_name)" />
+						<xsl:message>processing model-term($resolved_termset_uri): <xsl:value-of select="$resolved_termset_uri" /> </xsl:message>			
+						<xsl:copy-of select="document($resolved_termset_uri)" /> 
+					</xsl:otherwise>
+				</xsl:choose>
+			</xsl:variable>
+			
+			<!--<xsl:message><xsl:copy-of select="$termset" ></xsl:copy-of></xsl:message> --> 
+
+<!-- this should be obsolete..
+			<xsl:variable name="termset_matrix" >
+				<xsl:for-each select="$termset" >
+					<xsl:apply-templates mode="matrix"  />
+				</xsl:for-each>				
+			</xsl:variable>
+	 -->					
+			<Termset>
+				<!-- <xsl:copy-of select="$terms_setup//Termset[@name=$termset_name]/@*"  />  -->
+				<xsl:copy-of select="$termset_matrix/Termset/@*" />
+
+				<xsl:copy-of select="$termset_matrix/Termset/*" />			
+			</Termset>			
+		</xsl:for-each>
+		</Termsets>
+	</xsl:when>
+	<xsl:otherwise>
+		<xsl:variable name="termset_name" select="Term/@name" />
+		<xsl:variable name="profile" select="my:profilematrix($termset_name)" />
+		<xsl:message>corresponding profile: <xsl:value-of select="concat($profile/@name, '#', $profile/@id)"/>  </xsl:message>
+		<!--  <xsl:copy-of select="$profile"  /> -->
+
+		<xsl:variable name="setup_entry" select="$terms_setup//Termset[@name=$termset_name]" />
+		<xsl:message>corresponding terms_setup-entry: <xsl:value-of select="$setup_entry/concat(@name, '#', @id)"/>  </xsl:message>
+
+		<xsl:variable name="prematrix">
+			<Terms name="{$termset_name}">
+				<xsl:copy-of select="@*"  />
+				<xsl:copy-of select="$setup_entry/@*"  />
+				<xsl:apply-templates mode="matrix"  >
+					<xsl:with-param name="profile" select="$profile"></xsl:with-param>
+				</xsl:apply-templates>				
+			</Terms>
+		</xsl:variable>
+		
+		<xsl:variable name="matrix">
+			<Termset>
+				<xsl:copy-of select="$prematrix/Terms/@*" />
+			<xsl:for-each select="$prematrix/Terms/Term">
+			
+				<xsl:apply-templates select="." mode="min-context" >
+					<xsl:with-param name="matrix" select="$prematrix"></xsl:with-param>
+				</xsl:apply-templates>
+					<!-- 	
+				<xsl:copy>
+				<xsl:copy-of select="@*"></xsl:copy-of>
+					<xsl:attribute name="path" select="$path" />
+				</xsl:copy>
+				-->
+			</xsl:for-each> 
+			</Termset>
+		</xsl:variable>
+		
+		<xsl:copy-of select="$matrix" />	
+		
+	</xsl:otherwise>	
+	</xsl:choose>
+	
+
+</xsl:template>
+
+<xsl:template name="full-matrix" >
+<!--  collect all model termMatrix -->
+		<xsl:variable name="model_termsets_uri" select="concat($model_matrix_uri,'Components', '&amp;maxdepth=1&amp;repository=',$repository_name)" />
+	<xsl:message>full-matrix.model_termsets_uri: <xsl:value-of select="$model_termsets_uri"/>  </xsl:message>				
+		<xsl:variable name="model_termsets" select="document($model_termsets_uri)" />
+
+
+		<!--  collect all datcat terms -->
+		<xsl:variable name="datcats_uri" select="$datcats_terms_uri" />	
+		<xsl:variable name="datcat_termsets" select="document($datcats_uri)" />
+
+		<!--  resolve/invert datcat->Terms -->		
+		<xsl:variable name="datcat_termsets_resolved" >
+				<xsl:apply-templates select="$datcat_termsets//Termset[@type='dcr']" mode="resolve-datcat" >
+					<xsl:with-param name="model_termsets" select="$model_termsets" />
+				</xsl:apply-templates> 
+		</xsl:variable>
+		
+		<!-- +  resolve RR: rels(datcat,datcat) -->		
+		<xsl:variable name="relcat_termsets_resolved" >
+				<xsl:apply-templates select="$datcat_termsets//Termset[@type='rr']" mode="resolve-relcat" >
+					<xsl:with-param name="datcat_termsets" select="$datcat_termsets_resolved" />
+				</xsl:apply-templates> 
+		</xsl:variable>
+						
+	<Termsets>
+		<xsl:copy-of select="$model_termsets/Termsets/*" />
+		<xsl:copy-of select="$datcat_termsets_resolved/*" />		
+		<xsl:copy-of select="$relcat_termsets_resolved/*" />
+	</Termsets>
+	
+		
+</xsl:template>
+
+<xsl:template match="Termsets|Termset" mode="resolve-datcat" >
+	<xsl:param name="model_termsets" />
+	<xsl:copy>
+		<xsl:copy-of select="@*"></xsl:copy-of>
+		<xsl:apply-templates mode="resolve-datcat">
+				<xsl:with-param name="model_termsets" select="$model_termsets" />
+		</xsl:apply-templates>
+			
+	</xsl:copy>
+</xsl:template>
+
+<xsl:template match="Term" mode="resolve-datcat" >
+	<xsl:param name="model_termsets" />
+	<xsl:copy>
+		<xsl:attribute name="path" select="concat(ancestor::Termset/@id,':',@name)"></xsl:attribute>
+		<xsl:copy-of select="*|@*"></xsl:copy-of>
+		<xsl:variable name="matching_model_terms" select="$model_termsets//Term[@datcat=current()/@datcat]" />
+<!-- 		<xsl:attribute name="name" select="$matching_model_terms/"></xsl:attribute>  -->
+		<xsl:copy-of select="$matching_model_terms" />
+	</xsl:copy>
+</xsl:template>
+
+<xsl:template match="Termsets|Termset" mode="resolve-relcat" >
+	<xsl:param name="datcat_termsets" />
+	<xsl:copy>
+		<xsl:copy-of select="@*"></xsl:copy-of>
+		<xsl:apply-templates mode="resolve-relcat">
+				<xsl:with-param name="datcat_termsets" select="$datcat_termsets" />
+		</xsl:apply-templates>			
+	</xsl:copy>
+</xsl:template>
+		
+<xsl:template match="Term[@type='rel']" mode="resolve-relcat" >
+	<xsl:param name="datcat_termsets" />
+	<xsl:copy>
+		<xsl:variable name="matching_datcat_terms" select="$datcat_termsets//Term[@type='datcat'][@datcat=current()/@datcat]" />
+		<!-- <xsl:variable name="matching_datcat_relterms" select="$datcat_termsets//Term[@datcat=current()/@datcat]" /> -->
+		<xsl:variable name="name" select="($matching_datcat_terms//@name)[1]"></xsl:variable>
+		<xsl:attribute name="name" select="$name"></xsl:attribute>
+		<xsl:attribute name="path" select="concat(ancestor::Termset/@id,':',$name)"></xsl:attribute>
+		<xsl:copy-of select="@*"></xsl:copy-of>		
+		<xsl:copy-of select="$matching_datcat_terms" />
+		<xsl:apply-templates select="Term[@type='rel']" mode="resolve-relcat">
+			<xsl:with-param name="datcat_termsets" select="$datcat_termsets"/>
+		</xsl:apply-templates>		
+	</xsl:copy>
+</xsl:template>
+
+<!-- 
+<xsl:template match="@*|*" mode="resolve-datcat" >	
+	<xsl:copy-of select="." />
+</xsl:template>
+ -->
+
+<!--  computing minimal unique path/index -->
+<xsl:template match="Term" mode="min-context" >
+	<xsl:param name="matrix" />
+	<xsl:param name="term" select="." />
+	
+	
+	<xsl:variable name="termset_id" select="if (exists(ancestor::Terms/@id)) then ancestor::Terms/@id else ancestor::Terms/@name" />
+	
+	<xsl:variable name="ambi_terms" select="$matrix//Term[lower-case(@name)=lower-case($term/@name)]" />
+			
+	<xsl:variable name="path" >			
+			<!-- don't apply prefix for the root element (=profile-name) -->		
+			<xsl:if test="not($term/parent::Terms)" >
+				<xsl:value-of select="$termset_id" ></xsl:value-of><xsl:text>:</xsl:text>
+			</xsl:if> 
+			
+			<xsl:choose>		
+				<xsl:when test="count($ambi_terms) &gt; 1" >
+						<xsl:variable name="ambi_terms_parent" select="$ambi_terms[@name=$term/@name]" />
+							<xsl:variable name="term1" select="." />
+							<xsl:message>Term:<xsl:value-of select="$term1/@context" />|ambi: <xsl:value-of select="count($ambi_terms)" />|</xsl:message>
+							<xsl:variable name="minimal_contexts" >
+								<xsl:for-each select="$ambi_terms[not(@context=$term1/@context)]" > 
+		<!--						[position() &gt; current()/position()]" >			-->
+									<item>									
+										<xsl:variable name="diff"  select="my:diffContext($term1,.)" />
+										<!-- <xsl:message>diff: <xsl:value-of select="count($diff)" /></xsl:message>-->
+										<xsl:copy-of select="$diff" />									 
+																											
+									</item>									
+								</xsl:for-each>
+							</xsl:variable>
+<!-- DEBUG:				diffcontext1:<xsl:value-of select="count($minimal_contexts)" />
+|direct: <xsl:value-of select="count($minimal_contexts[1]/*)" />: <xsl:value-of select="$minimal_contexts[1]/*" />|
+|item1: <xsl:value-of select="count($minimal_contexts/item[1]/*)" />: <xsl:value-of select="$minimal_contexts/item[1]/*" />|
+						 cnt_mci:<xsl:value-of select="$minimal_contexts/*/count(tokenize(.,' '))" ></xsl:value-of>/
+							 max-strlen:<xsl:value-of select="max($minimal_contexts/*/string-length(.))" ></xsl:value-of>
+							 -->							 
+						<xsl:variable name="last_contexts" select="distinct-values($minimal_contexts/*/tokenize(.,' ')[last()])" ></xsl:variable>
+						<!--  to get the order right -->
+						<xsl:for-each select="$last_contexts" >
+							<xsl:sort select="index-of(tokenize($term1/@context,'\.'),.)[1]" /> 
+								<xsl:value-of select="." />.</xsl:for-each>
+			<!-- DEBUG: 	cnt_lc:<xsl:value-of select="count($last_contexts)" />}
+						cnt_tok:<xsl:value-of select="count(tokenize($term1/@context,'\.'))" />
+						 
+						<xsl:for-each select="tokenize($term1/@context,'\.')" >
+								tokenizing-context:<xsl:value-of select="." />,<xsl:value-of select="current()" />|
+							<xsl:if test="$last_contexts[.=current()]" >
+									{<xsl:value-of select="." />}
+
+							</xsl:if>
+						</xsl:for-each>
+						-->
+<!--								<xsl:value-of select="string-join(distinct-values($minimal_contexts/*/tokenize(.,' ')[last()]),'.')" ></xsl:value-of>		-->						
+				</xsl:when>
+				<xsl:otherwise>			
+				</xsl:otherwise>
+			</xsl:choose>
+			<xsl:value-of select="@name" ></xsl:value-of>
+	</xsl:variable>
+	
+	<xsl:copy>
+		<xsl:copy-of select="@*"></xsl:copy-of>
+<!-- 		<xsl:copy-of select="$path" />-->
+			<xsl:attribute name="path" select="$path" />
+		
+		<xsl:apply-templates select="Term" mode="min-context" >
+				<xsl:with-param name="matrix" select="$matrix"></xsl:with-param>
+		</xsl:apply-templates>
+			
+		<xsl:copy-of select="v"  />
+	</xsl:copy>							
+	
+</xsl:template>
+
+<xsl:function name="my:diffContext" >
+	<xsl:param name="c1" />
+	<xsl:param name="c2" />
+	 <!-- <xsl:message>C1:<xsl:copy-of select="count($c1/ancestor::Term/@name)" /></xsl:message> 
+	 <xsl:message><xsl:value-of select="$c1/ancestor::Term/@name" /></xsl:message>
+	 <xsl:message>C2:<xsl:value-of select="$c2/ancestor::Term/@name" /></xsl:message>
+	  -->
+<!--		<xsl:value-of select="($c1/ancestor::Term/@name except $c2/ancestor::Term/@name)[last()]" />-->
+
+	<!-- <xsl:value-of select="string-join($c1/ancestor::Term/@name except $c2/ancestor::Term/@name,'.')" /> -->
+	<!--   <xsl:copy-of select="$c1/ancestor::Term/@name except $c2/ancestor::Term/@name" />-->
+	 <xsl:variable name="diff" select="$c1/ancestor::Term/xs:string(@name[not(.=$c2/ancestor::Term/@name)])" />
+	 <!-- <xsl:message>diff: <xsl:value-of select="$diff" /></xsl:message>  -->
+	   <xsl:copy-of select="$diff" />
+	
+</xsl:function>
+
+<!--  obsoleted?!  -->
+<xsl:function name="my:pick" >
+	<xsl:param name="partial_result" />
+	<xsl:param name="set" />
+
+		<xsl:choose>
+			<xsl:when test="count($set/*) &gt; 1" >
+			<xsl:message>count-rest:<xsl:value-of select="count($set/*[position()&gt; 1])" /></xsl:message>					  
+<!--					<xsl:variable  name="pickone" select="$set/*[1]/tokenize(.,' ')[last()]" />
+			<xsl:variable  name="rest"  select="my:pick($pickone  $set/*[position()&gt; 1]))" />
+				
+					<xsl:message>rest:<xsl:value-of select="count($rest)" /></xsl:message>
+				-->
+				<!--  <xsl:choose>
+					<xsl:when test="count($intersect &gt; 0)" >					
+							<xsl:copy-of select="$intersect" />							
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:message>no-intersect:</xsl:message>
+							<xsl:message><xsl:value-of select="count($set/*[1])" />/<xsl:value-of select="count($set/*[1])" /></xsl:message>
+							<xsl:copy-of select="$set/*[1] union my:intersect($set/*[position()&gt; 1])" />
+					</xsl:otherwise>
+				</xsl:choose>
+				 -->		 		
+			</xsl:when>
+			<xsl:when test="count($set) = 1" >
+				<xsl:copy-of select="$set[1]/*" />		
+				<xsl:message>setitem1:<xsl:copy-of select="$set[1]/*" /></xsl:message>
+			</xsl:when>
+			<xsl:otherwise>				
+			</xsl:otherwise>
+		</xsl:choose>
+
+	
+</xsl:function>	
+
+<xsl:function name="my:intersect" >	
+	<xsl:param name="set" />
+		<xsl:message>set-size:<xsl:value-of select="count($set/*)" /></xsl:message>
+		<xsl:choose>
+			<xsl:when test="count($set/*) &gt; 1" >
+			<xsl:message>count-rest:<xsl:value-of select="count($set/*[position()&gt; 1])" /></xsl:message>
+					<xsl:variable  name="rest"  select="my:intersect($set/*[position()&gt; 1])" />
+					<xsl:message>rest:<xsl:value-of select="count($rest)" /></xsl:message>  
+				<xsl:variable  name="intersect" select="$set/*[1][.=$rest/*]" />
+				
+				<xsl:message>intersect:<xsl:value-of select="count($intersect)" /></xsl:message>
+				<xsl:choose>
+					<xsl:when test="count($intersect &gt; 0)" >					
+							<xsl:copy-of select="$intersect" />							
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:message>no-intersect:</xsl:message>
+							<xsl:message><xsl:value-of select="count($set/*[1])" />/<xsl:value-of select="count($set/*[1])" /></xsl:message>
+							<xsl:copy-of select="$set/*[1] union my:intersect($set/*[position()&gt; 1])" />
+					</xsl:otherwise>
+				</xsl:choose>		 		
+			</xsl:when>
+			<xsl:when test="count($set) = 1" >
+				<xsl:copy-of select="$set[1]/*" />		
+				<xsl:message>setitem1:<xsl:copy-of select="$set[1]/*" /></xsl:message>
+			</xsl:when>
+			<xsl:otherwise>				
+			</xsl:otherwise>
+		</xsl:choose>
+</xsl:function>
+
+<!-- 
+<xsl:function name="my:intersect" >
+	<xsl:param name="set" />
+	
+	
+			<xsl:value-of select="my:intersect(terms1 intersect *" />
+
+	<xsl:for-each select="$set/item" >
+		<xsl:variable name="terms1" select="*" />			
+		<xsl:for-each select="$set/item" >
+			<xsl:value-of select="my:intersect_pairwise(terms1,terms2) intersect *" />
+			
+		</xsl:for-each>
+	</xsl:for-each>
+	
+</xsl:function>
+-->
+
+<xsl:template match="Term" mode="matrix" >
+	<xsl:param name="profile" />
+
+			<xsl:variable name="context" select="my:context(.)" >
+							<!--  <xsl:for-each select="ancestor::CMD_Component" >
+								<xsl:value-of select="@name" />.</xsl:for-each>-->
+					</xsl:variable>	
+			
+			<xsl:variable name="corresp_cmdterm" select="if (parent::Terms) then $profile else $profile//*[@context=$context]" />					
+			<!--
+			<xsl:message>context: <xsl:copy-of select="$context" /> </xsl:message>  
+			<xsl:message>corresp_cmdterm: <xsl:copy-of select="$profile/Term[@context=$context]" /> </xsl:message>--> 
+			<xsl:variable name="datcat" select="$corresp_cmdterm/@datcat" >
+					<!--  <xsl:for-each select="ancestor::CMD_Component" >
+						<xsl:value-of select="@name" />.</xsl:for-each>-->
+			</xsl:variable>
+			<Term  elem="{@name}" datcat="{$datcat}" corresponding_component="{$corresp_cmdterm/@id}" 
+							parent="{ancestor::Term[1]/@name}"  context="{$context}" >
+							<xsl:copy-of select="@*[not(name()='path')]" /> 
+				<xsl:apply-templates mode="matrix" >
+					<xsl:with-param name="profile" select="$profile" />
+				</xsl:apply-templates>
+				
+			</Term>
+			
+			
+	
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/model2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/model2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/model2view.xsl	(revision 1516)
@@ -0,0 +1,316 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:my="myFunctions"
+>
+<!-- 
+<purpose> generate a view for a model summary (generated by model_stats.xq</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-01-08" type="created" by="vr">from cmd2stats.xsl</change>	
+	<change on="2010-03-27" type="changed" by="vr">include cmd_commons.xsl</change>	
+</history>
+-->
+<xsl:import href="cmd_commons.xsl"/>
+<xsl:import href="model2matrix.xsl"/>
+
+
+<!-- <xsl:param name="size_lowerbound">0</xsl:param>
+<xsl:param name="max_depth">0</xsl:param>
+<xsl:param name="freq_limit">20</xsl:param>
+<xsl:param name="show">file</xsl:param> -->
+<xsl:param name="sort">x</xsl:param> <!-- s=size|n=name|t=time|x=default -->
+<xsl:param name="name_col_width" >50%</xsl:param>
+
+<!-- <xsl:param name="mode" select="'htmldiv'" /> -->
+<xsl:param name="title" select="'Terms'" />
+
+<!--
+<xsl:param name="detail_uri_prefix"  select="'?q='"/> 
+-->
+<xsl:output method="html" /> 
+
+
+<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.' />
+
+<xsl:template name="continue-root">
+
+		<xsl:variable name="termmatrix">
+			<xsl:apply-templates mode="matrix" />
+		</xsl:variable>
+		
+		<xsl:for-each select="$termmatrix" >
+			<xsl:call-template name="continue" />
+		</xsl:for-each>
+
+</xsl:template>
+
+<xsl:template name="continue">
+	<div>	
+		<xsl:choose>    	 	
+    	 	 <xsl:when test="$format='model2htmltable'" >
+    	 		<xsl:call-template name="header"/>    
+    	 		<xsl:call-template name="table"/>
+    	 		    
+    	 	</xsl:when>
+    	 	<xsl:when test="$format='model2htmlpage'" >
+    	 		<xsl:call-template name="header"/>
+			    <div id="model">
+			    	<xsl:call-template name="terms-tree" />
+			    	<xsl:call-template name="list-datcats" />
+					<!-- <table id="modeltree" >
+						<thead>
+						<tr><th class="treecol">Name</th><th>Count Elems</th><th>Count Text</th><th>Count Distinct Text</th><th>Path</th><th>comp/datcat</th></tr>
+						</thead>					
+						<xsl:apply-templates select="*/Term" mode="detail">
+							<xsl:sort order="ascending" select="@n" />							
+						</xsl:apply-templates>
+					</table>  -->
+				</div>	    	 
+								    		
+	  	 	</xsl:when>	  	 	     	
+    	 	<xsl:when test="$format='model2htmllist'" >    	 		
+    	 		<xsl:call-template name="list"/>    
+    	 	</xsl:when>
+    	 	<xsl:when test="$format='model2htmlselect'" >    	 					      
+			      		<select id="terms-select">		
+		    	 				<xsl:apply-templates select="./*/*/Term" mode="select"/>		    	 				
+		    				</select>	    	 				    		
+	    	 	</xsl:when>
+    	 	<xsl:otherwise>
+    	 		<xsl:call-template name="list"/>    
+    	 	</xsl:otherwise>
+    	 </xsl:choose>
+    </div>	 
+	
+</xsl:template>	
+
+<xsl:template name="header">
+	<h2>MDRepository Statistics</h2>	
+	<table>
+		<tbody>
+			<tr><td>context-path</td><td align="right"><xsl:value-of select="/Terms/Term/@path"/></td></tr>
+			<tr><td>maxdepth</td><td align="right"><xsl:value-of select="/Terms/@depth"/></td></tr>
+			<tr><td>count distinct Terms</td><td align="right"><xsl:value-of select="count(distinct-values(//Term/@path))"/></td></tr>
+			<tr><td>count Terms</td><td align="right"><xsl:value-of select="format-number(sum(//Term/@count),'#.###','european')"/></td></tr>
+			<tr><td>count txt</td><td align="right"><xsl:value-of select="format-number(sum(//Term/@count_text),'#.###','european')"/></td></tr>									
+		</tbody>
+	</table>
+</xsl:template>		
+	
+<xsl:template name="table">
+	<table>
+		<caption>Terms Usage</caption>
+		<thead><tr><th>name/path</th><th>count elems</th><th>count text</th><th>count distinct text</th></tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="*" mode="table" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+<xsl:template match="Term" mode="table">
+				<tr><td><a href="?q={@path}" >
+					<xsl:value-of select="translate(@path,'/','.')"/></a></td>
+						<td align="right"><xsl:value-of select="@count"/></td>
+						<td align="right"><xsl:value-of select="@count_text"/></td>						
+						<td align="right"><xsl:value-of select="@count_distinct_text"/></td>						
+				</tr>							
+				<xsl:apply-templates select="*" mode="table" />			
+</xsl:template>
+
+<xsl:template name="list">
+	<div id="terms">		
+		<!--  format:<xsl:value-of select="$format" /> -->
+		<xsl:variable name="translated_term" select="translate(replace(/*/Term[1]/@path,'//',''),'/','.')" />
+		<!-- <input id="query_terms" value="{$translated_term}" /> -->		
+		<ul class="treeview">
+			<xsl:apply-templates select="/*/Term/Term" mode="list" />			
+		</ul>	
+	</div>
+</xsl:template>
+
+<xsl:template match="Term" mode="list" >
+		<!--  <xsl:variable name="translated_path" select="translate(replace(@path,'//',''),'/','.')" /> -->
+				<li><div class="cmds-elem-plus"><span class="detail-caller"><a href="{concat($detail_model_prefix,@context)}" >
+					<xsl:value-of select="@name"/></a></span>
+					<span class="note">|<xsl:value-of select="@count"/>/<xsl:value-of select="@count_text"/>/<xsl:value-of select="@count_distinct_text"/>|</span>					
+					<span class="data comppath"><xsl:value-of select="@path" /></span>		 
+					<span class="cmd cmd_filter"><xsl:text> </xsl:text></span>
+					<span class="cmd cmd_detail" ><xsl:text> </xsl:text></span>
+					<span class="cmd cmd_columns" ><xsl:text> </xsl:text></span>
+						<div class="detail">
+							<xsl:for-each select="@*" >
+								<div class="cmds-elem-prop"><span class="label"><xsl:value-of select="name()" />: </span>
+									<span class="value"><xsl:value-of select="." /></span></div>
+							</xsl:for-each>
+						</div>
+					</div>
+					<ul><xsl:apply-templates select="*" mode="list" /></ul>				
+				</li>			
+</xsl:template>
+
+
+<xsl:template name="terms-tree" >
+					<table id="modeltree" >
+						<thead>
+						<tr><th class="treecol">Name</th><th>Count Elems</th><th>Count Text</th><th>Count Distinct Text</th><th>Path</th><th>comp/datcat</th></tr>
+						</thead>					
+						<xsl:apply-templates select="*/Term" mode="detail">
+							<xsl:sort order="ascending" select="@n" />							
+						</xsl:apply-templates>
+					</table>
+</xsl:template>					
+
+<xsl:template match="Term" mode="detail" >
+<xsl:param name="parentid" select="'x-'" />
+
+<xsl:variable name="lv" select="count(ancestor::Term)" />
+
+	<xsl:variable name="xid" >
+		<xsl:choose>
+		<xsl:when test="$lv=0"><xsl:value-of select="concat($parentid,position())" /></xsl:when>
+		<xsl:otherwise><xsl:value-of select="concat($parentid,'-', position())" /></xsl:otherwise>
+		</xsl:choose> 
+	</xsl:variable>
+	
+	<tr id="{$xid}" >
+	  <xsl:if test="$lv!=0" >
+	  	<xsl:attribute name="class" select="concat('child-of-',$parentid)" />
+	  </xsl:if>
+		<td class="treecol" ><xsl:value-of select="@name" /></td>		
+		<td class="number"><xsl:value-of select="@count" /></td>
+		<td class="number"><xsl:value-of select="@count_text" /></td>
+		<td class="number"><xsl:value-of select="@count_distinct_text" /></td>
+		<td><xsl:value-of select="@path" />,<xsl:value-of select="@context" /></td>			
+		<td><xsl:value-of select="@corresponding_component" />,<xsl:value-of select="@datcat" /></td>
+     </tr> 
+		<xsl:if test="Term and ($lv&lt;$max_depth or $max_depth=0)">
+			
+				<xsl:choose>
+					<xsl:when test="$sort='s'">				
+						<xsl:apply-templates select="Term" mode="detail">
+							<xsl:with-param name="parentid" select="$xid" />			
+								<xsl:sort order="descending" select="@count_distinct_text" data-type="number" />
+						</xsl:apply-templates>		
+					</xsl:when>
+					<xsl:when test="$sort='n'">				
+					<xsl:apply-templates select="Term" mode="detail">
+							<xsl:with-param name="parentid" select="$xid" />
+								<xsl:sort order="ascending" select="@n" />
+						</xsl:apply-templates>
+					</xsl:when>
+					<xsl:otherwise>
+					<!--  testwise: show only non empty Terms, no good, because only leaf-elements have filled @count_distinct_text
+						<xsl:apply-templates select="Term[@count_distinct_text &gt; 1]" mode="detail"> -->
+						<xsl:apply-templates select="Term" mode="detail"> 
+							<xsl:with-param name="parentid" select="$xid" />								
+						</xsl:apply-templates>		
+					</xsl:otherwise>
+				</xsl:choose>					
+					
+		</xsl:if>
+	
+</xsl:template>
+
+<xsl:template match="Term" mode="select">
+	<xsl:variable name="lv" select="count(ancestor::Term)" />
+	
+	<option value="{@name}" ><xsl:value-of select="for $i in (2 to $lv) return ' '" /><xsl:value-of select="@name" /> |<xsl:value-of select="@count" />|</option>
+		<xsl:apply-templates select="Term" mode="select" />			
+</xsl:template>
+
+<!-- 
+<xsl:template name="list-datcats" >
+					<table id="datcats" >
+						<thead>
+						<tr><th class="treecol">Name</th><th>Count Elems</th><th>Count Text</th><th>Count Distinct Text</th><th>Path</th><th>comp/datcat</th></tr>
+						</thead>					
+						<xsl:apply-templates select="*/Term" mode="detail">
+							<xsl:sort order="ascending" select="@n" />							
+						</xsl:apply-templates>
+					</table>
+</xsl:template>					
+ -->
+<xsl:template name="list-datcats">
+	<xsl:param name="matrix" select="."></xsl:param>
+	<table>
+		<caption>DatCats |<xsl:value-of select="count(distinct-values($matrix//Term/@datcat))" />| <span class="note">* Click on numbers to see detail </span></caption>
+				<thead><tr><th rowspan="2">id</th><th rowspan="2">name</th>
+					<th colspan="3" >count </th><th rowspan="2">elems</th></tr>
+					<tr><th>profile*</th><th >all*</th><th>elems</th> </tr>		</thead>
+		<tbody>		
+				<xsl:for-each-group select="$matrix//Term" group-by="@datcat">
+					<xsl:sort select="lower-case(@datcat)" order="ascending"/>					
+						<tr><td valign="top"><xsl:value-of select="my:shortURL(@datcat)"/></td>
+						<td valign="top"><xsl:value-of select="my:rewriteURL(@datcat)"/></td>
+						<td valign="top" align="right">
+							<span class="detail-caller" ><xsl:value-of select="count(distinct-values(current-group()/@name))"/></span>
+							<div class="detail" >
+									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
+									<ul>
+										<xsl:for-each select="distinct-values(current-group()/@name)" >
+											<li><xsl:value-of select="." /></li>
+										</xsl:for-each>
+									</ul>
+								</div>							
+						</td>
+						<td valign="top" align="right">
+							<span class="term_detail_caller" ><xsl:value-of select="count(current-group())"/></span>
+							<div class="term_detail" >
+									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
+									<ul>
+										<xsl:for-each-group select="current-group()" group-by="@name" >
+											<li><xsl:value-of select="@name" />
+													<ul>
+														<xsl:for-each select="current-group()/@context" >
+																<li><xsl:value-of select="." /></li>
+														</xsl:for-each>
+													</ul>
+											</li>
+										</xsl:for-each-group>
+									</ul>
+								</div>							
+						</td>
+						<td valign="top" align="right"><xsl:value-of select="count(distinct-values(current-group()/@elem))"/></td>						
+							
+						<td width="40%">						
+								<xsl:for-each select="distinct-values(current-group()/@elem)">
+									<xsl:sort select="." />
+									<xsl:value-of select="."/>,
+								</xsl:for-each>
+						</td>												
+						</tr>					
+				</xsl:for-each-group>
+		</tbody>
+	</table>
+	</xsl:template>
+
+
+
+
+
+<xsl:template name="callback-header" >
+	<style type="text/css">
+		#modeltree { margin-left: 10px; border: 1px solid #9999aa; border-collapse: collapse;}
+		.number { text-align: right; }
+		td { border-bottom: 1px solid #9999aa; padding: 1px 4px;}
+		.treecol {padding-left: 1.5em;}
+		table thead {background: #ccccff; font-size:0.9em; }
+		table thead tr th { border:1px solid #9999aa; font-weight:normal; text-align:left; padding: 1px 4px;}
+
+	</style> 
+	<script type="text/javascript" >
+		$(function(){
+			$("#modeltree").treeTable({initialState:"expanded"});
+		});
+	</script>
+</xsl:template>
+
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/params.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/params.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/params.xsl	(revision 1516)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	
+	
+	
+<!-- 	<xsl:param name="title" select="'Default Title'" />  -->
+	<xsl:param name="format"  select="'htmltable'"/> <!-- table|list -->
+	<xsl:param name="display_values_limit" select="10" />
+	<xsl:param name="max_depth" select="0" />
+	
+	<xsl:param name="base_dir" select="'/MDService2'" />
+	<xsl:param name="base_url" select="'http://localhost:8080/MDService2/'" />
+	
+	<xsl:param name="docs_baseuri" select="concat($base_dir, '/docs/htmlpage/welcome')" />
+	
+	<!-- momentary used in dcif2view.xsl to select appropriate language section 
+	should be universal language-selector eventually -->
+	<xsl:param name="lang" select="'en'" />
+	<xsl:param name="default_lang" select="'en'" />
+	
+	
+	<!-- <xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?maxdepth=8&amp;q='" /> -->
+	<xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?q='" />
+	<xsl:param name="datcats_terms_uri" select="'http://localhost:8080/MDService2/datcats/terms/?q='" />
+	<xsl:param name="terms_setup_uri" select="'http://localhost:8080/MDService2/datcats/xml/?q='" />
+	<xsl:param name="terms_flat_uri" select="'http://localhost:8080/MDService2/terms/flat/?q=all'" />
+	
+			
+	<xsl:param name="repository_name" select="''" />
+	<xsl:param name="q" select="''" />
+	
+	<!--  for resolving components by suffixing with @ComponentId -->
+	<!-- <xsl:param name="components_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/'" /> -->
+	<!--  redirecting the resolution via MDService, to be able to make use of the cache
+		the absolute-URL is not nice, however I wasn't able to tell XSL how to resolve a relative url 
+	-->	
+	<xsl:param name="cmdprofiles_uri" select="'http://localhost:8080/MDService2/compprofile/xml/'" />
+	<xsl:param name="components_uri" select="'http://localhost:8080/MDService2/comp/xml/'" />		
+	<xsl:param name="components_id_prefix" select="'clarin.eu:cr1:'" />
+	<xsl:param name="components_viewer_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/?item='" />
+	
+	<xsl:param name="autocolumns_limit" select="6" />
+	<xsl:param name="resourceref_limit" select="20" />
+
+<!--	<xsl:param name="recordset_prefix" select="concat($base_dir, '/record/htmldetail/')" />	-->
+	<xsl:param name="default_prefix" select="concat($base_dir, '/', replace($format, '2','/'), '/')" />
+	
+	<xsl:param name="detail_comp_prefix"  select="'comp/htmldetail/'"/> 
+	<xsl:param name="detail_profile_prefix"  select="'compprofile/htmldetail/'"/> 
+	<xsl:param name="detail_complist_prefix"  select="if(contains(name(/*),'profile')) then $detail_profile_prefix else $detail_comp_prefix"/>
+	
+	<xsl:param name="detail_model_prefix"  select="'?q='"/>
+	<!--  <xsl:param name="detail_uri_prefix"  select="'?q='"/> -->
+				
+	<!--  for rewriting links to DatCats (redirecting via MDService) -->			
+	<xsl:param name="isocat_base_uri" select="'http://www.isocat.org/datcat/'" />	
+	<xsl:param name="isocat_uri_match" select="'http://www.isocat.org/datcat/DC-'" />		
+	<xsl:param name="isocat_uri_replace" select="'isocat/htmldiv/'" />
+	
+	
+	<xsl:param name="cache_cols_" >id date duration repository collection lang query squery startItem maximumItems maxDepth</xsl:param>   
+	<xsl:param name="cache_cols" select="tokenize($cache_cols_,'\s+')"  />
+	
+	<xsl:param name="name_element" select="('title', 'name', 'resourcename', 'md-title')"  />
+	
+	<xsl:param name="user" select="''"  />
+		
+	
+	
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/profile2VC.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/profile2VC.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/profile2VC.xsl	(revision 1516)
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- 
+<purpose>html-view for static xml-files</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-11-12" type="created" by="vr">based on xml2htmltable</change>	
+	
+</history>
+-->
+
+<xsl:param name="queryid" />
+
+
+	
+<!--<xsl:output method="html" encoding="UTF-8"/>-->
+
+<xsl:template match="/">
+
+<xsl:apply-templates select="//item[id=$queryid]" />
+
+</xsl:template>
+
+<xsl:template match="Queries/item" >
+<VirtualCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="VirtualCollection.xsd">
+    <Type>intensional</Type>
+    <Name><xsl:value-of select="name" /></Name>
+    <Description>Collection published via CLARIN - MDService </Description>
+    <CreationDate><xsl:value-of select="current-date()" /></CreationDate>
+    <Creators>
+        <Creator>
+            <Person>MDService</Person>
+            <Email>cmdi@clarin.eu</Email>
+            <Organisation>CMDI </Organisation>
+        </Creator>
+    </Creators>
+    <Purpose>sample</Purpose>
+    <Reproducibility>untended</Reproducibility>
+    <ReproducibilityNotice>Unmaintaned test collection.</ReproducibilityNotice>
+    <!-- <Keywords>
+        <Keyword>test</Keyword>
+        <Keyword>unmaintained</Keyword>
+    </Keywords> -->
+    <GeneratedBy> 
+        <Description>GeneratedBy CLARIN MDService</Description>
+        <URI>urn:x-vcr:test-uri</URI>
+        <Query profile="sru-cql">
+        <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text> 
+		<xsl:choose>
+        		<xsl:when test="squerystring = ''">
+					<xsl:value-of select ="querystring"/>
+				</xsl:when>	
+				<xsl:when test="querystring = ''">
+					<xsl:value-of select ="squerystring"/>
+				</xsl:when>			
+				<xsl:otherwise><xsl:value-of select ="squerystring"/> and (<xsl:value-of select ="querystring"/>)</xsl:otherwise>
+		</xsl:choose>
+        <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
+        </Query>
+        <!-- 
+        <Query profile="cmdservice"><xsl:copy-of select="querystring" />
+				<xsl:copy-of select="squerystring" /><xsl:copy-of select="collections" />
+		</Query>
+         -->
+    </GeneratedBy>
+</VirtualCollection>
+	
+</xsl:template>
+
+<xsl:template match="Bookmarksets/item" >
+<VirtualCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="VirtualCollection.xsd">
+    <Type>extensional</Type>
+    <Name><xsl:value-of select="name" /></Name>
+    <Description>Collection published via CLARIN - MDService </Description>
+    <CreationDate><xsl:value-of select="current-date()" /></CreationDate>
+    <Creators>
+        <Creator>
+            <Person>MDService</Person>
+            <Email>cmdi@clarin.eu</Email>
+            <Organisation>CMDI </Organisation>
+        </Creator>
+    </Creators>
+    <Purpose>sample</Purpose>
+    <Reproducibility>untended</Reproducibility>
+    <ReproducibilityNotice>Unmaintaned test collection.</ReproducibilityNotice>
+    <!-- <Keywords>
+        <Keyword>test</Keyword>
+        <Keyword>unmaintained</Keyword>
+    </Keywords> -->
+    <Resources>
+    	<xsl:for-each select="Bookmarks/item" >
+	        <Resource>        
+	            <ResourceType>Metadata</ResourceType>
+	            <ResourceRef><xsl:value-of select="querystring" /></ResourceRef>
+	        </Resource>
+	    </xsl:for-each>
+    </Resources>
+</VirtualCollection>
+	
+</xsl:template>
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/sru2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/sru2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/sru2view.xsl	(revision 1516)
@@ -0,0 +1,408 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:saxon="http://saxon.sf.net/"
+  xmlns:my="myFunctions"
+  xmlns:sru="http://www.loc.gov/zing/srw/"
+  xmlns:ccs="http://clarin.eu/schema/ccs-v1.0" 
+>
+<!-- 
+<purpose> generate html view (probably various formats of a MDRepository response.</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>	
+	<change on="2010-03-26" type="created" by="vr">based on cmdi/scripts/cmdinst2view.xsl</change>	
+</history>
+-->
+
+<!-- <xsl:import href="model2matrix.xsl"/>
+<xsl:import href="terms2view.xsl"/> -->
+
+<xsl:output method="html" />
+
+<xsl:include href="cmd_commons.xsl"/>
+
+
+<xsl:param name="startItem">1</xsl:param>
+<xsl:param name="maximumItems">50</xsl:param>
+
+<!-- <xsl:param name="format" select="'table'" /> table|list|detail -->
+<xsl:param name="cols" >Id,Title,Location
+<!-- 
+<col label="id">Id</col>
+<col label="id">idno</col>
+<col label="name">Name</col>
+<col label="title">Title</col>
+<col label="title">title</col>
+<col label="loc" >Location</col>
+<col label="loc" >pubPlace</col>
+<col label="lang" >language</col>
+
+ -->
+</xsl:param>
+
+<!--<xsl:param name="mode" select="'html'" />-->
+<xsl:param name="title" >
+	<xsl:text>MDRecordSet </xsl:text>
+</xsl:param>
+
+<xsl:variable name="columns" >
+<!-- <xsl:message>COLUMNS: <xsl:value-of select="$cols" /><xsl:value-of select="string-length($cols)" /></xsl:message>  -->
+	<xsl:variable name="colarray" select="tokenize($cols,',')"/>
+	<xsl:for-each select="$colarray" >
+		<col key="{.}" label="{replace(.,'^.*\.([^.]+)$','$1')}" xpath_osbolete="{replace(.,'\.','/')}" xpath="{my:index2xpath(.)}" />
+		<!-- if (contains(.,'.')) then reverse(.) else . -->
+	</xsl:for-each>
+	<xsl:if test="count($colarray)=0" >	
+		<xsl:copy-of select="$autocolumns"></xsl:copy-of>
+		<!-- <xsl:message>AUTOCOLUMNS: <xsl:copy-of select="$autocolumns" /><xsl:value-of select="count($autocolumns)" /></xsl:message> -->
+	</xsl:if>
+	
+</xsl:variable>
+
+<xsl:variable name="autocolumns" >
+	<xsl:variable name="precompute">
+		<xsl:for-each-group select="//Components//*[not(*)][exists(text())]" group-by="name()" >			
+			<xsl:sort select="sum(current-group()/string-length(string-join(text(),';')))" order="descending" />
+			<!-- <xsl:message>precomputing: <xsl:value-of select="name()" />
+				count: <xsl:value-of select="count(current-group())" /> sum:<xsl:value-of select="sum(current-group()/string-length(string-join(text(),';')))" /></xsl:message> -->
+			<col key="{name()}" label="{name()}" xpath="{name()}" />
+		</xsl:for-each-group>
+	</xsl:variable>
+	 <!-- <xsl:message>precompute: <xsl:copy-of select="$precompute" /><xsl:value-of select="count($precompute)" /></xsl:message>-->
+	<xsl:copy-of select="$precompute/*[position() &lt; $autocolumns_limit]"></xsl:copy-of> 
+</xsl:variable>
+
+<xsl:template name="continue-root" >
+
+<xsl:for-each select="sru:searchRetrieveResponse" >
+	<xsl:if test="not(contains($format, 'htmlsimple'))">
+		<xsl:call-template name="header" />
+	</xsl:if>
+	<xsl:choose>
+				<xsl:when test="contains($format,'htmltable')">
+					<xsl:apply-templates select="sru:records" mode="table" />
+				</xsl:when>				
+				<xsl:when test="contains($format,'htmllist')">
+					<xsl:apply-templates select="records" mode="list" />
+				</xsl:when>				
+				<xsl:when test="contains($format, 'htmldetail')">
+					<xsl:apply-templates select="records" mode="detail" />
+				</xsl:when>
+				<xsl:when test="contains($format, 'htmlpage')">
+					<xsl:apply-templates select="sru:records" mode="table" />
+				</xsl:when>
+				<xsl:when test="contains($format, 'htmlpagelist')">
+					<xsl:apply-templates select="records" mode="list" />
+				</xsl:when>		
+				<xsl:when test="contains($format, 'htmlsimple')">
+					<xsl:apply-templates select="sru:records" mode="simple" />
+				</xsl:when>		
+				<xsl:otherwise>mdset2view: unrecognized format: <xsl:value-of select="$format" /></xsl:otherwise>
+	</xsl:choose>
+</xsl:for-each>	
+	
+</xsl:template>	
+	
+	
+<xsl:template match="*" >
+	<!-- <xsl:param name="lv" select="1" />-->
+	<!--<xsl:variable name="lv" select="count(ancestor::d)" /> -->
+	<!-- <xsl:if test="string-length(string-join(.//text(),'')) &gt; 1" > -->		 
+		<xsl:variable name="has_text" >
+			<xsl:choose>
+			<!-- FIXME: text()[1] ? is that safe?-->
+				<xsl:when test="normalize-space(text()[1])='Unspecified'">unspecified</xsl:when>
+				<xsl:when test="not(normalize-space(text()[1])='')">text</xsl:when>				
+				<xsl:otherwise>empty</xsl:otherwise>
+			</xsl:choose>
+			
+		</xsl:variable>
+		<div class="elem {$has_text}" ><span class="elem_name"><xsl:value-of select="name()" />:</span>
+		<span class="elem_value"><xsl:value-of select="text()" /></span>
+			<xsl:apply-templates select="*" />					
+		</div>
+	
+</xsl:template>	
+	
+	<!--
+sample header:	
+<numberOfRecords>524</numberOfRecords>
+    <echoedSearchRetrieveRequest>//Title[contains(.,'an')] /db/cmdi-mirror/silang_data 1 50</echoedSearchRetrieveRequest>
+    <diagnostics>50</diagnostics>
+    -->
+<xsl:template name="header">
+	<div class="result-header" >
+	<xsl:attribute name="max_value"><xsl:value-of select="numberOfRecords" /></xsl:attribute>
+	<xsl:variable name="cnt_hits" select="number(diagnostics)" />
+	
+	<span class="label" >hits: </span><span class="value hilight"><xsl:value-of select="numberOfRecords" /></span>;
+	<span class="label" >from:</span><span><input type="text" class="value start_record paging-input"><xsl:attribute name="value">
+    <xsl:value-of select="$startItem"/>
+  </xsl:attribute>
+	</input></span>
+	<span class="label" >max:</span><span><input type="text" class="value maximum_records paging-input" ><xsl:attribute name="value">
+    <xsl:value-of select="if(number($cnt_hits) &lt; number($maximumItems)) then $cnt_hits else $maximumItems"/>    
+  </xsl:attribute></input></span>
+  <span class="cmd cmd_reload" />  
+<!--	<button class="reload">reload</button>-->
+	<span class="cmd cmd_prev">	
+	<xsl:choose>
+		<xsl:when test="$startItem = '1'">
+			<xsl:attribute name="disabled">disabled</xsl:attribute>
+		</xsl:when>
+		</xsl:choose>
+	</span>
+	<span class="cmd cmd_next">	
+	<xsl:choose>
+		<xsl:when test="$maximumItems &gt; numberOfRecords or $maximumItems = numberOfRecords">
+			<xsl:attribute name="disabled">disabled</xsl:attribute>
+		</xsl:when>
+		</xsl:choose>
+	</span>
+	<span class="cmd cmd_detail" />	
+	<!--  <div class='ui-context-dialog ui-widget-content columns-wrapper'>  -->
+		<div class='ui-widget-content columns-wrapper'>
+			<div class='cmds'><span class="cmd cmd_reload" /><span class="cmd cmd_save" /><span class="cmd cmd_savenew" /></div>
+			<div class='query-columns'>
+			<label>Columns</label>
+				<xsl:call-template name="columns" />
+			</div>
+		</div>	  
+    </div>
+    <div class="note" ><span class="label" >echo: </span><span class="value"><xsl:value-of select="echoedSearchRetrieveRequest" /></span>;<span class="label" >duration: </span><span class="value"><xsl:value-of select="extraResponseData/duration" /></span>;</div>
+</xsl:template>	
+
+<xsl:template name="columns">
+	<table>
+	<tr><td valign="top">
+	<div class="columns-selected" >	
+	<!-- 
+		<span class="label">selected columns</span>
+		<ul class="query-columnslist">
+			<xsl:for-each select="$columns/*">
+  				<li><xsl:value-of select="@label"/><span class='cmd cmd_del'/></li>
+  			</xsl:for-each>
+  		</ul>
+	 -->
+  	</div>
+  	</td><td valign="top">
+  		<div>
+  		  	<span class="label" >format:</span>
+			<select class="value-format">
+			
+			<option value="htmltable">
+				<xsl:choose>
+				<xsl:when test="contains($format, 'htmltable')">
+					<xsl:attribute name="selected">selected</xsl:attribute>
+				</xsl:when>
+				</xsl:choose><xsl:text>table</xsl:text>		
+			</option>
+			<option value="htmllist">
+				<xsl:choose>
+				<xsl:when test="contains($format, 'htmllist')">
+					<xsl:attribute name="selected">selected</xsl:attribute>
+				</xsl:when>
+				</xsl:choose><xsl:text>list</xsl:text>
+			</option>
+			</select>
+		</div>
+  	<xsl:if test="extraResponseData/usedProfiles" >
+  		<div class="used-profiles">
+	  		<span class="label">used profiles in whole result</span>
+			<ul>
+				<xsl:for-each select="extraResponseData/usedProfiles/profile" >
+					<li><a href="{@id}" ><xsl:value-of select="@name"/></a><span class="note">|<xsl:value-of select="@count"/>|</span></li>
+				</xsl:for-each>
+			</ul>
+		</div>
+	</xsl:if>
+	</td></tr>	
+	<xsl:variable name="resultSummary" >		
+		<!-- wrap in <Terms> to make digestible for model2matrix -->
+		<xsl:variable name="terms" >
+			<Terms>
+			<!-- TODO: if already provided by mdrepo, use that, otherwise DIY -->		
+			<xsl:choose>
+				<xsl:when test="extraResponseData/resultSummary"><xsl:copy-of select="extraResponseData/resultSummary/Term" /></xsl:when>
+				<xsl:otherwise>
+				<!-- TODO! -->
+				</xsl:otherwise>
+			</xsl:choose>
+			</Terms>
+		</xsl:variable>
+		<xsl:apply-templates select="$terms" mode="matrix" />
+	</xsl:variable> 	
+	<!--   <xsl:message><xsl:value-of select="$resultSummary/*/name()" /> </xsl:message> -->
+	
+	<tr><td colspan="2">	
+	<div class="result-summary">	
+		<span class="label">structure summary of shown result</span>	
+		<!--  calling template in terms2view.xsl -->
+		<xsl:apply-templates select="$resultSummary" mode="terms-tree" />		
+	</div>	
+	</td></tr>
+	</table>
+</xsl:template>
+
+<xsl:template match="sru:records" mode="table">
+    
+	<table class="show">		
+		<thead><tr><th>pos</th>
+			<th title="bibl" >Bibl</th>
+			<th title="kwic" >View</th>
+			
+		<!--<xsl:for-each select="$columns/*">
+  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
+  			</xsl:for-each>-->  			
+		</tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="sru:record" mode="table" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+
+<xsl:template match="records" mode="list">
+    
+	<table class="show">		
+		<thead><tr><th>pos</th><th>record</th>			  			
+		</tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="CMD" mode="list" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+<!-- FIXME:   there should be a @match=`record` template to make it SRU-compatible -->
+
+<xsl:template match="sru:record" mode="table">
+
+	<xsl:variable name="curr_record" select="." />
+	<xsl:variable name="fields" >
+		<td>
+			<xsl:value-of select=".//ccs:f[@key='bibl']" />
+		</td>
+		<td>
+			<xsl:apply-templates select=".//ccs:DataView[@type='w']"  mode="kwic" />
+		</td>
+		<!--
+		<xsl:for-each select="$columns/*">
+			<!-\- <td ><xsl:value-of select="$curr_cmd//*[name()=current()]" /></td> -\->
+			<!-\-  	<xsl:message><xsl:copy-of select="."></xsl:copy-of> </xsl:message> -\->
+	 				 <xsl:variable name="curr_col_xpath" select="@xpath" />
+	  			<td> 			
+	  				<xsl:for-each select="$curr_record">
+	  					<xsl:call-template name="format-field" >
+	  						<xsl:with-param name="elems" select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
+	  					</xsl:call-template> 					
+	  				
+	  				</xsl:for-each>
+	  			</td>
+	  			</xsl:for-each>-->
+	  </xsl:variable>
+
+	<xsl:call-template name="record-table-row" >
+		<xsl:with-param name="fields" select="$fields" />
+	</xsl:call-template>
+	
+</xsl:template>
+
+<xsl:template match="*" mode="kwic">	
+	<xsl:choose>
+		<xsl:when test="name()='kw'"><b><xsl:value-of select="normalize-space(.)" /> </b>	</xsl:when> 
+			<xsl:otherwise><xsl:value-of select="normalize-space(.)" /></xsl:otherwise>
+	</xsl:choose>
+</xsl:template>
+	
+<xsl:template match="CMD" mode="list">
+
+		<xsl:variable name="curr_record" select="." />			
+		<xsl:variable name="cmd_sel_fields" >
+			<xsl:for-each select="$columns/*">
+ 				<xsl:variable name="curr_col_xpath" select="@xpath" />  			 			
+  				<xsl:for-each select="$curr_record">  				
+  					<xsl:copy-of select="saxon:evaluate(concat('.//', $curr_col_xpath))" />
+  				</xsl:for-each>  			
+  			</xsl:for-each>
+  		</xsl:variable>
+		<xsl:variable name="fields" >
+			<div>
+				<xsl:apply-templates select="$cmd_sel_fields" mode="format-xmlelem" />
+			</div>
+		</xsl:variable>
+
+	<xsl:call-template name="record-table-row" >
+		<xsl:with-param name="fields" select="$fields" />
+	</xsl:call-template>
+											
+</xsl:template>
+
+
+<xsl:template name="record-table-row">
+<xsl:param name="fields" />
+<!-- @field absolute_position compute records position over whole recordset, ie add `startItem` (important when paging)
+ -->
+	<xsl:variable name="absolute_position" select="if (number($startItem)=number($startItem)) then number($startItem) + position() - 1 else  position()" />
+	
+		<tr>
+		<td rowspan="2">
+			<xsl:choose>
+				<xsl:when test="exists(.//MdSelfLink)" >
+					<xsl:choose>
+						<xsl:when test="contains($format, 'htmlsimple')" >
+						<a class="internal" href="{concat('../../record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository_name)}" >
+								<xsl:value-of select="$absolute_position" />
+						</a>						
+						</xsl:when>
+						<xsl:otherwise>
+						<a class="internal" href="{concat('record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository_name)}" >
+								<xsl:value-of select="$absolute_position" />
+						</a>
+						</xsl:otherwise>
+					</xsl:choose>
+					<span class="cmd cmd_detail" ></span>				
+					<span class="cmd cmd_save" ></span>						
+				</xsl:when>
+				<xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise>
+			</xsl:choose>
+		</td>		
+		<td colspan="{count($columns/*)}" >
+				<xsl:call-template name="getContext" />
+			<div class="title" ><xsl:call-template name="getName" /></div>			
+		</td>
+		</tr>
+		<tr>
+			<xsl:copy-of select="$fields" />						
+		</tr>									
+</xsl:template>
+
+
+<xsl:template match="records" mode="simple">
+    
+    <form action="" method="get">
+				<input type="text" name="q" ><xsl:attribute name="value"><xsl:value-of select="$q"/></xsl:attribute> </input>
+				
+				<input type="submit" value="Submit" > </input><br/>
+				<label>startItem: </label><input type="text" name="startItem" ><xsl:attribute name="value"><xsl:value-of select="$startItem"/></xsl:attribute> </input><br/>
+				<label> maxItems: </label><input type="text" name="maximumItems" ><xsl:attribute name="value"><xsl:value-of select="$maximumItems"/></xsl:attribute> </input>
+	</form>
+	<table class="show">		
+		<thead><tr><th>pos</th>		
+			<xsl:for-each select="$columns/*">
+  				<th title="{@key}" ><xsl:value-of select="@label"/></th>
+  			</xsl:for-each>  			
+		</tr></thead>
+		<tbody>	
+			<xsl:apply-templates select="CMD" mode="table" />	 			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/sru_explain.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/sru_explain.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/sru_explain.xsl	(revision 1516)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:output method="xml" />
+<xsl:param name="server" />
+<xsl:param name="port" />
+<xsl:param name="basepath" />
+
+<xsl:template  match="/" ><zs:explainResponse xmlns:zs="http://www.loc.gov/zing/srw/">
+	<zs:version>1.2</zs:version>
+	<zs:record>
+	<zs:recordSchema>http://explain.z3950.org/dtd/2.0/</zs:recordSchema>
+	<zs:recordPacking>xml</zs:recordPacking>
+	<zs:recordData>
+	<explain xmlns="http://explain.z3950.org/dtd/2.0/">
+      <serverInfo>
+	<host>localhost</host>
+	<port>8080</port>
+	<database>MDService2/sru</database>
+      </serverInfo>
+      <databaseInfo>
+	<title>MDService</title>
+	<description lang="en" primary="true">CLARIN MDService</description>
+      </databaseInfo>
+      
+      <schemaInfo>
+          <schema name="dc" identifier="info:srw/schema/1/dc-v1.1">
+            <title>Simple Dublin Core</title>
+          </schema>          
+
+        </schemaInfo>
+        <indexInfo>
+          <set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1" />
+          <index>
+            <title lang="en">Title</title>
+            <map>
+              <name set="dc">title</name>
+            </map>
+          </index>
+        </indexInfo>
+        <configInfo>
+          <default type="numberOfRecords">25</default>
+          <setting type="maximumRecords">100</setting>
+          <supports type="proximity" />
+        </configInfo>
+    </explain></zs:recordData></zs:record></zs:explainResponse>
+</xsl:template>
+
+	<xsl:template match="/other">
+<sru:explainResponse xmlns:sru="http://www.loc.gov/zing/srw/">
+ <sru:version>1.1</sru:version>
+ <sru:record>
+   <sru:recordPacking>XML</sru:recordPacking>
+   <sru:recordSchema>http://explain.z3950.org/dtd/2.1/</sru:recordSchema>
+   <sru:recordData>
+
+   <zr:explain xmlns:zr="http://explain.z3950.org/dtd/2.1/">
+     <zr:serverInfo protocol="SRU" version="1.2" transport="http"
+                    method="GET">
+        <zr:host><xsl:value-of select="$server" /></zr:host>
+        <zr:port><xsl:value-of select="$port" /></zr:port>
+        <zr:database><xsl:value-of select="$basepath" /></zr:database>
+     </zr:serverInfo>
+     <zr:databaseInfo>
+       <title lang="en" primary="true">CLARIN MDService SRU</title>
+     </zr:databaseInfo>
+     <zr:indexInfo>
+       <zr:set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1"/>
+        <zr:index>
+          <zr:map><zr:name set="dc">title</zr:name></zr:map>
+        </zr:index>
+     </zr:indexInfo>
+     <zr:schemaInfo>
+        <zr:schema name="dc" identifier="info:srw/schema/1/dc-v1.1">
+          <zr:title>Simple Dublin Core</zr:title>
+        </zr:schema>
+     </zr:schemaInfo>
+     <zr:configInfo>
+         <zr:default type="numberOfRecords">1</zr:default>
+         <zr:setting type="maximumRecords">50</zr:setting>
+         <zr:supports type="proximity"/>
+     </zr:configInfo>
+    </zr:explain>
+
+   </sru:recordData>
+ </sru:record>
+</sru:explainResponse>
+	</xsl:template>
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/static2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/static2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/static2view.xsl	(revision 1516)
@@ -0,0 +1,133 @@
+﻿<?xml version="1.0"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:diag="http://www.loc.gov/zing/srw/diagnostic">
+
+<!-- 
+<purpose>a (wannabe) robust/generic stylesheet to display "static" content (xml) as html.
+it shall operate on the internal xml-files, with special processing of some elements (mainly processing <a>-elements!)</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2011-09-01" type="created" by="vr">based on test2view</change>	
+	
+</history>
+-->
+
+<xsl:include href="cmd_commons.xsl"/> 
+
+<!--<xsl:param name="title" select="if (//div[1][@class='title']) then concat('CMDRSB: ', //div[1][@class='title']) else 'CMDRSB docs'" />-->
+<xsl:param name="title" select="if (//div[1][@class='title']) then //div[1][@class='title'] else ''" />
+
+	
+<!--<xsl:output method="html" encoding="UTF-8"/>-->
+
+<xsl:template name="continue-root">
+		<xsl:apply-templates  />
+</xsl:template>
+
+<xsl:template match="a[contains(@class,'template')]">
+
+ 	<xsl:choose>			
+			<xsl:when test="@href='query-input'">
+					<xsl:call-template name="query-input" />					
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:copy-of select="."  />				
+			</xsl:otherwise>
+	</xsl:choose>
+</xsl:template>
+
+<xsl:template match="a[contains(@class,'query') or contains(@class,'request')]">
+
+ <xsl:variable name="specific_prefix" select="if (contains(@href,'query')) then 'recordset/htmlpage/' else ''" />
+ 
+ <xsl:variable name="data" >
+ 	<xsl:choose>			
+			<xsl:when test="@class='request count'">
+					<xsl:copy-of select="document(concat($base_url,@href))" />					
+			</xsl:when>
+			<xsl:when test="@class='query count'">
+					<xsl:copy-of select="document(concat($base_url, 'recordset/xml/', @href))" />										
+			</xsl:when>
+			<xsl:when test="@class='request'">
+					<xsl:copy-of select="document(concat($base_url, @href))"  />										
+			</xsl:when>
+					
+			<xsl:when test="@class='query'">
+					<xsl:copy-of select="document(concat($base_url, 'recordset/htmltable/', @href))"  />										
+			</xsl:when>
+			<xsl:when test="starts-with(@href,'http:')">
+					<xsl:copy-of select="."  />										
+			</xsl:when>
+			<!--  if it is just a simple a-element (not marked explicitly with 'request' or 'query' class, just pass it through - do not resolve-->				
+			<xsl:otherwise>
+<!--					<xsl:copy-of select="document(concat($base_url, @href))"  />-->
+					<xsl:copy-of select="."  />
+			</xsl:otherwise>
+		</xsl:choose>	
+ </xsl:variable>
+
+	
+ <div class="cmds-ui-block" >
+   <xsl:if test="not(contains(@class,'no-header'))" >
+	 <div class="ui-widget-header">
+		<xsl:value-of select="@class" />: <xsl:copy-of select="." /> [<a href="{concat($base_url,$specific_prefix,@href)}" ><xsl:value-of select="@href" /></a>]
+	</div>	
+   </xsl:if>
+	
+	<div class="ui-widget-content">
+		<xsl:choose>
+			<xsl:when test="exists($data/diagnostics)">
+				<span class="error" >
+					<xsl:value-of select="$data/diagnostics/diag:diagnostic/diag:message" />
+				</span>
+			</xsl:when>
+			<xsl:when test="@class='request count'">
+				root: <xsl:value-of select="$data/*/name()" />|<xsl:value-of select="count($data//*)" />|
+			</xsl:when>
+			<xsl:when test="@class='query count'">
+							<xsl:value-of select="$data//numberOfRecords" />
+							</xsl:when>
+			
+			<!-- <xsl:when test="@class='query'">
+					<xsl:variable name="data" select="document(concat($base_url,'recordset/htmltable/', @href))" />
+					<xsl:copy-of select="$data" />
+			</xsl:when> -->		
+			<xsl:otherwise>
+<!--					<xsl:apply-templates select="$data" mode="process-result"/>-->				
+					<xsl:copy-of select="$data" />
+			</xsl:otherwise>
+		</xsl:choose>
+				
+	</div>
+ </div>
+</xsl:template>
+
+<xsl:template match="*|@*">
+	<xsl:copy>
+		<xsl:apply-templates select="node()|@*" />
+	</xsl:copy>	
+</xsl:template>
+
+<xsl:template match="*|@*" mode="process-result" >
+	<xsl:copy>
+		<xsl:apply-templates select="node()|@*" mode="process-result" />
+	</xsl:copy>	
+</xsl:template>
+
+<!-- 
+ <diagnostics>
+	<diagnostic xmlns="http://www.loc.gov/zing/srw/diagnostic">
+    <uri>info:srw/diagnostic/1/1</uri>    
+    <message>Exception occurred: Connection refused: connect</message> 
+-->
+<xsl:template match="diagnostics" mode="process-result" >
+	<div class="error" >
+		 <xsl:value-of select="diag:diagnostic/diag:message" />
+	</div>	
+</xsl:template>
+
+
+</xsl:stylesheet>
+  
Index: MDService2/branches/MDService_simple3/src/xsl/terms2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/terms2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/terms2view.xsl	(revision 1516)
@@ -0,0 +1,452 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"    xmlns:my="myFunctions"
+>
+<!-- 
+<purpose> generate all the views for terms-matrix</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2010-10-11" type="created" by="vr">from model2view.xsl</change>		
+</history>
+-->
+<xsl:import href="cmd_commons.xsl"/>
+
+<!--  <xsl:output method="xml" />  -->  
+
+<!-- <xsl:param name="size_lowerbound">0</xsl:param>
+<xsl:param name="max_depth">0</xsl:param>
+<xsl:param name="freq_limit">20</xsl:param>
+<xsl:param name="show">file</xsl:param> 
+<xsl:param name="detail_uri_prefix"  select="'?q='"/> 
+<xsl:param name="mode" select="'htmldiv'" /> -->
+
+<xsl:param name="sort">x</xsl:param> <!-- s=size|n=name|t=time|x=default -->
+<xsl:param name="name_col_width" >50%</xsl:param>
+<xsl:param name="title" select="'Terms'" />
+
+<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.' />
+
+<xsl:template name="continue-root">
+	<div>	
+		<xsl:choose>    	 	
+    	 	 <xsl:when test="$format='terms2htmltable'" >
+    	 		<xsl:call-template name="header"/>    
+    	 		<xsl:call-template name="table"/>
+    	 		    
+    	 	</xsl:when>
+    	 	<xsl:when test="$format='terms2htmlpage' or $format='terms2htmldetail' " > 
+    	 		<xsl:call-template name="header"/>
+			    <div id="terms-matrix">
+			    	<xsl:apply-templates mode="terms-tree" >
+			    		<xsl:sort select="if (@type='model') then 1 else if (@type='dcr') then 2  else 3" data-type="number"  />
+			    	</xsl:apply-templates>			    	
+				</div>   	 								    		
+	  	 	</xsl:when>	  	 	     	
+     	 	<xsl:when test="$format='terms2htmllist'" >    	 		
+    	 		<xsl:apply-templates select=".//Termset" mode="list">
+    	 			<xsl:sort select="if (@type='model') then 1 else if (@type='dcr') then 2  else 3" data-type="number"  />
+    	 		</xsl:apply-templates>    
+    	 	</xsl:when>
+    	 	<xsl:when test="$format='terms2flat'" >    	 		    	 	    	 		
+    	 			<xsl:call-template name="terms-flat"/>    	 		    	 		    
+    	 	</xsl:when> 
+    	 	<xsl:when test="$format='terms2autocomplete'" >
+    	 		<xsl:variable name="terms_flat" >    	 	    	 		
+    	 			<xsl:call-template name="terms-flat"/>
+    	 		</xsl:variable>    	 		
+    	 		<xsl:apply-templates select="$terms_flat" mode="autocomplete"/>    	 		    
+    	 	</xsl:when> 
+    	 	<xsl:when test="$format='terms2htmlselect'" >
+			      		<select id="terms-select">		
+		    	 				<xsl:apply-templates select=".//Termset" mode="select"/>		    	 				
+		    			</select>
+		    			<a href="{my:formURL('terms','htmlpage','all')}">overview</a>	    	 				    		
+	    	 	</xsl:when>
+    	 	<xsl:otherwise>
+    	 		<xsl:apply-templates select=".//Termset" mode="list"/>    
+    	 	</xsl:otherwise>
+    	 </xsl:choose>
+    </div>	 
+	
+</xsl:template>	
+
+
+<xsl:template name="header">
+	<h2>MDService Terms</h2>	
+	<table>
+		<tbody>
+			<tr><td>count Termsets</td><td align="right"><xsl:value-of select="count(//Termset)"/></td></tr>												
+		</tbody>
+	</table>
+</xsl:template>		
+
+<xsl:template name="table">
+	<table>
+		<caption>Terms Usage</caption>
+		<thead><tr><th>name/path</th><th>count elems</th><th>count text</th><th>count distinct text</th>
+		<th>context</th><th>corresp comp</th><th>datcat</th></tr></thead>
+		<tbody>		
+			<xsl:apply-templates select="*" mode="table" />			
+		</tbody>
+	</table>
+
+</xsl:template>
+
+<xsl:template match="Term" mode="table">
+				<tr><td>
+				<!-- <a href="?q={@path}" > -->
+					<span class="cmd cmd_add">	</span>
+					<span class="column-elem"><xsl:value-of select="translate(@path,'/','.')"/></span>
+					<!-- </a> -->
+					</td>
+						<td align="right"><xsl:value-of select="@count"/></td>
+						<td align="right"><xsl:value-of select="@count_text"/></td>						
+						<td align="right"><xsl:value-of select="@count_distinct_text"/></td>						
+						<td><xsl:value-of select="@context"/></td>
+						<td><xsl:value-of select="@corresponding_component"/></td>
+						<td><xsl:value-of select="@datcat"/></td>
+						
+				</tr>							
+				<xsl:apply-templates select="*" mode="table" />			
+</xsl:template>
+
+<xsl:template match="Termset" mode="list">
+	<div class="terms">	
+		<span class="detail-caller"><xsl:value-of select="@name"/></span>
+		<xsl:call-template name="attr-detail-div" />
+		<!--  format:<xsl:value-of select="$format" /> -->
+		<!--<xsl:variable name="translated_term" select="translate(replace(/*/Term[1]/@path,'//',''),'/','.')" />
+		 <input id="query_terms" value="{$translated_term}" /> -->		
+		<ul class="treeview">
+			<xsl:apply-templates select="Term[@path]" mode="list" />			
+		</ul>	
+	</div>
+</xsl:template>
+
+<xsl:template match="Term" mode="list" >
+<xsl:param name="options" select="''" />
+		<!--  <xsl:variable name="translated_path" select="translate(replace(@path,'//',''),'/','.')" /> -->
+		<!--  filter out empty datcats  -->
+		<xsl:if test="@elem or descendant::*[@elem] or $options='all'" >
+				<li><div class="cmds-elem-plus"><span class="detail-caller"><!-- <a href="{concat($detail_model_prefix,@context)}" >  -->
+					<xsl:value-of select="@path"/></span>
+					<span class="note">|<xsl:value-of select="@count"/>|</span>
+					<!--  /<xsl:value-of select="@count_text"/>/<xsl:value-of select="@count_distinct_text"/> -->					
+					<span class="data comppath"><xsl:value-of select="@path" /></span>		 
+					<span class="cmd cmd_filter"><xsl:text> </xsl:text></span>
+					<span class="cmd cmd_detail" ><xsl:text> </xsl:text></span>
+					<span class="cmd cmd_columns" ><xsl:text> </xsl:text></span>
+					<xsl:call-template name="attr-detail-div" />
+						<!--  <div class="detail">
+							<xsl:for-each select="@*" >
+								<div class="cmds-elem-prop"><span class="label"><xsl:value-of select="name()" />: </span>
+									<span class="value"><xsl:value-of select="." /></span></div>
+							</xsl:for-each>
+						</div> -->
+					</div>
+					<ul><xsl:apply-templates select="Term" mode="list" >
+							<xsl:with-param name="options" select="$options"></xsl:with-param>
+						</xsl:apply-templates>
+					</ul>				
+				</li>	
+		</xsl:if>		
+</xsl:template>
+
+
+<!--
+both Termsets and Termset can be root level
+sample
+  <Termsets xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="myFunctions">
+   <Termset name="TextCorpusProfile" colls="root" depth="8" created="2011-01-03T19:59:21.366+01:00" type="model" id="tcp" url="" format="terms|cmdrepo">
+ -->
+<xsl:template match="Termsets|Termset" mode="terms-tree" >
+<xsl:param name="parentid" select="'x'" />
+<xsl:param name="lv" select="0" />
+	
+	<xsl:variable name="xid" select="concat($parentid,position())" />
+	
+	<!--  special handling for datcat and relcat termsets -->
+	<xsl:variable name="self" >
+		<xsl:if test="@type='dcr' or @type='rr'">
+			<tr id="{$xid}" >		
+				<td class="treecol" ><span class="cmd cmd_columns" ></span><xsl:value-of select="@name" /></td>
+				<td colspan="3" ></td>
+		     </tr>
+		</xsl:if>
+	</xsl:variable>
+	
+	<xsl:variable name="children" >
+		<xsl:apply-templates select="*" mode="terms-tree">			
+			<xsl:sort order="ascending" select="@name" />
+			<xsl:with-param name="parentid" select="$xid" />
+			<xsl:with-param name="lv" select="$lv+1" />																	
+		</xsl:apply-templates>
+	</xsl:variable>
+	
+	
+	<xsl:choose>
+		<xsl:when test="$lv=0" >
+			<table class="terms-tree show" >
+				<thead class="ui-widget-header ui-state-default">
+				<tr><th class="treecol" rowspan="2" >Name</th><th colspan="3">Count</th><th rowspan="2">Ratio</th></tr>
+				<tr><th>Elems</th><th>Text</th><th>Distinct</th></tr>
+				</thead>					
+				<tbody>				
+					<xsl:copy-of select="$self" />
+					<xsl:copy-of select="$children" />
+				</tbody>
+			</table>
+		</xsl:when>
+		<xsl:otherwise>
+				<xsl:copy-of select="$self" />
+				<xsl:copy-of select="$children" />
+		</xsl:otherwise>	
+	</xsl:choose>
+					
+</xsl:template>					
+
+<xsl:template match="Term" mode="terms-tree" >
+<xsl:param name="parentid" select="'x'" />
+<xsl:param name="lv" select="0" />
+
+	<xsl:variable name="xid" >
+		<xsl:choose>
+		<xsl:when test="$lv=0"><xsl:value-of select="concat($parentid,position())" /></xsl:when>
+		<xsl:otherwise><xsl:value-of select="concat($parentid,'-', position())" /></xsl:otherwise>
+		</xsl:choose> 
+	</xsl:variable>
+	
+	<!--  this is especially for empty data-categories -->
+	<xsl:variable name="is_empty" select="if(Term or @count) then '' else 'empty-term'" /> 
+	<tr id="{$xid}" class="{$is_empty}">
+	  <xsl:if test="not(parent::Termset) or parent::Termset[@type='dcr' or @type='rr']" >
+	  	<xsl:attribute name="class" select="concat('child-of-',$parentid)" />
+	  </xsl:if>
+	  <xsl:variable name="path_anchored" >
+		  <xsl:choose>
+			  <xsl:when test="@corresponding_component" >
+			  		<a target="_blank" href="{concat($components_viewer_uri, @corresponding_component)}" ><xsl:value-of select="@path" /></a>
+			  </xsl:when>
+			  <xsl:otherwise>
+			  	<xsl:value-of select="@path" />
+			  </xsl:otherwise>
+		  </xsl:choose>
+	 </xsl:variable>
+		<td class="treecol"  ><span class="cmd cmd_query" ></span><span class="cmd cmd_columns" ></span>
+				<span class="column-elem"><xsl:copy-of select="$path_anchored" /></span><span class="cmd cmd_info" ></span>
+			<xsl:if test="@datcat!=''" >[<a target="_blank" href="{@datcat}" ><xsl:value-of select="my:shortURL(@datcat)" /></a>]</xsl:if>
+		</td>
+		<!-- <td><xsl:value-of select="@path" />,<xsl:value-of select="@context" /></td>-->			
+		 		
+		<td class="number"><xsl:value-of select="@count" /></td>
+		<!--  has children don't show the text-count - they are empty on non-terminals
+			or better/experimental: show sum of the descendants
+		 -->
+		<td class="number"><!--   <xsl:if test="not(Term)"><xsl:value-of select="@count_text" /></xsl:if>-->
+				<xsl:variable name="count_text_sanitized" select="if (not(Term)) then @count_text else sum(descendant::Term/@count_text)" />
+				<xsl:value-of select="if (number($count_text_sanitized)=number($count_text_sanitized)) then 
+				 				format-number(number($count_text_sanitized),'#.##0','european' ) else ''" />			
+		</td>
+			
+		<td class="number">			 
+			<xsl:if test="not(Term)"><a class="value-caller" href="{my:formURL('values', 'htmllist', concat(@path,'&amp;sort=size'))}" ><xsl:value-of select="format-number(@count_distinct_text,'#.##0','european')" /></a></xsl:if>
+			<xsl:if test="Term"><xsl:value-of select="format-number(sum(descendant::Term/@count_distinct_text),'#.##0','european')" /></xsl:if>
+		</td>
+		<td class="number">			
+			<xsl:if test="not(Term)">
+				<xsl:variable name="count_elems" select="parent::Term/@count" />
+				<xsl:variable name="inf_content_ratio" select="if (@count_distinct_text!=0) then (@count_text div $count_elems) * (@count_text div @count_distinct_text) else ''" />
+				<xsl:value-of select="if (number($inf_content_ratio)=number($inf_content_ratio)) then format-number(number($inf_content_ratio),'#.##0,00','european' ) else ''" />
+			</xsl:if>
+			
+		</td>
+		 
+     </tr> 
+		<xsl:if test="Term and ($lv&lt;$max_depth or $max_depth=0)">
+			
+				<xsl:choose>
+					<xsl:when test="$sort='s'">				
+						<xsl:apply-templates select="Term" mode="terms-tree">
+							<xsl:with-param name="parentid" select="$xid" />
+							<xsl:with-param name="lv" select="$lv+1" />			
+								<xsl:sort order="descending" select="@count_distinct_text" data-type="number" />
+						</xsl:apply-templates>		
+					</xsl:when>
+					<xsl:when test="$sort='n'">				
+					<xsl:apply-templates select="Term" mode="terms-tree">
+							<xsl:with-param name="parentid" select="$xid" />
+							<xsl:with-param name="lv" select="$lv+1" />
+								<xsl:sort order="ascending" select="@name" />
+						</xsl:apply-templates>
+					</xsl:when>
+					<xsl:otherwise>
+					<!--  testwise: show only non empty Terms-->
+						<xsl:variable name="count_elems" select="@count" />
+						<xsl:apply-templates select="Term" mode="terms-tree">
+								<xsl:sort select="if (@count_distinct_text!=0) then @count_text div $count_elems * (@count_text div @count_distinct_text) else 0"  order="descending" data-type="number" />
+								<xsl:with-param name="parentid" select="$xid" />
+								<xsl:with-param name="lv" select="$lv+1" />															
+						</xsl:apply-templates>		
+					</xsl:otherwise>
+				</xsl:choose>					
+					
+		</xsl:if>
+	
+</xsl:template>
+
+<xsl:template match="Termset" mode="select">
+	
+	<xsl:variable name="count" select="if (Term/@count) then concat(' |',Term/@count,'|') else '' " />
+	<xsl:variable name="call-value" select="if (@type='model' or not(@id)) then @name else @id" />
+	<option value="{$call-value}" ><xsl:value-of select="@name" /><xsl:value-of select="$count" /></option>					
+</xsl:template>
+
+<xsl:template match="Term" mode="autocomplete">
+	<xsl:copy>
+		<xsl:copy-of select="@*" />
+		<div class="term-contexts">
+			<ul>
+				<xsl:apply-templates mode="autocomplete" />
+			</ul>
+		</div>
+	</xsl:copy>					
+</xsl:template>
+
+<xsl:template match="context" mode="autocomplete">
+	<li class="context cmds-elem-plus">
+		<span class="autocomplete-select-caller">
+		<!-- 
+		<a href="{concat($detail_model_prefix,@path)}" >
+				<xsl:value-of select="@path"/></a>
+		 --> <xsl:value-of select="@path"/>
+				</span>
+					
+		<xsl:call-template name="attr-detail-div" />
+		<ul>
+			<xsl:apply-templates select="context" mode="autocomplete" />
+		</ul>
+	</li>					
+</xsl:template>
+
+
+<xsl:template name="terms-flat">
+	
+		<!--  group union of model, dcr and rr Terms -->  
+		<xsl:for-each-group select=".//Termset[@type='model']//Term | .//Termset[@type='dcr']/Term | .//Termset[@type='rr']//Term[@type='rel']" group-by="lower-case(@name)" >
+<!--		<xsl:for-each-group select="//Term[exists(@name)][parent::Termset]" group-by="lower-case(@name)" >-->
+			<xsl:sort select="lower-case(@name)" />
+			<!--  <xsl:if test="exists(current-group()[not(@type='datcat')])" >  -->
+				<Term name="{@name}">
+					<xsl:for-each select="current-group()[not(@type='datcat' or @type='rel')]" >
+						<context><!-- <xsl:value-of select="ancestor::Termset[1]/@id" />:  -->
+							<xsl:copy-of select="@*" />
+						<xsl:value-of select="@path" /></context>
+					</xsl:for-each>
+					<xsl:for-each select="current-group()[@type='datcat'][parent::Termset]" >
+						<xsl:variable name="datcat" select="." />
+						<context><xsl:copy-of select="@*" /><xsl:value-of select="ancestor::Termset[1]/@id" />:<xsl:value-of select="@name" />
+						<xsl:for-each-group select="$datcat/Term" group-by="@path" >
+							<context><xsl:copy-of select="@*" /><xsl:copy-of select="@*" /><xsl:value-of select="@path" /></context>
+						</xsl:for-each-group>
+						</context>				
+					</xsl:for-each>
+					
+					<xsl:for-each select="current-group()[@type='rel']" >
+						<xsl:variable name="datcat" select="if(parent::Term[@type='rel']) then parent::Term[@type='rel'] else . " />
+								<context><xsl:copy-of select="@*" /><!-- <xsl:value-of select="ancestor::Termset[1]/@id" />: --><xsl:value-of select="@path" />
+<!--						<xsl:for-each-group select="$datcat//Term[@type!='datcat']" group-by="@path" >-->
+								
+							<xsl:for-each select="$datcat//Term[@type='datcat']" > <!-- [Term/@path] -->
+								<context><xsl:copy-of select="@*" /><xsl:value-of select="@path" />
+								<xsl:for-each-group select="Term[@path]" group-by="@path" >
+										<context><xsl:copy-of select="@*" /><xsl:value-of select="@path" /></context>
+								</xsl:for-each-group>
+								</context>
+							</xsl:for-each>
+						</context>				
+					</xsl:for-each>
+				</Term>
+<!--			</xsl:if>-->
+		</xsl:for-each-group>
+</xsl:template>
+
+<xsl:template name="list-datcats">
+	<xsl:param name="matrix" select="."></xsl:param>
+	<table>
+		<caption>DatCats |<xsl:value-of select="count(distinct-values($matrix//Term/@datcat))" />| <span class="note">* Click on numbers to see detail </span></caption>
+				<thead><tr><th rowspan="2">id</th><th rowspan="2">name</th>
+					<th colspan="3" >count </th><th rowspan="2">elems</th></tr>
+					<tr><th>profile*</th><th >all*</th><th>elems</th> </tr>		</thead>
+		<tbody>		
+				<xsl:for-each-group select="$matrix//Term" group-by="@datcat">
+					<xsl:sort select="lower-case(@datcat)" order="ascending"/>					
+						<tr>
+						<td valign="top"><xsl:value-of select="my:shortURL(@datcat)"/></td>
+						<td valign="top"><xsl:value-of select="my:rewriteURL(@datcat)"/></td>
+						<td valign="top" align="right">
+							<span class="detail-caller" ><xsl:value-of select="count(distinct-values(current-group()/@name))"/></span>
+							<div class="detail" >
+									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
+									<ul>
+										<xsl:for-each select="distinct-values(current-group()/@name)" >
+											<li><xsl:value-of select="." /></li>
+										</xsl:for-each>
+									</ul>
+								</div>							
+						</td>
+						<td valign="top" align="right">
+							<span class="term_detail_caller" ><xsl:value-of select="count(current-group())"/></span>
+							<div class="term_detail" >
+									<div class="box_heading"><xsl:value-of select="my:rewriteURL(@datcat)"/></div>
+									<ul>
+										<xsl:for-each-group select="current-group()" group-by="@name" >
+											<li><xsl:value-of select="@name" />
+													<ul>
+														<xsl:for-each select="current-group()/@context" >
+																<li><xsl:value-of select="." /></li>
+														</xsl:for-each>
+													</ul>
+											</li>
+										</xsl:for-each-group>
+									</ul>
+								</div>							
+						</td>
+						<td valign="top" align="right"><xsl:value-of select="count(distinct-values(current-group()/@elem))"/></td>						
+							
+						<td width="40%">						
+								<xsl:for-each select="distinct-values(current-group()/@elem)">
+									<xsl:sort select="." />
+									<xsl:value-of select="."/>,
+								</xsl:for-each>
+						</td>												
+						</tr>					
+				</xsl:for-each-group>
+		</tbody>
+	</table>
+	</xsl:template>
+
+<xsl:template name="callback-header" >
+	<style type="text/css">
+		.cmd_add {display:none}
+	</style>
+	
+	<script type="text/javascript" >
+		$(function(){
+			$(".terms-tree").treeTable({initialState:"collapsed"});
+			$("a.value-caller").click(function(event) {
+					event.preventDefault();
+					handleValueCaller($(this));
+				});		
+			$(".terms-tree").find('.treecol').find(".cmd_columns").click(function(event) {
+					event.preventDefault();
+					handleIndexSelection($(this));
+			});	
+		});
+	</script>
+
+</xsl:template>
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/terms_extract.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/terms_extract.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/terms_extract.xsl	(revision 1516)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--     
+    created based on complist_resolved.xsl vronk
+
+<sample>
+	<Termsets>
+		<Termset>
+			<Term>
+			...			
+		</Termset>
+		...
+	</Termsets	
+</sample>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org"
+    xmlns:my="myFunctions" >
+    <xsl:strip-space elements="*"/>
+    <!-- <xsl:include href="cmd_commons.xsl"/>  -->
+
+    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
+
+<xsl:param name="q" />		
+
+<xsl:template match="/">
+    <Termsets>
+<!--		extract-Q:<xsl:value-of select="$q" />	-->
+<!--		extract-root-node:<xsl:value-of select="/*/name()" />  -->
+	<xsl:copy-of select="/Termsets/Termset[@id=$q or $q='all']" />  
+	</Termsets>
+</xsl:template>
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/test2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/test2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/test2view.xsl	(revision 1516)
@@ -0,0 +1,119 @@
+﻿<?xml version="1.0"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:diag="http://www.loc.gov/zing/srw/diagnostic">
+
+<!-- 
+<purpose>special stylesheet for running test-queries defined as links in the input file</purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2011-05-23" type="created" by="vr">based on docs2view.xsl</change>	
+	
+</history>
+-->
+
+<xsl:include href="cmd_commons.xsl"/> 
+
+<xsl:param name="title" select="if (//div[1][@class='title']) then concat('CMDRSB: ', //div[1][@class='title']) else 'CMDRSB docs'" />
+
+	
+<!--<xsl:output method="html" encoding="UTF-8"/>-->
+
+<xsl:template name="continue-root">
+		<xsl:apply-templates  />
+</xsl:template>
+
+<xsl:template match="a[contains(@class,'query') or contains(@class,'request')]">
+
+ <xsl:variable name="specific_prefix" select="if (contains(@href,'query')) then 'recordset/htmlpage/' else ''" />
+ 
+ <xsl:variable name="data" >
+ 	<xsl:choose>			
+			<xsl:when test="@class='request count'">
+					<xsl:copy-of select="document(concat($base_url,@href))" />					
+			</xsl:when>
+			<xsl:when test="@class='query count'">
+					<xsl:copy-of select="document(concat($base_url, 'recordset/xml/', @href))" />										
+			</xsl:when>
+			<xsl:when test="@class='request'">
+					<xsl:copy-of select="document(concat($base_url, @href))"  />										
+			</xsl:when>
+					
+			<xsl:when test="@class='query'">
+					<xsl:copy-of select="document(concat($base_url, 'recordset/htmltable/', @href))"  />										
+			</xsl:when>
+			<xsl:when test="starts-with(@href,'http:')">
+					<xsl:copy-of select="."  />										
+			</xsl:when>
+			<!--  if it is just a simple a-element (not marked explicitly with 'request' or 'query' class, just pass it through - do not resolve-->				
+			<xsl:otherwise>
+<!--					<xsl:copy-of select="document(concat($base_url, @href))"  />-->
+					<xsl:copy-of select="."  />
+			</xsl:otherwise>
+		</xsl:choose>	
+ </xsl:variable>
+
+	
+ <div class="cmds-ui-block" >
+   <xsl:if test="not(contains(@class,'no-header'))" >
+	 <div class="ui-widget-header">
+		<xsl:value-of select="@class" />: <xsl:copy-of select="." /> [<a href="{concat($base_url,$specific_prefix,@href)}" ><xsl:value-of select="@href" /></a>]
+	</div>	
+   </xsl:if>
+	
+	<div class="ui-widget-content">
+		<xsl:choose>
+			<xsl:when test="exists($data/diagnostics)">
+				<span class="error" >
+					<xsl:value-of select="$data/diagnostics/diag:diagnostic/diag:message" />
+				</span>
+			</xsl:when>
+			<xsl:when test="@class='request count'">
+				root: <xsl:value-of select="$data/*/name()" />|<xsl:value-of select="count($data//*)" />|
+			</xsl:when>
+			<xsl:when test="@class='query count'">
+							<xsl:value-of select="$data//numberOfRecords" />
+							</xsl:when>
+			
+			<!-- <xsl:when test="@class='query'">
+					<xsl:variable name="data" select="document(concat($base_url,'recordset/htmltable/', @href))" />
+					<xsl:copy-of select="$data" />
+			</xsl:when> -->		
+			<xsl:otherwise>
+<!--					<xsl:apply-templates select="$data" mode="process-result"/>-->				
+					<xsl:copy-of select="$data" />
+			</xsl:otherwise>
+		</xsl:choose>
+				
+	</div>
+ </div>
+</xsl:template>
+
+<xsl:template match="*|@*">
+	<xsl:copy>
+		<xsl:apply-templates select="node()|@*" />
+	</xsl:copy>	
+</xsl:template>
+
+<xsl:template match="*|@*" mode="process-result" >
+	<xsl:copy>
+		<xsl:apply-templates select="node()|@*" mode="process-result" />
+	</xsl:copy>	
+</xsl:template>
+
+<!-- 
+ <diagnostics>
+	<diagnostic xmlns="http://www.loc.gov/zing/srw/diagnostic">
+    <uri>info:srw/diagnostic/1/1</uri>    
+    <message>Exception occurred: Connection refused: connect</message> 
+-->
+<xsl:template match="diagnostics" mode="process-result" >
+	<div class="error" >
+		 <xsl:value-of select="diag:diagnostic/diag:message" />
+	</div>	
+</xsl:template>
+
+
+</xsl:stylesheet>
+  
Index: MDService2/branches/MDService_simple3/src/xsl/util_xml_ay.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/util_xml_ay.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/util_xml_ay.xsl	(revision 1516)
@@ -0,0 +1,82 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+   xmlns:exsl="http://exslt.org/common"
+   extension-element-prefixes="exsl">
+
+<!--
+analyzes the structure of xml-input: 
+	output: all xpaths
+	strategy: 2 steps! : 
+		1. flatten verbalize elements
+		2. aggregate 
+-->
+
+<!-- <xsl:key name="names" match="NAME" use="concat('',@aliastype)"/> -->
+
+<xsl:key name="elem_names" match="elem" use="."/>
+
+<!--
+<xsl:key name="divided_elems" match="*[@part]" use="concat(name(),':',@part)"/>
+<xsl:key name="person_unique" match="NXElem[@boldtype='Person']" use="concat(names/NXElem[xtype='default']/token,occs/NXElem[1]/occLocation,events/NXElem[xtype='birth']/date)"/>
+-->
+
+<xsl:param name="dataset" select="/" />
+
+<xsl:variable name="flatted" >
+      <xsl:call-template name="flatten" />
+   </xsl:variable>
+	
+<xsl:template name="xml-ay" >
+   <xsl:param name="dataset" select="$dataset"></xsl:param>
+		
+    	<xsl:variable name="summarized">    	   
+      	<xsl:call-template name="summarize" >
+      	   <xsl:with-param name="flatted">
+      	      <xsl:call-template name="flatten">
+      	         <xsl:with-param name="dataset" select="$dataset"></xsl:with-param>
+      	      </xsl:call-template>
+      	   </xsl:with-param>    	   
+      	</xsl:call-template>
+    	</xsl:variable>
+      <xsl:copy-of select="$summarized"></xsl:copy-of>
+</xsl:template>
+
+<xsl:template name="flatten">
+   <xsl:param name="dataset" select="$dataset"></xsl:param>
+   <xsl:variable name="flatted">
+	<flatted>
+	<xsl:for-each select="$dataset//*" >
+	     <elem n="{name()}">
+				<xsl:call-template name="path" />				
+			</elem>		
+	</xsl:for-each>
+	</flatted></xsl:variable>   
+   <xsl:copy-of select="$flatted"></xsl:copy-of>
+</xsl:template>
+
+<xsl:template name="summarize" >
+   <xsl:param name="flatted" ></xsl:param>
+   <xsl:message>count flatted <xsl:value-of select="count($flatted/flatted/elem)"></xsl:value-of></xsl:message>
+<!-- match="flatted"
+	 <xsl:for-each select="flatted/elem[generate-id() = generate-id(key('elem_names',.)[1])]" > -->
+	<xsl:for-each-group select="$flatted/flatted/elem" group-by=".">	
+		<Term name="{@n}" path="{.}" count="{count(current-group())}" />		
+	</xsl:for-each-group>
+</xsl:template>
+
+<xsl:template name="path" >
+	<xsl:for-each select="ancestor::*" ><xsl:value-of select="name()" />/</xsl:for-each><xsl:value-of select="name()" />
+</xsl:template>
+
+
+<!--
+<xsl:template match="*[1]">
+<xsl:param name="path" />
+	<xsl:value-of select="name()" />
+	<xsl:value-of select="count(../*[name()=name(current())])" />
+	<xsl:text>&#xD;&#xA;</xsl:text>
+		<xsl:apply-templates	/>
+</xsl:template>
+-->
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/values2view.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/values2view.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/values2view.xsl	(revision 1516)
@@ -0,0 +1,121 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+  version="2.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:my="myFunctions"
+>
+<!-- 
+<purpose> generate a view for a values-list (index scan) </purpose>
+<params>
+<param name=""></param>
+</params>
+<history>
+	<change on="2011-01-08" type="created" by="vr">from model2view.xsl</change>
+		
+</history>
+-->
+<xsl:import href="cmd_commons.xsl"/>
+
+
+<!-- <xsl:param name="size_lowerbound">0</xsl:param>
+<xsl:param name="max_depth">0</xsl:param>
+<xsl:param name="freq_limit">20</xsl:param>
+<xsl:param name="show">file</xsl:param> -->
+<xsl:param name="sort">x</xsl:param> <!-- s=size|n=name|t=time|x=default -->
+<xsl:param name="name_col_width" >50%</xsl:param>
+
+<!-- <xsl:param name="mode" select="'htmldiv'" /> -->
+<xsl:param name="title" select="concat('MDRepo.scan: ', my:xpath2index(/Terms/@scanClause))" />
+
+<!--
+<xsl:param name="detail_uri_prefix"  select="'?q='"/> 
+-->
+<xsl:output method="html" /> 
+
+
+<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.' />
+
+<xsl:template name="continue-root">
+
+	<div class="cmds-ui-block  init-show">	
+	<xsl:call-template name="header" />
+	<div class="content">
+		<xsl:apply-templates />
+	</div>
+
+		<!-- 
+		<xsl:choose>   	 	
+    	 	 
+    	 	<xsl:when test="$format='values2htmlpage'" >
+    	 		<xsl:call-template name="header"/>
+			    <div class="values">
+			    	
+				</div>	    	 
+								    		
+	  	 	</xsl:when>
+    	 	<xsl:otherwise>
+    	 		<xsl:call-template name="list"/>    
+    	 	</xsl:otherwise>
+    	 </xsl:choose>
+    	  -->
+    </div>	 
+	
+</xsl:template>	
+
+<xsl:template name="header">
+	<!--  <h2>MDRepository Statistics - index values</h2>  -->
+	<div class="header" >
+	<xsl:attribute name="max-value"><xsl:value-of select="/Terms/@count_items" /></xsl:attribute>
+	<xsl:attribute name="start-item"><xsl:value-of select="/Terms/@start-item" /></xsl:attribute>
+	<xsl:attribute name="maximum-items"><xsl:value-of select="/Terms/@max-items" /></xsl:attribute>
+	<xsl:value-of select="$title" />
+	<span class="cmd cmd_detail" > </span>	
+	<div class="ui-context-dialog" >	
+		<table class="show">
+			<tbody>
+				<xsl:for-each select="(/Terms|/Terms/Term)/@*" >			
+					<tr><td class="key"><xsl:value-of select="name()" /></td><td><xsl:call-template name="format-value" /></td></tr>
+				</xsl:for-each>												
+			</tbody>
+		</table>
+	</div>
+	</div>
+</xsl:template>		
+	
+<xsl:template match="Term" >
+	<xsl:variable name="index" select="my:xpath2index(@path)"/>
+	<table>	
+		<xsl:for-each select="v" >
+		<tr><td align="right"><xsl:value-of select="@count"/></td>
+			<td><span class='cmd cmd_columns'></span><a class='value-caller' href="{my:formURL('','', concat($index, '%3D%22', @key, '%22'))}" target="_blank" >
+					<xsl:value-of select="@key"/></a></td>
+															
+			</tr>
+		</xsl:for-each>
+	</table>			
+</xsl:template>
+
+<xsl:template name="callback-header" >
+	<style type="text/css">
+		#modeltree { margin-left: 10px; border: 1px solid #9999aa; border-collapse: collapse;}
+		.number { text-align: right; }
+		td { border-bottom: 1px solid #9999aa; padding: 1px 4px;}
+		.treecol {padding-left: 1.5em;}
+		table thead {background: #ccccff; font-size:0.9em; }
+		table thead tr th { border:1px solid #9999aa; font-weight:normal; text-align:left; padding: 1px 4px;}
+
+	</style> 
+	<script type="text/javascript" >
+		$(function(){
+			$("#modeltree").treeTable({initialState:"expanded"});
+			addPaging($('.cmds-ui-block'));
+			
+			
+		});
+	</script>
+</xsl:template>
+
+
+
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/src/xsl/xml2json.xsl
===================================================================
--- MDService2/branches/MDService_simple3/src/xsl/xml2json.xsl	(revision 1516)
+++ MDService2/branches/MDService_simple3/src/xsl/xml2json.xsl	(revision 1516)
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!--
+  Copyright (c) 2006, Doeke Zanstra
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without modification, 
+  are permitted provided that the following conditions are met:
+
+  Redistributions of source code must retain the above copyright notice, this 
+  list of conditions and the following disclaimer. Redistributions in binary 
+  form must reproduce the above copyright notice, this list of conditions and the 
+  following disclaimer in the documentation and/or other materials provided with 
+  the distribution.
+
+  Neither the name of the dzLib nor the names of its contributors may be used to 
+  endorse or promote products derived from this software without specific prior 
+  written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
+  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
+  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
+  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
+  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
+  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 
+  THE POSSIBILITY OF SUCH DAMAGE.
+-->
+
+  <xsl:output indent="no" omit-xml-declaration="yes" method="text" encoding="UTF-8" media-type="text/x-json"/>
+	<xsl:strip-space elements="*"/>
+  <!--contant-->
+  <xsl:variable name="d">0123456789</xsl:variable>
+
+  <!-- ignore document text -->
+  <xsl:template match="text()[preceding-sibling::node() or following-sibling::node()]"/>
+
+  <!-- string -->
+  <xsl:template match="text()">
+    <xsl:call-template name="escape-string">
+      <xsl:with-param name="s" select="."/>
+    </xsl:call-template>
+  </xsl:template>
+  
+  <!-- Main template for escaping strings; used by above template and for object-properties 
+       Responsibilities: placed quotes around string, and chain up to next filter, escape-bs-string -->
+  <xsl:template name="escape-string">
+    <xsl:param name="s"/>
+    <xsl:text>"</xsl:text>
+    <xsl:call-template name="escape-bs-string">
+      <xsl:with-param name="s" select="$s"/>
+    </xsl:call-template>
+    <xsl:text>"</xsl:text>
+  </xsl:template>
+  
+  <!-- Escape the backslash (\) before everything else. -->
+  <xsl:template name="escape-bs-string">
+    <xsl:param name="s"/>
+    <xsl:choose>
+      <xsl:when test="contains($s,'\')">
+        <xsl:call-template name="escape-quot-string">
+          <xsl:with-param name="s" select="concat(substring-before($s,'\'),'\\')"/>
+        </xsl:call-template>
+        <xsl:call-template name="escape-bs-string">
+          <xsl:with-param name="s" select="substring-after($s,'\')"/>
+        </xsl:call-template>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:call-template name="escape-quot-string">
+          <xsl:with-param name="s" select="$s"/>
+        </xsl:call-template>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  
+  <!-- Escape the double quote ("). -->
+  <xsl:template name="escape-quot-string">
+    <xsl:param name="s"/>
+    <xsl:choose>
+      <xsl:when test="contains($s,'&quot;')">
+        <xsl:call-template name="encode-string">
+          <xsl:with-param name="s" select="concat(substring-before($s,'&quot;'),'\&quot;')"/>
+        </xsl:call-template>
+        <xsl:call-template name="escape-quot-string">
+          <xsl:with-param name="s" select="substring-after($s,'&quot;')"/>
+        </xsl:call-template>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:call-template name="encode-string">
+          <xsl:with-param name="s" select="$s"/>
+        </xsl:call-template>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  
+  <!-- Replace tab, line feed and/or carriage return by its matching escape code. Can't escape backslash
+       or double quote here, because they don't replace characters (&#x0; becomes \t), but they prefix 
+       characters (\ becomes \\). Besides, backslash should be seperate anyway, because it should be 
+       processed first. This function can't do that. -->
+  <xsl:template name="encode-string">
+    <xsl:param name="s"/>
+    <xsl:choose>
+      <!-- tab -->
+      <xsl:when test="contains($s,'&#x9;')">
+        <xsl:call-template name="encode-string">
+          <xsl:with-param name="s" select="concat(substring-before($s,'&#x9;'),'\t',substring-after($s,'&#x9;'))"/>
+        </xsl:call-template>
+      </xsl:when>
+      <!-- line feed -->
+      <xsl:when test="contains($s,'&#xA;')">
+        <xsl:call-template name="encode-string">
+          <xsl:with-param name="s" select="concat(substring-before($s,'&#xA;'),'\n',substring-after($s,'&#xA;'))"/>
+        </xsl:call-template>
+      </xsl:when>
+      <!-- carriage return -->
+      <xsl:when test="contains($s,'&#xD;')">
+        <xsl:call-template name="encode-string">
+          <xsl:with-param name="s" select="concat(substring-before($s,'&#xD;'),'\r',substring-after($s,'&#xD;'))"/>
+        </xsl:call-template>
+      </xsl:when>
+      <xsl:otherwise><xsl:value-of select="$s"/></xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- number (no support for javascript mantise) -->
+  <xsl:template match="text()[not(string(number())='NaN')]">
+    <xsl:value-of select="."/>
+  </xsl:template>
+
+  <!-- boolean, case-insensitive -->
+  <xsl:template match="text()[translate(.,'TRUE','true')='true']">true</xsl:template>
+  <xsl:template match="text()[translate(.,'FALSE','false')='false']">false</xsl:template>
+
+  <!-- item:null -->
+  <xsl:template match="*[count(child::node())=0]">
+    <xsl:call-template name="escape-string">
+      <xsl:with-param name="s" select="local-name()"/>
+    </xsl:call-template>
+    <xsl:text>:null</xsl:text>
+    <xsl:if test="following-sibling::*">,</xsl:if>
+  </xsl:template>
+
+  <!-- object -->
+  <xsl:template match="*" name="base">
+    <xsl:if test="not(preceding-sibling::*)">{</xsl:if>
+    <xsl:call-template name="escape-string">
+      <xsl:with-param name="s" select="name()"/>
+    </xsl:call-template>
+    <xsl:text>:</xsl:text>
+    <xsl:apply-templates select="child::node()"/>
+    <xsl:if test="following-sibling::*">,</xsl:if>
+    <xsl:if test="not(following-sibling::*)">}</xsl:if>
+  </xsl:template>
+
+  <!-- array -->
+  <xsl:template match="*[count(../*[name(../*)=name(.)])=count(../*) and count(../*)&gt;1]">
+    <xsl:if test="not(preceding-sibling::*)">[</xsl:if>
+    <xsl:choose>
+      <xsl:when test="not(child::node())">
+        <xsl:text>null</xsl:text>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-templates select="child::node()"/>
+      </xsl:otherwise>
+    </xsl:choose>
+    <xsl:if test="following-sibling::*">,</xsl:if>
+    <xsl:if test="not(following-sibling::*)">]</xsl:if>
+  </xsl:template>
+  
+  <!-- convert root element to an anonymous container -->
+  <xsl:template match="/">
+    <xsl:apply-templates select="node()"/>
+  </xsl:template>
+    
+</xsl:stylesheet>
Index: MDService2/branches/MDService_simple3/testdata/collections_extract.xml
===================================================================
--- MDService2/branches/MDService_simple3/testdata/collections_extract.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/testdata/collections_extract.xml	(revision 1516)
@@ -0,0 +1,7419 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collections>
+   <c n="cmdi-snapshot-20100607" cnt="96520">
+      <c n="acqui_data" cnt="15052">
+         <c n="ac-APN" cnt="811">
+            <c n="French_project" cnt="590">
+               <c n="L1-French" cnt="208">
+                  <c n="04-years-olds" cnt="52">
+                     <c n="Film_retelling" cnt="22"/>
+                     <c n="Picture_description" cnt="11"/>
+                     <c n="Picture_story" cnt="19"/>
+                  </c>
+                  <c n="07-years-olds" cnt="59">
+                     <c n="Film_retelling" cnt="22"/>
+                     <c n="Picture_description" cnt="19"/>
+                     <c n="Picture_story" cnt="18"/>
+                  </c>
+                  <c n="10-years-olds" cnt="60">
+                     <c n="Film_retelling" cnt="20"/>
+                     <c n="Picture_description" cnt="16"/>
+                     <c n="Picture_story" cnt="24"/>
+                  </c>
+                  <c n="Adults" cnt="37">
+                     <c n="Film_retelling" cnt="12"/>
+                     <c n="Picture_description" cnt="13"/>
+                     <c n="Picture_story" cnt="12"/>
+                  </c>
+               </c>
+               <c n="L1-Polish" cnt="186">
+                  <c n="04_year_olds" cnt="26">
+                     <c n="Film_retelling" cnt="7"/>
+                     <c n="Picture_description" cnt="9"/>
+                     <c n="Picture_story" cnt="10"/>
+                  </c>
+                  <c n="07_years_olds" cnt="61">
+                     <c n="Film_retelling" cnt="22"/>
+                     <c n="Picture_description" cnt="20"/>
+                     <c n="Picture_story" cnt="19"/>
+                  </c>
+                  <c n="10_year_olds" cnt="66">
+                     <c n="Film_retelling" cnt="22"/>
+                     <c n="Picture_description" cnt="21"/>
+                     <c n="Picture_story" cnt="23"/>
+                  </c>
+                  <c n="Adults" cnt="33">
+                     <c n="Film_retelling" cnt="12"/>
+                     <c n="Picture_description" cnt="9"/>
+                     <c n="Picture_story" cnt="12"/>
+                  </c>
+               </c>
+               <c n="L2-French" cnt="196">
+                  <c n="L1-German" cnt="15">
+                     <c n="Film_retelling" cnt="7"/>
+                     <c n="Picture_description" cnt="2"/>
+                     <c n="Picture_story" cnt="6"/>
+                  </c>
+                  <c n="L1-Polish" cnt="181">
+                     <c n="Adults_Beginners" cnt="71">
+                        <c n="Film_retelling" cnt="24"/>
+                        <c n="Picture_description" cnt="24"/>
+                        <c n="Picture_story" cnt="23"/>
+                     </c>
+                     <c n="Advanced_Learners" cnt="110">
+                        <c n="Film_retelling" cnt="39"/>
+                        <c n="Picture_description" cnt="33"/>
+                        <c n="Picture_story" cnt="38"/>
+                     </c>
+                  </c>
+               </c>
+            </c>
+            <c n="German_project" cnt="147">
+               <c n="Bilinguals" cnt="4"/>
+               <c n="L1_German" cnt="112">
+                  <c n="10-year-olds" cnt="27">
+                     <c n="Film_retelling" cnt="9"/>
+                     <c n="Picture_description" cnt="9"/>
+                     <c n="Picture_story" cnt="9"/>
+                  </c>
+                  <c n="4-year-olds" cnt="32">
+                     <c n="Film_retelling" cnt="10"/>
+                     <c n="Picture_description" cnt="11"/>
+                     <c n="Picture_story" cnt="11"/>
+                  </c>
+                  <c n="7-year-olds" cnt="26">
+                     <c n="Film_retelling" cnt="9"/>
+                     <c n="Picture_description" cnt="9"/>
+                     <c n="Picture_story" cnt="8"/>
+                  </c>
+                  <c n="Adults" cnt="27">
+                     <c n="Film_retelling" cnt="9"/>
+                     <c n="Picture_description" cnt="9"/>
+                     <c n="Picture_story" cnt="9"/>
+                  </c>
+               </c>
+               <c n="L2-German" cnt="31">
+                  <c n="L1_Polish" cnt="31">
+                     <c n="Film_retelling" cnt="11"/>
+                     <c n="Picture_description" cnt="11"/>
+                     <c n="Picture_story" cnt="9"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="ac-barbsch-l1" cnt="658">
+            <c n="Kind01_VAN" cnt="14"/>
+            <c n="Kind02_MAI" cnt="13"/>
+            <c n="Kind03_TIM" cnt="11"/>
+            <c n="Kind04_BART" cnt="13"/>
+            <c n="Kind05_DAN" cnt="13"/>
+            <c n="Kind06_KLAAS" cnt="13"/>
+            <c n="Kind07_LIS" cnt="14"/>
+            <c n="Kind08_MEI" cnt="8"/>
+            <c n="Kind09_ANSO" cnt="13"/>
+            <c n="Kind10_HEN" cnt="14"/>
+            <c n="Kind11_JAN" cnt="12"/>
+            <c n="Kind12_HAN" cnt="13"/>
+            <c n="Kind13_JUST" cnt="13"/>
+            <c n="Kind14_ELI" cnt="13"/>
+            <c n="Kind15_AND" cnt="13"/>
+            <c n="Kind16_STEF" cnt="2"/>
+            <c n="Kind17b_LOR" cnt="13"/>
+            <c n="Kind17_MARV" cnt="9"/>
+            <c n="Kind18b_SAR" cnt="13"/>
+            <c n="Kind18_ANDNI" cnt="9"/>
+            <c n="Kind19_NICK" cnt="9"/>
+            <c n="Kind20_FE" cnt="13"/>
+            <c n="Kind21_ISA" cnt="13"/>
+            <c n="Kind22_JON" cnt="12"/>
+            <c n="Kind23_MAR" cnt="13"/>
+            <c n="Kind24_LARI" cnt="13"/>
+            <c n="Kind25_JOH" cnt="13"/>
+            <c n="Kind26_KERM" cnt="13"/>
+            <c n="Kind27_NIC" cnt="14"/>
+            <c n="Kind28_ANN" cnt="14"/>
+            <c n="Kind29_DORK" cnt="13"/>
+            <c n="Kind30_CED" cnt="13"/>
+            <c n="Kind31_LEV" cnt="13"/>
+            <c n="Kind32_NIN" cnt="8"/>
+            <c n="Kind33_VER" cnt="13"/>
+            <c n="Kind34_JUL" cnt="13"/>
+            <c n="Kind35_NICZ" cnt="13"/>
+            <c n="Kind36_CHRIS" cnt="13"/>
+            <c n="Kind37_KATR" cnt="13"/>
+            <c n="Kind38_MAIZ" cnt="13"/>
+            <c n="Kind39_RAF" cnt="13"/>
+            <c n="Kind40_REN" cnt="6"/>
+            <c n="Kind41_MAART" cnt="13"/>
+            <c n="Kind42_ANIK" cnt="8"/>
+            <c n="Kind43b_JULI" cnt="7"/>
+            <c n="Kind43_MICH" cnt="10"/>
+            <c n="Kind44b_MIL" cnt="13"/>
+            <c n="Kind44_SVEN" cnt="10"/>
+            <c n="Kind45b_BIENE" cnt="13"/>
+            <c n="Kind45_CIR_bil" cnt="14"/>
+            <c n="Kind46_RIO" cnt="11"/>
+         </c>
+         <c n="ac-barbsch-l2" cnt="1058">
+            <c n="Czech_sign_language" cnt="73">
+               <c n="sub50" cnt="11"/>
+               <c n="sub51" cnt="7"/>
+               <c n="sub53a" cnt="11"/>
+               <c n="sub53b" cnt="11"/>
+               <c n="sub67" cnt="11"/>
+               <c n="sub68" cnt="11"/>
+               <c n="sub69" cnt="11"/>
+            </c>
+            <c n="L2_Czech" cnt="302">
+               <c n="L1_English" cnt="149">
+                  <c n="Sub14" cnt="7"/>
+                  <c n="Sub16" cnt="7"/>
+                  <c n="Sub22" cnt="8"/>
+                  <c n="Sub25" cnt="6"/>
+                  <c n="Sub28" cnt="7"/>
+                  <c n="Sub30" cnt="7"/>
+                  <c n="Sub31" cnt="7"/>
+                  <c n="Sub32" cnt="7"/>
+                  <c n="Sub34" cnt="7"/>
+                  <c n="Sub35" cnt="7"/>
+                  <c n="Sub37" cnt="8"/>
+                  <c n="Sub39" cnt="7"/>
+                  <c n="Sub43" cnt="7"/>
+                  <c n="Sub46" cnt="7"/>
+                  <c n="Sub48" cnt="11"/>
+                  <c n="Sub49" cnt="7"/>
+                  <c n="Sub52" cnt="7"/>
+                  <c n="Sub56" cnt="7"/>
+                  <c n="Sub59" cnt="7"/>
+                  <c n="Sub62" cnt="11"/>
+               </c>
+               <c n="L1_German" cnt="137">
+                  <c n="Sub04" cnt="3"/>
+                  <c n="Sub12" cnt="7"/>
+                  <c n="Sub13" cnt="7"/>
+                  <c n="Sub15" cnt="7"/>
+                  <c n="Sub17" cnt="7"/>
+                  <c n="Sub21" cnt="11"/>
+                  <c n="Sub23" cnt="7"/>
+                  <c n="Sub24" cnt="7"/>
+                  <c n="Sub26" cnt="7"/>
+                  <c n="Sub27" cnt="11"/>
+                  <c n="Sub29" cnt="7"/>
+                  <c n="Sub38" cnt="7"/>
+                  <c n="Sub41" cnt="7"/>
+                  <c n="Sub45" cnt="7"/>
+                  <c n="Sub47" cnt="7"/>
+                  <c n="Sub57" cnt="7"/>
+                  <c n="Sub58" cnt="7"/>
+                  <c n="Sub63" cnt="7"/>
+                  <c n="Sub64" cnt="7"/>
+               </c>
+               <c n="L1_Vietnamese" cnt="16">
+                  <c n="Sub54" cnt="6"/>
+                  <c n="Sub60" cnt="6"/>
+                  <c n="Sub61" cnt="4"/>
+               </c>
+            </c>
+            <c n="L2_English" cnt="11">
+               <c n="L1_Czech_Sub66" cnt="11"/>
+            </c>
+            <c n="L2_German" cnt="11">
+               <c n="L1_Czech_Sub66" cnt="11"/>
+            </c>
+            <c n="Native_speakers_control_group_" cnt="533">
+               <c n="Native_Czech" cnt="231">
+                  <c n="sub01" cnt="11"/>
+                  <c n="sub02" cnt="11"/>
+                  <c n="sub03" cnt="11"/>
+                  <c n="sub04" cnt="0"/>
+                  <c n="sub05" cnt="11"/>
+                  <c n="sub06" cnt="11"/>
+                  <c n="sub07" cnt="11"/>
+                  <c n="sub08" cnt="11"/>
+                  <c n="sub09" cnt="11"/>
+                  <c n="sub10" cnt="11"/>
+                  <c n="sub11" cnt="11"/>
+                  <c n="sub18" cnt="11"/>
+                  <c n="sub19" cnt="11"/>
+                  <c n="sub20" cnt="11"/>
+                  <c n="sub33" cnt="11"/>
+                  <c n="sub36" cnt="11"/>
+                  <c n="sub40" cnt="11"/>
+                  <c n="sub42" cnt="11"/>
+                  <c n="sub55" cnt="11"/>
+                  <c n="sub65" cnt="11"/>
+                  <c n="sub66" cnt="11"/>
+                  <c n="sub70" cnt="11"/>
+               </c>
+               <c n="Native_English" cnt="148">
+                  <c n="sub14" cnt="7"/>
+                  <c n="sub16" cnt="7"/>
+                  <c n="sub22" cnt="8"/>
+                  <c n="sub25" cnt="6"/>
+                  <c n="sub28" cnt="7"/>
+                  <c n="sub30" cnt="7"/>
+                  <c n="sub31" cnt="7"/>
+                  <c n="sub32" cnt="7"/>
+                  <c n="sub34" cnt="7"/>
+                  <c n="sub35" cnt="7"/>
+                  <c n="sub37" cnt="7"/>
+                  <c n="sub39" cnt="7"/>
+                  <c n="sub43" cnt="7"/>
+                  <c n="sub46" cnt="7"/>
+                  <c n="sub48" cnt="11"/>
+                  <c n="sub49" cnt="7"/>
+                  <c n="sub52" cnt="7"/>
+                  <c n="sub56" cnt="7"/>
+                  <c n="sub59" cnt="7"/>
+                  <c n="sub62" cnt="11"/>
+               </c>
+               <c n="Native_German" cnt="134">
+                  <c n="sub04" cnt="0"/>
+                  <c n="sub12" cnt="7"/>
+                  <c n="sub13" cnt="7"/>
+                  <c n="sub15" cnt="7"/>
+                  <c n="sub17" cnt="7"/>
+                  <c n="sub21" cnt="11"/>
+                  <c n="sub23" cnt="7"/>
+                  <c n="sub24" cnt="7"/>
+                  <c n="sub26" cnt="7"/>
+                  <c n="sub27" cnt="11"/>
+                  <c n="sub29" cnt="7"/>
+                  <c n="sub38" cnt="7"/>
+                  <c n="sub41" cnt="7"/>
+                  <c n="sub45" cnt="7"/>
+                  <c n="sub47" cnt="7"/>
+                  <c n="sub57" cnt="7"/>
+                  <c n="sub58" cnt="7"/>
+                  <c n="sub63" cnt="7"/>
+                  <c n="sub64" cnt="7"/>
+               </c>
+               <c n="Native_Vietnamese" cnt="20">
+                  <c n="sub54" cnt="6"/>
+                  <c n="sub60" cnt="6"/>
+                  <c n="sub61" cnt="8"/>
+               </c>
+            </c>
+            <c n="No_metadata_yet" cnt="1"/>
+         </c>
+         <c n="ac-bhuvana" cnt="522">
+            <c n="Hindi" cnt="208">
+               <c n="Aar" cnt="52">
+                  <c n="35_month_old" cnt="3"/>
+                  <c n="36_month_old" cnt="5"/>
+                  <c n="37_month_old" cnt="4"/>
+                  <c n="38_month_old" cnt="3"/>
+                  <c n="39_month_old" cnt="6"/>
+                  <c n="40_month_old" cnt="4"/>
+                  <c n="41_month_old" cnt="5"/>
+                  <c n="42_month_old" cnt="4"/>
+                  <c n="43_month_old" cnt="5"/>
+                  <c n="44_month_old" cnt="4"/>
+                  <c n="45_month_old" cnt="4"/>
+                  <c n="46_month_old" cnt="4"/>
+                  <c n="47_month_old" cnt="1"/>
+               </c>
+               <c n="Ish" cnt="52">
+                  <c n="16_month_old" cnt="2"/>
+                  <c n="17_month_old" cnt="3"/>
+                  <c n="18_month_old" cnt="5"/>
+                  <c n="19_month_old" cnt="3"/>
+                  <c n="20_month_old" cnt="6"/>
+                  <c n="21_month_old" cnt="5"/>
+                  <c n="22_month_old" cnt="4"/>
+                  <c n="23_month_old" cnt="5"/>
+                  <c n="24_month_old" cnt="4"/>
+                  <c n="25_month_old" cnt="4"/>
+                  <c n="26_month_old" cnt="5"/>
+                  <c n="27_month_old" cnt="3"/>
+                  <c n="28_month_old" cnt="3"/>
+               </c>
+               <c n="Man" cnt="52">
+                  <c n="26_month_old" cnt="2"/>
+                  <c n="27_month_old" cnt="4"/>
+                  <c n="28_month_old" cnt="4"/>
+                  <c n="29_month_old" cnt="5"/>
+                  <c n="30_month_old" cnt="4"/>
+                  <c n="31_month_old" cnt="5"/>
+                  <c n="32_month_old" cnt="3"/>
+                  <c n="33_month_old" cnt="5"/>
+                  <c n="34_month_old" cnt="4"/>
+                  <c n="35_month_old" cnt="5"/>
+                  <c n="36_month_old" cnt="4"/>
+                  <c n="37_month_old" cnt="4"/>
+                  <c n="38_month_old" cnt="3"/>
+               </c>
+               <c n="Son" cnt="52">
+                  <c n="22_month_old" cnt="1"/>
+                  <c n="23_month_old" cnt="5"/>
+                  <c n="24_month_old" cnt="4"/>
+                  <c n="25_month_old" cnt="3"/>
+                  <c n="26_month_old" cnt="5"/>
+                  <c n="27_month_old" cnt="5"/>
+                  <c n="28_month_old" cnt="3"/>
+                  <c n="29_month_old" cnt="5"/>
+                  <c n="30_month_old" cnt="4"/>
+                  <c n="31_month_old" cnt="4"/>
+                  <c n="32_month_old" cnt="4"/>
+                  <c n="33_month_old" cnt="5"/>
+                  <c n="34_month_old" cnt="3"/>
+                  <c n="35_month_old" cnt="1"/>
+               </c>
+            </c>
+            <c n="Tamil" cnt="201">
+               <c n="Ach" cnt="51">
+                  <c n="12_month_old" cnt="2"/>
+                  <c n="16_month_old" cnt="2"/>
+                  <c n="17_month_old" cnt="5"/>
+                  <c n="18_month_old" cnt="4"/>
+                  <c n="19_month_old" cnt="4"/>
+                  <c n="20_month_old" cnt="5"/>
+                  <c n="21_month_old" cnt="4"/>
+                  <c n="22_month_old" cnt="4"/>
+                  <c n="23_month_old" cnt="4"/>
+                  <c n="24_month_old" cnt="4"/>
+                  <c n="25_month_old" cnt="4"/>
+                  <c n="26_month_old" cnt="5"/>
+                  <c n="27_month_old" cnt="4"/>
+               </c>
+               <c n="Ais" cnt="52">
+                  <c n="19_month_old" cnt="3"/>
+                  <c n="20_month_old" cnt="5"/>
+                  <c n="21_month_old" cnt="4"/>
+                  <c n="22_month_old" cnt="4"/>
+                  <c n="23_month_old" cnt="5"/>
+                  <c n="24_month_old" cnt="4"/>
+                  <c n="25_month_old" cnt="4"/>
+                  <c n="26_month_old" cnt="7"/>
+                  <c n="27_month_old" cnt="2"/>
+                  <c n="29_month_old" cnt="4"/>
+                  <c n="30_month_old" cnt="4"/>
+                  <c n="31_month_old" cnt="5"/>
+                  <c n="32_month_old" cnt="1"/>
+               </c>
+               <c n="Avi" cnt="48">
+                  <c n="28_month_old" cnt="4"/>
+                  <c n="29_month_old" cnt="5"/>
+                  <c n="30_month_old" cnt="4"/>
+                  <c n="31_month_old" cnt="4"/>
+                  <c n="32_month_old" cnt="4"/>
+                  <c n="33_month_old" cnt="3"/>
+                  <c n="34_month_old" cnt="4"/>
+                  <c n="35_month_old" cnt="5"/>
+                  <c n="36_month_old" cnt="4"/>
+                  <c n="37_month_old" cnt="3"/>
+                  <c n="38_month_old" cnt="8"/>
+               </c>
+               <c n="Mal" cnt="50">
+                  <c n="33_month_old" cnt="1"/>
+                  <c n="34_month_old" cnt="4"/>
+                  <c n="35_month_old" cnt="4"/>
+                  <c n="36_month_old" cnt="4"/>
+                  <c n="37_month_old" cnt="5"/>
+                  <c n="38_month_old" cnt="4"/>
+                  <c n="39_month_old" cnt="4"/>
+                  <c n="40_month_old" cnt="4"/>
+                  <c n="41_month_old" cnt="4"/>
+                  <c n="42_month_old" cnt="5"/>
+                  <c n="43_month_old" cnt="4"/>
+                  <c n="44_month_old" cnt="7"/>
+               </c>
+            </c>
+         </c>
+         <c n="ac-cablitz" cnt="128">
+            <c n="ASPAM" cnt="82">
+               <c n="Interactive_tasks" cnt="82">
+                  <c n="Come_Go" cnt="5">
+                     <c n="Cross_sectional" cnt="5">
+                        <c n="Age_3_6_1-7_0" cnt="1"/>
+                        <c n="Age_4_7_1-8_0" cnt="2"/>
+                        <c n="Age_5_8_1-9_0" cnt="2"/>
+                     </c>
+                  </c>
+                  <c n="Farm_Animals" cnt="76">
+                     <c n="Cross_sectional" cnt="23">
+                        <c n="Age_1_3_11-4_11" cnt="0">
+                           <c n="Comprehension" cnt="0"/>
+                           <c n="Production" cnt="0"/>
+                        </c>
+                        <c n="Age_2_5_0-6_0" cnt="0">
+                           <c n="Comprehension" cnt="0"/>
+                        </c>
+                        <c n="Age_3_6_1-7_0" cnt="1">
+                           <c n="Comprehension" cnt="1"/>
+                           <c n="Production" cnt="0"/>
+                        </c>
+                        <c n="Age_4_7_1-8_0" cnt="6">
+                           <c n="Comprehension" cnt="4"/>
+                           <c n="Production" cnt="2"/>
+                        </c>
+                        <c n="Age_5_8_1-9_0" cnt="6">
+                           <c n="Comprehension" cnt="3"/>
+                           <c n="Production" cnt="3"/>
+                        </c>
+                        <c n="Age_6_9_1-12_0" cnt="10">
+                           <c n="Comprehension" cnt="5"/>
+                           <c n="Production" cnt="5"/>
+                        </c>
+                     </c>
+                     <c n="Mother-child" cnt="0">
+                        <c n="Amerama-Puatai_4_0_" cnt="0"/>
+                        <c n="Ela-Vaiana_5_4_" cnt="0"/>
+                     </c>
+                     <c n="Protagonists" cnt="53">
+                        <c n="Anna" cnt="0">
+                           <c n="production" cnt="0"/>
+                        </c>
+                        <c n="Piri" cnt="20">
+                           <c n="Field_trip_1997" cnt="20">
+                              <c n="comprehension" cnt="13"/>
+                              <c n="production" cnt="7"/>
+                           </c>
+                        </c>
+                        <c n="Puatai" cnt="13">
+                           <c n="Field_trip_1997" cnt="13">
+                              <c n="comprehension" cnt="13"/>
+                           </c>
+                        </c>
+                        <c n="Vaiana" cnt="20">
+                           <c n="Field_trip_1997" cnt="17">
+                              <c n="comprehension" cnt="17"/>
+                           </c>
+                           <c n="Field_trip_1998" cnt="3">
+                              <c n="comprehension" cnt="3"/>
+                           </c>
+                        </c>
+                     </c>
+                  </c>
+                  <c n="Placement" cnt="1"/>
+               </c>
+            </c>
+            <c n="interactive" cnt="0"/>
+         </c>
+         <c n="ac-caroline" cnt="253">
+            <c n="Data" cnt="230">
+               <c n="Age_0_6_-_0_11" cnt="3"/>
+               <c n="Age_1_0_-_1_5" cnt="11"/>
+               <c n="Age_1_10_-_1_10" cnt="10"/>
+               <c n="Age_1_11_-_1_11" cnt="11"/>
+               <c n="Age_1_6_-_1_8" cnt="10"/>
+               <c n="Age_1_9_-_1_9" cnt="16"/>
+               <c n="Age_2_0_-_2_0" cnt="11"/>
+               <c n="Age_2_10_-_2_11" cnt="8"/>
+               <c n="Age_2_1_-_2_1" cnt="15"/>
+               <c n="Age_2_2_-_2_2" cnt="13"/>
+               <c n="Age_2_3_-_2_3" cnt="12"/>
+               <c n="Age_2_4_-_2_4" cnt="16"/>
+               <c n="Age_2_5_-_2_5" cnt="14"/>
+               <c n="Age_2_6_-_2_6" cnt="15"/>
+               <c n="Age_2_7_-_2_7" cnt="20"/>
+               <c n="Age_2_8_-_2_8" cnt="22"/>
+               <c n="Age_2_9_-_2_9" cnt="16"/>
+               <c n="Age_3_0_-_3_11" cnt="3"/>
+               <c n="Age_4_0_-_4_11" cnt="3"/>
+               <c n="Unclear_data" cnt="1"/>
+            </c>
+         </c>
+         <c n="ac-cowrlp" cnt="787">
+            <c n="comprehension" cnt="49">
+               <c n="actERG" cnt="49">
+                  <c n="Warlpiri" cnt="49">
+                     <c n="adult" cnt="9"/>
+                     <c n="children" cnt="40"/>
+                  </c>
+               </c>
+            </c>
+            <c n="corpman" cnt="40"/>
+            <c n="elicited_production" cnt="147">
+               <c n="ERGcard" cnt="9">
+                  <c n="Light_Warlpiri" cnt="7">
+                     <c n="children" cnt="7"/>
+                  </c>
+                  <c n="Warlpiri" cnt="2">
+                     <c n="children" cnt="2"/>
+                  </c>
+               </c>
+               <c n="ERGstory" cnt="73">
+                  <c n="Light_Warlpiri" cnt="30">
+                     <c n="adult" cnt="2"/>
+                     <c n="children" cnt="28"/>
+                  </c>
+                  <c n="Warlpiri" cnt="43">
+                     <c n="adult" cnt="2"/>
+                     <c n="children" cnt="41"/>
+                  </c>
+               </c>
+               <c n="KURDUstory" cnt="1">
+                  <c n="Light_Warlpiri" cnt="1">
+                     <c n="children" cnt="1"/>
+                  </c>
+               </c>
+               <c n="LOCcard" cnt="4">
+                  <c n="Light_Warlpiri" cnt="3">
+                     <c n="children" cnt="3"/>
+                  </c>
+                  <c n="Warlpiri" cnt="1">
+                     <c n="children" cnt="1"/>
+                  </c>
+               </c>
+               <c n="MonsterStory" cnt="4">
+                  <c n="Light_Warlpiri" cnt="1"/>
+                  <c n="Warlpiri" cnt="3"/>
+               </c>
+               <c n="mouseClips" cnt="48">
+                  <c n="Light_Warlpiri" cnt="33">
+                     <c n="adult" cnt="6"/>
+                     <c n="children" cnt="27"/>
+                  </c>
+                  <c n="Warlpiri" cnt="15">
+                     <c n="adult" cnt="11"/>
+                     <c n="children" cnt="4"/>
+                  </c>
+               </c>
+               <c n="PEARstory" cnt="1">
+                  <c n="Warlpiri" cnt="1">
+                     <c n="children" cnt="1"/>
+                  </c>
+               </c>
+               <c n="POSScard" cnt="7">
+                  <c n="Light_Warlpiri" cnt="7">
+                     <c n="children" cnt="7"/>
+                  </c>
+               </c>
+            </c>
+            <c n="spontaneous" cnt="296">
+               <c n="Light_Warlpiri" cnt="290">
+                  <c n="children" cnt="290">
+                     <c n="longitudinal" cnt="276">
+                        <c n="Child23" cnt="1"/>
+                        <c n="ChildC01" cnt="30"/>
+                        <c n="ChildC02" cnt="84"/>
+                        <c n="ChildC03" cnt="96"/>
+                        <c n="ChildC04" cnt="27"/>
+                        <c n="ChildC06" cnt="38"/>
+                     </c>
+                     <c n="notlongitudinal" cnt="14">
+                        <c n="LW" cnt="1"/>
+                     </c>
+                  </c>
+               </c>
+               <c n="Warlpiri" cnt="6">
+                  <c n="adult" cnt="6"/>
+               </c>
+            </c>
+            <c n="Unsorted_sessions" cnt="155">
+               <c n="bikeStory" cnt="2"/>
+               <c n="C02" cnt="1"/>
+               <c n="C03" cnt="0"/>
+               <c n="C06" cnt="22"/>
+               <c n="C07" cnt="2"/>
+               <c n="coconutStory" cnt="3"/>
+               <c n="compask" cnt="6"/>
+               <c n="CutLA" cnt="6"/>
+               <c n="cutLC" cnt="23"/>
+               <c n="cutWA" cnt="16"/>
+               <c n="cutWC" cnt="6"/>
+               <c n="HorseStory" cnt="2"/>
+               <c n="No_media" cnt="25">
+                  <c n="C03" cnt="15"/>
+               </c>
+               <c n="No_Metadata" cnt="1"/>
+               <c n="Spon" cnt="31"/>
+            </c>
+         </c>
+         <c n="ac-DaZ-AF" cnt="131">
+            <c n="Adolescent" cnt="65"/>
+            <c n="Child" cnt="63"/>
+            <c n="MorLib" cnt="0"/>
+         </c>
+         <c n="ac-dimroth" cnt="53">
+            <c n="L1-German" cnt="7"/>
+            <c n="L2_German" cnt="40">
+               <c n="L1_Croatian" cnt="3"/>
+               <c n="L1_Russian" cnt="31"/>
+               <c n="L1_Turkish" cnt="6"/>
+            </c>
+         </c>
+         <c n="ac-ESF" cnt="3282">
+            <c n="corpman" cnt="743"/>
+            <c n="TL_Dutch" cnt="608">
+               <c n="SL_Arabic" cnt="320">
+                  <c n="Fatima" cnt="69">
+                     <c n="Fatima_11" cnt="1"/>
+                     <c n="Fatima_12" cnt="1"/>
+                     <c n="Fatima_13" cnt="3"/>
+                     <c n="Fatima_14" cnt="1"/>
+                     <c n="Fatima_15" cnt="1"/>
+                     <c n="Fatima_16" cnt="4"/>
+                     <c n="Fatima_17" cnt="2"/>
+                     <c n="Fatima_18" cnt="2"/>
+                     <c n="Fatima_19" cnt="3"/>
+                     <c n="Fatima_21" cnt="1"/>
+                     <c n="Fatima_22" cnt="1"/>
+                     <c n="Fatima_23" cnt="4"/>
+                     <c n="Fatima_24" cnt="1"/>
+                     <c n="Fatima_25" cnt="1"/>
+                     <c n="Fatima_26" cnt="2"/>
+                     <c n="Fatima_27" cnt="3"/>
+                     <c n="Fatima_28" cnt="3"/>
+                     <c n="Fatima_29" cnt="3"/>
+                     <c n="Fatima_31" cnt="1"/>
+                     <c n="Fatima_32" cnt="4"/>
+                     <c n="Fatima_33" cnt="6"/>
+                     <c n="Fatima_34" cnt="4"/>
+                     <c n="Fatima_35" cnt="1"/>
+                     <c n="Fatima_36" cnt="5"/>
+                     <c n="Fatima_37" cnt="3"/>
+                     <c n="Fatima_38" cnt="3"/>
+                     <c n="Fatima_39" cnt="5"/>
+                  </c>
+                  <c n="HassanK" cnt="82">
+                     <c n="HassanK_11" cnt="1"/>
+                     <c n="HassanK_12" cnt="1"/>
+                     <c n="HassanK_13" cnt="4"/>
+                     <c n="HassanK_14" cnt="1"/>
+                     <c n="HassanK_15" cnt="1"/>
+                     <c n="HassanK_16" cnt="4"/>
+                     <c n="HassanK_17" cnt="1"/>
+                     <c n="HassanK_18" cnt="2"/>
+                     <c n="HassanK_19" cnt="3"/>
+                     <c n="HassanK_21" cnt="1"/>
+                     <c n="HassanK_22" cnt="1"/>
+                     <c n="HassanK_23" cnt="5"/>
+                     <c n="HassanK_24" cnt="1"/>
+                     <c n="HassanK_25" cnt="1"/>
+                     <c n="HassanK_26" cnt="3"/>
+                     <c n="HassanK_27" cnt="12"/>
+                     <c n="HassanK_28" cnt="7"/>
+                     <c n="HassanK_29" cnt="3"/>
+                     <c n="HassanK_31" cnt="7"/>
+                     <c n="HassanK_32" cnt="1"/>
+                     <c n="HassanK_33" cnt="4"/>
+                     <c n="HassanK_34" cnt="1"/>
+                     <c n="HassanK_35" cnt="1"/>
+                     <c n="HassanK_36" cnt="3"/>
+                     <c n="HassanK_37" cnt="1"/>
+                     <c n="HassanK_38" cnt="9"/>
+                     <c n="HassanK_39" cnt="3"/>
+                  </c>
+                  <c n="HassanM" cnt="78">
+                     <c n="HassanM_11" cnt="1"/>
+                     <c n="HassanM_12" cnt="1"/>
+                     <c n="HassanM_13" cnt="3"/>
+                     <c n="HassanM_14" cnt="1"/>
+                     <c n="HassanM_15" cnt="1"/>
+                     <c n="HassanM_16" cnt="3"/>
+                     <c n="HassanM_17" cnt="1"/>
+                     <c n="HassanM_18" cnt="1"/>
+                     <c n="HassanM_19" cnt="3"/>
+                     <c n="HassanM_21" cnt="1"/>
+                     <c n="HassanM_22" cnt="1"/>
+                     <c n="HassanM_23" cnt="2"/>
+                     <c n="HassanM_24" cnt="1"/>
+                     <c n="HassanM_25" cnt="9"/>
+                     <c n="HassanM_26" cnt="3"/>
+                     <c n="HassanM_27" cnt="1"/>
+                     <c n="HassanM_28" cnt="3"/>
+                     <c n="HassanM_29" cnt="3"/>
+                     <c n="HassanM_31" cnt="6"/>
+                     <c n="HassanM_32" cnt="8"/>
+                     <c n="HassanM_33" cnt="4"/>
+                     <c n="HassanM_34" cnt="1"/>
+                     <c n="HassanM_35" cnt="1"/>
+                     <c n="HassanM_36" cnt="5"/>
+                     <c n="HassanM_37" cnt="1"/>
+                     <c n="HassanM_38" cnt="10"/>
+                     <c n="HassanM_39" cnt="3"/>
+                  </c>
+                  <c n="Mohammed" cnt="91">
+                     <c n="Mohammed_11" cnt="1"/>
+                     <c n="Mohammed_12" cnt="1"/>
+                     <c n="Mohammed_13" cnt="3"/>
+                     <c n="Mohammed_14" cnt="3"/>
+                     <c n="Mohammed_15" cnt="2"/>
+                     <c n="Mohammed_16" cnt="4"/>
+                     <c n="Mohammed_17" cnt="4"/>
+                     <c n="Mohammed_18" cnt="1"/>
+                     <c n="Mohammed_19" cnt="3"/>
+                     <c n="Mohammed_21" cnt="1"/>
+                     <c n="Mohammed_22" cnt="1"/>
+                     <c n="Mohammed_23" cnt="5"/>
+                     <c n="Mohammed_24" cnt="3"/>
+                     <c n="Mohammed_25" cnt="4"/>
+                     <c n="Mohammed_26" cnt="3"/>
+                     <c n="Mohammed_27" cnt="5"/>
+                     <c n="Mohammed_28" cnt="6"/>
+                     <c n="Mohammed_29" cnt="3"/>
+                     <c n="Mohammed_31" cnt="6"/>
+                     <c n="Mohammed_32" cnt="6"/>
+                     <c n="Mohammed_33" cnt="5"/>
+                     <c n="Mohammed_34" cnt="3"/>
+                     <c n="Mohammed_35" cnt="2"/>
+                     <c n="Mohammed_36" cnt="3"/>
+                     <c n="Mohammed_37" cnt="1"/>
+                     <c n="Mohammed_38" cnt="9"/>
+                     <c n="Mohammed_39" cnt="3"/>
+                  </c>
+               </c>
+               <c n="SL_Turkish" cnt="288">
+                  <c n="Abdullah" cnt="79">
+                     <c n="Abdullah_11" cnt="1"/>
+                     <c n="Abdullah_12" cnt="1"/>
+                     <c n="Abdullah_13" cnt="4"/>
+                     <c n="Abdullah_14" cnt="9"/>
+                     <c n="Abdullah_15" cnt="1"/>
+                     <c n="Abdullah_16" cnt="5"/>
+                     <c n="Abdullah_17" cnt="1"/>
+                     <c n="Abdullah_18" cnt="2"/>
+                     <c n="Abdullah_19" cnt="4"/>
+                     <c n="Abdullah_21" cnt="7"/>
+                     <c n="Abdullah_22" cnt="1"/>
+                     <c n="Abdullah_23" cnt="5"/>
+                     <c n="Abdullah_24" cnt="5"/>
+                     <c n="Abdullah_25" cnt="1"/>
+                     <c n="Abdullah_26" cnt="5"/>
+                     <c n="Abdullah_27" cnt="6"/>
+                     <c n="Abdullah_28" cnt="3"/>
+                     <c n="Abdullah_29" cnt="3"/>
+                     <c n="Abdullah_31" cnt="1"/>
+                     <c n="Abdullah_32" cnt="1"/>
+                     <c n="Abdullah_33" cnt="6"/>
+                     <c n="Abdullah_34" cnt="1"/>
+                     <c n="Abdullah_35" cnt="1"/>
+                     <c n="Abdullah_36" cnt="4"/>
+                     <c n="Abdullah_37" cnt="1"/>
+                  </c>
+                  <c n="Erguln" cnt="69">
+                     <c n="Erguln_11" cnt="1"/>
+                     <c n="Erguln_12" cnt="1"/>
+                     <c n="Erguln_13" cnt="5"/>
+                     <c n="Erguln_14" cnt="2"/>
+                     <c n="Erguln_15" cnt="1"/>
+                     <c n="Erguln_16" cnt="5"/>
+                     <c n="Erguln_17" cnt="2"/>
+                     <c n="Erguln_18" cnt="2"/>
+                     <c n="Erguln_19" cnt="3"/>
+                     <c n="Erguln_21" cnt="1"/>
+                     <c n="Erguln_22" cnt="1"/>
+                     <c n="Erguln_23" cnt="5"/>
+                     <c n="Erguln_24" cnt="2"/>
+                     <c n="Erguln_25" cnt="2"/>
+                     <c n="Erguln_26" cnt="5"/>
+                     <c n="Erguln_27" cnt="2"/>
+                     <c n="Erguln_28" cnt="4"/>
+                     <c n="Erguln_29" cnt="5"/>
+                     <c n="Erguln_31" cnt="2"/>
+                     <c n="Erguln_32" cnt="1"/>
+                     <c n="Erguln_33" cnt="5"/>
+                     <c n="Erguln_34" cnt="2"/>
+                     <c n="Erguln_35" cnt="1"/>
+                     <c n="Erguln_36" cnt="3"/>
+                     <c n="Erguln_37" cnt="1"/>
+                     <c n="Erguln_38" cnt="3"/>
+                     <c n="Erguln_39" cnt="2"/>
+                  </c>
+                  <c n="Mahmut" cnt="75">
+                     <c n="Mahmut_11" cnt="2"/>
+                     <c n="Mahmut_12" cnt="2"/>
+                     <c n="Mahmut_13" cnt="4"/>
+                     <c n="Mahmut_14" cnt="2"/>
+                     <c n="Mahmut_15" cnt="2"/>
+                     <c n="Mahmut_16" cnt="5"/>
+                     <c n="Mahmut_17" cnt="3"/>
+                     <c n="Mahmut_18" cnt="2"/>
+                     <c n="Mahmut_19" cnt="3"/>
+                     <c n="Mahmut_21" cnt="1"/>
+                     <c n="Mahmut_22" cnt="1"/>
+                     <c n="Mahmut_23" cnt="5"/>
+                     <c n="Mahmut_24" cnt="1"/>
+                     <c n="Mahmut_25" cnt="2"/>
+                     <c n="Mahmut_26" cnt="5"/>
+                     <c n="Mahmut_27" cnt="2"/>
+                     <c n="Mahmut_28" cnt="5"/>
+                     <c n="Mahmut_29" cnt="3"/>
+                     <c n="Mahmut_31" cnt="2"/>
+                     <c n="Mahmut_32" cnt="2"/>
+                     <c n="Mahmut_33" cnt="4"/>
+                     <c n="Mahmut_34" cnt="2"/>
+                     <c n="Mahmut_35" cnt="1"/>
+                     <c n="Mahmut_36" cnt="5"/>
+                     <c n="Mahmut_37" cnt="1"/>
+                     <c n="Mahmut_38" cnt="4"/>
+                     <c n="Mahmut_39" cnt="4"/>
+                  </c>
+                  <c n="Osman" cnt="65">
+                     <c n="Osman_11" cnt="1"/>
+                     <c n="Osman_12" cnt="1"/>
+                     <c n="Osman_13" cnt="4"/>
+                     <c n="Osman_14" cnt="2"/>
+                     <c n="Osman_15" cnt="2"/>
+                     <c n="Osman_16" cnt="4"/>
+                     <c n="Osman_17" cnt="3"/>
+                     <c n="Osman_18" cnt="2"/>
+                     <c n="Osman_19" cnt="3"/>
+                     <c n="Osman_21" cnt="1"/>
+                     <c n="Osman_22" cnt="1"/>
+                     <c n="Osman_23" cnt="5"/>
+                     <c n="Osman_24" cnt="2"/>
+                     <c n="Osman_25" cnt="1"/>
+                     <c n="Osman_26" cnt="4"/>
+                     <c n="Osman_27" cnt="2"/>
+                     <c n="Osman_28" cnt="4"/>
+                     <c n="Osman_29" cnt="4"/>
+                     <c n="Osman_31" cnt="1"/>
+                     <c n="Osman_32" cnt="1"/>
+                     <c n="Osman_33" cnt="4"/>
+                     <c n="Osman_34" cnt="1"/>
+                     <c n="Osman_35" cnt="1"/>
+                     <c n="Osman_36" cnt="3"/>
+                     <c n="Osman_37" cnt="1"/>
+                     <c n="Osman_38" cnt="4"/>
+                     <c n="Osman_39" cnt="3"/>
+                  </c>
+               </c>
+            </c>
+            <c n="TL_English" cnt="254">
+               <c n="SL_Italian" cnt="127">
+                  <c n="Andrea" cnt="33">
+                     <c n="Andrea_11" cnt="2"/>
+                     <c n="Andrea_12" cnt="1"/>
+                     <c n="Andrea_13" cnt="1"/>
+                     <c n="Andrea_14" cnt="2"/>
+                     <c n="Andrea_16" cnt="2"/>
+                     <c n="Andrea_17" cnt="1"/>
+                     <c n="Andrea_18" cnt="2"/>
+                     <c n="Andrea_22" cnt="3"/>
+                     <c n="Andrea_23" cnt="1"/>
+                     <c n="Andrea_24" cnt="2"/>
+                     <c n="Andrea_25" cnt="2"/>
+                     <c n="Andrea_27" cnt="2"/>
+                     <c n="Andrea_28" cnt="1"/>
+                     <c n="Andrea_31" cnt="2"/>
+                     <c n="Andrea_32" cnt="4"/>
+                     <c n="Andrea_33" cnt="3"/>
+                     <c n="Andrea_34" cnt="1"/>
+                     <c n="Andrea_35" cnt="1"/>
+                  </c>
+                  <c n="Lavinia" cnt="40">
+                     <c n="Lavinia_11" cnt="4"/>
+                     <c n="Lavinia_12" cnt="2"/>
+                     <c n="Lavinia_13" cnt="5"/>
+                     <c n="Lavinia_14" cnt="3"/>
+                     <c n="Lavinia_16" cnt="1"/>
+                     <c n="Lavinia_17" cnt="2"/>
+                     <c n="Lavinia_18" cnt="2"/>
+                     <c n="Lavinia_21" cnt="3"/>
+                     <c n="Lavinia_22" cnt="3"/>
+                     <c n="Lavinia_23" cnt="3"/>
+                     <c n="Lavinia_24" cnt="1"/>
+                     <c n="Lavinia_25" cnt="3"/>
+                     <c n="Lavinia_26" cnt="2"/>
+                     <c n="Lavinia_27" cnt="1"/>
+                     <c n="Lavinia_31" cnt="4"/>
+                     <c n="Lavinia_36" cnt="1"/>
+                  </c>
+                  <c n="Santo" cnt="21">
+                     <c n="Santo_11" cnt="1"/>
+                     <c n="Santo_12" cnt="2"/>
+                     <c n="Santo_13" cnt="3"/>
+                     <c n="Santo_15" cnt="1"/>
+                     <c n="Santo_16" cnt="2"/>
+                     <c n="Santo_17" cnt="2"/>
+                     <c n="Santo_18" cnt="3"/>
+                     <c n="Santo_19" cnt="1"/>
+                     <c n="Santo_21" cnt="2"/>
+                     <c n="Santo_22" cnt="3"/>
+                     <c n="Santo_24" cnt="1"/>
+                  </c>
+                  <c n="Vito" cnt="33">
+                     <c n="Vito_11" cnt="2"/>
+                     <c n="Vito_12" cnt="2"/>
+                     <c n="Vito_13" cnt="3"/>
+                     <c n="Vito_15" cnt="2"/>
+                     <c n="Vito_16" cnt="1"/>
+                     <c n="Vito_17" cnt="1"/>
+                     <c n="Vito_19" cnt="3"/>
+                     <c n="Vito_21" cnt="5"/>
+                     <c n="Vito_22" cnt="1"/>
+                     <c n="Vito_26" cnt="2"/>
+                     <c n="Vito_31" cnt="2"/>
+                     <c n="Vito_32" cnt="2"/>
+                     <c n="Vito_33" cnt="3"/>
+                     <c n="Vito_34" cnt="3"/>
+                     <c n="Vito_37" cnt="1"/>
+                  </c>
+               </c>
+               <c n="SL_Punjabi" cnt="127">
+                  <c n="Jarnail" cnt="50">
+                     <c n="Jarnail_11" cnt="4"/>
+                     <c n="Jarnail_12" cnt="2"/>
+                     <c n="Jarnail_13" cnt="2"/>
+                     <c n="Jarnail_14" cnt="2"/>
+                     <c n="Jarnail_15" cnt="2"/>
+                     <c n="Jarnail_16" cnt="3"/>
+                     <c n="Jarnail_17" cnt="3"/>
+                     <c n="Jarnail_21" cnt="2"/>
+                     <c n="Jarnail_22" cnt="3"/>
+                     <c n="Jarnail_23" cnt="2"/>
+                     <c n="Jarnail_24" cnt="2"/>
+                     <c n="Jarnail_25" cnt="3"/>
+                     <c n="Jarnail_26" cnt="2"/>
+                     <c n="Jarnail_27" cnt="2"/>
+                     <c n="Jarnail_31" cnt="3"/>
+                     <c n="Jarnail_32" cnt="2"/>
+                     <c n="Jarnail_33" cnt="3"/>
+                     <c n="Jarnail_34" cnt="3"/>
+                     <c n="Jarnail_35" cnt="2"/>
+                     <c n="Jarnail_36" cnt="3"/>
+                  </c>
+                  <c n="Madan" cnt="22">
+                     <c n="Madan_22" cnt="3"/>
+                     <c n="Madan_23" cnt="2"/>
+                     <c n="Madan_24" cnt="3"/>
+                     <c n="Madan_25" cnt="2"/>
+                     <c n="Madan_26" cnt="1"/>
+                     <c n="Madan_27" cnt="1"/>
+                     <c n="Madan_31" cnt="1"/>
+                     <c n="Madan_32" cnt="2"/>
+                     <c n="Madan_33" cnt="2"/>
+                     <c n="Madan_34" cnt="3"/>
+                     <c n="Madan_35" cnt="1"/>
+                     <c n="Madan_36" cnt="1"/>
+                  </c>
+                  <c n="Ravinder" cnt="55">
+                     <c n="Ravinder_11" cnt="1"/>
+                     <c n="Ravinder_12" cnt="4"/>
+                     <c n="Ravinder_13" cnt="4"/>
+                     <c n="Ravinder_14" cnt="2"/>
+                     <c n="Ravinder_15" cnt="2"/>
+                     <c n="Ravinder_16" cnt="3"/>
+                     <c n="Ravinder_17" cnt="3"/>
+                     <c n="Ravinder_21" cnt="4"/>
+                     <c n="Ravinder_23" cnt="3"/>
+                     <c n="Ravinder_24" cnt="2"/>
+                     <c n="Ravinder_25" cnt="3"/>
+                     <c n="Ravinder_26" cnt="4"/>
+                     <c n="Ravinder_27" cnt="2"/>
+                     <c n="Ravinder_31" cnt="4"/>
+                     <c n="Ravinder_32" cnt="2"/>
+                     <c n="Ravinder_33" cnt="3"/>
+                     <c n="Ravinder_34" cnt="4"/>
+                     <c n="Ravinder_35" cnt="2"/>
+                     <c n="Ravinder_36" cnt="3"/>
+                  </c>
+               </c>
+            </c>
+            <c n="TL_French" cnt="454">
+               <c n="SL_Arabic" cnt="292">
+                  <c n="Abdelmalek" cnt="115">
+                     <c n="Abdelmalek_11" cnt="9"/>
+                     <c n="Abdelmalek_12" cnt="5"/>
+                     <c n="Abdelmalek_13" cnt="9"/>
+                     <c n="Abdelmalek_14" cnt="3"/>
+                     <c n="Abdelmalek_15" cnt="3"/>
+                     <c n="Abdelmalek_16" cnt="5"/>
+                     <c n="Abdelmalek_17" cnt="5"/>
+                     <c n="Abdelmalek_18" cnt="1"/>
+                     <c n="Abdelmalek_19" cnt="7"/>
+                     <c n="Abdelmalek_21" cnt="1"/>
+                     <c n="Abdelmalek_22" cnt="2"/>
+                     <c n="Abdelmalek_23" cnt="5"/>
+                     <c n="Abdelmalek_24" cnt="5"/>
+                     <c n="Abdelmalek_25" cnt="4"/>
+                     <c n="Abdelmalek_26" cnt="4"/>
+                     <c n="Abdelmalek_27" cnt="5"/>
+                     <c n="Abdelmalek_28" cnt="4"/>
+                     <c n="Abdelmalek_29" cnt="4"/>
+                     <c n="Abdelmalek_31" cnt="6"/>
+                     <c n="Abdelmalek_32" cnt="6"/>
+                     <c n="Abdelmalek_33" cnt="1"/>
+                     <c n="Abdelmalek_34" cnt="1"/>
+                     <c n="Abdelmalek_35" cnt="2"/>
+                     <c n="Abdelmalek_36" cnt="5"/>
+                     <c n="Abdelmalek_37" cnt="7"/>
+                     <c n="Abdelmalek_38" cnt="1"/>
+                     <c n="Abdelmalek_39" cnt="5"/>
+                  </c>
+                  <c n="Abdessamad" cnt="83">
+                     <c n="Abdessamad_11" cnt="5"/>
+                     <c n="Abdessamad_12" cnt="3"/>
+                     <c n="Abdessamad_13" cnt="3"/>
+                     <c n="Abdessamad_14" cnt="4"/>
+                     <c n="Abdessamad_15" cnt="2"/>
+                     <c n="Abdessamad_16" cnt="2"/>
+                     <c n="Abdessamad_17" cnt="2"/>
+                     <c n="Abdessamad_18" cnt="2"/>
+                     <c n="Abdessamad_19" cnt="3"/>
+                     <c n="Abdessamad_21" cnt="4"/>
+                     <c n="Abdessamad_22" cnt="5"/>
+                     <c n="Abdessamad_23" cnt="4"/>
+                     <c n="Abdessamad_24" cnt="3"/>
+                     <c n="Abdessamad_25" cnt="4"/>
+                     <c n="Abdessamad_26" cnt="3"/>
+                     <c n="Abdessamad_27" cnt="3"/>
+                     <c n="Abdessamad_28" cnt="3"/>
+                     <c n="Abdessamad_29" cnt="4"/>
+                     <c n="Abdessamad_31" cnt="6"/>
+                     <c n="Abdessamad_32" cnt="2"/>
+                     <c n="Abdessamad_33" cnt="2"/>
+                     <c n="Abdessamad_34" cnt="2"/>
+                     <c n="Abdessamad_35" cnt="2"/>
+                     <c n="Abdessamad_36" cnt="3"/>
+                     <c n="Abdessamad_37" cnt="2"/>
+                     <c n="Abdessamad_38" cnt="2"/>
+                     <c n="Abdessamad_39" cnt="3"/>
+                  </c>
+                  <c n="Zahra" cnt="94">
+                     <c n="Zahra_11" cnt="4"/>
+                     <c n="Zahra_12" cnt="5"/>
+                     <c n="Zahra_13" cnt="4"/>
+                     <c n="Zahra_14" cnt="3"/>
+                     <c n="Zahra_15" cnt="3"/>
+                     <c n="Zahra_16" cnt="3"/>
+                     <c n="Zahra_17" cnt="3"/>
+                     <c n="Zahra_18" cnt="3"/>
+                     <c n="Zahra_21" cnt="4"/>
+                     <c n="Zahra_22" cnt="4"/>
+                     <c n="Zahra_23" cnt="4"/>
+                     <c n="Zahra_24" cnt="4"/>
+                     <c n="Zahra_25" cnt="3"/>
+                     <c n="Zahra_26" cnt="3"/>
+                     <c n="Zahra_27" cnt="3"/>
+                     <c n="Zahra_28" cnt="3"/>
+                     <c n="Zahra_31" cnt="7"/>
+                     <c n="Zahra_32" cnt="6"/>
+                     <c n="Zahra_33" cnt="3"/>
+                     <c n="Zahra_34" cnt="3"/>
+                     <c n="Zahra_35" cnt="4"/>
+                     <c n="Zahra_36" cnt="4"/>
+                     <c n="Zahra_37" cnt="3"/>
+                     <c n="Zahra_38" cnt="4"/>
+                     <c n="Zahra_39" cnt="4"/>
+                  </c>
+               </c>
+               <c n="SL_Spanish" cnt="162">
+                  <c n="Alfonso" cnt="54">
+                     <c n="Alfonso_11" cnt="3"/>
+                     <c n="Alfonso_12" cnt="3"/>
+                     <c n="Alfonso_13" cnt="3"/>
+                     <c n="Alfonso_14" cnt="2"/>
+                     <c n="Alfonso_15" cnt="2"/>
+                     <c n="Alfonso_17" cnt="2"/>
+                     <c n="Alfonso_18" cnt="2"/>
+                     <c n="Alfonso_19" cnt="3"/>
+                     <c n="Alfonso_21" cnt="3"/>
+                     <c n="Alfonso_22" cnt="2"/>
+                     <c n="Alfonso_23" cnt="4"/>
+                     <c n="Alfonso_24" cnt="3"/>
+                     <c n="Alfonso_25" cnt="1"/>
+                     <c n="Alfonso_26" cnt="2"/>
+                     <c n="Alfonso_31" cnt="2"/>
+                     <c n="Alfonso_32" cnt="4"/>
+                     <c n="Alfonso_33" cnt="3"/>
+                     <c n="Alfonso_34" cnt="4"/>
+                     <c n="Alfonso_35" cnt="2"/>
+                     <c n="Alfonso_36" cnt="4"/>
+                  </c>
+                  <c n="Berta" cnt="59">
+                     <c n="Berta_11" cnt="4"/>
+                     <c n="Berta_12" cnt="3"/>
+                     <c n="Berta_13" cnt="2"/>
+                     <c n="Berta_14" cnt="3"/>
+                     <c n="Berta_15" cnt="2"/>
+                     <c n="Berta_16" cnt="2"/>
+                     <c n="Berta_17" cnt="2"/>
+                     <c n="Berta_18" cnt="1"/>
+                     <c n="Berta_19" cnt="2"/>
+                     <c n="Berta_21" cnt="4"/>
+                     <c n="Berta_22" cnt="3"/>
+                     <c n="Berta_23" cnt="4"/>
+                     <c n="Berta_24" cnt="3"/>
+                     <c n="Berta_26" cnt="2"/>
+                     <c n="Berta_31" cnt="4"/>
+                     <c n="Berta_32" cnt="4"/>
+                     <c n="Berta_33" cnt="4"/>
+                     <c n="Berta_34" cnt="3"/>
+                     <c n="Berta_35" cnt="3"/>
+                     <c n="Berta_36" cnt="4"/>
+                  </c>
+                  <c n="Paquita" cnt="49">
+                     <c n="Paquita_11" cnt="2"/>
+                     <c n="Paquita_12" cnt="3"/>
+                     <c n="Paquita_13" cnt="3"/>
+                     <c n="Paquita_14" cnt="2"/>
+                     <c n="Paquita_15" cnt="2"/>
+                     <c n="Paquita_16" cnt="3"/>
+                     <c n="Paquita_17" cnt="2"/>
+                     <c n="Paquita_18" cnt="1"/>
+                     <c n="Paquita_19" cnt="2"/>
+                     <c n="Paquita_21" cnt="2"/>
+                     <c n="Paquita_22" cnt="5"/>
+                     <c n="Paquita_23" cnt="4"/>
+                     <c n="Paquita_24" cnt="2"/>
+                     <c n="Paquita_25" cnt="3"/>
+                     <c n="Paquita_26" cnt="1"/>
+                     <c n="Paquita_31" cnt="2"/>
+                     <c n="Paquita_32" cnt="3"/>
+                     <c n="Paquita_33" cnt="2"/>
+                     <c n="Paquita_34" cnt="2"/>
+                     <c n="Paquita_35" cnt="1"/>
+                     <c n="Paquita_36" cnt="2"/>
+                  </c>
+               </c>
+            </c>
+            <c n="TL_German" cnt="188">
+               <c n="SL_Italian" cnt="93">
+                  <c n="Alese" cnt="6">
+                     <c n="Alese_14" cnt="2"/>
+                     <c n="Alese_21" cnt="1"/>
+                     <c n="Alese_23" cnt="2"/>
+                     <c n="Alese_34" cnt="1"/>
+                  </c>
+                  <c n="Angelina" cnt="23">
+                     <c n="ANGELINA_11" cnt="1"/>
+                     <c n="ANGELINA_13" cnt="4"/>
+                     <c n="ANGELINA_14" cnt="1"/>
+                     <c n="ANGELINA_15" cnt="1"/>
+                     <c n="ANGELINA_16" cnt="1"/>
+                     <c n="ANGELINA_21" cnt="1"/>
+                     <c n="ANGELINA_23" cnt="2"/>
+                     <c n="ANGELINA_24" cnt="2"/>
+                     <c n="ANGELINA_25" cnt="1"/>
+                     <c n="ANGELINA_26" cnt="1"/>
+                     <c n="ANGELINA_29" cnt="1"/>
+                     <c n="ANGELINA_31" cnt="1"/>
+                     <c n="ANGELINA_32" cnt="1"/>
+                     <c n="ANGELINA_35" cnt="2"/>
+                     <c n="ANGELINA_36" cnt="2"/>
+                     <c n="ANGELINA_38" cnt="1"/>
+                  </c>
+                  <c n="Casco" cnt="4">
+                     <c n="Casco_13" cnt="2"/>
+                     <c n="Casco_23" cnt="2"/>
+                  </c>
+                  <c n="Gina" cnt="4">
+                     <c n="Gina_13" cnt="2"/>
+                     <c n="Gina_23" cnt="2"/>
+                  </c>
+                  <c n="Marcello" cnt="22">
+                     <c n="Marcello_11" cnt="1"/>
+                     <c n="Marcello_13" cnt="3"/>
+                     <c n="Marcello_15" cnt="1"/>
+                     <c n="Marcello_16" cnt="2"/>
+                     <c n="Marcello_21" cnt="1"/>
+                     <c n="Marcello_23" cnt="2"/>
+                     <c n="Marcello_25" cnt="2"/>
+                     <c n="Marcello_26" cnt="1"/>
+                     <c n="Marcello_27" cnt="1"/>
+                     <c n="Marcello_31" cnt="1"/>
+                     <c n="Marcello_33" cnt="3"/>
+                     <c n="Marcello_35" cnt="1"/>
+                     <c n="Marcello_36" cnt="3"/>
+                  </c>
+                  <c n="Tino" cnt="30">
+                     <c n="Tino_11" cnt="1"/>
+                     <c n="Tino_12" cnt="1"/>
+                     <c n="Tino_13" cnt="3"/>
+                     <c n="Tino_14" cnt="1"/>
+                     <c n="Tino_16" cnt="1"/>
+                     <c n="Tino_17" cnt="2"/>
+                     <c n="Tino_19" cnt="1"/>
+                     <c n="Tino_21" cnt="1"/>
+                     <c n="Tino_23" cnt="2"/>
+                     <c n="Tino_24" cnt="1"/>
+                     <c n="Tino_25" cnt="1"/>
+                     <c n="Tino_26" cnt="1"/>
+                     <c n="Tino_27" cnt="2"/>
+                     <c n="Tino_29" cnt="1"/>
+                     <c n="Tino_32" cnt="1"/>
+                     <c n="Tino_33" cnt="3"/>
+                     <c n="Tino_35" cnt="1"/>
+                     <c n="Tino_36" cnt="3"/>
+                     <c n="Tino_37" cnt="1"/>
+                     <c n="Tino_39" cnt="2"/>
+                  </c>
+                  <c n="Vito" cnt="4"/>
+               </c>
+               <c n="SL_Turkish" cnt="95">
+                  <c n="Abdullah" cnt="10">
+                     <c n="Abdullah_13" cnt="2"/>
+                     <c n="Abdullah_17" cnt="1"/>
+                     <c n="Abdullah_21" cnt="1"/>
+                     <c n="Abdullah_23" cnt="2"/>
+                     <c n="Abdullah_25" cnt="1"/>
+                     <c n="Abdullah_33" cnt="2"/>
+                     <c n="Abdullah_34" cnt="1"/>
+                  </c>
+                  <c n="AYSE" cnt="25">
+                     <c n="Ayse_11" cnt="1"/>
+                     <c n="Ayse_13" cnt="3"/>
+                     <c n="Ayse_15" cnt="1"/>
+                     <c n="Ayse_16" cnt="3"/>
+                     <c n="Ayse_21" cnt="1"/>
+                     <c n="Ayse_23" cnt="3"/>
+                     <c n="Ayse_25" cnt="2"/>
+                     <c n="Ayse_26" cnt="1"/>
+                     <c n="Ayse_29" cnt="1"/>
+                     <c n="Ayse_31" cnt="1"/>
+                     <c n="Ayse_33" cnt="3"/>
+                     <c n="Ayse_34" cnt="2"/>
+                     <c n="Ayse_35" cnt="2"/>
+                     <c n="Ayse_37" cnt="1"/>
+                  </c>
+                  <c n="Cevdet" cnt="23">
+                     <c n="Cevdet_11" cnt="1"/>
+                     <c n="Cevdet_12" cnt="1"/>
+                     <c n="Cevdet_13" cnt="2"/>
+                     <c n="Cevdet_15" cnt="1"/>
+                     <c n="Cevdet_16" cnt="2"/>
+                     <c n="Cevdet_21" cnt="1"/>
+                     <c n="Cevdet_23" cnt="3"/>
+                     <c n="Cevdet_25" cnt="1"/>
+                     <c n="Cevdet_26" cnt="2"/>
+                     <c n="Cevdet_27" cnt="1"/>
+                     <c n="Cevdet_31" cnt="1"/>
+                     <c n="Cevdet_33" cnt="2"/>
+                     <c n="Cevdet_34" cnt="1"/>
+                     <c n="Cevdet_35" cnt="1"/>
+                     <c n="Cevdet_36" cnt="3"/>
+                  </c>
+                  <c n="Erdogan" cnt="3"/>
+                  <c n="Ertem" cnt="3">
+                     <c n="Ertem_13" cnt="1"/>
+                     <c n="Ertem_23" cnt="2"/>
+                  </c>
+                  <c n="Ilhami" cnt="23">
+                     <c n="Ilhami_11" cnt="2"/>
+                     <c n="Ilhami_13" cnt="2"/>
+                     <c n="Ilhami_14" cnt="1"/>
+                     <c n="Ilhami_15" cnt="2"/>
+                     <c n="Ilhami_21" cnt="1"/>
+                     <c n="Ilhami_23" cnt="3"/>
+                     <c n="Ilhami_25" cnt="3"/>
+                     <c n="Ilhami_26" cnt="1"/>
+                     <c n="Ilhami_33" cnt="3"/>
+                     <c n="Ilhami_34" cnt="1"/>
+                     <c n="Ilhami_35" cnt="1"/>
+                     <c n="Ilhami_37" cnt="1"/>
+                     <c n="Ilhami_39" cnt="2"/>
+                  </c>
+                  <c n="Mustafa" cnt="4">
+                     <c n="Mustafa_13" cnt="2"/>
+                     <c n="Mustafa_23" cnt="2"/>
+                  </c>
+                  <c n="Yasar" cnt="4">
+                     <c n="Yasar_13" cnt="2"/>
+                     <c n="Yasar_23" cnt="2"/>
+                  </c>
+               </c>
+            </c>
+            <c n="TL_Swedish" cnt="285">
+               <c n="SL_Finnish" cnt="140">
+                  <c n="Leo" cnt="71">
+                     <c n="Leo_10" cnt="3"/>
+                     <c n="Leo_11" cnt="4"/>
+                     <c n="Leo_12" cnt="2"/>
+                     <c n="Leo_13" cnt="4"/>
+                     <c n="Leo_14" cnt="1"/>
+                     <c n="Leo_15" cnt="1"/>
+                     <c n="Leo_16" cnt="1"/>
+                     <c n="Leo_17" cnt="2"/>
+                     <c n="Leo_18" cnt="2"/>
+                     <c n="Leo_21" cnt="3"/>
+                     <c n="Leo_22" cnt="3"/>
+                     <c n="Leo_23" cnt="1"/>
+                     <c n="Leo_24" cnt="3"/>
+                     <c n="Leo_25" cnt="1"/>
+                     <c n="Leo_26" cnt="2"/>
+                     <c n="Leo_27" cnt="3"/>
+                     <c n="Leo_28" cnt="5"/>
+                     <c n="Leo_29" cnt="5"/>
+                     <c n="Leo_31" cnt="4"/>
+                     <c n="Leo_32" cnt="6"/>
+                     <c n="Leo_33" cnt="3"/>
+                     <c n="Leo_34" cnt="3"/>
+                     <c n="Leo_35" cnt="1"/>
+                     <c n="Leo_36" cnt="4"/>
+                     <c n="Leo_37" cnt="3"/>
+                     <c n="Leo_41" cnt="1"/>
+                  </c>
+                  <c n="Mari" cnt="69">
+                     <c n="Control_data" cnt="1"/>
+                     <c n="Mari_11" cnt="4"/>
+                     <c n="Mari_12" cnt="1"/>
+                     <c n="Mari_13" cnt="3"/>
+                     <c n="Mari_14" cnt="2"/>
+                     <c n="Mari_15" cnt="2"/>
+                     <c n="Mari_16" cnt="4"/>
+                     <c n="Mari_17" cnt="5"/>
+                     <c n="Mari_18" cnt="2"/>
+                     <c n="Mari_21" cnt="6"/>
+                     <c n="Mari_22" cnt="1"/>
+                     <c n="Mari_23" cnt="4"/>
+                     <c n="Mari_24" cnt="2"/>
+                     <c n="Mari_25" cnt="3"/>
+                     <c n="Mari_26" cnt="1"/>
+                     <c n="Mari_27" cnt="3"/>
+                     <c n="Mari_31" cnt="5"/>
+                     <c n="Mari_32" cnt="4"/>
+                     <c n="Mari_33" cnt="3"/>
+                     <c n="Mari_34" cnt="2"/>
+                     <c n="Mari_35" cnt="1"/>
+                     <c n="Mari_36" cnt="3"/>
+                     <c n="Mari_37" cnt="3"/>
+                     <c n="Mari_41" cnt="4"/>
+                  </c>
+               </c>
+               <c n="SL_Spanish" cnt="145">
+                  <c n="Fernando" cnt="85">
+                     <c n="Fernando_10" cnt="7"/>
+                     <c n="Fernando_11" cnt="7"/>
+                     <c n="Fernando_12" cnt="2"/>
+                     <c n="Fernando_13" cnt="2"/>
+                     <c n="Fernando_14" cnt="3"/>
+                     <c n="Fernando_15" cnt="1"/>
+                     <c n="Fernando_16" cnt="1"/>
+                     <c n="Fernando_17" cnt="1"/>
+                     <c n="Fernando_18" cnt="2"/>
+                     <c n="Fernando_19" cnt="1"/>
+                     <c n="Fernando_21" cnt="5"/>
+                     <c n="Fernando_22" cnt="3"/>
+                     <c n="Fernando_23" cnt="2"/>
+                     <c n="Fernando_24" cnt="3"/>
+                     <c n="Fernando_25" cnt="1"/>
+                     <c n="Fernando_26" cnt="1"/>
+                     <c n="Fernando_27" cnt="3"/>
+                     <c n="Fernando_28" cnt="4"/>
+                     <c n="Fernando_29" cnt="3"/>
+                     <c n="Fernando_30" cnt="1"/>
+                     <c n="Fernando_31" cnt="5"/>
+                     <c n="Fernando_32" cnt="4"/>
+                     <c n="Fernando_33" cnt="2"/>
+                     <c n="Fernando_34" cnt="2"/>
+                     <c n="Fernando_35" cnt="1"/>
+                     <c n="Fernando_36" cnt="5"/>
+                     <c n="Fernando_37" cnt="2"/>
+                     <c n="Fernando_38" cnt="1"/>
+                     <c n="Fernando_41" cnt="7"/>
+                     <c n="Fernando_42" cnt="2"/>
+                     <c n="Source_Language_Data" cnt="1"/>
+                  </c>
+                  <c n="Nora" cnt="60">
+                     <c n="Nora_11" cnt="3"/>
+                     <c n="Nora_12" cnt="1"/>
+                     <c n="Nora_13" cnt="2"/>
+                     <c n="Nora_14" cnt="1"/>
+                     <c n="Nora_15" cnt="1"/>
+                     <c n="Nora_16" cnt="2"/>
+                     <c n="Nora_17" cnt="2"/>
+                     <c n="Nora_18" cnt="1"/>
+                     <c n="Nora_21" cnt="5"/>
+                     <c n="Nora_22" cnt="1"/>
+                     <c n="Nora_23" cnt="3"/>
+                     <c n="Nora_24" cnt="2"/>
+                     <c n="Nora_25" cnt="3"/>
+                     <c n="Nora_26" cnt="3"/>
+                     <c n="Nora_27" cnt="2"/>
+                     <c n="Nora_28" cnt="2"/>
+                     <c n="Nora_29" cnt="1"/>
+                     <c n="Nora_31" cnt="5"/>
+                     <c n="Nora_32" cnt="3"/>
+                     <c n="Nora_33" cnt="2"/>
+                     <c n="Nora_34" cnt="2"/>
+                     <c n="Nora_35" cnt="1"/>
+                     <c n="Nora_36" cnt="1"/>
+                     <c n="Nora_37" cnt="2"/>
+                     <c n="Nora_41" cnt="4"/>
+                     <c n="Nora_42" cnt="2"/>
+                     <c n="Nora_43" cnt="3"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="ac-FiniteStory" cnt="230">
+            <c n="Dutch" cnt="111">
+               <c n="Control_data_-_Dutch" cnt="10"/>
+               <c n="L2_Dutch-L1-Moroccan_Arabic" cnt="55"/>
+               <c n="L2_Dutch-L1-Turkish" cnt="46"/>
+            </c>
+            <c n="Englisch" cnt="14">
+               <c n="Control_data_-_English" cnt="14"/>
+            </c>
+            <c n="German" cnt="92">
+               <c n="Control_data_-_German" cnt="21"/>
+               <c n="L2_German-Dimroth" cnt="23"/>
+               <c n="L2_German-Schimke" cnt="46"/>
+               <c n="Pilot_data" cnt="2"/>
+            </c>
+         </c>
+         <c n="ac-Imitation" cnt="123">
+            <c n="Auxiliary_Stories" cnt="42"/>
+            <c n="Finite_Stories" cnt="40"/>
+            <c n="Imitations" cnt="37"/>
+         </c>
+         <c n="ac-jidong" cnt="247">
+            <c n="Adult" cnt="10">
+               <c n="elicited" cnt="10"/>
+            </c>
+            <c n="Children" cnt="227">
+               <c n="elicited" cnt="203">
+                  <c n="Comprehension_Angelika" cnt="80"/>
+                  <c n="Production_Cut_break" cnt="42"/>
+                  <c n="Production_Tomatoman" cnt="42"/>
+                  <c n="Production_VV" cnt="39"/>
+               </c>
+               <c n="spontaneous" cnt="24"/>
+            </c>
+         </c>
+         <c n="ac-jolink" cnt="117">
+            <c n="Normal_dev" cnt="75">
+               <c n="elicited" cnt="40"/>
+               <c n="spontaneous" cnt="35"/>
+            </c>
+            <c n="Spec_Lang_Impairment" cnt="35">
+               <c n="elicited" cnt="21"/>
+               <c n="spontaneous" cnt="14"/>
+            </c>
+         </c>
+         <c n="ac-julka" cnt="165">
+            <c n="Age_1_3_8-1_11_24" cnt="43">
+               <c n="German" cnt="30"/>
+               <c n="Polish" cnt="13"/>
+            </c>
+            <c n="Age_2_0_2-2_11_22" cnt="71">
+               <c n="German" cnt="36"/>
+               <c n="Polish" cnt="35"/>
+            </c>
+            <c n="Age_3_0_21-3_11_29" cnt="37">
+               <c n="German" cnt="16"/>
+               <c n="Polish" cnt="21"/>
+            </c>
+            <c n="Age_4_1.8" cnt="1"/>
+         </c>
+         <c n="ac-MaxMiller" cnt="120">
+            <c n="kerstin" cnt="37"/>
+            <c n="simone" cnt="73"/>
+         </c>
+         <c n="ac-pbrown" cnt="824">
+            <c n="Infant_interaction_study" cnt="69">
+               <c n="2005" cnt="4"/>
+               <c n="2006_April" cnt="10"/>
+               <c n="2006_Nov" cnt="11"/>
+               <c n="2007" cnt="21"/>
+               <c n="2008_May" cnt="23"/>
+            </c>
+            <c n="Longitudinal_Child_Study" cnt="500">
+               <c n="Lus" cnt="72">
+                  <c n="Age_1_0-1_5" cnt="1"/>
+                  <c n="Age_1_6-1_11" cnt="3"/>
+                  <c n="Age_2_0-2_5" cnt="8"/>
+                  <c n="Age_2_6-2_11" cnt="8"/>
+                  <c n="Age_3_0-3_5" cnt="5"/>
+                  <c n="Age_3_6-3_11" cnt="23"/>
+                  <c n="Age_4_0-4_5" cnt="14"/>
+                  <c n="Age_4_6-4_11" cnt="10"/>
+               </c>
+               <c n="Mik" cnt="106">
+                  <c n="Age_0_6-0_11" cnt="5"/>
+                  <c n="Age_1_0-1_5" cnt="17"/>
+                  <c n="Age_1_6-1_11" cnt="19"/>
+                  <c n="Age_2_0-2_5" cnt="17"/>
+                  <c n="Age_2_6-2_11" cnt="15"/>
+                  <c n="Age_3_0-3_5" cnt="10"/>
+                  <c n="Age_3_6-3_11" cnt="14"/>
+                  <c n="Age_4_0-4_5" cnt="5"/>
+                  <c n="Age_4_6-4_11" cnt="2"/>
+                  <c n="unclear" cnt="2"/>
+               </c>
+               <c n="Other" cnt="8">
+                  <c n="Ins" cnt="2"/>
+                  <c n="Tujk" cnt="1"/>
+                  <c n="Xil" cnt="1"/>
+                  <c n="Yix" cnt="4"/>
+               </c>
+               <c n="Pet" cnt="105">
+                  <c n="Age_0_0-0_5" cnt="2"/>
+                  <c n="Age_0_6-0_11" cnt="2"/>
+                  <c n="Age_1_0-1_5" cnt="1"/>
+                  <c n="Age_1_6-1_11" cnt="12"/>
+                  <c n="Age_2_0-2_5" cnt="12"/>
+                  <c n="Age_2_6-2_11" cnt="23"/>
+                  <c n="Age_3_0-3_5" cnt="20"/>
+                  <c n="Age_3_6-3_11" cnt="15"/>
+                  <c n="Age_4_0-4_5" cnt="10"/>
+                  <c n="Age_4_6-4_11" cnt="7"/>
+                  <c n="Age_5_0-5_5" cnt="1"/>
+               </c>
+               <c n="Xan" cnt="88">
+                  <c n="Age_0_0-0_5" cnt="1"/>
+                  <c n="Age_1_0-1_5" cnt="11"/>
+                  <c n="Age_1_6-1_11" cnt="11"/>
+                  <c n="Age_2_0-2_5" cnt="22"/>
+                  <c n="Age_2_6-2_11" cnt="20"/>
+                  <c n="Age_3_0-3_5" cnt="23"/>
+                  <c n="Age_3_6-3_11" cnt="0"/>
+               </c>
+               <c n="Xaw" cnt="121">
+                  <c n="Age_1_0-1_5" cnt="2"/>
+                  <c n="Age_1_6-1_11" cnt="20"/>
+                  <c n="Age_2_0-2_5" cnt="12"/>
+                  <c n="Age_2_6-2_11" cnt="25"/>
+                  <c n="Age_3_0-3_5" cnt="21"/>
+                  <c n="Age_3_6-3_11" cnt="16"/>
+                  <c n="Age_4_0-4_5" cnt="11"/>
+                  <c n="Age_4_6-4_11" cnt="9"/>
+                  <c n="Age_5_0-5_5" cnt="5"/>
+               </c>
+            </c>
+            <c n="photos" cnt="110">
+               <c n="1990_summer" cnt="21">
+                  <c n="1990_packet_01" cnt="1"/>
+                  <c n="1990_packet_02" cnt="1"/>
+                  <c n="1990_packet_03" cnt="1"/>
+                  <c n="1990_packet_05" cnt="1"/>
+                  <c n="1990_packet_06" cnt="1"/>
+                  <c n="1990_packet_07" cnt="1"/>
+                  <c n="1990_packet_08" cnt="1"/>
+                  <c n="1990_packet_09" cnt="1"/>
+                  <c n="1990_packet_10" cnt="1"/>
+                  <c n="1990_packet_11" cnt="1"/>
+                  <c n="1990_packet_12" cnt="1"/>
+                  <c n="1990_packet_13" cnt="1"/>
+                  <c n="1990_packet_14" cnt="1"/>
+                  <c n="1990_packet_15" cnt="1"/>
+                  <c n="1990_packet_16" cnt="1"/>
+                  <c n="1990_packet_17" cnt="1"/>
+                  <c n="1990_packet_18" cnt="1"/>
+                  <c n="1990_packet_19" cnt="1"/>
+                  <c n="1990_packet_20" cnt="1"/>
+                  <c n="1990_packet_21" cnt="1"/>
+                  <c n="1990_packet_22" cnt="1"/>
+               </c>
+               <c n="1991_summer" cnt="17">
+                  <c n="1991s_Majosik_sequence_packet_2" cnt="1"/>
+                  <c n="1991s_Majosik_sequence_packet_3" cnt="1"/>
+                  <c n="1991s_packet_01" cnt="1"/>
+                  <c n="1991s_packet_02" cnt="1"/>
+                  <c n="1991s_packet_03" cnt="1"/>
+                  <c n="1991s_packet_04" cnt="1"/>
+                  <c n="1991s_packet_05" cnt="1"/>
+                  <c n="1991s_packet_06" cnt="1"/>
+                  <c n="1991s_packet_07" cnt="1"/>
+                  <c n="1991s_packet_08" cnt="1"/>
+                  <c n="1991s_packet_09" cnt="1"/>
+                  <c n="1991s_packet_10" cnt="1"/>
+                  <c n="1991s_packet_11" cnt="1"/>
+                  <c n="1991s_packet_12" cnt="1"/>
+                  <c n="1991s_packet_13" cnt="1"/>
+                  <c n="1991s_packet_14" cnt="1"/>
+                  <c n="1991s_packet_15" cnt="1"/>
+               </c>
+               <c n="1991_Xmas_to_Jan_1992" cnt="3">
+                  <c n="1991-2_packet_2" cnt="1"/>
+                  <c n="1991-2_packet_4" cnt="1"/>
+                  <c n="1991-2_packet_6" cnt="1"/>
+               </c>
+               <c n="1992_Xmas_to_Jan_1993" cnt="3">
+                  <c n="1992-3_Xmas_packet_1" cnt="1"/>
+                  <c n="1992-3_Xmas_packet_2" cnt="1"/>
+                  <c n="1992-3_Xmas_packet_3" cnt="1"/>
+               </c>
+               <c n="1993_summer" cnt="19">
+                  <c n="1993s_b_w" cnt="1"/>
+                  <c n="1993s_packet_01" cnt="1"/>
+                  <c n="1993s_packet_02" cnt="1"/>
+                  <c n="1993s_packet_03" cnt="1"/>
+                  <c n="1993s_packet_04" cnt="1"/>
+                  <c n="1993s_packet_05" cnt="1"/>
+                  <c n="1993s_packet_06" cnt="1"/>
+                  <c n="1993s_packet_07" cnt="1"/>
+                  <c n="1993s_packet_08" cnt="2">
+                     <c n="1993s_packet_08_edited_copies" cnt="1"/>
+                  </c>
+                  <c n="1993s_packet_09" cnt="1"/>
+                  <c n="1993s_packet_10" cnt="1"/>
+                  <c n="1993s_packet_11" cnt="1"/>
+                  <c n="1993s_packet_12" cnt="1"/>
+                  <c n="1993s_packet_13" cnt="1"/>
+                  <c n="1993s_packet_14" cnt="1"/>
+                  <c n="1993s_packet_15" cnt="1"/>
+                  <c n="1993s_packet_16" cnt="1"/>
+                  <c n="SteveScenerypics" cnt="1"/>
+               </c>
+               <c n="1993_Xmas_to_Jan_1994" cnt="1"/>
+               <c n="1994_April" cnt="2">
+                  <c n="1994_Apr_packet_1" cnt="1"/>
+                  <c n="1994_Apr_packet_2" cnt="1"/>
+               </c>
+               <c n="1994_Feb" cnt="3">
+                  <c n="1994_Feb_packet_1" cnt="1"/>
+                  <c n="1994_Feb_packet_2" cnt="1"/>
+                  <c n="1994_Feb_packet_3" cnt="1"/>
+               </c>
+               <c n="1994_May" cnt="2">
+                  <c n="1994_May_packet_1" cnt="1"/>
+                  <c n="1994_May_packet_2" cnt="1"/>
+               </c>
+               <c n="1994_Sept" cnt="2">
+                  <c n="1994_Sept_packet_1" cnt="1"/>
+                  <c n="1994_Sept_packet_2" cnt="1"/>
+               </c>
+               <c n="1994_summer" cnt="15">
+                  <c n="1994s_packet_01" cnt="1"/>
+                  <c n="1994s_packet_02" cnt="1"/>
+                  <c n="1994s_packet_03" cnt="1"/>
+                  <c n="1994s_packet_04" cnt="1"/>
+                  <c n="1994s_packet_05" cnt="1"/>
+                  <c n="1994s_packet_06" cnt="1"/>
+                  <c n="1994s_packet_07" cnt="1"/>
+                  <c n="1994s_packet_08" cnt="1"/>
+                  <c n="1994s_packet_09" cnt="1"/>
+                  <c n="1994s_packet_10" cnt="1"/>
+                  <c n="1994s_packet_11" cnt="1"/>
+                  <c n="1994s_packet_12" cnt="1"/>
+                  <c n="1994s_packet_13" cnt="1"/>
+                  <c n="1994s_packet_14" cnt="1"/>
+                  <c n="1994s_packet_15" cnt="1"/>
+               </c>
+               <c n="1995_summer" cnt="10">
+                  <c n="1995s_packet_01" cnt="1"/>
+                  <c n="1995s_packet_02" cnt="1"/>
+                  <c n="1995s_packet_03" cnt="1"/>
+                  <c n="1995s_packet_04" cnt="1"/>
+                  <c n="1995s_packet_05" cnt="1"/>
+                  <c n="1995s_packet_06" cnt="1"/>
+                  <c n="1995s_packet_07" cnt="1"/>
+                  <c n="1995s_packet_08" cnt="1"/>
+                  <c n="1995s_packet_09" cnt="1"/>
+                  <c n="1995s_packet_10" cnt="1"/>
+               </c>
+               <c n="1996_Jan" cnt="4">
+                  <c n="1996_Jan_packet_1" cnt="1"/>
+                  <c n="1996_Jan_packet_2" cnt="1"/>
+                  <c n="1996_Jan_packet_3" cnt="1"/>
+                  <c n="1996_Jan_packet_4" cnt="1"/>
+               </c>
+               <c n="1996_Mar" cnt="1">
+                  <c n="1996_Mar_packet_1" cnt="1"/>
+               </c>
+               <c n="1996_May" cnt="1">
+                  <c n="1996_May_packet_1" cnt="1"/>
+               </c>
+               <c n="1996_Oct" cnt="1">
+                  <c n="1996_Oct_packet_1" cnt="1"/>
+               </c>
+               <c n="1996_summer" cnt="1">
+                  <c n="1996_july" cnt="1"/>
+               </c>
+               <c n="1997_summer" cnt="4">
+                  <c n="1997s_packet_1" cnt="1"/>
+                  <c n="1997s_packet_2" cnt="1"/>
+                  <c n="1997s_packet_3" cnt="1"/>
+                  <c n="1997s_packet_4" cnt="1"/>
+               </c>
+            </c>
+         </c>
+         <c n="ac-pbrown-rossel" cnt="127">
+            <c n="2003" cnt="16"/>
+            <c n="2004" cnt="28"/>
+            <c n="2005" cnt="24"/>
+            <c n="2006" cnt="23"/>
+            <c n="2008" cnt="28"/>
+         </c>
+         <c n="ac-pmoll" cnt="786">
+            <c n="Control_group-L1_German" cnt="47">
+               <c n="Christa" cnt="11"/>
+               <c n="Kurt" cnt="7"/>
+               <c n="Martin" cnt="14"/>
+               <c n="Paul" cnt="6"/>
+               <c n="Rita" cnt="9"/>
+            </c>
+            <c n="L1_Italian" cnt="63">
+               <c n="Franca" cnt="57">
+                  <c n="Cycle_1" cnt="40"/>
+                  <c n="Cycle_2" cnt="5"/>
+                  <c n="Cycle_3" cnt="12"/>
+               </c>
+               <c n="Other" cnt="6"/>
+            </c>
+            <c n="L1_Polish" cnt="617">
+               <c n="Antek" cnt="109">
+                  <c n="Cycle_1" cnt="55"/>
+                  <c n="Cycle_2" cnt="39"/>
+                  <c n="Cycle_3" cnt="15"/>
+               </c>
+               <c n="Bronka" cnt="64">
+                  <c n="Cycle_1" cnt="38"/>
+                  <c n="Cycle_2" cnt="26"/>
+               </c>
+               <c n="Ela" cnt="84">
+                  <c n="Cycle_1" cnt="50"/>
+                  <c n="Cycle_2" cnt="27"/>
+                  <c n="Cycle_3" cnt="7"/>
+               </c>
+               <c n="Janka" cnt="71">
+                  <c n="Cycle_1" cnt="37"/>
+                  <c n="Cycle_2" cnt="25"/>
+                  <c n="Cycle_3" cnt="9"/>
+               </c>
+               <c n="Marian" cnt="88">
+                  <c n="Cycle_1" cnt="44"/>
+                  <c n="Cycle_2" cnt="32"/>
+                  <c n="Cycle_3" cnt="12"/>
+               </c>
+               <c n="Other" cnt="6"/>
+               <c n="Sascha" cnt="84">
+                  <c n="Cycle_1" cnt="47"/>
+                  <c n="Cycle_2" cnt="29"/>
+                  <c n="Cycle_3" cnt="8"/>
+               </c>
+               <c n="Urszula" cnt="111">
+                  <c n="Cycle_1" cnt="42"/>
+                  <c n="Cycle_2" cnt="42"/>
+                  <c n="Cycle_3" cnt="27"/>
+               </c>
+            </c>
+         </c>
+         <c n="ac-poulisse" cnt="49">
+            <c n="group_1" cnt="15"/>
+            <c n="group_2" cnt="15"/>
+            <c n="group_3" cnt="15"/>
+         </c>
+         <c n="ac-soneis-asec" cnt="658">
+            <c n="Dutch_Children" cnt="111">
+               <c n="endpoint" cnt="23"/>
+               <c n="puzzle_bite" cnt="22"/>
+               <c n="puzzle_give" cnt="21"/>
+               <c n="puzzle_put_on" cnt="23"/>
+               <c n="puzzle_wash" cnt="22"/>
+            </c>
+            <c n="German_Children" cnt="513">
+               <c n="circle_of_dirt" cnt="15"/>
+               <c n="clothing_game" cnt="5"/>
+               <c n="endpoint" cnt="32"/>
+               <c n="feeding_game" cnt="8"/>
+               <c n="helpful_robots" cnt="20"/>
+               <c n="lurvig" cnt="21"/>
+               <c n="memory_a_c_01" cnt="20"/>
+               <c n="memory_a_c_02" cnt="22"/>
+               <c n="memory_fit_belong" cnt="10"/>
+               <c n="memory_help" cnt="11"/>
+               <c n="memory_taste" cnt="13"/>
+               <c n="memory_wave" cnt="10"/>
+               <c n="puzzle_a_c_01" cnt="43"/>
+               <c n="puzzle_a_c_02" cnt="41"/>
+               <c n="puzzle_bite" cnt="23"/>
+               <c n="puzzle_fit_belong" cnt="21"/>
+               <c n="puzzle_give" cnt="23"/>
+               <c n="puzzle_help" cnt="19"/>
+               <c n="puzzle_put_on" cnt="24"/>
+               <c n="puzzle_show" cnt="22"/>
+               <c n="puzzle_taste" cnt="21"/>
+               <c n="puzzle_wash" cnt="24"/>
+               <c n="puzzle_wave" cnt="20"/>
+               <c n="searching_robots" cnt="25"/>
+               <c n="tomato_man" cnt="20"/>
+            </c>
+         </c>
+         <c n="ac-soneis-ased" cnt="1453">
+            <c n="dinner_talk" cnt="526">
+               <c n="1999" cnt="153">
+                  <c n="April" cnt="2"/>
+                  <c n="August" cnt="19"/>
+                  <c n="December" cnt="23"/>
+                  <c n="February" cnt="1"/>
+                  <c n="July" cnt="25"/>
+                  <c n="June" cnt="16"/>
+                  <c n="March" cnt="1"/>
+                  <c n="May" cnt="7"/>
+                  <c n="November" cnt="18"/>
+                  <c n="October" cnt="18"/>
+                  <c n="September" cnt="23"/>
+               </c>
+               <c n="2000" cnt="268">
+                  <c n="April" cnt="24"/>
+                  <c n="August" cnt="15"/>
+                  <c n="December" cnt="20"/>
+                  <c n="February" cnt="16"/>
+                  <c n="January" cnt="16"/>
+                  <c n="July" cnt="18"/>
+                  <c n="June" cnt="20"/>
+                  <c n="March" cnt="32"/>
+                  <c n="May" cnt="22"/>
+                  <c n="November" cnt="37"/>
+                  <c n="October" cnt="18"/>
+                  <c n="September" cnt="30"/>
+               </c>
+               <c n="2001" cnt="105">
+                  <c n="April" cnt="26"/>
+                  <c n="August" cnt="1"/>
+                  <c n="February" cnt="10"/>
+                  <c n="January" cnt="21"/>
+                  <c n="July" cnt="6"/>
+                  <c n="June" cnt="10"/>
+                  <c n="March" cnt="9"/>
+                  <c n="May" cnt="22"/>
+               </c>
+            </c>
+            <c n="elicitation" cnt="383">
+               <c n="act_bear_m" cnt="4"/>
+               <c n="act_bear_p" cnt="7"/>
+               <c n="act_woman_m" cnt="12"/>
+               <c n="a_c_01" cnt="1"/>
+               <c n="a_c_02" cnt="1"/>
+               <c n="a_m_01" cnt="47"/>
+               <c n="a_m_02" cnt="16"/>
+               <c n="a_p_01" cnt="10"/>
+               <c n="a_p_02" cnt="2"/>
+               <c n="bear_o" cnt="1"/>
+               <c n="bear_p" cnt="10"/>
+               <c n="belong_m" cnt="6"/>
+               <c n="belong_p" cnt="4"/>
+               <c n="bite_p" cnt="5"/>
+               <c n="clothe_c" cnt="2"/>
+               <c n="clown_o" cnt="28"/>
+               <c n="computer" cnt="2"/>
+               <c n="dirt_b" cnt="6"/>
+               <c n="doll_house" cnt="4"/>
+               <c n="domino" cnt="2"/>
+               <c n="farm_t" cnt="21"/>
+               <c n="feed_c" cnt="3"/>
+               <c n="give_p" cnt="7"/>
+               <c n="help_m" cnt="4"/>
+               <c n="help_p" cnt="4"/>
+               <c n="memory_private" cnt="72"/>
+               <c n="pic_book_private" cnt="7"/>
+               <c n="pres_c" cnt="20"/>
+               <c n="put_on_m" cnt="1"/>
+               <c n="put_on_p" cnt="3"/>
+               <c n="puzzle_private" cnt="30"/>
+               <c n="robot_a" cnt="3"/>
+               <c n="robot_b" cnt="3"/>
+               <c n="route_des" cnt="2"/>
+               <c n="show_p" cnt="4"/>
+               <c n="taste_m" cnt="7"/>
+               <c n="taste_p" cnt="8"/>
+               <c n="tomato_man" cnt="1"/>
+               <c n="toy_robot" cnt="3"/>
+               <c n="wash_p" cnt="2"/>
+               <c n="wave_m" cnt="3"/>
+               <c n="wave_p" cnt="3"/>
+               <c n="wild_t" cnt="2"/>
+            </c>
+            <c n="free_play" cnt="420">
+               <c n="1998" cnt="2">
+                  <c n="December" cnt="2"/>
+               </c>
+               <c n="1999" cnt="126">
+                  <c n="April" cnt="1"/>
+                  <c n="August" cnt="24"/>
+                  <c n="December" cnt="14"/>
+                  <c n="February" cnt="1"/>
+                  <c n="January" cnt="7"/>
+                  <c n="July" cnt="24"/>
+                  <c n="June" cnt="16"/>
+                  <c n="March" cnt="2"/>
+                  <c n="November" cnt="3"/>
+                  <c n="October" cnt="20"/>
+                  <c n="September" cnt="14"/>
+               </c>
+               <c n="2000" cnt="243">
+                  <c n="April" cnt="13"/>
+                  <c n="August" cnt="16"/>
+                  <c n="December" cnt="16"/>
+                  <c n="February" cnt="25"/>
+                  <c n="January" cnt="31"/>
+                  <c n="July" cnt="13"/>
+                  <c n="June" cnt="23"/>
+                  <c n="March" cnt="16"/>
+                  <c n="May" cnt="23"/>
+                  <c n="November" cnt="27"/>
+                  <c n="October" cnt="18"/>
+                  <c n="September" cnt="22"/>
+               </c>
+               <c n="2001" cnt="49">
+                  <c n="April" cnt="12"/>
+                  <c n="February" cnt="8"/>
+                  <c n="January" cnt="9"/>
+                  <c n="June" cnt="5"/>
+                  <c n="March" cnt="6"/>
+                  <c n="May" cnt="9"/>
+               </c>
+            </c>
+         </c>
+         <c n="ac-stoll" cnt="465">
+            <c n="CH1" cnt="137"/>
+            <c n="CH2" cnt="125"/>
+            <c n="CH3" cnt="67"/>
+            <c n="CH4" cnt="128"/>
+            <c n="Media_to_be_checked" cnt="1"/>
+         </c>
+         <c n="ac-wegener" cnt="235">
+            <c n="L1-Polish" cnt="28">
+               <c n="Kathrin" cnt="14"/>
+               <c n="Maria" cnt="14"/>
+            </c>
+            <c n="L1-Russian" cnt="37">
+               <c n="Anna" cnt="20"/>
+               <c n="Egor" cnt="17"/>
+            </c>
+            <c n="L1-Turkish" cnt="138">
+               <c n="Meliha" cnt="26"/>
+               <c n="Metin" cnt="20"/>
+               <c n="Miriam" cnt="15"/>
+               <c n="Muskaan" cnt="17"/>
+               <c n="Nezahat" cnt="25"/>
+               <c n="Sercan" cnt="21"/>
+               <c n="Sonay" cnt="14"/>
+            </c>
+         </c>
+         <c n="ac-word_order" cnt="182">
+            <c n="Basic_study" cnt="75">
+               <c n="Adults" cnt="25"/>
+               <c n="Children" cnt="50">
+                  <c n="Age_3_0-3_11" cnt="11"/>
+                  <c n="Age_4_0-4_11" cnt="12"/>
+                  <c n="Age_5_0-5_11" cnt="11"/>
+                  <c n="Age_9_0-9_11" cnt="16"/>
+               </c>
+            </c>
+            <c n="_Comment_study" cnt="20">
+               <c n="Age_3_0-3_11" cnt="2"/>
+               <c n="Age_4_0-4_11" cnt="12"/>
+               <c n="Age_5_0-6_01" cnt="6"/>
+            </c>
+            <c n="_Input_study" cnt="25"/>
+            <c n="_Narrative_study" cnt="45">
+               <c n="Adults" cnt="23"/>
+               <c n="Age_4_0-4_11" cnt="8"/>
+               <c n="Age_5_0-5_11" cnt="14"/>
+            </c>
+         </c>
+         <c n="deleon" cnt="0"/>
+         <c n="e-LiLT" cnt="1"/>
+         <c n="L2_Acquisition" cnt="175">
+            <c n="e-LiLT" cnt="175">
+               <c n="TL_English" cnt="130">
+                  <c n="SL_Italian" cnt="74">
+                     <c n="Andrea11" cnt="2"/>
+                     <c n="Andrea13" cnt="1"/>
+                     <c n="Andrea14" cnt="1"/>
+                     <c n="Andrea16" cnt="2"/>
+                     <c n="Andrea17" cnt="2"/>
+                     <c n="Andrea18" cnt="2"/>
+                     <c n="Andrea21" cnt="2"/>
+                     <c n="Andrea31" cnt="2"/>
+                     <c n="Andrea32" cnt="3"/>
+                     <c n="Andrea34" cnt="1"/>
+                     <c n="Andrea35" cnt="1"/>
+                     <c n="Lavinia" cnt="20">
+                        <c n="Lavinia11" cnt="3"/>
+                        <c n="Lavinia12" cnt="2"/>
+                        <c n="Lavinia13" cnt="2"/>
+                        <c n="Lavinia14" cnt="3"/>
+                        <c n="Lavinia15" cnt="2"/>
+                        <c n="Lavinia16" cnt="1"/>
+                        <c n="Lavinia17" cnt="1"/>
+                        <c n="Lavinia18" cnt="1"/>
+                        <c n="Lavinia31" cnt="5"/>
+                     </c>
+                     <c n="Santo" cnt="11">
+                        <c n="Santo15" cnt="1"/>
+                        <c n="Santo16" cnt="2"/>
+                        <c n="Santo17" cnt="2"/>
+                        <c n="Santo19" cnt="1"/>
+                     </c>
+                     <c n="Vito" cnt="24">
+                        <c n="Vito11" cnt="2"/>
+                        <c n="Vito12" cnt="1"/>
+                        <c n="Vito13" cnt="2"/>
+                        <c n="Vito15" cnt="2"/>
+                        <c n="Vito16" cnt="1"/>
+                        <c n="Vito17" cnt="1"/>
+                        <c n="Vito19" cnt="2"/>
+                        <c n="Vito21" cnt="1"/>
+                        <c n="Vito31" cnt="3"/>
+                        <c n="Vito32" cnt="2"/>
+                        <c n="Vito33" cnt="3"/>
+                        <c n="Vito34" cnt="3"/>
+                        <c n="Vito37" cnt="1"/>
+                     </c>
+                  </c>
+                  <c n="SL_Punjabi" cnt="56">
+                     <c n="Jarnail" cnt="15">
+                        <c n="Jarnail11" cnt="3"/>
+                        <c n="Jarnail12" cnt="1"/>
+                        <c n="Jarnail13" cnt="1"/>
+                        <c n="Jarnail15" cnt="1"/>
+                        <c n="Jarnail16" cnt="2"/>
+                        <c n="Jarnail17" cnt="1"/>
+                        <c n="Jarnail31" cnt="2"/>
+                        <c n="Jarnail32" cnt="1"/>
+                        <c n="Jarnail33" cnt="1"/>
+                        <c n="Jarnail35" cnt="1"/>
+                        <c n="Jarnail36" cnt="1"/>
+                     </c>
+                     <c n="Madan" cnt="16">
+                        <c n="Madab32" cnt="1"/>
+                        <c n="Madan22" cnt="3"/>
+                        <c n="Madan24" cnt="2"/>
+                        <c n="Madan25" cnt="1"/>
+                        <c n="Madan27" cnt="1"/>
+                        <c n="Madan31" cnt="1"/>
+                        <c n="Madan33" cnt="2"/>
+                        <c n="Madan34" cnt="3"/>
+                        <c n="Madan35" cnt="1"/>
+                        <c n="Madan36" cnt="1"/>
+                     </c>
+                     <c n="Ravinder" cnt="25">
+                        <c n="Ravinder11" cnt="1"/>
+                        <c n="Ravinder12" cnt="3"/>
+                        <c n="Ravinder13" cnt="3"/>
+                        <c n="Ravinder14" cnt="1"/>
+                        <c n="Ravinder16" cnt="3"/>
+                        <c n="Ravinder17" cnt="3"/>
+                        <c n="Ravinder31" cnt="3"/>
+                        <c n="Ravinder33" cnt="2"/>
+                        <c n="Ravinder34" cnt="2"/>
+                        <c n="Ravinder35" cnt="2"/>
+                        <c n="Ravinder36" cnt="2"/>
+                     </c>
+                  </c>
+               </c>
+               <c n="TL_German" cnt="45">
+                  <c n="SL_Italian" cnt="45">
+                     <c n="Angelina" cnt="13">
+                        <c n="Angelina11" cnt="1"/>
+                        <c n="Angelina13" cnt="3"/>
+                        <c n="Angelina15" cnt="1"/>
+                        <c n="Angelina16" cnt="1"/>
+                        <c n="Angelina31" cnt="1"/>
+                        <c n="Angelina32" cnt="1"/>
+                        <c n="Angelina35" cnt="2"/>
+                        <c n="Angelina36" cnt="2"/>
+                        <c n="Angelina38" cnt="1"/>
+                     </c>
+                     <c n="Marcello" cnt="12">
+                        <c n="Marcell13" cnt="3"/>
+                        <c n="Marcello11" cnt="1"/>
+                        <c n="Marcello15" cnt="1"/>
+                        <c n="Marcello16" cnt="2"/>
+                        <c n="Marcello31" cnt="1"/>
+                        <c n="Marcello33" cnt="3"/>
+                        <c n="Marcello35" cnt="1"/>
+                     </c>
+                     <c n="Tino" cnt="20">
+                        <c n="Tini14" cnt="1"/>
+                        <c n="Tino11" cnt="1"/>
+                        <c n="Tino12" cnt="1"/>
+                        <c n="Tino13" cnt="3"/>
+                        <c n="Tino16" cnt="1"/>
+                        <c n="Tino17" cnt="2"/>
+                        <c n="Tino19" cnt="1"/>
+                        <c n="Tino32" cnt="1"/>
+                        <c n="Tino33" cnt="3"/>
+                        <c n="Tino35" cnt="1"/>
+                        <c n="Tino36" cnt="3"/>
+                        <c n="Tino37" cnt="1"/>
+                        <c n="Tino39" cnt="1"/>
+                     </c>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="Stimuli" cnt="85">
+            <c n="Assertion_pictures" cnt="7">
+               <c n="Writing" cnt="0">
+                  <c n="Reading_Letter" cnt="0"/>
+               </c>
+               <c n="Writing_Reading_Letter" cnt="2"/>
+            </c>
+            <c n="Auxiliary_stories" cnt="2"/>
+            <c n="Finiteness" cnt="5"/>
+            <c n="Finite_story" cnt="0"/>
+            <c n="Information_structure" cnt="20">
+               <c n="Beaver_stories" cnt="3"/>
+               <c n="Bee_stories" cnt="2"/>
+               <c n="Camel_stories" cnt="3"/>
+               <c n="Sandman_stories" cnt="2"/>
+               <c n="Seegull_stories" cnt="4"/>
+            </c>
+            <c n="Locative_expressions" cnt="1"/>
+            <c n="P.Brown" cnt="21">
+               <c n="Front_back_left_right" cnt="11">
+                  <c n="Playmobileset" cnt="2"/>
+               </c>
+               <c n="glass_bowls" cnt="4"/>
+               <c n="matz" cnt="2"/>
+               <c n="Playmobileset" cnt="2"/>
+            </c>
+            <c n="Reffering_expressions" cnt="2"/>
+            <c n="Temporality" cnt="4"/>
+            <c n="Topic_marking" cnt="2"/>
+            <c n="Transitive_subject" cnt="7"/>
+         </c>
+         <c n="vdweijer" cnt="1160">
+            <c n="complete_tapes" cnt="205"/>
+            <c n="cut_sessions" cnt="952"/>
+         </c>
+      </c>
+      <c n="ANDES_data" cnt="238">
+         <c n="Quechua" cnt="237">
+            <c n="Aguilo" cnt="37"/>
+            <c n="Ciprian" cnt="12"/>
+            <c n="Iban" cnt="14"/>
+            <c n="Joserin" cnt="1"/>
+            <c n="Urioste" cnt="167"/>
+         </c>
+      </c>
+      <c n="Bildungsforschung" cnt="2045">
+         <c n="DVD" cnt="28">
+            <c n="Eisendorn" cnt="2"/>
+            <c n="Ferstal" cnt="2"/>
+            <c n="Fliesser" cnt="1"/>
+            <c n="Frech" cnt="2"/>
+            <c n="Gips" cnt="2"/>
+            <c n="Halt" cnt="1"/>
+            <c n="Herz" cnt="2"/>
+            <c n="Hofer" cnt="1"/>
+            <c n="Ilching" cnt="2"/>
+            <c n="Kaminski" cnt="2"/>
+            <c n="Keller" cnt="2"/>
+            <c n="Kluge" cnt="2"/>
+            <c n="Luetken" cnt="2"/>
+            <c n="Markus" cnt="2"/>
+            <c n="Quast" cnt="1"/>
+            <c n="Schneevogel" cnt="1"/>
+            <c n="Toepfer" cnt="1"/>
+         </c>
+         <c n="Hi8" cnt="1138">
+            <c n="Achboth" cnt="6"/>
+            <c n="Ast" cnt="11"/>
+            <c n="Barth" cnt="4"/>
+            <c n="Bersky" cnt="4"/>
+            <c n="Binder" cnt="4"/>
+            <c n="Blum" cnt="12"/>
+            <c n="Borsky" cnt="0"/>
+            <c n="Bottnik" cnt="6"/>
+            <c n="Bransky" cnt="12"/>
+            <c n="Brausky" cnt="0"/>
+            <c n="Brockschmidt" cnt="14"/>
+            <c n="Busch" cnt="16"/>
+            <c n="Clar" cnt="11"/>
+            <c n="Comer" cnt="17"/>
+            <c n="Darke" cnt="12"/>
+            <c n="Doering" cnt="3"/>
+            <c n="Dorke" cnt="0"/>
+            <c n="Droescher" cnt="3"/>
+            <c n="Dumpf" cnt="10"/>
+            <c n="Dynek" cnt="14"/>
+            <c n="Echner" cnt="0"/>
+            <c n="Eckner" cnt="13"/>
+            <c n="Eisendorn" cnt="13"/>
+            <c n="Elchen" cnt="18"/>
+            <c n="Enke" cnt="15"/>
+            <c n="Ferstal" cnt="8"/>
+            <c n="Festal" cnt="6"/>
+            <c n="Fliesser" cnt="13"/>
+            <c n="Fluss" cnt="9"/>
+            <c n="Frech" cnt="17"/>
+            <c n="Fred" cnt="1"/>
+            <c n="Fuchs" cnt="17"/>
+            <c n="Gantz" cnt="14"/>
+            <c n="Gertner" cnt="12"/>
+            <c n="Gertuer" cnt="0"/>
+            <c n="Gips" cnt="13"/>
+            <c n="Girken" cnt="17"/>
+            <c n="Halt" cnt="13"/>
+            <c n="Hauser" cnt="4"/>
+            <c n="Herz" cnt="12"/>
+            <c n="Hilbig" cnt="5"/>
+            <c n="Hofer" cnt="12"/>
+            <c n="Ilching" cnt="17"/>
+            <c n="Imber" cnt="12"/>
+            <c n="Irmel" cnt="1"/>
+            <c n="Isener" cnt="14"/>
+            <c n="Kaminski" cnt="14"/>
+            <c n="Keiser" cnt="17"/>
+            <c n="Keller" cnt="16"/>
+            <c n="Kind" cnt="13"/>
+            <c n="Kisch" cnt="5"/>
+            <c n="Klang" cnt="11"/>
+            <c n="Kluge" cnt="12"/>
+            <c n="Knecht" cnt="15"/>
+            <c n="Koenig" cnt="10"/>
+            <c n="Kostard" cnt="13"/>
+            <c n="Kraffke" cnt="15"/>
+            <c n="Kunert" cnt="16"/>
+            <c n="Leutertal" cnt="15"/>
+            <c n="Leuthen" cnt="2"/>
+            <c n="Lindner" cnt="12"/>
+            <c n="Locke" cnt="9"/>
+            <c n="Loeffler" cnt="6"/>
+            <c n="Luethen" cnt="0"/>
+            <c n="Luetken" cnt="13"/>
+            <c n="Luidner" cnt="0"/>
+            <c n="Malz" cnt="14"/>
+            <c n="Markus" cnt="16"/>
+            <c n="Mauser" cnt="2"/>
+            <c n="Menze" cnt="1"/>
+            <c n="Mohr" cnt="13"/>
+            <c n="Neumann" cnt="12"/>
+            <c n="Nickel" cnt="15"/>
+            <c n="Nother" cnt="2"/>
+            <c n="Pabst" cnt="12"/>
+            <c n="Pach" cnt="2"/>
+            <c n="Pack" cnt="15"/>
+            <c n="Pahl" cnt="9"/>
+            <c n="Parke" cnt="1"/>
+            <c n="Petermann" cnt="4"/>
+            <c n="Pfarr" cnt="9"/>
+            <c n="Plant" cnt="16"/>
+            <c n="Pons" cnt="4"/>
+            <c n="Prediger" cnt="12"/>
+            <c n="Quast" cnt="11"/>
+            <c n="Rademacher" cnt="15"/>
+            <c n="Rehbein" cnt="9"/>
+            <c n="Richter" cnt="6"/>
+            <c n="Riefert" cnt="2"/>
+            <c n="Ritter" cnt="13"/>
+            <c n="Rose" cnt="12"/>
+            <c n="Sauer" cnt="16"/>
+            <c n="Schneevogel" cnt="15"/>
+            <c n="Scott" cnt="4"/>
+            <c n="Siegmann" cnt="4"/>
+            <c n="Sommer" cnt="15"/>
+            <c n="Straff" cnt="13"/>
+            <c n="Tachner" cnt="5"/>
+            <c n="Teichmueller" cnt="14"/>
+            <c n="Timm" cnt="14"/>
+            <c n="Toepfer" cnt="12"/>
+            <c n="Traut" cnt="12"/>
+            <c n="Tucher" cnt="13"/>
+            <c n="Tumm" cnt="1"/>
+            <c n="Ulmer" cnt="8"/>
+            <c n="Veiling" cnt="6"/>
+            <c n="Watzmann" cnt="5"/>
+            <c n="Weitstamm" cnt="14"/>
+            <c n="Wessel" cnt="5"/>
+            <c n="Wickel" cnt="1"/>
+            <c n="Wiegand" cnt="19"/>
+            <c n="Wormann" cnt="11"/>
+            <c n="Zapp" cnt="4"/>
+            <c n="Zina" cnt="1"/>
+            <c n="Zink" cnt="15"/>
+            <c n="Zweig" cnt="10"/>
+            <c n="Zylke" cnt="11"/>
+         </c>
+         <c n="Umatic" cnt="735">
+            <c n="Bleimann" cnt="32"/>
+            <c n="Busch" cnt="38"/>
+            <c n="Busch_neu" cnt="0"/>
+            <c n="Droescher" cnt="30"/>
+            <c n="Dunkel" cnt="28"/>
+            <c n="Eisendorn" cnt="37"/>
+            <c n="Henkell" cnt="33"/>
+            <c n="Kaminski" cnt="65"/>
+            <c n="Markus" cnt="70"/>
+            <c n="Mauser" cnt="33"/>
+            <c n="Neumann" cnt="62"/>
+            <c n="Oeller" cnt="64"/>
+            <c n="Pahl" cnt="63"/>
+            <c n="Rehbein" cnt="33"/>
+            <c n="Rose" cnt="34"/>
+            <c n="Sauer" cnt="66"/>
+            <c n="Schneevogel" cnt="39"/>
+         </c>
+      </c>
+      <c n="biling_data" cnt="2674">
+         <c n="abrown" cnt="1764">
+            <c n="Bilingual_Narrative" cnt="1561">
+               <c n="English" cnt="772">
+                  <c n="Canary_Row_Narrative" cnt="364">
+                     <c n="Bellboy" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Binoculars" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Bowling" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Clarification" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="CRTD" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="CRTU" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="CSPD" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="CSPU" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="CTMD" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="Drainpipe" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="EJPA" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="EJPD" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="EJPU" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="ERLD" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="ERLU" cnt="4">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="3"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="Monkey" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Rope" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Seesaw" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Trolley" cnt="40">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                  </c>
+                  <c n="Tomato_Man_Narrative" cnt="408">
+                     <c n="Bellboy" cnt="1">
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="Binoculars" cnt="1">
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="Clarification" cnt="32">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="10"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="11"/>
+                        <c n="US_English_monolingual" cnt="11"/>
+                     </c>
+                     <c n="CRTD" cnt="36">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="11"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="CRTU" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="CSPD" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="CSPU" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="CTMD" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Drainpipe" cnt="1">
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="EJPA" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="EJPD" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="EJPU" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="ERLD" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="ERLU" cnt="37">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="12"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="US_English_monolingual" cnt="13"/>
+                     </c>
+                     <c n="Monkey" cnt="1">
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="Rope" cnt="1">
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="Seesaw" cnt="1">
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                     <c n="Trolley" cnt="1">
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="1"/>
+                     </c>
+                  </c>
+               </c>
+               <c n="Japanese" cnt="789">
+                  <c n="Canary_Row_Narrative" cnt="350">
+                     <c n="Bellboy" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="Binoculars" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="Bowling" cnt="43">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="Drainpipe" cnt="43">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="12"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="Monkey" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="Rope" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="Seesaw" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="Trolley" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                  </c>
+                  <c n="Tomato_Man_Narrative" cnt="439">
+                     <c n="CRTD" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="CRTU" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="CSPD" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="CSPU" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="CTMD" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="EJPA" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="EJPD" cnt="43">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="14"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="EJPU" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="ERLD" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                     <c n="ERLU" cnt="44">
+                        <c n="Japanese_Learner_of_English_in_Japan" cnt="15"/>
+                        <c n="Japanese_Learner_of_English_in_USA" cnt="13"/>
+                        <c n="Japanese_monolingual" cnt="16"/>
+                     </c>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="fitzpatrick" cnt="2"/>
+         <c n="gullberg" cnt="807">
+            <c n="Code-Switching" cnt="109">
+               <c n="Conversation" cnt="18">
+                  <c n="Conv1-1_0_2_3" cnt="3"/>
+                  <c n="Conv2-9_8_10_0" cnt="3"/>
+                  <c n="Conv3-13_11_14_12" cnt="3"/>
+                  <c n="Conv4-15_16_17_18" cnt="3"/>
+                  <c n="Conv5-21_19_0_20" cnt="3"/>
+                  <c n="Conv6-22_25_23_24" cnt="3"/>
+               </c>
+               <c n="Party_Game" cnt="15">
+                  <c n="Party_Game_1" cnt="3"/>
+                  <c n="Party_Game_2" cnt="4"/>
+                  <c n="Party_Game_3" cnt="3"/>
+                  <c n="Party_Game_4" cnt="4"/>
+               </c>
+               <c n="Shadowing" cnt="26">
+                  <c n="Shadowing_1" cnt="7"/>
+                  <c n="Shadowing_2" cnt="10"/>
+                  <c n="Shadowing_3" cnt="5"/>
+                  <c n="Shadowing_4" cnt="4"/>
+               </c>
+               <c n="Toy_Game" cnt="50">
+                  <c n="Toy_Game_Dutch" cnt="25"/>
+                  <c n="Toy_Game_Papiamentu" cnt="25"/>
+               </c>
+            </c>
+            <c n="German_Endpoints" cnt="10"/>
+            <c n="Grammaticalisation_et_bilinguisme_Paris_" cnt="481">
+               <c n="English1" cnt="122">
+                  <c n="Caused_Motion" cnt="34">
+                     <c n="Age4_EK4" cnt="8"/>
+                     <c n="Age5_ER5" cnt="13"/>
+                     <c n="Age6_EY1" cnt="12"/>
+                     <c n="Age8_EY3" cnt="1"/>
+                  </c>
+                  <c n="Narration" cnt="21">
+                     <c n="Age4_EK4" cnt="8"/>
+                     <c n="Age5_ER5" cnt="1"/>
+                     <c n="Age6_EY1" cnt="12"/>
+                  </c>
+                  <c n="Tomatoes_Prod" cnt="34">
+                     <c n="Age4_EK4" cnt="8"/>
+                     <c n="Age5_ER5" cnt="13"/>
+                     <c n="Age6_EY1" cnt="12"/>
+                     <c n="Age8_EY3" cnt="1"/>
+                  </c>
+                  <c n="Voluntary_Motion" cnt="33">
+                     <c n="Age4_EK4" cnt="8"/>
+                     <c n="Age5_ER5" cnt="13"/>
+                     <c n="Age6_EY1" cnt="12"/>
+                  </c>
+               </c>
+               <c n="French1" cnt="359">
+                  <c n="Caused_Motion" cnt="120">
+                     <c n="Adults_FAD" cnt="13"/>
+                     <c n="Age_10_FCM2" cnt="23"/>
+                     <c n="Age_3_FPS" cnt="11"/>
+                     <c n="Age_4_FMS" cnt="12"/>
+                     <c n="Age_5_FGS" cnt="14"/>
+                     <c n="Age_6_FCP" cnt="23"/>
+                     <c n="Age_8_FCE2" cnt="24"/>
+                  </c>
+                  <c n="Narration" cnt="1">
+                     <c n="Age_6_FCP" cnt="1"/>
+                  </c>
+                  <c n="Tomatoes_Prod" cnt="119">
+                     <c n="Adults_FAD" cnt="13"/>
+                     <c n="Age_10_FCM2" cnt="23"/>
+                     <c n="Age_3_FPS" cnt="11"/>
+                     <c n="Age_4_FMS" cnt="12"/>
+                     <c n="Age_5_FGS" cnt="14"/>
+                     <c n="Age_6_FCP" cnt="23"/>
+                     <c n="Age_8_FCE2" cnt="23"/>
+                  </c>
+                  <c n="Voluntary_Motion" cnt="119">
+                     <c n="Adults_FAD" cnt="13"/>
+                     <c n="Age_10_FCM2" cnt="23"/>
+                     <c n="Age_3_FPS" cnt="11"/>
+                     <c n="Age_4_FMS" cnt="12"/>
+                     <c n="Age_5_FGS" cnt="14"/>
+                     <c n="Age_6_FCP" cnt="23"/>
+                     <c n="Age_8_FCE2" cnt="23"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Topological_Relations" cnt="95">
+               <c n="Dutch_1" cnt="24"/>
+               <c n="Dutch_1-French_2" cnt="17"/>
+               <c n="French_1" cnt="19"/>
+               <c n="French_2" cnt="0"/>
+               <c n="German_1" cnt="22"/>
+               <c n="German_1-French_2" cnt="13"/>
+            </c>
+         </c>
+         <c n="indefrey" cnt="99">
+            <c n="Hulya_Sahin" cnt="86">
+               <c n="Bilinguals" cnt="2"/>
+               <c n="Dutch" cnt="40">
+                  <c n="Bilinguals" cnt="25">
+                     <c n="Dutch_dominant" cnt="12"/>
+                     <c n="Turkish_dominant" cnt="13"/>
+                  </c>
+                  <c n="Natives" cnt="15"/>
+               </c>
+               <c n="Turkish_Language" cnt="44">
+                  <c n="Bilinguals" cnt="29">
+                     <c n="Dutch_dominant" cnt="14"/>
+                     <c n="Turkish_dominant" cnt="15"/>
+                  </c>
+                  <c n="Natives" cnt="15"/>
+               </c>
+            </c>
+         </c>
+         <c n="oliver" cnt="1"/>
+      </c>
+      <c n="cocoa_data" cnt="0">
+         <c n="haun" cnt="0"/>
+         <c n="sauter" cnt="0"/>
+      </c>
+      <c n="comlan_data" cnt="0">
+         <c n="liszkowski" cnt="0"/>
+      </c>
+      <c n="Comprehension" cnt="165">
+         <c n="Elizabeth_Johnson" cnt="154">
+            <c n="Input" cnt="142">
+               <c n="11" cnt="0">
+                  <c n="Day_1" cnt="0"/>
+                  <c n="Day_2" cnt="0"/>
+                  <c n="Day_3" cnt="0"/>
+               </c>
+               <c n="11-months" cnt="86">
+                  <c n="Day_1" cnt="31"/>
+                  <c n="Day_2" cnt="28"/>
+                  <c n="Day_3" cnt="26"/>
+               </c>
+               <c n="18" cnt="0">
+                  <c n="Day_1" cnt="0"/>
+                  <c n="Day_2" cnt="0"/>
+                  <c n="Day_3" cnt="0"/>
+               </c>
+               <c n="18-months" cnt="53">
+                  <c n="Day_1" cnt="19"/>
+                  <c n="Day_2" cnt="17"/>
+                  <c n="Day_3" cnt="16"/>
+               </c>
+               <c n="Trial_runs" cnt="3"/>
+            </c>
+         </c>
+         <c n="James_McQueen" cnt="7">
+            <c n="Visprime_3" cnt="2">
+               <c n="Results" cnt="1"/>
+               <c n="Stimuli" cnt="1"/>
+            </c>
+         </c>
+      </c>
+      <c n="CORP_ORAL" cnt="41">
+         <c n="Conversation" cnt="37">
+            <c n="1._Standard" cnt="35"/>
+            <c n="2._Non-Standard" cnt="2"/>
+         </c>
+      </c>
+      <c n="dbd_data" cnt="1937">
+         <c n="Aissati" cnt="37">
+            <c n="tcult_2000_" cnt="19">
+               <c n="Morocco" cnt="10">
+                  <c n="Al_Hoceima" cnt="4">
+                     <c n="allouch" cnt="1"/>
+                     <c n="baroud" cnt="1"/>
+                     <c n="bazgiw" cnt="1"/>
+                     <c n="mustapha" cnt="1"/>
+                  </c>
+                  <c n="Nador" cnt="6">
+                     <c n="faysal" cnt="1"/>
+                     <c n="hannou" cnt="1"/>
+                     <c n="khadr" cnt="1"/>
+                     <c n="mourad" cnt="1"/>
+                     <c n="nasima" cnt="1"/>
+                     <c n="ouchen" cnt="1"/>
+                  </c>
+               </c>
+               <c n="The_Netherlands" cnt="9">
+                  <c n="Utrecht_Lombok_" cnt="9"/>
+               </c>
+            </c>
+         </c>
+         <c n="aliesm" cnt="80">
+            <c n="Moroccan" cnt="23"/>
+            <c n="Moroccan_and_Turkish" cnt="13"/>
+            <c n="Other" cnt="23"/>
+            <c n="Turkish" cnt="16"/>
+         </c>
+         <c n="backus" cnt="143">
+            <c n="Backus" cnt="110">
+               <c n="bilingual" cnt="51"/>
+               <c n="bilingual_Seza" cnt="22"/>
+               <c n="monolingual" cnt="37"/>
+            </c>
+            <c n="Eversteijn" cnt="21">
+               <c n="balanced_bilingual_teenagers_Netherlands" cnt="21">
+                  <c n="key_informant_Aylin" cnt="6"/>
+                  <c n="key_informant_Deniz" cnt="5"/>
+                  <c n="key_informant_Havva" cnt="5"/>
+                  <c n="key_informant_Yusuf" cnt="5"/>
+               </c>
+            </c>
+         </c>
+         <c n="boumans" cnt="940">
+            <c n="Bos_1997" cnt="643">
+               <c n="Additional_recordings" cnt="37">
+                  <c n="Bilingual_Arabic_extra_" cnt="16">
+                     <c n="Bilingual_Arabic_04_extra_" cnt="1"/>
+                     <c n="Bilingual_Arabic_05_extra_" cnt="3"/>
+                     <c n="Bilingual_Arabic_06_extra_" cnt="3"/>
+                     <c n="Bilingual_Arabic_08_extra_" cnt="3"/>
+                     <c n="Bilingual_Arabic_09_extra_" cnt="3"/>
+                     <c n="Bilingual_Arabic_10_extra_" cnt="3"/>
+                  </c>
+                  <c n="Bilingual_Dutch_extra_" cnt="15">
+                     <c n="Bilingual_Dutch_08_extra_" cnt="5"/>
+                     <c n="Bilingual_Dutch_09_extra_" cnt="5"/>
+                     <c n="Bilingual_Dutch_10_extra_" cnt="5"/>
+                  </c>
+                  <c n="Monolingual_Dutch" cnt="0">
+                     <c n="Monolingual_Dutch_04" cnt="0"/>
+                     <c n="Monolingual_Dutch_05" cnt="0"/>
+                     <c n="Monolingual_Dutch_06" cnt="0"/>
+                     <c n="Monolingual_Dutch_07" cnt="0"/>
+                     <c n="Monolingual_Dutch_08" cnt="0"/>
+                     <c n="Monolingual_Dutch_09" cnt="0"/>
+                     <c n="Monolingual_Dutch_10" cnt="0"/>
+                  </c>
+                  <c n="Monolingual_Dutch_extra_" cnt="6">
+                     <c n="Monolingual_Dutch_08_extra_" cnt="2"/>
+                     <c n="Monolingual_Dutch_09_extra_" cnt="2"/>
+                     <c n="Monolingual_Dutch_10_extra_" cnt="2"/>
+                  </c>
+               </c>
+               <c n="Bilingual_Arabic" cnt="178">
+                  <c n="Bilingual_Arabic_04" cnt="25"/>
+                  <c n="Bilingual_Arabic_05" cnt="25"/>
+                  <c n="Bilingual_Arabic_06" cnt="25"/>
+                  <c n="Bilingual_Arabic_07" cnt="25"/>
+                  <c n="Bilingual_Arabic_08" cnt="26"/>
+                  <c n="Bilingual_Arabic_09" cnt="26"/>
+                  <c n="Bilingual_Arabic_10" cnt="26"/>
+               </c>
+               <c n="Bilingual_Dutch" cnt="175">
+                  <c n="Bilingual_Dutch_04" cnt="25"/>
+                  <c n="Bilingual_Dutch_05" cnt="25"/>
+                  <c n="Bilingual_Dutch_06" cnt="25"/>
+                  <c n="Bilingual_Dutch_07" cnt="25"/>
+                  <c n="Bilingual_Dutch_08" cnt="25"/>
+                  <c n="Bilingual_Dutch_09" cnt="25"/>
+                  <c n="Bilingual_Dutch_10" cnt="25"/>
+               </c>
+               <c n="Bos_Additional_recordings" cnt="0">
+                  <c n="Bilingual_Arabic" cnt="0">
+                     <c n="Bilingual_Arabic_08" cnt="0"/>
+                     <c n="Bilingual_Arabic_09" cnt="0"/>
+                     <c n="Bilingual_Arabic_10" cnt="0"/>
+                  </c>
+               </c>
+               <c n="Monolingual_Arabic" cnt="83">
+                  <c n="Oujda" cnt="29">
+                     <c n="Oujda_5" cnt="13"/>
+                     <c n="Oujda_7" cnt="8"/>
+                     <c n="Oujda_9" cnt="8"/>
+                  </c>
+                  <c n="Rabat" cnt="26">
+                     <c n="Rabat_5" cnt="10"/>
+                     <c n="Rabat_7" cnt="8"/>
+                     <c n="Rabat_9" cnt="8"/>
+                  </c>
+                  <c n="Tangier" cnt="28">
+                     <c n="Tangier_5" cnt="12"/>
+                     <c n="Tangier_7" cnt="8"/>
+                     <c n="Tangier_9" cnt="8"/>
+                  </c>
+               </c>
+               <c n="Monolingual_Dutch" cnt="170">
+                  <c n="Monolingual_Dutch_04" cnt="25"/>
+                  <c n="Monolingual_Dutch_05" cnt="25"/>
+                  <c n="Monolingual_Dutch_06" cnt="25"/>
+                  <c n="Monolingual_Dutch_07" cnt="24"/>
+                  <c n="Monolingual_Dutch_08" cnt="24"/>
+                  <c n="Monolingual_Dutch_09" cnt="24"/>
+                  <c n="Monolingual_Dutch_10" cnt="23"/>
+               </c>
+            </c>
+            <c n="Boumans_2003" cnt="3">
+               <c n="test" cnt="1"/>
+            </c>
+            <c n="El_Aissati_1997" cnt="49">
+               <c n="Morocco" cnt="31">
+                  <c n="Casablanca" cnt="16"/>
+                  <c n="Oujda" cnt="4"/>
+                  <c n="Tangier" cnt="11"/>
+               </c>
+               <c n="Netherlands" cnt="18"/>
+            </c>
+            <c n="Nortier_1986" cnt="10"/>
+            <c n="Nortier_1991" cnt="13"/>
+            <c n="Rooselaar_1990" cnt="96">
+               <c n="Btissame" cnt="22">
+                  <c n="Dutch" cnt="13"/>
+                  <c n="Moroccan_Arabic" cnt="9"/>
+               </c>
+               <c n="Fadwa" cnt="27">
+                  <c n="Dutch" cnt="15"/>
+                  <c n="Moroccan_Arabic" cnt="12"/>
+               </c>
+               <c n="Ilham" cnt="22">
+                  <c n="Dutch" cnt="12"/>
+                  <c n="Moroccan_Arabic" cnt="10"/>
+               </c>
+               <c n="Sharifa" cnt="25">
+                  <c n="Dutch" cnt="15"/>
+                  <c n="Moroccan_Arabic" cnt="10"/>
+               </c>
+            </c>
+            <c n="TCULT" cnt="17"/>
+         </c>
+         <c n="broeder" cnt="29">
+            <c n="a11" cnt="0"/>
+            <c n="a2" cnt="0"/>
+            <c n="a3" cnt="0">
+               <c n="TAXI" cnt="0">
+                  <c n="CDR" cnt="0"/>
+               </c>
+            </c>
+            <c n="level1" cnt="0">
+               <c n="level2" cnt="0">
+                  <c n="level3" cnt="0">
+                     <c n="level4" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="level2" cnt="0">
+               <c n="level3" cnt="0">
+                  <c n="level4" cnt="0"/>
+               </c>
+            </c>
+            <c n="mycorpus" cnt="9">
+               <c n="birds" cnt="6"/>
+               <c n="mycorpus" cnt="2"/>
+               <c n="mycorpusAB" cnt="0"/>
+               <c n="new1" cnt="0"/>
+               <c n="newcorpus" cnt="0"/>
+               <c n="Simone1" cnt="1"/>
+               <c n="Simone_1" cnt="0"/>
+               <c n="test" cnt="0"/>
+            </c>
+            <c n="new" cnt="0"/>
+            <c n="newcorpus" cnt="0"/>
+            <c n="prosodic_annotations" cnt="0"/>
+            <c n="test_new" cnt="7">
+               <c n="07.02.2006" cnt="2"/>
+               <c n="AA" cnt="1">
+                  <c n="Moroccan_Arabic" cnt="0"/>
+               </c>
+               <c n="new_mycorpus" cnt="4"/>
+            </c>
+            <c n="Zeeland" cnt="0"/>
+         </c>
+         <c n="buiting" cnt="1"/>
+         <c n="E-rramdani" cnt="266">
+            <c n="E-rramdani_2000" cnt="141">
+               <c n="Grade_1_children_Morocco" cnt="4">
+                  <c n="01_Zakaria" cnt="1"/>
+                  <c n="02_Imane" cnt="1"/>
+                  <c n="03_Ilhame" cnt="1"/>
+                  <c n="04_Leila" cnt="1"/>
+               </c>
+               <c n="Grade_1_children_Netherlands" cnt="53">
+                  <c n="01_Osman" cnt="3"/>
+                  <c n="02_Adil" cnt="2"/>
+                  <c n="03_Karim" cnt="1"/>
+                  <c n="04_Khalid" cnt="3"/>
+                  <c n="05_Younes" cnt="2"/>
+                  <c n="06_Nabila" cnt="3"/>
+                  <c n="07_Kouter" cnt="3"/>
+                  <c n="08_Khalid" cnt="2"/>
+                  <c n="09_Oussama" cnt="2"/>
+                  <c n="10_Brahim" cnt="2"/>
+                  <c n="11_Yousra" cnt="2"/>
+                  <c n="12_Amal" cnt="2"/>
+                  <c n="13_Sharafeddin" cnt="2"/>
+                  <c n="14_Asmah" cnt="2"/>
+                  <c n="15_Zaid_1" cnt="2"/>
+                  <c n="16_Anas" cnt="2"/>
+                  <c n="17_Wasima" cnt="2"/>
+                  <c n="18_Salim" cnt="2"/>
+                  <c n="19_Nadia" cnt="2"/>
+                  <c n="20_Yasmina" cnt="2"/>
+                  <c n="21_Ashraf" cnt="2"/>
+                  <c n="22_Zaid_2" cnt="2"/>
+                  <c n="23_Nihad" cnt="2"/>
+                  <c n="24_Ilias" cnt="2"/>
+                  <c n="25_Soufian" cnt="2"/>
+               </c>
+               <c n="Grade_6_8_children_Morocco" cnt="8">
+                  <c n="01_A._Al_Mounim" cnt="1"/>
+                  <c n="02_Fatiha" cnt="1"/>
+                  <c n="03_Mihad" cnt="1"/>
+                  <c n="04_A._Hakim" cnt="1"/>
+                  <c n="05_A._Wafi" cnt="1"/>
+                  <c n="07_MOhamed" cnt="1"/>
+                  <c n="09_Baghdad" cnt="1"/>
+                  <c n="10_Soufian" cnt="1"/>
+               </c>
+               <c n="Grade_8_children_Netherlands" cnt="76">
+                  <c n="01_Souad" cnt="2"/>
+                  <c n="02_Nadia" cnt="2"/>
+                  <c n="03_Hamid" cnt="1"/>
+                  <c n="04_Najim" cnt="2"/>
+                  <c n="05_Bilal" cnt="2"/>
+                  <c n="06_Fatima" cnt="2"/>
+                  <c n="07_Leila" cnt="2"/>
+                  <c n="08_Naim" cnt="2"/>
+                  <c n="09_Redouan" cnt="2"/>
+                  <c n="10_Kaltoum" cnt="2"/>
+                  <c n="11_Khadija" cnt="1"/>
+                  <c n="12_Fouad" cnt="2"/>
+                  <c n="13_Fatima_2" cnt="2"/>
+                  <c n="14_Senna" cnt="2"/>
+                  <c n="15_Najla" cnt="2"/>
+                  <c n="16_Nabil" cnt="2"/>
+                  <c n="17_Ali" cnt="2"/>
+                  <c n="18_Khalid" cnt="2"/>
+                  <c n="19_Samira" cnt="2"/>
+                  <c n="20_Hiba" cnt="2"/>
+                  <c n="21_A._Ali" cnt="2"/>
+                  <c n="22_Farid" cnt="2"/>
+                  <c n="23_Bahdad" cnt="2"/>
+                  <c n="24_Adil" cnt="2"/>
+                  <c n="25_Essafia" cnt="2"/>
+                  <c n="26_Nadia" cnt="2"/>
+                  <c n="27_Nawal" cnt="2"/>
+                  <c n="28_Amarouch" cnt="2"/>
+                  <c n="29_Hafsa" cnt="2"/>
+                  <c n="30_Zakaria" cnt="2"/>
+                  <c n="31_Amal" cnt="2"/>
+                  <c n="32_Hayat" cnt="2"/>
+                  <c n="33_Samira" cnt="2"/>
+                  <c n="34_Ali" cnt="2"/>
+                  <c n="35_Charazad" cnt="2"/>
+                  <c n="36_Leila" cnt="2"/>
+                  <c n="37_A._Mourid" cnt="2"/>
+                  <c n="38_Said" cnt="2"/>
+                  <c n="39_Kaloum" cnt="2"/>
+               </c>
+            </c>
+            <c n="J.J._de_Ruiter_1986" cnt="10">
+               <c n="01_Farida" cnt="1"/>
+               <c n="02_Ahmed" cnt="1"/>
+               <c n="03_Jamila" cnt="1"/>
+               <c n="04_A._Aziz" cnt="1"/>
+               <c n="05_Nassim" cnt="1"/>
+               <c n="06_Hakima" cnt="1"/>
+               <c n="07_Noera" cnt="1"/>
+               <c n="08_Housein" cnt="1"/>
+               <c n="09_Said" cnt="1"/>
+               <c n="10_Karim" cnt="1"/>
+            </c>
+            <c n="Kurvers_1998" cnt="9">
+               <c n="01_Omar" cnt="1"/>
+               <c n="02_Ajada" cnt="1"/>
+               <c n="03_Fatima_H" cnt="1"/>
+               <c n="04_Fatima_S" cnt="1"/>
+               <c n="05_Ali" cnt="1"/>
+               <c n="06_Malika" cnt="1"/>
+               <c n="07_Karima" cnt="1"/>
+               <c n="08_Nadia" cnt="1"/>
+               <c n="09_Khadija" cnt="1"/>
+            </c>
+         </c>
+         <c n="micre" cnt="1"/>
+         <c n="Papiamentu" cnt="86">
+            <c n="Parent-Child_Reading" cnt="81">
+               <c n="Five_Down" cnt="27"/>
+               <c n="Klop_klop_wie_is_daar_" cnt="27"/>
+               <c n="Slaap_lekker_mijnheer_Beer" cnt="27"/>
+            </c>
+         </c>
+         <c n="vandervate" cnt="352">
+            <c n="Classrecordings" cnt="10"/>
+            <c n="Class_recordings" cnt="0"/>
+            <c n="Different_language_background" cnt="13">
+               <c n="Conversation" cnt="13"/>
+            </c>
+            <c n="Dutch" cnt="42">
+               <c n="Conversation" cnt="13"/>
+               <c n="Task" cnt="29">
+                  <c n="MISC" cnt="0"/>
+                  <c n="Other" cnt="3"/>
+                  <c n="Story_retelling" cnt="12"/>
+                  <c n="Text_understanding" cnt="14"/>
+               </c>
+            </c>
+            <c n="MISC" cnt="5">
+               <c n="MISC" cnt="5"/>
+            </c>
+            <c n="Sarnami" cnt="0">
+               <c n="Conversation" cnt="0"/>
+            </c>
+            <c n="Sarnami-Dutch" cnt="154">
+               <c n="Dutch" cnt="94">
+                  <c n="Conversation" cnt="36"/>
+                  <c n="Task" cnt="58">
+                     <c n="Other" cnt="12"/>
+                     <c n="Story_retelling" cnt="29"/>
+                     <c n="Text_understanding" cnt="17"/>
+                  </c>
+               </c>
+               <c n="Sarnami" cnt="60">
+                  <c n="Conversation" cnt="13"/>
+                  <c n="Task" cnt="47">
+                     <c n="Story_retelling" cnt="27"/>
+                     <c n="Text_understanding" cnt="20"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Sranan" cnt="0">
+               <c n="Task" cnt="0">
+                  <c n="Story_retelling" cnt="0"/>
+               </c>
+            </c>
+            <c n="Sranan-Dutch" cnt="70">
+               <c n="Dutch" cnt="58">
+                  <c n="Conversation" cnt="21"/>
+                  <c n="Task" cnt="37">
+                     <c n="Other" cnt="6"/>
+                     <c n="Story_retelling" cnt="14"/>
+                     <c n="Text_understanding" cnt="17"/>
+                  </c>
+               </c>
+               <c n="Sranan" cnt="12">
+                  <c n="Task" cnt="12">
+                     <c n="Story_retelling" cnt="12"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Turkish-Dutch" cnt="8">
+               <c n="Dutch" cnt="8">
+                  <c n="Conversation" cnt="6"/>
+                  <c n="Task" cnt="2"/>
+               </c>
+            </c>
+            <c n="Unknown_language_background" cnt="7">
+               <c n="Task" cnt="7">
+                  <c n="Other" cnt="2"/>
+                  <c n="Story_retelling" cnt="4"/>
+                  <c n="Text_understanding" cnt="1"/>
+               </c>
+            </c>
+         </c>
+      </c>
+      <c n="demo" cnt="179">
+         <c n="Ams_Demo" cnt="0"/>
+         <c n="CLARIN" cnt="3"/>
+         <c n="dobes2006" cnt="147">
+            <c n="group1" cnt="11">
+               <c n="Acquisition_of_Dutch" cnt="0">
+                  <c n="L1_Acquisition" cnt="0"/>
+                  <c n="L2_Acquisition" cnt="0">
+                     <c n="Adults" cnt="0">
+                        <c n="Interviews" cnt="0"/>
+                     </c>
+                     <c n="Children" cnt="0"/>
+                  </c>
+               </c>
+               <c n="L1_aquistion" cnt="0"/>
+               <c n="L2_aquisition" cnt="0">
+                  <c n="Adults" cnt="0">
+                     <c n="Interviews" cnt="0"/>
+                  </c>
+                  <c n="Children" cnt="0"/>
+               </c>
+               <c n="songs" cnt="0"/>
+               <c n="stories" cnt="0"/>
+               <c n="Tai-Singpho-Tangsa" cnt="0">
+                  <c n="Singpho" cnt="0">
+                     <c n="Numphuk" cnt="0">
+                        <c n="Wordlist" cnt="0"/>
+                     </c>
+                  </c>
+                  <c n="Tai" cnt="0">
+                     <c n="Phake" cnt="0">
+                        <c n="Wordlist" cnt="0"/>
+                     </c>
+                  </c>
+               </c>
+               <c n="trial_woi_songs" cnt="0">
+                  <c n="Songs_in_June" cnt="0"/>
+               </c>
+               <c n="Yemen" cnt="3">
+                  <c n="dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Reagions" cnt="0">
+                     <c n="North" cnt="0"/>
+                     <c n="South" cnt="0"/>
+                  </c>
+                  <c n="regions" cnt="3">
+                     <c n="north" cnt="2"/>
+                     <c n="south" cnt="1"/>
+                  </c>
+               </c>
+               <c n="Yemen_" cnt="0">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                     <c n="South" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group10" cnt="11">
+               <c n="L1_acquisition" cnt="0"/>
+               <c n="L2_acquisition" cnt="0">
+                  <c n="Adults" cnt="0">
+                     <c n="Interviews" cnt="0"/>
+                  </c>
+                  <c n="Children" cnt="0"/>
+               </c>
+               <c n="School" cnt="0"/>
+               <c n="Yemen" cnt="3">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondik" cnt="0"/>
+                     <c n="Yondiki_" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="3">
+                     <c n="North" cnt="2"/>
+                     <c n="South" cnt="1"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group11" cnt="1"/>
+            <c n="group12" cnt="1">
+               <c n="grammatik" cnt="0">
+                  <c n="phrases" cnt="0"/>
+               </c>
+               <c n="texts" cnt="0">
+                  <c n="narrative" cnt="0"/>
+               </c>
+            </c>
+            <c n="group13" cnt="11">
+               <c n="text" cnt="0">
+                  <c n="narratives" cnt="0"/>
+               </c>
+               <c n="Yemen" cnt="3">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="3">
+                     <c n="North" cnt="2"/>
+                     <c n="South" cnt="1"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group14" cnt="4">
+               <c n="Bedja" cnt="0"/>
+               <c n="CorpAfroAs" cnt="1">
+                  <c n="Test" cnt="1"/>
+               </c>
+               <c n="Yemen" cnt="0">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                     <c n="South" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group15" cnt="7">
+               <c n="data" cnt="3">
+                  <c n="one" cnt="1"/>
+                  <c n="two" cnt="2"/>
+               </c>
+            </c>
+            <c n="group16" cnt="1"/>
+            <c n="group17" cnt="1"/>
+            <c n="group18" cnt="7"/>
+            <c n="group19" cnt="5"/>
+            <c n="group2" cnt="12">
+               <c n="Dialects" cnt="0">
+                  <c n="Yondiki" cnt="0"/>
+                  <c n="Yondiko" cnt="0"/>
+               </c>
+               <c n="L1_acquisition" cnt="0"/>
+               <c n="L2_acquisition" cnt="0">
+                  <c n="Adults" cnt="0">
+                     <c n="Interviews" cnt="0"/>
+                  </c>
+                  <c n="Children" cnt="0"/>
+               </c>
+               <c n="Regions" cnt="0">
+                  <c n="North" cnt="0"/>
+                  <c n="South" cnt="0"/>
+               </c>
+               <c n="Yemen" cnt="3">
+                  <c n="dialect" cnt="0">
+                     <c n="yondiki" cnt="0"/>
+                     <c n="yondiko" cnt="0"/>
+                  </c>
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="region" cnt="0">
+                     <c n="north" cnt="0"/>
+                     <c n="south" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="3">
+                     <c n="North" cnt="2"/>
+                     <c n="South" cnt="1"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group20" cnt="1">
+               <c n="Standard_Corpus" cnt="0"/>
+            </c>
+            <c n="group3" cnt="11">
+               <c n="dialects" cnt="0">
+                  <c n="yondiki" cnt="0"/>
+                  <c n="yondiko" cnt="0"/>
+               </c>
+               <c n="L1acq" cnt="0"/>
+               <c n="L1_acquisition" cnt="0"/>
+               <c n="L2acq" cnt="0">
+                  <c n="adults" cnt="0">
+                     <c n="elicitaion" cnt="0"/>
+                     <c n="interviews" cnt="0"/>
+                  </c>
+                  <c n="children" cnt="0"/>
+               </c>
+               <c n="L2_acquisition" cnt="0">
+                  <c n="children" cnt="0"/>
+               </c>
+               <c n="regions" cnt="0">
+                  <c n="north" cnt="0"/>
+                  <c n="south" cnt="0"/>
+               </c>
+               <c n="Yemen" cnt="3">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="3">
+                     <c n="North" cnt="2"/>
+                     <c n="South" cnt="1"/>
+                  </c>
+               </c>
+               <c n="Yemen_corpus" cnt="0">
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group4" cnt="8">
+               <c n="data" cnt="0">
+                  <c n="linguistic_data" cnt="0">
+                     <c n="conversation" cnt="0"/>
+                     <c n="elicitation" cnt="0"/>
+                     <c n="interview" cnt="0"/>
+                     <c n="narrative" cnt="0"/>
+                  </c>
+               </c>
+               <c n="europe" cnt="0">
+                  <c n="belgium" cnt="0"/>
+               </c>
+               <c n="L1_acquisition" cnt="0"/>
+               <c n="L2_acquisition" cnt="2">
+                  <c n="adults" cnt="1">
+                     <c n="interviews" cnt="1"/>
+                  </c>
+                  <c n="children" cnt="1"/>
+               </c>
+               <c n="Yemen" cnt="0">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                     <c n="South" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group5" cnt="8">
+               <c n="L1_acquisition" cnt="0"/>
+               <c n="L2_acquisition" cnt="2">
+                  <c n="adults" cnt="1">
+                     <c n="Interviews" cnt="1"/>
+                  </c>
+                  <c n="children" cnt="1"/>
+               </c>
+               <c n="Yemen" cnt="0">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                     <c n="South" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group6" cnt="7">
+               <c n="Fieldwork" cnt="0"/>
+               <c n="L1_acquistiion" cnt="0"/>
+               <c n="L2_acquisition" cnt="0">
+                  <c n="adults" cnt="0">
+                     <c n="Interviews" cnt="0"/>
+                  </c>
+                  <c n="children" cnt="0"/>
+               </c>
+               <c n="Yemen" cnt="0">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                     <c n="South" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group7" cnt="24">
+               <c n="acquisition" cnt="0">
+                  <c n="Guido" cnt="0"/>
+                  <c n="Petertje" cnt="0"/>
+                  <c n="Tamara" cnt="0"/>
+               </c>
+               <c n="Acquisition_of_Dutch" cnt="0">
+                  <c n="L1" cnt="0"/>
+                  <c n="L2" cnt="0">
+                     <c n="adults" cnt="0">
+                        <c n="interviews" cnt="0"/>
+                     </c>
+                     <c n="children" cnt="0"/>
+                  </c>
+               </c>
+               <c n="discurso_ritual" cnt="1">
+                  <c n="diario" cnt="1"/>
+               </c>
+               <c n="lenguas" cnt="0">
+                  <c n="bora" cnt="0"/>
+               </c>
+               <c n="Yemen" cnt="3">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                     <c n="Yondiko" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="3">
+                     <c n="North" cnt="2"/>
+                     <c n="South" cnt="1"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group8" cnt="4">
+               <c n="annemarie" cnt="0"/>
+               <c n="L1_acquisition" cnt="0"/>
+               <c n="L2_acquisition" cnt="0">
+                  <c n="adults" cnt="0"/>
+                  <c n="Children" cnt="0"/>
+               </c>
+               <c n="test" cnt="1"/>
+               <c n="Yemen" cnt="0">
+                  <c n="Dialects" cnt="0">
+                     <c n="Yondiki" cnt="0"/>
+                  </c>
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="group9" cnt="11">
+               <c n="Tai" cnt="0">
+                  <c n="Interviews" cnt="0"/>
+                  <c n="Songs" cnt="0"/>
+               </c>
+               <c n="Test" cnt="0">
+                  <c n="L1" cnt="0"/>
+                  <c n="L2" cnt="0"/>
+               </c>
+               <c n="Yemen" cnt="3">
+                  <c n="Dialects" cnt="3">
+                     <c n="Yondiki" cnt="2"/>
+                     <c n="Yondiko" cnt="1"/>
+                  </c>
+                  <c n="Regions" cnt="0">
+                     <c n="North" cnt="0"/>
+                     <c n="South" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="dobes_demo" cnt="2"/>
+         <c n="lams_demo" cnt="6">
+            <c n="DemoGroup1" cnt="0"/>
+            <c n="DemoGroup2" cnt="0"/>
+            <c n="mycorpus" cnt="0"/>
+         </c>
+         <c n="pewi" cnt="2">
+            <c n="test" cnt="0"/>
+         </c>
+         <c n="pudding" cnt="0"/>
+         <c n="Sandbox" cnt="1"/>
+         <c n="Talks" cnt="1"/>
+         <c n="Test02" cnt="4">
+            <c n="Field_Manuals" cnt="0">
+               <c n="1996_Materials" cnt="0"/>
+            </c>
+            <c n="pudding" cnt="0"/>
+            <c n="ross" cnt="0"/>
+            <c n="sessions" cnt="0">
+               <c n="Damrong_Tayanin" cnt="0"/>
+            </c>
+            <c n="test07" cnt="0"/>
+            <c n="test08" cnt="0"/>
+            <c n="test09" cnt="0"/>
+            <c n="test10" cnt="0">
+               <c n="subcorpus" cnt="0"/>
+            </c>
+         </c>
+         <c n="TobeErased" cnt="2">
+            <c n="Damrong_Tayanin" cnt="0"/>
+         </c>
+      </c>
+      <c n="donated_corpora" cnt="840">
+         <c n="Buryat" cnt="32">
+            <c n="Aga" cnt="9"/>
+            <c n="China" cnt="3"/>
+            <c n="Mongolia" cnt="4"/>
+            <c n="Selenga" cnt="7"/>
+            <c n="Western_Buryats" cnt="3"/>
+         </c>
+         <c n="Carib" cnt="100">
+            <c n="Section_4" cnt="17">
+               <c n="A_Stjoera" cnt="2"/>
+               <c n="Elisa_Veron" cnt="1"/>
+               <c n="J_Mande" cnt="3"/>
+               <c n="Ph_Cornelis" cnt="3"/>
+               <c n="Several_People" cnt="1"/>
+               <c n="Th_Banga" cnt="4"/>
+               <c n="Unknown" cnt="1"/>
+               <c n="W_Kassels" cnt="1"/>
+            </c>
+            <c n="Section_5" cnt="17">
+               <c n="B_Manate" cnt="2"/>
+               <c n="J_Mande" cnt="2"/>
+               <c n="Ph_Cornelis" cnt="1"/>
+               <c n="R_Kiban" cnt="7"/>
+               <c n="Several_People" cnt="1"/>
+               <c n="Th_Banga" cnt="2"/>
+               <c n="Two_Girls" cnt="1"/>
+            </c>
+            <c n="Section_6" cnt="24"/>
+            <c n="Section_7" cnt="22"/>
+         </c>
+         <c n="Chakali" cnt="1"/>
+         <c n="Dalabon" cnt="1"/>
+         <c n="Gammolsvansk" cnt="1"/>
+         <c n="Guanchet" cnt="7"/>
+         <c n="Kawapana" cnt="1"/>
+         <c n="Kimberly" cnt="1"/>
+         <c n="Leap" cnt="351"/>
+         <c n="Lokono" cnt="9">
+            <c n="Suriname" cnt="1">
+               <c n="oral_tradition" cnt="1"/>
+            </c>
+         </c>
+         <c n="Narranganset" cnt="2"/>
+         <c n="Nyangbo" cnt="1"/>
+         <c n="Pano" cnt="1"/>
+         <c n="Slavonic_Colour_Lexicon" cnt="3"/>
+         <c n="SSGG" cnt="327">
+            <c n="Abkhaz" cnt="10">
+               <c n="linguistic" cnt="0"/>
+            </c>
+            <c n="Armenian" cnt="16"/>
+            <c n="Avar" cnt="4"/>
+            <c n="Azeri" cnt="11"/>
+            <c n="Bezhta" cnt="3"/>
+            <c n="Georgian" cnt="55"/>
+            <c n="Hunzib" cnt="3"/>
+            <c n="Kistian" cnt="3"/>
+            <c n="Laiji" cnt="3"/>
+            <c n="Laz" cnt="18">
+               <c n="linguistic" cnt="18"/>
+            </c>
+            <c n="Megrelian" cnt="104">
+               <c n="linguistic" cnt="104"/>
+            </c>
+            <c n="Ossetian" cnt="5"/>
+            <c n="Russian" cnt="14"/>
+            <c n="Svan" cnt="43"/>
+            <c n="Tsova-Tush" cnt="1"/>
+            <c n="Udi" cnt="11"/>
+         </c>
+         <c n="YauyosQuechua" cnt="1"/>
+      </c>
+      <c n="echo_data" cnt="209">
+         <c n="lexikon" cnt="94"/>
+         <c n="sign_language" cnt="113">
+            <c n="BSL" cnt="21">
+               <c n="Dialogue" cnt="0"/>
+               <c n="Fables" cnt="10"/>
+               <c n="Lexicon" cnt="1"/>
+               <c n="Poetry" cnt="10"/>
+            </c>
+            <c n="DGS" cnt="0">
+               <c n="Dialogue" cnt="0"/>
+            </c>
+            <c n="Dialogue" cnt="17">
+               <c n="BSL" cnt="2"/>
+               <c n="DGS" cnt="10"/>
+               <c n="NGT" cnt="3"/>
+               <c n="SSL" cnt="2"/>
+            </c>
+            <c n="Fables" cnt="0">
+               <c n="BSL" cnt="0"/>
+               <c n="NGT" cnt="0"/>
+               <c n="SSL" cnt="0"/>
+            </c>
+            <c n="Lexicon" cnt="4">
+               <c n="BSL" cnt="0"/>
+               <c n="NGT" cnt="4"/>
+               <c n="SSL" cnt="0"/>
+            </c>
+            <c n="NGT" cnt="20">
+               <c n="Dialogue" cnt="0"/>
+               <c n="Fables" cnt="20"/>
+               <c n="Lexicon" cnt="0"/>
+               <c n="Poetry" cnt="0"/>
+            </c>
+            <c n="Poetry" cnt="3">
+               <c n="BSL" cnt="0"/>
+               <c n="NGT" cnt="2"/>
+               <c n="SSL" cnt="1"/>
+            </c>
+            <c n="Sign_Language" cnt="0">
+               <c n="BSL" cnt="0">
+                  <c n="Dialogue" cnt="0"/>
+                  <c n="Fables" cnt="0"/>
+                  <c n="Lexicon" cnt="0"/>
+                  <c n="Poetry" cnt="0"/>
+               </c>
+               <c n="DGS" cnt="0">
+                  <c n="Dialogue" cnt="0"/>
+               </c>
+               <c n="NGT" cnt="0">
+                  <c n="Dialogue" cnt="0"/>
+                  <c n="Fables" cnt="0"/>
+                  <c n="Lexicon" cnt="0"/>
+                  <c n="Poetry" cnt="0"/>
+               </c>
+               <c n="SSL" cnt="0">
+                  <c n="Dialogue" cnt="0"/>
+                  <c n="Fables" cnt="0"/>
+                  <c n="Lexicon" cnt="0"/>
+               </c>
+            </c>
+            <c n="SSL" cnt="12">
+               <c n="Dialogue" cnt="0"/>
+               <c n="Fables" cnt="10"/>
+               <c n="Lexicon" cnt="1"/>
+               <c n="SSL_Poetry" cnt="1"/>
+            </c>
+         </c>
+      </c>
+      <c n="gesture_data" cnt="9499">
+         <c n="allen" cnt="2047">
+            <c n="elicited_narrative" cnt="1953">
+               <c n="tomatoman" cnt="1953">
+                  <c n="E3" cnt="490">
+                     <c n="E3_02" cnt="26"/>
+                     <c n="E3_03" cnt="21"/>
+                     <c n="E3_05" cnt="22"/>
+                     <c n="E3_06" cnt="23"/>
+                     <c n="E3_07" cnt="27"/>
+                     <c n="E3_09" cnt="25"/>
+                     <c n="E3_11" cnt="25"/>
+                     <c n="E3_12" cnt="24"/>
+                     <c n="E3_13" cnt="22"/>
+                     <c n="E3_14" cnt="28"/>
+                     <c n="E3_15" cnt="25"/>
+                     <c n="E3_19" cnt="22"/>
+                     <c n="E3_23" cnt="28"/>
+                     <c n="E3_31" cnt="24"/>
+                     <c n="E3_32" cnt="26"/>
+                     <c n="E3_34" cnt="27"/>
+                     <c n="E3_35" cnt="21"/>
+                     <c n="E3_37" cnt="24"/>
+                     <c n="E3_38" cnt="23"/>
+                     <c n="E3_41" cnt="27"/>
+                  </c>
+                  <c n="E5" cnt="541">
+                     <c n="E5_02" cnt="24"/>
+                     <c n="E5_04" cnt="25"/>
+                     <c n="E5_06" cnt="26"/>
+                     <c n="E5_08" cnt="24"/>
+                     <c n="E5_10" cnt="19"/>
+                     <c n="E5_12" cnt="23"/>
+                     <c n="E5_20" cnt="22"/>
+                     <c n="E5_22" cnt="24"/>
+                     <c n="E5_23" cnt="20"/>
+                     <c n="E5_24" cnt="21"/>
+                     <c n="E5_26" cnt="24"/>
+                     <c n="E5_28" cnt="24"/>
+                     <c n="E5_30" cnt="24"/>
+                     <c n="E5_31" cnt="24"/>
+                     <c n="E5_32" cnt="23"/>
+                     <c n="E5_33" cnt="26"/>
+                     <c n="E5_34" cnt="28"/>
+                     <c n="E5_35" cnt="22"/>
+                     <c n="E5_36" cnt="22"/>
+                     <c n="E5_37" cnt="25"/>
+                     <c n="E5_38" cnt="24"/>
+                     <c n="E5_39" cnt="25"/>
+                     <c n="E5_40" cnt="22"/>
+                  </c>
+                  <c n="E9" cnt="462">
+                     <c n="E9_02" cnt="21"/>
+                     <c n="E9_04" cnt="22"/>
+                     <c n="E9_07" cnt="22"/>
+                     <c n="E9_08" cnt="21"/>
+                     <c n="E9_09" cnt="23"/>
+                     <c n="E9_10" cnt="21"/>
+                     <c n="E9_12" cnt="25"/>
+                     <c n="E9_13" cnt="20"/>
+                     <c n="E9_15" cnt="21"/>
+                     <c n="E9_16" cnt="22"/>
+                     <c n="E9_22" cnt="21"/>
+                     <c n="E9_23" cnt="23"/>
+                     <c n="E9_24" cnt="20"/>
+                     <c n="E9_25" cnt="24"/>
+                     <c n="E9_27" cnt="21"/>
+                     <c n="E9_29" cnt="21"/>
+                     <c n="E9_31" cnt="21"/>
+                     <c n="E9_32" cnt="23"/>
+                     <c n="E9_33" cnt="21"/>
+                     <c n="E9_35" cnt="28"/>
+                     <c n="E9_36" cnt="21"/>
+                  </c>
+                  <c n="EA" cnt="460">
+                     <c n="EA_01" cnt="20"/>
+                     <c n="EA_02" cnt="19"/>
+                     <c n="EA_03" cnt="20"/>
+                     <c n="EA_04" cnt="20"/>
+                     <c n="EA_05" cnt="20"/>
+                     <c n="EA_07" cnt="20"/>
+                     <c n="EA_09" cnt="20"/>
+                     <c n="EA_10" cnt="20"/>
+                     <c n="EA_11" cnt="19"/>
+                     <c n="EA_12" cnt="20"/>
+                     <c n="EA_13" cnt="20"/>
+                     <c n="EA_14" cnt="21"/>
+                     <c n="EA_15" cnt="21"/>
+                     <c n="EA_16" cnt="20"/>
+                     <c n="EA_17" cnt="20"/>
+                     <c n="EA_18" cnt="20"/>
+                     <c n="EA_19" cnt="20"/>
+                     <c n="EA_20" cnt="20"/>
+                     <c n="EA_21" cnt="20"/>
+                     <c n="EA_23" cnt="20"/>
+                     <c n="EA_24" cnt="20"/>
+                     <c n="EA_25" cnt="20"/>
+                     <c n="EA_27" cnt="20"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="furman" cnt="1"/>
+         <c n="gc-lausberg" cnt="266">
+            <c n="AC1" cnt="16"/>
+            <c n="AC2" cnt="16"/>
+            <c n="AC3" cnt="16"/>
+            <c n="AC4" cnt="16"/>
+            <c n="ApAa" cnt="15"/>
+            <c n="ApAb" cnt="12"/>
+            <c n="ApBa" cnt="14"/>
+            <c n="ApBb" cnt="13"/>
+            <c n="ImHl" cnt="15"/>
+            <c n="ImPi" cnt="13"/>
+            <c n="Int1" cnt="15"/>
+            <c n="Int2" cnt="3"/>
+            <c n="Int3" cnt="15"/>
+            <c n="Int4" cnt="11"/>
+            <c n="ObPa" cnt="19"/>
+            <c n="ObUs" cnt="19"/>
+            <c n="WAIS" cnt="13"/>
+         </c>
+         <c n="gullberg" cnt="91">
+            <c n="DutchL1" cnt="42">
+               <c n="Screen" cnt="19"/>
+               <c n="Visible" cnt="23"/>
+            </c>
+            <c n="FrenchL2" cnt="42">
+               <c n="Screen" cnt="21"/>
+               <c n="Visible" cnt="21"/>
+            </c>
+         </c>
+         <c n="kita" cnt="4574">
+            <c n="bilingual_study" cnt="0">
+               <c n="Balanced_Bilingual_Study" cnt="0"/>
+               <c n="L2_Longitudinal_Study" cnt="0"/>
+               <c n="L2_Visibility_Study" cnt="0"/>
+            </c>
+            <c n="communication_experiment" cnt="1011">
+               <c n="gcom1" cnt="185">
+                  <c n="9512V01" cnt="8"/>
+                  <c n="9512V02" cnt="7"/>
+                  <c n="9512V03" cnt="9"/>
+                  <c n="9512V04" cnt="9"/>
+                  <c n="9512V05" cnt="9"/>
+                  <c n="9512V06" cnt="9"/>
+                  <c n="9512V07" cnt="9"/>
+                  <c n="9512V08" cnt="9"/>
+                  <c n="9512V09" cnt="9"/>
+                  <c n="9512V10" cnt="9"/>
+                  <c n="9611V01" cnt="9"/>
+                  <c n="9611V02" cnt="9"/>
+                  <c n="9611V03" cnt="9"/>
+                  <c n="9611V04" cnt="9"/>
+                  <c n="9611V05" cnt="9"/>
+                  <c n="9611V06" cnt="9"/>
+                  <c n="9611V07" cnt="9"/>
+                  <c n="9611V08" cnt="9"/>
+                  <c n="9611V09" cnt="9"/>
+                  <c n="9611V10" cnt="9"/>
+                  <c n="9611V11" cnt="8"/>
+                  <c n="9611V12" cnt="0"/>
+               </c>
+               <c n="gcom2" cnt="215">
+                  <c n="9601V01" cnt="10"/>
+                  <c n="9601V02" cnt="10"/>
+                  <c n="9601V03" cnt="10"/>
+                  <c n="9601V04" cnt="10"/>
+                  <c n="9601V05" cnt="10"/>
+                  <c n="9601V06" cnt="11"/>
+                  <c n="9601V07" cnt="8"/>
+                  <c n="9601V08" cnt="10"/>
+                  <c n="9601V09" cnt="6"/>
+                  <c n="9601V10" cnt="10"/>
+                  <c n="9601V11" cnt="10"/>
+                  <c n="9601V12" cnt="10"/>
+                  <c n="9602V01" cnt="10"/>
+                  <c n="9602V02" cnt="10"/>
+                  <c n="9602V03" cnt="10"/>
+                  <c n="9602V04" cnt="10"/>
+                  <c n="9602V05" cnt="10"/>
+                  <c n="9602V06" cnt="10"/>
+                  <c n="9602V07" cnt="10"/>
+                  <c n="9602V08" cnt="10"/>
+                  <c n="9602V09" cnt="10"/>
+                  <c n="9602V10" cnt="10"/>
+               </c>
+               <c n="gcom3" cnt="548">
+                  <c n="9603V01" cnt="3"/>
+                  <c n="9603V02" cnt="10"/>
+                  <c n="9603V03" cnt="10"/>
+                  <c n="9603V04" cnt="10"/>
+                  <c n="9603V05" cnt="10"/>
+                  <c n="9603V06" cnt="10"/>
+                  <c n="9603V07" cnt="10"/>
+                  <c n="9603V08" cnt="2"/>
+                  <c n="9603V09" cnt="10"/>
+                  <c n="9603V10" cnt="10"/>
+                  <c n="9603V11" cnt="10"/>
+                  <c n="9603V12" cnt="10"/>
+                  <c n="9603V13" cnt="10"/>
+                  <c n="9603V14" cnt="10"/>
+                  <c n="9603V15" cnt="10"/>
+                  <c n="9603V16" cnt="10"/>
+                  <c n="9603V17" cnt="10"/>
+                  <c n="9603V18" cnt="0"/>
+                  <c n="9603V19" cnt="10"/>
+                  <c n="9603V20" cnt="10"/>
+                  <c n="9604V01" cnt="10"/>
+                  <c n="9604V02" cnt="10"/>
+                  <c n="9604V03" cnt="10"/>
+                  <c n="9604V04" cnt="10"/>
+                  <c n="9604V05" cnt="10"/>
+                  <c n="9604V06" cnt="10"/>
+                  <c n="9604V12" cnt="10"/>
+                  <c n="9604V13" cnt="10"/>
+                  <c n="9604V14" cnt="10"/>
+                  <c n="9604V15" cnt="10"/>
+                  <c n="9605V01" cnt="10"/>
+                  <c n="9605V02" cnt="10"/>
+                  <c n="9605V03" cnt="10"/>
+                  <c n="9605V04" cnt="10"/>
+                  <c n="9605V05" cnt="10"/>
+                  <c n="9605V06" cnt="10"/>
+                  <c n="9605V07" cnt="10"/>
+                  <c n="9605V08" cnt="10"/>
+                  <c n="9605V09" cnt="10"/>
+                  <c n="9605V10" cnt="10"/>
+                  <c n="9605V11" cnt="2"/>
+                  <c n="9605V12" cnt="10"/>
+                  <c n="9606V01" cnt="10"/>
+                  <c n="9606V02" cnt="10"/>
+                  <c n="9606V03" cnt="10"/>
+                  <c n="9606V04" cnt="10"/>
+                  <c n="9606V05" cnt="10"/>
+                  <c n="9606V06" cnt="8"/>
+                  <c n="9606V07" cnt="10"/>
+                  <c n="9606V08" cnt="10"/>
+                  <c n="9709V01" cnt="10"/>
+                  <c n="9709V02" cnt="10"/>
+                  <c n="9709V03" cnt="10"/>
+                  <c n="9709V04" cnt="3"/>
+                  <c n="9709V05" cnt="10"/>
+                  <c n="9709V06" cnt="10"/>
+                  <c n="9709V07" cnt="10"/>
+                  <c n="9709V08" cnt="10"/>
+                  <c n="9709V09" cnt="10"/>
+               </c>
+               <c n="gcom4" cnt="63">
+                  <c n="9604V01" cnt="12"/>
+                  <c n="9604V02" cnt="11"/>
+                  <c n="9604V03" cnt="16"/>
+                  <c n="9604V04" cnt="12"/>
+                  <c n="9604V05" cnt="12"/>
+               </c>
+            </c>
+            <c n="Communication_Experiments" cnt="19">
+               <c n="gcom1_9611" cnt="9">
+                  <c n="9611V12" cnt="9"/>
+               </c>
+               <c n="gcom3_9603" cnt="10">
+                  <c n="9603V18" cnt="10"/>
+               </c>
+            </c>
+            <c n="elicited_narrative" cnt="1308">
+               <c n="canary_row" cnt="10">
+                  <c n="dutch_sign_language" cnt="10"/>
+                  <c n="japanese" cnt="0"/>
+               </c>
+               <c n="tomatoman" cnt="1298">
+                  <c n="J3" cnt="524">
+                     <c n="J3_01" cnt="21"/>
+                     <c n="J3_02" cnt="21"/>
+                     <c n="J3_03" cnt="21"/>
+                     <c n="J3_04" cnt="21"/>
+                     <c n="J3_05" cnt="21"/>
+                     <c n="J3_06" cnt="21"/>
+                     <c n="J3_07" cnt="21"/>
+                     <c n="J3_08" cnt="21"/>
+                     <c n="J3_09" cnt="21"/>
+                     <c n="J3_10" cnt="21"/>
+                     <c n="J3_11" cnt="21"/>
+                     <c n="J3_12" cnt="21"/>
+                     <c n="J3_13" cnt="21"/>
+                     <c n="J3_14" cnt="21"/>
+                     <c n="J3_15" cnt="21"/>
+                     <c n="J3_16" cnt="21"/>
+                     <c n="J3_17" cnt="21"/>
+                     <c n="J3_18" cnt="21"/>
+                     <c n="J3_19" cnt="21"/>
+                     <c n="J3_20" cnt="21"/>
+                     <c n="J3_21" cnt="21"/>
+                     <c n="J3_22" cnt="20"/>
+                     <c n="J3_23" cnt="21"/>
+                     <c n="J3_24" cnt="21"/>
+                     <c n="J3_25" cnt="21"/>
+                  </c>
+                  <c n="J5" cnt="774">
+                     <c n="J5_01" cnt="21"/>
+                     <c n="J5_02" cnt="21"/>
+                     <c n="J5_03" cnt="21"/>
+                     <c n="J5_04" cnt="21"/>
+                     <c n="J5_05" cnt="21"/>
+                     <c n="J5_06" cnt="21"/>
+                     <c n="J5_07" cnt="21"/>
+                     <c n="J5_08" cnt="21"/>
+                     <c n="J5_09" cnt="21"/>
+                     <c n="J5_10" cnt="21"/>
+                     <c n="J5_11" cnt="21"/>
+                     <c n="J5_12" cnt="21"/>
+                     <c n="J5_13" cnt="21"/>
+                     <c n="J5_14" cnt="21"/>
+                     <c n="J5_15" cnt="0"/>
+                     <c n="J5_16" cnt="21"/>
+                     <c n="J5_17" cnt="21"/>
+                     <c n="J5_18" cnt="21"/>
+                     <c n="J5_19" cnt="21"/>
+                     <c n="J5_20" cnt="21"/>
+                     <c n="J5_21" cnt="21"/>
+                     <c n="J5_22" cnt="21"/>
+                     <c n="J5_23" cnt="21"/>
+                     <c n="J5_24" cnt="21"/>
+                     <c n="J5_25" cnt="20"/>
+                     <c n="J5_26" cnt="20"/>
+                     <c n="J5_27" cnt="21"/>
+                     <c n="J5_28" cnt="21"/>
+                     <c n="J5_29" cnt="21"/>
+                     <c n="J5_30" cnt="21"/>
+                     <c n="J5_31" cnt="21"/>
+                     <c n="J5_32" cnt="21"/>
+                     <c n="J5_33" cnt="20"/>
+                     <c n="J5_34" cnt="21"/>
+                     <c n="J5_35" cnt="21"/>
+                     <c n="J5_36" cnt="21"/>
+                     <c n="J5_37" cnt="21"/>
+                     <c n="J5_38" cnt="21"/>
+                  </c>
+                  <c n="J9" cnt="0">
+                     <c n="J9_01" cnt="0"/>
+                     <c n="J9_02" cnt="0"/>
+                     <c n="J9_03" cnt="0"/>
+                     <c n="J9_04" cnt="0"/>
+                     <c n="J9_05" cnt="0"/>
+                     <c n="J9_06" cnt="0"/>
+                     <c n="J9_07" cnt="0"/>
+                     <c n="J9_08" cnt="0"/>
+                     <c n="J9_09" cnt="0"/>
+                     <c n="J9_10" cnt="0"/>
+                     <c n="J9_11" cnt="0"/>
+                     <c n="J9_12" cnt="0"/>
+                     <c n="J9_13" cnt="0"/>
+                     <c n="J9_14" cnt="0"/>
+                     <c n="J9_15" cnt="0"/>
+                     <c n="J9_16" cnt="0"/>
+                     <c n="J9_17" cnt="0"/>
+                     <c n="J9_18" cnt="0"/>
+                     <c n="J9_19" cnt="0"/>
+                     <c n="J9_20" cnt="0"/>
+                     <c n="J9_21" cnt="0"/>
+                     <c n="J9_22" cnt="0"/>
+                     <c n="J9_23" cnt="0"/>
+                     <c n="J9_24" cnt="0"/>
+                     <c n="J9_25" cnt="0"/>
+                     <c n="J9_26" cnt="0"/>
+                     <c n="J9_27" cnt="0"/>
+                     <c n="J9_28" cnt="0"/>
+                     <c n="J9_29" cnt="0"/>
+                     <c n="J9_30" cnt="0"/>
+                     <c n="J9_31" cnt="0"/>
+                     <c n="J9_32" cnt="0"/>
+                     <c n="J9_33" cnt="0"/>
+                     <c n="J9_34" cnt="0"/>
+                     <c n="J9_35" cnt="0"/>
+                     <c n="J9_36" cnt="0"/>
+                     <c n="J9_37" cnt="0"/>
+                     <c n="J9_38" cnt="0"/>
+                     <c n="J9_39" cnt="0"/>
+                     <c n="J9_40" cnt="0"/>
+                     <c n="J9_41" cnt="0"/>
+                     <c n="J9_42" cnt="0"/>
+                     <c n="J9_43" cnt="0"/>
+                     <c n="J9_44" cnt="0"/>
+                     <c n="J9_45" cnt="0"/>
+                     <c n="J9_46" cnt="0"/>
+                     <c n="J9_47" cnt="0"/>
+                     <c n="J9_48" cnt="0"/>
+                     <c n="J9_49" cnt="0"/>
+                     <c n="J9_50" cnt="0"/>
+                     <c n="J9_51" cnt="0"/>
+                     <c n="J9_52" cnt="0"/>
+                     <c n="J9_53" cnt="0"/>
+                     <c n="J9_54" cnt="0"/>
+                     <c n="J9_55" cnt="0"/>
+                     <c n="J9_56" cnt="0"/>
+                     <c n="J9_57" cnt="0"/>
+                     <c n="J9_58" cnt="0"/>
+                     <c n="J9_59" cnt="0"/>
+                     <c n="J9_60" cnt="0"/>
+                     <c n="J9_61" cnt="0"/>
+                  </c>
+                  <c n="JA" cnt="0">
+                     <c n="JA_01" cnt="0"/>
+                     <c n="JA_02" cnt="0"/>
+                     <c n="JA_03" cnt="0"/>
+                     <c n="JA_04" cnt="0"/>
+                     <c n="JA_05" cnt="0"/>
+                     <c n="JA_06" cnt="0"/>
+                     <c n="JA_07" cnt="0"/>
+                     <c n="JA_08" cnt="0"/>
+                     <c n="JA_09" cnt="0"/>
+                     <c n="JA_10" cnt="0"/>
+                     <c n="JA_11" cnt="0"/>
+                     <c n="JA_12" cnt="0"/>
+                     <c n="JA_13" cnt="0"/>
+                     <c n="JA_14" cnt="0"/>
+                     <c n="JA_15" cnt="0"/>
+                     <c n="JA_16" cnt="0"/>
+                     <c n="JA_17" cnt="0"/>
+                     <c n="JA_18" cnt="0"/>
+                     <c n="JA_19" cnt="0"/>
+                     <c n="JA_20" cnt="0"/>
+                     <c n="JA_21" cnt="0"/>
+                     <c n="JA_22" cnt="0"/>
+                     <c n="JA_23" cnt="0"/>
+                     <c n="JA_24" cnt="0"/>
+                     <c n="JA_25" cnt="0"/>
+                     <c n="JA_26" cnt="0"/>
+                     <c n="JA_27" cnt="0"/>
+                     <c n="JA_28" cnt="0"/>
+                     <c n="JA_29" cnt="0"/>
+                     <c n="JA_30" cnt="0"/>
+                     <c n="JA_31" cnt="0"/>
+                     <c n="JA_32" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Elicited_narratives" cnt="1897">
+               <c n="tomato_man" cnt="1897">
+                  <c n="Japanese_9_years_old" cnt="1256">
+                     <c n="J9_01" cnt="21"/>
+                     <c n="J9_02" cnt="21"/>
+                     <c n="J9_03" cnt="21"/>
+                     <c n="J9_04" cnt="21"/>
+                     <c n="J9_05" cnt="21"/>
+                     <c n="J9_06" cnt="21"/>
+                     <c n="J9_07" cnt="21"/>
+                     <c n="J9_08" cnt="21"/>
+                     <c n="J9_09" cnt="21"/>
+                     <c n="J9_10" cnt="20"/>
+                     <c n="J9_11" cnt="21"/>
+                     <c n="J9_12" cnt="20"/>
+                     <c n="J9_13" cnt="21"/>
+                     <c n="J9_14" cnt="22"/>
+                     <c n="J9_15" cnt="21"/>
+                     <c n="J9_16" cnt="21"/>
+                     <c n="J9_17" cnt="21"/>
+                     <c n="J9_18" cnt="21"/>
+                     <c n="J9_19" cnt="21"/>
+                     <c n="J9_20" cnt="21"/>
+                     <c n="J9_21" cnt="20"/>
+                     <c n="J9_22" cnt="21"/>
+                     <c n="J9_23" cnt="21"/>
+                     <c n="J9_24" cnt="21"/>
+                     <c n="J9_25" cnt="20"/>
+                     <c n="J9_26" cnt="20"/>
+                     <c n="J9_27" cnt="20"/>
+                     <c n="J9_28" cnt="20"/>
+                     <c n="J9_29" cnt="21"/>
+                     <c n="J9_30" cnt="21"/>
+                     <c n="J9_31" cnt="21"/>
+                     <c n="J9_32" cnt="21"/>
+                     <c n="J9_33" cnt="21"/>
+                     <c n="J9_34" cnt="21"/>
+                     <c n="J9_35" cnt="21"/>
+                     <c n="J9_36" cnt="20"/>
+                     <c n="J9_37" cnt="21"/>
+                     <c n="J9_38" cnt="20"/>
+                     <c n="J9_39" cnt="21"/>
+                     <c n="J9_40" cnt="21"/>
+                     <c n="J9_41" cnt="21"/>
+                     <c n="J9_42" cnt="21"/>
+                     <c n="J9_43" cnt="21"/>
+                     <c n="J9_44" cnt="21"/>
+                     <c n="J9_45" cnt="21"/>
+                     <c n="J9_46" cnt="21"/>
+                     <c n="J9_47" cnt="21"/>
+                     <c n="J9_48" cnt="20"/>
+                     <c n="J9_49" cnt="20"/>
+                     <c n="J9_50" cnt="21"/>
+                     <c n="J9_51" cnt="20"/>
+                     <c n="J9_52" cnt="21"/>
+                     <c n="J9_53" cnt="10"/>
+                     <c n="J9_54" cnt="21"/>
+                     <c n="J9_55" cnt="20"/>
+                     <c n="J9_56" cnt="21"/>
+                     <c n="J9_57" cnt="20"/>
+                     <c n="J9_58" cnt="21"/>
+                     <c n="J9_59" cnt="20"/>
+                     <c n="J9_60" cnt="21"/>
+                     <c n="J9_61" cnt="21"/>
+                  </c>
+                  <c n="Japanese_adults" cnt="641">
+                     <c n="JA_01" cnt="20"/>
+                     <c n="JA_02" cnt="20"/>
+                     <c n="JA_03" cnt="20"/>
+                     <c n="JA_04" cnt="20"/>
+                     <c n="JA_05" cnt="20"/>
+                     <c n="JA_06" cnt="20"/>
+                     <c n="JA_07" cnt="20"/>
+                     <c n="JA_08" cnt="20"/>
+                     <c n="JA_09" cnt="20"/>
+                     <c n="JA_10" cnt="20"/>
+                     <c n="JA_11" cnt="20"/>
+                     <c n="JA_12" cnt="20"/>
+                     <c n="JA_13" cnt="20"/>
+                     <c n="JA_14" cnt="20"/>
+                     <c n="JA_15" cnt="20"/>
+                     <c n="JA_16" cnt="20"/>
+                     <c n="JA_17" cnt="20"/>
+                     <c n="JA_18" cnt="20"/>
+                     <c n="JA_19" cnt="20"/>
+                     <c n="JA_20" cnt="20"/>
+                     <c n="JA_21" cnt="20"/>
+                     <c n="JA_22" cnt="20"/>
+                     <c n="JA_23" cnt="20"/>
+                     <c n="JA_24" cnt="20"/>
+                     <c n="JA_25" cnt="20"/>
+                     <c n="JA_26" cnt="20"/>
+                     <c n="JA_27" cnt="20"/>
+                     <c n="JA_28" cnt="20"/>
+                     <c n="JA_29" cnt="20"/>
+                     <c n="JA_30" cnt="21"/>
+                     <c n="JA_31" cnt="20"/>
+                     <c n="JA_32" cnt="20"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Historical_description" cnt="26">
+               <c n="Dutch" cnt="18">
+                  <c n="OldMillingen" cnt="13"/>
+                  <c n="Old_Millingen" cnt="0"/>
+                  <c n="Old_Nijmegen" cnt="5"/>
+               </c>
+               <c n="italian" cnt="8"/>
+            </c>
+            <c n="naturalistic_route_description" cnt="19">
+               <c n="japanese" cnt="19"/>
+            </c>
+            <c n="natural_conversation" cnt="0">
+               <c n="japanese" cnt="0"/>
+            </c>
+         </c>
+         <c n="mandana" cnt="0"/>
+         <c n="ozyurek" cnt="2114">
+            <c n="elicited_narrative" cnt="0">
+               <c n="canary_row" cnt="0">
+                  <c n="american_english" cnt="0"/>
+                  <c n="turkish" cnt="0"/>
+               </c>
+               <c n="tomatoman" cnt="0">
+                  <c n="T3" cnt="0">
+                     <c n="T3_10" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Elicited_narratives" cnt="1">
+               <c n="Canary_Row" cnt="0">
+                  <c n="American_English" cnt="0"/>
+                  <c n="Turkish" cnt="0"/>
+               </c>
+               <c n="Tomatoman" cnt="0">
+                  <c n="T3" cnt="0">
+                     <c n="T3_01" cnt="0"/>
+                     <c n="T3_02" cnt="0"/>
+                     <c n="T3_03" cnt="0"/>
+                     <c n="T3_04" cnt="0"/>
+                     <c n="T3_05" cnt="0"/>
+                     <c n="T3_06" cnt="0"/>
+                     <c n="T3_07" cnt="0"/>
+                     <c n="T3_08" cnt="0"/>
+                     <c n="T3_09" cnt="0"/>
+                     <c n="T3_11" cnt="0"/>
+                     <c n="T3_12" cnt="0"/>
+                     <c n="T3_13" cnt="0"/>
+                     <c n="T3_15" cnt="0"/>
+                     <c n="T3_16" cnt="0"/>
+                     <c n="T3_17" cnt="0"/>
+                     <c n="T3_18" cnt="0"/>
+                     <c n="T3_19" cnt="0"/>
+                     <c n="T3_20" cnt="0"/>
+                     <c n="T3_21" cnt="0"/>
+                  </c>
+                  <c n="T5" cnt="0">
+                     <c n="T5_01" cnt="0"/>
+                     <c n="T5_02" cnt="0"/>
+                     <c n="T5_03" cnt="0"/>
+                     <c n="T5_04" cnt="0"/>
+                     <c n="T5_05" cnt="0"/>
+                     <c n="T5_06" cnt="0"/>
+                     <c n="T5_07" cnt="0"/>
+                     <c n="T5_08" cnt="0"/>
+                     <c n="T5_09" cnt="0"/>
+                     <c n="T5_10" cnt="0"/>
+                     <c n="T5_11" cnt="0"/>
+                     <c n="T5_12" cnt="0"/>
+                     <c n="T5_15" cnt="0"/>
+                     <c n="T5_16" cnt="0"/>
+                     <c n="T5_18" cnt="0"/>
+                     <c n="T5_19" cnt="0"/>
+                     <c n="T5_20" cnt="0"/>
+                     <c n="T5_21" cnt="0"/>
+                     <c n="T5_22" cnt="0"/>
+                     <c n="T5_23" cnt="0"/>
+                  </c>
+                  <c n="T9" cnt="0">
+                     <c n="T9_01" cnt="0"/>
+                     <c n="T9_02" cnt="0"/>
+                     <c n="T9_03" cnt="0"/>
+                     <c n="T9_05" cnt="0"/>
+                     <c n="T9_06" cnt="0"/>
+                     <c n="T9_07" cnt="0"/>
+                     <c n="T9_08" cnt="0"/>
+                     <c n="T9_09" cnt="0"/>
+                     <c n="T9_10" cnt="0"/>
+                     <c n="T9_11" cnt="0"/>
+                     <c n="T9_12" cnt="0"/>
+                     <c n="T9_13" cnt="0"/>
+                     <c n="T9_14" cnt="0"/>
+                     <c n="T9_15" cnt="0"/>
+                     <c n="T9_16" cnt="0"/>
+                     <c n="T9_17" cnt="0"/>
+                     <c n="T9_18" cnt="0"/>
+                     <c n="T9_19" cnt="0"/>
+                     <c n="T9_20" cnt="0"/>
+                     <c n="T9_21" cnt="0"/>
+                  </c>
+                  <c n="TA" cnt="0">
+                     <c n="TA_01" cnt="0"/>
+                     <c n="TA_02" cnt="0"/>
+                     <c n="TA_03" cnt="0"/>
+                     <c n="TA_04" cnt="0"/>
+                     <c n="TA_05" cnt="0"/>
+                     <c n="TA_06" cnt="0"/>
+                     <c n="TA_07" cnt="0"/>
+                     <c n="TA_08" cnt="0"/>
+                     <c n="TA_09" cnt="0"/>
+                     <c n="TA_10" cnt="0"/>
+                     <c n="TA_11" cnt="0"/>
+                     <c n="TA_12" cnt="0"/>
+                     <c n="TA_13" cnt="0"/>
+                     <c n="TA_14" cnt="0"/>
+                     <c n="TA_15" cnt="0"/>
+                     <c n="TA_16" cnt="0"/>
+                     <c n="TA_17" cnt="0"/>
+                     <c n="TA_18" cnt="0"/>
+                     <c n="TA_19" cnt="0"/>
+                     <c n="TA_20" cnt="0"/>
+                     <c n="TA_21" cnt="0"/>
+                  </c>
+               </c>
+               <c n="Turkish_Sign_Language" cnt="1">
+                  <c n="adjectives_few-many" cnt="0">
+                     <c n="B_AZ-COK" cnt="0"/>
+                     <c n="C_1-VS-MANY" cnt="0"/>
+                  </c>
+                  <c n="balloon_story" cnt="0"/>
+                  <c n="descriptions" cnt="0">
+                     <c n="family_description" cnt="0"/>
+                     <c n="house_description" cnt="0"/>
+                     <c n="room_description" cnt="0"/>
+                     <c n="route_description" cnt="0"/>
+                  </c>
+                  <c n="free_conversation" cnt="0"/>
+                  <c n="frog_story" cnt="0"/>
+                  <c n="give_take" cnt="0"/>
+                  <c n="mauss_elephant" cnt="0">
+                     <c n="M1" cnt="0"/>
+                     <c n="M2" cnt="0"/>
+                     <c n="M3" cnt="0"/>
+                     <c n="M4" cnt="0"/>
+                     <c n="M5" cnt="0"/>
+                     <c n="M6" cnt="0"/>
+                     <c n="M7" cnt="0"/>
+                     <c n="M8" cnt="0"/>
+                  </c>
+                  <c n="numeric_sets" cnt="0">
+                     <c n="numeric_set1" cnt="0"/>
+                     <c n="numeric_set1_-_movie_task" cnt="0"/>
+                     <c n="numeric_set1_-_picture_task" cnt="0"/>
+                     <c n="numeric_set2" cnt="0"/>
+                     <c n="numeric_set2_-_picture_task" cnt="0"/>
+                     <c n="numeric_sets_stimuli" cnt="0"/>
+                  </c>
+                  <c n="stack" cnt="1">
+                     <c n="stack1" cnt="1"/>
+                     <c n="stack2" cnt="0"/>
+                     <c n="stack3" cnt="0"/>
+                     <c n="stack4" cnt="0"/>
+                  </c>
+                  <c n="stimuli" cnt="0"/>
+                  <c n="sylvester_tweety" cnt="0">
+                     <c n="CR1" cnt="0"/>
+                     <c n="CR2" cnt="0"/>
+                     <c n="CR3" cnt="0"/>
+                     <c n="CR4" cnt="0"/>
+                     <c n="CR5" cnt="0"/>
+                     <c n="CR6" cnt="0"/>
+                     <c n="CR7_8" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Gesture" cnt="1951">
+               <c n="Canary_Row" cnt="244">
+                  <c n="American_English" cnt="35"/>
+                  <c n="Turkish" cnt="209">
+                     <c n="Canary_Row" cnt="0">
+                        <c n="CR1" cnt="0"/>
+                        <c n="CR2" cnt="0"/>
+                        <c n="CR3" cnt="0"/>
+                        <c n="CR4" cnt="0"/>
+                        <c n="CR5" cnt="0"/>
+                        <c n="CR6" cnt="0"/>
+                        <c n="CR7" cnt="0"/>
+                        <c n="CR8" cnt="0"/>
+                     </c>
+                     <c n="CR1" cnt="24"/>
+                     <c n="CR2" cnt="24"/>
+                     <c n="CR3" cnt="32"/>
+                     <c n="CR4" cnt="26"/>
+                     <c n="CR5" cnt="25"/>
+                     <c n="CR6" cnt="23"/>
+                     <c n="CR7" cnt="29"/>
+                     <c n="CR8" cnt="25"/>
+                  </c>
+               </c>
+               <c n="Demonstrative_Task" cnt="10"/>
+               <c n="Descriptions" cnt="21">
+                  <c n="House_description" cnt="2"/>
+                  <c n="Route_description" cnt="18"/>
+               </c>
+               <c n="Maus_" cnt="0">
+                  <c n="M1" cnt="0"/>
+                  <c n="M2" cnt="0"/>
+                  <c n="M3" cnt="0"/>
+                  <c n="M4" cnt="0"/>
+                  <c n="M8" cnt="0"/>
+                  <c n="M9" cnt="0"/>
+               </c>
+               <c n="Maus_Elephant" cnt="57">
+                  <c n="M1" cnt="10"/>
+                  <c n="M2" cnt="9"/>
+                  <c n="M3" cnt="10"/>
+                  <c n="M4" cnt="10"/>
+                  <c n="M8" cnt="9"/>
+                  <c n="M9" cnt="9"/>
+               </c>
+               <c n="Natural_Conversation" cnt="2"/>
+               <c n="Pear_story" cnt="8"/>
+               <c n="Route_description" cnt="0"/>
+               <c n="Tomatoman" cnt="1609">
+                  <c n="T3" cnt="399">
+                     <c n="T3_01" cnt="20"/>
+                     <c n="T3_02" cnt="20"/>
+                     <c n="T3_03" cnt="20"/>
+                     <c n="T3_04" cnt="20"/>
+                     <c n="T3_05" cnt="20"/>
+                     <c n="T3_06" cnt="20"/>
+                     <c n="T3_07" cnt="20"/>
+                     <c n="T3_08" cnt="20"/>
+                     <c n="T3_09" cnt="19"/>
+                     <c n="T3_10" cnt="20"/>
+                     <c n="T3_11" cnt="20"/>
+                     <c n="T3_12" cnt="20"/>
+                     <c n="T3_13" cnt="20"/>
+                     <c n="T3_15" cnt="20"/>
+                     <c n="T3_16" cnt="20"/>
+                     <c n="T3_17" cnt="20"/>
+                     <c n="T3_18" cnt="20"/>
+                     <c n="T3_19" cnt="20"/>
+                     <c n="T3_20" cnt="20"/>
+                     <c n="T3_21" cnt="20"/>
+                  </c>
+                  <c n="T5" cnt="400">
+                     <c n="T5_01" cnt="20"/>
+                     <c n="T5_02" cnt="20"/>
+                     <c n="T5_03" cnt="20"/>
+                     <c n="T5_04" cnt="20"/>
+                     <c n="T5_05" cnt="20"/>
+                     <c n="T5_06" cnt="20"/>
+                     <c n="T5_07" cnt="20"/>
+                     <c n="T5_08" cnt="20"/>
+                     <c n="T5_09" cnt="20"/>
+                     <c n="T5_10" cnt="20"/>
+                     <c n="T5_11" cnt="20"/>
+                     <c n="T5_12" cnt="20"/>
+                     <c n="T5_15" cnt="20"/>
+                     <c n="T5_16" cnt="20"/>
+                     <c n="T5_18" cnt="20"/>
+                     <c n="T5_19" cnt="20"/>
+                     <c n="T5_20" cnt="20"/>
+                     <c n="T5_21" cnt="20"/>
+                     <c n="T5_22" cnt="20"/>
+                     <c n="T5_23" cnt="20"/>
+                  </c>
+                  <c n="T9" cnt="400">
+                     <c n="T9_01" cnt="20"/>
+                     <c n="T9_02" cnt="20"/>
+                     <c n="T9_03" cnt="20"/>
+                     <c n="T9_05" cnt="20"/>
+                     <c n="T9_06" cnt="20"/>
+                     <c n="T9_07" cnt="20"/>
+                     <c n="T9_08" cnt="20"/>
+                     <c n="T9_09" cnt="20"/>
+                     <c n="T9_10" cnt="20"/>
+                     <c n="T9_11" cnt="20"/>
+                     <c n="T9_12" cnt="20"/>
+                     <c n="T9_13" cnt="20"/>
+                     <c n="T9_14" cnt="20"/>
+                     <c n="T9_15" cnt="20"/>
+                     <c n="T9_16" cnt="20"/>
+                     <c n="T9_17" cnt="20"/>
+                     <c n="T9_18" cnt="20"/>
+                     <c n="T9_19" cnt="20"/>
+                     <c n="T9_20" cnt="20"/>
+                     <c n="T9_21" cnt="20"/>
+                  </c>
+                  <c n="TA" cnt="410">
+                     <c n="TA_01" cnt="20"/>
+                     <c n="TA_02" cnt="20"/>
+                     <c n="TA_03" cnt="20"/>
+                     <c n="TA_04" cnt="20"/>
+                     <c n="TA_05" cnt="20"/>
+                     <c n="TA_06" cnt="20"/>
+                     <c n="TA_07" cnt="20"/>
+                     <c n="TA_08" cnt="20"/>
+                     <c n="TA_09" cnt="20"/>
+                     <c n="TA_10" cnt="20"/>
+                     <c n="TA_11" cnt="20"/>
+                     <c n="TA_12" cnt="20"/>
+                     <c n="TA_13" cnt="20"/>
+                     <c n="TA_14" cnt="20"/>
+                     <c n="TA_15" cnt="20"/>
+                     <c n="TA_16" cnt="20"/>
+                     <c n="TA_17" cnt="20"/>
+                     <c n="TA_18" cnt="20"/>
+                     <c n="TA_19" cnt="20"/>
+                     <c n="TA_20" cnt="20"/>
+                     <c n="TA_21" cnt="10"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Pantomime" cnt="19">
+               <c n="Turkish" cnt="19">
+                  <c n="Balloon_story" cnt="1"/>
+                  <c n="Canary_Row" cnt="5">
+                     <c n="CR_NSG_1" cnt="1"/>
+                     <c n="CR_NSG_2" cnt="1"/>
+                     <c n="CR_NSG_3" cnt="1"/>
+                     <c n="CR_NSG_4" cnt="1"/>
+                     <c n="CR_NSG_5" cnt="1"/>
+                  </c>
+                  <c n="Give_Take" cnt="2">
+                     <c n="GTA" cnt="1"/>
+                     <c n="GTP" cnt="1"/>
+                  </c>
+                  <c n="Inge_pictures" cnt="3">
+                     <c n="set1" cnt="1"/>
+                     <c n="set2" cnt="1"/>
+                     <c n="set3" cnt="1"/>
+                  </c>
+                  <c n="Maus_Elephant" cnt="4">
+                     <c n="ME_NSG_1" cnt="1"/>
+                     <c n="ME_NSG_2" cnt="1"/>
+                     <c n="ME_NSG_3" cnt="1"/>
+                     <c n="ME_NSG_4" cnt="1"/>
+                  </c>
+                  <c n="Numeric_stimuli" cnt="3">
+                     <c n="set1" cnt="1"/>
+                     <c n="set2" cnt="1"/>
+                     <c n="set3" cnt="1"/>
+                  </c>
+                  <c n="Volterra_Pictures" cnt="1">
+                     <c n="volterra_A" cnt="1"/>
+                  </c>
+               </c>
+               <c n="Turkish_" cnt="0">
+                  <c n="Balloon_story" cnt="0"/>
+                  <c n="Give_Take" cnt="0">
+                     <c n="GTA" cnt="0"/>
+                     <c n="GTP" cnt="0"/>
+                  </c>
+                  <c n="Inge_pictures" cnt="0">
+                     <c n="set1" cnt="0"/>
+                     <c n="set2" cnt="0"/>
+                     <c n="set3" cnt="0"/>
+                  </c>
+                  <c n="Numeric_stimuli" cnt="0">
+                     <c n="set1" cnt="0"/>
+                     <c n="set2" cnt="0"/>
+                     <c n="set3" cnt="0"/>
+                  </c>
+                  <c n="Volterra_Pictures" cnt="0">
+                     <c n="volterra_A" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Sign_language" cnt="0">
+               <c n="Turkish_Sign_Language" cnt="0">
+                  <c n="adjectives_few-many" cnt="0">
+                     <c n="B_AZ-COK" cnt="0"/>
+                     <c n="C_1-VS-MANY" cnt="0"/>
+                  </c>
+                  <c n="balloon_story" cnt="0"/>
+                  <c n="descriptions" cnt="0">
+                     <c n="family_description" cnt="0"/>
+                     <c n="house_description" cnt="0"/>
+                     <c n="room_description" cnt="0"/>
+                     <c n="route_description" cnt="0"/>
+                  </c>
+                  <c n="free_conversation" cnt="0"/>
+                  <c n="frog_story" cnt="0"/>
+                  <c n="give_take" cnt="0">
+                     <c n="give_take_stimuli" cnt="0"/>
+                  </c>
+                  <c n="maus_elephant" cnt="0">
+                     <c n="M1" cnt="0"/>
+                     <c n="M2" cnt="0"/>
+                     <c n="M3" cnt="0"/>
+                     <c n="M4" cnt="0"/>
+                     <c n="M5" cnt="0"/>
+                     <c n="M6" cnt="0"/>
+                     <c n="M7" cnt="0"/>
+                     <c n="M8" cnt="0"/>
+                  </c>
+                  <c n="numeric_sets" cnt="0">
+                     <c n="numeric_set1_-_movie_task" cnt="0"/>
+                     <c n="numeric_set1_-_picture_task" cnt="0"/>
+                     <c n="numeric_set2_-_picture_task" cnt="0"/>
+                     <c n="numeric_sets_stimuli" cnt="0"/>
+                  </c>
+                  <c n="stack" cnt="0">
+                     <c n="stack1" cnt="0"/>
+                     <c n="stack2" cnt="0"/>
+                     <c n="stack3" cnt="0"/>
+                     <c n="stack4" cnt="0"/>
+                  </c>
+                  <c n="stimuli" cnt="0">
+                     <c n="give_take_stimuli" cnt="0"/>
+                     <c n="numeric_sets_stimuli" cnt="0"/>
+                  </c>
+                  <c n="sylvester_tweety" cnt="0">
+                     <c n="CR1" cnt="0"/>
+                     <c n="CR2" cnt="0"/>
+                     <c n="CR3" cnt="0"/>
+                     <c n="CR4" cnt="0"/>
+                     <c n="CR5" cnt="0"/>
+                     <c n="CR6" cnt="0"/>
+                     <c n="CR7" cnt="0"/>
+                     <c n="CR8" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="perniss" cnt="364">
+            <c n="Co-speech_Gesture" cnt="261">
+               <c n="balloon_story" cnt="9"/>
+               <c n="Canary_Row" cnt="56">
+                  <c n="CR_1" cnt="9"/>
+                  <c n="CR_3" cnt="9"/>
+                  <c n="CR_4" cnt="9"/>
+                  <c n="CR_5" cnt="9"/>
+                  <c n="CR_6" cnt="10"/>
+                  <c n="CR_7" cnt="10"/>
+               </c>
+               <c n="Charlie_Chaplin" cnt="30">
+                  <c n="CC1" cnt="10"/>
+                  <c n="CC2" cnt="10"/>
+                  <c n="CC3" cnt="10"/>
+               </c>
+               <c n="Give_Take" cnt="20">
+                  <c n="GTA" cnt="10"/>
+                  <c n="GTP" cnt="10"/>
+               </c>
+               <c n="Inge_Pictures" cnt="30">
+                  <c n="set1" cnt="10"/>
+                  <c n="set2" cnt="10"/>
+                  <c n="set3" cnt="10"/>
+               </c>
+               <c n="Maus_Elephant" cnt="40">
+                  <c n="ME2" cnt="8"/>
+                  <c n="ME3" cnt="8"/>
+                  <c n="ME4" cnt="8"/>
+                  <c n="ME7" cnt="8"/>
+                  <c n="MEdrums" cnt="8"/>
+               </c>
+               <c n="No_speech_gesture" cnt="18">
+                  <c n="NSG_CR" cnt="9"/>
+                  <c n="NSG_ME" cnt="9"/>
+               </c>
+               <c n="number_stimuli" cnt="30">
+                  <c n="NS1" cnt="5"/>
+                  <c n="NS2" cnt="5"/>
+                  <c n="NS3" cnt="5"/>
+                  <c n="set1" cnt="5"/>
+                  <c n="set2" cnt="5"/>
+                  <c n="set3" cnt="5"/>
+               </c>
+               <c n="Personal_Narratives" cnt="14"/>
+               <c n="Spontaneous_Conversation" cnt="1"/>
+               <c n="sylvester_tweety" cnt="4">
+                  <c n="CR_1" cnt="1"/>
+                  <c n="CR_3" cnt="1"/>
+                  <c n="CR_4" cnt="1"/>
+                  <c n="CR_5" cnt="1"/>
+               </c>
+               <c n="Volterra_Pictures" cnt="9">
+                  <c n="VPA" cnt="4"/>
+                  <c n="VPB" cnt="5"/>
+               </c>
+            </c>
+            <c n="Pantomime" cnt="37">
+               <c n="NSG" cnt="22">
+                  <c n="NSG_CR" cnt="11"/>
+                  <c n="NSG_ME" cnt="11"/>
+               </c>
+               <c n="number_stimuli" cnt="15">
+                  <c n="set_1" cnt="5"/>
+                  <c n="set_2" cnt="5"/>
+                  <c n="set_3" cnt="5"/>
+               </c>
+            </c>
+         </c>
+         <c n="sassenberg" cnt="40">
+            <c n="English" cnt="18"/>
+            <c n="German" cnt="19"/>
+         </c>
+         <c n="sumer" cnt="1"/>
+      </c>
+      <c n="humanethology" cnt="162">
+         <c n="Originalfilme" cnt="145">
+            <c n="Himba" cnt="145">
+               <c n="1971" cnt="15"/>
+               <c n="1973" cnt="10"/>
+               <c n="1975" cnt="19"/>
+               <c n="1977" cnt="12"/>
+               <c n="1985" cnt="20"/>
+               <c n="1986" cnt="15"/>
+               <c n="1989" cnt="15"/>
+               <c n="1990" cnt="16"/>
+               <c n="1993" cnt="12"/>
+               <c n="1994" cnt="5"/>
+               <c n="1995" cnt="2"/>
+               <c n="1996" cnt="3"/>
+               <c n="1997" cnt="1"/>
+            </c>
+         </c>
+      </c>
+      <c n="lac_data" cnt="7975">
+         <c n="africa" cnt="29">
+            <c n="Ewe" cnt="29">
+               <c n="Essegbey" cnt="29">
+                  <c n="naturalistic_route_description" cnt="29"/>
+               </c>
+            </c>
+         </c>
+         <c n="allen" cnt="618">
+            <c n="bilingual" cnt="42">
+               <c n="alex" cnt="7"/>
+               <c n="amelia" cnt="5"/>
+               <c n="grey" cnt="4"/>
+               <c n="jane" cnt="1"/>
+               <c n="janice" cnt="3"/>
+               <c n="michael" cnt="8"/>
+               <c n="palluq" cnt="4"/>
+               <c n="sean" cnt="5"/>
+               <c n="stephanie" cnt="5"/>
+            </c>
+            <c n="frogstories" cnt="105">
+               <c n="english" cnt="26">
+                  <c n="g3kuuj95" cnt="9"/>
+                  <c n="g3kuuj96" cnt="17"/>
+               </c>
+               <c n="french" cnt="10">
+                  <c n="g3kuuj95" cnt="10"/>
+               </c>
+               <c n="inuktitut" cnt="69">
+                  <c n="adulkuuj" cnt="8"/>
+                  <c n="adulquka" cnt="3"/>
+                  <c n="g3kuuj95" cnt="1"/>
+                  <c n="g3kuuj96" cnt="18"/>
+                  <c n="g3quka97" cnt="9"/>
+                  <c n="g6kuuj96" cnt="12"/>
+                  <c n="s2kuuj96" cnt="7"/>
+                  <c n="s2quka97" cnt="2"/>
+                  <c n="s3kuuj96" cnt="6"/>
+                  <c n="s3quka97" cnt="3"/>
+               </c>
+            </c>
+            <c n="marthachildren" cnt="46">
+               <c n="imadata" cnt="11"/>
+               <c n="jajdata" cnt="12"/>
+               <c n="jandata" cnt="12"/>
+               <c n="suadata" cnt="11"/>
+            </c>
+            <c n="olderchildren" cnt="4">
+               <c n="tapereps" cnt="4"/>
+            </c>
+            <c n="quaqtaq" cnt="335">
+               <c n="alidata" cnt="22">
+                  <c n="ali1" cnt="4"/>
+                  <c n="ali2" cnt="2"/>
+                  <c n="ali3" cnt="3"/>
+                  <c n="ali4" cnt="2"/>
+                  <c n="ali5" cnt="1"/>
+                  <c n="ali6" cnt="2"/>
+                  <c n="ali7" cnt="3"/>
+                  <c n="ali8" cnt="2"/>
+                  <c n="ali9" cnt="3"/>
+               </c>
+               <c n="jupdata" cnt="118">
+                  <c n="jup1" cnt="1"/>
+                  <c n="jup2" cnt="25"/>
+                  <c n="jup3" cnt="16"/>
+                  <c n="jup4" cnt="23"/>
+                  <c n="jup5" cnt="2"/>
+                  <c n="jup6" cnt="25"/>
+                  <c n="jup7" cnt="24"/>
+                  <c n="jup8" cnt="1"/>
+                  <c n="jup9" cnt="1"/>
+               </c>
+               <c n="maedata" cnt="119">
+                  <c n="mae1" cnt="2"/>
+                  <c n="mae2" cnt="21"/>
+                  <c n="mae3" cnt="34"/>
+                  <c n="mae4" cnt="29"/>
+                  <c n="mae5" cnt="2"/>
+                  <c n="mae6" cnt="4"/>
+                  <c n="mae7" cnt="1"/>
+                  <c n="mae8" cnt="25"/>
+                  <c n="mae9" cnt="1"/>
+               </c>
+               <c n="supdata" cnt="72">
+                  <c n="sup1" cnt="3"/>
+                  <c n="sup2" cnt="2"/>
+                  <c n="sup3" cnt="3"/>
+                  <c n="sup4" cnt="4"/>
+                  <c n="sup5" cnt="2"/>
+                  <c n="sup6" cnt="16"/>
+                  <c n="sup7" cnt="15"/>
+                  <c n="sup8" cnt="25"/>
+                  <c n="sup9" cnt="2"/>
+               </c>
+               <c n="tapereps" cnt="4"/>
+            </c>
+            <c n="sli" cnt="2">
+               <c n="lydia" cnt="2"/>
+            </c>
+            <c n="space" cnt="2">
+               <c n="bowpedbook" cnt="1"/>
+               <c n="onofftoy" cnt="1"/>
+            </c>
+         </c>
+         <c n="australia" cnt="1">
+            <c n="arrente" cnt="1">
+               <c n="David_Wilkins" cnt="1">
+                  <c n="Not_yet_available" cnt="0"/>
+                  <c n="Now_available" cnt="0"/>
+               </c>
+            </c>
+         </c>
+         <c n="bhuvana" cnt="66">
+            <c n="BowPed" cnt="0"/>
+            <c n="Bowped_Task" cnt="7"/>
+            <c n="CUTBR" cnt="0"/>
+            <c n="Cut_Break_Task" cnt="3"/>
+            <c n="Ecom" cnt="0"/>
+            <c n="Ecom_Clips" cnt="2"/>
+            <c n="ET" cnt="12"/>
+            <c n="Frog" cnt="0"/>
+            <c n="Frog_Stories" cnt="1"/>
+            <c n="Hindi" cnt="0">
+               <c n="BowPed" cnt="0"/>
+               <c n="CUTBR" cnt="0"/>
+               <c n="Ecom" cnt="0"/>
+               <c n="ET" cnt="0"/>
+               <c n="Frog" cnt="0"/>
+               <c n="Motionland" cnt="0"/>
+               <c n="Moverb" cnt="0"/>
+               <c n="Pear" cnt="0"/>
+               <c n="Pos" cnt="0"/>
+               <c n="Robo" cnt="0"/>
+            </c>
+            <c n="Motionland" cnt="0"/>
+            <c n="Motionland_Task" cnt="2"/>
+            <c n="Moverb" cnt="0"/>
+            <c n="Moverb_Task" cnt="2"/>
+            <c n="Pear" cnt="1"/>
+            <c n="Pos" cnt="0"/>
+            <c n="Positional_Task" cnt="7"/>
+            <c n="Robo" cnt="1"/>
+            <c n="Tamil" cnt="0">
+               <c n="BowPed" cnt="0"/>
+               <c n="CUTBR" cnt="0"/>
+               <c n="Ecom" cnt="0"/>
+               <c n="ET" cnt="0"/>
+               <c n="Motionland" cnt="0"/>
+               <c n="Moverb" cnt="0"/>
+               <c n="Pear" cnt="0"/>
+               <c n="Pos" cnt="0"/>
+            </c>
+            <c n="unsorted_sessions" cnt="1"/>
+         </c>
+         <c n="bohnemeyer" cnt="291">
+            <c n="argument" cnt="0"/>
+            <c n="Argument_structure" cnt="3"/>
+            <c n="Ethnography" cnt="2"/>
+            <c n="event" cnt="0"/>
+            <c n="Event_representation" cnt="38"/>
+            <c n="gesture" cnt="16"/>
+            <c n="lexicon" cnt="2"/>
+            <c n="Narratives" cnt="15"/>
+            <c n="Space" cnt="37"/>
+            <c n="stimuli" cnt="0"/>
+            <c n="temporality" cnt="21"/>
+            <c n="unsorted_sessions" cnt="122"/>
+         </c>
+         <c n="burenhult" cnt="99">
+            <c n="all_sessions" cnt="97"/>
+            <c n="southeastasia" cnt="0">
+               <c n="all_sessions" cnt="0"/>
+            </c>
+         </c>
+         <c n="conferences" cnt="36">
+            <c n="wg2004" cnt="34"/>
+         </c>
+         <c n="dingemanse" cnt="14"/>
+         <c n="dunn1" cnt="0"/>
+         <c n="dunn2" cnt="0"/>
+         <c n="enfield" cnt="787">
+            <c n="BowpedLao" cnt="0"/>
+            <c n="Conversation" cnt="59"/>
+            <c n="Cut_and_Break_task" cnt="2"/>
+            <c n="Deixis" cnt="30"/>
+            <c n="Description" cnt="9"/>
+            <c n="Diff_task" cnt="22"/>
+            <c n="ECOM_task" cnt="7"/>
+            <c n="Elicitation" cnt="3"/>
+            <c n="Faces" cnt="4"/>
+            <c n="Frog_story" cnt="5"/>
+            <c n="Hmong" cnt="0"/>
+            <c n="Interaction" cnt="102"/>
+            <c n="Interview" cnt="19"/>
+            <c n="Katang" cnt="0"/>
+            <c n="Khmer" cnt="0"/>
+            <c n="Kinship" cnt="8"/>
+            <c n="Kri" cnt="0"/>
+            <c n="Lao" cnt="0"/>
+            <c n="Man_and_Tree_task" cnt="3"/>
+            <c n="Market_recordings" cnt="8"/>
+            <c n="Millingen_task" cnt="2"/>
+            <c n="Miscellaneous" cnt="101"/>
+            <c n="Monologue" cnt="11"/>
+            <c n="Narration" cnt="7"/>
+            <c n="Narrative" cnt="8"/>
+            <c n="Pacoh" cnt="0"/>
+            <c n="Seifart_Shape_Classifier_task" cnt="7"/>
+            <c n="southeastasia" cnt="272">
+               <c n="Katang" cnt="27">
+                  <c n="Enfield" cnt="27">
+                     <c n="Bowped" cnt="1"/>
+                     <c n="Chicken_Story" cnt="2"/>
+                     <c n="Elicitation" cnt="13"/>
+                     <c n="Frog_Story" cnt="4"/>
+                     <c n="Lizard_Story" cnt="2"/>
+                     <c n="Miscellaneous" cnt="3"/>
+                     <c n="Woman_Story" cnt="2"/>
+                  </c>
+               </c>
+               <c n="Kri" cnt="233">
+                  <c n="Enfield" cnt="233">
+                     <c n="Ceremony" cnt="7"/>
+                     <c n="Conversation" cnt="2"/>
+                     <c n="Elicitation" cnt="4"/>
+                     <c n="Interaction" cnt="148">
+                        <c n="Interaction_2004" cnt="58"/>
+                        <c n="Interaction_2005" cnt="45"/>
+                        <c n="Interaction_2006" cnt="45"/>
+                     </c>
+                     <c n="Interview" cnt="43"/>
+                     <c n="Miscellaneous" cnt="4"/>
+                     <c n="Outtakes" cnt="25"/>
+                  </c>
+               </c>
+               <c n="Lao" cnt="4">
+                  <c n="Enfield" cnt="4">
+                     <c n="BowpedLao" cnt="4"/>
+                     <c n="Miscellaneous" cnt="0"/>
+                  </c>
+               </c>
+               <c n="Ngeq" cnt="8">
+                  <c n="Enfield" cnt="8"/>
+               </c>
+            </c>
+            <c n="Table_Top_Route_Description" cnt="14"/>
+            <c n="TrapsLao" cnt="24"/>
+            <c n="Weaving" cnt="8"/>
+         </c>
+         <c n="englert" cnt="0"/>
+         <c n="essegbey" cnt="0"/>
+         <c n="fedden" cnt="1"/>
+         <c n="haun" cnt="0"/>
+         <c n="hayano" cnt="0"/>
+         <c n="heinemann" cnt="0"/>
+         <c n="hellwig" cnt="270">
+            <c n="Elicitations" cnt="89">
+               <c n="FolkDef" cnt="1"/>
+               <c n="Match" cnt="15">
+                  <c n="ColorChips" cnt="1"/>
+                  <c n="Compare" cnt="4"/>
+                  <c n="Dispos" cnt="2"/>
+                  <c n="Draw" cnt="1"/>
+                  <c n="FarmAni" cnt="2"/>
+                  <c n="MenTree" cnt="4"/>
+                  <c n="RouteDir" cnt="1"/>
+               </c>
+               <c n="PicBook" cnt="31">
+                  <c n="BowPed" cnt="6"/>
+                  <c n="Drawing" cnt="5"/>
+                  <c n="Liar" cnt="2"/>
+                  <c n="NewPicBk" cnt="6"/>
+                  <c n="Other" cnt="6"/>
+                  <c n="Photo" cnt="3"/>
+                  <c n="Posture" cnt="3"/>
+               </c>
+               <c n="Retell" cnt="34">
+                  <c n="NegLoc" cnt="3"/>
+                  <c n="NonLoc" cnt="11">
+                     <c n="Abstract" cnt="2"/>
+                     <c n="Busy" cnt="2"/>
+                     <c n="Clothes" cnt="2"/>
+                     <c n="Much" cnt="3"/>
+                     <c n="Ugly" cnt="2"/>
+                  </c>
+                  <c n="Posture" cnt="2"/>
+                  <c n="SVC" cnt="8">
+                     <c n="Inchoa" cnt="2"/>
+                     <c n="Motion" cnt="3"/>
+                     <c n="Tma" cnt="3"/>
+                  </c>
+                  <c n="TMA" cnt="7">
+                     <c n="ContDur" cnt="1"/>
+                     <c n="Irrealis" cnt="2"/>
+                     <c n="Yi" cnt="2"/>
+                     <c n="Yi_N" cnt="2"/>
+                  </c>
+                  <c n="UnmPos" cnt="3"/>
+               </c>
+               <c n="Story" cnt="8">
+                  <c n="Frog" cnt="7"/>
+                  <c n="Video" cnt="1"/>
+               </c>
+            </c>
+            <c n="Natural" cnt="120">
+               <c n="Conversation" cnt="7"/>
+               <c n="Descriptive" cnt="23"/>
+               <c n="Narrative" cnt="65">
+                  <c n="Folktales" cnt="46">
+                     <c n="Oral" cnt="26"/>
+                     <c n="Written" cnt="20"/>
+                  </c>
+                  <c n="Historical" cnt="12"/>
+                  <c n="Personal" cnt="7"/>
+               </c>
+               <c n="Procedural" cnt="4"/>
+               <c n="Proverb" cnt="1"/>
+               <c n="Radio" cnt="4"/>
+               <c n="Riddle" cnt="1"/>
+               <c n="Ritual" cnt="1"/>
+               <c n="Song" cnt="8"/>
+               <c n="Speech" cnt="6"/>
+            </c>
+         </c>
+         <c n="hill" cnt="0"/>
+         <c n="kidwell" cnt="0"/>
+         <c n="kita" cnt="9">
+            <c n="pair1" cnt="4">
+               <c n="act_out_task" cnt="2"/>
+               <c n="narrative_task" cnt="2"/>
+            </c>
+            <c n="pair2" cnt="0">
+               <c n="act_out_task" cnt="0"/>
+               <c n="narrative_task" cnt="0"/>
+            </c>
+         </c>
+         <c n="laycock" cnt="2">
+            <c n="mbarrumbathama" cnt="1"/>
+            <c n="morrobolam" cnt="1"/>
+         </c>
+         <c n="lc-faller" cnt="34">
+            <c n="Not_sortedDMFs" cnt="32"/>
+         </c>
+         <c n="lc-levinson-hopevale" cnt="41">
+            <c n="hopevale" cnt="0">
+               <c n="fieldtrip_by_date" cnt="0">
+                  <c n="1982" cnt="0"/>
+               </c>
+            </c>
+            <c n="Levinson" cnt="37">
+               <c n="fieldtrip_by_date" cnt="37">
+                  <c n="1982" cnt="37"/>
+               </c>
+            </c>
+         </c>
+         <c n="lc-lupke" cnt="268">
+            <c n="Corpusfiles" cnt="14"/>
+            <c n="Elicited" cnt="21"/>
+            <c n="Natural" cnt="96">
+               <c n="Narrative" cnt="49">
+                  <c n="Historical" cnt="6"/>
+                  <c n="Personal" cnt="22"/>
+                  <c n="Tales" cnt="21"/>
+               </c>
+               <c n="Other" cnt="31"/>
+               <c n="Songs" cnt="16"/>
+            </c>
+            <c n="Nonlinguistic" cnt="11"/>
+            <c n="Stimulated" cnt="71">
+               <c n="Bowped" cnt="6"/>
+               <c n="CausedPositions" cnt="4"/>
+               <c n="ECOM" cnt="4"/>
+               <c n="EventTriads" cnt="12"/>
+               <c n="Other" cnt="24"/>
+               <c n="Positionals" cnt="5"/>
+               <c n="QuickFluepke" cnt="12"/>
+               <c n="Tempest" cnt="4"/>
+            </c>
+         </c>
+         <c n="lc_stimuli_archive" cnt="153">
+            <c n="Field_Manuals" cnt="71">
+               <c n="1992_Materials" cnt="11">
+                  <c n="1992_Fieldmanual" cnt="1"/>
+                  <c n="1992_Stimuli" cnt="10">
+                     <c n="1992_Farm_Animals" cnt="1"/>
+                     <c n="1992_Frogstory" cnt="1"/>
+                     <c n="1992_Lourdes_de_Leon" cnt="1"/>
+                     <c n="1992_Memory_tests" cnt="1"/>
+                     <c n="1992_Men_" cnt="0"/>
+                     <c n="1992_Men_Tree" cnt="1"/>
+                     <c n="1992_Pear_film" cnt="1"/>
+                     <c n="1992_Tinker_Toy" cnt="1"/>
+                     <c n="1992_Topological_Relations" cnt="1"/>
+                     <c n="1992_Wooden_Man" cnt="1"/>
+                     <c n="1993_June_Maus_films" cnt="1"/>
+                  </c>
+               </c>
+               <c n="1993_July_Materials" cnt="5">
+                  <c n="1993_July_Fieldmanual" cnt="1"/>
+                  <c n="1993_July_Stimuli" cnt="4">
+                     <c n="1992_Pear_film" cnt="1"/>
+                     <c n="1993_July_Steve_s_Mazes" cnt="1"/>
+                     <c n="1993_July_Transivity_Task" cnt="1"/>
+                     <c n="1993_June_Maus_films" cnt="1"/>
+                  </c>
+               </c>
+               <c n="1993_June_Materials" cnt="11">
+                  <c n="1993_June_Fieldmanual" cnt="1"/>
+                  <c n="1993_June_Stimuli" cnt="10">
+                     <c n="1992_Farm_Animals" cnt="1"/>
+                     <c n="1992_Frogstory" cnt="1"/>
+                     <c n="1992_Lourdes_de_Leon" cnt="1"/>
+                     <c n="1992_Memory_tests" cnt="1"/>
+                     <c n="1992_Men_" cnt="0"/>
+                     <c n="1992_Men_Tree" cnt="1"/>
+                     <c n="1992_Pear_film" cnt="1"/>
+                     <c n="1992_Tinker_Toy" cnt="1"/>
+                     <c n="1992_Topological_Relations" cnt="1"/>
+                     <c n="1992_Wooden_Man" cnt="1"/>
+                     <c n="1993_June_Maus_films" cnt="1"/>
+                  </c>
+               </c>
+               <c n="1995_Materials" cnt="12">
+                  <c n="1995_Fieldmanual" cnt="1"/>
+                  <c n="1995_Stimuli" cnt="11">
+                     <c n="1992_Farm_Animals" cnt="1"/>
+                     <c n="1992_Frogstory" cnt="1"/>
+                     <c n="1992_Pear_film" cnt="1"/>
+                     <c n="1995_Enter_Exit_Animations" cnt="1"/>
+                     <c n="1995_Heider_Simmel" cnt="1"/>
+                     <c n="1995_Kita_s_people_stimuli" cnt="1"/>
+                     <c n="1995_Mouse_films" cnt="2">
+                        <c n="1993_Mouse_films_original" cnt="1"/>
+                        <c n="1995_Kita_s_mouse_stimuli" cnt="1"/>
+                     </c>
+                     <c n="1995_Sylvester_Tweety" cnt="3"/>
+                  </c>
+               </c>
+               <c n="1996_Materials" cnt="2">
+                  <c n="1996_Fieldmanual" cnt="1"/>
+                  <c n="1996_Stimuli" cnt="1"/>
+               </c>
+               <c n="1999_Materials" cnt="4">
+                  <c n="1999_Fieldmanual" cnt="1"/>
+                  <c n="1999_Stimuli" cnt="3"/>
+               </c>
+               <c n="2001-2002_Materials" cnt="10">
+                  <c n="2001-2002_Fieldmanuals" cnt="3"/>
+                  <c n="2001-2002_Stimuli" cnt="7">
+                     <c n="CausedPostions_2001" cnt="1"/>
+                     <c n="Cut_Break_2001" cnt="1"/>
+                     <c n="ECOM_clips_2001" cnt="1"/>
+                     <c n="Motionland_2001" cnt="1"/>
+                     <c n="Staged_Events_2001" cnt="3">
+                        <c n="Staged_Events_2001_booklet" cnt="1"/>
+                        <c n="Staged_Events_2001_set1" cnt="1"/>
+                        <c n="Staged_Events_2001_set2" cnt="1"/>
+                     </c>
+                  </c>
+               </c>
+               <c n="2003_Materials" cnt="8">
+                  <c n="2003_Fieldmanual" cnt="2"/>
+                  <c n="2003_Stimuli" cnt="6">
+                     <c n="Classifiers_2003" cnt="3"/>
+                     <c n="Diff-Task_2003" cnt="1"/>
+                     <c n="Island_Melanesia_Project_2003" cnt="1"/>
+                     <c n="Kids_Cut_Break_2003" cnt="1"/>
+                  </c>
+               </c>
+               <c n="2004_Materials" cnt="6">
+                  <c n="2004_Fieldmanual" cnt="1"/>
+                  <c n="2004_Stimuli" cnt="5">
+                     <c n="Event-Representation" cnt="5">
+                        <c n="Put_Project_2004" cnt="3"/>
+                        <c n="Reciprocals_2004" cnt="2"/>
+                     </c>
+                  </c>
+               </c>
+               <c n="2005_Materials" cnt="0"/>
+               <c n="2006_Materials" cnt="0"/>
+               <c n="2007_Materials" cnt="1"/>
+               <c n="2008_Materials" cnt="1"/>
+               <c n="2009_Materials" cnt="0"/>
+            </c>
+         </c>
+         <c n="lectures_and_interviews" cnt="7">
+            <c n="Interviews" cnt="2">
+               <c n="Autobiographical" cnt="2">
+                  <c n="Gumperz" cnt="2"/>
+               </c>
+            </c>
+         </c>
+         <c n="leguen" cnt="58">
+            <c n="Ethnography" cnt="24">
+               <c n="Children" cnt="7"/>
+               <c n="Interviews" cnt="1"/>
+               <c n="Narrations" cnt="6"/>
+               <c n="Natural_conversations" cnt="10"/>
+            </c>
+            <c n="Tasks_and_Elicitations" cnt="15">
+               <c n="Gesture" cnt="10">
+                  <c n="Deictic_gestures" cnt="1"/>
+                  <c n="Gesture_Dir.Giv-task" cnt="4"/>
+                  <c n="Gesture_Pilot-videos" cnt="5"/>
+               </c>
+               <c n="Language_of_Perception" cnt="2">
+                  <c n="Funny_walks" cnt="1"/>
+                  <c n="Textures" cnt="1"/>
+               </c>
+               <c n="Space" cnt="1"/>
+               <c n="Time_in_Space" cnt="2">
+                  <c n="Tsikbal_Time" cnt="2"/>
+               </c>
+            </c>
+         </c>
+         <c n="levinson" cnt="1329">
+            <c n="Cultural_data" cnt="535">
+               <c n="Photos" cnt="535">
+                  <c n="Fieldtrip_by_date" cnt="535">
+                     <c n="1921" cnt="12"/>
+                     <c n="1995" cnt="9"/>
+                     <c n="1996" cnt="28"/>
+                     <c n="1997" cnt="3"/>
+                     <c n="1999" cnt="17"/>
+                     <c n="2002" cnt="39">
+                        <c n="R02Aug10_1" cnt="2"/>
+                        <c n="R02Aug10_2" cnt="2"/>
+                        <c n="R02Aug17" cnt="1"/>
+                        <c n="R02Aug20_1" cnt="2"/>
+                        <c n="R02Aug20_2" cnt="1"/>
+                        <c n="R02Aug22" cnt="1"/>
+                        <c n="R02Aug23_1" cnt="2"/>
+                        <c n="R02Aug23_2" cnt="2"/>
+                        <c n="R02Aug23_3" cnt="1"/>
+                        <c n="R02Aug23_4" cnt="1"/>
+                        <c n="R02Aug23_5" cnt="1"/>
+                        <c n="R02Aug29_1" cnt="2"/>
+                        <c n="R02Aug29_2" cnt="2"/>
+                        <c n="R02Aug29_3" cnt="1"/>
+                        <c n="Sep11_1" cnt="2"/>
+                        <c n="Sep11_2" cnt="2"/>
+                        <c n="Sep14_1" cnt="2"/>
+                        <c n="Sep14_2" cnt="2"/>
+                        <c n="Sep14_3" cnt="1"/>
+                        <c n="Sep17" cnt="1"/>
+                        <c n="Sep17_Records" cnt="1"/>
+                        <c n="Sep22" cnt="2"/>
+                        <c n="Sep23" cnt="2"/>
+                        <c n="Sep5" cnt="1"/>
+                        <c n="Sep9" cnt="1"/>
+                     </c>
+                     <c n="2003" cnt="35">
+                        <c n="R03Aug06" cnt="2"/>
+                        <c n="R03Aug09" cnt="2"/>
+                        <c n="R03Aug10" cnt="2"/>
+                        <c n="R03Aug13_1" cnt="1"/>
+                        <c n="R03Aug13_2" cnt="2"/>
+                        <c n="R03Jul12_1" cnt="2"/>
+                        <c n="R03Jul12_2" cnt="1"/>
+                        <c n="R03Jul14" cnt="3"/>
+                        <c n="R03Jul19" cnt="3"/>
+                        <c n="R03Jul2" cnt="2"/>
+                        <c n="R03Jul26" cnt="2"/>
+                        <c n="R03Jul27_1" cnt="3"/>
+                        <c n="R03Jul27_2" cnt="1"/>
+                        <c n="R03Jul4_1" cnt="3"/>
+                        <c n="R03Jul4_2" cnt="1"/>
+                        <c n="R03July3" cnt="3"/>
+                        <c n="R03Jun27" cnt="2"/>
+                     </c>
+                     <c n="2004" cnt="62">
+                        <c n="R04Aug01" cnt="3"/>
+                        <c n="R04Aug03_1" cnt="5"/>
+                        <c n="R04Aug03_2" cnt="5"/>
+                        <c n="R04Aug14_1" cnt="4"/>
+                        <c n="R04Aug14_2" cnt="2"/>
+                        <c n="R04Aug23" cnt="2"/>
+                        <c n="R04Aug26" cnt="5"/>
+                        <c n="R04Aug27" cnt="7"/>
+                        <c n="R04Aug28" cnt="3"/>
+                        <c n="R04Jul14-17" cnt="4"/>
+                        <c n="R04Jul23-25_1" cnt="4"/>
+                        <c n="R04Jul23-25_2" cnt="3"/>
+                        <c n="R04Jul30_1" cnt="5"/>
+                        <c n="R04Jul30_2" cnt="2"/>
+                        <c n="R04Sep04" cnt="4"/>
+                        <c n="R04Sep05" cnt="4"/>
+                     </c>
+                     <c n="2005" cnt="87">
+                        <c n="R05Jul15_Naa" cnt="4"/>
+                        <c n="R05Jul29_Court_Case" cnt="6"/>
+                        <c n="R05_Canoe_ride" cnt="4"/>
+                        <c n="R05_Census" cnt="5"/>
+                        <c n="R05_Chinaman_Island" cnt="5"/>
+                        <c n="R05_Fishing_trip" cnt="11"/>
+                        <c n="R05_Kpaakpaa" cnt="4"/>
+                        <c n="R05_Mbaati_yapwo" cnt="4"/>
+                        <c n="R05_Mopu_trip_1" cnt="3"/>
+                        <c n="R05_Mopu_trip_2" cnt="3"/>
+                        <c n="R05_Pig_slaughter" cnt="5"/>
+                        <c n="R05_Taacho" cnt="9"/>
+                        <c n="R05_Trip_back" cnt="6"/>
+                        <c n="R05_Trip_out" cnt="6"/>
+                        <c n="R05_Woy_trip" cnt="5"/>
+                        <c n="R05_Yonga_Bay" cnt="7"/>
+                     </c>
+                     <c n="2006" cnt="126">
+                        <c n="R06Aug03_yapwo_trip" cnt="8"/>
+                        <c n="R06Aug05_Fishing_trip_1" cnt="2"/>
+                        <c n="R06Aug05_Fishing_trip_2" cnt="13"/>
+                        <c n="R06Aug09-12_Abeleti_1" cnt="3"/>
+                        <c n="R06Aug09-12_Abeleti_2" cnt="22"/>
+                        <c n="R06Aug24_Puum" cnt="6"/>
+                        <c n="R06Aug26_Fishing_trip_1" cnt="6"/>
+                        <c n="R06Aug26_Fishing_trip_2" cnt="3"/>
+                        <c n="R06Jul26_Mine_Warden_Hearing" cnt="1"/>
+                        <c n="R06Jul29_Fishing_Trip" cnt="4"/>
+                        <c n="R06Jul_Trip_out" cnt="13"/>
+                        <c n="R06Sep12_Trip_back" cnt="5"/>
+                        <c n="R06_Caves_and_Bush" cnt="7"/>
+                        <c n="R06_Chinaman_Island_1" cnt="14"/>
+                        <c n="R06_Chinaman_Island_2" cnt="4"/>
+                        <c n="R06_Flood" cnt="10"/>
+                        <c n="R06_Football" cnt="5"/>
+                     </c>
+                     <c n="2008" cnt="84">
+                        <c n="R08Aug02_Fishing_1" cnt="2"/>
+                        <c n="R08Aug02_Fishing_2" cnt="12"/>
+                        <c n="R08Aug09_Fishing" cnt="6"/>
+                        <c n="R08Aug12_Labuda_Naa" cnt="5"/>
+                        <c n="R08Aug16_Canoe_hauling_fishing" cnt="6"/>
+                        <c n="R08Aug23_Fishing_and_Local" cnt="5"/>
+                        <c n="R08Jul17_Tpile_we_Cheme" cnt="12"/>
+                        <c n="R08Jul26_Fishing" cnt="10"/>
+                        <c n="R08_Kpaakpaa" cnt="9"/>
+                        <c n="R08_Ntame_and_Local" cnt="7"/>
+                        <c n="R08_Rain" cnt="3"/>
+                        <c n="R08_Raymond_Yemwe" cnt="1"/>
+                        <c n="R08_Village" cnt="6"/>
+                     </c>
+                     <c n="Dec-2000_Jan-2001" cnt="33"/>
+                  </c>
+                  <c n="Rossel_Island_Photos" cnt="0"/>
+               </c>
+            </c>
+            <c n="Linguistic_data" cnt="533">
+               <c n="Fieldtrip_by_date" cnt="533">
+                  <c n="1995" cnt="27">
+                     <c n="Audio" cnt="9"/>
+                     <c n="Text" cnt="1"/>
+                     <c n="Video" cnt="17"/>
+                  </c>
+                  <c n="1996" cnt="16">
+                     <c n="Audio" cnt="11"/>
+                     <c n="Text" cnt="1"/>
+                     <c n="Video" cnt="4"/>
+                  </c>
+                  <c n="1997Apr" cnt="31">
+                     <c n="Audio" cnt="12"/>
+                     <c n="Video" cnt="19"/>
+                  </c>
+                  <c n="1997Nov" cnt="28">
+                     <c n="Audio" cnt="5"/>
+                     <c n="Text" cnt="9"/>
+                     <c n="Video" cnt="14"/>
+                  </c>
+                  <c n="1998" cnt="8">
+                     <c n="Text" cnt="8"/>
+                  </c>
+                  <c n="1999" cnt="20">
+                     <c n="Video" cnt="20"/>
+                  </c>
+                  <c n="2000-2001" cnt="54">
+                     <c n="Audio" cnt="8"/>
+                     <c n="photo2001" cnt="0"/>
+                     <c n="Text" cnt="10">
+                        <c n="kinship" cnt="2"/>
+                        <c n="shoebox_50" cnt="5"/>
+                     </c>
+                     <c n="Video" cnt="36"/>
+                  </c>
+                  <c n="2002" cnt="44">
+                     <c n="Audio" cnt="5"/>
+                     <c n="Text" cnt="22">
+                        <c n="Grammar_2002" cnt="3"/>
+                        <c n="Rossel_texts" cnt="14">
+                           <c n="New_input" cnt="3"/>
+                           <c n="transcripts2000" cnt="3"/>
+                        </c>
+                     </c>
+                     <c n="Video" cnt="17"/>
+                  </c>
+                  <c n="2003" cnt="82">
+                     <c n="Text" cnt="14">
+                        <c n="2002" cnt="4"/>
+                        <c n="2003" cnt="6"/>
+                        <c n="FBR2003" cnt="2"/>
+                     </c>
+                     <c n="Video" cnt="68"/>
+                  </c>
+                  <c n="2004" cnt="63">
+                     <c n="Audio" cnt="3"/>
+                     <c n="Text" cnt="11">
+                        <c n="Ian" cnt="4"/>
+                        <c n="Rossel_2004" cnt="6"/>
+                     </c>
+                     <c n="Video" cnt="49"/>
+                  </c>
+                  <c n="2005" cnt="58">
+                     <c n="Audio" cnt="3"/>
+                     <c n="Text" cnt="12">
+                        <c n="Elan_field_2005" cnt="0"/>
+                        <c n="Rossel_2005" cnt="12">
+                           <c n="boat" cnt="2"/>
+                        </c>
+                     </c>
+                     <c n="Video" cnt="43"/>
+                  </c>
+                  <c n="2006" cnt="57">
+                     <c n="Video" cnt="57"/>
+                  </c>
+                  <c n="2008" cnt="42">
+                     <c n="audio" cnt="19"/>
+                     <c n="video" cnt="23"/>
+                  </c>
+                  <c n="2009" cnt="3">
+                     <c n="Audio" cnt="3"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="majid" cnt="0"/>
+         <c n="meira1" cnt="94">
+            <c n="akuriyo" cnt="4"/>
+            <c n="hixkaryana" cnt="0"/>
+            <c n="karihona" cnt="3"/>
+            <c n="katxuyana" cnt="2"/>
+            <c n="tiriyo" cnt="60">
+               <c n="Elicitation" cnt="2">
+                  <c n="Wordlists" cnt="2"/>
+               </c>
+               <c n="Tasks" cnt="24">
+                  <c n="Demonstratives" cnt="7"/>
+                  <c n="LocInterview" cnt="2"/>
+                  <c n="MenTree" cnt="8"/>
+                  <c n="RouteDescr" cnt="7"/>
+               </c>
+               <c n="Texts" cnt="34">
+                  <c n="Conversations" cnt="2"/>
+                  <c n="FrogStory" cnt="1"/>
+                  <c n="Guided_Explanations" cnt="3"/>
+                  <c n="Maus" cnt="11"/>
+                  <c n="PearStory" cnt="1"/>
+                  <c n="Spontaneous" cnt="14">
+                     <c n="Descript" cnt="3"/>
+                     <c n="Myths" cnt="5"/>
+                     <c n="PersNarr" cnt="3"/>
+                     <c n="Procedures" cnt="1"/>
+                     <c n="Scenes" cnt="2"/>
+                  </c>
+                  <c n="Tweedy" cnt="2"/>
+               </c>
+            </c>
+            <c n="waimiri" cnt="1"/>
+            <c n="waiwai" cnt="0"/>
+         </c>
+         <c n="meira2" cnt="11">
+            <c n="mawe" cnt="7">
+               <c n="Narratives" cnt="2"/>
+               <c n="Wordlists" cnt="5"/>
+            </c>
+         </c>
+         <c n="mesoamerica" cnt="7">
+            <c n="Chontal" cnt="7">
+               <c n="O_Connor" cnt="7">
+                  <c n="elicited" cnt="6">
+                     <c n="Animals" cnt="1"/>
+                     <c n="Cpreds" cnt="4"/>
+                     <c n="Phasals" cnt="1"/>
+                     <c n="Time_Space" cnt="0"/>
+                  </c>
+                  <c n="natural" cnt="1">
+                     <c n="Conv" cnt="1"/>
+                     <c n="Folk" cnt="0"/>
+                     <c n="Marriage" cnt="0"/>
+                     <c n="Poetry" cnt="0"/>
+                     <c n="Setup" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="mmipros" cnt="0"/>
+         <c n="oconnor" cnt="122">
+            <c n="elicited" cnt="12">
+               <c n="AM" cnt="2"/>
+               <c n="Animals" cnt="1"/>
+               <c n="Cpreds" cnt="6"/>
+               <c n="Landscape" cnt="1"/>
+               <c n="Phasals" cnt="1"/>
+               <c n="Time_Space" cnt="1"/>
+            </c>
+            <c n="natural" cnt="20">
+               <c n="Conv" cnt="3"/>
+               <c n="Folk" cnt="12"/>
+               <c n="Marriage" cnt="1"/>
+               <c n="Poetry" cnt="2"/>
+               <c n="Setup" cnt="2"/>
+            </c>
+            <c n="stimulus" cnt="57">
+               <c n="Ameka" cnt="1"/>
+               <c n="Bowped" cnt="6"/>
+               <c n="Causality" cnt="3"/>
+               <c n="CausPos" cnt="5"/>
+               <c n="Come_go_Q" cnt="2"/>
+               <c n="Cut" cnt="11"/>
+               <c n="Everest" cnt="2"/>
+               <c n="Frog" cnt="3"/>
+               <c n="Manner" cnt="1"/>
+               <c n="Match" cnt="3"/>
+               <c n="Motionland" cnt="1"/>
+               <c n="Mvb" cnt="9"/>
+               <c n="Oz_Q" cnt="2"/>
+               <c n="TRM" cnt="4"/>
+               <c n="Tweety" cnt="4"/>
+            </c>
+         </c>
+         <c n="other" cnt="3">
+            <c n="mbarrumbathama" cnt="1"/>
+            <c n="morrobolam" cnt="1"/>
+            <c n="umpithamu" cnt="1"/>
+         </c>
+         <c n="other_hopevale" cnt="18"/>
+         <c n="other_tzeltal" cnt="5"/>
+         <c n="Ozyurek" cnt="648">
+            <c n="Turkish_Sign_Language" cnt="558">
+               <c n="adjectives_few-many" cnt="2">
+                  <c n="B_AZ-COK" cnt="1"/>
+                  <c n="C_1-VS-MANY" cnt="1"/>
+               </c>
+               <c n="balloon_story" cnt="20">
+                  <c n="balloon_story_old_data" cnt="7"/>
+                  <c n="balloon_story_VIDI_data" cnt="13"/>
+               </c>
+               <c n="charlie_chaplin" cnt="42">
+                  <c n="CC1" cnt="14"/>
+                  <c n="CC2" cnt="14"/>
+                  <c n="CC3" cnt="14"/>
+               </c>
+               <c n="descriptions" cnt="90">
+                  <c n="descriptions_old_data" cnt="11">
+                     <c n="family_description" cnt="3"/>
+                     <c n="house_description" cnt="6"/>
+                     <c n="room_description" cnt="1"/>
+                     <c n="route_description" cnt="1"/>
+                  </c>
+                  <c n="descriptions_vidi_data" cnt="79">
+                     <c n="house_descriptions" cnt="26"/>
+                     <c n="introduction" cnt="23"/>
+                     <c n="personal_narratives" cnt="27"/>
+                     <c n="spontaneous_conversation" cnt="3"/>
+                  </c>
+                  <c n="family_description" cnt="0"/>
+                  <c n="house_description" cnt="0"/>
+                  <c n="room_description" cnt="0"/>
+                  <c n="route_description" cnt="0"/>
+               </c>
+               <c n="free_conversation" cnt="20">
+                  <c n="free_conversation_old_data" cnt="20"/>
+               </c>
+               <c n="frog_story" cnt="7"/>
+               <c n="give" cnt="24">
+                  <c n="give_take_old" cnt="6">
+                     <c n="give_take_stimuli" cnt="1"/>
+                  </c>
+                  <c n="give_take_stimuli" cnt="0"/>
+                  <c n="GTA_VIDI" cnt="10"/>
+                  <c n="GTP_VIDI" cnt="0"/>
+               </c>
+               <c n="give_take" cnt="10">
+                  <c n="give_take_old" cnt="0">
+                     <c n="give_take_stimuli" cnt="0"/>
+                  </c>
+                  <c n="give_take_stimuli" cnt="0"/>
+                  <c n="GTA" cnt="0"/>
+                  <c n="GTA_VIDI" cnt="4"/>
+                  <c n="GTP_VIDI" cnt="6"/>
+               </c>
+               <c n="inge_pictures" cnt="42">
+                  <c n="set1" cnt="14"/>
+                  <c n="set2" cnt="14"/>
+                  <c n="set3" cnt="14"/>
+               </c>
+               <c n="maus" cnt="86">
+                  <c n="M1" cnt="0"/>
+                  <c n="M2" cnt="8"/>
+                  <c n="M3" cnt="8"/>
+                  <c n="M4" cnt="7"/>
+                  <c n="M5" cnt="0"/>
+                  <c n="M6" cnt="0"/>
+                  <c n="M7" cnt="8"/>
+                  <c n="M8" cnt="0"/>
+                  <c n="Mdrums" cnt="8"/>
+                  <c n="M_E_old_data" cnt="42">
+                     <c n="M1" cnt="7"/>
+                     <c n="M2" cnt="6"/>
+                     <c n="M3" cnt="6"/>
+                     <c n="M4" cnt="7"/>
+                     <c n="M5" cnt="4"/>
+                     <c n="M6" cnt="4"/>
+                     <c n="M7" cnt="4"/>
+                     <c n="M8" cnt="4"/>
+                  </c>
+                  <c n="M_E_VIDI_data" cnt="5">
+                     <c n="M2" cnt="1"/>
+                     <c n="M3" cnt="1"/>
+                     <c n="M4" cnt="1"/>
+                     <c n="M7" cnt="1"/>
+                     <c n="Mdrums" cnt="1"/>
+                  </c>
+               </c>
+               <c n="maus_elephant" cnt="25">
+                  <c n="M1" cnt="0"/>
+                  <c n="M2" cnt="0"/>
+                  <c n="M3" cnt="0"/>
+                  <c n="M4" cnt="0"/>
+                  <c n="M5" cnt="0"/>
+                  <c n="M6" cnt="0"/>
+                  <c n="M7" cnt="0"/>
+                  <c n="M8" cnt="0"/>
+                  <c n="M_E_VIDI_data" cnt="25">
+                     <c n="M2" cnt="5"/>
+                     <c n="M3" cnt="5"/>
+                     <c n="M4" cnt="5"/>
+                     <c n="M7" cnt="5"/>
+                     <c n="Mdrums" cnt="5"/>
+                  </c>
+               </c>
+               <c n="number_stimuli" cnt="56">
+                  <c n="number_stimuli_VIDI" cnt="42">
+                     <c n="set1" cnt="14"/>
+                     <c n="set2" cnt="14"/>
+                     <c n="set3" cnt="14"/>
+                  </c>
+                  <c n="numeric_sets_OLD" cnt="14">
+                     <c n="numeric_set1_-_movie_task" cnt="4"/>
+                     <c n="numeric_set1_-_picture_task" cnt="4"/>
+                     <c n="numeric_set2_-_picture_task" cnt="4"/>
+                     <c n="numeric_sets_stimuli" cnt="2"/>
+                  </c>
+               </c>
+               <c n="numeric_sets" cnt="0">
+                  <c n="numeric_set1_-_movie_task" cnt="0"/>
+                  <c n="numeric_set1_-_picture_task" cnt="0"/>
+                  <c n="numeric_set2_-_picture_task" cnt="0"/>
+                  <c n="numeric_sets_OLD" cnt="0">
+                     <c n="numeric_set1_-_movie_task" cnt="0"/>
+                     <c n="numeric_set1_-_picture_task" cnt="0"/>
+                     <c n="numeric_set2_-_picture_task" cnt="0"/>
+                     <c n="numeric_sets_stimuli" cnt="0"/>
+                  </c>
+                  <c n="numeric_sets_stimuli" cnt="0"/>
+                  <c n="numeric_sets_VIDI" cnt="0">
+                     <c n="set_1" cnt="0"/>
+                     <c n="set_2" cnt="0"/>
+                     <c n="set_3" cnt="0"/>
+                  </c>
+               </c>
+               <c n="stack" cnt="8">
+                  <c n="stack1" cnt="2"/>
+                  <c n="stack2" cnt="2"/>
+                  <c n="stack3" cnt="2"/>
+                  <c n="stack4" cnt="2"/>
+               </c>
+               <c n="stimuli" cnt="3">
+                  <c n="give_take_stimuli" cnt="1"/>
+                  <c n="numeric_sets_stimuli" cnt="2"/>
+               </c>
+               <c n="sylvester" cnt="73">
+                  <c n="CR1" cnt="8"/>
+                  <c n="CR3" cnt="8"/>
+                  <c n="CR4" cnt="8"/>
+                  <c n="CR5" cnt="7"/>
+                  <c n="CR6" cnt="8"/>
+                  <c n="CR7" cnt="8"/>
+                  <c n="CR_old_data" cnt="26">
+                     <c n="CR1" cnt="6"/>
+                     <c n="CR2" cnt="3"/>
+                     <c n="CR3" cnt="6"/>
+                     <c n="CR4" cnt="4"/>
+                     <c n="CR5" cnt="1"/>
+                     <c n="CR6" cnt="4"/>
+                     <c n="CR7" cnt="1"/>
+                     <c n="CR8" cnt="1"/>
+                  </c>
+                  <c n="CR_VIDI_data" cnt="0">
+                     <c n="CR1" cnt="0"/>
+                     <c n="CR3" cnt="0"/>
+                     <c n="CR4" cnt="0"/>
+                     <c n="CR5" cnt="0"/>
+                     <c n="CR6" cnt="0"/>
+                     <c n="CR7" cnt="0"/>
+                  </c>
+               </c>
+               <c n="sylvester_tweety" cnt="36">
+                  <c n="CR1" cnt="0"/>
+                  <c n="CR2" cnt="0"/>
+                  <c n="CR3" cnt="0"/>
+                  <c n="CR4" cnt="0"/>
+                  <c n="CR5" cnt="0"/>
+                  <c n="CR6" cnt="0"/>
+                  <c n="CR7" cnt="0"/>
+                  <c n="CR8" cnt="0"/>
+                  <c n="CR_VIDI_data" cnt="36">
+                     <c n="CR1" cnt="6"/>
+                     <c n="CR3" cnt="6"/>
+                     <c n="CR4" cnt="6"/>
+                     <c n="CR5" cnt="6"/>
+                     <c n="CR6" cnt="6"/>
+                     <c n="CR7" cnt="6"/>
+                  </c>
+               </c>
+               <c n="Volterra_pictures" cnt="14">
+                  <c n="volterra_A" cnt="8"/>
+                  <c n="volterra_B" cnt="6"/>
+               </c>
+            </c>
+         </c>
+         <c n="pbrown" cnt="726">
+            <c n="1971-73" cnt="47"/>
+            <c n="1980" cnt="22"/>
+            <c n="1990" cnt="47"/>
+            <c n="1991december_to_1992january" cnt="40"/>
+            <c n="1991summer" cnt="52"/>
+            <c n="1992december_to_1993january" cnt="61"/>
+            <c n="1993december_to_1994january" cnt="13"/>
+            <c n="1993summer" cnt="54"/>
+            <c n="1994" cnt="43"/>
+            <c n="1995" cnt="96"/>
+            <c n="1996" cnt="24"/>
+            <c n="1997" cnt="9"/>
+            <c n="1999" cnt="5"/>
+            <c n="2000" cnt="39"/>
+            <c n="2002" cnt="36"/>
+            <c n="2003" cnt="26">
+               <c n="Photographs-Lacandon" cnt="4"/>
+               <c n="Photographs-Tzeltal" cnt="3"/>
+            </c>
+            <c n="2004" cnt="15"/>
+            <c n="2005" cnt="23"/>
+            <c n="2006" cnt="5"/>
+            <c n="2007" cnt="26"/>
+            <c n="2008" cnt="10"/>
+            <c n="corpman" cnt="7"/>
+         </c>
+         <c n="pederson" cnt="0"/>
+         <c n="perniss" cnt="602">
+            <c n="CR" cnt="0"/>
+            <c n="Farm" cnt="0"/>
+            <c n="FoR" cnt="0"/>
+            <c n="German_Sign_Language" cnt="541">
+               <c n="balloon_story" cnt="15"/>
+               <c n="charlie_chaplin" cnt="42">
+                  <c n="CC1" cnt="14"/>
+                  <c n="CC2" cnt="14"/>
+                  <c n="CC3" cnt="14"/>
+               </c>
+               <c n="descriptions" cnt="78">
+                  <c n="family_description" cnt="4"/>
+                  <c n="FD" cnt="0"/>
+                  <c n="HD" cnt="0"/>
+                  <c n="house_description" cnt="13"/>
+                  <c n="introduction" cnt="21"/>
+                  <c n="personal_narratives" cnt="22"/>
+                  <c n="RD" cnt="0"/>
+                  <c n="route_description" cnt="12"/>
+                  <c n="spontaneous_conversation" cnt="6"/>
+               </c>
+               <c n="farm" cnt="3"/>
+               <c n="frame_of_reference" cnt="2"/>
+               <c n="free_description" cnt="0">
+                  <c n="introduction" cnt="0"/>
+                  <c n="personal_narratives" cnt="0"/>
+               </c>
+               <c n="give" cnt="21">
+                  <c n="GTA" cnt="9"/>
+                  <c n="GTP" cnt="11">
+                     <c n="GTP_addressee_response" cnt="1"/>
+                  </c>
+               </c>
+               <c n="give_take" cnt="9">
+                  <c n="GTA" cnt="4">
+                     <c n="SV" cnt="0"/>
+                     <c n="TV" cnt="0"/>
+                  </c>
+                  <c n="GTP" cnt="5"/>
+               </c>
+               <c n="inge_pictures" cnt="45">
+                  <c n="set1" cnt="15"/>
+                  <c n="set2" cnt="15"/>
+                  <c n="set3" cnt="15"/>
+                  <c n="SV" cnt="0"/>
+                  <c n="TV" cnt="0"/>
+               </c>
+               <c n="maus" cnt="83">
+                  <c n="M-drums" cnt="9">
+                     <c n="M-drums_addressee" cnt="3"/>
+                  </c>
+                  <c n="M_1" cnt="6"/>
+                  <c n="M_2" cnt="15">
+                     <c n="M2_addressee" cnt="3"/>
+                  </c>
+                  <c n="M_3" cnt="14">
+                     <c n="M3_addressee" cnt="3"/>
+                  </c>
+                  <c n="M_4" cnt="15">
+                     <c n="M4_Adressee" cnt="3"/>
+                  </c>
+                  <c n="M_5" cnt="5"/>
+                  <c n="M_6" cnt="4"/>
+                  <c n="M_7" cnt="12">
+                     <c n="M7_addressee" cnt="3"/>
+                  </c>
+                  <c n="M_8" cnt="3"/>
+               </c>
+               <c n="no_speech_gesture_NSG_" cnt="26">
+                  <c n="NSG_CR" cnt="13"/>
+                  <c n="NSG_ME" cnt="13"/>
+               </c>
+               <c n="number_stimuli" cnt="45">
+                  <c n="set_1" cnt="15">
+                     <c n="SV" cnt="0"/>
+                     <c n="TV" cnt="0"/>
+                  </c>
+                  <c n="set_2" cnt="15">
+                     <c n="SV" cnt="0"/>
+                     <c n="TV" cnt="0"/>
+                  </c>
+                  <c n="set_3" cnt="15">
+                     <c n="SV" cnt="0"/>
+                     <c n="TV" cnt="0"/>
+                  </c>
+               </c>
+               <c n="stack" cnt="12"/>
+               <c n="sylvester" cnt="94">
+                  <c n="CR_1" cnt="15"/>
+                  <c n="CR_2" cnt="4"/>
+                  <c n="CR_3" cnt="15"/>
+                  <c n="CR_4" cnt="15"/>
+                  <c n="CR_5" cnt="15"/>
+                  <c n="CR_6" cnt="15"/>
+                  <c n="CR_7" cnt="15"/>
+               </c>
+               <c n="sylvester_tweety" cnt="52">
+                  <c n="CR_1" cnt="8"/>
+                  <c n="CR_2" cnt="4"/>
+                  <c n="CR_3" cnt="8"/>
+                  <c n="CR_4" cnt="8"/>
+                  <c n="CR_5" cnt="8"/>
+                  <c n="CR_6" cnt="8"/>
+                  <c n="CR_7" cnt="8"/>
+               </c>
+               <c n="volterra_pictures" cnt="14">
+                  <c n="volterra_A" cnt="7">
+                     <c n="SV" cnt="0"/>
+                     <c n="TV" cnt="0"/>
+                  </c>
+                  <c n="volterra_B" cnt="7"/>
+               </c>
+            </c>
+            <c n="RD" cnt="0"/>
+            <c n="Stack" cnt="0"/>
+         </c>
+         <c n="rigsby" cnt="3">
+            <c n="mbarrumbathama" cnt="1"/>
+            <c n="morrobolam" cnt="1"/>
+            <c n="umpithamu" cnt="1"/>
+         </c>
+         <c n="rossano" cnt="36"/>
+         <c n="rossi" cnt="0"/>
+         <c n="ruiter" cnt="55">
+            <c n="Comic" cnt="10">
+               <c n="Full_Modality" cnt="3"/>
+               <c n="Manipulated_Pen" cnt="3"/>
+               <c n="Manipulated_Pen_Vision" cnt="2"/>
+               <c n="Manipulated_Vision" cnt="2"/>
+            </c>
+            <c n="Diff" cnt="3"/>
+            <c n="HIFI" cnt="2"/>
+            <c n="JAST" cnt="19">
+               <c n="Joint_Construction_Task" cnt="5">
+                  <c n="JCTe1" cnt="2"/>
+                  <c n="JCTe2" cnt="3">
+                     <c n="feedback_1" cnt="3"/>
+                  </c>
+               </c>
+               <c n="Picture_Description_Task" cnt="6">
+                  <c n="without_context" cnt="3"/>
+                  <c n="with_context" cnt="3"/>
+               </c>
+               <c n="Picture_Pointing_Task" cnt="8">
+                  <c n="Picture_pointing_non_visible" cnt="4"/>
+                  <c n="Picture_pointing_visible" cnt="4"/>
+               </c>
+            </c>
+         </c>
+         <c n="schultze-berndt" cnt="28">
+            <c n="Archive" cnt="0">
+               <c n="Elicitations" cnt="0"/>
+               <c n="Fieldnotes" cnt="0"/>
+               <c n="Natural" cnt="0"/>
+               <c n="SoundOnly" cnt="0"/>
+            </c>
+            <c n="Elicitations" cnt="15"/>
+            <c n="Fieldnotes" cnt="1"/>
+            <c n="Natural" cnt="5"/>
+            <c n="SoundOnly" cnt="2"/>
+         </c>
+         <c n="seifart" cnt="149">
+            <c n="BaMaClips" cnt="19"/>
+            <c n="Conversation" cnt="2"/>
+            <c n="Elicitations" cnt="1"/>
+            <c n="Narrative" cnt="4"/>
+            <c n="Procedural" cnt="13"/>
+            <c n="Shape_Classifier_Tasks" cnt="85">
+               <c n="Andrea_Gloria" cnt="22"/>
+               <c n="Azul_Aceviedo" cnt="20"/>
+               <c n="Rafael_Gregorio" cnt="22"/>
+               <c n="Roberto_Ernesto" cnt="21"/>
+            </c>
+            <c n="Songs" cnt="2"/>
+            <c n="Vow" cnt="8"/>
+         </c>
+         <c n="senft" cnt="343">
+            <c n="Child_Child_Interaction" cnt="1"/>
+            <c n="Cut_And_Break" cnt="6"/>
+            <c n="Descriptions" cnt="4"/>
+            <c n="Elicitation_Material" cnt="1"/>
+            <c n="General_Documentation" cnt="8"/>
+            <c n="Gossip" cnt="0"/>
+            <c n="Image_Archive" cnt="106">
+               <c n="Scanned_slides" cnt="106">
+                  <c n="1996ICE" cnt="22">
+                     <c n="I-Sagali-Tauwema" cnt="8">
+                        <c n="I-Sagali-Tauwema01" cnt="0"/>
+                        <c n="I-Sagali-Tauwema02" cnt="0"/>
+                        <c n="I-Sagali-Tauwema03" cnt="0"/>
+                        <c n="I-Sagali-Tauwema04" cnt="0"/>
+                        <c n="I-Sagali-Tauwema05" cnt="0"/>
+                        <c n="I-Sagali-Tauwema06" cnt="0"/>
+                        <c n="I-Sagali-Tauwema07" cnt="0"/>
+                        <c n="I-Sagali-Tauwema08" cnt="0"/>
+                     </c>
+                     <c n="II-MelanesianSpearheadMeeting" cnt="5">
+                        <c n="II-MelanesianSpMeOm02" cnt="0"/>
+                     </c>
+                     <c n="II-MelanesianSpearheadMeetingO" cnt="0">
+                        <c n="II-MelanesianSpMeOm01" cnt="0"/>
+                        <c n="II-MelanesianSpMeOm02" cnt="0"/>
+                        <c n="II-MelanesianSpMeOm03" cnt="0"/>
+                        <c n="II-MelanesianSpMeOm04" cnt="0"/>
+                        <c n="II-MelanesianSpMeOm05" cnt="0"/>
+                     </c>
+                     <c n="III-Kaibola-Kasina" cnt="1"/>
+                     <c n="IV-Tuma-Tauwema" cnt="2">
+                        <c n="IV-Tuma-Tauwema01" cnt="0"/>
+                        <c n="IV-Tuma-Tauwema02" cnt="0"/>
+                     </c>
+                     <c n="V-MexicoCity" cnt="6">
+                        <c n="V-MexicoCity01" cnt="0"/>
+                        <c n="V-MexicoCity02" cnt="0"/>
+                        <c n="V-MexicoCity03" cnt="0"/>
+                        <c n="V-MexicoCity04" cnt="0"/>
+                        <c n="V-MexicoCity05" cnt="0"/>
+                        <c n="V-MexicoCity06" cnt="0"/>
+                     </c>
+                  </c>
+                  <c n="1997ICE" cnt="32">
+                     <c n="aerial" cnt="3"/>
+                     <c n="aerial01" cnt="0"/>
+                     <c n="aerial02" cnt="0"/>
+                     <c n="aerial03" cnt="0"/>
+                     <c n="Alotau" cnt="1"/>
+                     <c n="boattrip" cnt="1"/>
+                     <c n="Building" cnt="1"/>
+                     <c n="funeral" cnt="1"/>
+                     <c n="Gusaweta" cnt="1"/>
+                     <c n="Houses-bwema-yam" cnt="1"/>
+                     <c n="Kaduwaga" cnt="1"/>
+                     <c n="Kaibola" cnt="1"/>
+                     <c n="Kiriwina_Island" cnt="2">
+                        <c n="Kiriwina_Island_01" cnt="0"/>
+                        <c n="Kiriwina_Island_02" cnt="0"/>
+                     </c>
+                     <c n="Koma_" cnt="0"/>
+                     <c n="Koma_Giwa" cnt="1"/>
+                     <c n="Kuvi_yams" cnt="1"/>
+                     <c n="Losuia" cnt="1"/>
+                     <c n="mask_festival_POM" cnt="2">
+                        <c n="mask_festival_POM_01" cnt="0"/>
+                        <c n="mask_festival_POM_02" cnt="0"/>
+                     </c>
+                     <c n="Omarakana" cnt="1"/>
+                     <c n="people" cnt="2">
+                        <c n="people_01" cnt="0"/>
+                        <c n="people_02" cnt="0"/>
+                     </c>
+                     <c n="remnants" cnt="1"/>
+                     <c n="sagali" cnt="2"/>
+                     <c n="sagali_and_mock_fight" cnt="2">
+                        <c n="sagali_and_mock_fight_01" cnt="0"/>
+                        <c n="sagali_and_mock_fight_02" cnt="0"/>
+                     </c>
+                     <c n="Sydney" cnt="1"/>
+                     <c n="Tauwema" cnt="2">
+                        <c n="Tauwema_01" cnt="0"/>
+                        <c n="Tauwema_02" cnt="0"/>
+                     </c>
+                     <c n="Vegetation" cnt="1"/>
+                     <c n="Wedding" cnt="1"/>
+                     <c n="Yuti_party" cnt="1"/>
+                  </c>
+                  <c n="1998ICE" cnt="32">
+                     <c n="Alotau" cnt="1"/>
+                     <c n="Boroko_POM" cnt="1"/>
+                     <c n="Buliwadi" cnt="1"/>
+                     <c n="canoes" cnt="2">
+                        <c n="canoes1" cnt="0"/>
+                        <c n="canoes2" cnt="0"/>
+                     </c>
+                     <c n="Domestic_terminal_POM" cnt="1"/>
+                     <c n="Ela_beach_POM" cnt="1"/>
+                     <c n="Freshwater" cnt="1"/>
+                     <c n="graves_or_Kaduwaga" cnt="1"/>
+                     <c n="Gusaweta" cnt="1"/>
+                     <c n="Hagita" cnt="2">
+                        <c n="Hagita1" cnt="0"/>
+                        <c n="Hagita2" cnt="0"/>
+                     </c>
+                     <c n="Hiri_Moale_POM" cnt="4">
+                        <c n="Hiri_Moale_POM_1" cnt="0"/>
+                        <c n="Hiri_Moale_POM_2" cnt="0"/>
+                        <c n="Hiri_Moale_POM_3" cnt="0"/>
+                        <c n="Hiri_Moale_POM_4" cnt="0"/>
+                     </c>
+                     <c n="houses_" cnt="0"/>
+                     <c n="houses_buildings" cnt="1"/>
+                     <c n="Kapopu_rock" cnt="1"/>
+                     <c n="Kiriwina" cnt="1"/>
+                     <c n="my_house" cnt="1"/>
+                     <c n="people" cnt="1"/>
+                     <c n="Port_moresby_rest" cnt="1"/>
+                     <c n="sculptures_" cnt="0"/>
+                     <c n="sculptures_art" cnt="1"/>
+                     <c n="Tauwema" cnt="1"/>
+                     <c n="Tukwauka" cnt="1"/>
+                     <c n="Tuyabwau" cnt="1"/>
+                     <c n="Vaseda" cnt="1"/>
+                     <c n="Vegetation" cnt="3">
+                        <c n="Vegetation_1" cnt="0"/>
+                        <c n="Vegetation_2" cnt="0"/>
+                        <c n="Vegetation_3" cnt="0"/>
+                     </c>
+                     <c n="yams" cnt="1"/>
+                     <c n="_Jackson_Airport_POM" cnt="1"/>
+                  </c>
+                  <c n="2003ICE" cnt="16">
+                     <c n="animals" cnt="1"/>
+                     <c n="Boroko_POM" cnt="1"/>
+                     <c n="bowls_" cnt="0"/>
+                     <c n="bowls_stuff" cnt="1"/>
+                     <c n="buildings" cnt="1"/>
+                     <c n="canoes_" cnt="0"/>
+                     <c n="canoes_floats" cnt="1"/>
+                     <c n="Gurney_Airport_Alotau" cnt="1"/>
+                     <c n="houses_bwema_liku" cnt="1"/>
+                     <c n="Muwa_Island" cnt="1"/>
+                     <c n="my_house" cnt="1"/>
+                     <c n="people" cnt="2">
+                        <c n="People_1" cnt="0"/>
+                        <c n="People_2" cnt="0"/>
+                     </c>
+                     <c n="Port_Moresby" cnt="1"/>
+                     <c n="Tauwema" cnt="1"/>
+                     <c n="Tuyabwau" cnt="1"/>
+                     <c n="vegetation" cnt="2"/>
+                  </c>
+                  <c n="family" cnt="4">
+                     <c n="try_out" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+            <c n="Interactional_Games" cnt="1"/>
+            <c n="Magic" cnt="1"/>
+            <c n="Masawa_-_bogeokwa_si_tuta_" cnt="2"/>
+            <c n="Mourning" cnt="2"/>
+            <c n="Myth" cnt="1"/>
+            <c n="Other_Rituals" cnt="4"/>
+            <c n="Parent_Child_Interaction" cnt="2"/>
+            <c n="Reasoning" cnt="5"/>
+            <c n="sessions" cnt="0">
+               <c n="Image_Archive" cnt="0">
+                  <c n="Scanned_slides" cnt="0">
+                     <c n="1996ICE" cnt="0">
+                        <c n="II-MelanesianSpearheadMeetingO" cnt="0"/>
+                     </c>
+                     <c n="1998ICE" cnt="0">
+                        <c n="sculptures_" cnt="0"/>
+                     </c>
+                  </c>
+               </c>
+            </c>
+            <c n="Songs" cnt="2">
+               <c n="Butula" cnt="0"/>
+               <c n="Gilikiti" cnt="0"/>
+               <c n="Gugwadi" cnt="1"/>
+               <c n="Milamala" cnt="1"/>
+               <c n="Tapwaroro" cnt="0"/>
+               <c n="Vilowosi" cnt="0"/>
+            </c>
+            <c n="Space" cnt="1"/>
+            <c n="Speeches" cnt="2"/>
+            <c n="Staged_Events" cnt="16">
+               <c n="Control_Group" cnt="6"/>
+            </c>
+            <c n="Stories" cnt="9">
+               <c n="Kukwanebu" cnt="8">
+                  <c n="Vivila_bwena_" cnt="0"/>
+               </c>
+               <c n="Sopa" cnt="1"/>
+            </c>
+            <c n="Trobriand_Islanders_ways_of_speaking" cnt="29">
+               <c n="Appendix_II" cnt="1"/>
+               <c n="Chapter_04" cnt="1"/>
+               <c n="Chapter_05" cnt="2"/>
+               <c n="Chapter_06" cnt="1"/>
+               <c n="Chapter_08" cnt="2">
+                  <c n="Subsection_8.2.3" cnt="1"/>
+                  <c n="Subsection_8.2.4" cnt="1"/>
+               </c>
+               <c n="Chapter_09" cnt="9">
+                  <c n="Subsection_9.2.2" cnt="1"/>
+                  <c n="Subsection_9.2.3" cnt="1"/>
+                  <c n="Subsection_9.2.4" cnt="1"/>
+                  <c n="Subsection_9.2.4.5" cnt="0"/>
+                  <c n="Subsection_9.2.5.3" cnt="0"/>
+                  <c n="Subsection_9.2.5.3_and_9.2.5.4" cnt="1"/>
+                  <c n="Subsection_9.2.5.5" cnt="0"/>
+                  <c n="Subsection_9.2.6" cnt="0"/>
+                  <c n="Subsection_9.2.6.1" cnt="0"/>
+                  <c n="Subsection_9.2.6.2" cnt="0"/>
+                  <c n="Subsection_9.2.6.4" cnt="0"/>
+                  <c n="Subsection_9.2.7" cnt="1"/>
+                  <c n="Subsection_9.2.7.1" cnt="2"/>
+                  <c n="Subsection_9.2.7.2" cnt="1"/>
+                  <c n="Subsection_9.2.7.4" cnt="1"/>
+               </c>
+               <c n="Chapter_10" cnt="3">
+                  <c n="Section_10.1" cnt="2"/>
+                  <c n="Section_10.2" cnt="1"/>
+               </c>
+               <c n="Chapter_8" cnt="0">
+                  <c n="Subsection_8.2.3" cnt="0"/>
+                  <c n="Subsection_8.2.4" cnt="0"/>
+               </c>
+               <c n="Chapter_9" cnt="0">
+                  <c n="Subsection_9.2.2" cnt="0"/>
+                  <c n="Subsection_9.2.3" cnt="0"/>
+                  <c n="Subsection_9.2.4" cnt="0"/>
+                  <c n="Subsection_9.2.4.5" cnt="0"/>
+                  <c n="Subsection_9.2.5.3" cnt="0"/>
+                  <c n="Subsection_9.2.6" cnt="0"/>
+                  <c n="Subsection_9.2.6.1" cnt="0"/>
+                  <c n="Subsection_9.2.6.2" cnt="0"/>
+                  <c n="Subsection_9.2.6.4" cnt="0"/>
+               </c>
+               <c n="high_quality" cnt="10">
+                  <c n="appendix_II" cnt="1"/>
+                  <c n="Chapter_05" cnt="2"/>
+                  <c n="Chapter_06" cnt="1"/>
+                  <c n="Chapter_09" cnt="3">
+                     <c n="Subsection_9.2.2" cnt="1"/>
+                     <c n="Subsection_9.2.4" cnt="1"/>
+                     <c n="Subsection_9.2.5.3" cnt="1"/>
+                     <c n="Subsection_9.2.6.4" cnt="0"/>
+                  </c>
+                  <c n="Chapter_10" cnt="3">
+                     <c n="Section_10.1" cnt="2"/>
+                     <c n="Section_10.2" cnt="1"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="sicoli" cnt="121">
+            <c n="Zapotec_and_Chatino_Survey" cnt="24">
+               <c n="Chatino" cnt="9">
+                  <c n="Amialtepec" cnt="1"/>
+                  <c n="Aurora_Zenzontepec" cnt="1"/>
+                  <c n="Cieneguilla" cnt="1"/>
+                  <c n="Nopala" cnt="1"/>
+                  <c n="Tataltepec" cnt="1"/>
+                  <c n="Yaitepec" cnt="1"/>
+                  <c n="Yolotepec" cnt="1"/>
+                  <c n="Zacatepec" cnt="2"/>
+               </c>
+               <c n="Zapotec" cnt="15">
+                  <c n="Abejones" cnt="1"/>
+                  <c n="Albarradas_Santa_Catarina" cnt="1"/>
+                  <c n="Aloapan" cnt="1"/>
+                  <c n="Amatl_n_San_Crist_bal" cnt="1"/>
+                  <c n="Coatlan_Santa_Mar_a" cnt="1"/>
+                  <c n="Elotepec" cnt="1"/>
+                  <c n="El_Alto_Antonino" cnt="1"/>
+                  <c n="El_Alto_Pedro" cnt="1"/>
+                  <c n="Lachichina" cnt="1"/>
+                  <c n="La_Ventosa" cnt="1">
+                     <c n="La_Ventosa" cnt="1"/>
+                  </c>
+                  <c n="Logueche_San_Francisco" cnt="1">
+                     <c n="Logueche" cnt="1"/>
+                  </c>
+                  <c n="Quiegolani" cnt="1"/>
+                  <c n="Sochiapan" cnt="1"/>
+                  <c n="South" cnt="0"/>
+                  <c n="Yareni" cnt="1"/>
+                  <c n="Yautepec" cnt="1"/>
+               </c>
+            </c>
+         </c>
+         <c n="sommer" cnt="2">
+            <c n="mbarrumbathama" cnt="1"/>
+            <c n="morrobolam" cnt="1"/>
+         </c>
+         <c n="sousa" cnt="0"/>
+         <c n="southasia" cnt="12">
+            <c n="Tamil" cnt="12">
+               <c n="Bhuvana_Narasimhan" cnt="12">
+                  <c n="BowPed" cnt="0"/>
+                  <c n="Bowped_Task" cnt="1">
+                     <c n="Adults" cnt="1"/>
+                  </c>
+                  <c n="Cut_Break_Task" cnt="11">
+                     <c n="Adults" cnt="11"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+         <c n="southeastasia" cnt="97">
+            <c n="old_unlinked_files_-_Bhuvana_Narasimhan" cnt="97"/>
+         </c>
+         <c n="staden" cnt="22"/>
+         <c n="stivers" cnt="80">
+            <c n="dyadic_conversations" cnt="15"/>
+            <c n="elicited" cnt="10"/>
+            <c n="multi-party_conversations" cnt="51"/>
+         </c>
+         <c n="terrill" cnt="125">
+            <c n="elicitations" cnt="40">
+               <c n="body" cnt="1"/>
+               <c n="conversation" cnt="3"/>
+               <c n="demonstratives" cnt="5"/>
+               <c n="frogstory" cnt="1"/>
+               <c n="man_and_tree" cnt="16"/>
+               <c n="music" cnt="3"/>
+               <c n="positionals" cnt="3"/>
+               <c n="shape_task" cnt="2"/>
+               <c n="space" cnt="2"/>
+               <c n="wordlist" cnt="4"/>
+            </c>
+            <c n="narratives" cnt="64">
+               <c n="Ale" cnt="15"/>
+               <c n="Baesen" cnt="8"/>
+               <c n="karumulun" cnt="12"/>
+               <c n="Laola" cnt="2"/>
+               <c n="Losiolen" cnt="11"/>
+               <c n="Mane" cnt="9"/>
+               <c n="Marulaon" cnt="6"/>
+               <c n="other" cnt="1"/>
+            </c>
+            <c n="Other_stuff" cnt="0"/>
+         </c>
+         <c n="tufvesson" cnt="0"/>
+         <c n="Verhaar" cnt="1"/>
+         <c n="verstraete" cnt="12">
+            <c n="mbarrumbathama" cnt="1"/>
+            <c n="morrobolam" cnt="1"/>
+            <c n="umpithamu" cnt="10"/>
+         </c>
+         <c n="vos" cnt="271">
+            <c n="Kata_Kolok" cnt="229">
+               <c n="Child_Signing" cnt="105">
+                  <c n="Child_Interaction" cnt="7">
+                     <c n="Dialogues" cnt="2"/>
+                     <c n="Free_play_" cnt="2"/>
+                     <c n="Free_play_conversation" cnt="3"/>
+                  </c>
+                  <c n="Deaf_school_project" cnt="16"/>
+                  <c n="Longitudinal" cnt="82">
+                     <c n="Ariana" cnt="16">
+                        <c n="26-30_months" cnt="0"/>
+                        <c n="2_0-2_5" cnt="10"/>
+                        <c n="2_6-2_11" cnt="6"/>
+                     </c>
+                     <c n="Deaf_children" cnt="23">
+                        <c n="Ariana" cnt="13">
+                           <c n="2_0-2_5" cnt="1"/>
+                           <c n="2_6-2_11" cnt="1"/>
+                           <c n="3_0-3_5" cnt="4"/>
+                           <c n="3_6-3_11" cnt="4"/>
+                           <c n="4_0-4_11" cnt="3"/>
+                        </c>
+                        <c n="Reswarnia" cnt="10">
+                           <c n="3_0-3_5" cnt="4"/>
+                           <c n="3_6-3_11" cnt="4"/>
+                           <c n="4_0-4_11" cnt="2"/>
+                        </c>
+                     </c>
+                     <c n="Hearing_children" cnt="10">
+                        <c n="Rasaturi_s_daughter" cnt="4">
+                           <c n="0_0-0_11" cnt="1"/>
+                           <c n="1_0-1_11" cnt="3"/>
+                        </c>
+                        <c n="Sanjarna" cnt="6">
+                           <c n="0_0-0_11" cnt="1"/>
+                           <c n="1_0-1_11" cnt="5"/>
+                        </c>
+                     </c>
+                     <c n="Rasaturi_s_daughter" cnt="1">
+                        <c n="0_0-0_5" cnt="1"/>
+                     </c>
+                     <c n="Reswarnia" cnt="27">
+                        <c n="24-30_months" cnt="7"/>
+                        <c n="2_0-2_5" cnt="6"/>
+                        <c n="2_6-2_11" cnt="11"/>
+                        <c n="3_0-3_5" cnt="3"/>
+                     </c>
+                     <c n="Sanjarna" cnt="5">
+                        <c n="0_0-0_11" cnt="4"/>
+                        <c n="1_0-1_6" cnt="1"/>
+                        <c n="2-6_months" cnt="0"/>
+                     </c>
+                  </c>
+               </c>
+               <c n="Deaf_and_hearing_interaction" cnt="16"/>
+               <c n="Elicited" cnt="14">
+                  <c n="Man_" cnt="3"/>
+                  <c n="Man_Tree" cnt="2"/>
+                  <c n="Mouse_stories" cnt="2"/>
+                  <c n="Space_Number" cnt="7"/>
+               </c>
+               <c n="Elicited_" cnt="40">
+                  <c n="Canary_Row" cnt="11"/>
+                  <c n="Language_of_Perception" cnt="13"/>
+                  <c n="Mouse_stories" cnt="13"/>
+                  <c n="Still_Images" cnt="3"/>
+               </c>
+               <c n="Spontaneous_signing" cnt="10">
+                  <c n="Monologues" cnt="10"/>
+               </c>
+               <c n="Stimulus-based_signing" cnt="5">
+                  <c n="Canary_Row" cnt="1"/>
+                  <c n="Reciprocals" cnt="4"/>
+               </c>
+               <c n="_Semi-_Spontaneous" cnt="39">
+                  <c n="Balinese_gesture_" cnt="3"/>
+                  <c n="Dialogues" cnt="13"/>
+                  <c n="Monologues" cnt="13"/>
+                  <c n="Multi-Party_conversation" cnt="10"/>
+               </c>
+            </c>
+         </c>
+         <c n="wegener" cnt="184">
+            <c n="Elicited" cnt="48">
+               <c n="Cut_and_break" cnt="5"/>
+               <c n="Genealogy" cnt="2"/>
+               <c n="Man_and_tree" cnt="3"/>
+               <c n="Mono_Alu" cnt="0"/>
+               <c n="Put_and_Take" cnt="3"/>
+               <c n="Questionnaire" cnt="4"/>
+               <c n="Reciprocals" cnt="6"/>
+               <c n="Staged_events" cnt="2"/>
+               <c n="Stress_and_Intonation" cnt="2"/>
+               <c n="Wordlists" cnt="21">
+                  <c n="Other" cnt="7"/>
+                  <c n="Own" cnt="7"/>
+                  <c n="Swadesh" cnt="7"/>
+               </c>
+            </c>
+            <c n="Natural" cnt="94">
+               <c n="Conversation" cnt="14"/>
+               <c n="Dances" cnt="2"/>
+               <c n="Historical" cnt="25">
+                  <c n="Church" cnt="1"/>
+                  <c n="Old_times" cnt="8"/>
+                  <c n="Volcano" cnt="7"/>
+                  <c n="WW_II" cnt="9"/>
+               </c>
+               <c n="Meeting" cnt="3"/>
+               <c n="Narrative" cnt="34">
+                  <c n="Custom_Stories" cnt="27"/>
+                  <c n="Other" cnt="1"/>
+                  <c n="Personal" cnt="6"/>
+               </c>
+               <c n="Procedural" cnt="11">
+                  <c n="Fishing" cnt="4"/>
+                  <c n="House" cnt="3"/>
+                  <c n="Mat" cnt="1"/>
+                  <c n="Pudding" cnt="2"/>
+                  <c n="String" cnt="1"/>
+               </c>
+               <c n="Ritual" cnt="2">
+                  <c n="Church_service" cnt="2"/>
+               </c>
+               <c n="Songs" cnt="2"/>
+               <c n="Stringgame" cnt="1"/>
+            </c>
+            <c n="Wegener" cnt="1">
+               <c n="Elicited" cnt="1"/>
+            </c>
+         </c>
+         <c n="west" cnt="2">
+            <c n="mbarrumbathama" cnt="1"/>
+            <c n="morrobolam" cnt="1"/>
+         </c>
+      </c>
+      <c n="LeidenArchives" cnt="228">
+         <c n="Dengbej" cnt="22"/>
+         <c n="Meso-America" cnt="79">
+            <c n="Chocho" cnt="20">
+               <c n="Chocho_Nativitas" cnt="1">
+                  <c n="Veerman" cnt="1"/>
+               </c>
+               <c n="Chocho_Ocotlan" cnt="15">
+                  <c n="Veerman" cnt="15"/>
+               </c>
+               <c n="Chocho_Teotongo" cnt="1">
+                  <c n="Veerman" cnt="1"/>
+               </c>
+               <c n="Chocho_Tulancingo" cnt="3">
+                  <c n="Veerman" cnt="3"/>
+               </c>
+            </c>
+            <c n="Popoloca" cnt="45">
+               <c n="Veerman" cnt="45"/>
+            </c>
+         </c>
+         <c n="North_America" cnt="25">
+            <c n="Quinault" cnt="19">
+               <c n="Rowicka_-_audio" cnt="19"/>
+            </c>
+            <c n="Tahltan" cnt="1">
+               <c n="Nater" cnt="1"/>
+            </c>
+         </c>
+         <c n="South_America" cnt="99">
+            <c n="Katwena" cnt="38">
+               <c n="Roland_Hemmauer" cnt="38"/>
+            </c>
+            <c n="Mawayana" cnt="35">
+               <c n="Dr._Eithne_Carlin" cnt="35"/>
+            </c>
+            <c n="Wayana" cnt="13">
+               <c n="Dr._Eithne_Carlin" cnt="13"/>
+            </c>
+         </c>
+      </c>
+      <c n="Lexo_Block_Registry" cnt="4"/>
+      <c n="Library" cnt="2"/>
+      <c n="nbl_data" cnt="2">
+         <c n="Idiom1" cnt="1"/>
+      </c>
+      <c n="NCGN" cnt="2"/>
+      <c n="NGT" cnt="698">
+         <c n="Corpus_Management" cnt="3">
+            <c n="Elicitation_material" cnt="1"/>
+         </c>
+         <c n="Data_types" cnt="369">
+            <c n="Canary_Row" cnt="27"/>
+            <c n="Deaf_issues" cnt="41"/>
+            <c n="Fable_stories" cnt="41"/>
+            <c n="Free_conversation" cnt="42"/>
+            <c n="Frog_Story" cnt="31"/>
+            <c n="Introduction" cnt="35"/>
+            <c n="Life_event" cnt="36"/>
+            <c n="Picture_stories" cnt="35"/>
+            <c n="Sign_language_issues" cnt="31"/>
+            <c n="Spot_the_difference" cnt="23"/>
+            <c n="TV_clips" cnt="27"/>
+         </c>
+         <c n="Elicitation_material" cnt="0"/>
+         <c n="NGT_20090211_0013" cnt="0">
+            <c n="Corpus_Management" cnt="0">
+               <c n="Elicitation_material" cnt="0"/>
+            </c>
+            <c n="Data_types" cnt="0">
+               <c n="Canary_Row" cnt="0"/>
+               <c n="Deaf_issues" cnt="0"/>
+               <c n="Fable_stories" cnt="0"/>
+               <c n="Free_conversation" cnt="0"/>
+               <c n="Frog_Story" cnt="0"/>
+               <c n="Introduction" cnt="0"/>
+               <c n="Life_event" cnt="0"/>
+               <c n="Picture_stories" cnt="0"/>
+               <c n="Sign_language_issues" cnt="0"/>
+               <c n="Spot_the_difference" cnt="0"/>
+               <c n="TV_clips" cnt="0"/>
+            </c>
+            <c n="Elicitation_material" cnt="0"/>
+            <c n="Public" cnt="0"/>
+            <c n="Recordings" cnt="0">
+               <c n="S001_S002" cnt="0"/>
+               <c n="S004_S003" cnt="0"/>
+               <c n="S006_S005" cnt="0"/>
+               <c n="S008_S007" cnt="0"/>
+               <c n="S010_S009" cnt="0"/>
+               <c n="S011_S012" cnt="0"/>
+               <c n="S013_S014" cnt="0"/>
+               <c n="S015_S016" cnt="0"/>
+               <c n="S017_S018" cnt="0"/>
+               <c n="S019_S020" cnt="0"/>
+               <c n="S021_S022" cnt="0"/>
+               <c n="S023_S024" cnt="0"/>
+               <c n="S025_S026" cnt="0"/>
+               <c n="S027_S028" cnt="0"/>
+               <c n="S029_S030" cnt="0"/>
+               <c n="S031_S032" cnt="0"/>
+               <c n="S034_S033" cnt="0"/>
+               <c n="S035_S036" cnt="0"/>
+               <c n="S037_S038" cnt="0"/>
+               <c n="S039_S040" cnt="0"/>
+               <c n="S041_S042" cnt="0"/>
+               <c n="S043_S044" cnt="0"/>
+               <c n="S045_S046" cnt="0"/>
+               <c n="S048_S047" cnt="0"/>
+               <c n="S049_S050" cnt="0"/>
+               <c n="S051_S052" cnt="0"/>
+               <c n="S053_S054" cnt="0"/>
+               <c n="S055_S056" cnt="0"/>
+               <c n="S057_S058" cnt="0"/>
+               <c n="S059_S060" cnt="0"/>
+               <c n="S061_S062" cnt="0"/>
+               <c n="S063_S064" cnt="0"/>
+               <c n="S065_S066" cnt="0"/>
+               <c n="S067_S068" cnt="0"/>
+               <c n="S069_S070" cnt="0"/>
+               <c n="S071_S072" cnt="0"/>
+               <c n="S073_S074" cnt="0"/>
+               <c n="S075_S076" cnt="0"/>
+               <c n="S077_S078" cnt="0"/>
+               <c n="S079_S080" cnt="0"/>
+               <c n="S081_S082" cnt="0"/>
+               <c n="S083_S084" cnt="0"/>
+               <c n="S085_S086" cnt="0"/>
+               <c n="S087_S088" cnt="0"/>
+               <c n="S089_S090" cnt="0"/>
+               <c n="S091_S092" cnt="0"/>
+            </c>
+            <c n="Regions" cnt="0">
+               <c n="Amsterdam" cnt="0">
+                  <c n="Canary_Row" cnt="0"/>
+                  <c n="Deaf_issues" cnt="0"/>
+                  <c n="Fable_stories" cnt="0"/>
+                  <c n="Free_conversation" cnt="0"/>
+                  <c n="Frog_Story" cnt="0"/>
+                  <c n="Introduction" cnt="0"/>
+                  <c n="Life_event" cnt="0"/>
+                  <c n="Picture_stories" cnt="0"/>
+                  <c n="Sign_language_issues" cnt="0"/>
+                  <c n="Spot_the_difference" cnt="0"/>
+                  <c n="TV_clips" cnt="0"/>
+               </c>
+               <c n="Groningen" cnt="0">
+                  <c n="Canary_Row" cnt="0"/>
+                  <c n="Deaf_issues" cnt="0"/>
+                  <c n="Fable_stories" cnt="0"/>
+                  <c n="Free_conversation" cnt="0"/>
+                  <c n="Frog_Story" cnt="0"/>
+                  <c n="Introduction" cnt="0"/>
+                  <c n="Life_event" cnt="0"/>
+                  <c n="Picture_stories" cnt="0"/>
+                  <c n="Sign_language_issues" cnt="0"/>
+                  <c n="Spot_the_difference" cnt="0"/>
+                  <c n="TV_clips" cnt="0"/>
+               </c>
+               <c n="Other" cnt="0">
+                  <c n="Canary_Row" cnt="0"/>
+                  <c n="Deaf_issues" cnt="0"/>
+                  <c n="Fable_stories" cnt="0"/>
+                  <c n="Frog_Story" cnt="0"/>
+                  <c n="Introduction" cnt="0"/>
+                  <c n="Life_event" cnt="0"/>
+                  <c n="Picture_stories" cnt="0"/>
+                  <c n="Sign_language_issues" cnt="0"/>
+                  <c n="Spot_the_difference" cnt="0"/>
+                  <c n="TV_clips" cnt="0"/>
+               </c>
+               <c n="St._Michielsgestel" cnt="0">
+                  <c n="Canary_Row" cnt="0"/>
+                  <c n="Deaf_issues" cnt="0"/>
+                  <c n="Fable_stories" cnt="0"/>
+                  <c n="Free_conversation" cnt="0"/>
+                  <c n="Frog_Story" cnt="0"/>
+                  <c n="Introduction" cnt="0"/>
+                  <c n="Life_event" cnt="0"/>
+                  <c n="Picture_stories" cnt="0"/>
+                  <c n="Spot_the_difference" cnt="0"/>
+                  <c n="TV_clips" cnt="0"/>
+               </c>
+               <c n="Voorburg" cnt="0">
+                  <c n="Canary_Row" cnt="0"/>
+                  <c n="Deaf_issues" cnt="0"/>
+                  <c n="Fable_stories" cnt="0"/>
+                  <c n="Free_conversation" cnt="0"/>
+                  <c n="Frog_Story" cnt="0"/>
+                  <c n="Introduction" cnt="0"/>
+                  <c n="Life_event" cnt="0"/>
+                  <c n="Picture_stories" cnt="0"/>
+                  <c n="Sign_language_issues" cnt="0"/>
+                  <c n="Spot_the_difference" cnt="0"/>
+                  <c n="TV_clips" cnt="0"/>
+               </c>
+            </c>
+            <c n="TMP" cnt="0">
+               <c n="Elicitation_material" cnt="0"/>
+            </c>
+         </c>
+         <c n="Public" cnt="12"/>
+         <c n="Recordings" cnt="1">
+            <c n="S001_S002" cnt="0"/>
+            <c n="S004_S003" cnt="0"/>
+            <c n="S006_S005" cnt="0"/>
+            <c n="S008_S007" cnt="0"/>
+            <c n="S010_S009" cnt="0"/>
+            <c n="S011_S012" cnt="0"/>
+            <c n="S013_S014" cnt="0"/>
+            <c n="S015_S016" cnt="0"/>
+            <c n="S017_S018" cnt="0"/>
+            <c n="S019_S020" cnt="0"/>
+            <c n="S021_S022" cnt="0"/>
+            <c n="S023_S024" cnt="0"/>
+            <c n="S025_S026" cnt="0"/>
+            <c n="S027_S028" cnt="0"/>
+            <c n="S029_S030" cnt="0"/>
+            <c n="S031_S032" cnt="0"/>
+            <c n="S034_S033" cnt="0"/>
+            <c n="S035_S036" cnt="0"/>
+            <c n="S037_S038" cnt="0"/>
+            <c n="S039_S040" cnt="0"/>
+            <c n="S041_S042" cnt="0"/>
+            <c n="S043_S044" cnt="0"/>
+            <c n="S045_S046" cnt="0"/>
+            <c n="S048_S047" cnt="0"/>
+            <c n="S049_S050" cnt="0"/>
+            <c n="S051_S052" cnt="0"/>
+            <c n="S053_S054" cnt="0"/>
+            <c n="S055_S056" cnt="0"/>
+            <c n="S057_S058" cnt="0"/>
+            <c n="S059_S060" cnt="0"/>
+            <c n="S061_S062" cnt="0"/>
+            <c n="S063_S064" cnt="0"/>
+            <c n="S065_S066" cnt="0"/>
+            <c n="S067_S068" cnt="0"/>
+            <c n="S069_S070" cnt="0"/>
+            <c n="S071_S072" cnt="0"/>
+            <c n="S073_S074" cnt="0"/>
+            <c n="S075_S076" cnt="0"/>
+            <c n="S077_S078" cnt="0"/>
+            <c n="S079_S080" cnt="0"/>
+            <c n="S081_S082" cnt="0"/>
+            <c n="S083_S084" cnt="0"/>
+            <c n="S085_S086" cnt="1"/>
+            <c n="S087_S088" cnt="0"/>
+            <c n="S089_S090" cnt="0"/>
+            <c n="S091_S092" cnt="0"/>
+         </c>
+         <c n="Regions" cnt="177">
+            <c n="Amsterdam" cnt="16">
+               <c n="Canary_Row" cnt="4"/>
+               <c n="Deaf_issues" cnt="1"/>
+               <c n="Fable_stories" cnt="0"/>
+               <c n="Free_conversation" cnt="0"/>
+               <c n="Frog_Story" cnt="0"/>
+               <c n="Introduction" cnt="0"/>
+               <c n="Life_event" cnt="0"/>
+               <c n="Picture_stories" cnt="0"/>
+               <c n="Sign_language_issues" cnt="0"/>
+               <c n="Spot_the_difference" cnt="4"/>
+               <c n="TV_clips" cnt="7"/>
+            </c>
+            <c n="Groningen" cnt="0">
+               <c n="Canary_Row" cnt="0"/>
+               <c n="Deaf_issues" cnt="0"/>
+               <c n="Fable_stories" cnt="0"/>
+               <c n="Free_conversation" cnt="0"/>
+               <c n="Frog_Story" cnt="0"/>
+               <c n="Introduction" cnt="0"/>
+               <c n="Life_event" cnt="0"/>
+               <c n="Picture_stories" cnt="0"/>
+               <c n="Sign_language_issues" cnt="0"/>
+               <c n="Spot_the_difference" cnt="0"/>
+               <c n="TV_clips" cnt="0"/>
+            </c>
+            <c n="Other" cnt="50">
+               <c n="Canary_Row" cnt="5"/>
+               <c n="Deaf_issues" cnt="6"/>
+               <c n="Fable_stories" cnt="4"/>
+               <c n="Free_conversation" cnt="5"/>
+               <c n="Frog_Story" cnt="3"/>
+               <c n="Introduction" cnt="3"/>
+               <c n="Life_event" cnt="3"/>
+               <c n="Picture_stories" cnt="3"/>
+               <c n="Sign_language_issues" cnt="3"/>
+               <c n="Spot_the_difference" cnt="7"/>
+               <c n="TV_clips" cnt="8"/>
+            </c>
+            <c n="Rotterdam" cnt="12">
+               <c n="Canary_Row" cnt="2"/>
+               <c n="Deaf_issues" cnt="1"/>
+               <c n="Fable_stories" cnt="1"/>
+               <c n="Frog_Story" cnt="1"/>
+               <c n="Introduction" cnt="1"/>
+               <c n="Life_event" cnt="1"/>
+               <c n="Picture_stories" cnt="1"/>
+               <c n="Sign_language_issues" cnt="1"/>
+               <c n="Spot_the_difference" cnt="1"/>
+               <c n="TV_clips" cnt="2"/>
+            </c>
+            <c n="St._Michielsgestel" cnt="10">
+               <c n="Canary_Row" cnt="1"/>
+               <c n="Deaf_issues" cnt="1"/>
+               <c n="Fable_stories" cnt="1"/>
+               <c n="Free_conversation" cnt="0"/>
+               <c n="Frog_Story" cnt="1"/>
+               <c n="Introduction" cnt="1"/>
+               <c n="Life_event" cnt="1"/>
+               <c n="Picture_stories" cnt="1"/>
+               <c n="Sign_language_issues" cnt="1"/>
+               <c n="Spot_the_difference" cnt="1"/>
+               <c n="TV_clips" cnt="1"/>
+            </c>
+            <c n="Voorburg" cnt="89">
+               <c n="Canary_Row" cnt="7"/>
+               <c n="Deaf_issues" cnt="10"/>
+               <c n="Fable_stories" cnt="8"/>
+               <c n="Free_conversation" cnt="13"/>
+               <c n="Frog_Story" cnt="7"/>
+               <c n="Introduction" cnt="7"/>
+               <c n="Life_event" cnt="7"/>
+               <c n="Picture_stories" cnt="7"/>
+               <c n="Sign_language_issues" cnt="7"/>
+               <c n="Spot_the_difference" cnt="7"/>
+               <c n="TV_clips" cnt="9"/>
+            </c>
+         </c>
+         <c n="TMP" cnt="0">
+            <c n="Elicitation_material" cnt="0"/>
+         </c>
+      </c>
+      <c n="olac" cnt="51574">
+         <c n="OLAC" cnt="51574">
+            <c n="Aboriginal_Studies_Electronic_Data_Archive__ASEDA_" cnt="156"/>
+            <c n="Academia_Sinica_Balanced_Corpus_of_Modern_Chinese" cnt="4"/>
+            <c n="Academia_Sinica_Formosan_Language_Archive" cnt="5"/>
+            <c n="Academia_Sinica_Tagged_Corpus_of_Early_Mandarin_Chinese" cnt="4"/>
+            <c n="African_Language_Materials_Archive" cnt="3"/>
+            <c n="Alaska_Native_Language_Center_Archive" cnt="2"/>
+            <c n="Archive_of_the_Indigenous_Languages_of_Latin_America" cnt="2"/>
+            <c n="ATILF_Resources" cnt="5"/>
+            <c n="Audio_Archive_of_Linguistic_Fieldwork" cnt="122"/>
+            <c n="A_Digital_Archive_of_Research_Papers_in_Computational_Linguistics"
+               cnt="2272"/>
+            <c n="Berlin_Brandenburgische_Akademie_der_Wissenschaften" cnt="2"/>
+            <c n="Boiste" cnt="2"/>
+            <c n="Centre_de_Ressources_pour_la_Description_de_l_Oral__CRDO_" cnt="1"/>
+            <c n="Charles_University_Prague" cnt="4"/>
+            <c n="CHILDES_Data_repository" cnt="34"/>
+            <c n="CNRTL" cnt="2"/>
+            <c n="Comparative_Corpus_of_Spoken_Portuguese" cnt="2"/>
+            <c n="CRDO_Archive" cnt="19"/>
+            <c n="DANS_EASY_Archive" cnt="3"/>
+            <c n="Ethnologue__Languages_of_the_World" cnt="13771"/>
+            <c n="European_Language_Resources_Association" cnt="30"/>
+            <c n="Graduate_Institute_of_Applied_Linguistics_Library" cnt="8544"/>
+            <c n="IULA_UPF_OAI_Archive" cnt="1"/>
+            <c n="Magoria_Books__Carib_and_Romani_Archive" cnt="2"/>
+            <c n="Multimodal_Learning_and_teaching_Corpora_Exchange" cnt="3"/>
+            <c n="ODIN___The_Online_Database_of_Interlinear_Text" cnt="699"/>
+            <c n="Pacific_And_Regional_Archive_for_Digital_Sources_in_Endangered_Cultures__PARADISEC_"
+               cnt="435"/>
+            <c n="Perseus_Digital_Library" cnt="447"/>
+            <c n="Rosetta_Project_1000_Language_Archive" cnt="1353"/>
+            <c n="ScholarSpace_at_University_of_Hawaii_at_Manoa" cnt="8"/>
+            <c n="SIL_Language_and_Culture_Archives" cnt="8454"/>
+            <c n="Surrey_Morphology_Group_Databases" cnt="121"/>
+            <c n="Survey_for_California_and_Other_Indian_Languages" cnt="532"/>
+            <c n="TALKBANK_Data_repository" cnt="26"/>
+            <c n="The_LDC_Corpus_Catalog" cnt="58"/>
+            <c n="The_LINGUIST_List_Language_Resources" cnt="2948"/>
+            <c n="The_Natural_Language_Software_Registry" cnt="19"/>
+            <c n="The_Typological_Database_Project" cnt="198"/>
+            <c n="U_Bielefeld_Language_Archive" cnt="4"/>
+            <c n="WALS_Online" cnt="3921"/>
+            <c n="WALS_RefDB" cnt="7354"/>
+         </c>
+      </c>
+      <c n="silang_data" cnt="694">
+         <c n="cdevos" cnt="0"/>
+         <c n="contact_signing" cnt="8"/>
+         <c n="typology" cnt="26">
+            <c n="colour" cnt="2"/>
+            <c n="interrogatives" cnt="2"/>
+            <c n="negatives" cnt="2"/>
+            <c n="number" cnt="4"/>
+            <c n="possession" cnt="14">
+               <c n="Brazil" cnt="2"/>
+               <c n="Germany" cnt="5"/>
+               <c n="Venezuela" cnt="7"/>
+            </c>
+            <c n="sensory_perception" cnt="2"/>
+         </c>
+         <c n="urban_sign_languages" cnt="551">
+            <c n="Brazil" cnt="28">
+               <c n="Texts" cnt="28"/>
+            </c>
+            <c n="China" cnt="142">
+               <c n="Texts" cnt="142"/>
+            </c>
+            <c n="Germany" cnt="1">
+               <c n="Texts" cnt="1"/>
+            </c>
+            <c n="Hong_Kong" cnt="26">
+               <c n="Texts" cnt="26"/>
+            </c>
+            <c n="India" cnt="20">
+               <c n="Teaching" cnt="20"/>
+            </c>
+            <c n="Indonesia" cnt="77">
+               <c n="Jakarta" cnt="59">
+                  <c n="Texts" cnt="59"/>
+               </c>
+               <c n="Makassar" cnt="18">
+                  <c n="Texts" cnt="18"/>
+               </c>
+            </c>
+            <c n="Jordan" cnt="17">
+               <c n="Texts" cnt="17"/>
+            </c>
+            <c n="Korea" cnt="68">
+               <c n="Texts" cnt="68"/>
+            </c>
+            <c n="Netherlands" cnt="9">
+               <c n="Texts" cnt="9"/>
+            </c>
+            <c n="Russia" cnt="163">
+               <c n="Texts" cnt="163"/>
+            </c>
+         </c>
+         <c n="village_sign_languages" cnt="59">
+            <c n="Bali" cnt="59">
+               <c n="Marsaja" cnt="59">
+                  <c n="Texts" cnt="59"/>
+               </c>
+            </c>
+         </c>
+      </c>
+      <c n="suca_data" cnt="1"/>
+      <c n="VIDI_projects" cnt="1"/>
+      <c n="visibase" cnt="1445">
+         <c n="amsterdam" cnt="43"/>
+         <c n="nijmegen" cnt="1401">
+            <c n="Commercially_available" cnt="0">
+               <c n="001" cnt="0"/>
+               <c n="002" cnt="0"/>
+               <c n="003" cnt="0"/>
+               <c n="004" cnt="0"/>
+               <c n="005" cnt="0"/>
+               <c n="027" cnt="0"/>
+               <c n="053" cnt="0"/>
+               <c n="070" cnt="0"/>
+               <c n="071" cnt="0"/>
+               <c n="072" cnt="0"/>
+               <c n="076" cnt="0"/>
+               <c n="077" cnt="0"/>
+               <c n="078_various" cnt="0"/>
+               <c n="252" cnt="0"/>
+            </c>
+            <c n="ECHO" cnt="0">
+               <c n="049" cnt="0"/>
+               <c n="050" cnt="0"/>
+               <c n="051" cnt="0"/>
+               <c n="226" cnt="0"/>
+               <c n="227" cnt="0"/>
+               <c n="228" cnt="0"/>
+               <c n="229" cnt="0"/>
+               <c n="230" cnt="0"/>
+               <c n="231" cnt="0"/>
+               <c n="232" cnt="0"/>
+               <c n="233" cnt="0"/>
+               <c n="234" cnt="0"/>
+               <c n="235" cnt="0"/>
+               <c n="236" cnt="0"/>
+               <c n="237" cnt="0"/>
+               <c n="238" cnt="0"/>
+               <c n="239" cnt="0"/>
+               <c n="240" cnt="0"/>
+               <c n="241" cnt="0"/>
+               <c n="246" cnt="0"/>
+               <c n="247" cnt="0"/>
+               <c n="248" cnt="0"/>
+               <c n="251" cnt="0"/>
+            </c>
+            <c n="HvU_Tolkopleiding" cnt="0">
+               <c n="HvU_materiaal" cnt="0">
+                  <c n="006" cnt="0"/>
+                  <c n="007" cnt="0"/>
+                  <c n="008" cnt="0"/>
+                  <c n="009" cnt="0"/>
+                  <c n="010" cnt="0"/>
+                  <c n="011" cnt="0"/>
+                  <c n="012" cnt="0"/>
+                  <c n="013" cnt="0"/>
+                  <c n="014" cnt="0"/>
+                  <c n="015" cnt="0"/>
+                  <c n="016" cnt="0"/>
+                  <c n="017" cnt="0"/>
+                  <c n="018" cnt="0"/>
+                  <c n="019" cnt="0"/>
+                  <c n="021" cnt="0"/>
+                  <c n="022" cnt="0"/>
+                  <c n="028" cnt="0"/>
+                  <c n="029" cnt="0"/>
+                  <c n="030" cnt="0"/>
+                  <c n="031" cnt="0"/>
+                  <c n="032" cnt="0"/>
+                  <c n="033" cnt="0"/>
+                  <c n="034" cnt="0"/>
+               </c>
+               <c n="Onno" cnt="0">
+                  <c n="065" cnt="0"/>
+                  <c n="066" cnt="0"/>
+                  <c n="067" cnt="0"/>
+                  <c n="068" cnt="0"/>
+                  <c n="069" cnt="0"/>
+                  <c n="257" cnt="0"/>
+                  <c n="258" cnt="0"/>
+                  <c n="286_HDV_tests_Onno_Future_Store" cnt="0"/>
+               </c>
+            </c>
+            <c n="Leiden" cnt="0">
+               <c n="035" cnt="0"/>
+               <c n="036" cnt="0"/>
+               <c n="037" cnt="0"/>
+               <c n="038" cnt="0"/>
+               <c n="039" cnt="0"/>
+               <c n="040" cnt="0"/>
+               <c n="041" cnt="0"/>
+               <c n="042" cnt="0"/>
+               <c n="043" cnt="0"/>
+               <c n="044" cnt="0"/>
+            </c>
+            <c n="Nijmegen" cnt="1172">
+               <c n="All_tapes" cnt="31">
+                  <c n="045" cnt="3"/>
+                  <c n="073" cnt="4"/>
+                  <c n="075_TV-stukjes_8" cnt="3"/>
+                  <c n="078_various" cnt="3"/>
+                  <c n="249" cnt="2"/>
+                  <c n="255" cnt="12"/>
+                  <c n="279" cnt="1"/>
+                  <c n="280" cnt="1"/>
+                  <c n="281" cnt="1"/>
+                  <c n="282" cnt="1"/>
+               </c>
+               <c n="Commercially_available" cnt="105">
+                  <c n="001" cnt="8"/>
+                  <c n="002" cnt="15"/>
+                  <c n="003" cnt="3"/>
+                  <c n="004" cnt="24"/>
+                  <c n="005" cnt="14"/>
+                  <c n="027" cnt="6"/>
+                  <c n="053_NGT_in_Beeld" cnt="12"/>
+                  <c n="070_NEDO_Video_Nieuws_1996" cnt="6"/>
+                  <c n="071_Dovenschap_Videokrant_1997-1998" cnt="6"/>
+                  <c n="072" cnt="5"/>
+                  <c n="076" cnt="1"/>
+                  <c n="077_Elicitation_materials_MPI" cnt="3"/>
+                  <c n="252" cnt="1"/>
+               </c>
+               <c n="Leiden" cnt="49">
+                  <c n="035_SignPhon" cnt="6"/>
+                  <c n="036_SignPhon" cnt="6"/>
+                  <c n="037_SignPhon" cnt="4"/>
+                  <c n="038_SignPhon" cnt="2"/>
+                  <c n="039_SignPhon" cnt="5"/>
+                  <c n="040_SignPhon" cnt="4"/>
+                  <c n="041_SignPhon" cnt="11"/>
+                  <c n="042_SignPhon" cnt="2"/>
+                  <c n="043_SignPhon" cnt="7"/>
+                  <c n="044_SignPhon" cnt="2"/>
+               </c>
+               <c n="Nijmegen" cnt="128">
+                  <c n="ECHO" cnt="41">
+                     <c n="049" cnt="2"/>
+                     <c n="050" cnt="1"/>
+                     <c n="051" cnt="3"/>
+                     <c n="226" cnt="1"/>
+                     <c n="227" cnt="1"/>
+                     <c n="228" cnt="1"/>
+                     <c n="229" cnt="1"/>
+                     <c n="230" cnt="2"/>
+                     <c n="231" cnt="1"/>
+                     <c n="232" cnt="1"/>
+                     <c n="233" cnt="2"/>
+                     <c n="234" cnt="1"/>
+                     <c n="235" cnt="2"/>
+                     <c n="236" cnt="1"/>
+                     <c n="237" cnt="2"/>
+                     <c n="238" cnt="1"/>
+                     <c n="239" cnt="1"/>
+                     <c n="240" cnt="1"/>
+                     <c n="241" cnt="1"/>
+                     <c n="246" cnt="7"/>
+                     <c n="247" cnt="2"/>
+                     <c n="248" cnt="4"/>
+                     <c n="251" cnt="2"/>
+                  </c>
+                  <c n="Lesmateriaal" cnt="4">
+                     <c n="249_lesmateriaal" cnt="2"/>
+                     <c n="253" cnt="2"/>
+                  </c>
+                  <c n="Onno_Crasborn" cnt="6">
+                     <c n="201" cnt="1"/>
+                     <c n="256_Gebarenmars" cnt="2"/>
+                     <c n="262_illustraties_diss._Onno" cnt="1"/>
+                     <c n="285_JR_test_glove" cnt="1"/>
+                  </c>
+                  <c n="Prosodie" cnt="77">
+                     <c n="202" cnt="3"/>
+                     <c n="203" cnt="1"/>
+                     <c n="204" cnt="1"/>
+                     <c n="205_GM_WE_TU" cnt="3"/>
+                     <c n="206" cnt="1"/>
+                     <c n="207" cnt="1"/>
+                     <c n="208" cnt="1"/>
+                     <c n="209" cnt="2"/>
+                     <c n="210" cnt="2"/>
+                     <c n="211" cnt="3"/>
+                     <c n="212" cnt="1"/>
+                     <c n="213" cnt="2"/>
+                     <c n="214" cnt="2"/>
+                     <c n="215" cnt="1"/>
+                     <c n="216" cnt="1"/>
+                     <c n="217" cnt="1"/>
+                     <c n="218" cnt="1"/>
+                     <c n="219" cnt="3"/>
+                     <c n="220" cnt="2"/>
+                     <c n="221" cnt="3"/>
+                     <c n="222" cnt="2"/>
+                     <c n="223" cnt="1"/>
+                     <c n="224" cnt="1"/>
+                     <c n="225" cnt="3"/>
+                     <c n="242" cnt="1"/>
+                     <c n="243" cnt="1"/>
+                     <c n="244" cnt="2"/>
+                     <c n="245" cnt="2"/>
+                     <c n="250" cnt="1"/>
+                     <c n="259" cnt="1"/>
+                     <c n="260" cnt="1"/>
+                     <c n="261" cnt="1"/>
+                     <c n="263" cnt="1"/>
+                     <c n="264" cnt="1"/>
+                     <c n="265" cnt="2"/>
+                     <c n="266" cnt="1"/>
+                     <c n="267_270_WE_focus" cnt="4"/>
+                     <c n="271-277_JR_brows" cnt="10"/>
+                     <c n="283" cnt="1"/>
+                     <c n="284" cnt="1"/>
+                     <c n="287" cnt="2"/>
+                     <c n="288" cnt="1"/>
+                     <c n="289" cnt="1"/>
+                  </c>
+               </c>
+               <c n="Onno_tolkopleiding_2001-2005" cnt="681">
+                  <c n="HvU_materiaal" cnt="608">
+                     <c n="006" cnt="17"/>
+                     <c n="007" cnt="43"/>
+                     <c n="008" cnt="39"/>
+                     <c n="009" cnt="20"/>
+                     <c n="010" cnt="24"/>
+                     <c n="011" cnt="37"/>
+                     <c n="012" cnt="16"/>
+                     <c n="013" cnt="37"/>
+                     <c n="014" cnt="30"/>
+                     <c n="015" cnt="25"/>
+                     <c n="016" cnt="17"/>
+                     <c n="017" cnt="40"/>
+                     <c n="018" cnt="37"/>
+                     <c n="019" cnt="38"/>
+                     <c n="021" cnt="15"/>
+                     <c n="022" cnt="29"/>
+                     <c n="028" cnt="1"/>
+                     <c n="029" cnt="23"/>
+                     <c n="030" cnt="33"/>
+                     <c n="031" cnt="18"/>
+                     <c n="032" cnt="22"/>
+                     <c n="033" cnt="19"/>
+                     <c n="034" cnt="28"/>
+                  </c>
+                  <c n="Onno" cnt="73">
+                     <c n="065" cnt="38"/>
+                     <c n="066" cnt="2"/>
+                     <c n="067" cnt="20"/>
+                     <c n="068" cnt="6"/>
+                     <c n="069" cnt="2"/>
+                     <c n="257" cnt="1"/>
+                     <c n="258" cnt="2"/>
+                     <c n="286_HDV_tests_Onno_Future_Store" cnt="1"/>
+                     <c n="290" cnt="1"/>
+                  </c>
+               </c>
+               <c n="Others_NGT_" cnt="75">
+                  <c n="Inge_Zwitserlood" cnt="3">
+                     <c n="052" cnt="3"/>
+                  </c>
+                  <c n="Victoria_Nyst" cnt="71">
+                     <c n="023" cnt="5"/>
+                     <c n="024" cnt="6"/>
+                     <c n="025" cnt="8"/>
+                     <c n="046" cnt="30"/>
+                     <c n="047" cnt="16"/>
+                     <c n="048" cnt="6"/>
+                  </c>
+               </c>
+               <c n="Others_other_languages_" cnt="14">
+                  <c n="ASL" cnt="1"/>
+                  <c n="DGS" cnt="11">
+                     <c n="026" cnt="11"/>
+                  </c>
+                  <c n="SVK" cnt="1"/>
+                  <c n="Wendy_Sandler" cnt="1"/>
+               </c>
+               <c n="TV" cnt="89">
+                  <c n="054_Een_wereld_van_gebaren" cnt="12"/>
+                  <c n="055" cnt="8"/>
+                  <c n="057_Gebarenwinkel" cnt="2"/>
+                  <c n="058" cnt="20"/>
+                  <c n="059" cnt="6"/>
+                  <c n="060" cnt="4"/>
+                  <c n="061" cnt="13"/>
+                  <c n="062" cnt="5"/>
+                  <c n="063" cnt="4"/>
+                  <c n="064" cnt="14"/>
+                  <c n="254" cnt="1"/>
+               </c>
+            </c>
+            <c n="Others" cnt="0">
+               <c n="ASL" cnt="0"/>
+               <c n="DGS" cnt="0">
+                  <c n="DGS_GehorlosSo" cnt="0"/>
+               </c>
+               <c n="Heleen_Bos" cnt="0">
+                  <c n="074_Heleen_Bos" cnt="0"/>
+               </c>
+               <c n="Inge_Zwitserlood" cnt="0">
+                  <c n="052" cnt="0"/>
+               </c>
+               <c n="Lodenir_Karnopp" cnt="0"/>
+               <c n="Marion_Blondel" cnt="0"/>
+               <c n="Recordigns_Sotaro_Kita" cnt="0"/>
+               <c n="Recordings_Sonja_Jansma" cnt="0"/>
+               <c n="SVK" cnt="0"/>
+               <c n="Victoria_Nyst" cnt="0">
+                  <c n="023" cnt="0"/>
+                  <c n="024" cnt="0"/>
+                  <c n="025" cnt="0"/>
+                  <c n="046" cnt="0"/>
+                  <c n="047" cnt="0"/>
+                  <c n="048" cnt="0"/>
+               </c>
+               <c n="Wendy_Sandler" cnt="0"/>
+            </c>
+            <c n="TV" cnt="0">
+               <c n="054" cnt="0"/>
+               <c n="055" cnt="0"/>
+               <c n="057" cnt="0"/>
+               <c n="058" cnt="0"/>
+               <c n="059" cnt="0"/>
+               <c n="060" cnt="0"/>
+               <c n="061" cnt="0"/>
+               <c n="062" cnt="0"/>
+               <c n="063" cnt="0"/>
+               <c n="064" cnt="0"/>
+               <c n="254" cnt="0"/>
+            </c>
+            <c n="Visibase" cnt="0">
+               <c n="Visibase_Nijmegen" cnt="0">
+                  <c n="All_tapes" cnt="0">
+                     <c n="073" cnt="0"/>
+                     <c n="075_TV-stukjes_8" cnt="0"/>
+                     <c n="255" cnt="0"/>
+                  </c>
+                  <c n="Commercially_available" cnt="0">
+                     <c n="001" cnt="0"/>
+                     <c n="002" cnt="0"/>
+                     <c n="003" cnt="0"/>
+                     <c n="004" cnt="0"/>
+                     <c n="005" cnt="0"/>
+                     <c n="027" cnt="0"/>
+                     <c n="053" cnt="0"/>
+                     <c n="070" cnt="0"/>
+                     <c n="071" cnt="0"/>
+                     <c n="076" cnt="0"/>
+                     <c n="077" cnt="0"/>
+                     <c n="252" cnt="0"/>
+                  </c>
+                  <c n="ECHO" cnt="0">
+                     <c n="049" cnt="0"/>
+                     <c n="050" cnt="0"/>
+                     <c n="051" cnt="0"/>
+                     <c n="230" cnt="0"/>
+                     <c n="231" cnt="0"/>
+                     <c n="232" cnt="0"/>
+                     <c n="233" cnt="0"/>
+                     <c n="234" cnt="0"/>
+                     <c n="235" cnt="0"/>
+                     <c n="236" cnt="0"/>
+                     <c n="237" cnt="0"/>
+                     <c n="238" cnt="0"/>
+                     <c n="239" cnt="0"/>
+                     <c n="240" cnt="0"/>
+                     <c n="241" cnt="0"/>
+                     <c n="246" cnt="0"/>
+                     <c n="247" cnt="0"/>
+                     <c n="248" cnt="0"/>
+                     <c n="251" cnt="0"/>
+                  </c>
+                  <c n="HvU_Tolkopleiding" cnt="0">
+                     <c n="HvU_materiaal" cnt="0">
+                        <c n="006" cnt="0"/>
+                        <c n="007" cnt="0"/>
+                        <c n="008" cnt="0"/>
+                        <c n="009" cnt="0"/>
+                        <c n="010" cnt="0"/>
+                        <c n="011" cnt="0"/>
+                        <c n="012" cnt="0"/>
+                        <c n="013" cnt="0"/>
+                        <c n="014" cnt="0"/>
+                        <c n="015" cnt="0"/>
+                        <c n="016" cnt="0"/>
+                        <c n="017" cnt="0"/>
+                        <c n="018" cnt="0"/>
+                        <c n="019" cnt="0"/>
+                        <c n="021" cnt="0"/>
+                        <c n="022" cnt="0"/>
+                        <c n="028" cnt="0"/>
+                        <c n="029" cnt="0"/>
+                        <c n="030" cnt="0"/>
+                        <c n="031" cnt="0"/>
+                        <c n="032" cnt="0"/>
+                        <c n="033" cnt="0"/>
+                        <c n="034" cnt="0"/>
+                     </c>
+                     <c n="Onno" cnt="0">
+                        <c n="065" cnt="0"/>
+                        <c n="066" cnt="0"/>
+                        <c n="067" cnt="0"/>
+                        <c n="068" cnt="0"/>
+                        <c n="069" cnt="0"/>
+                        <c n="257" cnt="0"/>
+                        <c n="258" cnt="0"/>
+                        <c n="286_HDV_tests_Onno_Future_Store" cnt="0"/>
+                     </c>
+                  </c>
+                  <c n="Leiden" cnt="0">
+                     <c n="035" cnt="0"/>
+                     <c n="036" cnt="0"/>
+                     <c n="037" cnt="0"/>
+                     <c n="038" cnt="0"/>
+                     <c n="039" cnt="0"/>
+                     <c n="040" cnt="0"/>
+                     <c n="041" cnt="0"/>
+                     <c n="042" cnt="0"/>
+                     <c n="043" cnt="0"/>
+                     <c n="044" cnt="0"/>
+                  </c>
+                  <c n="Nijmegen" cnt="0">
+                     <c n="Lesmateriaal" cnt="0">
+                        <c n="249" cnt="0"/>
+                        <c n="253" cnt="0"/>
+                     </c>
+                     <c n="Onno_Crasborn" cnt="0">
+                        <c n="201" cnt="0"/>
+                        <c n="256" cnt="0"/>
+                     </c>
+                     <c n="Prosodie" cnt="0">
+                        <c n="202" cnt="0"/>
+                        <c n="203" cnt="0"/>
+                        <c n="204" cnt="0"/>
+                        <c n="205" cnt="0"/>
+                        <c n="206" cnt="0"/>
+                        <c n="207" cnt="0"/>
+                        <c n="208" cnt="0"/>
+                        <c n="209" cnt="0"/>
+                        <c n="210" cnt="0"/>
+                        <c n="211" cnt="0"/>
+                        <c n="212" cnt="0"/>
+                        <c n="213" cnt="0"/>
+                        <c n="214" cnt="0"/>
+                        <c n="215" cnt="0"/>
+                        <c n="216" cnt="0"/>
+                        <c n="217" cnt="0"/>
+                        <c n="218" cnt="0"/>
+                        <c n="219" cnt="0"/>
+                        <c n="220" cnt="0"/>
+                        <c n="222" cnt="0"/>
+                        <c n="223" cnt="0"/>
+                        <c n="224" cnt="0"/>
+                        <c n="225" cnt="0"/>
+                        <c n="226" cnt="0"/>
+                        <c n="227" cnt="0"/>
+                        <c n="228" cnt="0"/>
+                        <c n="229" cnt="0"/>
+                        <c n="242" cnt="0"/>
+                        <c n="243" cnt="0"/>
+                        <c n="244" cnt="0"/>
+                        <c n="245" cnt="0"/>
+                        <c n="250" cnt="0"/>
+                        <c n="259" cnt="0"/>
+                        <c n="260" cnt="0"/>
+                        <c n="261" cnt="0"/>
+                        <c n="262" cnt="0"/>
+                        <c n="263" cnt="0"/>
+                        <c n="264" cnt="0"/>
+                        <c n="265" cnt="0"/>
+                        <c n="266" cnt="0"/>
+                        <c n="267_270_WE_focus" cnt="0"/>
+                        <c n="272_277_JR_brows" cnt="0"/>
+                        <c n="283" cnt="0"/>
+                        <c n="284" cnt="0"/>
+                        <c n="287" cnt="0"/>
+                        <c n="288" cnt="0"/>
+                     </c>
+                  </c>
+                  <c n="Others" cnt="0">
+                     <c n="ASL" cnt="0"/>
+                     <c n="DGS" cnt="0">
+                        <c n="026" cnt="0"/>
+                     </c>
+                     <c n="Heleen_Bos" cnt="0">
+                        <c n="074_Heleen_Bos" cnt="0"/>
+                     </c>
+                     <c n="Inge_Zwitserlood" cnt="0">
+                        <c n="052" cnt="0"/>
+                     </c>
+                     <c n="Lodenir_Karnopp" cnt="0"/>
+                     <c n="Marion_Blondel" cnt="0"/>
+                     <c n="Recordigns_Sotaro_Kita" cnt="0"/>
+                     <c n="SVK" cnt="0"/>
+                     <c n="Victoria_Nyst" cnt="0">
+                        <c n="023" cnt="0"/>
+                        <c n="024" cnt="0"/>
+                        <c n="025" cnt="0"/>
+                        <c n="046" cnt="0"/>
+                        <c n="047" cnt="0"/>
+                        <c n="048" cnt="0"/>
+                     </c>
+                     <c n="Wendy_Sandler" cnt="0"/>
+                  </c>
+                  <c n="TV" cnt="0">
+                     <c n="054" cnt="0"/>
+                     <c n="055" cnt="0"/>
+                     <c n="057" cnt="0"/>
+                     <c n="058" cnt="0"/>
+                     <c n="059" cnt="0"/>
+                     <c n="060" cnt="0"/>
+                     <c n="061" cnt="0"/>
+                     <c n="062" cnt="0"/>
+                     <c n="063" cnt="0"/>
+                     <c n="064" cnt="0"/>
+                     <c n="254" cnt="0"/>
+                  </c>
+               </c>
+            </c>
+         </c>
+      </c>
+   </c>
+</collections>
Index: MDService2/branches/MDService_simple3/testdata/collections_extract_lv3.xml
===================================================================
--- MDService2/branches/MDService_simple3/testdata/collections_extract_lv3.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/testdata/collections_extract_lv3.xml	(revision 1516)
@@ -0,0 +1,231 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collections>
+   <c n="cmdi-snapshot-20100607" cnt="96520">
+      <c n="acqui_data" cnt="15052">
+         <c n="ac-APN" cnt="811"/>
+         <c n="ac-barbsch-l1" cnt="658"/>
+         <c n="ac-barbsch-l2" cnt="1058"/>
+         <c n="ac-bhuvana" cnt="522"/>
+         <c n="ac-cablitz" cnt="128"/>
+         <c n="ac-caroline" cnt="253"/>
+         <c n="ac-cowrlp" cnt="787"/>
+         <c n="ac-DaZ-AF" cnt="131"/>
+         <c n="ac-dimroth" cnt="53"/>
+         <c n="ac-ESF" cnt="3282"/>
+         <c n="ac-FiniteStory" cnt="230"/>
+         <c n="ac-Imitation" cnt="123"/>
+         <c n="ac-jidong" cnt="247"/>
+         <c n="ac-jolink" cnt="117"/>
+         <c n="ac-julka" cnt="165"/>
+         <c n="ac-MaxMiller" cnt="120"/>
+         <c n="ac-pbrown" cnt="824"/>
+         <c n="ac-pbrown-rossel" cnt="127"/>
+         <c n="ac-pmoll" cnt="786"/>
+         <c n="ac-poulisse" cnt="49"/>
+         <c n="ac-soneis-asec" cnt="658"/>
+         <c n="ac-soneis-ased" cnt="1453"/>
+         <c n="ac-stoll" cnt="465"/>
+         <c n="ac-wegener" cnt="235"/>
+         <c n="ac-word_order" cnt="182"/>
+         <c n="deleon" cnt="0"/>
+         <c n="e-LiLT" cnt="1"/>
+         <c n="L2_Acquisition" cnt="175"/>
+         <c n="Stimuli" cnt="85"/>
+         <c n="vdweijer" cnt="1160"/>
+      </c>
+      <c n="ANDES_data" cnt="238">
+         <c n="Quechua" cnt="237"/>
+      </c>
+      <c n="Bildungsforschung" cnt="2045">
+         <c n="DVD" cnt="28"/>
+         <c n="Hi8" cnt="1138"/>
+         <c n="Umatic" cnt="735"/>
+      </c>
+      <c n="biling_data" cnt="2674">
+         <c n="abrown" cnt="1764"/>
+         <c n="fitzpatrick" cnt="2"/>
+         <c n="gullberg" cnt="807"/>
+         <c n="indefrey" cnt="99"/>
+         <c n="oliver" cnt="1"/>
+      </c>
+      <c n="cocoa_data" cnt="0">
+         <c n="haun" cnt="0"/>
+         <c n="sauter" cnt="0"/>
+      </c>
+      <c n="comlan_data" cnt="0">
+         <c n="liszkowski" cnt="0"/>
+      </c>
+      <c n="Comprehension" cnt="165">
+         <c n="Elizabeth_Johnson" cnt="154"/>
+         <c n="James_McQueen" cnt="7"/>
+      </c>
+      <c n="CORP_ORAL" cnt="41">
+         <c n="Conversation" cnt="37"/>
+      </c>
+      <c n="dbd_data" cnt="1937">
+         <c n="Aissati" cnt="37"/>
+         <c n="aliesm" cnt="80"/>
+         <c n="backus" cnt="143"/>
+         <c n="boumans" cnt="940"/>
+         <c n="broeder" cnt="29"/>
+         <c n="buiting" cnt="1"/>
+         <c n="E-rramdani" cnt="266"/>
+         <c n="micre" cnt="1"/>
+         <c n="Papiamentu" cnt="86"/>
+         <c n="vandervate" cnt="352"/>
+      </c>
+      <c n="demo" cnt="179">
+         <c n="Ams_Demo" cnt="0"/>
+         <c n="CLARIN" cnt="3"/>
+         <c n="dobes2006" cnt="147"/>
+         <c n="dobes_demo" cnt="2"/>
+         <c n="lams_demo" cnt="6"/>
+         <c n="pewi" cnt="2"/>
+         <c n="pudding" cnt="0"/>
+         <c n="Sandbox" cnt="1"/>
+         <c n="Talks" cnt="1"/>
+         <c n="Test02" cnt="4"/>
+         <c n="TobeErased" cnt="2"/>
+      </c>
+      <c n="donated_corpora" cnt="840">
+         <c n="Buryat" cnt="32"/>
+         <c n="Carib" cnt="100"/>
+         <c n="Chakali" cnt="1"/>
+         <c n="Dalabon" cnt="1"/>
+         <c n="Gammolsvansk" cnt="1"/>
+         <c n="Guanchet" cnt="7"/>
+         <c n="Kawapana" cnt="1"/>
+         <c n="Kimberly" cnt="1"/>
+         <c n="Leap" cnt="351"/>
+         <c n="Lokono" cnt="9"/>
+         <c n="Narranganset" cnt="2"/>
+         <c n="Nyangbo" cnt="1"/>
+         <c n="Pano" cnt="1"/>
+         <c n="Slavonic_Colour_Lexicon" cnt="3"/>
+         <c n="SSGG" cnt="327"/>
+         <c n="YauyosQuechua" cnt="1"/>
+      </c>
+      <c n="echo_data" cnt="209">
+         <c n="lexikon" cnt="94"/>
+         <c n="sign_language" cnt="113"/>
+      </c>
+      <c n="gesture_data" cnt="9499">
+         <c n="allen" cnt="2047"/>
+         <c n="furman" cnt="1"/>
+         <c n="gc-lausberg" cnt="266"/>
+         <c n="gullberg" cnt="91"/>
+         <c n="kita" cnt="4574"/>
+         <c n="mandana" cnt="0"/>
+         <c n="ozyurek" cnt="2114"/>
+         <c n="perniss" cnt="364"/>
+         <c n="sassenberg" cnt="40"/>
+         <c n="sumer" cnt="1"/>
+      </c>
+      <c n="humanethology" cnt="162">
+         <c n="Originalfilme" cnt="145"/>
+      </c>
+      <c n="lac_data" cnt="7975">
+         <c n="africa" cnt="29"/>
+         <c n="allen" cnt="618"/>
+         <c n="australia" cnt="1"/>
+         <c n="bhuvana" cnt="66"/>
+         <c n="bohnemeyer" cnt="291"/>
+         <c n="burenhult" cnt="99"/>
+         <c n="conferences" cnt="36"/>
+         <c n="dingemanse" cnt="14"/>
+         <c n="dunn1" cnt="0"/>
+         <c n="dunn2" cnt="0"/>
+         <c n="enfield" cnt="787"/>
+         <c n="englert" cnt="0"/>
+         <c n="essegbey" cnt="0"/>
+         <c n="fedden" cnt="1"/>
+         <c n="haun" cnt="0"/>
+         <c n="hayano" cnt="0"/>
+         <c n="heinemann" cnt="0"/>
+         <c n="hellwig" cnt="270"/>
+         <c n="hill" cnt="0"/>
+         <c n="kidwell" cnt="0"/>
+         <c n="kita" cnt="9"/>
+         <c n="laycock" cnt="2"/>
+         <c n="lc-faller" cnt="34"/>
+         <c n="lc-levinson-hopevale" cnt="41"/>
+         <c n="lc-lupke" cnt="268"/>
+         <c n="lc_stimuli_archive" cnt="153"/>
+         <c n="lectures_and_interviews" cnt="7"/>
+         <c n="leguen" cnt="58"/>
+         <c n="levinson" cnt="1329"/>
+         <c n="majid" cnt="0"/>
+         <c n="meira1" cnt="94"/>
+         <c n="meira2" cnt="11"/>
+         <c n="mesoamerica" cnt="7"/>
+         <c n="mmipros" cnt="0"/>
+         <c n="oconnor" cnt="122"/>
+         <c n="other" cnt="3"/>
+         <c n="other_hopevale" cnt="18"/>
+         <c n="other_tzeltal" cnt="5"/>
+         <c n="Ozyurek" cnt="648"/>
+         <c n="pbrown" cnt="726"/>
+         <c n="pederson" cnt="0"/>
+         <c n="perniss" cnt="602"/>
+         <c n="rigsby" cnt="3"/>
+         <c n="rossano" cnt="36"/>
+         <c n="rossi" cnt="0"/>
+         <c n="ruiter" cnt="55"/>
+         <c n="schultze-berndt" cnt="28"/>
+         <c n="seifart" cnt="149"/>
+         <c n="senft" cnt="343"/>
+         <c n="sicoli" cnt="121"/>
+         <c n="sommer" cnt="2"/>
+         <c n="sousa" cnt="0"/>
+         <c n="southasia" cnt="12"/>
+         <c n="southeastasia" cnt="97"/>
+         <c n="staden" cnt="22"/>
+         <c n="stivers" cnt="80"/>
+         <c n="terrill" cnt="125"/>
+         <c n="tufvesson" cnt="0"/>
+         <c n="Verhaar" cnt="1"/>
+         <c n="verstraete" cnt="12"/>
+         <c n="vos" cnt="271"/>
+         <c n="wegener" cnt="184"/>
+         <c n="west" cnt="2"/>
+      </c>
+      <c n="LeidenArchives" cnt="228">
+         <c n="Dengbej" cnt="22"/>
+         <c n="Meso-America" cnt="79"/>
+         <c n="North_America" cnt="25"/>
+         <c n="South_America" cnt="99"/>
+      </c>
+      <c n="Lexo_Block_Registry" cnt="4"/>
+      <c n="Library" cnt="2"/>
+      <c n="nbl_data" cnt="2">
+         <c n="Idiom1" cnt="1"/>
+      </c>
+      <c n="NCGN" cnt="2"/>
+      <c n="NGT" cnt="698">
+         <c n="Corpus_Management" cnt="3"/>
+         <c n="Data_types" cnt="369"/>
+         <c n="Elicitation_material" cnt="0"/>
+         <c n="NGT_20090211_0013" cnt="0"/>
+         <c n="Public" cnt="12"/>
+         <c n="Recordings" cnt="1"/>
+         <c n="Regions" cnt="177"/>
+         <c n="TMP" cnt="0"/>
+      </c>
+      <c n="olac" cnt="51574">
+         <c n="OLAC" cnt="51574"/>
+      </c>
+      <c n="silang_data" cnt="694">
+         <c n="cdevos" cnt="0"/>
+         <c n="contact_signing" cnt="8"/>
+         <c n="typology" cnt="26"/>
+         <c n="urban_sign_languages" cnt="551"/>
+         <c n="village_sign_languages" cnt="59"/>
+      </c>
+      <c n="suca_data" cnt="1"/>
+      <c n="VIDI_projects" cnt="1"/>
+      <c n="visibase" cnt="1445">
+         <c n="amsterdam" cnt="43"/>
+         <c n="nijmegen" cnt="1401"/>
+      </c>
+   </c>
+</collections>
Index: MDService2/branches/MDService_simple3/testdata/profiles.xml
===================================================================
--- MDService2/branches/MDService_simple3/testdata/profiles.xml	(revision 1516)
+++ MDService2/branches/MDService_simple3/testdata/profiles.xml	(revision 1516)
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<profileDescriptions><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1274880881920</id><description>Profile for locations subdivision perspective on DynaSAND</description><name>DynaSAND_sub_location</name><registrationDate>2010-06-09T18:40:29+00:00</registrationDate><creatorName>Folkert de Vriend</creatorName><domainName/><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1274880881920</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1274880881843</id><description>H+E Test</description><name>HETest</name><registrationDate>2010-05-27T14:32:14+00:00</registrationDate><creatorName>Eric Sanders</creatorName><domainName>anthropological_linguistics</domainName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1274880881843</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1274880881842</id><description>H+E Test</description><name>HETest</name><registrationDate>2010-05-27T14:27:12+00:00</registrationDate><creatorName>Eric Sanders</creatorName><domainName>anthropological_linguistics</domainName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1274880881842</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1272022528363</id><description>a profile for describing a lexical resource</description><name>LexicalResourceProfile</name><registrationDate>2010-04-26T10:13:06+00:00</registrationDate><creatorName>Laura van Eerten</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1272022528363</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438165</id><description>Clarin-NL profiles</description><name>SessionProfile</name><registrationDate>2010-04-21T14:18:10+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438165</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438166</id><description>Clarin-NL profiles</description><name>SpeechCorpusProfile</name><registrationDate>2010-04-21T14:18:10+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438166</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438161</id><description>Clarin-NL profiles</description><name>SpeechCorpusProfile_Autonomata_speaker</name><registrationDate>2010-04-21T14:18:10+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438161</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1274880881941</id><description>TITUS Metadata profile
+http://titus.uni-frankfurt.de</description><name>TITUS_metadata</name><registrationDate>2010-06-17T09:13:34+00:00</registrationDate><creatorName>Svetlana Ahlborn</creatorName><domainName>historical_linguistics</domainName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1274880881941</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438164</id><description>Clarin-NL profiles</description><name>TextCorpusProfile</name><registrationDate>2010-04-21T14:18:10+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438164</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438162</id><description>Clarin-NL profiles</description><name>TextProfile</name><registrationDate>2010-04-21T14:18:10+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438162</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438224</id><description>Avatech</description><name>avatech-recognizer</name><registrationDate>2010-04-21T14:19:47+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438224</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438175</id><description>Clarin vc profile</description><name>cmdi-virtual-collection</name><registrationDate>2010-04-21T14:18:30+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438175</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438218</id><description>DC metadata</description><name>component-dc-terms</name><registrationDate>2010-04-21T14:19:45+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438218</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438217</id><description>DC metadata</description><name>component-dc-terms-modular</name><registrationDate>2010-04-21T14:19:45+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438217</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438236</id><description>OLAC metadata</description><name>component-olac</name><registrationDate>2010-04-21T14:19:48+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438236</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1272022528346</id><description>test, to be removed</description><name>dieter_testprofile</name><registrationDate>2010-04-23T14:32:59+00:00</registrationDate><creatorName>Dieter Van Uytvanck</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1272022528346</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271863295936</id><description>example profile</description><name>example-profile</name><registrationDate>2010-04-21T15:26:40+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271863295936</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1274880881885</id><description>IMDI corpus profile</description><name>imdi-corpus</name><registrationDate>2010-06-02T13:16:26+00:00</registrationDate><creatorName>Alexander Koenig</creatorName><domainName/><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1274880881885</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438204</id><description>IMDI metadata</description><name>imdi-profile-instance</name><registrationDate>2010-04-21T14:19:43+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438204</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1274880881817</id><description>test book profile</description><name>myBook</name><registrationDate>2010-05-27T13:38:41+00:00</registrationDate><creatorName>Dieter Van Uytvanck</creatorName><domainName>Other</domainName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1274880881817</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438174</id><description>Clarin webservice</description><name>service</name><registrationDate>2010-04-21T14:18:25+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438174</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1271859438237</id><description>TEI metadata</description><name>tei-textDesc</name><registrationDate>2010-04-21T14:19:50+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438237</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1274880881802</id><description>a profile for describing books</description><name>test-profile-book</name><registrationDate>2010-05-26T15:34:47+00:00</registrationDate><creatorName>Dieter Van Uytvanck</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1274880881802</ns2:href></profileDescription><profileDescription xmlns:ns2="http://www.w3.org/1999/xlink"><id>clarin.eu:cr1:p_1273569652032</id><description>a profile for describing books</description><name>test-profile-book2</name><registrationDate>2010-05-25T15:26:44+00:00</registrationDate><creatorName>Patrick Duin</creatorName><ns2:href>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1273569652032</ns2:href></profileDescription></profileDescriptions>
