function checkIEversion() {
if (navigator.appName == 'Microsoft Internet Explorer') {
var navName = navigator.appName;
var brVer = navigator.userAgent;
var brNum;
function verNumIE() {
var brVerId = brVer.indexOf('MSIE');
brNum = brVer.substr(brVerId,8);
}
verNumIE();
if(brNum < "MSIE 8.0") {
document.getElementById('profile').style.display = 'block';
document.getElementById('profile').innerHTML = 'Browser version insecure - you should update to MSIE 8 or higher !';
}
}
}

function loadData(lTarget,path2File) {
$('#'+lTarget).animate({opacity:'0'}, function() {
$('#'+lTarget).load(''+path2File, function() {
$('#'+lTarget).animate({opacity:'1'}, 800);
});
});
}

function email(name, domain, tld, link) {
var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>"+link+"</a>";
document.write(link);
}

function showProfile() {
$('#mut').crossSlide({
  sleep: 1,
  fade: 1,
  loop: 1
}, [
{ src: 'pics/web_illu_def_s3.png' },{ src: 'bilder/web_illu_def_s4.png' }
]);
$('#profile').fadeIn(2000);
}


function showContact() {
$('#mut').crossSlide({
  sleep: 0.5,
  fade: 1,
  loop: 1
}, [
{ src: 'bilder/web_illu_def_s4.png' },{ src: 'bilder/web_illu_def_s5.png' }
]);
$('#contact').fadeIn(2000);
$('#profile').fadeOut();
}

/* show Profile from Contact */
function showProfile2() {
$('#profPages').load('text/profile_page1.txt');
$('#mut').crossSlide({
  sleep: 0.5,
  fade: 1,
  loop: 1
}, [
{ src: 'bilder/web_illu_def_s5.png' },{ src: 'bilder/web_illu_def_s4.png' }
]);
$('#profile').fadeIn(2000);
$('#contact').fadeOut();
}


/* slide Intro */
$(document).ready(function(){
$('#details').hide();
$('#profile').hide();
$('#contact').hide();
$('#contact').css('top','95px');
$('#profPages').load('text/profile_page1.txt');
$('#mut').crossSlide({
  sleep: 3.0,
  fade: 1,
  loop: 1
}, [
{ src: 'pics/web_illu_def_s1.png' },{ src: 'pics/web_illu_def_s2.png' },{ src: 'pics/web_illu_def_s3.png' }
], function(idx) {
//document.getElementById('devInfo').innerHTML = "dev info: " + idx +"";
if(idx == 2) { setTimeout("showProfile()",3000); }
});
});
