

function colalign(master,slave){
	oID('c'+slave).style.display='block';
	oID('c'+slave).style.height=oID('c'+master).offsetTop;
}
function myonload(){
	oWin.init()
}
function ____myonload(){
	endCont=document.createElement("p");
	endCont.id='endCont';
	oID("contentMain").appendChild(endCont);

	endContR=document.createElement("p");
	endContR.id='endContR';
	oID("contentRightCol").appendChild(endContR);

	contHeight=parseInt(oID('endCont').offsetTop);
	contHeightR=parseInt(oID('endContR').offsetTop);
	contHeightWin=parseInt(oID('breadcrumb').offsetTop);
	theH=Math.max(contHeight,contHeightR)+145;
	if(oWin.Height < theH)oID('BodyID').style.overflow='auto';
	oID('BodyID').style.height=Math.max(theH,oWin.Height);
	oID('outerWrapper').style.height=contHeightWin-60;
	oID('contentMain').style.height=contHeightWin-318;
	oID('contentRightCol').style.height=contHeightWin-316;
	oID('searchMenu').style.top=contHeightWin-105;
}



function onmout(which,L){
	aM[which]=aM[which]-1;
	setTimeout('onmout2(\"'+which+'\",\"'+L+'\")',1);
}
function onmout2(which,L){
		if(aM[which]==0){
			oID('mml_'+which).src='fileadmin/templates/gfx/menu/'+L+'/'+which+'_off.gif'
			hideD('ULSub_'+which);
		}else{}
}

function onmover(which,L){
		aM[which]=aM[which]+1;
		oID('mml_'+which).src='fileadmin/templates/gfx/menu/'+L+'/'+which+'_on.gif';
}

function onsover(me,which){
	me.style.color='#FF0000';
}
function onsout(me,which){
	me.style.color='#000000';
}

var DHTML=0, DOM=0, MS=0, NS=0, OP=0;

function DHTML_init(){
	if(window.opera){OP=1;}
	if(document.getElementById){DHTML=1;DOM=1;}
	if(document.all && !OP){DHTML=1;MS=1;}
	if(window.netscape && window.screen && !DOM && !OP){DHTML=1;NS=1;}
}

function oID(ID){
	if(DOM){if(typeof document.getElementById(ID)=='object')return(document.getElementById(ID)); else return(void(0));
	}else if(MS){if(typeof document.all[ID]=='object')return(document.all[ID]);else return(void(0));
	}else if(NS){if(typeof document[ID]=='object')return(document[ID]);else return(void(0));}
}
function oName(p2){
	if(DOM){if(typeof document.getElementsByName(p2)=="object")return(document.getElementsByName(p2)[0]);	else return(void(0));
	}else if(MS){if(typeof document[p2]=="object")return(document[p2]);	else return(void(0));
	}else if(NS){if(typeof document[p2]=="object")return(document[p2]);	else return(void(0));}
}
DHTML_init();

var oWin=new oWIN();
var curMenu="";
var curUMenu="";
var oldUMenu="";
function hide(ID){
	oID(ID).style.visibility="hidden";
}
function show(ID){
	oID(ID).style.visibility="visible";
}
function hideD(ID){
	oID(ID).style.display="none";
}
function showD(ID){
	oID(ID).style.display="block";
}
function hideIF(Name){
	oID(Name).style.visibility="hidden";
}
function showIF(Name){
	oID(Name).style.visibility="visible";
}
function LoadIFrame(mytarget,file){
	oID(mytarget).src=file;
}


function oWIN(){
	this.BodyName='BodyID';
	this.Width=0;
	this.Height=0;
	this.init=_oWIN_init;
	this.setName=_oWIN_SetName;
	this.resize2min=_oWIN_resize2min;
}
function _oWIN_SetName(BodyName){
	this.BodyName=BodyName;
}
function _oWIN_init(){
	if((document.all)&& (OP==0)){
		this.Width=oID(this.BodyName).offsetWidth;
		this.Height=oID(this.BodyName).offsetHeight;
	}else{
		this.Width=window.innerWidth;
		this.Height=window.innerHeight;
	}
	if(typeof this.Width=="string")this.Width=parseInt(this.Width);
	if(typeof this.Height=="string")this.Height=parseInt(this.Height);
}

function _oWIN_resize2min(minWidth,minHeight){
	if(this.Width < minWidth){
		window.resizeBy(minWidth-this.Width,0);
	}
	if(this.Height < minHeight){
		window.resizeBy(0,minHeight-this.Height);
	}
	this.init();
}

var curKatOpen=-1;
function swapKat(Kat){
	oldKatOpen=curKatOpen;
	if(curKatOpen>=0){
		oID('tblKat'+curKatOpen).style.display="none";
		curKatOpen=-1;
	}
	if(oldKatOpen!=Kat){
		curKatOpen=Kat;
		oID('tblKat'+Kat).style.display="block"
	}

	if(oID('tblKat'+Kat).style.display=="none"){
//		oID('tblKat'+Kat).style.display="none";
//		curKatOpen=-1;
	}else{
	}
}

function activateFolder(folder){
	swapKat(folder)
}
oWin=new oWIN();
