//error
function handleError() {
	return true;
}
window.onerror = handleError;
//fin error
//rollover
jQuery(function( $ ){
			$.preload( '#images img', {
			    find:'_n.jpg',
			    replace:'_r.jpg'
			});
			/*		or
			$('#images img').preload({
				find:'.jpg',
			    replace:'_r.jpg'
			});
			*/
			//add animation
			$('#images img').hover(function(){
				this.src = this.src.replace('_n.jpg','_r.jpg');
			},function(){
				this.src = this.src.replace('_r','_n');
			});
           var $links = $('#chicas a');
			var $preview = $('#preview');

			//this mode doesn't require any setting, can have though
			$links.preload({ threshold:2 }); //same as $.preload( $links, { threshold:2 } );

			$links.mouseover(function(){
				$preview.attr('src', this.href);
			});
		});
// fin rollover
// galeria
jQuery(function( $ ){
			var $links = $('#gale a');
			var $preview = $('#preview');

			//this mode doesn't require any setting, can have though
			$links.preload({ threshold:2 }); //same as $.preload( $links, { threshold:2 } );

			$links.mouseover(function(){
				$preview.attr('src', this.href);
			});
		});
// fin galeria          