function fillItems( intStart, intBox ) {


	// -- Products
	if (intBox == 1 ) {
		var fTypes = document.frmNavigation.optProductSpecies
		var fItems = document.frmNavigation.optProducts
		var a = arProducts
			   }
	// -- End Products

	// -- Solutions
	if (intBox == 2 ) {
		var fTypes = document.frmNavigation.optSolutionSpecies
		var fItems = document.frmNavigation.optSolutions
		var a = arSolutions
			  }
	// -- End Solutions

	// -- Services
	if (intBox == 3 ) {
		var fTypes = document.frmNavigation.optServiceSpecies
		var fItems = document.frmNavigation.optServices
		var a = arServices
			 }
	// -- End Services

	var b, c, d,intItem, intType
	if ( intStart > 0 ) {
		for ( b = 0; b < a.length; b++ ) {
			if ( a[b][0] == intStart ) {
				intType = a[b][0];
										}
										  }
		for ( c = 0; c < fTypes.length; c++ ) {
			if ( fTypes.options[ c ].value == intType ) {
				fTypes.selectedIndex = c;
														}
											   }
						}
	if ( intType == null ) {
		intType = fTypes.options[ fTypes.selectedIndex ].value
							}
	fItems.options.length = 0;
	for ( d = 0; d < a.length; d++ ) {
		if ( a[d][0] == intType ) {
			fItems.options[ fItems.options.length ] = new Option( a[d][2], a[d][1] ); // no line-break here
								 }
	if ( a[d][1] == intStart ) {
		fItems.selectedIndex = fItems.options.length - 1;
								}
						}

								}
function Redirect(intBox)
	{

	// -- Products
		if (intBox == 1 ) {
			var fItems = document.frmNavigation.optProducts
			var ErrorMessage = 'Product'
				   }
		// -- End Products

		// -- Solutions
		if (intBox == 2 ) {
			var fItems = document.frmNavigation.optSolutions
			var ErrorMessage = 'Solution'
				  }
		// -- End Solutions

		// -- Services
		if (intBox == 3 ) {
			var fItems = document.frmNavigation.optServices
			var ErrorMessage = 'Service'
				 }
	// -- End Services
	var Destination = fItems.options[ fItems.selectedIndex ].value
	if (Destination != ''){
	window.location = Destination
	}
	else
	{
	alert('Please select a ' + ErrorMessage)
	}
	}
	





var arProducts = new Array()
var arSolutions = new Array()
var arServices = new Array()

// species value list for reference only
// 1=dog
// 2=cat
// 3=livestock cow/calf
// 7=livestock feedlot
// 8=livestock dairy
// 4=swine
// 5=horses
// 6=avian
// 9=wildlife

