Compounds of formula wherein R 1, R 2, R 3 and R 4 are independently selected from H, halogen, cyano, nitro, alkoxycarbonyl, cycloalkoxycarbonyl, substituted aminocarbonyl, substituted aminosulfonyl, alkyl, haloalkyl, cycloalkyl, alkoxy, haloalkoxy and cycloalkoxy, wherein substituted aminocarbonyl and substituted aminosulfonyl are substituted on the nitrogen atom with one to two substituents independently selected from H, alkyl, cycloalkyl, hydroxyalkyl and alkoxyalkyl; R 5 is H, halogen, alkyl or cycloalkyl; R 6 is H, alkyl, haloalkyl, cycloalkyl, substituted aryl or substituted heteroaryl, wherein substituted aryl or substituted heteroaryl are substituted with R 19, R 20 and R 21; R 7, R 8, R 9, R 10, R 11 and R 12 are independently selected from H, halogen, alkyl and haloalkyl; A is -(CR 13 R 14) p -NR 15 R 16 or -(CR 13 R 14) p- OR 16; R 13 and R 14 are independently selected from H, alkyl, haloalkyl, cycloalkyl and halocycloalkyl; R 15 is H, alkyl, haloalkyl, cycloalkyl, hydroxyalkyl, alkoxyalkyl or haloalkoxyalkyl; R 16 is H, alkyl, haloalkyl, cycloalkyl, hydroxyalkyl, alkoxyalkyl, haloalkoxyalkyl, oxetanylalkyl, -CH 2 -C OH, -CH 2 -C OR 17, -CH 2 -C -NR 17 R 18, -S R 17, - S 2 R 17, -S 2 OR 17, -S 2 NR 17 R 18, -C R 17, -C OR 17 or -C NR 17 R 18; R 17 is alkyl, hydroxyalkyl, haloalkyl, cycloalkyl, alkylcycloalkyl, alkylcycloalkylalkyl, cycloalkylalkyl, cycloalkoxyalkyl, cycloalkylalkoxyalkyl, alkoxyalkyl, haloalkoxyalkyl, alkoxyalkoxyalkyl or substituted heteroaryl, wherein substituted heteroaryl is substituted with R 22, R 23 and R 24; R 18 is H, alkyl, haloalkyl, cycloalkyl, alkoxyalkyl, haloalkoxyalkyl or hydroxyalkyl; R 19, R 20, R 21, R 22, R 23 and R 24 are independently selected from H, halogen, alkyl, haloalkyl, cycloalkyl, alkoxy and haloalkoxy; n is zero, 1 or 2; p is zero or 1; or pharmaceutically acceptable salts or esters; and wherein the term "alkyl" denotes a monovalent linear or branched saturated hydrocarbon group of 1 to 12 carbon atoms. R 1, R 2, R 3 and R 4 are independently selected from H, halogen, cyano, nitro, alkoxycarbonyl, cycloalkoxycarbonyl, substituted aminocarbonyl, substituted aminosulfonyl, alkyl, haloalkyl, cycloalkyl, alkoxy, haloalkoxy and cycloalkoxy, wherein substituted aminocarbonyl and substituted aminosulfonyl are substituted on the nitrogen atom with one to two substituents independently selected from H, alkyl, cycloalkyl, hydroxyalkyl and alkoxyalkyl; R 5 is H, halogen, alkyl or cycloalkyl; R 6 is H, alkyl, haloalkyl, cycloalkyl, substituted aryl or substituted heteroaryl, wherein substituted aryl or substituted heteroaryl are substituted with R 19, R 20 and R 21; R 7, R 8, R 9, R 10, R 11 and R 12 are independently selected from H, halogen, alkyl and haloalkyl; A is -(CR 13 R 14) p -NR 15 R 16 or -(CR 13 R 14) p- OR 16; R 13 and R 14 are independently selected from H, alkyl, haloalkyl, cycloalkyl and halocycloalkyl; R 15 is H, alkyl, haloalkyl, cycloalkyl, hydroxyalkyl, alkoxyalkyl or haloalkoxyalkyl; R 16 is H, alkyl, haloalkyl, cycloalkyl, hydroxyalkyl, alkoxyalkyl, haloalkoxyalkyl, oxetanylalkyl, -CH 2 -C OH, -CH 2 -C OR 17, -CH 2 -C -NR 17 R 18, -S R 17, - S 2 R 17, -S 2 OR 17, -S 2 NR 17 R 18, -C R 17, -C OR 17 or -C NR 17 R 18; R 17 is alkyl, hydroxyalkyl, haloalkyl, cycloalkyl, alkylcycloalkyl, alkylcycloalkylalkyl, cycloalkylalkyl, cycloalkoxyalkyl, cycloalkylalkoxyalkyl, alkoxyalkyl, haloalkoxyalkyl, alkoxyalkoxyalkyl or substituted heteroaryl, wherein substituted heteroaryl is substituted with R 22, R 23 and R 24; R 18 is H, alkyl, haloalkyl, cycloalkyl, alkoxyalkyl, haloalkoxyalkyl or hydroxyalkyl; R 19, R 20, R 21, R 22, R 23 and R 24 are independently selected from H, halogen, alkyl, haloalkyl, cycloalkyl, alkoxy and haloalkoxy; n is zero, 1 or 2; p is zero or 1; or pharmaceutically acceptable salts or esters; and wherein the term "alkyl" denotes a monovalent linear or branched saturated hydrocarbon group of 1 to 12 carbon atoms.