
$.noConflict();
jQuery(document).ready( function(){
	jQuery('#password-clear').show();
	jQuery('#password-password').hide();

	jQuery('#password-clear').focus(function() {
	    jQuery('#password-clear').hide();
	    jQuery('#password-password').show();
	    jQuery('#password-password').focus();
	});
	jQuery('#password-password').blur(function() {
	    if(jQuery('#password-password').val() == '') {
	        jQuery('#password-clear').show();
	        jQuery('#password-password').hide();
	    }
	});

	jQuery('.default-value').each(function() {
	    var default_value = this.value;
	    jQuery(this).css('color', '#666'); // this could be in the style sheet instead
	    jQuery(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	            jQuery(this).css('color', '#333');
	        }
	    });
	    jQuery(this).blur(function() {
	        if(this.value == '') {
	            jQuery(this).css('color', '#666');
	            this.value = default_value;
	        }
	    });
	});
});


var min=75;
var max=200;
function increaseFontSize() {
   var p = document.getElementsByTagName('body');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("%",""));
      } else {
         var s = 100;
      }
      if(s!=max) {
         s += 25;
      }
      p[i].style.fontSize = s+"%"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('body');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("%",""));
      } else {
         var s = 100;
      }
      if(s!=min) {
         s -= 25;
      }
      p[i].style.fontSize = s+"%"
   }   
}
