function prepareall() {
	$('div[id$="-txt"]').hide();
	$('span[id$="-apne"]').show();
	$('a[id$="-lenke"]').hide();

	$('span[id$="-apne"]').click(function () {
		showinfo(this.id.replace('-apne',''));
	});
	$('img[id$="-lite"]').addClass('klikkbar');
	$('img[id$="-lite"]').click(function () {
		showinfo(this.id.replace('-lite',''));
	});

	$('span[id$="-lukk"]').click(function () {
		hideinfo(this.id.replace('-lukk',''));
	});
	$('img[id$="-stort"]').addClass('klikkbar');
	$('img[id$="-stort"]').click(function () {
		hideinfo(this.id.replace('-stort',''));
	});
}

function showinfo(person) {
// hideall();
	$("div#"+person+"-txt").show();
	$("img#"+person+"-lite").hide();
	$("img#"+person+"-stort").show();
	$("a#"+person+"-lenke").show();
	$("span#"+person+"-apne").hide();
	$("span#"+person+"-lukk").show();
}

function hideinfo(person) {
	$("div#"+person+"-txt").hide();
	$("img#"+person+"-stort").hide();
	$("img#"+person+"-lite").show();
	$("a#"+person+"-lenke").hide();
	$("span#"+person+"-apne").show();
	$("span#"+person+"-lukk").hide();
}

function hideall() {
	$('div[id$="-txt"]').hide();
	$('img[id$="-stort"]').hide();
	$('img[id$="-lite"]').show();
	$('a[id$="-lenke"]').hide();
	$('span[id$="-lukk"]').hide();
	$('span[id$="-apne"]').show();
}


