/*Fitxer de funcions de tractament d'imatges de Solunova
Creat per AHV el 15.12.2006
Historic de modificacions:
====================================================*/
function solfcambimage(sollsid,sollsimatge){
var solloimatge
solloimatge=document.getElementById(sollsid)
solloimatge.src=sollsimatge 
}
//===================================== Slide-Show script.
var slideCache = new Array();
function RunSlideShowrap(pictureName,imageFiles,displaySecs){
	var imageSeparator = imageFiles.indexOf(";");
	var nextImage = imageFiles.substring(0,imageSeparator);
	if (document.all){
		document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
		document.getElementById(pictureName).filters.blendTrans.Apply();
	}
	document.getElementById(pictureName).src = nextImage;
	if (document.all){
		document.getElementById(pictureName).filters.blendTrans.Play();
	}
	var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)+ ';' + nextImage;
	setTimeout("RunSlideShowrap('"+pictureName+"','"+futureImages+"',"+displaySecs+")",displaySecs*400);
	imageSeparator = futureImages.indexOf(";");
	nextImage = futureImages.substring(0,imageSeparator);
	if (slideCache[nextImage] == null){
		slideCache[nextImage] = new Image;
		slideCache[nextImage].src = nextImage;
	}
}
//=====================Bloqueo boton derecho
sgs$NavVer=parseInt(navigator.appVersion);
sgs$NavNS=navigator.appName=="Netscape";
function nobotonderecho(slo$evento) {
	if (sgs$NavNS && slo$evento.which > 1){
		alert(sgs$msg);
		return false;
	}
	else{
		alert(sgs$msg);
		return false;
   }
}
//Navegador estandar
document.oncontextmenu=nobotonderecho;
//Netscape hasta version 4
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (sgs$NavNS && sgs$NavVer<5) window.onmousedown=nobotonderecho;
