
var bookmarkurl="http://www.mundo-msn.net" 
var bookmarktitle="Mundo-MSN.net - Un mundo para tu MSN - WLM - Windows Live Messenger - MSN PLUS! Live - Avatares - Emoticonos - Emoticones Animados -Skins - Guiņos - Fondos - Parches - Ocio - Juegos - Musica - Descargas - Programas - Descargar MSN - Yahoo MSN..." 
function addbookmark(){ 
if (document.all) 
window.external.AddFavorite(bookmarkurl,bookmarktitle) 
} 


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_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_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];}
}



















			nereidFadeObjects = new Object();



			nereidFadeTimers = new Object();

			

			function nereidFade(object, destOp, rate, delta){

			if (!document.all)

			return

			    if (object != "[object]"){

			        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);

			        return;

			    }

			        

			    clearTimeout(nereidFadeTimers[object.sourceIndex]);

			    

			    diff = destOp-object.filters.alpha.opacity;

			    direction = 1;

			    if (object.filters.alpha.opacity > destOp){

			        direction = -1;

			    }

			    delta=Math.min(direction*diff,delta);

			    object.filters.alpha.opacity+=direction*delta;

			

			    if (object.filters.alpha.opacity != destOp){

			        nereidFadeObjects[object.sourceIndex]=object;

			        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);

			    }

			}



function MM_displayStatusMsg(msgStr) { //v1.0

  status=msgStr;

  document.MM_returnValue = true;
}



function ValidarBusqueda()
{
if(formsearch.palabras.value.length==0)
{alert('No puedes dejar este campo vacio');
return false;}
}


function codigo(a,b,campo) {
	if(navigator.appName == 'Microsoft Internet Explorer') {
		if(seleccionado = document.selection.createRange().text) {
			document.selection.createRange().text = a + seleccionado + b ;
			document.getElementById(campo).focus();
		}
		else {

			document.getElementById(campo).focus();
			document.selection.createRange().text = a + b ;
		}
	}
	else {
		document.form1.des.value += a + b ;
		document.getElementById(campo).focus();	
	}
}


function agregarcareto(careto)
{
document.formulario.comentario.value = document.formulario.comentario.value + " " + careto;
}

function ayuda1(a) {
	m_ayuda.innerHTML = '<b>'+a+'</b>' ;
}
function ayuda2() {
	m_ayuda.innerHTML = '&nbsp;' ;
}


maximiliano = 100 ;
function caracter() {
if(formsg.mensaje.value.length > maximiliano)
formsg.mensaje.value = formsg.mensaje.value.substring(0,maximiliano) ;
else
formsg.contar.value = maximiliano - formsg.mensaje.value.length ; 
}
onload = caracter ;










//Imagenes!


var mouseX=0, mouseY=0;

document.onmousemove = getMousePosition;

function getMousePosition(e) {
	try {
		if (!e) e = window.event;
		if (e.pageX)
			mouseX = e.pageX;
		else if (e.clientX)
			mouseX = e.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
		else
			mouseX = null;

		if (e.pageY)
			mouseY = e.pageY;
		else if (e.clientY)
			mouseY = e.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
		else
			mouseY = null;
	} catch(e) {
		// This is here so that the page doesn't throw errors when there is no
		// document.  That seems to happen in IE when the mouse is moving while the
		// page is loading.
	}
}


// JavaScript Document
function imagesize(img , w , h){
    
   if(img.width > w){
	   img.width = w;
	   img.height =  parseInt(img.height * img.width/w);
   }
   
   if(img.height > h){
	   img.width = parseInt(img.width * img.height / h);
	   img.height = h;
   }
 }


function display_img(image , e){
  
   getMousePosition(e);
   
   var ShowImgLayer = document.getElementById('ShowImgLayer');
   ShowImgLayer.style.left = 40+mouseX +'px';
   ShowImgLayer.style.top =  mouseY-75+'px';
   
   ShowImg.innerHTML = '<img src="../images/cat_smileys/'+image+'" border="0" onload="imagesize(this , 69 , 69)" />';
   ShowImgLayer.style.display = '';
   
}

function close_img(){
   document.getElementById('ShowImgLayer').style.display = 'none';
}











