            $.fn.clearForm = function() {
                return this.each(function() {
                    var type = this.type, tag = this.tagName.toLowerCase();
                    if (tag == 'form')
                        return $(':input', this).clearForm();
                    if (type == 'text' || type == 'password' || tag == 'textarea')
                        this.value = '';
                    else if (type == 'checkbox' || type == 'radio')
                        this.checked = false;
                    else if (tag == 'select')
                        this.selectedIndex = 0;
                });
            };	
			
			$(document).ready(function() {
			
				$('input.srchinpt').css({'width': '149px', 'height': '20px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#3f3e3e', 'outline': '0'});

				$('input.srchinpt2').css({ 'width': '45px', 'height': '20px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#3f3e3e', 'outline': '0' });
				
				$('input.srchbtn').css({'width': '37px', 'height': '22px', 'margin': '0', 'padding': '0 0 0 0', 'display': 'block', 'float': 'left', 'border': 'none', 'outline': '0', 'color': '#3f3e3e', 'font-size': '12px', 'cursor': 'pointer'});

				
				$('input.zipinpt').css({'width': '114px', 'height': '18px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0'});
				
				$('input.stateinpt').css({'width': '48px', 'height': '18px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0'});
				
				$('input.countyinpt').css({'width': '125px', 'height': '18px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0'});
				
				$('input.submitbtn').css({'width': '71px', 'height': '20px', 'margin': '0 0 0 13px', 'padding': '0 0 0 0', 'display': 'block', 'float': 'left', 'border': 'none', 'outline': '0', 'color': '#3f3e3e', 'font-size': '12px', 'cursor': 'pointer'});

				
				$('input.vwallbtn').css({'width': '59px', 'height': '19px', 'margin': '0', 'padding': '0 0 0 0', 'display': 'block', 'float': 'right', 'border': 'none', 'outline': '0', 'color': '#3f3e3e', 'font-size': '12px', 'cursor': 'pointer'});

				
				$('input.lawenforcementinput').css({'width': '139px', 'height': '18px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0'});

				$('input.lawenforcementinput2').css({ 'width': '45px', 'height': '18px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0' });
				
				$('.navigation').accordion({
					active: false,
					header: '.head',
					navigation: true,
					event: 'mouseover',
					animated: 'easeslide',
					autoheight: false
				});
				
				$('input.submitbtn2').css({'width': '73px', 'height': '22px', 'margin': '0 0 0 0', 'padding': '0 0 0 0', 'display': 'block', 'float': 'left', 'border': 'none', 'outline': '0', 'color': '#3f3e3e', 'font-size': '12px', 'cursor': 'pointer'});

				
				$('select.mnthslctr').css({'width': '98px', 'height': '22px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 18px 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0'});
				
				$('select.yrslctr').css({'width': '78px', 'height': '22px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 18px 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0'});

				$('select.catslctr').css({ 'width': '150px', 'height': '22px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0', 'font-size': '12px', 'color': '#000000', 'outline': '0' });

				$('a.srchlnk').click(function() {
				    $('.srchform').show("slow");
				    return false;
				});

				$('a.closelnk').click(function() {
				    $('.srchform').hide("slow");
				    return false;
				});

				$('input.srchforminput').css({ 'width': '344px', 'height': '18px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0' });

				$('input.srchforminput2').css({ 'width': '45px', 'height': '18px', 'padding': '0', 'display': 'block', 'border': 'none', 'margin': '0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0' });

				$('select.srchformslct').css({ 'width': '348px', 'height': '123px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 0 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0' }).attr({ multiple: 'multiple' });

				$('.srchformslctdrp').css({ 'width': '348px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 0 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0' });

				$('select.srchformslct2').css({ 'width': '348px', 'height': '22px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 0 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0' });

				$('select.srchformslct3').css({ 'width': '287px', 'height': '22px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 0 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0' });

				$('select.srchformslct4').css({ 'width': '142px', 'height': '19px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 0 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0' });

				$('select.srchformslct5').css({ 'width': '83px', 'height': '19px', 'padding': '0', 'display': 'block', 'float': 'left', 'margin': '0 0 0 0', 'font-size': '12px', 'color': '#000000', 'outline': '0' });

				$('input.publishinpt').css({ 'width': '146px', 'height': '20px', 'padding': '0', 'display': 'block', 'border': 'solid 1px #aaadb2', 'margin': '0 4px 0 0', 'background': "#ffffff", 'font-size': '12px', 'color': '#1b1925', 'outline': '0' });

				Date.firstDayOfWeek = 0;
				Date.format = 'mm/dd/yyyy';
				$('.date-pick').datePicker();

				
			});
