<!--
var cmdatautilsVersion = "1.7";
var cmDt = new Date();var cmTimeStamp = cmDt.getTime();var cmRandom;var cmOnChangeCounter = 0;var cmOnChangeTextBoxName = new Array();var cmOnChangePointer = new Array();var cmOnChangeFirst = new Array();var cmAppName;var cmAppStepNumber;var cmAppStepName;function cmSetProduction(){	cm_HOST="www3.rei.com/eluminate?";};function cmCreateTechPropsTag(pageID, categoryID, cookieID) {	if (pageID) {	var cm=new _cm("tid", "6", "vn2", "e3.1");	cm.pc="Y";	cm.pi = pageID;	cm.cg = categoryID;	cm.pv1 = cookieID;	if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.addTP();	cm.writeImg();	}};function cmCreatePageviewTag(pageID, searchString, categoryID, searchResults, cookieID) {	if (pageID == null) {	pageID = getDefaultPageID();	}	var cm = new _cm("tid", "1", "vn2", "e3.1");	cm.pi = pageID;	cm.se = searchString;	cm.cg = categoryID;	cm.pv1 = cookieID;	cm.sr = searchResults;	if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.writeImg();};function cmCreateDefaultPageviewTag() {	cmCreatePageviewTag(getDefaultPageID(), null, null, null);};function cmCreateProductviewTag(productID, productName, brand, categoryID, cookieID) {	var cm = new _cm("tid", "5", "vn2", "e3.1");	if (productName == null) {	productName = "";	}	if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.pv1 = cookieID;	cm.pr = productID;	cm.pm = productName;	cm.cg = categoryID;	cm.pc = "Y";	cm.pi = "PRODUCT: " + productName + " " + brand + " (" + productID + ")";	cm.writeImg();};var cmShopProducts = new Array();var cmShopIds = new Array();var cmShopCats = new Array();var cmShopQtys = new Array();var cmShopPrices = new Array();var cmShopSKUs = new Array();var cmShopCounter = 0;var cmShopOrderIds = new Array();var cmShopCustomerIds = new Array();var cmShopOrderPrices = new Array();function cmGetProductIndex(id){	var i =0;	for (i=0; i<cmShopCounter; i++)
{	if (id==cmShopIds[i])
{	return i;	}	}	return -1;};function cmCreateShopAction5Tag(productID, productName, productQuantity, productPrice, categoryID) {	var index = cmGetProductIndex(productID);	if(index!=-1){	var oldPrice = cmShopPrices[index];	var oldQty = cmShopQtys[index];	var newQty = oldQty + parseInt(productQuantity);	var newPrice = (oldPrice*oldQty + parseInt(productQuantity)*parseFloat(productPrice))/(newQty);	cmShopPrices[index] = newPrice;	cmShopQtys[index] = newQty;	} else {	if (!categoryID) {	categoryID = "";	}	cmShopProducts[cmShopCounter] = productName;	cmShopIds[cmShopCounter] = productID;	cmShopCats[cmShopCounter] = categoryID;	cmShopQtys[cmShopCounter] = parseInt(productQuantity);	cmShopPrices[cmShopCounter] = parseFloat(productPrice);	cmShopCounter++;	}};function cmDisplayShop5s(){	var i;	for(i=0; i<cmShopCounter;i++){	var cm = new _cm("tid", "4", "vn2", "e3.1");	cm.at = "5";	cm.pr = cmShopIds[i];	cm.pm = cmShopProducts[i];	cm.cg = cmShopCats[i];	cm.qt = cmShopQtys[i] ;	cm.bp = cmShopPrices[i];	cm.pc = "N";	if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.writeImg();	}	cmShopCounter=0;};function cmCreateShopAction9Tag(productID, productName, productQuantity,
productPrice, customerID, orderID,
orderTotal, categoryID) {	var index = cmGetProductIndex(productID);	if(index!=-1){	var oldPrice = cmShopPrices[index];	var oldQty = cmShopQtys[index];	var newQty = oldQty + parseInt(productQuantity);	var newPrice = (oldPrice*oldQty + parseInt(productQuantity)*parseFloat(productPrice))/(newQty);	cmShopPrices[index] = newPrice;	cmShopQtys[index] = newQty;	cmShopSKUs[index] = "|" + productID + "|" + newPrice + "|" + newQty + "|";	} else {	if (!categoryID) {	categoryID = "";	}	cmShopProducts[cmShopCounter] = productName;	cmShopIds[cmShopCounter] = productID;	cmShopOrderIds[cmShopCounter] = orderID;	cmShopOrderPrices[cmShopCounter] = orderTotal;	cmShopCustomerIds[cmShopCounter] = customerID;	cmShopCats[cmShopCounter] = categoryID;	cmShopQtys[cmShopCounter] = parseInt(productQuantity);	cmShopPrices[cmShopCounter] = parseFloat(productPrice);	cmShopSKUs[cmShopCounter] = "|" + productID + "|" + productPrice + "|" + productQuantity + "|";	cmShopCounter++;	}};function cmDisplayShop9s(){	var i;	for(i=0; i<cmShopCounter;i++){	var cm = new _cm("tid", "4", "vn2", "e3.1");	cm.at = "9";	cm.pr = cmShopIds[i];	cm.pm = cmShopProducts[i];	cm.cg = cmShopCats[i];	cm.qt = cmShopQtys[i] ;	cm.bp = cmShopPrices[i];	cm.cd = cmShopCustomerIds[i];	cm.on = cmShopOrderIds[i];	cm.tr = cmShopOrderPrices[i];	if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.pc = "N";	cm.writeImg();	}	cmShopCounter=0;};function cmCreateOrderTag(orderID, orderTotal, orderShipping, customerID, customerZIP) {	var cm = new _cm("tid", "3", "vn2", "e3.1");	cm.on = orderID;	cm.tr = orderTotal;	cm.osk = getOSK();	cm.sg = orderShipping;	cm.cd = customerID;	cm.zp = customerZIP;	if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.writeImg();};function getOSK() {	var i =0;	var result = "";	for (i=0; i<cmShopCounter; i++)
{	result += cmShopSKUs[i];	}	return result;};function cmCreateRegistrationTag(customerID, customerEmail, customerZIP, coopNum, reiCookie,
newsletterName, subscribe) {	var cm = new _cm("tid", "2", "vn2", "e3.1");	cm.cd = customerID;	cm.em = customerEmail;	cm.zp = customerZIP;	cm.rg1 = coopNum;	cm.rg2 = reiCookie;	if (newsletterName && subscribe) {	cm.nl = newsletterName;	cm.sd = subscribe;	}	if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.writeImg();};function cmCreateErrorTag() {	var cm=new _cm("tid", "404", "vn2", "e3.1"); if (parent.cm_ref != null) {	cm.rf = parent.cm_ref;	parent.cm_ref = document.URL;	}	cm.pc = "Y";	cm.pi = getDefaultPageID();	cm.writeImg();};function cmReportLoadTime(pageID, categoryID) {	var dt = new Date();	if (pageID == null) {	pageID = getDefaultPageID();	}	var cm = new _cm("tid", "7", "vn2", "e3.1");	cm.li = "12358";	cm.ps1 = pageID;	cm.ps2 = categoryID;	cm.ps3 = cm_date.getTime();	cm.ps4 = cmT2;	cm.writeImg();};function cmCreateFormFieldTag(appName, appStepNumber, appStepName, categoryID) {	cmAppName = appName;	cmAppStepNumber = appStepNumber;	cmAppStepName = appStepName;	cmCreateApplicationStepTag(appName, appStepNumber, appStepName, categoryID);	cmSetupFormFieldTags();};function getDefaultPageID() {	var pageName = window.location.pathname;	var tempIndex1 = pageName.indexOf("?");	if (tempIndex1 != -1) {	pageName = pageName.substr(0, tempIndex1);	}	var tempIndex2 = pageName.indexOf("#");	if (tempIndex2 != -1) {	pageName = pageName.substr(0, tempIndex2);	}	var tempIndex3 = pageName.indexOf(";");	if (tempIndex3 != -1) {	pageName = pageName.substr(0, tempIndex3);	}	var slashPos = pageName.lastIndexOf("/");	if (slashPos == pageName.length - 1) {	pageName = pageName + "default.asp"; }	while (pageName.indexOf("/") == 0) {	pageName = pageName.substr(1,pageName.length);	}	return(pageName);};function cmCreateApplicationStepTag(appName, appStepNumber, appStepName, category){	var dt=new Date();	cmRandom = dt.getTime()%10000000;	var cm = new _cm("tid", "7", "vn2", "e3.1");	cm.li = 210000;	cm.ps1= appName;	cm.ps2 = appStepNumber;	cm.ps3 = appStepName;	cm.ps4 = cmRandom;	if(category) {	cm.ps5= category.toUpperCase();	}	cm.ps15 = cmTimeStamp;	cm.writeImg();};function cmSetupFormFieldTags(){	var dt=new Date();	cmRandom = dt.getTime()%10000000;	for (var i=0;i<document.forms.length; i++){	for (var j=0;j<document.forms[i].elements.length; j++)
{	if (document.forms[i].elements[j].type=="text")
{	if(document.forms[i].elements[j].value==""){	cmCheckForOnChange(document.forms[i].elements[j]);	} else {	cmSendFormFieldTag(document.forms[i].elements[j].name);	}	}	}	}};function cmCheckForOnChange(textbox){	cmOnChangeTextBoxName[cmOnChangeCounter] = textbox.name;	cmOnChangePointer[cmOnChangeCounter] = textbox.onchange;	cmOnChangeFirst[cmOnChangeCounter] = true;	textbox.onchange = new Function("cmMultipleOnChange(" + cmOnChangeCounter + ");");	cmOnChangeCounter++;};function cmSendFormFieldTag(name){	var cm = new _cm("tid", "7", "vn2", "e3.1");	cm.li = 210001;	cm.ps1 = cmAppName;	cm.ps2 = cmAppStepNumber;	cm.ps3 = cmAppStepName;	cm.ps4 = cmRandom;	cm.ps5 = name;	cm.ps15 = cmTimeStamp;	cm.writeImg();};function cmMultipleOnChange(id){	if (cmOnChangeFirst[id]){	cmSendFormFieldTag(cmOnChangeTextBoxName[id]);	cmOnChangeFirst[id] = false;	}	if (cmOnChangePointer[id]!=null){	cmOnChangePointer[id]();	}};if (!cmHandleLinkClick) { var cmHandleLinkClick = C9; }function cmCreateManualLinkClickTag(in_href, in_link_name) {	var e = new Object();	e.tagName = "A";	e.href = in_href; e.name = in_link_name;	cmHandleLinkClick(e); };if (defaultNormalize == null) { var defaultNormalize = null; }function myNormalizeURL(url, isHref) { var newURL = url; if(isHref) {	if(url.indexOf("http://") == 0 || url.indexOf("https://") == 0) {	newURL = newURL.substring(newURL.indexOf("://")+3);	newURL = newURL.substring(newURL.indexOf("/"));	} } var blackList = ["krypto=","orderId=","currency="]; var paramString; var paramIndex = newURL.indexOf("?"); var params; var keepParams = new Array(); var goodParam; if (paramIndex > 0) {	paramString = newURL.substring(paramIndex+1);	newURL = newURL.substring(0, paramIndex);	params = paramString.split("&");	for(var i=0; i<params.length; i++) {	goodParam = true;	for(var j=0; j<blackList.length; j++) {	if (params[i].indexOf(blackList[j]) == 0) {	goodParam = false;	}	}	if(params[i].indexOf("query=") == 0) {	params[i] = params[i].substring(0, 26);	}	if(goodParam == true) {	keepParams[keepParams.length] = params[i];	}	}	newURL += "?" + keepParams.join("&");	} if (defaultNormalize != null) { newURL = defaultNormalize(newURL, isHref); } return newURL;};if (document.cmTagCtl != null) { var func = "" + document.cmTagCtl.normalizeURL; if (func.indexOf('myNormalizeURL') == -1) { defaultNormalize = document.cmTagCtl.normalizeURL; document.cmTagCtl.normalizeURL = myNormalizeURL; }}//-->

