anchor.diff:   - along with this program.  If not, see <http://www.gnu.org/licenses/>.
   --%>
   
  -<%@ page import="org.mskcc.cbio.portal.servlet.QueryBuilder" %>
  -<%@ page import="java.util.List" %>
  -<%@ page import="java.util.Set" %>
  -<%@ page import="org.apache.commons.lang.StringUtils" %>
   
  -<%
  -    String zScoreThesholdStr4Network =
  -		    xssUtil.getCleanerInput(request.getAttribute(QueryBuilder.Z_SCORE_THRESHOLD).toString());
  -	String useXDebug = request.getParameter("xdebug");
  -    if (useXDebug==null)
  -        useXDebug = "0";
  -    String netSrc = request.getParameter("netsrc");
  -    if (netSrc==null)
  -        netSrc = "cgds";
  -    String netSize = request.getParameter("netsize");
  -    if (netSize==null)
  -        netSize = "large";
  -    String nLinker = request.getParameter("linkers");
  -    if (nLinker==null)
  -        nLinker = "50";
  -    String diffusion = request.getParameter("diffusion");
  -    if (diffusion==null)
  -        diffusion = "0";
  -%>
  -
  -<link href="css/network/network_ui.css?<%=GlobalProperties.getAppVersion()%>" type="text/css" rel="stylesheet"/>
  -<link href="css/network/cytoscape.js-panzoom.css?<%=GlobalProperties.getAppVersion()%>" type="text/css" rel="stylesheet"/>
  -
  -
  -<script type="text/javascript" src="js/lib/json2.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -<script type="text/javascript" src="js/lib/cytoscape_js/cytoscape.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -<script type="text/javascript" src="js/lib/cytoscape_js/cytoscape.js-panzoom.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -<script type="text/javascript" src="js/lib/cytoscape_js/layout.cose-bilkent.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -
  -<!-- <script type="text/javascript" src="js/src/network/network-ui.js?<%=GlobalProperties.getAppVersion()%>"></script> -->
  -<script type="text/javascript" src="js/src/network/network-visualization.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -<script type="text/javascript" src="js/src/network/GraphMLIO.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -<script type="text/javascript" src="js/src/network/network-viz2.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -<script type="text/javascript" src="js/src/network/cytoscape.renderer.canvas.portal-renderer.js?<%=GlobalProperties.getAppVersion()%>"></script>
  -<!-- for genomic data post request -->
  -<script type="text/javascript" src="js/lib/d3.min.js?<%=GlobalProperties.getAppVersion()%>"></script>
   
   <script type="text/javascript">
       
  
positive.code:     	function tabsUpdate() {
      		if ($("#network").is(":visible")) {
  	    		if (tab_init === false) {
      	    		fireQuerySession();
      	    		
      	
      	    		
      	    		 var networkParams = {
                                  <%=QueryBuilder.GENE_LIST%>:window.QuerySession.getQueryGenes().join(" "),
                                   <%=QueryBuilder.GENETIC_PROFILE_IDS%>:window.QuerySession.getGeneticProfileIds().join(" "),
                                   <%=QueryBuilder.CANCER_STUDY_ID%>:window.QuerySession.getCancerStudyIds()[0],
                                   <%=QueryBuilder.CASE_IDS_KEY%>:window.QuerySession.getCaseIdsKey(),
                                   <%=QueryBuilder.CASE_SET_ID%>:window.QuerySession.getCaseSetId(),
                                   <%=QueryBuilder.Z_SCORE_THRESHOLD%>:'<%=zScoreThesholdStr4Network%>',
                                   heat_map:$("#heat_map").html(), // don't send'
                                   xdebug:'<%=useXDebug%>',
                                   netsrc:'<%=netSrc%>', 
                                   linkers:'<%=nLinker%>',
                                   netsize:'<%=netSize%>',
                                   diffusion:'<%=diffusion%>',
                                  };
      	    		
  		        	showNetwork(networkParams);
  		            tab_init = true;
  		        }
  		        $(window).trigger("resize");
  	    	}
      	}
          //this is for the scenario where the tab is open by default (as part of URL >> #tab_name at the end of URL):
  
negative.code:                 });
           });
  
  
              
  
  </script>
  
  <div class="section ui-tabs-panel ui-widget-content ui-corner-bottom" id="network" aria-labelledby="network-result-tab" role="tabpanel" aria-expanded="true" aria-hidden="false" style="display: none;">
  </div>