if (typeof(myDeco) == 'undefined')
	myDeco = {};

myDeco.settings = {
DEBUG: false,
SITE_URL: "http://mydeco.com/",
STATIC_URL: "http://s.mdcd.net/media/",
MEDIA_URL: "http://u.mdcd.net/media/data/",
LOCALE: 'en-gb-x-retail',
POSIX_LOCALE: 'en_GB',
LOCALE_DATE_FORMAT: 'dd/mm/yy',
LANGUAGE_LOCALECONV_MAP: {"en-gb": {"mon_decimal_point": ".", "int_frac_digits": 2, "p_sep_by_space": 0, "frac_digits": 2, "positive_sign": "", "thousands_sep": ",", "currency_symbol": "\u00a3", "negative_sign": "-", "int_curr_symbol": "GBP ", "n_sep_by_space": 0, "mon_thousands_sep": ",", "n_cs_precedes": 1, "decimal_point": ".", "p_sign_posn": 1, "n_sign_posn": 1, "p_cs_precedes": 1, "mon_grouping": [3, 3, 0], "grouping": [3, 3, 0]}, "en-us": {"mon_decimal_point": ".", "int_frac_digits": 2, "p_sep_by_space": 0, "frac_digits": 2, "positive_sign": "", "thousands_sep": ",", "currency_symbol": "$", "negative_sign": "-", "int_curr_symbol": "USD ", "n_sep_by_space": 0, "mon_thousands_sep": ",", "n_cs_precedes": 1, "decimal_point": ".", "p_sign_posn": 1, "n_sign_posn": 1, "p_cs_precedes": 1, "mon_grouping": [3, 3, 0], "grouping": [3, 3, 0]}},
IMAGE_TRANSFORM_SERVICE: 'http://t.mdcd.net/t',
AUTOCOMPLETE_URL: '/ws/complete/',
TO_METERS_MULTIPLIER: 0.01,
SEARCH_COLLAPSE_FACETS_AFTER: 4,
SEARCH_UNCOLLAPSE_FACETS: ["feature", "image_colour16", "material", "finish", "styles"],
SEARCH_COUNTS: ["low", "normal", "large"],
PAGINATE_BY_VIEW : {'large': {'default': 480, 'images': 480, 'details': 500, 'minigrid': 480}, 'low': {'default': 21, 'images': 21, 'details': 21, 'minigrid': 30}, 'normal': {'default': 30, 'images': 30, 'details': 30, 'minigrid': 60}},
PRODUCT_SEARCH_VIEWS: ["details", "images", "minigrid"],
NO_CACHE_PARAM: '_nc',
NO_CACHE_COOKIE_NAME: '_nc',
AUTH_COOKIE_NAME: 'authtoken',
AUTH_COOKIE_DOMAIN: '.mydeco.com',
USER_DATA_COOKIE_NAME: 'user_data',
USER_DATA_COOKIE_DOMAIN: '.mydeco.com',
TRACKING_TAGS: [{"cookieAge": 180, "type": "partner", "cookieName": "partner", "paramName": "partner"}, {"cookieAge": 90, "type": "campaign", "cookieName": "mckv", "paramName": "mckv"}, {"cookieAge": 90, "type": "campaign", "cookieName": "ef_id", "paramName": "ef_id"}, {"cookieAge": 90, "type": "campaign", "cookieName": "rw.cm", "paramName": "rw.cm"}, {"cookieAge": 90, "type": "campaign", "cookieName": "cr_id", "paramName": "cr_id"}, {"cookieAge": 90, "type": "email", "cookieName": "ev_id", "paramName": "ev_id"}, {"cookieAge": 30, "type": "internal", "cookieName": "srcid", "paramName": "srcid"}],
MARIN_TRACKING_SCRIPT: 'https://tracker.marinsm.com/tracker/qcwboi3b00.js',
GOOGLE_ADWORDS_TRACKING_LABEL: '5TnDCKrklgIQvs7i5AM',
GOOGLE_ADWORDS_TRACKING_ID: '1016637246',
GOOGLE_ANALYTICS_DOMAIN: 'auto',
GOOGLE_WEB_OPTIMIZER_GTS_EXPERIMENTS: [{"account": "UA-5379371-3", "id": "1292895538"}],
FACEBOOK_APP_ID: '10443512243',
TWITTER_PARAMS: {"account": "mydeco", "related": "mydecoUS:mydeco.com in the US"},
DULUX_BRANDING: {"link_base": "http://ad-emea.doubleclick.net/clk;240261807", "tracking_image": "http://ad-emea.doubleclick.net/ad/N5960.140366.MYDECO/B5465338.15;sz=1x1;ord=[timestamp]?"},
SHORTLIST_SYNC_INTERVAL: 4,
MINIME_STORAGE_KEY: "minime-room",
SPECIAL_PRODUCT_GIFT_VOUCHER: {'guid': 'GB00000000000000000000000000000000000001', 'site_id': 93581},
ie6LoadAds: true
}; myDeco.urls = {
requestPasswordReset:"/account/password_reset/ajax/",
sendMessage:"/mail/compose-ajax/",
sendMessageSuggestRecipient:"/mail/friend_suggest/",
deleteThread:"/people/message/delete/ajax/",	markAsRead:"/people/message/mark-read/ajax/",	account:"/people/",
userLogin:"https://mydeco.com/account/login/",
userLoginAjax:"/account/login/ajax/",
userRegisterAjax:"/account/register/ajax/",
generateFacebookUsername:"/account/generate-facebook-username/ajax/",
userLoginFacebook:"/account/login/facebook/",
userLoginFacebookAjax:"/account/login/facebook/ajax/",
facebookAssociateAccount:"/account/register/facebook-associate-account/",
userFollowStep:"/account/register/follow-step/ajax/",
userFollowStepFacebook:"/account/register/follow-step-facebook/ajax/",
userFollowStepPost:"/account/register/follow-step/post/",
facebookInvitationStep: "/account/register/facebook-invitation-step/ajax/",
facebookInvitationStepPost: "/account/register/facebook-invitation-step/post/",
facebookFriendsAutocomplete: "/account/facebook/friends-autocomplete-ajax/ajax/",
facebookProxy:"http://mydeco.com/common/fb_proxy.html",
register:"https://mydeco.com/account/register/",
captchaImage:"https://mydeco.com/account/captcha.jpg",
checkUsername:"/account/check_username/ajax/",
follow:"/profiles/follow/ajax/",
deleteBlogArticle:"/people/blog/delete-article/ajax/",
markRoomFav:"/rooms/fav/",
markRoomPub:"/rooms/public/",
markRoomPrivate:"/rooms/private/",
deleteRoom:"/rooms/delete/",
shortlistAllFromRoom:"/rooms/shortlist-ajax/",
dmpUploadIframe:'/rooms/decorate-my-photo/upload/iframe/',
roomPhotoUploadIframe: "/rooms/room-photos/upload/iframe/",
deleteScrapbookItem:"/scrapbook/scrapbook-delete/ajax/",
setScore:"/score/set-score/ajax/",	canRateMulti:"/score/can-rate-multi/ajax/?_nc=1",
deleteObject: "/common/delete_object/ajax/",
deleteMail: "/people/message/delete/ajax/",
search: "/search/",
search_ajax: "/search/ajax/",
searchNext: "/search/next/",
searchPrev: "/search/prev/",
searchSubscriptionAlert: "/search_alert/save",
competitionSubscriptionAlert: "/account/subscription/",
removeShortlistedProduct:'/product/unshortlist/ajax/',
addShortlistProduct:'/product/shortlist/ajax/',
convertToGuid:'/product/convert_to_guid/ajax/',
wishlistChangeDescription: "/product/wishlist/change_description/ajax/",
wishlistGroupList: "/product/wishlist_group/list/ajax/",
wishlistGroupPopinList: "/product/wishlist_group/popinlist/ajax/",
wishlistGroupEdit: "/product/wishlist_group/edit/ajax/",
wishlistGroupMoveItems: "/product/wishlist_group/include/ajax/",
wishlistGroupRemove: "/product/wishlist_group/remove/ajax/",
wishlistGroupSetAsDefault: "/product/wishlist_group/setdefault/ajax/",
reportInappropriate:"/moderation/report/ajax/",	getInappropriateReasons:"/moderation/report-reasons/ajax/",
counters:null,	addRoomPhoto: null,
blogEmbedForm:"/common/embed/ajax/",
roomPlanner:"/rooms/austin/",
roomDecorate:"/rooms/decorate-my-photo/",
roomFurnish:"/rooms/furnish/",
roomMontage:"/rooms/moodboard/",
roomComplete: "/rooms/complete/",
productViewer: "http://s.mdcd.net/media/25357/product_viewer/spinner.swf",
userShortlisted:"/product/shortlisted/ajax/",
alertsDeleteAll:"/account/alert-delete-all/ajax/",
feedback_post_ajax:"/feedback/post/ajax/",
newsletter_subscribe_ajax:"/newsletter/ajax/",
newsletter_unsubscribe_ajax:"/newsletter/unsubscribe/ajax/",
profileSlideshowAddAjax: "/account/profile/slideshow/add/ajax/",
profileSlideshowDeleteAjax: "/account/profile/slideshow/delete/ajax/",
profileSlideshowDeleteAllAjax: "/account/profile/slideshow/delete-all/ajax/",
profileSlideshowObjectsToAddAjax: "/account/profile/slideshow/objects-to-add/ajax/",
renderws: "http://render.mydeco.com/ws/render/",
ckeditorConfig: "/common/ckeditor_config.js",
addToFolder: "/folder/manager/",
createEmptyFolder: "/folder/create/",
sf_checkout: "https://mydeco.com/checkout/",
sf_main: "http://mydeco.com/shopping/mydeco-boutique/",
	ws:{
		login:"/ws/login/",
		logout:"/ws/logout/",
		register:"/ws/register/",
		product:"/ws/product/",
		room_competitions:"/ws/competitions/",
		location_to_coords:"/ws/tools/location_to_coords/",
		search: "/ws/search/search"
	},
	room_competition:{
		vote_ajax:"/competitions/vote_ajax/",
		entry_ajax:"/competitions/entry_ajax/",
		entry_form_ajax:"/competitions/entry_form_ajax/",
		available_competitions_ajax:"/competitions/available_competitions/ajax/?_nc=1",
		geo_entries_ajax: "/competitions/geo_entries/ajax/",
		share_email_ajax: "/competitions/share_email/ajax/"
	},
	profile: {
		setSectionVisibility: "/common/set_section_visibility/ajax/",
		objectsPerSection: "/common/objects_per_section/ajax/"
	},
	adIframe:"/ad_iframe/",
		facebookDisassociate: "/account/facebook/disassociate/ajax/",
	forumsUserListView: "/forum/user/",
	saveSharedItem: "/account/save_shared_item/ajax/",
	competitionsHome: "/competitions/",
	supplierClaim: "/suppliers/claim/ajax/",
	supplierStore: "/suppliers/stores/ajax/",
	supplierDeleteAd: "/suppliers/advertisement/delete/ajax/",
	supplierBestsellers: "/suppliers/bestsellers/ajax/",
	supplierEditInfo: "/suppliers/info/edit/ajax/",
	supplierSubscribe: "/suppliers/subscribe/ajax/",
	supplierEditOffer: "/suppliers/offer/edit/ajax/",
	supplierDeleteOffer: "/suppliers/offer/delete/ajax/",
	supplierSendMobileVoucher: "/suppliers/offer/mobile/send/ajax/",
	bookmarksAjax: "/account/bookmarks/ajax/",
	forms: {
		feedback: "/common/forms/feedback.html",
		reportInappropriate: "/common/forms/report_inappropriate.html",
		alerts: "/common/forms/alerts-template.html"
	},
	merges: {
		login_css: "http://s.mdcd.net/media/27102/style/merged_login.css",
		login_js: "http://s.mdcd.net/media/26873/js/merged_login.js"
	}
};

myDeco.urls.updateUserUrls = function(username) {
		myDeco.urls.counters = username && ("/people/" + username + "/counters/ajax/");
		myDeco.urls.ws.userHome = username && ("/ws/people/" + username + "/");
		myDeco.urls.ws.userRooms = username && (myDeco.urls.ws.userHome + "rooms/");
		myDeco.urls.ws.userAlerts = username && (myDeco.urls.ws.userHome + "alerts/");
		myDeco.urls.ws.userShortlistedProducts = username && (myDeco.urls.ws.userHome + "productshortlist/");
		myDeco.urls.addRoomPhoto = username && ("/people/" + username + "/edit-room-photo-ajax/");
		myDeco.urls.profileWishlist = username && ("/people/" + username + "/products/edit/");
		myDeco.urls.profilePublicWishlist = username && ("/people/" + username + "/products/");
		myDeco.urls.profileBookmarks = username && ("/people/" + username + '/bookmarks/edit/');
		myDeco.urls.manageShoppingAlerts = username && ("/people/username/email-alerts/".replace('/username/', '/' + username + '/'));
};
myDeco.urls.updateUserUrls(myDeco.username); 
