var COREMETRICS = new Object();    

 

                        if (typeof COREMETRICS === "undefined") {

                                    COREMETRICS = {};

                        }

 

                        if (typeof COREMETRICS.tagging === "undefined") {

                                    COREMETRICS.tagging = {};

                        }

                        

                        if (typeof COREMETRICS.utils === "undefined") {

                                    COREMETRICS.utils = {};

                        }

 

                        COREMETRICS.tagging = {

                                    // Coremetrics tagging

                                    "categoryID" : "Unknown Category",

                                    "pageName" : "Unknown Page"

                        }

                        

                        COREMETRICS.utils = {

                                    cmCreatePageviewTag : function(pageName, categoryID)

                                    {

                                                if (typeof cmCreatePageviewTag != "undefined")

                                                {

                                                            cmCreatePageviewTag(pageName, categoryID);

                                                }

                                    },

                                    

                                    cmCreateProductviewTag : function(productID, productName, categoryID)

                                    {

                                                if (typeof cmCreateProductviewTag != "undefined")

                                                {

                                                            cmCreateProductviewTag(productID, productName, categoryID);

                                                }

                                    },

                                    

                                    cmCreateShopAction5Tag : function(productID, productName, ReservationDays, UnitPricePerNight, categoryID)

                                    {

                                                if (typeof cmCreateShopAction5Tag != "undefined")

                                                {

                                                            cmCreateShopAction5Tag(productID, productName, ReservationDays, UnitPricePerNight, categoryID);

                                                }

                                    },

                                    

                                    cmCreateShopAction9Tag : function(productId, productName, reservationDays, unitPricePerNight, customerId, bookingConfirmationNumber, bookingTotal, categoryId)

                                    {

                                                if (typeof cmCreateShopAction9Tag != "undefined")

                                                {

                                                            cmCreateShopAction9Tag(productId, productName, reservationDays, unitPricePerNight, customerId, bookingConfirmationNumber, bookingTotal, categoryId);

                                                }

                                    },

                                    

                                    cmCreateRegistrationTag : function(customerId, customerEmail, customerCity, ccustomerState, customerZipCode,customerCountry, newsletterName, subscribedFlag, dateOfBirth)

                                    {

                                                if (typeof cmCreateRegistrationTag != "undefined")

                                                {

                                                            cmCreateRegistrationTag(customerId, customerEmail, customerCity, ccustomerState, customerZipCode,customerCountry, newsletterName, subscribedFlag, dateOfBirth);

                                                }

                                    },

                                    

                                    cmCreateErrorTag : function(pageName, categoryID)

                                    {

                                                if (typeof cmCreateErrorTag != "undefined")

                                                {

                                                            cmCreateErrorTag(pageName, categoryID);

                                                }

                                    },

                                    

                                    cmCreateConversionEventTag : function(eventId, actionType, eventCategoryId, points)

                                    {

                                                if (typeof cmCreateConversionEventTag != "undefined")

                                                {

                                                            cmCreateConversionEventTag(eventId, actionType, eventCategoryId, points);

                                                }

                                    },

                                    

                                    cmCreatePageElementTag : function(elementID, elementCategory, pageName, categoryID, elementLocation)

                                    {

                                                if (typeof cmCreatePageElementTag != "undefined")

                                                {

                                                            cmCreatePageElementTag(elementID, elementCategory, pageName, categoryID, null);

                                                }

                                    }

                        }

