
function CrearEstils ()
{
var strC='';
strC+='<LINK href="../estils/obreriaPageIE.css" rel="stylesheet" type="text/css">';

document.write(strC);
}

function CrearEstils (path)
{
var strC='';
var strPath='../estils/';
if(path!=null){strPath = path + '/';}

strC+='<LINK href="'+ strPath + 'obreriaPageIE.css" rel="stylesheet" type="text/css">';

document.write(strC);
}

function CrearBODY ()
{
var strC='';
strC+='<BODY onload="javascript:{if(parent.frames[0]&&parent.frames[\'menuFrame\'].Go)parent.frames[\'menuFrame\'].Go()}" leftMargin=0 topMargin=0>';

document.write(strC);
}

//Función MouseOver
function imgover(imgname, img){
imgname.src = img
}
//Función MouseOut
function imgout(imgname, img){
imgname.src = img
}

function CrearCapcalera (path)
{
var strC='';
var strPath='';
if(path!=null){strPath = path + '/';}

strC='<script type="text/javascript" src="'+ strPath + 'menu_var.js"></script>';

strC+='<script type="text/javascript" src="'+ strPath + 'menu_com.js"></script>';


strC+='<TABLE cellSpacing=0 cellPadding=0 width="100%" height="32" border="0" bgcolor="#AE3234"><tr><td></td></tr></table>';

strC+='<TABLE cellSpacing=0 cellPadding=0 width="100%" height="94" border="0">';
strC+='        <TBODY>';
strC+='          <TD width="300" height="94">';
strC+='                <IMG height="94" width="272" src="../imatges/cupula_cap.jpg"><br>';
strC+='          <TD width="800" height="94">';
strC+='            <TABLE cellSpacing=0 cellPadding=0 width="100%" border="0">';
strC+='              <TBODY> ';

strC+='              <tr height="10">';
strC+='              <td>&nbsp;</td>';
strC+='              </tr>'; 
                                       
strC+='              <TR>';
strC+='                <TD colspan=3 height="40" align="left" valign="top">';              
strC+='                 <IMG height=50';
strC+='                  src="../imatges/titol_02.gif"';
strC+='                  width=384>';               
strC+='                 </TD>';
strC+='              </TR>';

strC+='              <tr height="15">';
strC+='              <td width="50%"> &nbsp;</td>';
strC+='              <td width="50%" align="right">';
strC+='		     <TABLE cellSpacing=0 cellPadding=0 width="1%" height="100%" border="0">';
strC+='                <tr>';
strC+='                <td width="1%"><a href="javascript:top.location.href=\''+ strPath + 'inici.htm\'" onMouseOver="imgover(IMG01,\'../imatges/nav1_on.gif\')" onMouseOut="imgout(IMG01,\'../imatges/nav1_off.gif\')"><img NAME="IMG01" SRC="../imatges/nav1_off.gif" WIDTH="58" HEIGHT="12" BORDER="0"></a></td>';
strC+='                <td width="1%"><IMG height="12" width="9" src="../imatges/nav0.gif"></td>  ';
strC+='                <td width="1%"><a href="'+ strPath + 'actualitat.asp" onMouseOver="imgover(IMG02,\'../imatges/nav2_on.gif\')" onMouseOut="imgout(IMG02,\'../imatges/nav2_off.gif\')"><img NAME="IMG02" SRC="../imatges/nav2_off.gif" WIDTH="58" HEIGHT="12" BORDER="0"></a></td>';
strC+='                <td width="1%"><IMG height="12" width="9" src="../imatges/nav0.gif"></td>  ';
strC+='                <!--<td width="1%"><a href="#" onMouseOver="imgover(IMG03,\'../imatges/nav3_on.gif\')" onMouseOut="imgout(IMG03,\'../imatges/nav3_off.gif\')"><img NAME="IMG03" SRC="../imatges/nav3_off.gif" WIDTH="58" HEIGHT="12" BORDER="0"></a></td>';
strC+='                <td width="1%"><IMG height="12" width="9" src="../imatges/nav0.gif"></td>          -->  ';   
strC+='                <td width="1%"><a href="'+ strPath + 'contacte.htm" onMouseOver="imgover(IMG04,\'../imatges/nav4_on.gif\')" onMouseOut="imgout(IMG04,\'../imatges/nav4_off.gif\')"><img NAME="IMG04" SRC="../imatges/nav4_off.gif" WIDTH="58" HEIGHT="12" BORDER="0"></a></td>';
strC+='                </TABLE>';
strC+='              </td>';
strC+='              </tr>';

  
strC+='              </TBODY>';
strC+='            </TABLE>';
strC+='          <TD width="1%">&nbsp;</TD>';
strC+='          <TD width=90 align="center" valign="bottom">';
strC+='                <IMG height=89 src="../imatges/obreria.gif"><br>';
strC+='          </TD>';
strC+='         </TR>';          
strC+='       </TABLE>';  

document.write(strC);
}

function CrearCapcaleraIntranet ()
{
var strC='';
strC+='<TABLE cellSpacing=0 cellPadding=0 width="100%" height="94" border="0">';
strC+='        <TBODY>';
strC+='        <TR>';
strC+='          <TD width="800" height="94">';
strC+='            <TABLE cellSpacing=0 cellPadding=0 width="100%" border="0">';
strC+='              <TBODY> ';
strC+='              <tr height="15">';
strC+='              <td width="50%"> &nbsp;</td>';
strC+='              </tr>';                                       
strC+='              <TR>';
strC+='                <TD colspan=3 height="40" align="left" valign="top">';              
strC+='                 <IMG height=50';
strC+='                  src="../imatges/titol_02.gif"';
strC+='                  width=384>';               
strC+='                 </TD>';
strC+='              </TR>';
strC+='              <tr height="10">';
strC+='              <td>&nbsp;</td>';
strC+='              </tr>';   
strC+='              </TBODY>';
strC+='            </TABLE>';
strC+='         </TR>';          
strC+='       </TABLE>';  

document.write(strC);
}

function VeureImatge(amplada,allargada,imatge)
{
    strURL="veureimatge.htm?" + imatge + "&" + amplada + "&";
    window.open (strURL, "", "scrollbar=NO,resizable=NO,location=NO,status=NO,menubar=NO,toolbar=NO,directories=NO,width=" + amplada + ",height=" + allargada);            
}  



