/////////////////////////////////////////////////////////////////////////////
// Function : NavNode (constructor)
// Comments :
/////////////////////////////////////////////////////////////////////////////
function NavNode(id, label, href, parent)
{
	this.m_parent = null;
	this.m_level = 0;

	if (parent)
	{
		this.m_parent = parent;
		this.m_level = parent.m_level+1;
	}

	this.m_id = id;

	// assume that m_label will most often be used directly as HTML
	this.m_rawlabel = label;

	label = label.replace(/&/g, '&amp;');
	label = label.replace(/</g, '&lt;');
	label = label.replace(/>/g, '&gt;');
	label = label.replace(/"/g, '&quot;');

	this.m_label = label;

	this.m_href = href;
	this.m_subNodes = new Array();

	var argValues = NavNode.arguments;
	var argCount = NavNode.arguments.length;

	for (i = 4 ; i < argCount ; i++)
	{
		var attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		eval("this.cp_" + attrName + " = '" + attrValue + "';");
	}

	NavNode.prototype.addNode = addNode;
	NavNode.prototype.isSelected = isSelected;
}

/////////////////////////////////////////////////////////////////////////////
// Function : addNode
// Comments :
/////////////////////////////////////////////////////////////////////////////
function addNode(id, label, href)
{
	var newIndex = this.m_subNodes.length;
	var newNode = new NavNode(id, label, href, this);

	var argValues = addNode.arguments;
	var argCount = addNode.arguments.length;

	for (i = 3 ; i < argCount ; i++)
	{
		var attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		eval("newNode.cp_" + attrName + " = '" + attrValue + "';");
	}

	this.m_subNodes[newIndex] = newNode;
	return newNode;
}

/////////////////////////////////////////////////////////////////////////////
// Function : isSelected
// Comments :
/////////////////////////////////////////////////////////////////////////////
function isSelected()
{
    var pos = window.location.href.lastIndexOf("/");
    var docname = window.location.href.substring(pos+1, window.location.href.length);

    pos = this.m_href.lastIndexOf("/");
    var myname = this.m_href.substring(pos+1, this.m_href.length);

    if (docname == myname)
		return true;
	else
		return false;
}

/////////////////////////////////////////////////////////////////////////////
// Function : customSectionPropertyExists
// Comments :
/////////////////////////////////////////////////////////////////////////////
function customSectionPropertyExists(csp)
{
	return (typeof csp != _U && csp != null);
}

/////////////////////////////////////////////////////////////////////////////
// Function : getCustomSectionProperty
// Comments :
/////////////////////////////////////////////////////////////////////////////
function getCustomSectionProperty(csp)
{
	if (customSectionPropertyExists(csp))
	{
		return csp;
	}
	else
	{
		return "";
	}
}

/////////////////////////////////////////////////////////////////////////////

var g_navNode_Root = new NavNode('1183','Home',ssUrlPrefix + 'default.aspx',null);
g_navNode_0=g_navNode_Root.addNode('1201','WELLSOLVE L/S\x26reg\x3b ',ssUrlPrefix + 'WELLSOLVELS/index.htm','deadAnchor==TRUE','menuStyle==WCmenuStyle','topNav==TRUE');
g_navNode_0_0=g_navNode_0.addNode('1202','Horses with Special Needs',ssUrlPrefix + 'WELLSOLVELS/HorseswithSpecialNeeds/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010944.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_0_1=g_navNode_0.addNode('1205','Science Behind the Diet',ssUrlPrefix + 'WELLSOLVELS/ScienceBehindtheDiet/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010943.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_0_2=g_navNode_0.addNode('1207','Feeding',ssUrlPrefix + 'WELLSOLVELS/Feeding/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010942.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_0_3=g_navNode_0.addNode('1208','Product Information Sheet',ssUrlPrefix + 'WELLSOLVELS/ProductInformationSheet/default.aspx','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_1=g_navNode_Root.addNode('1203','WELLSOLVE W/C\x26reg\x3b ',ssUrlPrefix + 'WELLSOLVEWC/index.htm','deadAnchor==TRUE','menuStyle==WCmenuStyle','topNav==TRUE');
g_navNode_1_0=g_navNode_1.addNode('1204','Horses with Special Needs',ssUrlPrefix + 'WELLSOLVEWC/HorseswithSpecialNeeds/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010949.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_1_1=g_navNode_1.addNode('1206','Science Behind the Diet',ssUrlPrefix + 'WELLSOLVEWC/ScienceBehindtheDiet/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010948.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_1_2=g_navNode_1.addNode('1209','Feeding',ssUrlPrefix + 'WELLSOLVEWC/Feeding/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010947.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_1_3=g_navNode_1.addNode('1210','Product Information Sheet',ssUrlPrefix + 'WELLSOLVEWC/ProductInformationSheet/default.aspx','menuStyle==WCSubmenuStyle','topNav==TRUE');
g_navNode_2=g_navNode_Root.addNode('1215','HOME',ssUrlPrefix + 'HOME/default.aspx','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010882.gif','mainNavigation==TRUE','menuStyle==tstyle1');
g_navNode_3=g_navNode_Root.addNode('1186','NUTRITION',ssUrlPrefix + 'NUTRITION/index.htm','deadAnchor==FALSE','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010898.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd010880.gif','mainNavigation==TRUE','menuStyle==tstyle1','menuType==tree');
g_navNode_4=g_navNode_Root.addNode('1187','CONDITIONS',ssUrlPrefix + 'CONDITIONS/index.htm','deadAnchor==TRUE','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010882.gif','mainNavigation==TRUE','menuStyle==tstyle1','menuType==tree');
g_navNode_4_0=g_navNode_4.addNode('1190','Obesity',ssUrlPrefix + 'CONDITIONS/Obesity/default.aspx','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010945.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1Style');
g_navNode_4_1=g_navNode_4.addNode('1191','Equine Metabolic Syndrome\x3cBR\x3eand Insulin Resistance',ssUrlPrefix + 'CONDITIONS/EquineMetabolicSyndrome/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010940.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1Style');
g_navNode_4_2=g_navNode_4.addNode('1193','Laminitis',ssUrlPrefix + 'CONDITIONS/Laminitis/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010941.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1Style');
g_navNode_4_3=g_navNode_4.addNode('1217','Cushings',ssUrlPrefix + 'CONDITIONS/Cushings/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010939.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1style');
g_navNode_4_4=g_navNode_4.addNode('1218','Management Tips',ssUrlPrefix + 'CONDITIONS/ManagementTips/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010946.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1style');
g_navNode_5=g_navNode_Root.addNode('1188','VET RESOURCES',ssUrlPrefix + 'VETRESOURCES/index.htm','deadAnchor==TRUE','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010882.gif','mainNavigation==TRUE','menuStyle==tstyle1','menuType==tree');
g_navNode_5_0=g_navNode_5.addNode('1194','WellSolve L/S\x26reg\x3b Research Abstract',ssUrlPrefix + 'VETRESOURCES/WellSolveLSResearchAbstract/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010900.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1Style');
g_navNode_5_1=g_navNode_5.addNode('1195','WellSolve W/C\x26reg\x3b Research Abstract',ssUrlPrefix + 'VETRESOURCES/WellSolveWCResearchAbstract/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27/stellent/groups/public/documents/web_content/ecmd0010903.swf\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1Style');
g_navNode_5_2=g_navNode_5.addNode('1196','www.EquineVetNutrition.com',ssUrlPrefix + 'VETRESOURCES/EquineVetNutrition/index.htm','deadAnchor==FALSE','linkOnly==javascript\x3awindow.open\x28\\x27http\x3a//www.EquineVetNutrition.com\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010881.gif','mainNavigation==TRUE','menuStyle==sub1Style');
g_navNode_6=g_navNode_Root.addNode('1678','ARTICLES',ssUrlPrefix + 'ARTICLES/default.aspx','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd010880.gif','mainNavigation==TRUE','menuStyle==tstyle1');
g_navNode_7=g_navNode_Root.addNode('1216','FEEDGUARD',ssUrlPrefix + 'FEEDGUARD/index.htm','linkOnly==javascript\x3awindow.open\x28\\x27http\x3a//www.horse.purinamills.com/products/feedguard.asp\\x27,\\x27newwin\\x27,\\x27width\x3d650,height\x3d450,toolbar\x3dno,scrollbars\x3dyes,resizable\x3dyes,menubar\x3dno\\x27\x29\x3bvoid\x280\x29','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd0010882.gif','mainNavigation==TRUE','menuStyle==tstyle1','menuType==tree');
g_navNode_8=g_navNode_Root.addNode('1189','CONTACT US',ssUrlPrefix + 'CONTACTUS/default.aspx','UCRegister==\x3c\x21--\x3c\x25\x40 Register Src\x3d\"\x7e/contactus/ContactUs_uc.ascx\" TagName\x3d\"ContactUs_uc\" TagPrefix\x3d\"uc5\" \x25\x3e--\x3e','UCTag==\x3cuc5\x3aContactUs_UC id\x3d\"ContactUs_UC\" runat\x3d\"server\" /\x3e','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd010880.gif','mainNavigation==TRUE','menuStyle==tstyle1','ucRegister==\x3c\x21--\x3c\x25\x40 Register Src\x3d\"\x7e/contactus/ContactUs_uc.ascx\" TagName\x3d\"ContactUs_uc\" TagPrefix\x3d\"uc5\" \x25\x3e--\x3e','uctag==\x3cuc5\x3aContactUs_UC id\x3d\"ContactUs_UC\" runat\x3d\"server\" /\x3e');
g_navNode_11=g_navNode_Root.addNode('1499','DEALER LOCATOR',ssUrlPrefix + 'DealerLocator/default.aspx','UCRegister==\x3c\x21--\x3c\x25\x40 Register Src\x3d\"\x7e/DealerLocator/DealerLocator_UC.ascx\" TagName\x3d\"DealerLocator_UC\" TagPrefix\x3d\"DealerLocator_UC\" \x25\x3e--\x3e\\x0a','UCTag==\x3cDealerLocator_UC\x3aDealerLocator_UC id\x3d\"DealerLocator_UC\" runat\x3d\"server\" /\x3e','contributorOnly==FALSE','mainNavIcon==/stellent/groups/public/documents/web_asset/ecmd010880.gif','mainNavigation==TRUE','menuStyle==tstyle1');
