﻿var v;var i=0;var k=0;var n;var ff=0;var s1=0;
     var gods=new Array();
     var godnames=new Array();
     gods[0]="http://mypurohith.com/new/images/8.gif";godnames[0]="SRI VIGHNESHWARA";
     gods[1]="http://epurohith.com/new/images/4.gif";godnames[1]="SRI SHIVA";
     gods[2]="http://epurohith.com/new/images/017.gif";godnames[2]="SRI VISHNU";     
     gods[3]="http://epurohith.com/new/images/013.gif";godnames[3]="SRI RAMA";
     gods[4]="http://epurohith.com/new/images/015.gif";godnames[4]="SAI BABA";
     gods[5]="http://epurohith.com/new/images/7.gif";godnames[5]="SRI LAKSHMI NARASIMHA SWAMY";
     gods[6]="http://epurohith.com/new/images/3.gif";godnames[6]="SRI KRISHNA";
     gods[7]="http://epurohith.com/new/images/2.gif";godnames[7]="SARASWATHI DEVI";
     gods[8]="http://epurohith.com/new/images/5.gif";godnames[8]="LAKSHMI DEVI";
     gods[9]="http://epurohith.com/new/images/016.gif";godnames[9]="SRI ANJANEYA";
     gods[10]="http://epurohith.com/new/images/012.gif";godnames[10]="GAYATRI DEVI";
     gods[11]="http://epurohith.com/new/images/9.gif";godnames[11]="SRI SURYA BHAGAVAN";
     gods[12]="http://epurohith.com/new/images/6.gif";godnames[12]="DURGA DEVI";
     gods[13]="http://epurohith.com/new/images/oam.jpg";godnames[13]="OAM";     
     var se=new Array();
     se[0]="pooja";se[1]="ind";se[2]="match";se[3]="muhur";se[4]="query";se[5]="";     
     var col=new Array();
     col[0]="navy";col[1]="green";col[2]="maroon";col[3]="teal";col[4]="purple";col[5]="";
     var matter=new Array();
     matter[0]="Perform Online Pooja on behalf of you";
     matter[1]="Your Horoscope";
     matter[2]="Your & Your life partner's Horoscope";
     matter[3]="Muhurthams for occassions";
     matter[4]="Queries:Astrology, \n Vaasthu,Panchangam";matter[5]="";
     var items=new Array();
     items[1]="http://mypurohith.com/new/images/festi.gif";items[2]="http://mypurohith.com/new/images/aur.gif";items[3]="http://mypurohith.com/new/images/astrolo.gif";
     items[4]="http://mypurohith.com/new/images/epics.gif";items[5]="http://mypurohith.com/new/images/muhur.gif";items[6]="http://mypurohith.com/new/images/matri.gif";
     items[7]="http://mypurohith.com/new/images/vastu.gif";items[8]="http://mypurohith.com/new/images/yoga.gif";items[9]="http://mypurohith.com/new/images/encyclo.gif";
     items[0]="http://mypurohith.com/new/images/ritu.gif";
     var itemmatter=new Array();
     itemmatter[1]="Festivals have existed in India since the Vedic age, a time when the Aryans ruled over the Sapta Sindhu region and the oldest Indian texts, the Vedas were composed.";
     itemmatter[2]="Ayurveda is a branch (Upaveda) of Atharvana Veda which deals with natural curing of diseases, including chronic. As the name 'Ayuh' suggests it denotes the lifetime of a man and suggests remedies to increase his span of it.";
     itemmatter[3]="Astrology (Jyotisha) is a science dealing with mathematics and astronomy. It is based on the placements of the Stars, Planets (including the Sun and the Moon) with respect to their angular distances."
     itemmatter[4]="The holy books which speak volumes about our Dharmashastras, Rituals & Customs are Epics or Puranas. To dissipate the whole lot of sins commited every day by man, reading and chanting the  legends of god is really a boon for man.";
     itemmatter[5]="The Muhurtham is also familiar as ‘Lagnam’. The eminent Panchang Scholars provides  or suggest Muhurtham for any specific occasion basing on the name/star(Nakshatram) etc.";
     itemmatter[6]="The source of information regarding Bridegrooms and Brides will be gathered from various stations and sources and made available in our site. This service will accept the details from the users and adds it to the existing list.";
     itemmatter[7]="Vaasthu Sastra explains the positioning of amenities of a civil construction including a village or a town or a city or a house or a garden etc. will influence the future of the inhabitants or the owner accordingly.";
     itemmatter[8]="Everybody wants to have better health, without diseases. Though peoples are taking precautionary measures, sometimes they get and suffer from diseases. City life has become more conjusted and unhygienic.";
     itemmatter[9]="The meanings of many philosophical terms and words we come across while reading puranas or chanting mantras are given in this service which are easy to understand and memorize.";
     itemmatter[0]="This service equips in performing rituals (karmas like Pooja, Homas, Vrathas, etc.) even with or without knowledge in performing them. All the activities are explained and illustrated in detail in text, audio & video form.";
     var hea=new Array();
     hea[1]="Festivals";hea[2]="Ayurveda";hea[3]="Astrology";hea[4]="Epics";hea[5]="Muhurthams";
     hea[6]="Matrimonials";hea[7]="Vaasthu";hea[8]="Yoga";hea[9]="Encyclopedia";hea[0]="Rituals";
     
     var d=new Date();
     var weekday=new Array(7);
     weekday[0]="http://mypurohith.com/new/images/suryasloka.jpg";weekday[1]="http://mypurohith.com/new/images/sivasloka.jpg";weekday[2]="http://mypurohith.com/new/images/hanumansloka.jpg";weekday[3]="http://mypurohith.com/new/images/ganeshsloka.jpg";weekday[4]="http://mypurohith.com/new/images/saisloka.jpg";
     weekday[5]="http://mypurohith.com/new/images/devisloka.jpg";weekday[6]="http://mypurohith.com/new/images/venkatsloka.jpg";    
