//menu javascript
	  $(document).ready(function(){
			$("#nav-one li").hover(
				function(){ $("ul", this).fadeIn("fast"); }, 
				function() { } 
			);
	  	if (document.all) {
				$("#nav-one li").hoverClass ("sfHover");
			}
	  });
	  
		$.fn.hoverClass = function(c) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(c);  },
					function() { $(this).removeClass(c); }
				);
			});
		};	  
//typewriter effect
	$.fn.typewriter = function(opt) {
	  var typeone = function(self, text, content) {
	    if (text.length > 0) {
	      var next = text.match(/(\s*(<[^>]*>)?)*(&.*?;|.?)/)[0];
	      text = text.substr(next.length);
	      $(self).html(content+next);
	      setTimeout(function(){
	        typeone(self, text, content+next);
	      }, opt['delay']);
	    }
	  }
	  this.each(function() {
	    opt = opt || { 'delay': 100 };
	    $(this).height($(this).height());
	    $(this).width($(this).width());
	    typeone(this, $(this).html(), '');
	  });
	}

	$(document).ready(function(){
	  $(".typewriter")
	  .typewriter();
	  $(".typeslower")
	  .typewriter({'delay': 400});
	});
//default hide "extra" div     
    	$(document).ready(function() {
	 // hides the slickbox as soon as the DOM is ready
	 // (a little sooner than page load)
	  $('#extra').hide();
	}); 
//cleartext func
     function clearText(field){
	     if (field.defaultValue == field.value) field.value = '';
	     else if (field.value == '') field.value = field.defaultValue;
    }	