arProducts = [
[ -1,'', 'Select a Product'],
[ 1,'http://us.merial.com/pet_owners/dogs/products_enacard.asp','ENACARD'],
[ 1,'http://heartgard.us.merial.com/products/products_plus.asp','HEARTGARD'],
[ 1,'http://us.merial.com/pet_owners/dogs/products_recombitek.asp','RECOMBITEK'],
[ 1,'http://us.merial.com/pet_owners/dogs/products_imrab.asp','IMRAB'],
[ 1,'http://frontline.us.merial.com','FRONTLINE'],
[ 1,'http://www.oravet.us.merial.com/','ORAVET'],
[ 1,'http://www.previcox.com/','Previcox'],
[ 1,'http://www.petcancervaccine.com/','Canine Melanoma Vaccine'],
[ 2,'http://heartgard.us.merial.com/products/products_chewables.asp','HEARTGARD'],
[ 2,'http://frontline.us.merial.com','FRONTLINE'],
[ 2,'http://www.oravet.us.merial.com/','ORAVET'],
[ 2,'http://www.purevax.com','PUREVAX'],
[ 2,'http://us.merial.com/pet_owners/cats/products_imrab.asp','IMRAB'],
[ 3,'http://www.corid.com/','CORID'],
[ 3,'http://us.merial.com/producers/cows/products_curatrem.asp','CURATREM'],
[ 3,'http://us.merial.com/producers/cows/products_cystorelin.asp','CYSTORELIN'],
[ 3,'http://ivomec.us.merial.com/cowcalf/products/products_eprinex.asp','EPRINEX'],
[ 3,'http://us.igenity.com','IGENITY'],
[ 3,'http://ivomec.us.merial.com/cowcalf/products/products.asp','IVOMEC'],
[ 3,'http://us.merial.com/producers/cows/products_reliant_4.asp','RELIANT 4'],
[ 3,'http://us.merial.com/producers/cows/products_reliant_plus.asp','RELIANT PLUS'],
[ 3,'http://us.merial.com/producers/cows/products_reliant_plus_bvdk.asp','RELIANT PLUS BVD-K'],
[ 3,'http://us.merial.com/producers/cows/products_reliant_3.asp','RELIANT 3'],
[ 3,'http://us.merial.com/producers/cows/products_respishield_4.asp','REPISHIELD 4'],
[ 3,'http://us.merial.com/producers/cows/products_respishield_4L5.asp','REPISHIELD 4L5'],
[ 3,'http://www.tetradure.com/home.html','TETRADURE 300'],
[ 7,'http://www.corid.com/','CORID'],
[ 7,'http://us.merial.com/producers/feedlot/products_curatrem.asp','CURATREM'],
[ 7,'http://us.merial.com/producers/feedlot/products_eprinex.asp','EPRINEX'],
[ 7,'http://us.igenity.com','IGENITY'],
[ 7,'http://ivomec.us.merial.com/feedlot/products/products.asp','IVOMEC'],
[ 7,'http://us.merial.com/producers/feedlot/products_reliant_4.asp','RELIANT 4'],
[ 7,'http://us.merial.com/producers/feedlot/products_reliant_plus.asp','RELIANT Plus'],
[ 7,'http://us.merial.com/producers/feedlot/products_reliant_plus_bvdk.asp','RELIANT PLUS BVD-K'],
[ 7,'http://us.merial.com/producers/feedlot/products_reliant_3.asp','RELIANT 3'],
[ 7,'http://us.merial.com/producers/feedlot/products_reliant_ibr.asp','RELIANT IBR'],
[ 7,'http://www.tetradure.com/home.html','TETRADURE 300'],
[ 8,'http://www.corid.com/','CORID'],
[ 8,'http://us.merial.com/producers/dairy/products_curatrem.asp','CURATREM'],
[ 8,'http://us.merial.com/producers/dairy/products_cystorelin.asp','CYSTORELIN'],
[ 8,'http://ivomec.us.merial.com/dairy/products/products_eprinex.asp','EPRINEX'],
[ 8,'http://us.igenity.com','IGENITY'],
[ 8,'http://ivomec.us.merial.com/dairy/products/products.asp','IVOMEC'],
[ 8,'http://us.merial.com/producers/dairy/products_JVAC.asp','J-VAC'],
[ 8,'http://us.merial.com/producers/dairy/products_reliant_4.asp','RELIANT 4'],
[ 8,'http://us.merial.com/producers/dairy/products_reliant_plus.asp','RELIANT Plus'],
[ 8,'http://us.merial.com/producers/dairy/products_respishield_4.asp','REPISHIELD 4'],
[ 8,'http://us.merial.com/producers/dairy/products_respishield_4L5.asp','REPISHIELD 4L5'],
[ 8,'http://www.tetradure.com/home.html','TETRADURE 300'],
[ 4,'http://ivomec.us.merial.com/swine/products/products.asp','IVOMEC'],
[ 4,'http://www.tetradure.com/swine.html','TETRADURE'],
[ 5,'http://gastrogard.us.merial.com','GASTROGARD'],
[ 5,'http://www.equinewnv.com','RECOMBITEK West Nile Vaccine'],
[ 5,'http://www.zimecterin.com/home.html','ZIMECTERIN'],
[ 5,'http://www.ulcergard.com','ULCERGARD'],
[ 5,'http://www.equioxx.com','EQUIOXX'],
[ 6,'http://us.merial.com/producers/avian/index.asp','VACCINES'],
[ 9,'http://www.raboral.com/','RABORAL']
		  ]


