
//this file needs jquery to work
//please minify this file when making changes to Somerset.min.js for uploading to live
//use yui compressor here http://developer.yahoo.com/yui/compressor/ to do it
//example: 
//H:\>java -jar W:\visitsomerset\website\javascript\yuicompressor-2.3.5\build\yuicompressor-2.3.5.jar
//--type js -o W:\visitsomerset\website\javascript\Somerset.min.js W:\visitSomerset\website\javascript\Somerset.js



(function() {


	//NameSpace
	window.NewMind = window.NewMind || {};
	var NewMind = window.NewMind;
	NewMind.WebPlatform = NewMind.WebPlatform || {};


	//Somerset Specific
	NewMind.WebPlatform.Somerset = function() {

		//private
		/**
		* replace text of an element by passing in the jquery selector expression and the text
		* Using this for a couple of the search items
		**/
		var replaceText = function(strSelExp, strText) {
			try {
				$(strSelExp).text(strText);
			} catch (e) {

			}
		};


		//public
		return {
			init: function() {

				// replace the text for these
				$('#refineByDefList dd.refine-availability span.row span.labelwide').text('Your Arrival Date');
				$('#refineByDefList dd.refine-availability span.AddAnotherUnit a.addAnotherRoom').text('Add another room/unit');
				$('#refineByDefList dd.refine-availability span.row span.label label[@for=nights]').text('Number of Nights');

			}
		};
	} ();

	$(document).ready(NewMind.WebPlatform.Somerset.init);
})();