<!-- 

//************************************************************
//***         ANUNZIA SOLUCIONS TECNOLÒGIQUES, S.L.        ***
//*** /t. 937 259 390                      /f. 937 254 146 ***
//*** /c. Sant Pau, 177.       08201 Sabadell( Barcelona ) ***
//*** /e. anunzia@anunzia.com          /w. www.anunzia.com ***
//************************************************************

function MM_reloadPage(init)
{
	// Reloads the window if Nav4 resized.

	if (init == true) with (navigator)
	{
		if ((appName == "Netscape") && (parseInt(appVersion) == 4))
		{
			document.MM_pgW = innerWidth;
			document.MM_pgH = innerHeight;
			onresize = MM_reloadPage;
		}
	}
	else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function MM_preloadImages()
{
	// v3.0.

	var d = document;
	if (d.images)
	{
		if (!d.MM_p) d.MM_p = new Array();
		var i,j = d.MM_p.length,a = MM_preloadImages.arguments;
		for (i = 0; i < a.length; i++)
		if (a[i].indexOf("#") != 0)
		{
			d.MM_p[j] = new Image;
			d.MM_p[j++].src = a[i];
		}
	}
}

function MM_swapImgRestore()
{
	// v3.0.

	var i,x,a = document.MM_sr;
	for (i = 0; a&&i < a.length&&(x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_findObj(n, d)
{
	// v4.01.

	var p,i,x;
	if (!d) d = document;
	if ((p = n.indexOf("?")) > 0 && parent.frames.length)
	{
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}
	if (!(x = d[n])&&d.all) x = d.all[n];
	for (i = 0; !x&&i < d.forms.length; i++) x = d.forms[i][n];
	for (i = 0; !x&&d.layers&&i < d.layers.length; i++)
	x = MM_findObj(n,d.layers[i].document);
	if (!x && d.getElementById)x = d.getElementById(n);
	return x;
}

function MM_swapImage()
{
	// v3.0.

	var i,j = 0,x,a = MM_swapImage.arguments;
	document.MM_sr = new Array;
	for (i = 0; i < (a.length-2); i += 3)
	if ((x = MM_findObj(a[i])) != null)
	{
		document.MM_sr[j++] = x;
		if (!x.oSrc)x.oSrc = x.src;
		x.src = a[i+2];
	}
}

function MM_displayStatusMsg(msgStr)
{
	// v1.0.

	status = msgStr;
	document.MM_returnValue = true;
}

function P7_autoLayers()
{
	//v1.1. PVII.

	var g,b,k,f,args = P7_autoLayers.arguments;
	if (!document.p7setc)
	{
		p7c = new Array();
		document.p7setc = true;
	}
	for (k = 0; k < p7c.length; k++)
	{
		if ((g = MM_findObj(p7c[k])) != null)
		{
			b = (document.layers)?g:g.style;
			b.visibility = "hidden";
		}
	}
	for (k = 0; k < args.length; k++)
	{
		if ((g = MM_findObj(args[k])) != null)
		{
			b = (document.layers)?g:g.style;b.visibility = "visible";
			f = false;
			for (j = 0; j < p7c.length; j++)
			{
				if (args[k] == p7c[j])
				{
					f = true;
				}
			}
			if (!f)
			{
				p7c[p7c.length++] = args[k];
			}
		}
	}
}

// Specify the image files.

var Pic = new Array();
var Lin = new Array();

// To add more images, just continue.
// The pattern, adding to the array below.

Pic[0] = 'gifs/img1.jpg'
Pic[1] = 'gifs/img2.jpg'
Pic[2] = 'gifs/img3.jpg'

Lin[0] = 'a'
Lin[1] = 'a'
Lin[2] = 'a'

// Set slideShowSpeed (milliseconds).

var slideShowSpeed = 2500;

// Duration of crossfade (seconds).

var crossFadeDuration = 8;

// Whether images are shown randomly (otherwise sequential).

var randomDisplay = true;

// do not edit anything below this line.

var z;
var t;
var c;
var j = 0;

var p = Pic.length;
var preLoad = new Array();

for (i = 0; i < p; i++)
{
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];
}

function runSlideShow(l)
{
	if (document.all)
	{
		document.images.advert.style.filter = "blendTrans(duration=2)";
		document.images.advert.style.filter = "blendTrans(duration=crossFadeDuration)";
		document.images.advert.filters.blendTrans.Apply();
	}
	if (randomDisplay = true)
	{
		c = Math.floor(Math.random()*p);
		if (z = c)
		{
			c = Math.floor(Math.random()*p);
		}
		document.images.advert.src = preLoad[c].src;
		//	document.links[1].href = Lin[c];
		z = c;
	}
	else
	{
		document.images.advert.src = preLoad[l].src;
		//	document.links[1].href = Lin[l];
	}
	if (document.all)
	{
		document.images.advert.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1)) j = 0;
	t = setTimeout('runSlideShow(' + j + ')', slideShowSpeed);
}

//-->
<!-- 
preload('a','gifs/ct_empresa.gif');
preload('a1','gifs/ct_empresa1.gif');
preload('b','gifs/ct_serveis.gif');
preload('b1','gifs/ct_serveis1.gif');
preload('xc','gifs/ct_projectes.gif');
preload('xc1','gifs/ct_projectes1.gif');
preload('d','gifs/ct_noticies.gif');
preload('d1','gifs/ct_noticies1.gif');
preload('e','gifs/ct_contacte.gif');
preload('e1','gifs/ct_contacte1.gif');
preload('f','gifs/ct_ubicacio.gif');
preload('f1','gifs/ct_ubicacio1.gif');

function canviar(img1,img2){
 eval("document.images['"+ img1 + "'].src="+ img2 +".src");
 
}
function Obrir()
{
window.open('zoom.asp','Zoom','width=25,height=25,scrollbars=0,location=0,status=0,menubar=0,copyhistory=0,directories=0,toolbar=0,resizable=0,top=100,left=100');
}
//-->