arSolutions = [
[ -1,'', 'Select a Healthcare Solution'],
[ 1,'http://heartgard.us.merial.com/whyheartgard/why_productcomp.asp', 'Heartworms, Intestinal Parasites'],
[ 1,'http://frontline.us.merial.com/fleas/index.asp', 'Fleas, Ticks, Other Parasites'],
[ 1,'http://www.oravet.us.merial.com/howitworks.html', 'Periodontal Disease Prevention'],
[ 1,'http://us.merial.com/pet_owners/dogs/products_recombitek.asp', 'Distemper'],
[ 1,'http://us.merial.com/pet_owners/dogs/products_imrab.asp', 'Rabies'],
[ 1,'http://us.merial.com/pet_owners/dogs/products_enacard.asp', 'Heart Failure'],
[ 1,'http://www.previcox.com', 'Canine Osteoarthritis'],
[ 1,'http://www.petcancervaccine.com', 'Canine Melanoma'],
[ 2,'http://heartgard.us.merial.com/whyheartgard/why_productcomp.asp', 'Heartworms, Intestinal Parasites'],
[ 2,'http://frontline.us.merial.com/fleas/index.asp', 'Fleas, Ticks, Other Parasites'],
[ 2,'http://www.oravet.us.merial.com/howitworks.html', 'Periodontal Disease Prevention'],
[ 2,'http://www.purevax.com', 'Feline Leukemia'],
[ 2,'http://us.merial.com/pet_owners/cats/products_imrab.asp', 'Rabies'],
[ 3,'http://www.tetradure.com/home.html', 'Bovine Respiratory Disease'],
[ 3,'http://www.tetradure.com/home.html','Bovine Respiratory Syncytial Virus (BRSV)'],
[ 3,'http://www.corid.com', 'Coccidial Infection '],
[ 3,'http://us.merial.com/producers/cows/products_cystorelin.asp','Cystic Ovaries'],
[ 3,'http://us.igenity.com','Genetic Testing'],
[ 3,'http://us.merial.com/producers/cows/products.asp','Infectious Bovine Rhinotracheitis (IBR)'],
[ 3,'http://ivomec.us.merial.com/cowcalf/products/products_ivomec_plus.asp','Liver Flukes'],
[ 3,'http://us.merial.com/producers/cows/products.asp','Parainfluenza 3 (PI3)'],
[ 3,'http://ivomec.us.merial.com/cowcalf/products/products_eprinex.asp','Parasite Control (External)'],
[ 3,'http://ivomec.us.merial.com/cowcalf','Parasite Control (Internal/External)'],
[ 4,'http://ivomec.us.merial.com/swine','Parasite Control (Internal/External)'],
[ 4,'http://www.tetradure.com/swine.html','Respiratory Disease'],
[ 5,'http://www.egus.org', 'Equine Gastric Ulcer Syndrome'],
[ 5,'http://www.ulcergard.com/products/about.asp', 'Stomach Ulcer Prevention'],
[ 5,'http://gastrogard.us.merial.com/equine_ulcers.asp', 'Stomach Ulcer Treatment'],
[ 5,'http://www.zimecterin.com/parasite_control.html', 'Parasite Control'],
[ 5,'http://www.equinewnv.com', 'Equine West Nile Virus'],
[ 5,'http://www.equioxx.com', 'Equine Osteoarthritis'],
[ 6,'http://us.merial.com/producers/avian/index.asp','Vaccines'],
[ 7,'http://www.tetradure.com/home.html', 'Bovine Respiratory Disease'],
[ 7,'http://www.tetradure.com/home.html','Bovine Respiratory Syncytial Virus (BRSV)'],
[ 7,'http://www.corid.com', 'Coccidial Infection '],
[ 7,'http://us.igenity.com','Genetic Testing'],
[ 7,'http://us.merial.com/producers/feedlot/products.asp','Infectious Bovine Rhinotracheitis'],
[ 7,'http://ivomec.us.merial.com/feedlot/products/products_ivomec_plus.asp','Liver Flukes'],
[ 7,'http://us.merial.com/producers/feedlot/products.asp','Parainfluenza 3 (PI3)'],
[ 7,'http://us.merial.com/producers/feedlot/products_eprinex.asp','Parasite Control (External)'],
[ 7,'http://ivomec.us.merial.com/feedlot','Parasite Control (Internal/External)'],
[ 8,'http://www.tetradure.com/home.html', 'Bovine Respiratory Disease'],
[ 8,'http://www.tetradure.com/home.html','Bovine Respiratory Syncytial Virus (BRSV)'],
[ 8,'http://www.corid.com', 'Coccidial Infection '],
[ 8,'http://us.merial.com/producers/dairy/products_cystorelin.asp','Cystic Ovaries'],
[ 8,'http://us.igenity.com','Genetic Testing'],
[ 8,'http://us.merial.com/producers/dairy/products.asp','Infectious Bovine Rhinotracheitis'],
[ 8,'http://ivomec.us.merial.com/dairy/products/products_eprinex.asp','Liver Flukes'],
[ 8,'http://us.merial.com/producers/dairy/products.asp','Parainfluenza 3 (PI3)'],
[ 8,'http://ivomec.us.merial.com/dairy/products/products_eprinex.asp','Parasite Control (External)'],
[ 8,'http://ivomec.us.merial.com/dairy','Parasite Control (Internal/External)'],
[ 9,'http://www.raboral.com/','Rabies']
]