var audi=0;     

var ppimg=new Array();
    ppimg[0]="http://epurohith.com/new/images/diwali.jpg";
    ppimg[1]="http://epurohith.com/new/images/karthikamasam.jpg";
    var dpi=1;
	
      function rightm()
      {
        s1=s1+1;
        if(s1==10)
               s1=0;
        document.getElementById('imgs').src=items[s1];
        document.getElementById('smatter').innerHTML=itemmatter[s1];
        document.getElementById('shead').innerHTML=hea[s1];        
      }
      function leftm()
      {
        s1=s1-1;
        if(s1==-1)
             s1=9;
        document.getElementById('imgs').src=items[s1];
        document.getElementById('smatter').innerHTML=itemmatter[s1];
        document.getElementById('shead').innerHTML=hea[s1];                
      }
      
      function go()
      {
        if(s1==0)
            window.open("http://www.epurohith.com/Rituals/englishrituals/rituindex.aspx",target="_parent");
        if(s1==1)
            window.open("http://www.epurohith.com/Festivals/englishfestivals/engfestival.aspx",target="_parent");
         if(s1==2)
            window.open("http://epurohith.com/Ayurvedha/Ayurveda.aspx",target="_parent");
        if(s1==3)
            window.open("http://epurohith.com/astrology/engastrology/Astrology_Page.aspx",target="_parent");
        if(s1==4)
            window.open("http://www.epurohith.com/epics/engepics/engepic_index.aspx",target="_parent");
        if(s1==5)
            window.open("http://www.epurohith.com/muhurthams.aspx",target="_parent");
        if(s1==6)
            window.open("http://epurohith.com/matrimonials.aspx",target="_parent");
        if(s1==7)
            window.open("http://www.epurohith.com/vasthu/engvaasthu/vasthu.aspx",target="_parent");
        if(s1==8)
            window.open("http://epurohith.com/yoga.aspx",target="_parent");
        if(s1==9)
            window.open("http://www.epurohith.com/encyclopedia/engencyclo/encycloint.aspx",target="_parent");
      }
      
       function mover(v)
       {
         document.getElementById(v).style.textDecoration="underline";
         document.getElementById(v).style.color="yellow";
       }
       function mout(v)
       {
         document.getElementById(v).style.textDecoration="none";
         document.getElementById(v).style.color="white";
       }
       function moverp(v)
       {
         document.getElementById(v).style.textDecoration="underline";         
       }
       function moutp(v)
       {
         document.getElementById(v).style.textDecoration="none";         
       }
       function start()
       {
         document.getElementById('daygod').src=weekday[d.getDay()];
         window.setTimeout("slideshow()",5000);                  
       }
       function slideshow()
       {
        if(ff==0)
             {
              window.setTimeout("services()",100);
              ff=1;
              }
         document.getElementById('side').src=gods[i];
         document.getElementById('god').innerHTML=godnames[i];         
         i=i+1;
         if(i==14)
            i=0;         
         window.setTimeout("slideshow()",10000);
       }
       
       function services()
       {
         document.getElementById(se[k]).style.backgroundColor="#dd0001";
         document.getElementById('serv').innerHTML=matter[k]; 
         if(k>0)
             document.getElementById(se[k-1]).style.backgroundColor="green";
         if(k==0)    
             document.getElementById(se[4]).style.backgroundColor="green";        
         k=k+1;
         if(k==5)
               k=0;         
         window.setTimeout("services()",5000);
       }
       
       function bmo()
       {
         document.getElementById('b3').style.backgroundColor="green";
         document.getElementById('b3').style.color="white";
       }
       function bmu()
       {
         document.getElementById('b3').style.backgroundColor="#dd0001";
         document.getElementById('b3').style.color="lime";
       }
       function fullp()
       {
         window.open("Default2.aspx","","status=0,toolbar=0,location=0,menubar=0,directories=0,scrollbars=0,resizable=0,height=400,width=300,Left=200,top=100");
       }
       function bover(v)
       {
         document.getElementById(v).style.borderStyle="solid";
         document.getElementById(v).style.borderWidth="thin";
         document.getElementById(v).style.borderColor="gray";
       }
       function bout(v)
       {
         document.getElementById(v).style.border="none";
       }      
       
    function gpv()
    {
      document.getElementById('gp').style.backgroundColor="#ffbd3b";
      document.getElementById('gp').style.fontFamily="Verdana";
      document.getElementById('gp').style.fontSize="small";
      document.getElementById('gp').style.color="maroon";
      document.getElementById('gp').innerHTML="Wish ur Beloved By Sending Gifts";
    }
    function gpu()
    {
      document.getElementById('gp').style.backgroundColor="#d94f00";
      document.getElementById('gp').style.fontFamily="";
      document.getElementById('gp').style.fontSize="";
      document.getElementById('gp').innerHTML="";
    }
	
	function hai()
	{
				window.open("http://www.epurohith.com/animations/hanuman.html","","status=0,toolbar=0,location=0,menubar=0,directories=0,scrollbars=0,resizable=0,height=500,width=750,Left=200,top=100");
         ppi();
	}
	
