function agregar(titulo, url) 
{
	if (window.sidebar) 
	{ // Mozilla Firefox
		window.sidebar.addPanel(titulo, url,"");
	} else if( window.external ) 
	{ // IE
		window.external.AddFavorite( url, titulo); 
	}
	else if(window.opera && window.print) { // Opera
	/**alert("Para agregar a tu pagina a sus favoritos presione control + D") }**/
	window.external.AddFavorite( url, titulo); 
	}
}


 this.imagePreview = function(){	
	/* CONFIG */
		
		xOffset = 10;
		yOffset = 30;
		
			// these 2 variable determine popup's distance from the cursor
				// you might want to adjust to get the right result
		
				/* END CONFIG */
				$("a.preview").hover(function(e){
				this.t = this.title;
				this.title = "";	
				var c = (this.t != "") ? "<br/>" + this.t : "";
				$("body").append("<p id='preview'><img src='"+ this.rel +"' alt='"+ this.title +"' /></p>");								 
				$("#preview")
					.css("top",(e.pageY - xOffset) + "px")
					.css("left",(e.pageX + yOffset) + "px")
					.fadeIn("fast");						
    				},
				function(){
					this.title = this.t;	
					$("#preview").remove();
    				});	
				$("a.preview").mousemove(function(e){
					$("#preview")
						.css("top",(e.pageY - xOffset) + "px")
						.css("left",(e.pageX + yOffset) + "px");
				});			
			};


			// starting the script on page load
			$(document).ready(function(){
				imagePreview();
			});
			
function popUpsms(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,status=0,menubar=0,resizable=1,width=560,height=420,left = 65,top = 200');");
}