arServices = [
[ -1,'', 'Select a Service'],
[ 1, 'http://us.merial.com/pet_owners/vet_locator_search.asp', 'Find a Veterinarian'],
[ 1, 'http://us.merial.com/pet_owners/login.asp', 'Reminder Services'],
[ 2, 'http://us.merial.com/pet_owners/vet_locator_search.asp', 'Find a Veterinarian'],
[ 2, 'http://us.merial.com/pet_owners/login.asp', 'Reminder Services'],
[ 3, 'http://us.merial.com/producers/vet_locator_search.asp', 'Find a Veterinarian'],
[ 3, 'http://us.igenity.com', 'Genetic Testing'],
[ 4, 'http://us.merial.com/producers/vet_locator_search.asp', 'Find a Veterinarian'],
[ 4, 'http://us.merial.com/producers/swine/hmle.asp', 'HM/LE'],
[ 5, 'http://us.merial.com/equine/vet_locator_search.asp', 'Find a Veterinarian'],
[ 6, 'http://us.merial.com/producers/vet_locator_search.asp', 'Find a Veterinarian'],
[ 7, 'http://us.merial.com/producers/vet_locator_search.asp', 'Find a Veterinarian'],
[ 7, 'http://us.igenity.com', 'Genetic Testing'],
[ 8, 'http://us.merial.com/producers/vet_locator_search.asp', 'Find a Veterinarian'],
[ 8, 'http://us.igenity.com', 'Genetic Testing']
		  ]



// WebTrends Analytics Tracking Code
gVersion="1.3";


var gImages=new Array;
var gIndex=0;
var DCS=new Object();
var WT=new Object();
var DCSext=new Object();

var gDomain="statse.webtrendslive.com";
var gDcsId="dcsa6cyjg21e5hmacahm1zyiz_8w9p";

