// JavaScript Document
var color;
var fntcolor;
var css;

function fclick(opcio){
        switch (opcio){
        case 0: //comptador
                clientSideInclude('comptador', 'scripts/comptador.php');
        case 1: //inici
                clientSideInclude('cos', 'html/inici.php');
        break;
        case 2: //Agenda
                clientSideInclude('cos', 'html/agenda.php');
        break;
        case 12: //Trailer i fotos
                clientSideInclude('cos', 'html/trailer.php');
        break;
        case 3: //Sobre el film
                clientSideInclude('cos', 'html/sobrefilm.php');
        break;
        case 4: //Equip de gravació
                clientSideInclude('cos', 'html/equip.php');
        break;
        case 5:  //Sobre el rodatge
                clientSideInclude('cos', 'html/rodatge.php');
        break;  
        case 6:  //Festivals i Mostres
                clientSideInclude('cos', 'html/festivals.php');
        break;
        case 7:  //Zona de premsa
                clientSideInclude('cos', 'html/premsa.php');
        break;
        case 8:  //Subscriure't a News
                clientSideInclude('cos', 'html/subscriute.php');
        break;
        case 9:  //Contacte
                clientSideInclude('cos', 'html/marc.php?src=contacte.php');
        break;
        case 10:  //Enllacos
                clientSideInclude('cos', 'html/enllacos.php');
        break;
        case 11:  //Implicar-te
                clientSideInclude('cos', 'html/implicat.php');
        break;
        case 13:  //Implicar-te
                clientSideInclude('cos', 'html/documental.php?src=http://player.vimeo.com/video/10407978&lang=cat');
        break;
        case 14:  //Implicar-te
                clientSideInclude('cos', 'html/documental.php?src=http://player.vimeo.com/video/24410764&lang=es');
        break;
        }
        for (i=1;i<=15;i++){
                if (i==opcio.valueOf()){
                document.getElementById("menu" + i).className="menusel";
                css="menusel";
                }else{
                document.getElementById("menu" + i).className="menu";
                        }
                }
        }
 


	
	function fover(opcio){
		css=document.getElementById("menu" + opcio).className;
		document.getElementById("menu" + opcio).className="menuon";
		}
	function fout(opcio){
		document.getElementById("menu" + opcio).className=css;
		}
		
	function alfaover(opcio){
		css=document.getElementById("ll" + opcio).className;
		document.getElementById("ll" + opcio).className="Text24on";
		}
	function alfaout(opcio){
		document.getElementById("ll" + opcio).className=css;
		}
