function antispam(name,domain) {
	document.location = "mailto:" + name + "@" + domain;
}


/* jquery part -------- */
$(document).ready(function(){
	// ----------------- //
	// ----------------- //
	// fadeLink fn
	jQuery.fn.fadeMe = function(start,end,vel){
		return this.each(function() {			
			$(this).hover(
				function(){$(this).animate({"opacity":end}, vel);},
				function(){$(this).animate({"opacity":start}, vel);}
			);
			$(this).css({"opacity":start});
		});
	}
	
	// ----------------- //
	/* ejemplo de uso fadeMe(alpha inicial/rollout, alpha rollover, velocidad) */
	// ----------------- //
	// ----------------- //
	// ChangeImgOver fn / ex.: the_image.gif & the_image_over.gif
	jQuery.fn.ChangeImgOver = function(){
		return this.each(function() {			
			$(this).hover(
				function(){
					imgsrc = $(this).attr("src");
					matches = imgsrc.match(/_over/);
					if (!matches) {
						imgsrcON = imgsrc.replace(/.gif$/ig,"_over.gif");
						$(this).attr("src", imgsrcON);
					}
				},
				function(){
					$(this).attr("src", imgsrc);
				}
			);
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.gif$/ig,"_over.gif");
			$("<img>").attr("src", rollON);
		});
	}
	// ----------------- //
	// ----------------- //
	// General forms focus/blur, etc
	$('input[type="text"]').focus(function() {
		if (this.value == this.defaultValue){ 
			this.value = '';
		}
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	$('input[type="text"]').blur(function() {
		if ($.trim(this.value) == ''){
			this.value = (this.defaultValue ? this.defaultValue : '');
		}
	});
	// ----------------- //
	// ----------------- //
	/* easings */
	$.easing.bouncy = function (x, t, b, c, d) { 
		var s = .5/*1.70158*/; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
	} 
	$.easing.backEaseIn = function(p, n, firstNum, diff) {
		var s = .5/*1.70158*/; 
		var c=firstNum+diff;
		return c*(p/=1)*p*((s+1)*p - s) + firstNum;
	}
	/* easings END */
	// ----------------- //
	// ----------------- //
});
/* -------- */