kings supported the popular religions of the day in the traditional spirit of religious tolerance. Scholars have offered various arguments regarding which specific religion the Rashtrakutas favoured, basing their evidence on inscriptions, coins and contemporary literature. Some claim the Rashtrakutas were inclined towards Jainism since many of the scholars who flourished in their courts and wrote in Sanskrit, Kannada and a few in Apabhramsha and Prakrit were Jains. The Rashtrakutas built well-known Jain temples at locations such as Lokapura in Bagalkot district and their loyal feudatory, the Western Ganga Dynasty, built Jain monuments at Shravanabelagola and Kambadahalli. Scholars have suggested that Jainism was a principal religion at the very heart of the empire, modern Karnataka, accounting for more than 30% of the population and dominating the culture of the region. King Amoghavarsha I was a disciple of the Jain acharya Jinasena and wrote in his religious writing, Prashnottara Ratnamalika, "having bowed to Varaddhamana (Mahavira), I write Prashnottara Ratnamalika". The mathematician Mahaviracharya wrote in his Ganita Sarasangraha, "The subjects under Amoghavarsha are happy and the land yields plenty of grain. May the kingdom of King Nripatunga Amoghavarsha, follower of Jainism ever increase far and wide." Amoghavarsha may have taken up Jainism in his old age. However, the Rashtrakuta kings also patronized Hinduism's followers of the Shaiva, Vaishnava and Shakta faiths. Almost all of their inscriptions begin with an invocation to god Vishnu or god Shiva. The Sanjan inscriptions tell of King Amoghavarsha I sacrificing a finger from his left hand at the Lakshmi temple at Kolhapur to avert a calamity in his kingdom. King Dantidurga performed the Hiranyagarbha (horse sacrifice) and the Sanjan and Cambay plates of King Govinda IV mention Brahmins performing such rituals as Rajasuya, Vajapeya and Agnishtoma. An early copper plate grant of King Dantidurga (753) shows an image of god Shiva and the coins of his successor, King Krishna I (768), bear the legend Parama Maheshwara (another name for Shiva). The kings' titles such as Veeranarayana showed their Vaishnava leanings. Their flag had the sign of the Ganges and Yamuna rivers, perhaps copied from the Badami Chalukyas. The famous Kailasnatha temple at Ellora and other rock-cut caves attributed to them show that the Hinduism was flourishing. Their family deity was a goddess by name Latana (also known as Rashtrashyena, Manasa Vindyavasini) who took the form of a falcon to save the kingdom. They built temples with icons