A compound represented by the formula (IV), (V), (VI) or (VII): or a pharmaceutically acceptable salt thereof, wherein it represents a single or double bond; B is straight or branched alkyl, alkenyl, alkynyl, arylalkyl, arylalkenyl, arylalkynyl, heteroarylalkyl, heteroarylalkenyl, heteroarylalkynyl, heterocyclylalkyl, heterocyclylalkenyl, heterocyclylalkynyl, aryl, heteroaryl, heterocyclyl, cycloalkyl, cycloalkenyl, alkylarylalkyl, alquilarilalquenilo, alquilarilalquinilo, alquenilarilalquilo, alquenilarilalquenilo I alquenilarilalquinilo , alquinilarilalquilo, alquinilarilalquenilo, alquinilarilalquinilo, alkylheteroarylalkyl, alquilheteroarilalquenilo, alquilheteroarilalquinilo, alquenilheteroarilalquilo, alquenilheteroarilalquenilo, alquenilheteroarilalquinilo, alquinilheteroarilalquilo, alquinilheteroarilalquenilo, alquinilheteroarilalquinilo, alkylheterocyclylalkyl, alquilheterociclilalquenilo, alquilheterociclilalquinilo, alquenilheterociclilalquilo, alquenilheterociclilalquenilo, alquenilheterociclilalquinilo, alquinilheterociclilalquilo, alquinilheterociclilalquenilo, alquinilheterociclilalquinil or, alkylaryl, alkenyl, alkylaryl, alkylheteroaryl, alkenylheteroaryl, or alkynylheteroaryl, wherein one or more methylenes may be interrupted or terminated by O, S, S (O), SO2, N (R8), C (O), aryl, heteroaryl, or heterocyclic; s is 1; q and r are each 0; n is 0, 1, 2, 3 or 4; p is 0, 1 or 2; G1 is CHR1, S, O, NR10 or NS (O) 2R10; G2 is substituted or unsubstituted aryl or substituted or unsubstituted heteroaryl; each R1 and R2 is independently selected from hydroxy, amino, halogen, alkoxy, alkylamino, dialkylamino, CF3, CN, NO2, sulfonyl, acyl, aliphatic, aryl, heteroaryl and heterocyclic; each R8 is independently hydrogen, acyl, or aliphatic; R10 is selected from hydrogen, hydroxy, amino, alkoxy, alkylamino, dialkylamino, sulfonyl, acyl, aliphatic, aryl, heteroaryl, and heterocyclic; m is 0, 1, 2 or 3; G4 is S or O; each R3 is independently selected from hydroxy,