function obrirFinestra(adreca) {
	var finestra = window.open(adreca, "finestra","scrollbars=no,status=no,width=400,height=200,left=100,top=100");
}
function obrirFinestraGran(adreca) {
	var finestra = window.open(adreca, "finestra","scrollbars=no,status=no,width=600,height=400,left=100,top=100");
}
function obrirRSS(opcio) {
	if (opcio == "open") {
//		document.getElementById("capaRSS").style.visibility = "visible";
		document.getElementById("capaRSS").style.display = "block";
	}
	else {
//		document.getElementById("capaRSS").style.visibility = "hidden";
		document.getElementById("capaRSS").style.display = "none";
	}
}



/* CAPES FLOTANTS - INICI */

<!-- Copyright 2006,2007 Bontrager Connection, LLC
// http://bontragerconnection.com/ and http://www.willmaster.com/
// Version: July 28, 2007
var cX = 0; var cY = 0; var rX = 0; var rY = 0;

function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}

function UpdateCursorPositionDocAll(e){ 
	cX = event.clientX; 
	cY = event.clientY;
}

if (document.all) { 
	document.onmousemove = UpdateCursorPositionDocAll; 
}
else { 
	document.onmousemove = UpdateCursorPosition;
}

function AssignPosition(d, hayVideo) {
	if (self.pageYOffset) {
		rX = self.pageXOffset;
		rY = self.pageYOffset;
	}
	else if(document.documentElement && document.documentElement.scrollTop) {
		rX = document.documentElement.scrollLeft;
		rY = document.documentElement.scrollTop;
		}
		else if(document.body) {
			rX = document.body.scrollLeft;
			rY = document.body.scrollTop;
			}

	if(document.all) {
		cX += rX; 
		cY += rY;
	}

/*	d.style.left = (cX+10) + "px";
	d.style.top = (cY+10) + "px";	*/

	if (hayVideo == "si") {
		d.style.left = "10px";
	}
	else {
		d.style.left = (cX+10) + "px";
	}

	d.style.top = (cY-400) + "px";
}

function HideContent(d) {
	if(d.length < 1) { return; }
	
	document.getElementById(d).style.display = "none";
}

function ShowContent(d, hay) {
	if (d.length < 1) { return; }

	var dd = document.getElementById(d);
	AssignPosition(dd, hay);
	dd.style.display = "block";
}

function ReverseContentDisplay(d) {
	if (d.length < 1) { return; }
	var dd = document.getElementById(d);
	AssignPosition(dd);
	if (dd.style.display == "none") { 
		dd.style.display = "block";
	}
	else {
		dd.style.display = "none";
	}
}


/* CAPES FLOTANTS - FINAL */



