function startDispl(pic) {
	Display(pic);
}

function Display(pic,opacity) {
	var obj = document.getElementById(pic); //object

	i = opacity;
	if(!i) i = .7;
	if (i < 1) i = i + .15;
	if (i > 1) i = 1;
	
	obj.style.opacity=i;
	obj.style.filter="alpha(opacity="+i*100+")"; //IE
	
	if (i != 1) {
		setTimeout("Display('"+pic+"',"+i+")",50);
	}
}

function startFade(pic) {
	setTimeout("Fade('"+pic+"')",1000);
}

function Fade(pic,opacity) {
	var obj = document.getElementById(pic); //object

	i = opacity;
	if(!i) i = 1;
	if (i > .7) i = i - .15;
	if (i < .7) i = .7;
	
	obj.style.opacity=i;
	obj.style.filter="alpha(opacity="+i*100+")"; //IE
	
	if (i != .7) {
		setTimeout("Fade('"+pic+"',"+i+")",50);
	}
}

function expl(i) {
	var obj = document.getElementById('explanation')

	switch (i) {
		case 1: strText = 'Gå till KonsertFoton.se och kolla på bilder från en mängd olika konserter och festivaler.'; break;
		case 2: strText = 'Läs mer om vem jag är.'; break;
		case 3: strText = 'Se några av mina personliga favoritbilder.'; break;
		case 4: strText = 'Läs mer om de tjänster jag erbjuder.'; break;
		case 5: strText = 'Om du känner för att kontakta mig.'; break;
		case 6: strText = 'Lite övrigt som jag vill dela med mig av.'; break;
		default: strText = '';
	}

	obj.innerHTML = strText;

	if (!i) {
		obj.style.display = 'none';
	}
	else {
		obj.style.display = 'inline';
	}
}
