
function CreateTitle (literal_left,literal_rigth)
{
var strC='';

strC+='		<table cellspacing="0" cellpadding="0" border="0">';
strC+='		<tr>';
strC+='			<td width="287px" background="../img/fons_esq.jpg" class="title_left">' + literal_left + '</td>';
strC+='			<td><img src="../img/title_center.jpg" border="0"></td>';
strC+='			<td width="307px" class="title_right" bgcolor="#FFFFFF">' + literal_rigth + '</td>';		
strC+='		</tr>';
strC+='		</table>';

document.write(strC);
}

function CreateNavigation (arrLiterals,arrDistancia,arrLinks,actiu)
{

var strC='';

strC+='<table cellspacing="0" cellpadding="0" border="0">';
strC+='<tr>';

for (var i=0; i< arrLiterals.length; i++)
{
strC+='<td width="'+ arrDistancia[i] + '">&nbsp;</td>';
if (actiu == i ) 
{
strC+='<td class="navigation_active">' + arrLiterals[i] + '</td>';
}
else 
{
strC+='<td><a class="navigation" href="' + arrLinks[i] + '">' + arrLiterals[i] + '</a></td>';}	
}

strC+='</tr>';
strC+='</table>';

document.write(strC);
}


function CreateSubNavigation (arrLiterals,arrDistancia,arrLinks,actiu)
{

var strC='';

strC+='<table cellspacing="0" cellpadding="0" border="0">';
strC+='<tr>';

for (var i=0; i< arrLiterals.length; i++)
{
/*strC+='<td width="'+ arrDistancia[i] + '">&nbsp;</td>';*/
if (actiu == i ) 
{
strC+='<td><img src="../img/arow_on.jpg" border="0"></td><td class="sub_navigation_active">' + arrLiterals[i] + '</td>';
}
else 
{
strC+='<td><img src="../img/arow_off.jpg"  border="0"></td><td><a href="' + arrLinks[i] + '" class="sub_navigation">' + arrLiterals[i] + '</a></td>';}	
}

strC+='</tr>';
strC+='</table>';

document.write(strC);
}

function CreateFooter()
{
var strC='';

strC+='<table cellspacing="0" cellpadding="0" border="0">';
strC+='		<tr>';
strC+='			<td width="287" height="25" background="../img/fons_esq.jpg" valign="top"></td>';
strC+='			<td width="187" height="25" background="../img/fons_cen.jpg" valign="top"></td>';
strC+='			<td width="307" height="25" border="0" bgcolor="#FFFFFF"></td>';
strC+='		</tr>';
strC+='</table>';

document.write(strC);
}	

function zoom(imatge)
{
     	myImage = new Image() ;
    	myImage.src = imatge ;
	
	strURL="zoom.htm?" + imatge + "&" + eval(myImage.width) + "&";
    	window.open (strURL, "", "scrollbar=NO,resizable=NO,location=NO,status=NO,menubar=NO,toolbar=NO,directories=NO,width=" + myImage.width + ",height=" + myImage.height);            
}  

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


/*
swith(variable){
case val1:

break;
case val2:

break;
case val3:

break;
...
default:

break;
}

*/