<!-- Produccio DRAC telematic URL: http://drac.com/ -->
<!--
// ----- Funcions comunes de JavaScript -----
//alert("carregant funcions.js de www.lamola.com");

function rollover(iName) {
         if (gSupport==1)
         {
			thename = eval(iName + "a.src");
            document[iName].src = thename;
         }
}

function rolloff(iName) {
        if (gSupport==1)
        {
			thename = eval(iName + ".src");
            document[iName].src = thename;
        }
}

function canvia(imatge1,imatge2){

		rollover(imatge1);
		rolloff(imatge2);
}

function obre(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=10,top=10";
	finestra=window.open(web,"finestra",parametres);
	finestra.moveTo(10,10);
	finestra.focus();
}

function obre2(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=10,top=10";

	finestra=window.open(web,"finestra2",parametres);
	finestra.focus();
}

function obre3(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=10,top=10";

	finestra=window.open(web,"finestra3",parametres);
	finestra.focus();
}

function obre4(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=10,top=10";

	finestra=window.open(web,"finestra4",parametres);
	finestra.focus();
}

function obre5(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=10,top=10";
	finestra=window.open(web,"finestra5",parametres);
	finestra.focus();
}

function obre6(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=10,top=10";
	finestra=window.open(web,"finestra6",parametres);
	finestra.focus();
}

function obre7(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=10,top=10";
	finestra=window.open(web,"finestra7",parametres);
	finestra.focus();
}

function obrefoto(web,x,y){
	parametres = "width=" + x + ",height=" + y + ",resizable=yes,scrollbars=yes,left=100,top=75";
	finestra=window.open(web,"finestra_foto",parametres);
	finestra.moveTo(10,10);
	finestra.focus();
}

function tanca(){
	window.close();
}

function ComprovaFrames()
{
        //alert("entrant a ComprovaFrames");
        if ((top.lamola_superior)&&(top.lamola_menu))
        {
                //la plana ja esta en frames per tant res
        }
        else
        {
        //alert("Error a comprovant els frames.");
        //no hi ha frames i s'han de muntar
        top.location.href="./";

        }
}

function ComprovaFramesPortada()
{
        //alert("entrant a ComprovaFrames");
        if ((top.lamola_central)||(top.lamola_dreta))
        {
                //la plana ja esta en frames per tant res
        }
        else
        {
        //alert("Error a comprovant els frames.");
        //no hi ha frames i s'han de muntar
        top.location.href="./";

        }
}

function ComprovaFlotant()
{
        //alert("entrant a ComprovaFrames");
        if (opener)
        {
                //la plana ja esta en frames per tant res
        }
        else
        {
        //alert("Error a comprovant els frames.");
        //no hi ha frames i s'han de muntar

	 parametres = "resizable=yes, scrollbars=yes,left=10,top=10";
	 finestra=window.open(document.location.href,"finestra_flotant",parametres);
	 finestra.focus();

         document.location.href="./";
        }
}

function SaltaPlana(plana)
{
        document.location.href=plana;
}
//-->


