/* trigger when page is ready */
jQuery(document).ready(function (){

	//Remove Margin Right on Every 3rd Item in Location List
	jQuery("ul.locationList > li:nth-child(3n)").css("margin-right", "0px");
	
	
	//Toggle State Detail
	
	jQuery('.ca').click(function() {
    	jQuery('.locationCA').toggle();

    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide(); 
 	 });
	jQuery('.tx').click(function() {
    	jQuery('.locationTX').toggle();
    	jQuery('.locationCA').hide();
    
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.mo').click(function() {
 	 	jQuery('.locationMO').toggle();
    	jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.njLink').click(function() {
 	 	jQuery('.locationNJ').toggle();
    	jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();

    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.la').click(function() {
 	 	jQuery('.locationLA').toggle();
    	jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
  
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.ga').click(function() {
 	 	jQuery('.locationGA').toggle();
    	jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
   
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.ks').click(function() {
 	 	jQuery('.locationKS').toggle();
    	jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 

    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.nc').click(function() {
    	jQuery('.locationNC').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
 
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.va').click(function() {
    	jQuery('.locationVA').toggle();
    	jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  

    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.md').click(function() {
    	jQuery('.locationMD').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 

    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.dc').click(function() {
    	jQuery('.locationDC').toggle();
    	jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
  
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 
 	 jQuery('.ct').click(function() {
    	jQuery('.locationCT').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 
 	 jQuery('.ma').click(function() {
    	jQuery('.locationMA').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
  
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 
 	 jQuery('.me').click(function() {
    	jQuery('.locationME').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();

    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	 jQuery('.pa').click(function() {
    	jQuery('.locationPA').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
      
    	jQuery('.locationLI').hide();  
    	jQuery('.locationOH').hide();
 	 });
 	  jQuery('.li').click(function() {
    	jQuery('.locationLI').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
 
    	jQuery('.locationOH').hide();
 	 });
 	  jQuery('.oh').click(function() {
    	jQuery('.locationOH').toggle();
    		jQuery('.locationCA').hide();
    	jQuery('.locationTX').hide(); 
    	jQuery('.locationMO').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationLA').hide(); 
    	jQuery('.locationGA').hide(); 
    	jQuery('.locationKS').hide();
    	jQuery('.locationNC').hide();  
    	jQuery('.locationVA').hide(); 
    	jQuery('.locationMD').hide(); 
    	jQuery('.locationDC').hide();
    	jQuery('.locationNJ').hide();  
    	jQuery('.locationCT').hide(); 
    	jQuery('.locationMA').hide();
    	jQuery('.locationME').hide();
    	jQuery('.locationPA').hide();  
    	jQuery('.locationLI').hide();  
    
 	 });
 	 
 	 jQuery('#viewAll').click(function() {
    	jQuery('.locationCA').show();
    	jQuery('.locationMO').show();
    	jQuery('.locationTX').show();
    	jQuery('.locationLA').show();
    	jQuery('.locationKS').show();
    	jQuery('.locationOH').show();
    	jQuery('.locationGA').show();
    	jQuery('.locationNC').show();
    	jQuery('.locationVA').show();
    	jQuery('.locationMD').show();
    	jQuery('.locationDC').show();
    	jQuery('.locationPA').show();
    	jQuery('.locationNJ').show();
    	jQuery('.locationVA').show();
    	jQuery('.locationCT').show();
    	jQuery('.locationLI').show();
    	jQuery('.locationMA').show();
    	jQuery('.locationME').show();
 	 });
 	 
 	 
 	 jQuery('.queens').click(function() {
    	jQuery('.locationQueens').toggle();
    	jQuery('.locationManhattan').hide(); 
    	jQuery('.locationBronx').hide();
    	jQuery('.locationBrooklyn').hide();  
    	jQuery('.locationStaten').hide(); 
    	jQuery('.locationOther').hide(); 
   	 });
   	 
   	  jQuery('.manhattan').click(function() {
    	jQuery('.locationManhattan').toggle();
    	jQuery('.locationQueens').hide(); 
    	jQuery('.locationBronx').hide();
    	jQuery('.locationBrooklyn').hide();  
    	jQuery('.locationStaten').hide(); 
    	jQuery('.locationOther').hide(); 
   	 });
   	 
   	 jQuery('.brooklyn').click(function() {
    	jQuery('.locationBrooklyn').toggle();
    	jQuery('.locationQueens').hide(); 
    	jQuery('.locationBronx').hide();
    	jQuery('.locationManhattan').hide();  
    	jQuery('.locationStaten').hide(); 
    	jQuery('.locationOther').hide(); 
   	 });
   	 
   	 jQuery('.bronx').click(function() {
    	jQuery('.locationBronx').toggle();
    	jQuery('.locationQueens').hide(); 
    	jQuery('.locationBrooklyn').hide();
    	jQuery('.locationManhattan').hide();  
    	jQuery('.locationStaten').hide(); 
    	jQuery('.locationOther').hide(); 
   	 });
   	 
   	  jQuery('.staten').click(function() {
    	jQuery('.locationStaten').toggle();
    	jQuery('.locationQueens').hide(); 
    	jQuery('.locationBrooklyn').hide();
    	jQuery('.locationManhattan').hide();  
    	jQuery('.locationBronx').hide(); 
    	jQuery('.locationOther').hide(); 
   	 });
   	 
   	 jQuery('.otherNY').click(function() {
    	jQuery('.locationOther').toggle();
    	jQuery('.locationQueens').hide(); 
    	jQuery('.locationBrooklyn').hide();
    	jQuery('.locationManhattan').hide();  
    	jQuery('.locationBronx').hide(); 
    	jQuery('.locationStaten').hide(); 
   	 });
   	 
   	  jQuery('.nyAll').click(function() {
    	jQuery('.locationOther').show();
    	jQuery('.locationQueens').show(); 
    	jQuery('.locationBrooklyn').show();
    	jQuery('.locationManhattan').show();  
    	jQuery('.locationBronx').show(); 
    	jQuery('.locationStaten').show(); 
   	 });

 	 
 	 

});



