			$.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;
	            });
			};	
			
			function equalHeight(group) {
			    tallest = 0;
			    group.each(function() {
			        thisHeight = $(this).height();
			        if(thisHeight > tallest) {
			            tallest = thisHeight;
			        }
			    });
			    group.height(tallest);
			}
			
			$(document).ready(function() {
				$('input.mmberinput').css({
					'width': '115px',
					'height': '15px',
					'padding': '0',
					'display': 'block',
					'border': 'solid 1px #a7bdce',
					'margin': '0 6px 0 0',
					'background': "#eaeef1", 
					'font-size': '10px', 
					'color': '#c7c9cb', 
					'outline': '0',
					'float': 'left'
				});
				
				$('input.member').focus(function () {
					if ($(this).attr("value") == "User name")
						$(this).attr("value", "")
					}).blur(function () {
					if ($(this).attr("value") == "")
						$(this).attr("value", "User name");
				});
				
				$('input.password').focus(function () {
					if ($(this).attr("value") == "Password")
						$(this).attr("value", "")
					}).blur(function () {
					if ($(this).attr("value") == "")
						$(this).attr("value", "Password");
				});
				
				$('input.srchinput').css({
					'width': '115px',
					'height': '16px',
					'padding': '0',
					'display': 'block',
					'border': 'none',
					'margin': '0',
					'background': 'none', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '9px', 
					'color': '#c7c9cb', 
					'outline': '0',
					'float': 'right'
				});
				
				$('input.srchinput').focus(function () {
					if ($(this).attr("value") == "Search")
						$(this).attr("value", "")
					}).blur(function () {
					if ($(this).attr("value") == "")
						$(this).attr("value", "Search");
				});

				$("ul.sf-menu").superfish({
					animation: {
						height: 'show'
					},
					speed: 300,
					autoArrows: false,
					dropShadows: false
				}).find("ul").bgIframe();
				
				$('.rotation').cycle({ 
					fx: 'fade', 
					pause: 1 
				});
				
				equalHeight($(".column"));
				
				$('input.zipcodeinpt').css({
					'width': '151px',
					'height': '14px',
					'padding': '0',
					'display': 'block',
					'border': 'none',
					'margin': '0',
					'background': 'none', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '9px', 
					'color': '#c7c9cb', 
					'outline': '0',
					'float': 'none'
				});
				
				$('input.zipcodeinpt').focus(function () {
					if ($(this).attr("value") == "Zip Code")
						$(this).attr("value", "")
					}).blur(function () {
					if ($(this).attr("value") == "")
						$(this).attr("value", "Zip Code");
				});
				
				$('select.distance').css({
					'width': '94px',
					'height': '18px',
					'padding': '0',
					'display': 'block',
					'border': 'solid 1px #b3c4d1',
					'margin': '0 10px 0 0',
					'background': '#ffffff', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '9px', 
					'color': '#c7c9cb', 
					'outline': '0',
					'float': 'left'
				});
				
				$('select.service').css({
					'width': '194px',
					'height': '18px',
					'padding': '0',
					'display': 'block',
					'border': 'solid 1px #b3c4d1',
					'margin': '0 10px 0 0',
					'background': '#ffffff', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '9px', 
					'color': '#c7c9cb', 
					'outline': '0',
					'float': 'none'
				});
				
				$('select.question').css({
					'width': '294px',
					'height': '18px',
					'padding': '0',
					'display': 'block',
					'border': 'solid 1px #b3c4d1',
					'margin': '0 10px 0 0',
					'background': '#ffffff', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '9px', 
					'color': '#c7c9cb', 
					'outline': '0',
					'float': 'none'
				});
				
				$('ul.sidenavigation a.head').hoverIntent(function() {	
					if ($(this).next().is("ul")) {
						$(this).css({
							'background': 'none',
							'color': '#ffae00',
							'outline': 'none'
						});
						if($(this).parent().hasClass('current')) {
							$(this).css({
								'background': 'none',
								'color': '#8872b0',
								'outline': 'none'
							});
							$(this).siblings('ul').slideUp('slow',function() {
								$(this).parent().removeClass('current');
							});
						} else {
							$('ul.sidenavigation li.current a.head').css({
								'background': 'none',
								'color': '#8872b0',
								'outline': 'none'
							});
							$('ul.sidenavigation li.current ul').slideUp('slow',function() {
								$(this).parent().removeClass('current');
							});
							$(this).siblings('ul').slideToggle('slow',function() {
								$(this).parent().toggleClass('current');
							});
						}
					}
				}, function () {});
				
				$('dl.forms input.text').css({
					'width': '156px',
					'height': '18px',
					'padding': '0',
					'display': 'block',
					'border': 'none',
					'margin': '0',
					'background': 'none', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '11px', 
					'color': '#b1b1b1', 
					'outline': '0',
					'float': 'none'
				});
				
				$('dl.forms input.text2').css({
					'width': '84px',
					'height': '18px',
					'padding': '0',
					'display': 'block',
					'border': 'none',
					'margin': '0',
					'background': 'none', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '11px', 
					'color': '#b1b1b1', 
					'outline': '0',
					'float': 'none'
				});
				
				$('dl.forms input.text3').css({
					'width': '158px',
					'height': '18px',
					'padding': '0',
					'display': 'block',
					'border': 'none',
					'margin': '0',
					'background': 'none', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '11px', 
					'color': '#b1b1b1', 
					'outline': '0',
					'float': 'none'
				});
				
				$('dl.forms select.state').css({
					'width': '162px',
					'height': '21px',
					'padding': '0',
					'display': 'block',
					'border': 'solid 1px #90adc6',
					'margin': '0',
					'background': '#ffffff', 
					'font-family': 'Verdana, Verdana, Geneva, sans-serif',
					'font-size': '11px', 
					'color': '#b1b1b1', 
					'outline': '0',
					'float': 'right'
				});
			});
