﻿
<!--
        var gDivaPOP = "image;pdf||x|6,,712,400;;;x|x||http://www.inkubook.com";
        //-->
        function GetStarted(themeCategoryId, showLogin) {
            GetStarted(themeCategoryId, showLogin, 1); //default to book to maintain compatability
        }

        function GetStarted(themeCategoryId, showLogin, productTypeId) {

            document.body.style.cursor = "wait";
            var productType = "unknown";
            if (productTypeId == 1) {
                productType = "book";
            }
            else if (productTypeId == 2) {
                productType = "calendar";
            }

            else if (productTypeId == 3) {
                productType = "card";
            }

            //Make wcf service call to log starting a project
            var logMessageProperty = 'User started project for a ' + productType + ' on the marketing page ' + window.location.pathname;
            LogUserActivity('StartProjectMarketingPage', '<StartProjectMarketingPage>' + logMessageProperty + '</StartProjectMarketingPage>');            
            //Need to wait a little bit before we redirect out of this page to allow for our service call to complete
            setTimeout('FireCreatePhotoBookSignUp(' + themeCategoryId + ',' + showLogin +',' + productTypeId + ');', 1500);

        }
        
        function FireCreatePhotoBookSignUp(themeCategoryId, showLogin, productTypeId)
        {
            if (showLogin == true) {
                CreatePhotoBookSignUp(themeCategoryId, productTypeId);
            }
            else {
                CreatePhotoBookSignIn(themeCategoryId, productTypeId);
            }
        }