// JavaScript Document
function changeMasthead(id){

	switch(id){
		case "1" :
            jQuery("#spark1").fadeOut(300);
            jQuery("#spark2").fadeOut(300);
            jQuery("#batery1").fadeIn(1500);
            jQuery("#batery2").fadeIn(1500);
            jQuery("#brakes1").fadeOut(300);
            jQuery("#brakes2").fadeOut(300);
/*            jQuery("#service1").fadeOut(300);
            jQuery("#service2").fadeOut(300);
*/            break;
        
         case "2" :
            jQuery("#spark1").fadeIn(1500);
            jQuery("#spark2").fadeIn(1500);
            jQuery("#batery1").fadeOut(1500);
            jQuery("#batery2").fadeOut(1500);
            jQuery("#brakes1").fadeOut(300);
            jQuery("#brakes2").fadeOut(300);
/*            jQuery("#service1").fadeOut(300);
            jQuery("#service2").fadeOut(300);*/
            break;

       case "3" :
            jQuery("#spark1").fadeOut(300);
            jQuery("#spark2").fadeOut(300);
            jQuery("#batery1").fadeOut(300);
            jQuery("#batery2").fadeOut(300);
            jQuery("#brakes1").fadeIn(1500);
            jQuery("#brakes2").fadeIn(1500);
/*            jQuery("#service1").fadeOut(300);
            jQuery("#service2").fadeOut(300);
*/            break;

        case "4" :
            jQuery("#spark1").fadeOut(300);
            jQuery("#spark2").fadeOut(300);
            jQuery("#batery1").fadeOut(300);
            jQuery("#batery2").fadeOut(300);
            jQuery("#brakes1").fadeOut(300);
            jQuery("#brakes2").fadeOut(300);
            jQuery("#service1").fadeIn(1500);
            jQuery("#service2").fadeIn(1500);
            break;
            
    }
}

function zipCodeFocusInOut (){
	zipCodeFocusIn();
}

function zipCodeFocusOut(){
	jQuery("#fservice").focusout(function() {
		jQuery(this).attr("value", "Zip Code");						 
	});
	
	jQuery("#fstore").focusout(function() {
		jQuery(this).attr("value", "Zip Code");						 
	});
	
	jQuery("#fheaderzipcodeParts").focusout(function() {
		jQuery(this).attr("value", "Zip Code");					 
	});
	
	jQuery("#fheaderzipcodeService").focusout(function() {
		jQuery(this).attr("value", "Zip Code");					 
	});
	
	jQuery("#fsearch").focusout(function() {
		jQuery(this).attr("value", "Search");					 
	});
}

function zipCodeFocusIn(){
	jQuery("#fservice").focusin(function() {
		jQuery(this).attr("value", "");						 
	});
	
	jQuery("#fstore").focusin(function() {
		jQuery(this).attr("value", "");					 
	});
	
	jQuery("#fheaderzipcodeParts").focusin(function() {
		jQuery(this).attr("value", "");					 
	});
	
	jQuery("#fheaderzipcodeService").focusin(function() {
		jQuery(this).attr("value", "");					 
	});
	
	jQuery("#fsearch").focusin(function() {
		jQuery(this).attr("value", "");					 
	});
}
