

    /* Show an object */
    function showObject(object) {
        object.visibility = VISIBLE;
    }

    /* Hide an object */
    function hideObject(object) {
        object.visibility = HIDDEN;
    }

    /* Slide the company logo from top to middle */
    function slideLogo(from, to) {
            if (from < to) {
                company.top = (from += 10);
                setTimeout('slideLogo(' + from + ',' + to + ')', 75);
            }
            else initObjects();
    }

    /* Rotate selected objects */
    function rotateObjects() {
            for (var i = 0; i < pos.length; i++) {
                pos[i] += inc; objects[i].visibility = 'visible';
                objects[i].left = (r * Math.cos(pos[i])) + xoff
                objects[i].top = (r * Math.sin(pos[i])) + yoff;
            }
        rotateTimer = setTimeout("rotateObjects()", 75);
    }

     /* Initialize selected objects for rotation */
     function initObjects() {
        /* Here is the array of HTML elements that will be rotated, from fly1 to fly4 
           Just put the shortcut variables to the HTML elements in this little array
           and they will be rotated automatically */
          objects = new Array(fly1, fly2, fly3, fly4, fly5, fly6);
/*        objects = new Array(fly1, fly2, fly3, fly4, fly5); */
        pos = new Array();
        pos[0] = 0;
            for (var i = 1; i < objects.length; i++) {
                pos[i] = parseFloat(pos[i - 1] + ((2 * pi) / objects.length));
            }
        rotateObjects();
    }

/* Variables for rotating objects */
    var objects;
    var pos;
    var r = 120;        // radius
    var xoff = 180;     // x offset
    var yoff = 170;     // y offset
    var pi = Math.PI;   // get pi
    var inc = pi / 180; // degrees per rotation cycle
    var objects;        // objects to be rotated
    var pos;            // position for objects

	var titol1,titol2,titol3,titol4,titol5,titol6;
	var anunci11,anunci12,anunci13,anunci14,anunci15;
	var anunci21,anunci22,anunci23,anunci24,anunci25;
	var anunci31,anunci32,anunci33,anunci34,anunci35;
	var anunci41,anunci42,anunci43,anunci44,anunci45;
	var anunci51,anunci52,anunci53,anunci54,anunci55;
	var anunci61,anunci62,anunci63,anunci64,anunci65;

	titol1="Rosselló digital";
	anunci11="L'Ajuntament de Rosselló a Internet.";
	anunci12="La millor configuració per a veure-la es amb una";
	anunci13="resolució de pantalla de 800X600 i 16 bits de color";
	anunci14="";
	anunci15="";
  	titol2="Correllengua 2003";
	anunci21="";
	anunci22="El dia 20 de setembre, estigueu atents.";
	anunci23="Organitzat pel Grup de Joves i la Regidoria";
	anunci24="de Cultura i Festes";
	anunci25="";
	titol3="Recollida selectiva";
	anunci31="";
	anunci32="El primer i tercer dijous de cada mes, es fa la";
	anunci33="recollida de papers i cartrons, pels carrers de la vila.<br>";
	anunci34="El primer dimarts de cada mes, es retiren mobles vells i";
	anunci35="electrodomèstics usats, al costat de la casa parroquial";
	titol4="Pas a Pas";
	anunci41="";
	anunci42="La escola bressol municipal Pas a Pas, comença el curs el";
	anunci43="proper dia 12 de setembre";
	anunci44="";
	anunci45="";
	titol5="Mercat setmanal";
	anunci51="";
	anunci52="El dimarts es el dia de mercat municipal setmanal a";
	anunci53="l'Avgda. Guillem de Rosselló";
	anunci54="";
	anunci55="";
	titol6="Comença el curs";
	anunci61="";
	anunci62="El C.E.I.P. La Rosslla inicia les classes el proper";
	anunci63="dia 15 de setembre, amb el següent horari:";
	anunci64="de 9 a 12 pel mati i de 3 a 5 per la tarda";
	anunci65="";
