//////////////////////////////////////////////////////////////////
/////////////////////Var Initialization///////////////////////////
//////////////////////////////////////////////////////////////////


var CssPath = "../Script/"; //path to style sheets
var NavPath = "../NavImages/";



var	ImgRay = 0;
var	LinkRay = 0;
var xPos=86;

if(!document.all)xPos = xPos + 7;

HomHead = new NavHead("homeb_", "../default.htm", 21, 50);
HomDesc = new NavDesc(0,0,0);
HomCon = new NavCon(ImgRay, LinkRay,  21, 50);
HomNav = new NavObject(HomHead, HomDesc, HomCon, -1000, xPos, 0, "#660033");


if(isSupported)
{
	ImgRay = new Array( "about_","activinfaq_","shopact_");
	LinkRay = new Array("aboutact.html","../activinfaqs.html","../about.html#shop");
}
AbtHead = new NavHead("activin_", "../aboutact.html", 21, 59);
AbtDesc = new NavDesc("desc_", 0, 0);
AbtCon = new NavCon(ImgRay, LinkRay,  21, 100);
AbtNav = new NavObject(AbtHead, AbtDesc, AbtCon, 123, xPos, 100, "#660033");

	ImgRay = 0;	LinkRay = 0;

PrsHead = new NavHead("press_", "../press.html", 21, 73);
PrsDesc = new NavDesc("desc_", 0, 0);
PrsCon = new NavCon(ImgRay, LinkRay,  21, 73);
PrsNav = new NavObject(PrsHead, PrsDesc, PrsCon, -1000, xPos, 73, "#660033");


if(isSupported)
{
	ImgRay = new Array("linksND_", "linksNS_", "LinksFD_", "linksNN_");
	LinkRay = new Array("http://ods.od.nih.gov/databases/ibids.html", "http://ods.od.nih.gov/index.asp", "http://vm.cfsan.fda.gov/~dms/supplmnt.html", "http://www.nnfa.org/services/science/grapeseed_09-01.htm");
}
LnkHead = new NavHead("linksb_", "#", 21, 50);
LnkDesc = new NavDesc("desc_", 0, 0);
LnkCon = new NavCon(ImgRay, LinkRay,  21, 140);
LnkNav = new NavObject(LnkHead, LnkDesc, LnkCon, 250, xPos, 140, "#660033");

if(isSupported)
{
	ImgRay = new Array("contact_");
	LinkRay = new Array("../contact.html");
}
PrdHead = new NavHead("dcni_", "../aboutdcni.html", 21, 81);
PrdDesc = new NavDesc("desc_", 0, 0);
PrdCon = new NavCon(ImgRay, LinkRay,  21, 81);
PrdNav = new NavObject(PrdHead, PrdDesc, PrdCon, 332, xPos, 81, "#660033");


if(isSupported)
{
	LinkRay = new Array(HomNav, AbtNav, PrsNav, LnkNav, PrdNav);
}
	MainNav = new NavControl(NavPath, LinkRay, "MainNav");

		//If Supported, create styles for navigation.
if(isSupported)
{
	MainNav.CreateStyles();
}


	//add stylesheets
WriteCSS(CssPath);




