arr_koepfe															= new Array();
int_merke_kopf														= 0;
merke_url															= '';

function set_kopf(id_kopf,nr,str_url,str_kontakt)
  {
  merke_url															= str_url;
  
  if(int_merke_kopf != id_kopf)
    {
	obj_subnavi														= document.getElementById('subnavi_kopf'+id_kopf);
    
	if(int_merke_kopf > 0)
	  {
	  document.getElementById('subnavi_kopf'+int_merke_kopf).className	= obj_subnavi.className.replace(' selected','');
	  document.images['bild_kopf'+int_merke_kopf].src				= arr_koepfe['kopf'+int_merke_kopf][0];
	  }
	
    obj_bild														= document.images['bild_kopf'+id_kopf];
    obj_kopf														= arr_koepfe['kopf'+id_kopf];
    obj_slogan														= document.getElementById('slogan');
    obj_rechts														= document.getElementById('rechts');
	obj_beratungsfelder												= document.getElementById('beratungsfelder');
	obj_beratungsfelder_inhalt										= document.getElementById('beratungsfelder_inhalt');
	
	slogan_css														= '';
	if(nr == 3)
	  {
	  nr															= 2;
	  slogan_css													= 'slogan_right';
	  }
	
	int_padding														= (nr%5)*114;
    
    
    if(obj_bild.src.indexOf('trans.gif') <= 0)
      {
	  obj_bild.src													= obj_kopf[1];
	  }
    
	obj_slogan.innerHTML											= '<h2>'+obj_kopf[2]+'</h2><h3>&quot;'+obj_kopf[3]+'&quot;'+obj_kopf[5]+'</h3>';
	obj_beratungsfelder.style.display								= 'none';
	if(obj_kopf[6] != '')
	  {
	  obj_beratungsfelder_inhalt.innerHTML							= '<ul><li>'+obj_kopf[6]+'</li></ul>';
	  obj_beratungsfelder.style.display								= 'block';
	  }
	
	//obj_slogan.style.paddingLeft									= int_padding+'px';
	//obj_slogan.className											= slogan_css;
	if(obj_subnavi != null && obj_subnavi != undefined)
	  {
	  obj_subnavi.className											= obj_subnavi.className+' selected';
      }
	int_merke_kopf													= id_kopf;
	
	obj_rechts.innerHTML											= '<h3>'+str_kontakt+'</h3>'+obj_kopf[4];
	}
  init_cn();
  }


function show_kopf_details(str_url)
  {
  document.location.href											= str_url+','+merke_url+'.html';
  }


var gl_browser_height												= 0;
var gl_browser_width												= 0;

//------------------------------------------------------------------
// breite und hoehe des browserfensters bestimmen
//------------------------------------------------------------------
function init_browser_height_width()
  {
  if(ie && navigator.appVersion.indexOf("Linux") < 0)
    {
    gl_browser_width												= document.documentElement.clientWidth;
    gl_browser_height												= document.documentElement.clientHeight;
	//gl_browser_width												= document.body.clientWidth;
    //gl_browser_height												= document.body.clientHeight;
	}
  else
    {
	gl_browser_width												= innerWidth;
    gl_browser_height												= innerHeight;
    }
  
  //fuer linux
  if(navigator.appVersion.indexOf("Linux") >= 0)
    {
    gl_browser_height												= gl_browser_height-8;
    }
  }


function init_cn()
  {
  // global
  
  // cn-academy.ch
  if(JS_skin == 'cn_academy')
    {
	
	init_browser_height_width();
    hoehe_content													= parseInt(document.getElementById('wrap').offsetHeight);
  
    if(gl_browser_height-hoehe_content > 0)
      {
	  //document.getElementById('content').style.height				= parseInt(document.getElementById('content').offsetHeight)+(gl_browser_height-hoehe_content-53)+'px';
	  
	  document.getElementById('footer').style.height				= (gl_browser_height-hoehe_content)+'px';
	  }
	}
  }
  
window.onload = init_cn;
