function resetForm(){
	location.reload()
}

if(document.images){
	var nav_on = new Image();
	nav_on.src = "/nav/images/on_box.gif";
	var nav_off = new Image();
	nav_off.src = "/nav/images/off_box.gif";
	
	var sub_on = new Image();
	sub_on.src = "/nav/images/sub_on.gif";
	var sub_off = new Image();
	sub_off.src = "/nav/images/sub_off.gif";
}
function navRoll(rollPoss,direction,keepOn){
	if(direction == "on" && rollPoss != keepOn){
		document.images[rollPoss].src = nav_on.src;
	}
	else if(direction == "off" && rollPoss != keepOn){
		document.images[rollPoss].src = nav_off.src;
	}
	else{
		return;
	}
}
function subRoll(rollPoss,direction,SkeepOn){
	if(direction == "on" && rollPoss != SkeepOn){
		document.images[rollPoss].src = sub_on.src;
	}
	else if(direction == "off" && rollPoss != SkeepOn){
		document.images[rollPoss].src = sub_off.src;
	}
	else{
		return;
	}
}

//##############################################################################
//#########                                                            #########
//#########      if you need to change the menu itmes all you          #########
//#########      need to do is add it to end of the list               #########
//#########                                                            #########
//#########      + if you need to remove an item just set the frist    #########
//#########        item to "" (blank) and the function will not        #########
//#########        write anything for that item and you will not       #########
//#########        to change the number on every page.                 #########
//#########                                                            #########
//##############################################################################




var menuItems = new Array();
var urlLinks = new Array();
// SET ORDER HERE ie if you want #11 of your array after # 2 set it to this new Array(0,1,2,11,3,4,5,6,7,8,9,10)
var setToPlace = new Array(0,1,2,3,4,5,6,7,8,9,10);


// ##### nav posstion 0 ##########
menuItems[0] = new Array();
urlLinks[0] = new Array();
menuItems[0][0] = "Anbesol Home";							urlLinks[0][0] = "/index.asp";

// ##### nav posstion 1 ##########
menuItems[1] = new Array();
urlLinks[1] = new Array();
menuItems[1][0] = "Toothaches";								urlLinks[1][0] = "/tooth/index.asp";

// ##### nav posstion 2 ##########
menuItems[2] = new Array();
urlLinks[2] = new Array();
menuItems[2][0] = "Canker Sores";							urlLinks[2][0] = "/canker/index.asp"

// ##### nav posstion 3 ##########
menuItems[3] = new Array();
urlLinks[3] = new Array();
menuItems[3][0] = "Cold Sores";								urlLinks[3][0] = "/coldsore/index.asp"

// ##### nav posstion 4 ##########
menuItems[4] = new Array();
urlLinks[4] = new Array();
menuItems[4][0] = "Dentures";								urlLinks[4][0] = "/dentures/index.asp"

// ##### nav posstion 5 ##########
menuItems[5] = new Array();
urlLinks[5] = new Array();
menuItems[5][0] = "Braces";									urlLinks[5][0] = "/braces/index.asp"

// ##### nav posstion 6 ##########
menuItems[6] = new Array();
urlLinks[6] = new Array();
menuItems[6][0] = "Teething";								urlLinks[6][0] = "/baby/index.asp"


// ##### nav posstion 7 ##########
menuItems[7] = new Array();
urlLinks[7] = new Array();
menuItems[7][0] = "Buy Online";								urlLinks[7][0] = "/buyonline/index.asp"

// ##### nav posstion 8 ##########
menuItems[8] = new Array();
urlLinks[8] = new Array();
menuItems[8][0] = "Find A Store Near You";					urlLinks[8][0] = "/findstore/index.asp"

// ##### nav posstion 8 ##########
menuItems[9] = new Array();
urlLinks[9] = new Array();
menuItems[9][0] = "Wyeth Special Offers";					urlLinks[9][0] = "Javascript: SpecialOffers()"

//function to write out the nav.
function MakeNav(keepOn,subOn){
	stayOn = "n"+keepOn
	document.write('<table border="0" cellspacing="2" cellpadding="0" width="160">');
	// loop through to make the main nav items
	for(var m=0; m<menuItems.length;m++){
		i = setToPlace[m]
		if(menuItems[i][0] != ""){
		// set up the rollover function and put in the image name for each of the main nav items
		navID = "n"+i;
		onFunck = "navRoll('"+navID+"','on',stayOn);";
		offFunck = "navRoll('"+navID+"','off',stayOn);";
		//check to see if one of the main nav items should be lite up
		if(keepOn == i){
			document.write('<tr>');
			document.write('	<td width="30" valign="top" align="right"><img src="/nav/images/on_box.gif" width="9" height="9" border="0" alt="" hspace="3" vspace="2" name="'+navID+'"></td>');
			document.write('	<td width="130"><a href="'+urlLinks[i][0]+'" class="gnavOn" onmouseover="'+onFunck+'" onmouseout="'+offFunck+'">'+menuItems[i][0]+'</a></td>');
			document.write('</tr>');
			document.write('<tr>');
			document.write('	<td colspan="2"><img src="/images/dot.gif" width="1" height="5" border="0" alt=""></td>');
			document.write('</tr>');
		}// end check to see if main nav should be lite up
		// if main nav is not lite up
		else{
			
			document.write('<tr>');
			document.write('	<td width="30" valign="top" align="right"><img src="/nav/images/off_box.gif" width="9" height="9" border="0" alt="" hspace="3" vspace="2" name="'+navID+'"></td>');
			document.write('	<td width="130"><a href="'+urlLinks[i][0]+'" class="gnav" onmouseover="'+onFunck+'" onmouseout="'+offFunck+'">'+menuItems[i][0]+'</a></td>');
			document.write('</tr>');
			document.write('<tr>');
			document.write('	<td colspan="2"><img src="/images/dot.gif" width="1" height="5" border="0" alt=""></td>');
			document.write('</tr>');
		}// end else
		}
	}// end main nav lite up loop
	document.write('<tr><td><img src="/images/dot.gif" width="30" height="1" border="0" alt=""></td><td><img src="/images/dot.gif" width="130" height="1" border="0" alt=""></td></tr>')
	document.write('</table>');
}// end function