// Auto-Generated JavaScript: Friday, November 25, 2011; 11:23:15am CST
if (typeof SFUI == "undefined" || !SFUI) { var SFUI = {}; }
SFUI.ThisWebsite = {
    // SearchFit
    systemUserId:3,
    storeUrl:"http://www.opticsale.com/",
    scartUrl:"https://www.opticsale.com/scart/public/scart/",
    scartServicesUrl:"https://www.opticsale.com/scart/public/services/",
    systemServicesUrl:"http://www.opticsale.com/scart/public/services/",
    getPublicJsonService:function(actionName) { return this.getServiceUrl(this.systemServicesUrl + "service_json_public.php", "uid=" + escape(this.systemUserId) + "&action=" + escape(actionName)); },
    getPublicWebsiteJsonService:function(actionName) { return this.getServiceUrl(this.systemServicesUrl + "service_json_website.php", "uid=" + escape(this.systemUserId)); },
    getPublicWebsiteService:function(actionName) { return this.getServiceUrl(this.systemServicesUrl + "service_rest_website.php", "uid=" + escape(this.systemUserId)); },
    getPublicWebsiteMasterService:function(actionName) { return this.getServiceUrl(this.scartServicesUrl + "service_rest_website.php", "uid=" + escape(this.systemUserId)); },
    getPublicSCartService:function(actionName) { return this.getServiceUrl(this.scartServicesUrl + "service_rest_checkout.php", "uid=" + escape(this.systemUserId)); },
    // PowerSearch
    powerSearchUserId:1,
    powerSearchServicesUrl:"http://search.opticsale.com/psearch/public/services/",
    getPublicPowerSearchService:function(opName, actionName) { return (false || this.isDynamicPage() ? "http://www.opticsale.com/scart/public/generation/resources/userx/" : "") + "tool_proxy_ws.php?targetEndpoint=" + escape(this.powerSearchServicesUrl + opName) + "&uid=" + escape(this.powerSearchUserId) + "&action=" + escape(actionName); },
    // Common Messages
    msgLoading:"<span style=&quot;font-size:8px&quot;>Loading...</span>",
    msgLoadingContent:"<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;25&quot;><tr><td align=&quot;center&quot;><img src=&quot;http://www.opticsale.com/scart/public/images/anim_flower.gif&quot;><br><div style=&quot;padding-top:5px;&quot;>Loading Content...</div></td></tr></table>",
    msgLoadingProduct:"This product is still loading",
    msgMissingRequiredOption:"There is a missing required Option. Please select the Option.",
    // Common Helpers
    getServiceUrl:function(serviceUrl, urlParams) { return (false || this.isDynamicPage() ? serviceUrl + "?" : "tool_proxy_ws.php?targetEndpoint=" + escape(serviceUrl) + "&") + urlParams; },
    isDynamicPage:function() { return location.pathname.indexOf("/public/scart/") != -1 || location.pathname.indexOf("/public/services/") != -1; },
    // Common Configurations
    isShowProductSingleQtyPrice:0,
    isDisableRequiredOptionsOnAddToWishList:0
}
