﻿function AfiseazaData(Id)
    {
        var mydate=new Date()
        var year=mydate.getYear()
        if (year < 1000)
        year+=1900
        var day=mydate.getDay()
        var month=mydate.getMonth()
        var daym=mydate.getDate()
        if (daym<10)
        daym="0"+daym
        
        var dayarray;
        var montharray;
        if (Id==1)
            {
                dayarray=new Array("duminică","luni","mar&#355;i","miercuri","joi","vineri","sâmbătă")
                montharray=new Array("ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie")
            }
        else
            {
                dayarray=new Array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" )
                montharray=new Array("january","february","march","april","may","june","july","august","september","october","november","december")
            }
        
        document.getElementById('divData').innerHTML=""+dayarray[day]+", "+daym+" "+montharray[month]+"  "+year+""
        
    }



function init() 
    {
		//==========================================================================================
		// if supported, initialize TransMenus
		//==========================================================================================
		// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
		// This is better than server-side checking because it will also catch browsers which would
		// normally support the menus but have javascript disabled.
		//
		// If supported, call initialize() and then hook whatever image rollover code you need to do
		// to the .onactivate and .ondeactivate events for each menu.
		//==========================================================================================
		if (TransMenu.isSupported()) {
			TransMenu.initialize();

			// hook all the highlight swapping of the main toolbar to menu activation/deactivation
			// instead of simple rollover to get the effect where the button stays hightlit until
			// the menu is closed.
			menu1.onactivate = function() { document.getElementById("aDespre").className = "hover"; };
			menu1.ondeactivate = function() { document.getElementById("aDespre").className = ""; };


			menu1.onactivate = function() { document.getElementById("aTabloul").className = "hover"; };
			menu1.ondeactivate = function() { document.getElementById("aTabloul").className = ""; };


			menu1.onactivate = function() { document.getElementById("aExamene").className = "hover"; };
			menu1.ondeactivate = function() { document.getElementById("aExamene").className = ""; };


			menu1.onactivate = function() { document.getElementById("aPentru").className = "hover"; };
			menu1.ondeactivate = function() { document.getElementById("aPentru").className = ""; };


			document.getElementById("aPrimaPagina").onmouseover = function() 
			{
				ms.hideCurrent();
				this.className = "hover";
			}
			document.getElementById("aPrimaPagina").onmouseout = function() { this.className = ""; }


			document.getElementById("aContact").onmouseover = function() 
			{
				ms.hideCurrent();
				this.className = "hover";
			}
			document.getElementById("aContact").onmouseout = function() { this.className = ""; }
		}
	}





