
function popUp(file,width,height) {
	
	height = parseInt(height);
	width = parseInt(width);
	popup = window.open('/rtc-popUp/'+file,'popup','width='+width+',height='+height);
}

function setStatus(str) {
	window.status = str;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function changeBild(v, m, h) {
		document.getElementById(v).src='/images/menuL_o.gif';
		document.getElementById(m).style.backgroundImage='url(/images/menuBG_o.gif)';
		document.getElementById(h).src='/images/menuR_o.gif';
}

function changeBildOut(v, m, h) {
		document.getElementById(v).src='/images/menuL.gif';
		document.getElementById(m).style.backgroundImage='url(/images/menuBG.gif)';
		document.getElementById(h).src='/images/menuR.gif';
}



var headImages		= new Array('/images/header01.jpg','/images/header02.jpg','/images/header03.jpg');
var cOp				= 0;

var cImg			= -1;
var cBg				= 0;

function blend(image) {
	if (cOp > 0) {
		
		document.getElementById('HEAD_IMG').style.opacity = cOp;
		document.getElementById('HEAD_IMG').style.filter = 'Alpha(opacity=' + parseInt(cOp*100) + ', finishopacity=' + parseInt(cOp*100) + ', style=1)';
		
		cOp -= 0.05;
		
		// alert(parseInt(cOp*100));
		
	} else {
		
		document.getElementById('HEAD_IMG').src = headImages[cBg];
		cOp = 1; cImg++; cBg++;
		
		document.getElementById('HEAD_IMG').style.opacity = cOp;
		document.getElementById('HEAD_IMG').style.filter = 'Alpha(opacity=' + parseInt(cOp*100) + ', finishopacity=' + parseInt(cOp*100) + ', style=1)';
		
		if (cImg >= headImages.length) cImg = 0;
		if (cBg >= headImages.length) cBg = 0;	

		document.getElementById('HEAD_IMG_BG').style.backgroundImage = 'url('+headImages[cBg]+')';
	}
	window.setTimeout('blend('+image+')', 100);
}
