// Lighting NewYork Customer Service 

$(function(){
	$("#cs1, #cs2, #cs3, #cs4, #cs5").click(function(e){
		e.preventDefault();
	});
	
	//display the customer service tag based on the location selected
	if( cs == 2 ){
		$("#cs2").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#shipping").show("slow");
	}
	else if( cs == 3 ){
		$("#cs3").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#guarantee").show("slow");
	}
	else if( cs == 4 ){
		$("#cs4").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#policy").show("slow");
	}
	else if( cs == 5 ){
		$("#cs5").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#security").show("slow");
	}
	else{
		$("#cs1").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#contact").show("slow");	
	}
	
	$("a#cs1").click(function(){
		$("#cs1").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#cs2, #cs3, #cs4, #cs5").css({
										'background-color' : 'white',
										'border-bottom-color' : '#ccc',
										'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
										});
		$("#guarantee, #shipping, #policy, #security").hide("slow");
		$("#contact").show("slow");
	});
	$("a#cs2").click(function(){
		$("#cs2").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#cs1, #cs3, #cs4, #cs5").css({
										'background-color' : 'white',
										'border-bottom-color' : '#ccc',
										'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
										});
		$("#contact, #guarantee, #policy, #security").hide("slow");
		$("#shipping").show("slow");
	});
	$("a#cs3").click(function(){
		$("#cs3").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#cs1, #cs2, #cs4, #cs5").css({
										'background-color' : 'white',
										'border-bottom-color' : '#ccc',
										'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
										});
		$("#contact, #shipping, #policy, #security").hide("slow");
		$("#guarantee").show("slow");
	});
	$("a#cs4").click(function(){
		$("#cs4").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#cs1, #cs2, #cs3, #cs5").css({
										'background-color' : 'white',
										'border-bottom-color' : '#ccc',
										'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
										});
		$("#contact, #shipping, #guarantee, #security").hide("slow");
		$("#policy").show("slow");
	});
	$("a#cs5").click(function(){
		$("#cs5").css({
					  'background-color' : 'white',
					  'border-bottom-color' : 'white',
					  'background-image' : 'url(/grfx/cs/cs_tab_selected.png)'
					  });
		$("#cs1, #cs2, #cs3, #cs4").css({
										'background-color' : 'white',
										'border-bottom-color' : '#ccc',
										'background-image' : 'url(/grfx/cs/cs_tab_gradient.png)'
										});
		$("#contact, #shipping, #guarantee, #policy").hide("slow");
		$("#security").show("slow");
	});
});