if(locationURL.indexOf('/wishlist/')>-1){cmPageID='wishlist : all';}
if(document.getElementById('f2fOutline')){cmPageID='static : f2f';cmCategory='static : all';}
if(document.getElementById('homeWrapper')){cmPageID='homepage';cmCategory='site : all';}
if(locationURL.indexOf('/content/')>-1){cmCategory='static : all';}
if(locationURL.indexOf('/content/')>-1){
	cmPageID=locationURL.replace(/\//g, ' ');
	cmPageID=cmPageID.replace(/https:  www.ross-simons.com content /, '');
	cmPageID=cmPageID.replace(/http:  www.ross-simons.com content /, '');
	cmPageID=cmPageID.replace(/ /g, ' : ');
}
if(locationURL.indexOf('_01_catalogs.htm')>-1){cmCategory='static : catalogs';}
if(locationURL.indexOf('/catalogs/')>-1){cmCategory='static : catalogs';}
if(locationURL.indexOf('_05_retail')>-1){cmCategory='static : retail';}
if(locationURL.indexOf('06_rtl')>-1){cmCategory='static : retail';}

if(document.getElementById('cpDesc')){
	cmPageID=locationURL.replace(/http:\/\/www.ross-simons.com\//, '');
	cmPageID=cmPageID.replace(/.html/g, '');
	cmPageID='jewelry : collection page : ' + cmPageID;
	cmCategory='jewelry : collection page';
}

if((locationURL.indexOf('checkout')>-1) || (document.getElementById('rsCheckout'))){cmCategory='checkout : all';if(cmPageID==null){cmPageID='checkout : all';}}

if((cmCategory=='serp : all') && (cmPageID==' : all')){cmPageID='keyword search : refine';cmCategory='keyword search : all';}

if(locationURL.indexOf('dia_ring-design')>-1){cmCategory='jewelry : build-a-ring';cmPageID='jewelry : build-a-ring : start';}
if(!(window.diaRingBuild)){var diaRingBuild='';}
if(diaRingBuild=='diaSearch'){cmCategory='jewelry : build-a-ring';cmPageID='jewelry : build-a-ring : diamond results';}
if(diaRingBuild=='diaRings'){cmCategory='jewelry : build-a-ring';cmPageID='jewelry : build-a-ring : mounting results';}
if(diaRingBuild=='diaItem'){cmCategory='product : jewelry : build-a-ring : loose-diamonds';}
if(diaRingBuild=='diaCombo'){cmCategory='product : jewelry : build-a-ring : mountings';}

if(!(window.orderHistory)){var orderHistory='';}else{cmCategory='static : order history';}
if(orderHistory=='login'){cmPageID='static : order history : login';}
if(orderHistory=='foundMulti'){cmPageID='static : order history : login';}
if(orderHistory=='pwSent'){cmPageID='static : order history : password';}
if(orderHistory=='pwRequest'){cmPageID='static : order history : password';}
if(orderHistory=='allOrders'){cmPageID='static : order history : view all orders';}
if(orderHistory=='foundNone'){cmPageID='static : order history : order detail';}
if(orderHistory=='orderDetail'){cmPageID='static : order history : order detail';}
if(cmPageID!=null){if(cmPageID.indexOf('order history')>-1){cmCategory='static : order history';}}

//alert('locationURL = '+locationURL+'\ncmPageID = '+cmPageID+'\ncmCategory = '+cmCategory);

if(!(window.cmSearchType)){var cmSearchType='';}

if(locationURL.indexOf('cart.cfm')>-1){
	cmPageID='checkout : cart';
	cmCategory='checkout : all';
	cmCreatePageviewTag(cmPageID,cmCategory,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
	cmDisplayShop5s();
}else if(locationURL.indexOf('ordercomplete')>-1){
	cmPageID='checkout : order confirmation';
	cmCategory='checkout : all';
	cmCreatePageviewTag(cmPageID,cmCategory,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
	cmDisplayShop9s();
	cmCreateOrderTag(rsOrderNum,totProd,totShip,orderEmail,orderCityName,orderStateName,orderZipCode);
	cmCreateRegistrationTag(orderEmail,orderEmail,orderCityName,orderStateName,orderZipCode,null,null);
}else if(document.getElementById('itemDetail')){
	cmCreateProductviewTag(cmItemno,cmItemDesc,cmCategory);
}else if(cmCategory.indexOf('keyword')>-1){
	cmCreatePageviewTag(cmPageID,cmCategory,cmSearchString,cmSearchCount,cmSearchType,cmprodCount,cmBusRule,cmbusRuleNum,cmqueryId,cmmvtParam,queryStringEscape,cmsort,cmlingCorrect,cmdomBusUnit,cmdomCat,cmdomCatId,cmdomBrand,cmMercadoSearchString,cmMercadoSearchCount,null);
}else if(document.getElementById('allRefinements')){
	cmCreatePageviewTag(cmPageID,cmCategory,cmSearchString,cmSearchCount,cmSearchType,cmprodCount,cmBusRule,cmbusRuleNum,cmqueryId,cmmvtParam,queryStringEscape,cmsort,cmlingCorrect,cmdomBusUnit,cmdomCat,cmdomCatId,cmdomBrand,cmMercadoSearchString,cmMercadoSearchCount,cm_explorer);
}else {
	cmCreatePageviewTag(cmPageID,cmCategory,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
}
