 
function centerize(){
	width = document.documentElement.clientWidth;
	width-=936;
	halfwidth = width / 4 ;
	if(halfwidth<0) halfwidth=0;
	document.getElementById('maincontentarea').style.left=halfwidth+'px';
	document.getElementById('maincontentarea').style.visibility = 'visible';
}

function correctThisPNG(that)
{
	if(!document.all||window.opera||document.contains ){
		// document.all is known by IE, opera and Konqueror/Safari. window.opera only opera knows, document.contains is only known by opera and konqueror
		// every browser which is not the IE should return here
		return;
	}
	name = that.src;
	// only PNG images are processed
	that.src=imgpath+"transparent.gif"; // replace image src
	// set AlphaImageLoader
	that.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+name+"', sizingMethod='scale')";

}

function correctPNG()
{
	if(!document.all||window.opera||document.contains ){
		// document.all is known by IE, opera and Konqueror/Safari. window.opera only opera knows, document.contains is only known by opera and konqueror
		// every browser which is not the IE should return here
		return;
	}

	for(i in document.getElementsByTagName("div")){ 
		// search through all DIVs
		if(parseInt(i)){ // sort out wrong keys
			elem=document.getElementsByTagName("div")[i];
			if(elem.className=='liveconfig_chatline1'||elem.className=='liveconfig_chatline2'){
				//reset the background so that AlphaImageLoader can work
				elem.style.backgroundImage='none';
			}
		}
	}

	// go through all images
	for(i in document.getElementsByTagName("img")){
		// save the src-path
		name = document.getElementsByTagName("img")[i].src;
		if(name.indexOf('.png')>0){
			// only PNG images are processed#
			document.getElementsByTagName("img")[i].src=imgpath+"transparent.gif"; // replace image src
			// set AlphaImageLoader
			document.getElementsByTagName("img")[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+name+"', sizingMethod='scale')";
			}
	}
}

function toogleCheckbox(box){
	if(box.checked){
		box.checked = false;
	}
	else {
		box.checked = true;
	}
}