// JavaScript Document

// Text Box disappearing text
// Input element must have class="default-value"
var active_color = '#000'; // Color of user provided text
var inactive_color = '#666'; // Color of default text

$(document).ready(function() {
  
  // Text Box
  $("input.default-value").css("color", inactive_color);
	  var default_values = new Array();
	  $("input.default-value").focus(function() {
	  if (!default_values[this.id]) {
		default_values[this.id] = this.value;
	  }
	  if (this.value == default_values[this.id]) {
		this.value = '';
		this.style.color = active_color;
	  }
	  $(this).blur(function() {
		if (this.value == '') {
		  this.style.color = inactive_color;
		  this.value = default_values[this.id];
		}
	  });
  });

}); // END Ready Function



// Extended Warranty Pop-Up - Centered

function popup(url) 
{
 var width  = 700;
 var height = 550;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

// Jump Menus

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
