

$(document).ready(function(){ 

//Add surplus <span> tag around the quicksearch input box
	//$(".searchBoxinput").wrap("<span></span>");
	
//Make List Of Items Clickable
	$(".feature3Col li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;});
	
//If Making List Of Items Clickable Add Pointer CSS	
	$(".feature3Col li").css("cursor","pointer");
	
//Make List Of Items Clickable
	$(".feature2Col li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;});
	
//If Making List Of Items Clickable Add Pointer CSS	
	$(".feature2Col li").css("cursor","pointer");
	
//Make List Of Items Clickable
	$("#listings #featured li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;});
	
//If Making List Of Items Clickable Add Pointer CSS	
	$("#listings #featured li").css("cursor","pointer");

	
//Clean up TinyMCE - Removes empty <P> Tags and <P> Tags containing only <br/>
	$("#mainContent p br:only-child").remove();
	$("#mainContent p:empty").remove();

//Clean up TinyMCE - Removes any <br/> tags from empty webblerimage DIVS
	$("div.webblerimage:empty").remove();
	$("div.webblerimage br:only-child").remove();

//Load Facebook Popup
	$('a[rel*=facebox]').facebox({
	loading_image : 'images/loading.gif',
	close_image   : 'images/closelabel.gif'
	}) 
	
// Dynamically load the sitemap using Ajax	- put an alternate click function to turn on/off
	$("div#sitemap a").click(function(){
	
	$("div#content").load("sitemap.html div#content");
	
	});
	
}) 