var myDeco={};










myDeco.settings = {

MICROSITE_CATEGORY_NAME: null,
SEARCH_NO_PROCESS_URL_PARAMS: false,


TRACKING_TAGS:[{"cookieAge": 180, "type": "partner", "cookieName": "partner", "paramName": "partner"}, {"cookieAge": 30, "type": "campaign", "cookieName": "rw.cm", "paramName": "rw.cm"}],
ie6LoadAds:true,

LOCALECONV: {"mon_decimal_point": ".", "int_frac_digits": 2, "p_sep_by_space": 0, "frac_digits": 2, "thousands_sep": ",", "n_sign_posn": 1, "decimal_point": ".", "int_curr_symbol": "GBP ", "n_cs_precedes": 1, "p_sign_posn": 1, "mon_thousands_sep": ",", "negative_sign": "-", "currency_symbol": "\u00a3", "n_sep_by_space": 0, "mon_grouping": [3, 3, 0], "p_cs_precedes": 1, "positive_sign": "", "grouping": [3, 3, 0]},


STEMMING_EXCEPTIONS: [ "bedding", "classicism", "constructivism", "cultivator", "cushioned", "cushioning", "divisionism", "expressionism", "fluted", "impressionism", "mannerism", "minimalism", "modernism", "orientalism", "painted", "painting", "primitivism", "printed", "printing", "romanticism", "setee", "settee", "shorts", "symbolism" ],
STOPWORD_EXCEPTIONS: [ "a", "able", "about", "above", "across", "against", "all", "allow", "allows", "almost", "along", "also", "always", "among", "amongst", "and", "any", "anywhere", "apart", "are", "aren", "aside", "available", "away", "beading", "become", "becomes", "becoming", "before", "behind", "below", "beside", "besides", "between", "both", "brief", "but", "by", "calculator", "can", "cannot", "cant", "cause", "causes", "changes", "come", "comes", "contain", "containing", "contains", "could", "couldn", "described", "different", "does", "down", "downwards", "each", "eight", "either", "else", "enough", "every", "everything", "everywhere", "exactly", "example", "except", "far", "few", "fifth", "first", "five", "followed", "following", "follows", "for", "former", "formerly", "forth", "four", "from", "generator", "gives", "go", "goes", "going", "gone", "greetings", "had", "hadn", "happens", "has", "hasn", "have", "haven", "having", "help", "her", "here", "hers", "herself", "hi", "him", "himself", "his", "how", "however", "if", "immediate", "in", "indicate", "indicated", "indicates", "inner", "instead", "into", "is", "isn", "itself", "just", "keep", "keeps", "kept", "known", "last", "later", "least", "less", "like", "liked", "likely", "little", "look", "looking", "looks", "mainly", "many", "may", "maybe", "mean", "might", "more", "most", "mostly", "much", "must", "name", "near", "nearly", "necessary", "need", "needs", "neither", "never", "new", "next", "nine", "no", "nobody", "non", "none", "nor", "normally", "not", "nothing", "now", "nowhere", "off", "often", "old", "on", "once", "one", "ones", "only", "onto", "or", "other", "others", "otherwise", "out", "outside", "over", "own", "per", "placed", "plus", "possible", "provides", "regarding", "regardless", "right", "s", "same", "saw", "second", "see", "seeing", "seem", "seemed", "seeming", "seems", "seen", "seven", "several", "should", "shouldn", "since", "six", "skirting", "so", "some", "something", "sometime", "sometimes", "somewhat", "somewhere", "specified", "specify", "specifying", "still", "t", "take", "tell", "tends", "than", "that", "thats", "then", "thereby", "therefore", "theres", "these", "third", "this", "thorough", "thoroughly", "those", "though", "three", "through", "throughout", "thru", "together", "toward", "towards", "tried", "tries", "twice", "two", "under", "unless", "until", "unto", "up", "upon", "use", "used", "useful", "uses", "using", "usually", "v", "value", "very", "want", "welcome", "went", "were", "weren", "what", "whatever", "when", "whenever", "where", "which", "while", "whole", "will", "with", "within", "without", "won", "wonder", "would", "wouldn", "your", "yours", "yourself", "yourselves", "zero" ]
};
myDeco.settings.FBC_API_KEY = 'f9eb34090781642639177e236d4464a8';
var glam_section_mapping = {

'adfero':'',
'basket':'',
'buythelook ':'358268631',
'christmas':'358268155',
'community':'358268634',
'competition':'',
'deal-of-the-week':'',
'design-tips':'',
'editorial':'358268633',
'home':'362839072',
'internalerror':'',
'knowledge':'358268156',
'notfound':'',
'products':'358268635',
'model-editor':'358268632',
'rooms':'',
'search':'358268158',
'shopping':'358268155',
'sale':'358268155',
'Sitemap':'',
'design':'358268632'

};


 
//Messages
if (typeof(myDeco)=="undefined") myDeco = {};
var url = false; //replace url vars references below with correct url

// existing urls in comments
myDeco.urls = {
 feedback_post_ajax:"/WB/templates/clou/feedback.php",
 form_post_ajax:"/request.php",
	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/"
	},

	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/",
		geo_entries_ajax: "/competitions/geo_entries/ajax/"
	},

	adIframe:"/ad_iframe/",
	// Facebook sharing
	shareOnFacebook: "/account/facebook/share_item/",
	facebookDisassociate: "/account/facebook/disassociate/ajax/",
	facebookInviteIframe: "/account/facebook/invite_iframe/"
}

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.ws.userScrapbookImages = username && (myDeco.urls.ws.userHome + "scrapbook/image/");

}

myDeco.urls.updateUserUrls(myDeco.username);

 
 function checkValid()
   {
	    var b = $("reform");
	     if(document.getElementById('forename').value=="")
	   { alert("Please enter the Forename !");document.getElementById('forename').focus(); document.execCommand('Stop'); return false;}
		  if(document.getElementById('surname').value=="")
	   { alert("Please enter the Surname !");document.getElementById('surname').focus();return false;}
		
	   if(document.getElementById('email').value=="")
	   { alert("Please enter the email !");document.getElementById('email').focus();return false;}
	    
         var g = b.serialize(true); 
		  new Ajax.Request('/WB/templates/clou/Request.php', { parameters : g, onSuccess : function(j) {
                                                                                                             var h = j.responseText.evalJSON();  																											   
                                                                                                               if(h.success) {$("reform1").hide(); $("request-success").show(); b.style.height='150px';}    
																											   else { alert('a error happened,please try again!');}
	                                                                                                              }
                                                                                    , onFailure : myDeco.popupForms.handleFailure}
                                                                                 ); 
     return false;
  
   }


   function showf()
   {
	     $('reform').show();
	    myDeco.popupForms.show(event,$('reform'),"center");
	   
		//new Effect.Scale('reform',1,{scaleFromCenter: true });
   }

 
 
