function alterSerieCSSHeaderClass() {
  jQuery('div.csc-header-n2').css('height','29px');
  jQuery('div.csc-header-n2').css('background','url(fileadmin/config/_jupiter/images/head_fond_serie.png) no-repeat scroll left top #ffffff');
  jQuery('div.csc-header-n2').css('margin','0px 0px 0px 15px');
  jQuery('h3').css('padding','6px 0px 0px 0px');
}

var ErrMessage = '';
function init_teaser(){
	var teaser = new getObj('sub-teaser');	
	if(typeof teaser == 'object' || typeof teaser == 'function') {		
		if(teaser.obj.offsetHeight < 25) {
			teaser.style.display='none';
		}	
	}
	
}

function init_menu() {
	var all_li = document.getElementsByTagName('li');
	var flag = false;		
	if(typeof all_li == 'object' || typeof all_li == 'function') {		
		for(i=0 ;i<all_li.length;i++) {
			liID = all_li[i].id;
			if(liID.substr(0,7)=='ACTSUB_' || liID.substr(0,4)=='ACT_' ) {
				
				showsubmenu(liID);
				break;
			}
		}
	}
}

function showsubmenu(CtrlId) {	
	var CurrId = '';
	if(CtrlId.substr(0,7)=='ACTSUB_') {
		CurrId = CtrlId.substr(7,CtrlId.length-1) ;
	}
	if(CtrlId.substr(0,4)=='ACT_') {
		CurrId = CtrlId.substr(4,CtrlId.length-1) ;
	}

	CurrId ='UL_' + CurrId;	
	try {
		var Ctrl = new getObj(CurrId);
		Ctrl.obj.className='leftmenu2hract';
	}
	catch (err) {
		ErrMessage = err.description;
	}
	
}

function activesubmenu(aCtrlID){
	var all_ul = document.getElementsByTagName('ul');	
	if(typeof all_ul == 'object' || typeof all_ul == 'function') {
	
		for(i=0 ;i<all_ul.length;i++) {
			if(all_ul[i].className=='leftmenu2hrtmp') {
				all_ul[i].className='leftmenu2hr';
			}
			if(all_ul[i].className=='leftmenu2hract') {
				all_ul[i].className='leftmenu2hr';
			}	
					
		}
	
	} 
	else {
		return false;		
	}
	
	var all_li = document.getElementsByTagName('li');
	if(typeof all_li == 'object' || typeof all_li == 'function') {
		for(i=0 ;i<all_li.length;i++) {
			if(all_li[i].className=='nav1vtactsub') {
				all_li[i].className='nav1vt';
			}
			if(all_li[i].className=='nav1vtact') {
				all_li[i].className='nav1vt';
			}				
		}
		
	} 
	else {
		return false;
	}
	
	var UlID = '';
	var tmpID = ''
	var liID = '';
	tmpID=aCtrlID.substr(5,aCtrlID.length-1);
	ulID = 'UL_' + tmpID;	
	liID = 'NO_' + tmpID;
	var ULobj = new getObj(ulID);	
	if(typeof ULobj == 'object' || typeof ULobj == 'function') {
		try {
			ULobj.obj.className= 'leftmenu2hrtmp';
		}	
		catch (err) {
			ErrMessage = err.description;
		}
	}
	var LIobj = new getObj(liID);
	if(typeof LIobj == 'object' || typeof LIobj == 'function') {
		try {
			LIobj.obj.className= 'nav1vtactsub';
		}
		catch (err) {
			ErrMessage = err.description;
		}
	}	
	
	
}

