Im abit rusty on my history..but The Rig Veda does talk about the caste system. However it does not preach racial superiority.
The Indian society was too be divided into 4 general catagory's or castes which was decided according to the type of work the person did. This caste system was hierarchial in nature too.
Kshatriya's
This was the warrior class..all kings,generals,soldiers,etc..belonged to this, and their basic duty was protection. They were given the highest position because of the very basic function they preformed.
Brahmins
They were the custodian of hindu religion..duties included performing religious rites and ceremonies. They were the educated class and were the means for mere mortals and the gods.
Vaishaya's
The merchant class
Shudra's
They performed duties which included scavenging, disposing dead bodies, and agricultre
This caste system was not at all rigid, and one could move up in the oder..that is it wasnt heirdiatary in nature..one's job decided his caste.
But as time went by..this system became rigid..and the brahmins became the most powerful amoung all the 4. Scholars like Manu..came and made laws which maintained the brahmical supermacy and in talked about female insubordination..a pointed to be noted is..till now females were considered to be equal to men in every sense. Now the caste system became heirdiatry,..and you could not move out of your caste whatever duty you performed.
This was one of the major reasons for the degenration of Hinduism..Things seem really bad also cause of the way it has been politicised by politicians. They talk about Hindu superiority not because they believe in it..but because they know they can get the maximum number of votes by doing this.
The situation might sound bad..but India still remains one of the most secular country's in the true sense of the word.
Seems to me..i have hijacked this thread in a way..considering it began as a simple query about the dwarikanath temple in dwarka