
$(document).ready(function() {
	
	/* external link */		
	$("a[@rel~='blank']").click(function(){
		window.open($(this).attr('href'));
		return false;
	});

	/* close link */		
	$(".close").click(function(){
		window.close();
		return false;
	});

	/* close link */		
	$(".close2").click(function(){
		window.close();
		return false;
	});

	/* ver link */		
	$(".ver").click(function(){
		window.open($(this).attr('href'), 'Ver_pieza', 'width=740, height=500, innerWidth=760, innerHeight=520, top=50, left=50, scrollbars=1');
		return false;
	});
	
	/* recomedar a un amigo link */		
	$(".recomedar").click(function(){
		window.open($(this).attr('href'), 'ecomedar_amigo', 'width=440, height=500, innerWidth=460, innerHeight=520, top=50, left=50, scrollbars=1');
		return false;
	});

	/* print nota */		
	$(".printnota").click(function(){
		window.open($(this).attr('href'), 'printnota', 'width=550, height=500, innerWidth=560, innerHeight=520, top=50, left=50, scrollbars=1');
		return false;
	});
	
	
	$(".buscador button").hover(function(){
		$(this).css("background","url(../../images/comunes/button.gif) 0 -24px no-repeat;");
	},function(){
		$(this).css("background","url(../../images/comunes/button.gif) 0 0 no-repeat;");
	});


	$(".footer ul li").each(function(i){
		if ( $(this).attr("class") != "last" ) {
			$(this).append("&#160;|");
		}
	});

	


		
});

