$(function(){

/* Roll Over Image */
	var imageCache = new Object();
	$('.rollover a img').not('[src*="_o."]').each(function(i){
		var srcOff=this.src;
		var dot=this.src.lastIndexOf('.');
		var srcOn=this.src.substr(0, dot)+'_o'+this.src.substr(dot, 4);
		imageCache[this.src]=new Image();
		imageCache[this.src].src=srcOn;
		$(this).hover(
			function(){this.src=srcOn;},
			function(){this.src=srcOff;}
		);
	});

/* Scroll Up */
  $('.nav-up a').click(function(){
    window.scrollTo(0,0);
    return false;
  });

/* Form Focus */
	$('form :text').css('color','#808080');
	$('form :text').focus(function(){
		var value=$(this).val();
		$(this).val('');
		$(this).css('color','#333');
		$(this).blur(function(){
			if ($(this).val()==''){
				$(this).val(value);
				$(this).css('color','#808080');
			}
		});
	});
	$('form #reset').click(function(){
		$('form :text').css('color','#808080');
	});

});

