$(document).ready(function() {

	if(typeof(console) === 'undefined') { var console = {} } // prevent errors in browsers that have no console

	// clear info text in fields, then replace it if nothing entered
	var value = '';
	$('.clear-me').focus( function() {	value = this.value;	this.value = ''; } );	
	$('.clear-me').blur( function() { if(this.value=='') { this.value = value; }	} );

	// rollovers for search buttons
	$('input.search-button-small').hover(
		function(){ $(this).attr('src', 'http://raywhitecommercial.com.au/wp-content/themes/ray-white-commercial/images/btn-quick-search-hover.png');    },
                function(){ $(this).attr('src', 'http://raywhitecommercial.com.au/wp-content/themes/ray-white-commercial/images/btn-quick-search.png'); }
		//function()	{ $(this).attr('src', baseURL + '/images/btn-quick-search-hover.png'); },
		//function()	{ $(this).attr('src', baseURL + '/images/btn-quick-search.png'); }
	);

	$('.show-more').click(

		function() {
			$('#show-more-' + this.id).slideToggle();
			var icon = 	$('#' + this.id + ' span');
			if(icon.hasClass('icon-down'))	{
				icon.addClass('icon-up');
				icon.removeClass('icon-down');
			} else {
				icon.removeClass('icon-up');
				icon.addClass('icon-down');
			}
		}
	);
});


if (!console){
var console = new Object();
console.log = function(str){};
}

