function openBrWindow(theURL,winName,b,h,features) 
{ 			
	var eigenschaft,fenster02;
	x = (screen.width-b)/2;
	y = (screen.height-h)/2;
	var eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y;
	
	eigenschaften= eigenschaften + ",width="+b+",height="+h+","+features;		
	fenster02=window.open(theURL,winName,eigenschaften);			
}

function switchView(obj_id)
{                                                                                                      
	if(document.getElementById(obj_id).style.display == '')
	{
		document.getElementById(obj_id).style.display = 'none';     
	} else {
		document.getElementById(obj_id).style.display = '';
	}		                                                                                                                          
}

var lastSwitchNavi = new Object();
function switchNavi(obj_id, group_id) {
	var obj = document.getElementById(obj_id);
	if((lastSwitchNavi[group_id] != null) && (lastSwitchNavi[group_id] != obj)) lastSwitchNavi[group_id].style.display = "none";
	
	obj.style.display = ((obj.style.display == "none") ? "" : "none");
	lastSwitchNavi[group_id] = obj;
}

function rollOver(imgid, imgoversrc){
	document.getElementById(imgid).src = imgoversrc;
}
function rollOut(imgid, imgoversrc){
	document.getElementById(imgid).src = imgoversrc;
}
if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	window.attachEvent("onload", alphaBackgrounds);
}

var alphaBGs = [['kuller1', 'crop'], ['kuller2', 'crop'],['kuller3', 'crop'], ['footers', 'crop'], ['div_content', 'scale']];

function alphaBackgrounds(){
	
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	for (i=0; i<alphaBGs.length; i++){
		if(document.getElementById(alphaBGs[i][0])){
			var bg = document.getElementById(alphaBGs[i][0]).currentStyle.backgroundImage;
			if (itsAllGood && bg){
				if (bg.match(/\.png/i) != null){
					var mypng = bg.substring(5,bg.length-2);
					document.getElementById(alphaBGs[i][0]).style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='"+alphaBGs[i][1]+"')";
					document.getElementById(alphaBGs[i][0]).style.backgroundImage = "url('/img/spacer.gif')";
				}
			}
		}
	}
	for (i=0; i<document.all.length; i++){
		var bg = document.all[i].currentStyle.backgroundImage;
		if (itsAllGood && bg){
			if (bg.match(/\.png/i) != null){
				var mypng = bg.substring(5,bg.length-2);
				if(mypng.substr(mypng.length-11, 11) == "/shadow.png"){
					document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/ccds_tpl_img/shadow.png', sizingMethod='scale')";
					document.all[i].style.backgroundImage = "url('/img/spacer.gif')";
				}
			}
		}
	}
}