<!--
/* You may give each page an identifying name, server, and channel on
the next lines. */

s.pageName= document.title;        /*Assign Unique title to each web page*/
s.server=window.location.hostname;
s.channel="";
s.hier1="";

/* E-commerce Variables */
if (s.getQueryParam('wm_kwID') != "")
{
            s.campaign=s.getQueryParam('wm_kwID');
}


var strURL = location.href;
strURL=strURL.toLowerCase();

qPos=strURL.indexOf('#');

if (qPos>-1)
{
	strURL=strURL.substring(0,qPos);
}
else
{
	strURL=location.href.toLowerCase();
}

var qsStep = s.getQueryParam('Step').toLowerCase();
var qsID = s.getQueryParam('ID').toLowerCase();
var qsPageAction = s.getQueryParam('PageAction').toLowerCase();
var qsSection = s.getQueryParam('Section').toLowerCase();
var qsPage = s.getQueryParam('Page').toLowerCase();
var qsEnt = s.getQueryParam('Ent').toLowerCase();
var filename = window.location.href;


if (filename.indexOf("/",8)>-1)
{
	filename = filename.substr(filename.indexOf("/",8)+1).toLowerCase();
}
else {
	filename = "";
}
if (filename.indexOf("?")>-1)
{
	parpos=filename.indexOf("?");
	filename=filename.substring(0,parpos);
}

if ((filename=="index.html")||(filename==""))
{
	s.pageName="AngelBeds Home Page";
	s.channel="Home";
	s.hier1="Home";
}


if (qsID == "82")
{
	s.pageName= "Product: 8in Traditional";
	s.products= "Mattresses;8in Traditional";
	s.events="prodView";
}

if (qsID == "84")
{
	s.pageName= "Product: 9in Modern Mattress";
	s.products= "Mattresses;9in Modern Mattress";
	s.events="prodView";
}

if (qsID == "86")
{
	s.pageName= "Product: 10in Luxury Mattress";
	s.products= "Mattresses;10in Luxury Mattress";
	s.events="prodView";
}

if (qsID == "88")
{
	s.pageName= "Product: 11in Riviera Mattress";
	s.products= "Mattresses;11in Riviera Mattress";
	s.events="prodView";
}

if (qsID == "90")
{
	s.pageName= "Product: 11in Europa Mattress";
	s.products= "Mattresses;11in Europa Mattress";
	s.events="prodView";
}

if (qsID == "92")
{
	s.pageName= "Product: 13.5in Celebration II Mattress";
	s.products= "Mattresses;13.5in Celebration II Mattress";
	s.events="prodView";
}

if (qsID == "94")
{
	s.pageName= "Product: 15in Grandeur Mattress";
	s.products= "Mattresses;15in Grandeur Mattress";
	s.events="prodView";
}

if (qsID == "83")
{
	s.pageName= "Customize Product: 8in Traditional Mattress";
}

if (qsID == "85")
{
	s.pageName= "Customize Product: 9in Modern Mattress";
}

if (qsID == "87")
{
	s.pageName= "Customize Product: 10in Luxury Mattress";
}

if (qsID == "89")
{
	s.pageName= "Customize Product: 11in Riviera Mattress";
}

if (qsID == "91")
{
	s.pageName= "Customize Product: 11in Europa Mattress";
}

if (qsID == "93")
{
	s.pageName= "Customize Product: 13.5in Celebration II Mattress";
}

if (qsID == "95")
{
	s.pageName= "Customize Product: 15in Grandeur Mattress";
}

if (qsID == "45")
{
	s.pageName= "Product: Adjustable Frame";
	s.products= "Bed Frame;Adjustable Frame";
	s.events="prodView";
}

if (qsID == "46")
{
	s.pageName= "Product: Mattress Toppers";
	s.products= "Mattress Accessories;Mattress Toppers";
	s.events="prodView";
}

if (qsID == "139")
{
	s.pageName= "Product: 100% Cashmere Throws";
	s.products= "Mattress Accessories;100% Cashmere Throws";
	s.events="prodView";
}

if (qsID == "140")
{
	s.pageName= "Product: Bed Armor Mattress Pad";
	s.products= "Mattress Accessories;Bed Armor Mattress Pad";
	s.events="prodView";
}

if (qsID == "143")
{
	s.pageName= "Product: Protection Plus Mattress Pad";
	s.products= "Mattress Accessories;Protection Plus Mattress Pad";
	s.events="prodView";
}

if (qsID == "141")
{
	s.pageName= "Product: Sealy TrueForm Memory Foam Pillows";
	s.products= "Pillows;Sealy TrueForm Memory Foam Pillows";
	s.events="prodView";
}

if (qsID == "156")
{
	s.pageName= "Product: Grandeur Pillow";
	s.products= "Pillows;Grandeur Pillow";
	s.events="prodView";
}

if (qsID == "142")
{
	s.pageName= "Product: Sealy Pillow Protectors";
	s.products= "Pillows;Sealy Pillow Protectors";
	s.events="prodView";
}

