$(function() {
	$('a.jPopup').click(function(e){
		var w = 700;var h = 500;var l = ($(window).width())/2 - w/2;var t = ($(window).height())/2 - h/2;var s = 1;
		window.open(this.href, '','top='+t+', left='+l+', width='+w+',height='+h+', scrollbars='+s+', resizable=1');e.preventDefault();	
	});
	
	if ($('#linkfeats').length) {
		$('#tspecs').hide();$('#linkfeats').addClass('active');
		$('#linkfeats').click(function(e){$('#linkspecs').removeClass('active');$('#linkfeats').addClass('active');$('#features').show();$('#tspecs').hide();e.preventDefault();});
		$('#linkspecs').click(function(e){$('#linkfeats').removeClass('active');$('#linkspecs').addClass('active');$('#tspecs').show();$('#features').hide();e.preventDefault();});
	}
});
