// Lighting NewYork Customer Service 

$(function(){
	$("#pdt1, #pdt2, #pdt3, #pdt4").click(function(e){
		$("#padding").scrollTop(0);
		e.preventDefault();
	});
	
	//setup pd1 information as page loads
	$("#pdt1").css({
		'background-color' : 'white',
		'border-bottom-color' : 'white',
		'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
	});
	$("#pd1").fadeIn();	
	
	//information swapping on tab clicks
	$("a#pdt1").click(function(){
		$("#pdt1").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#pdt2, #pdt3, #pdt4").css({
					  'background-color' : 'white',
					  'border-bottom-color' : '#ccc',
					  'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
					  });
		$("#pd2, #pd3, #pd4").fadeOut();
		$("#pd1").fadeIn();
	});
	$("a#pdt2").click(function(){
		
		$("#pdt2").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#pdt1, #pdt3, #pdt4").css({
					  'background-color' : 'white',
					  'border-bottom-color' : '#ccc',
					  'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
					  });
		$("#pd1, #pd3, #pd4").fadeOut();
		$("#pd2").fadeIn();
	});
	$("a#pdt3").click(function(){
		$("#pdt3").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#pdt1, #pdt2, #pdt4").css({
					  'background-color' : 'white',
					  'border-bottom-color' : '#ccc',
					  'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
					  });
		$("#pd1, #pd2, #pd4").fadeOut();
		$("#pd3").fadeIn();
	});
	$("a#pdt4").click(function(){
		$("#pdt4").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#pdt1, #pdt2, #pdt3").css({
					  'background-color' : 'white',
					  'border-bottom-color' : '#ccc',
					  'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
					  });
		$("#pd1, #pd2, #pd3").fadeOut();
		$("#pd4").fadeIn();
	});
});
