var changeInputText = function () {	if ($(this).val() == '')		$(this).val($(this).data('defaultText'));	else if ($(this).val() == $(this).data('defaultText'))		$(this).val('');}function showform(target) {	$(target).width(0).height($(target).data('origHeight')).css('overflow', 'hidden').show().animate(		{ width: $(target).data('origWidth') + 'px'},		200	);}function hideform(target) {	if (target == 0)		target = this;	$(target).animate(		{ width: '0px'},		{ duration: 200, complete: function() { $(this).hide(); }}	);}$(document).ready(function() {	$("a[rel=external]").attr('target', '_blank');	$('.iframe').fancybox({		padding: 2,		overlayColor: '#000',		overlayOpacity: 0.55,		frameWidth: 477,		frameHeight: 477,		showCloseButton: false,		hideOnContentClick: false	});	$("#bottles").scrollable({ speed: 600, size: 5 }).circular().autoscroll({ steps: 5, interval: 5000 });	$('#footer .email form').each(function() {		$(this).data('origWidth', $(this).width());		$(this).data('origHeight', $(this).height());	});	$('#footer .email li a').click(function(event) {		event.preventDefault();		$(this).parent().siblings().children('form:visible').each(hideform);		$(this).siblings('form').each(function() {			if ($(this).css('display') == 'none')				showform(this);			else				hideform(this);		});		$(this).blur();	});	$('#footer .join input').each(function () {		$(this).data('defaultText', 'Sähköpostiosoitteesi');	}).each(changeInputText).blur(changeInputText).focus(changeInputText);	$('#footer .send input').each(function () {		$(this).data('defaultText', 'Kaverisi sähköpostiosoite');	}).each(changeInputText).blur(changeInputText).focus(changeInputText);});