function navOver(theElement) {
	theSource = theElement.src;
	newSource = theSource.replace(/_pas_/,"_act_");
	theElement.src = newSource;
}

function navOut(theElement) {
	theSource = theElement.src;
	newSource = theSource.replace(/_act_/,"_pas_");
	theElement.src = newSource;
}


function resizeContent() {
	document.getElementById("contentdiv").style.height = '100%';
}

//preload!!
var myImages = new Array();
function preloadImages() {
    for (i=0;i<preloadImages.arguments.length;i++) {
        myImages[i] = new Image();
        myImages[i].src = preloadImages.arguments[i];
    }
}

function preloadEverything() {
	preloadImages("img/navi/navi_act_programme_de.gif","img/navi/navi_act_aktuell_de.gif","img/navi/navi_act_archiv_de.gif","img/navi/navi_act_ensemble_de.gif");
	preloadImages("img/navi/navi_act_fotos_de.gif","img/navi/navi_act_hoerbeispiele_de.gif","img/navi/navi_act_kontakt_de.gif");
}

function openWin(url) {
    bigWindow = window.open(url,"bigWin","width=610,height=300,top=50,left=60,scrollbars=yes");
	bigWindow.focus();
}

function openPopwin(theUrl) {
	var pwin = window.open(theUrl, 'popwindow', 'width=970,height=620, top=50, left=50, scrollbars=yes, resizable=yes');
	pwin.focus();
}

function openPlayerwin(theUrl) {
	var win=window.open('','mywindow','height=36, width=250');
	win.document.write('<html><head></head><body><embed autostart="1" src="'+theUrl+'" width="200" height="26" type="application/x-mplayer2" align="center"></embed></body></html>');
	return false;
}
