// JavaScript Document

function searchbox (){
	$("#searchtxt").val(">");
}

function fixImmediacy(){
	//dman 5.2 stips body attributes
	$('body').attr('id','home');
};

function cols(){
	//$("#residents, #vistors, #businesses").equalizeCols();
};

function sidebar(){
	$("#sidebar1,#innercontent, #sidebar2").equalizeCols();
};

function dropshadow(){
	$("div.dropshadow").wrap("<div class='wrap1'><div class='wrap2'>" +
   	"<div class='wrap3'></div></div></div>");
};

function wireUpButtons(){
		$('#go1').click(function(){					
				//alert($('#residentsSelect option:selected').val());
				document.location.href=$('#residentsSelect option:selected').val();	
				//have to do this to stop the post back which occurs
				return false;
		});	
		$('#go2').click(function(){					
				document.location.href=$('#visitorsSelect option:selected').val();									
				return false
		});	
		$('#go3').click(function(){					
				document.location.href=$('#businessSelect option:selected').val();									
				return false;
		});			

};

function wireUpSelects(){
	
	$('#residentsSelect').change(function(){
			document.location.href=$('#residentsSelect option:selected').val();	
			//have to do this to stop the post back which occurs
			return false;
	});
	
	$('#visitorsSelect').change(function(){
			document.location.href=$('#visitorsSelect option:selected').val();	
			//have to do this to stop the post back which occurs
			return false;
	});
	
	$('#businessSelect').change(function(){
			document.location.href=$('#businessSelect option:selected').val();	
			//have to do this to stop the post back which occurs
			return false;
	});
	
	
	
}

// Remove | from top menu list above search text box
// Remove | from legal notice.
function fixPipe() {
	$('#mastersearch/ul/li:eq(2)').addClass('none');
	$('ul#footer/li:eq(2)').addClass('none');
}
