/////////////////////////////////////////////////////////////////////////////
// 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('613','Home',ssUrlPrefix + 'Default.aspx',null,'AddThis_Description==Find a Purina dealer offering livestock feed or food to improve animal health. Locate pet food suppliers or a livestock feed distributor near you.','AddThis_Keywords==pet food suppliers, feed distributor, animal health, livestock feed, purina dealer, purina chow, feed store, feed stores, feed dealer, feed dealers, purina feed dealer, purina feed store, pet food distributor, purina dealers, purina feed, feed manufacturer, animal nutrition, animal feed, animal food, livestock food, livestock nutrition, pet food stores, purina mills, pet food manufacturer, purina store, purina stores','AddThis_Title==Purina Pet Food Suppliers, Feed Distributor, Animal Health, Livestock','menuStyle==TOP_NAV');
g_navNode_0=g_navNode_Root.addNode('634','Our\x3cBR\x3eHeritage',ssUrlPrefix + 'ourheritage/default.aspx','AddThis_Description==Learn about the history of Purina Chow and its legacy of animal nutrition. Discover why we\u2019re a pet food manufacturer trusted by feed stores everywhere.','AddThis_Keywords==purina dealer, purina chow, feed stores, animal nutrition, pet food manufacturer','AddThis_Title==Purina Dealer, Feed Stores, Animal Nutrition, Pet Food Manufacturer','analyticsTag==\x3c\\x5cscript type\x3d\"text/javascript\"\x3e\\x0avar axel \x3d Math.random\x28\x29 \x2b \"\"\x3b\\x0avar a \x3d axel \x2a 10000000000000\x3b\\x0adocument.write\x28\\x27\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dherit036\x3bcat\x3dherit417\x3bord\x3d1\x3bnum\x3d\\x27 \x2b a \x2b \\x27?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"/\x3e\\x27\x29\x3b\\x0a\x3c\\x5c/script\x3e\\x0a\x3cnoscript\x3e\\x0a\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dherit036\x3bcat\x3dherit417\x3bord\x3d1\x3bnum\x3d1?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"\x3e\\x0a\x3c/noscript\x3e\\x0a\\x0a','mainNavigation==TRUE','menuStyle==TOP_NAV');
g_navNode_1=g_navNode_Root.addNode('643','Customer\x3cBR\x3eTestimonials',ssUrlPrefix + 'testimonials/default.aspx','AddThis_Description==Read customer testimonials about Purina feed for pets and livestock food. Find feed dealers and Purina stores on this site.','AddThis_Keywords==pet food suppliers, feed dealers, purina feed, livestock food, purina stores','AddThis_Title==Pet Food Suppliers, Purina Feed, Livestock Food Stores, Dealers','UCRegister==\x3c\x25\x40 Register Src\x3d\"\x7e/DotNetComponents/Testimonials/TestimonialList_uc.ascx\" TagName\x3d\"TestimonialList\" TagPrefix\x3d\"ucTestimonialList\" \x25\x3e','UCTag==\x3cucTestimonialList\x3aTestimonialList ID\x3d\"TestimonialList_uc1\" runat\x3d\"server\" /\x3e','analyticsTag==\x3c\\x5cscript type\x3d\"text/javascript\"\x3e\\x0avar axel \x3d Math.random\x28\x29 \x2b \"\"\x3b\\x0avar a \x3d axel \x2a 10000000000000\x3b\\x0adocument.write\x28\\x27\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dtesti592\x3bcat\x3dtesti611\x3bord\x3d1\x3bnum\x3d\\x27 \x2b a \x2b \\x27?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"/\x3e\\x27\x29\x3b\\x0a\x3c\\x5c/script\x3e\\x0a\x3cnoscript\x3e\\x0a\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dtesti592\x3bcat\x3dtesti611\x3bord\x3d1\x3bnum\x3d1?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"\x3e\\x0a\x3c/noscript\x3e','mainNavigation==TRUE','menuStyle==TOP_NAV','secondaryUrlVariableField==copy');
g_navNode_2=g_navNode_Root.addNode('644','Purina Mills\x3cBR\x3eNews',ssUrlPrefix + 'news/default.aspx','AddThis_Description==Find Purina Mills news if you are a pet food distributor, feed dealer or livestock feed store owner. Read about our latest livestock nutrition products.','AddThis_Keywords==livestock feed, feed dealer, pet food distributor, livestock nutrition, purina mills','AddThis_Title==Livestock Feed Dealer, Pet Food Distributor, Nutrition, Purina Mills','DynamicListQuery==xWebsites \x3ccontains\x3e \x60PurinaMain\x60 \x3cAND\x3e  \x28\x28xWebsiteObjectType \x3cmatches\x3e \x60Data File\x60  \x3cAND\x3e  xRegionDefinition \x3csubstring\x3e \x60PURINA_NEWS_GEN_RD\x60\x29 \x3cOR\x3e  \x28xWebsiteSection \x3cmatches\x3e \x60PurinaMain\x3a644\x60 \x3cAND\x3e dExtension \x3csubstring\x3e \x60pdf\x60\x29 \x3cOR\x3e \x28xWebsiteSection \x3cmatches\x3e \x60PurinaHorse\x3a660\x60 \x3cAND\x3e dExtension \x3csubstring\x3e \x60pdf\x60\x29\x29','analyticsTag==\x3c\\x5cscript type\x3d\"text/javascript\"\x3e\\x0avar axel \x3d Math.random\x28\x29 \x2b \"\"\x3b\\x0avar a \x3d axel \x2a 10000000000000\x3b\\x0adocument.write\x28\\x27\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dnewsj651\x3bcat\x3dnewsc693\x3bord\x3d1\x3bnum\x3d\\x27 \x2b a \x2b \\x27?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"/\x3e\\x27\x29\x3b\\x0a\x3c\\x5c/script\x3e\\x0a\x3cnoscript\x3e\\x0a\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dnewsj651\x3bcat\x3dnewsc693\x3bord\x3d1\x3bnum\x3d1?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"\x3e\\x0a\x3c/noscript\x3e','mainNavigation==TRUE','menuStyle==TOP_NAV','secondaryUrlVariableField==copy');
g_navNode_3=g_navNode_Root.addNode('645','Ask Our\x3cBR\x3eExperts',ssUrlPrefix + 'askourexperts/default.aspx','AddThis_Description==Ask our animal health experts about animal feed questions before going to pet food stores. Learn what to look for at your local feed store.','AddThis_Keywords==animal health, feed store, purina dealers, animal feed, pet food stores','AddThis_Title==Animal Health, Feed Store, Purina Dealers, Pet Food Stores','UCRegister==\x3c\x25\x40 Register Src\x3d\"\x7e/DotNetComponents/ContactUs/ContactUs_UC.ascx\" TagName\x3d\"ContactUs_UC\" TagPrefix\x3d\"ucContactUs\" \x25\x3e ','UCTag==\x3cucContactUs\x3aContactUs_UC ID\x3d\"ContactUs1\" runat\x3d\"server\" /\x3e','analyticsTag==\x3c\\x5cscript type\x3d\"text/javascript\"\x3e\\x0avar axel \x3d Math.random\x28\x29 \x2b \"\"\x3b\\x0avar a \x3d axel \x2a 10000000000000\x3b\\x0adocument.write\x28\\x27\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3daskex749\x3bcat\x3daskou927\x3bord\x3d1\x3bnum\x3d\\x27 \x2b a \x2b \\x27?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"/\x3e\\x27\x29\x3b\\x0a\x3c\\x5c/script\x3e\\x0a\x3cnoscript\x3e\\x0a\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3daskex749\x3bcat\x3daskou927\x3bord\x3d1\x3bnum\x3d1?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"\x3e\\x0a\x3c/noscript\x3e','mainNavigation==TRUE','menuStyle==TOP_NAV');
g_navNode_4=g_navNode_Root.addNode('646','Video\x3cBR\x3eLibrary ',ssUrlPrefix + 'videolibrary/default.aspx','AddThis_Description==Watch videos on animal food from the Purina store. See information for a Purina feed dealer or a Purina feed store owner. Learn more about feed manufacturer news.','AddThis_Keywords==purina feed dealer, purina feed store, feed manufacturer, animal food, purina store','AddThis_Title==Purina Feed Dealer, Animal Food Manufacturer, Store','analyticsTag==\\x0a\x3c\\x5cscript language\x3d\"JavaScript\" type\x3d\"text/javascript\"\x3e\\x0a    var axel \x3d Math.random\x28\x29 \x2b \"\"\x3b\\x0a    var a \x3d axel \x2a 10000000000000\x3b\\x0a    document.write\x28\\x27\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dvideo037\x3bcat\x3dvideo448\x3bord\x3d1\x3bnum\x3d\\x27 \x2b a \x2b \\x27?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"/\x3e\\x27\x29\x3b\\x0a\x3c\\x5c/script\x3e\\x0a\x3cnoscript\x3e\\x0a\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3dvideo037\x3bcat\x3dvideo448\x3bord\x3d1\x3bnum\x3d1?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"/\x3e\\x0a\x3c/noscript\x3e','mainNavigation==TRUE','menuStyle==TOP_NAV');
g_navNode_5=g_navNode_Root.addNode('647','Checkerboard\x3cBR\x3eStore',ssUrlPrefix + 'checkerboardstore/default.aspx','linkOnly==http\x3a//www.checkerboardstore.net','mainNavigation==TRUE','menuStyle==TOP_NAV');
g_navNode_6=g_navNode_Root.addNode('649','Purina Difference\x3cBR\x3eRewards',ssUrlPrefix + 'Rewards/default.aspx','AddThis_Description==Earn Rewards points when you buy Purina Chow or other animal food from a feed store. Get coupons and free information for shopping at your Purina feed dealer.','AddThis_Keywords==feed distributor, purina chow, feed store, feed dealer, feed dealers','AddThis_Thumbnail==/stellent/groups/public/\x40purinasites/documents/web_content/ecmd2-0033312.jpg','AddThis_Title==Feed Distributor, Dealer, Purina Chow Store, Dealers','UCRegister2==\x3c\x25\x40 Register Src\x3d\"\x7e/DotNetComponents/Membership/Login.ascx\" TagName\x3d\"MemberLogin\" TagPrefix\x3d\"ucMemberLogin\" \x25\x3e','UCTag2==\x3cucMemberLogin\x3aMemberLogin ID\x3d\"Login1\" runat\x3d\"server\" /\x3e','analyticsTag==\x3c\\x5cscript type\x3d\"text/javascript\"\x3e\\x0avar axel \x3d Math.random\x28\x29 \x2b \"\"\x3b\\x0avar a \x3d axel \x2a 10000000000000\x3b\\x0adocument.write\x28\\x27\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3drewar240\x3bcat\x3drewar711\x3bord\x3d1\x3bnum\x3d\\x27 \x2b a \x2b \\x27?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"/\x3e\\x27\x29\x3b\\x0a\x3c\\x5c/script\x3e\\x0a\x3cnoscript\x3e\\x0a\x3cimg src\x3d\"http\x3a//ad.doubleclick.net/activity\x3bsrc\x3d3033331\x3btype\x3drewar240\x3bcat\x3drewar711\x3bord\x3d1\x3bnum\x3d1?\" width\x3d\"1\" height\x3d\"1\" alt\x3d\"\"\x3e\\x0a\x3c/noscript\x3e','mainNavigation==TRUE','menuStyle==TOP_NAV');

