/**
 * FOXFAST HTML BUILD - v3.0
 */
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ieversion<=6) var IE6=true;
}

if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);
	 var oprversion=new Number(RegExp.$1) // capture x.x portion and store as a number
	 if (oprversion>=7) var opera=false;
}


if (IE6 && !opera) {
	$(function() {
		$("#titleListView").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
	});
	
	$(function() {
		$("#allAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
		control: "#treecontrol"
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
	if(window.document.getElementById("ulcatexpand"))
	{
	    $("#ulcatexpand").removeAttr("style");				
	    $("#ulcatexpand").attr("style","display:block");
	}
	if(window.document.getElementById("ulseriesexpand"))
	{
	    $("#ulseriesexpand").removeAttr("style");				
	    $("#ulseriesexpand").attr("style","display:block");
    }
	});

$(function() {
		$("#allallAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulcatexpand"))
		{
		    $("#ulcatexpand").removeAttr("style");				
		    $("#ulcatexpand").attr("style","display:block");
		}
	});
	
	$(function() {
		$("#titleDetailsHome").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
        
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});
	
	$(function() {
		$("#customerlist").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
        
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});

	$(function() {
		$("#seriesNavList").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulseriesexpand"))
		{
		    $("#ulseriesexpand").removeAttr("style");				
		    $("#ulseriesexpand").attr("style","display:block");
		}
		if(window.document.getElementById("ulseasonexpand"))
		{
		    $("#ulseasonexpand").removeAttr("style");				
		    $("#ulseasonexpand").attr("style","display:block");
		}
	});

	
}

else {
		$(function() {
		$("#titleListView").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
	});

	
	$(function() {
		$("#allAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
		control: "#treecontrol"
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulcatexpand"))
		{
		    $("#ulcatexpand").removeAttr("style");				
		    $("#ulcatexpand").attr("style","display:block");
		}
		if(window.document.getElementById("ulseriesexpand"))
	    {
	        $("#ulseriesexpand").removeAttr("style");				
	        $("#ulseriesexpand").attr("style","display:block");
        }
	});
	
	$(function() {
		$("#allallAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulcatexpand"))
		{
		    $("#ulcatexpand").removeAttr("style");				
		    $("#ulcatexpand").attr("style","display:block");
		}
	});
	
	$(function() {
		$("#titleDetailsHome").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});
	
	$(function() {
		$("#customerlist").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
        
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});

	$(function() {
		$("#seriesNavList").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulseriesexpand"))
		{
		    $("#ulseriesexpand").removeAttr("style");				
		    $("#ulseriesexpand").attr("style","display:block");
		}
		if(window.document.getElementById("ulseasonexpand"))
		{
		    $("#ulseasonexpand").removeAttr("style");				
		    $("#ulseasonexpand").attr("style","display:block");
		}
	});

	
}


/**
 * FOXFAST HTML BUILD - v3.0
 */
 
 function funBuildTreeView()
 {
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ieversion<=6) var IE6=true;
}

if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);
	 var oprversion=new Number(RegExp.$1) // capture x.x portion and store as a number
	 if (oprversion>=7) var opera=false;
}


if (IE6 && !opera) {
	$(function() {
		$("#titleListView").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
	});
	
	$(function() {
		$("#allAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
	control: "#treecontrol"
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulcatexpand"))
		{
		    $("#ulcatexpand").removeAttr("style");				
		    $("#ulcatexpand").attr("style","display:block");
		}
		if(window.document.getElementById("ulseriesexpand"))
	    {
	        $("#ulseriesexpand").removeAttr("style");				
	        $("#ulseriesexpand").attr("style","display:block");
        }
	});
	
	$(function() {
		$("#allallAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulcatexpand"))
		{
		    $("#ulcatexpand").removeAttr("style");				
		    $("#ulcatexpand").attr("style","display:block");
		}
	});

	$(function() {
		$("#titleDetailsHome").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});
	
	$(function() {
		$("#customerlist").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
        
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});

	$(function() {
		$("#seriesNavList").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulseriesexpand"))
		{
		    $("#ulseriesexpand").removeAttr("style");				
		    $("#ulseriesexpand").attr("style","display:block");
		}
		if(window.document.getElementById("ulseasonexpand"))
		{
		    $("#ulseasonexpand").removeAttr("style");				
		    $("#ulseasonexpand").attr("style","display:block");
		}
	});

	
}

else {
		$(function() {
		$("#titleListView").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
	});

	
	$(function() {
		$("#allAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
    	control: "#treecontrol"
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulcatexpand"))
		{
		    $("#ulcatexpand").removeAttr("style");				
		    $("#ulcatexpand").attr("style","display:block");
		}
		if(window.document.getElementById("ulseriesexpand"))
	    {
	        $("#ulseriesexpand").removeAttr("style");				
	        $("#ulseriesexpand").attr("style","display:block");
        }
	});
	
	$(function() {
		$("#allallAssets").treeview({
//		collapsed: true,
//		control: "#treecontrol",
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulcatexpand"))
		{
		    $("#ulcatexpand").removeAttr("style");				
		    $("#ulcatexpand").attr("style","display:block");
		}
	});
	
	$(function() {
		$("#titleDetailsHome").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});
	
	$(function() {
		$("#customerlist").treeview({
//		unique: false,
//		persist: "cookie",
///*		prerendered: true, */
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
        
		});
		if(window.document.getElementById("uloverviewgridexpand"))
		{
		    $("#uloverviewgridexpand").removeAttr("style");				
		    $("#uloverviewgridexpand").attr("style","display:block");
		}
	});

	$(function() {
		$("#seriesNavList").treeview({
//		collapsed: false,
//		unique: false,
//		persist: "cookie",
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//			}
		});
		if(window.document.getElementById("ulseriesexpand"))
		{
		    $("#ulseriesexpand").removeAttr("style");				
		    $("#ulseriesexpand").attr("style","display:block");
		}
		if(window.document.getElementById("ulseasonexpand"))
		{
		    $("#ulseasonexpand").removeAttr("style");				
		    $("#ulseasonexpand").attr("style","display:block");
		}
	});

	
}
}