// JavaScript Document
function PermutDer (flag,img) {
   if (document.images) {
        if (document.images[img].permloaded) {
            if (flag==1) document.images[img].src = "http://" + get_servidor(0) + "/comun/imagenes/iconos/flechaDerGris.gif";
            else document.images[img].src = "http://" + get_servidor(0) + "/comun/imagenes/iconos/flechaDerAzul.gif";
        }
   }
}
function PermutIz (flag,img) {
   if (document.images) {
        if (document.images[img].permloaded) {
            if (flag==1) document.images[img].src = "http://" + get_servidor(0) + "/comun/imagenes/iconos/flechaIzGris.gif";
            else document.images[img].src = "http://" + get_servidor(0) + "/comun/imagenes/iconos/flechaIzAzul.gif";
        }
   }
}
function Permut (img,src) {
   if (document.images) {
        if (document.images[img].permloaded) {
            document.images[img].src = src;
        }
   }
}
function PermutMenu (flag,img) {
  if (document.images) {
        if (document.images[img].permloaded) {
            if (flag==1) 
			{document.images[img].src = "http://" + get_servidor(0) + "/comun/imagenes/botones/btn" + img +"Hover.gif";}
            else 
			{document.images[img].src = "http://" + get_servidor(0) + "/comun/imagenes/botones/btn" + img +"Rep.gif";}
        }
   }
}
function preloadPermutMenu (img) {
	var adress = "http://" + get_servidor(0) + "/comun/imagenes/botones/btn" + img + "Hover.gif";
	preloadPermut(img,adress);
}
function preloadPermut (img,adresse) {
   if (document.images) {
        img.onload = null;
        img.perm = new Image ();
        img.perm.oldsrc = img.src;
        img.perm.src = adresse;
        img.permloaded = true;
   }
}