$(document).ready(function(){

				$('form.demo').jqTransform({imgPath:'/www/js/jqtransformplugin/img/'});

				function hideDefaultLabels(){
					$('form.demo').find('input[type="text"]').each(function(){
					    $(this).focus(function(){
					    	if (($(this).attr('data-default'))==($(this).attr('value'))) {
							    $(this).attr('value','');
						    }
						});
					    $(this).blur(function(){
					    	if (($(this).attr('value'))=='') {
							    $(this).attr('value',$(this).attr('data-default'));
						    }
						});
					});

					$('form.demo').find('textarea').each(function(){
					    $(this).focus(function(){
					    	if (($(this).attr('data-default'))==($(this).attr('value'))) {
							    $(this).attr('value','');
						    }
						});
					    $(this).blur(function(){
					    	if (($(this).attr('value'))=='') {
							    $(this).attr('value',$(this).attr('data-default'));
						    }
						});
					});
					
				}
				
				var optionsPageForm = { 
				    target:     '#page-form',
				    success:    function() {
						$('form.demo').jqTransform({imgPath:'/www/js/jqtransformplugin/img/'});
						$('#page-form form.demo:first').submit(function(){
							$(this).find('input[type="text"]').each(function(){
							    if (($(this).attr('data-default'))==($(this).attr('value'))) {
								    $(this).attr('value','');
							    }
							});
							$(this).find('textarea').each(function(){
							    if (($(this).attr('data-default'))==($(this).attr('value'))) {
								    $(this).attr('value','');
							    }
							});
						    $(this).ajaxSubmit(optionsPageForm);
							return false;
						});  
						hideDefaultLabels();
				    },
				};
				$('#page-form form.demo:first').submit(function(){
					$(this).find('input[type="text"]').each(function(){
					    if (($(this).attr('data-default'))==($(this).attr('value'))) {
						    $(this).attr('value','');
					    }
					});
					$(this).find('textarea').each(function(){
					    if (($(this).attr('data-default'))==($(this).attr('value'))) {
						    $(this).attr('value','');
					    }
					});
				    $(this).ajaxSubmit(optionsPageForm);
					return false;
				});  
				
				var optionsFooterForm = { 
					    target:     '#footer-form',
					    success:    function() {
							$('form.demo').jqTransform({imgPath:'/www/js/jqtransformplugin/img/'});
							$('#footer-form form.demo:first').submit(function(){
								$(this).find('input[type="text"]').each(function(){
								    if (($(this).attr('data-default'))==($(this).attr('value'))) {
									    $(this).attr('value','');
								    }
								});
								$(this).find('textarea').each(function(){
								    if (($(this).attr('data-default'))==($(this).attr('value'))) {
									    $(this).attr('value','');
								    }
								});
							    $(this).ajaxSubmit(optionsFooterForm);
								return false;
							});  
							hideDefaultLabels();
					    },
					};
				$('#footer-form form.demo:first').submit(function(){
					$(this).find('input[type="text"]').each(function(){
					    if (($(this).attr('data-default'))==($(this).attr('value'))) {
						    $(this).attr('value','');
					    }
					});
					$(this).find('textarea').each(function(){
					    if (($(this).attr('data-default'))==($(this).attr('value'))) {
						    $(this).attr('value','');
					    }
					});
				    $(this).ajaxSubmit(optionsFooterForm);
					return false;
				}); 

				hideDefaultLabels();

			});
