(function($){ $.fn.contactable = function(options) { 		var defaults = { 			name: 'Name', 			email: 'Email', 			message : 'Message', 			recipient : 'test@test.co.uk', 			subject : 'A contactable message', 			recievedMsg : 'Thankyou for your message', 			notRecievedMsg : 'Sorry but your message could not be sent, try again later', 			disclaimer: 'Please feel free to get in touch, we value your feedback'			};		var options = $.extend(defaults, options);		return this.each(function(options) {		$(this).html('<span id="contactable" style="cursor: pointer; color: blue; font-weight: bold;"><b>Can\'t find what you\'re looking for?  Click here</b></span><form id="contactForm" method="" action=""><div id="loading"></div><div id="callback"></div><div class="holder"><input type="hidden" id="recipient" name="recipient" value="any" /><input type="hidden" id="subject" name="subject" value="suggestion" /><input type="hidden" id="name" name="name" value="" /><input type="hidden" id="subject" name="subject" value="" /><input type="hidden" id="email" name="email" value="" /><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr valign="top"><td><img width="38" height="49" border="0" src="http://site.kleargear.com/images/box2.gif"/></td><td><img width="150" height="25" border="0" src="http://site.kleargear.com/images/title3.gif"/><br/>Still can’t find what you’re searching for?  Provide us a brief description of the item that you’re trying to find so that we can improve our search. <b>Please note:</b> we are unable to reply directly to suggestions.</td></tr></table><br /><textarea id="comment" name="comment" class="comment" rows="4" cols="45" ></textarea><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr valign="top"><td><input width="79" type="image" height="26" name="Submit" src="http://site.kleargear.com/images/button_submit2.gif"/></td><td align="center">For additional information, <a class="bluetext" href="http://www.kleargear.com/help.html">click here</a> to visit our Help Center.</td></tr></table></div></form>');		$('#contactable').click(function() {			var replacement = $("b", this).text() == "Can't find what you're looking for?  Click here" ? "Close" : "Can't find what you're looking for?  Click here";			$("b", this).fadeOut(function(){ $(this).text(replacement).fadeIn() });			$('#contactForm').toggle();			return false;			});		$("#contactForm").validate({			rules: {				comment: {				required: true			}		},		messages: {			name: "",			email: "",			comment: ""		},			submitHandler: function() {			$('.holder').hide();			$('#loading').show();			$.get('mail.php',{comment:$('#comment').val()},			function(data){				$('#loading').css({display:'none'}); 				if( data == 'success') {					$('#callback').show().append(defaults.recievedMsg);				} else {					$('#callback').show().append(defaults.notRecievedMsg);				}			});		}		});	});};})(jQuery);
