

	// array function
function makeArray(len){
        for (var i = 0; i < len; i++)
                {
                this[i] = null;
                }
        this.length = len;
        }

	// array of day names
        var daynames = new makeArray(7)
        // array of month names
        var monthnames = new makeArray(12)
       
        
        daynames[0] = "Sunday"
        daynames[1] = "Monday"
        daynames[2] = "Tuesday"
        daynames[3] = "Wednesday"
        daynames[4] = "Thursday"
        daynames[5] = "Friday"
        daynames[6] = "Saturday"

	
        monthnames[0] = "January"
        monthnames[1] = "February"
        monthnames[2] = "March"
        monthnames[3] = "April"
        monthnames[4] = "May"
        monthnames[5] = "June"
        monthnames[6] = "July"
        monthnames[7] = "August"
        monthnames[8] = "September"
        monthnames[9] = "October"
        monthnames[10] = "November"
        monthnames[11] = "December"


// define date variables
        var now = new Date()
        var day = now.getDay()
        var month = now.getMonth()
        var year = now.getYear()
        var date = now.getDate()
        var hour=now.getHours()
        var minutes=now.getMinutes()


// write date 
 function writeDate()
        {
        document.write("<FONT COLOR='#E27007' size='1' face='Arial, Helvetica, sans-serif'>" + monthnames[month] + " " + date + " ,"+ year +"  " +"</FONT>")
        }

//-----------------------------------------------------------------------------------------------------
	// define rollover variables and load top rollover images
     if(document.images)
        {
        if(!text){
           var text = new Array(12)
	    }
       /* if(text[0]==null){
        	text[0]=new Image();
        	text[0].src=text[0];
        	}
        if(text[1]==null){
        	text[1]=new Image();
        	text[1].src=text[0];
        	}
        if(text[2]==null){
	   	text[2]=new Image();
	    	text[2].src=text[0];
        	}
        if(text[3]==null){
        	text[3]=new Image();
        	text[3].src=text[0];
        	}
        if(text[4]==null){
        	text[4]=new Image();
        	text[4].src=text[0];
        	}
        if(text[5]==null){
        	text[5]=new Image();
        	text[5].src=text[0];
        	}
         if(text[6]==null){
        	text[6]=new Image();
        	text[6].src=text[0];
        	}
           */

	for (i=0;i<14;i++)
		{
		if(text[i]==null)
		  {
		  text[i]=new Image();
		  text[i].src=text[i];
		  }
		}


	toproll1=new Image();
        toproll2=new Image();
        toproll1.src="images/roll1_0629.gif"
        toproll2.src="images/roll2_0629.gif"
        }




// load descriptive rollover images

  function initialize()
        {
           if(document.images)
                {
                text[0].src="images/prasannaVonMain_08.gif"
                text[1].src="images/profileroll.gif"
                text[2].src="images/prasannaVonMain_10.gif"
                text[3].src="images/newsroll.gif"
                text[4].src="images/prasannaVonMain_12.gif"
                text[5].src="images/earsroll.gif"
                text[6].src="images/prasannaVonMain_14.gif"
                text[7].src="images/eyesroll.gif"
                text[8].src="images/prasannaVonMain_28.gif"
		text[9].src="images/wallpaperroll.gif"
		text[10].src="images/prasannaVonMain_30.gif"
		text[11].src="images/discoroll.gif"
                text[12].src="images/prasannaVonMain_32.gif"
                text[13].src="images/lyricsroll.gif"
                }
        }


// display rollovers
 function display(num)
        {
         if(document.images)
           {
           if (num=="0")
           	{
               	eval(document.profile.src=text[0].src);
              	}
           elseif (num=="1")
           	{
           	eval(document.profile.src=text[1].src);
           	}
           elseif (num=="2")
           	{
           	eval(document.news.src=text[2].src);
           	}
           elseif (num=="3")
           	{
           	eval(document.news.src=text[3].src);
           	}
           elseif (num=="4")
           	{
           	eval(document.ears.src=text[4].src);
           	}
           elseif (num=="5")
           	{
           	eval(document.ears.src=text[5].src);
           	}
           elseif (num=="6")
           	{
           	eval(document.eyes.src=text[6].src);
           	}
            elseif (num=="7")
           	{
           	eval(document.eyes.src=text[7].src);
           	}	
            elseif (num=="8")
           	{
           	eval(document.wallpaper.src=text[8].src);
           	}	
            elseif (num=="9")
           	{
           	eval(document.wallpaper.src=text[9].src);
           	}	
           elseif (num=="10")
           	{
           	eval(document.disco.src=text[10].src);
           	}	
           elseif (num=="11")
           	{
           	eval(document.disco.src=text[11].src);
           	} 
           elseif (num=="12")
           	{
           	eval(document.lyrics.src=text[12].src);
           	}
           elseif (num=="13")
           	{
           	eval(document.lyrics.src=text[13].src);
           	} 	
          /* 	
           for (i=0;i<14;i++)
		{
		if (num==i)
		  {
		  eval(document.eyes.src=text[i].src);
           	  }
		}	
          */ 	
           }
        }
//-----------------------------------------------------------------------------------
function topDisplay(num)
        {
        if(document.images)
                {
                if (num=="1")
                	{
                	document.toproll.src=toproll1.src;
            
                	}
                if (num=="2")
                	{
                	document.toproll.src=toproll2.src;
                	    
                	}
                }
        }
      
      
function Destory(){
	    daynames=null;
            monthnames=null;
            for(i=0;i<7;i++){
         	text[i]=null;
         	}
	    }

//------------------------------------------------------------------
// go to page selected from options menu
function GoUrl(s)
  {
    var d = s.options[s.selectedIndex].value;
    var windowprops = "menubar=0,status=0,width=640,height=420,left=50,top=110,scrollbars=no,menubars=no,toolbars=no";
    
	if((d!="")||(d!=NULL))
		{
		if (d!="classic.html")
			{
			window.location.href = d ;
			s.selectedIndex=0;
			}
		else 
			{
			spawnLinkedPopup("infoform",d,windowprops);
			window.location.reload();
			}
		}
  }

//------------------------------------------------------------------	    
  


// mail
function Mail(s)
        {
        var d = s.options[s.selectedIndex].value
        if(d!=""){	 
        window.right.location.href =d;
        s.selectedIndex=0
        }
        }

function applet()
	{
	var newwin
	newwin=window.open("Add.html","prev",' toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=300 height=180');
	newwin.moveTo(650,380);
	}
	

