function preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function swapIMG(nr, b) {
	nr_array = nr.split(':');
	for (i=0; i < nr_array.length; i++) {
		document.getElementById('titleslice_' + nr_array[i]).src = '../images/titleslice_' + nr_array[i] + b + '.jpg'
	}
	if (b) {
		document.getElementById('Lselect').style.cursor = 'pointer';
	}
	else {
		document.getElementById('Lselect').style.cursor = '';
	}
}

function OpenSlideShow(lang, topic) {
	swindow = window.open('../includes/slideshow.php?lang=' + lang + '&topic=' + topic,'window_slide', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=632,height=222');
	swindow.focus();
}