﻿// JavaScript Document
<!--

var furl = document.URL;
var url = furl.substring(furl.lastIndexOf('\/'));
if(url == null || url == "/"){ url = '/index.html'; }
var nextpid = null;
var backpid = null;
var pgArray = new Array ();//("index.html","glacier_products.html","glacier_quality.html","FAQs.html","media_room.html","glacier_in_the_news.html","press_releases.html","media_kit.html","environmental_impact.html","contact_us.html","investors.html","retailer_resources.html","tips.html","did_you_know.html","careers.html","esp.html","factsheets.html","about_us.html","company_profile.html");

pgArray[0] = Array(1,0, "glacier_products.html", "Glacier Products");
pgArray[1] = Array(1,1, "glacier_quality.html", "Glacier Quality");
pgArray[2] = Array(1,2, "FAQs.html", "FAQs");
pgArray[3] = Array(2,0, "media_room.html", "Media Room");
//pgArray[4] = Array(2,1, "glacier_in_the_news.html", "Glacier in the News");
//pgArray[5] = Array(2,2, "press_releases.html", "Press Releases");
//pgArray[6] = Array(2,3, "media_kit.html", "Media Kit");
pgArray[4] = Array(3,0, "environmental_impact.html", "Environmental Impact");
//pgArray[5] = Array(3,1, "tips.html", "Tips: Reduce Your Water Waste");
pgArray[5] = Array(4,0, "tips.html", "Tips: Reduce Your Water Waste");
pgArray[6] = Array(5,0, "investors.html", "Investors");
pgArray[7] = Array(5,1, "investor_updates.html", "Investor Updates");
pgArray[8] = Array(6,0, "esp.html", "Habla Espanol");
pgArray[9] = Array(7,0, "about_us.html", "About Us");
pgArray[10] = Array(7,1, "company_profile.html", "Company Profile");
pgArray[11] = Array(8,0, "", "");
	
Array.prototype.inArray = function(arrValue){
	var x = 0;
	for(var i in this){	
		if("/"+this[i][2] === arrValue) {
			return x; 
			alert("found => "+pgArray[x][3]); 
		} 
		x++; 
	}
	return arrValue;		
}	

function _getSubNav(isImg){

}

//-->

