function dcsMultiTrack(){
	if (arguments.length%2==0){
		for (var i=0;i<arguments.length;i+=2){
			if (arguments[i].indexOf('WT.')==0){
				WT[arguments[i].substring(3)]=arguments[i+1];
			}
			else if (arguments[i].indexOf('DCS.')==0){
				DCS[arguments[i].substring(4)]=arguments[i+1];
			}
			else if (arguments[i].indexOf('DCSext.')==0){
				DCSext[arguments[i].substring(7)]=arguments[i+1];
			}
		}
		var dCurrent=new Date();
		DCS.dcsdat=dCurrent.getTime();
		dcsFunc("dcsCookie");
		dcsTag();
	}
}


function dcsVar(){
	var dCurrent=new Date();
	WT.tz=dCurrent.getTimezoneOffset()/60*-1;
	if (WT.tz==0){
		WT.tz="0";
	}
	WT.bh=dCurrent.getHours();
	WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
	if (typeof(screen)=="object"){
		WT.cd=screen.colorDepth;
		WT.sr=screen.width+"x"+screen.height;
	}
	if (typeof(navigator.javaEnabled())=="boolean"){
		WT.jo=navigator.javaEnabled()?"Yes":"No";
	}
	if (document.title){
		WT.ti=document.title;
	}
	WT.js="Yes";
	if (typeof(gVersion)!="undefined"){
		WT.jv=gVersion;
	}
	WT.sp="";
	DCS.dcsdat=dCurrent.getTime();
	DCS.dcssip=window.location.hostname;
	DCS.dcsuri=window.location.pathname;
	if (window.location.search){
		DCS.dcsqry=window.location.search;
	}
	if ((window.document.referrer!="")&&(window.document.referrer!="-")){
		if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
			DCS.dcsref=window.document.referrer;
		}
	}
}

function A(N,V){
	return "&"+N+"="+dcsEscape(V);
}

function dcsEscape(S){
	if (typeof(RE)!="undefined"){
		var retStr = new String(S);
		for (R in RE){
			retStr = retStr.replace(RE[R],R);
		}
		return retStr;
	}
	else{
		return escape(S);
	}
}

function dcsCreateImage(dcsSrc){
	if (document.images){
		gImages[gIndex]=new Image;
		gImages[gIndex].src=dcsSrc;
		gIndex++;
	}
	else{
		document.write('<IMG BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+dcsSrc+'">');
	}
}

function dcsMeta(){
	var myDocumentElements;
	if (document.all){
		myDocumentElements=document.all.tags("meta");
	}
	else if (document.documentElement){
		myDocumentElements=document.getElementsByTagName("meta");
	}
	if (typeof(myDocumentElements)!="undefined"){
		for (var i=1;i<=myDocumentElements.length;i++){
			myMeta=myDocumentElements.item(i-1);
			if (myMeta.name){
				if (myMeta.name.indexOf('WT.')==0){
					WT[myMeta.name.substring(3)]=myMeta.content;
				}
				else if (myMeta.name.indexOf('DCSext.')==0){
					DCSext[myMeta.name.substring(7)]=myMeta.content;
				}
				else if (myMeta.name.indexOf('DCS.')==0){
					DCS[myMeta.name.substring(4)]=myMeta.content;
				}
			}
		}
	}
}

function dcsTag(){
	var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+(gDcsId==""?'':'/'+gDcsId)+"/dcs.gif?";
	for (N in DCS){
		if (DCS[N]) {
			P+=A(N,DCS[N]);
		}
	}
	for (N in WT){
		if (WT[N]) {
			P+=A("WT."+N,WT[N]);
		}
	}
	for (N in DCSext){
		if (DCSext[N]) {
			P+=A(N,DCSext[N]);
		}
	}
	if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){
		P=P.substring(0,2040)+"&WT.tu=1";
	}
	dcsCreateImage(P);
}

dcsVar();
dcsMeta();
dcsTag();