if (qsID == "173")
{
	s.pageName= "Product: Sealy Spring Free Latex Pillow";
	s.products= "Pillows;Sealy Spring Free Latex Pillow";
	s.events="prodView";
}

if (qsID == "145")
{
	s.pageName= "Product: Sealy Best Fit Sheet Set 400 Thread Count";
	s.products= "Mattress Accessories;Sealy Best Fit Sheet Set 400 Thread Count";
	s.events="prodView";
}

if (qsID == "146")
{
	s.pageName= "Product: Dream Solutions Comforter";
	s.products= "Comforters;Dream Solutions Comforter";
	s.events="prodView";
}

if (qsID == "147")
{
	s.pageName= "Product: Polarguard Ultimate Performance Comforter";
	s.products= "Comforters;Polarguard Ultimate Performance Comforter";
	s.events="prodView";
}

if (qsID == "174")
{
	s.pageName= "Product: Flawless Fit Sheet Set for Memory Foam Mattresses";
	s.products= "Sheets;Flawless Fit Sheet Set for Memory Foam Mattresses";
	s.events="prodView";
}

if (qsID == "134")
{
	s.pageName= "Compare Our Beds";
}

if (strURL.indexOf('angelbeds-compared-to-tempurpedic.html')>-1)
{
	s.pageName= "Compare AngelBeds To Tempurpedic";
}

if (strURL.indexOf('moreaboutmattresses/index.html')>-1)
{
	s.pageName= "Learn More About Mattresses";
}

if (strURL.indexOf('moreaboutmattresses/therightmattress.html')>-1)
{
	s.pageName= "Choosing the Right Mattress";
}

if (strURL.indexOf('moreaboutmattresses/memoryfoambenefits.html')>-1)
{
	s.pageName= "Reasons to Buy a Memory Sleep System";
}

if (qsID == "151")
{
	s.pageName= "Angel Foam";
}

if (qsID == "40")
{
	s.pageName= "NASA Technology";
}

if (qsID == "56")
{
	s.pageName= "Cool Air System";
}

if (qsID == "97")
{
	s.pageName= "Testimonials";
}

if (qsID == "96")
{
	s.pageName= "About Our Beds";
}

if (qsID == "60")
{
	s.pageName= "Current Sale Information";
}

if (qsID == "132")
{
	s.pageName= "Foundations";
}

if (qsID == "50")
{
	s.pageName= "Warranty";
}

if (qsID == "51")
{
	s.pageName= "90-Night Rest Test";
}

if (qsID == "59")
{
	s.pageName= "Shipping";
}

if (qsID == "72")
{
	s.pageName= "Financing Plans";
}

if (qsID == "49")
{
	s.pageName= "Company Information/About Us";
}

if (qsID == "52")
{
	s.pageName= "Frequently Asked Questions (FAQ's)";
}

if (qsID == "153")
{
	s.pageName= "Referral Program";
}

if (qsPageAction == "contactus")
{
	s.pageName= "Contact Us";
}

if (qsPageAction == "addprodtocart")
{
	s.events="scOpen, scAdd";
}

if (qsPageAction == "clearcart")
{
	s.events="scRemove";
}

if (qsPageAction == "cartcheckoutlogin")
{
	s.pageName= "Cart Checkout LOGIN";
}

if (qsPageAction == "cartdetails")
{
	s.pageName= "View Shopping Cart";
	s.events="scView";
}

if (qsPageAction == "cartcheckout")
{
	if (s.getQueryParam('Ent') == "0" || qsStep == "1")
	{
		s.pageName= "Checkout-STEP1: Enter Shipping & Billing Information" ;	
		s.events="scCheckout";
	}
	if (qsStep == "2")
	{
		s.pageName= "Checkout-STEP2: Additional Shipping & Payment Information" ;	
	}
	if (qsStep == "3")
	{
		s.pageName= "Checkout-STEP3: Order Options" ;
	}
	if (qsStep == "4")
	{
		s.pageName= "Checkout-STEP4: Review & Payment" ;
	}
}
if (qsPageAction == "checkoutmsg")
{
	s.pageName= "Order Confirmation" ;
	s.events="purchase";
}

if (qsPageAction == "myaccount" && qsSection == "")
{
	s.pageName= "My Account - Home Page";
}

if (qsPageAction == "myaccount" && qsSection == "orders")
{
	s.pageName= "My Account - Order Status";
}

if (qsPageAction == "myaccount" && qsSection == "profile")
{
	s.pageName= "My Account – Update Personal Profile";
}

if (qsPageAction == "myaccount" && qsSection == "changepass")
{
	s.pageName= "My Account - Change Password";
}

if (qsPageAction == "login")
{
	s.pageName= "My Account Login" ;
}

if (qsPageAction == "custreg")
{
	s.pageName= "New Customer Registration" ;
}

if (qsPageAction == "emlpass")
{
	s.pageName= "Forgot Your Password?" ;
}

s.pageType=""
/* E-commerce Variables */

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//--></script>
      <!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//-->