function ppi()
    {
      window.setTimeout("start()",100);		         
		var panch=Array(13);
		panch[1]="01-10-2009,01 December 2009, Year(Chaandramanam)->Virodhi, Aaswiyuja Masam, Sukhla Paksham, Dwadasi-07:32,Guruvaram(Thursday),Sathabhisham Nakshatram->00:04,Varjyam(bad time)->13:38 to 15:24,Durmuhurtham->09:53 to 10:41 & 14:41 to 15:29, Sunrise->05:33, Sunset->18:38";
panch[2]="02-12-2009,02 December 2009, Year(Chaandramanam)->Virodhi, Margasira Maasam , Sukhla Paksham, Thithi->Pournami,-13:46, Bhudhavaaram(Wednesday),Rohini Nakshatram->02:31 (Next Day),Varjyam(bad time)->15:05 to 16:48,Durmuhurtham->08:16 to 09:00,& 12:06 to 13:04 sunrise->05:33, Sunset->18:38";
panch[3]="03-10-2009,03 December 2009, Year(Chaandramanam)  virodhi, Aaswiyuja Maasam , Sukhla Paksham, Thithi,Chathurdasi-10-18,Sanivaaram(Saturday),Poorva Bhadra Nakshatram->09:59 varjyam(bad time)->20:06 to 21:47,Durmuhurtham->05:53 to 07:28, Sunrise->05:33, Sunset->18:38";
panch[4]="04-12-2009,04 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukhla Paksham, Thithi->Vidiya-10:16 Sukravaaram(Friday), Aarudra Nakshatram->00:03(Next Day),Varjyam(badtime)->09:21 to 10:51,Durmuhurtham->08:28 to 09:12 & 12:09 to 12:53, sunrise 05:33, Sunset->18:38";
panch[5]="05-12-2009,05 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Tadiya-07:59 & Chavati-3:51(Nextday) ,Sanivaram(Saturday),Punarvasu Nakshatram->22:30,Varjyam(badtime)->11:17 to 12:47,Durmuhurtham->06:08 to 07:52 ,Sunrise->05:34, Sunset->18:38";
panch[6]="06-12-2009,06 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Panchami-03:21,Aadivaaram(Sunday), Pushyami Nakshatram->20:52, Varjyam(bad time)->No,Durmuhurtham->15:53 to 16:47, Sunrise->06:07, Sunset->17:28";
panch[7]="07-12-2009,09 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Sasthi-01:00(Nextday),Somavaaram(Monday),Asleysha Nakshatram->19:11,Varjyam(bad time)->08:42 to 10:12 ,Durmuhurtham->12:11 to 12:55 & 14:24 to 15:08, Sunrise->06:08, Sunset->17:27";
panch[8]="08-12-2009,08 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Saptami-22:45, Mangalavaaram(Tuesday),Makha Nakshatram->17:34,Varjyam(bad time)->06:23 to 07:53 & 01:05(Nextday) to 02:35(Nextday), Durmuhurtham->08:29 to 09:13 & 22:30 to 23:14 ,Sunrise->06:08, Sunset->17:27";
panch[9]="09-12-2009,09 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Ashtami-20:39,Budhavaaram(Wednesday),Pubba Nakshatram->16:08,Varjyam(bad time)->22:58 to 12:30(Nextday),Durmuhurtham->11:28 to 12:12,Sunrise->06:08, Sunset->17:27";
panch[10]="10-12-2009,10 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Navami-18:49,Guruvaaram(Thursday),Uttara Nakshatram ->02:54,Varjyam(bad time)->22:59 to 12:32(Nextday),Durmuhurtham->10:00 to 10:44 & 14:25 to 15:09,Sunrise->06:08, Sunset->17:26";
panch[11]="11-12-2009,11 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Dasami-17:21,Sukruvaaram(Friday),Hasta Nakshatram->01:59,Varjyam(badtime)->21:49 to 23:22,Durmuhurtham->08:32 to 09:16 & 12:14 to 12:58,Sunrise->06:08, Sunset->17:26";
panch[12]="12-12-2009,12 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Ekadasi -16:10,Sanivaaram(Saturday),Chitta Nakshatram->1:26,Varjyam(bad time)->19:00 to 20:34,Durmuhurtham->06:20 to 07:48, Sunrise->06:10, Sunset->15:26";
panch[13]="13-12-2009,13 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Dwadasi-03:28,Aadivaaram(Sunday),Swathi Nakshatram->01:18,Varjyam(bad time)->07:01 to 08:39,Durmuhurtham->15:57 to 16:41,Sunrise->06:10, Sunset->17:25";
panch[14]="14-12-2009,14 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Trayodasi-03:16,Somavaaram(Monday),Visakha Nakshatram->01:39,Varjyam(bad time)->17:44 to 19:22,Durmuhurtham->12:14 to 12:58 & 14:26 to 15:10, Sunrise->06:11, Sunset->17:26";
panch[15]="15-12-2009,15 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Chaturdasi-16:00,Mangalavaaram(Tuesday),Anuradha Nakshatram->02:05,Varjyam(badtime)->20:06 to 21:49,Durmuhurtham->08:34 to 09:14 & 22:25 to 23:09,Sunrise->06:11,Sunset->17:25";
panch[16]="16-12-2009,16 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Amavaasya-16:24,Budhavaaram(Wednesday),Jyesta Nakshatram->03:50,Varjyam(bad time)->Nil, Durmuhurtham->11:22 to 12:07, Sunrise->06:12, Sunset->17:25";
panch[17]="17-12-2009,17 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Paadyami-17:41,Guruvaaram(Friday),Moola Nakshatram->17:37,Varjyam(bad time)->03:54 to 05:37 & 04:06 to 05:50,Durmuhurtham->10:04 to 10:48 & 14:29 to 15:13, Sunrise->06:12, Sunset->17:25";
panch[18]="18-12-2009,18 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Vidiya-19:24,Sukravaaram(Friday),Poorvashaada Nakshatram->19:49,Varjyam(bad time)->04:39 to 06:25,Durmuhurtham->08:36 to 09:20 & 12:16 to 13:01 ,Sunrise->06:12, Sunset->17:25";
panch[19]="19-12-2009,19 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Tadiya-21:25,Sanivaaram(Saturday),Uttara Nakshatram->22:16,Varjyam(bad time)->23:30 to 01:03 Durmuhurtham->05:51 to 07:28 ,Sunrise->05:37, Sunset->18:39";
panch[20]="20-12-2009,20 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Vidiya-13:35,Mangalavaaram(Tuesday),Hastha Nakshatram->14:40,Varjyam(bad time)->22:26 to 00:00,Durmuhurtham->16:23 to 17:12, Sunrise->05:37, Sunset->18:39";
panch[21]="21-12-2009,21 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Tadiya-20:29, Bhudhavaaram(Wednesday),Chittha Nakshatram->14:15,Varjyam(bad time)->19:53 to 21:29,Durmuhurtham->12:12 to 13:01,& 14:44 to 15:33, Sunrise->05:38, Sunset->18:39";
panch[22]="22-12-2009,22 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Krishna Paksham, Thithi->Chavithi-20:07,Guruvaaram(Thursday),Swathi Nakshatram->14:25, Varjyam(bad time)->20:05 to 21:43,Durmuhurtham->22:42 to 23:30, S unrise->05:38, Sunset->18:39";
panch[23]="23-12-2009,23 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Panchami-20:15,Sukravaaram(Friday),Vishakha Nakshatram->14:43,Varjyam(bad time)->18:59 to 20:42,Durmuhurtham->11:31 to 12:19 Sunrise->05:38, Sunset->18:39";
panch[24]="24-12-2009,24 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Shasthi-21:23,Sanivaaram(Saturday),Anuraadha Nakshatram->16:17,Varjyam(bad time)->22:17 to 00:00,Durmuhurtham->09:00 to 09:49 & 14:44 to 15:22, Sunrise->05:38, Sunset->18:39";
panch[25]="25-12-2009,25 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Saptami-22:03,Aadivaaram(Sunday),Jyestha Nakshatram->17:57,Varjyam(bad time)->18:19 to 20:03, Durmuhurtham->08:16 to 09:04 & 12:18 to 13:16, Sunrise->05:38, Sunset->18:39";
panch[26]="26-12-2009,26 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Ashtami-00:01,Somavaaram(Monday),Moola Nakshatram->20:03,Varjyam(bad time)->No,Durmuhurtham->05:52 to 07:28, Sunrise->05:38, Sunset->18:39";
panch[27]="27-12-2009,27 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Navami-01:31(Next Day),Mangalavaaram(Tuesday),Poorvaashada Nakshatram->22:24,Varjyam(bad time)->06:35 to 08:21,Durmuhurtham->16:18 to 18:05,Sunrise->05:38, Sunset->18:39";
panch[28]="28-12-2009,28 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukla Paksham, Thithi->Dasami-03:33(Next Day),Bhudhavaaram(Wednesday),Uttaraashada Nakshatram->01:01(Next Day),Varjyam(bad time)->07:17 to 09:03 & 05:28(Next Day) - Next Day, Durmuhurtham->12:18 to 13:06 & 14:42 to 15:30,Sunrise->05:38, Sunset->18:39";
panch[29]="29-12-2009,29 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukhla Paksham, Thithi->Eekadasi-05:40(Next Day), Guruvaaram(Thursday),Sravanam Nakshatram->03:36(Next Day),Varjyam(bad time)-> ,Durmuhurtham->08:17 to 09:05 & 22:41 to 23:29 ,Sunrise->05:37, Sunset->18:38";
panch[30]="30-12-2009,30 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukhla Paksham, Thithi->Navami-19:39,Sukravaaram(Friday),Visakha Nakshatram->00:27(Next Day),Varjyam(bad time)->06:40 & 04:20(Next Day),Durmuhurtham->09:57 to 10:48,&15:03 to15:54 sunrise->05:37,sunset->18:38";
panch[31]="31-12-2009,31 December 2009, Year(Chaandramanam)->Virodhi, Margasira Masam , Sukhla Paksham, Thithi->Dasami,-20:18,Sanivaaram(Saturday),Anuradha Nakshatram->01:32(Next Day),Varjyam(bad time)->Nil,Durmuhurtham->08:15 to 09:06 &12:30 to 13:21,Sunrise->05:37, Sunset->18:38";

      dpi=dpi-1;
      if(dpi==-1)
             dpi=1;
          window.setTimeout("ppi()",8000);		  
     var dt=new Date();
var day=dt.getDate();
if(day>=1)
{
document.getElementById('panch1').innerHTML=panch[day];
}
	}

function fesclick()
    {
      if(dpi==0)
         window.open("http://www.epurohith.com/Festivals/englishfestivals/deepavali.aspx",target="_blank");
       else
         window.open("http://www.epurohith.com/sivaabhi.aspx",target="_blank");
    }

function call1()
      {
       document.getElementById('diwali').style.visibility="hidden";      
      }
      
      function calldiv()
      {
       document.getElementById('diwali').style.visibility="visible";       
      }