function setHeight() {	
	var MaxHeight = 0;
	
	var cntpage = new Array();
	cntpage[0] = new getObj('page');
	if(typeof cntpage[0] == 'object') {
		cntpage[1]=true;
	}
	else {
		cntpage[1]=false;
	}

	var cntleft = new Array();
	cntleft[0] = new getObj('content-left');
	if(typeof cntleft[0] == 'object' || typeof cntleft[0] == 'function') {
		cntleft[1]=true;
	}
	else {
		cntleft[1]=false;
	}

	var cntright = new Array();
	cntright[0] = new getObj('content-right');
	if(typeof cntright[0] == 'object' || typeof cntright[0] == 'function') {
		cntright[1]=true;
	}
	else {
		cntright[1]=false;
	}

	var cntmain = new Array();
	cntmain[0] = new getObj('content-main');
	if(typeof cntmain[0] == 'object' || typeof cntmain[0] == 'function') {
		cntmain[1]=true;
	}
	else {
		center[1]=false;
	}
	
	
		
	if(cntleft[1]) {
		if(cntleft[0].obj.offsetHeight - cntleft[0].style.paddingTop - cntleft[0].style.paddingBottom  > MaxHeight) {
			MaxHeight = cntleft[0].obj.offsetHeight - cntleft[0].style.paddingTop - cntleft[0].style.paddingBottom   ;
			
		}
	}
	if(cntright[1]) {
		if(cntright[0].obj.offsetHeight - cntright[0].style.paddingTop - cntright[0].style.paddingBottom  > MaxHeight) {
			MaxHeight = cntright[0].obj.offsetHeight - cntright[0].style.paddingTop - cntright[0].style.paddingBottom   ;			
		}
	}
	if(cntmain[1]) {
		if(cntmain[0].obj.offsetHeight - cntmain[0].style.paddingTop - cntmain[0].style.paddingBottom  > MaxHeight) {
			MaxHeight = cntmain[0].obj.offsetHeight - cntmain[0].style.paddingTop - cntmain[0].style.paddingBottom  ;			
		}
	}
	/*if(cntstart[1]) {
		if(cntstart[0].obj.offsetHeight - cntstart[0].style.paddingTop - cntstart[0].style.paddingBottom  > MaxHeight) {
			MaxHeight = cntstart[0].obj.offsetHeight - cntstart[0].style.paddingTop - cntstart[0].style.paddingBottom  ;			
		}
	}*/
		
	//cntpage[0].style.height = MaxHeight - cntpage[0].style.paddingTop - cntpage[0].style.paddingBottom - 10 + 'px';
	if(cntleft[1]) { cntleft[0].style.height = MaxHeight  - cntleft[0].style.paddingTop - cntleft[0].style.paddingBottom - 10 + 'px';}
	if(cntright[1]) { cntright[0].style.height = MaxHeight - cntright[0].style.paddingTop - cntright[0].style.paddingBottom - 10 + 'px'; }
	if(cntmain[1]) { cntmain[0].style.height = MaxHeight - cntmain[0].style.paddingTop - cntmain[0].style.paddingBottom - 10 + 'px'; }
	//if(cntstart[1]) { cntstart[0].style.height = MaxHeight - cntstart[0].style.paddingTop - cntstart[0].style.paddingBottom - 10 + 'px'; }


}

function setHeightstart() {	
	var MaxHeight = 0;
	
	var cntpage = new Array();
	cntpage[0] = new getObj('page');
	if(typeof cntpage[0] == 'object' || typeof cntpage[0] == 'function') {
		cntpage[1]=true;
	}
	else {
		cntpage[1]=false;
	}

	var cntleft = new Array();
	cntleft[0] = new getObj('content-left');
	if(typeof cntleft[0] == 'object' || typeof cntleft[0] == 'function') {
		cntleft[1]=true;
	}
	else {
		cntleft[1]=false;
	}

	var cntright = new Array();
	cntright[0] = new getObj('content-right');
	if(typeof cntright[0] == 'object' || typeof cntright[0] == 'function') {
		cntright[1]=true;
	}
	else {
		cntright[1]=false;
	}
	
	
	var cntstart = new Array();
	cntstart[0] = new getObj('content-start');
	if(typeof cntstart[0] == 'object' || typeof cntstart[0] == 'function') {
		cntstart[1]=true;
	}
	else {
		cntstart[1]=false;
	}
	
	
		
	if(cntleft[1]) {
		if(cntleft[0].obj.offsetHeight - cntleft[0].style.paddingTop - cntleft[0].style.paddingBottom  > MaxHeight) {
			MaxHeight = cntleft[0].obj.offsetHeight - cntleft[0].style.paddingTop - cntleft[0].style.paddingBottom   ;
			
		}
	}
	if(cntright[1]) {
		if(cntright[0].obj.offsetHeight - cntright[0].style.paddingTop - cntright[0].style.paddingBottom  > MaxHeight) {
			MaxHeight = cntright[0].obj.offsetHeight - cntright[0].style.paddingTop - cntright[0].style.paddingBottom   ;			
		}
	}	
	if(cntstart[1]) {
		if(cntstart[0].obj.offsetHeight - cntstart[0].style.paddingTop - cntstart[0].style.paddingBottom  > MaxHeight) {
			MaxHeight = cntstart[0].obj.offsetHeight - cntstart[0].style.paddingTop - cntstart[0].style.paddingBottom  ;			
		}
	}
		
	//cntpage[0].style.height = MaxHeight - cntpage[0].style.paddingTop - cntpage[0].style.paddingBottom - 10 + 'px';
	if(cntleft[1]) { cntleft[0].style.height = MaxHeight  - cntleft[0].style.paddingTop - cntleft[0].style.paddingBottom - 10 + 'px';}
	if(cntright[1]) { cntright[0].style.height = MaxHeight - cntright[0].style.paddingTop - cntright[0].style.paddingBottom - 10 + 'px'; }
	if(cntstart[1]) { cntstart[0].style.height = MaxHeight - cntstart[0].style.paddingTop - cntstart[0].style.paddingBottom - 10 + 'px'; }


}


function getObj(name){
      if (document.getElementById)
      {
        this.obj = document.getElementById(name);        
        this.style = document.getElementById(name).style;
      }
      else if (document.all)
      {
        this.obj = document.all[name];
        this.style = document.all[name].style;
      }
      else if (document.layers)
      {
        this.obj = document.layers[name];
        this.style = document.layers[name];
      }
 }
