window.addEvent('domready', function(){
	$("sub-nav-box-ul").setHTML("");

	$("footer-ul").setHTML("<li><a href=\"http://www.wetherell.co.uk/privacy/\">PRIVACY</a></li>\n				    <li><a href=\"http://www.wetherell.co.uk/disclaimer/\">DISCLAIMER</a></li>\n				    <li><a href=\"http://www.wetherell.co.uk/links/\">LINKS</a></li>\n				    <li><a href=\"http://www.wetherell.co.uk/sitemap/\">SITEMAP</a></li>\n				    <li><a href=\"http://www.wetherell.co.uk/why-wetherell/testimonials/\">TESTIMONIALS</a></li>\n				    <li><a href=\"http://www.wetherell.co.uk/contact/\">CONTACT</a></li>");
	
	$$('#footer .box p').setHTML("Wetherell is the leading <a href=\"http://www.wetherell.co.uk/estate-agent-mayfair/\">estate agent in Mayfair</a>, central London’s prime residential area. We specialise in <a href=\"http://www.wetherell.co.uk/houses-to-rent-in-mayfair/\">houses to rent in Mayfair</a>, <a href=\"http://www.wetherell.co.uk/flats-to-rent-in-mayfair/\">flats to rent in Mayfair</a> and <a href=\"http://www.wetherell.co.uk/mayfair-property-for-sale/\">Mayfair property for sale.</a> Of all the <a href=\"http://www.wetherell.co.uk/estate-agents-in-mayfair/\">estate agents in Mayfair</a>, no-one knows the area better than Wetherell. If you are looking for <a href=\"http://www.wetherell.co.uk/property-for-sale-in-london/\">property for sale in central London</a> or <a href=\"http://www.wetherell.co.uk/central-london-apartments/\">central London apartments</a> and need an <a href=\"http://www.wetherell.co.uk/estate-agents-central-london/\">estate agent in central London</a> then please <a href=\"http://www.wetherell.co.uk/contact/\">contact us</a>.");

	$("sidebar").setHTML("<ul>\n			<li id=\"property-search\" class=\"widget widget_propertysearch\"><div class=\"search-box\">\n	    <div class=\"search-box-inner\">\n		    <span class=\"icon\"></span>\n            		    <h3>SEARCH PROPERTIES</h3>\n                        <form action=\"http://property.wetherell.co.uk/wetherell-property-for-sale-results\" method=\"post\" id=\"salesForm\" style=\"top: -7000px;\">\n			    <fieldset>\n				    <div class=\"check\">\n					    <label>Sales</label>\n                        <div class=\"radioAreaChecked\"></div>\n				    </div>\n				    <div class=\"check\">\n					    <label>Rentals</label>\n                        <div id=\"rentals\" class=\"radioArea\"></div>\n				    </div>\n				    <div class=\"select-box\">\n					    <label>Min Beds</label>\n					    <select name=\"bedrooms\">\n  	                        <option value=\"\">Any</option>\n                            <option value=\"1\">1</option>\n                            <option value=\"2\">2</option>\n                            <option value=\"3\">3</option>\n                            <option value=\"4\">4</option>\n                            <option value=\"5\">5</option>\n                            <option value=\"6\">6</option>\n                            <option value=\"7\">7</option>\n                            <option value=\"8\">8</option>\n                            <option value=\"9\">9</option>\n                            <option value=\"11\">10+</option>\n                        </select>\n				    </div>\n				    <div class=\"select-box select-box-inner\">\n					    <label>Price Range</label>\n					    <select name=\"minPrice\">\n					    	<option value=\"0\">No Min</option>				    	\n					    	<option value=\"500000\">&pound;500k</option>\n					    	<option value=\"1000000\">&pound;1 Mil.</option>\n					    	<option value=\"1500000\">&pound;1.5 Mil.</option>\n					    	<option value=\"2000000\">&pound;2 Mil.</option>\n					    	<option value=\"2500000\">&pound;2.5 Mil.</option>\n					    	<option value=\"3000000\">&pound;3 Mil</option>\n					    	<option value=\"3500000\">&pound;3.5 Mil</option>\n					    	<option value=\"4000000\">&pound;4 Mil</option>\n					    	<option value=\"4500000\">&pound;4.5 Mil.</option>\n					    	<option value=\"5000000\">&pound;5 Mil.</option>\n							<option value=\"6000000\">&pound;6 Mil.</option>\n							<option value=\"7000000\">&pound;7 Mil.</option>							\n							<option value=\"8000000\">&pound;8 Mil.</option>							\n							<option value=\"9000000\">&pound;9 Mil.</option>							\n							<option value=\"10000000\">&pound;10 Mil.</option>							\n							<option value=\"12000000\">&pound;12 Mil.</option>							\n							<option value=\"15000000\">&pound;15 Mil.</option>							\n							<option value=\"17000000\">&pound;17 Mil.</option>							\n							<option value=\"20000000\">&pound;20 Mil.</option>							\n							<option value=\"25000000\">&pound;25 Mil.</option>							\n							<option value=\"30000000\">&pound;30 Mil.</option>							\n							<option value=\"40000000\">&pound;40 Mil.</option>							\n						</select>\n					    <select name=\"maxPrice\">\n					    	<option value=\"0\">No Max</option>				    	\n					    	<option value=\"500000\">&pound;500k</option>\n					    	<option value=\"1000000\">&pound;1 Mil.</option>\n					    	<option value=\"1500000\">&pound;1.5 Mil.</option>\n					    	<option value=\"2000000\">&pound;2 Mil.</option>\n					    	<option value=\"2500000\">&pound;2.5 Mil.</option>\n					    	<option value=\"3000000\">&pound;3 Mil</option>\n					    	<option value=\"3500000\">&pound;3.5 Mil</option>\n					    	<option value=\"4000000\">&pound;4 Mil</option>\n					    	<option value=\"4500000\">&pound;4.5 Mil.</option>\n					    	<option value=\"5000000\">&pound;5 Mil.</option>\n							<option value=\"6000000\">&pound;6 Mil.</option>\n							<option value=\"7000000\">&pound;7 Mil.</option>							\n							<option value=\"8000000\">&pound;8 Mil.</option>							\n							<option value=\"9000000\">&pound;9 Mil.</option>							\n							<option value=\"10000000\">&pound;10 Mil.</option>							\n							<option value=\"12000000\">&pound;12 Mil.</option>							\n							<option value=\"15000000\">&pound;15 Mil.</option>							\n							<option value=\"17000000\">&pound;17 Mil.</option>							\n							<option value=\"20000000\">&pound;20 Mil.</option>							\n							<option value=\"25000000\">&pound;25 Mil.</option>							\n							<option value=\"30000000\">&pound;30 Mil.</option>							\n							<option value=\"40000000\">&pound;40 Mil.</option>							\n						</select>\n					    <input type=\"image\" src=\"http://www.wetherell.co.uk/wp-content/themes/wetherell/images/search-btn.gif\" alt=\"Search\" class=\"btn\" />\n				    </div>\n			    </fieldset>\n\n		    </form>\n\n            <form action=\"http://property.wetherell.co.uk/wetherell-property-for-let-results\" method=\"post\" id=\"rentalsForm\" style=\"top: -7000px; position: absolute;\">\n			    <fieldset>\n				    <div class=\"check\">\n					    <label>Sales</label>\n                        <div id=\"sales\" class=\"radioArea\"></div>\n				    </div>\n				    <div class=\"check\">\n					    <label>Rentals</label>\n                        <div class=\"radioAreaChecked\"></div>\n				    </div>\n				    <div class=\"select-box\">\n					    <label>Min Beds</label>\n					    <select name=\"bedrooms\">\n  	                        <option value=\"\">Any</option>\n                            <option value=\"1\">1</option>\n                            <option value=\"2\">2</option>\n                            <option value=\"3\">3</option>\n                            <option value=\"4\">4</option>\n                            <option value=\"5\">5</option>\n                            <option value=\"6\">6</option>\n                            <option value=\"7\">7</option>\n                            <option value=\"8\">8</option>\n                            <option value=\"9\">9</option>\n                            <option value=\"11\">10+</option>\n                        </select>\n				    </div>\n				    <div class=\"select-box select-box-inner\">\n					    <label>Price Range: per week</label>\n					    <select name=\"minPrice\">\n					    	<option value=\"\">No Min</option>\n					    	<option value=\"500\">&pound;500</option>\n							<option value=\"750\">&pound;750</option>					    	\n					    	<option value=\"1000\">&pound;1,000</option>\n					    	<option value=\"1250\">&pound;1,250</option>\n					    	<option value=\"1500\">&pound;1,500</option>\n					    	<option value=\"1750\">&pound;1,750</option>\n					    	<option value=\"2000\">&pound;2,000</option>\n					    	<option value=\"2500\">&pound;2,500</option>\n							<option value=\"3000\">&pound;3,000</option>\n							<option value=\"4000\">&pound;4,000</option>							\n							<option value=\"6000\">&pound;6,000</option>							\n							<option value=\"8000\">&pound;8,000</option>							\n							<option value=\"10000\">&pound;10,000</option>							\n						</select>\n					    <select name=\"maxPrice\">\n					    	<option value=\"\">No Max</option>\n					    	<option value=\"1000\">&pound;500</option>\n							<option value=\"1000\">&pound;750</option>					    								\n					    	<option value=\"1000\">&pound;1,000</option>\n					    	<option value=\"1250\">&pound;1,250</option>\n					    	<option value=\"1500\">&pound;1,500</option>\n					    	<option value=\"1750\">&pound;1,750</option>\n					    	<option value=\"2000\">&pound;2,000</option>\n					    	<option value=\"2500\">&pound;2,500</option>\n							<option value=\"3000\">&pound;3,000</option>\n							<option value=\"4000\">&pound;4,000</option>							\n							<option value=\"6000\">&pound;6,000</option>							\n							<option value=\"8000\">&pound;8,000</option>							\n							<option value=\"10000\">&pound;10,000</option>							\n						</select>\n					    <input type=\"image\" src=\"http://www.wetherell.co.uk/wp-content/themes/wetherell/images/search-btn.gif\" alt=\"Search\" class=\"btn\" />\n				    </div>\n			    </fieldset>\n\n		    </form>\n	    </div>\n    </div>\n    <script>\n        (function($) {\n            $('#sales').click(function() {\n                $('#salesForm').css(\"position\", \"static\");\n                $('#rentalsForm').css(\"position\", \"absolute\");\n            });\n\n            $('#rentals').click(function() {\n                $('#salesForm').css(\"position\", \"absolute\");;\n                $('#rentalsForm').css(\"position\", \"static\");\n            });\n        })(jQuery);\n    </script>\n</li><li id=\"market-reports\" class=\"widget MarketReports_widget\"><div class=\"market-box\">\n		<div class=\"market-box-inner\">\n            		    	<h3>MARKET REPORTS</h3>\n            			<span class=\"icon\"></span>\n			<div class=\"text\">\n				<ul><li>Free every month</li>\n                <li>From the Mayfair Guru</li>\n                <li>The Mayfair who, what and where</li>\n                <li>The latest grand mansions, sophisticated apartments and cutting-edge developments</li>\n                </ul>\n			</div>\n			<div class=\"input-box\">\n				<form action=\"/market-reports-signup\" method=\"post\">\n					<fieldset>\n						<div>\n							<input id=\"market-email\" name=\"market-email\" type=\"text\" class=\"text\" value=\"\" placeholder=\"Enter Email Address\" />\n						</div>\n						<input id=\"mrsubmit\" type=\"image\" alt=\"#TB_inline?height=410&amp;width=400&amp;inlineId=marketreportform\" src=\"http://www.wetherell.co.uk/wp-content/themes/wetherell/images/sign-btn.gif\" class=\"btn thickbox\" />\n					</fieldset>\n				</form>\n			</div>\n			<div class=\"text\" style=\"width: 220px;\">\n				<p><a href=\"/mayfair-property/market-reports/\">View our previous market reports</a></p>\n			</div>\n		</div>\n\n	</div></li><li id=\"whats-new\" class=\"widget WhatsNew_widget\"><div class=\"what-box\">\n        	    	<h3>WHAT'S NEW</h3>\n                <span class=\"icon\"></span>\n		<ul>\n                			<li><img src=\"http://www.wetherell.co.uk/wp-content/themes/wetherell/images/whatsnewicons/icon04.gif\" alt=\"\" /><a href=\"http://www.wetherell.co.uk/why-wetherell/wetherell-tv/interview-with-nicky-haslam/\">Interview with Nicky Haslam</a></li>\n                			<li><img src=\"http://www.wetherell.co.uk/wp-content/themes/wetherell/images/whatsnewicons/icon03.gif\" alt=\"\" /><a href=\"http://www.wetherell.co.uk/mayfair-property/property-news\">Latest Property News</a></li>\n                			<li><img src=\"http://www.wetherell.co.uk/wp-content/themes/wetherell/images/whatsnewicons/icon05.gif\" alt=\"\" /><a href=\"http://www.wetherell.co.uk/mayfair-property\">Latest Properties</a></li>\n            		</ul>\n		<div class=\"bottom-bg\">\n		</div>\n	</div></li>						<li>\n			<div class=\"why-box\">\n      			<h3>WHY WETHERELL?</h3>\n				 \n      			<p>We specialise in Mayfair residential property - it is the only area we deal with, so whilst our competitors try to be  all things to all people, we continue to be the Estate Agents for the residential community of Mayfair</p>\n				<br />\n      			<a href=\"http://www.wetherell.co.uk/why-wetherell/\" class=\"more\">Read more</a>\n			</div>\n			</li>\n        </ul>");
		
    (function($) {
        $('#sales').click(function() {
            $('#salesForm').css("position", "static");
            $('#rentalsForm').css("position", "absolute");
        });

        $('#rentals').click(function() {
            $('#salesForm').css("position", "absolute");;
            $('#rentalsForm').css("position", "static");
        });
    })(jQuery);
    
    initCustomForms();
    if (tb_init) {
	    tb_init('a.thickbox, area.thickbox, input.thickbox');
    }
});

