// JavaScript Document by commodule
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function Cm_Teaser() {
	 this.current = 1;
	 this.total = 3;
	 
	 this.next = function() {
		  var eins = 1;
		  if(this.total == this.current) {
			  this.current = 1;
		  } else {
		      this.current = eval(this.current + "+" + eins);
		  }
		  this.dochange();
	 }
	 
	 this.prev = function() {
		  var eins = 1;
		  if(this.current == eins) {
			  this.current = this.total;
		  } else {
		      this.current = eval(this.current + "-" + eins);
		  }
		  this.dochange();
	 }
	 
	 this.dochange = function() {
		 var headline = document.getElementById('cm_teaser_headline_' + this.current).innerHTML;
		 var text = document.getElementById('cm_teaser_text_' + this.current).innerHTML;
		 document.getElementById('cm_teaser_headline').innerHTML = headline;
		 document.getElementById('cm_teaser_text').innerHTML = text;
	 }
	 
}
cm_teaser_1 = new Cm_Teaser();

function Cm_Dropdown() {
     this.divname = '';
	 this.divname_img = '';
	 this.iname = '',
	 this.is_mouseover_top = false;
	 this.is_mouseover_self = false;
	 this.mouseoverpic = '';
	 this.mouseoutpic = '';
	 this.hidden = 'hidden';
	 
	 
	 this.checkhoover = function() {
		 this.divname_img = this.divname+'_button';
		 if(this.is_mouseover_top == false) {
			  if(this.is_mouseover_self == false) {
			     this.makeinvisible();
			  } else {
				 this.makevisible();
			  }
		 } else {
			  this.makevisible();
		 }
	 }
	 
	 this.makevisible = function() {
		  document.getElementById(this.divname).style.visibility = 'visible';
		  document.getElementById(this.divname_img).src = this.mouseoverpic;
	 }
	 
	 this.makeinvisible = function() {
	 	  timeoutcode = this.iname+".reallymakeinvisible()";
		  setTimeout (timeoutcode, 10);
	 }
	 
	 this.reallymakeinvisible = function() {
		  if(!this.is_mouseover_top && !this.is_mouseover_self) {
			  document.getElementById(this.divname).style.visibility = this.hidden;
		      document.getElementById(this.divname_img).src = this.mouseoutpic;
		  } else {
			  timeoutcode = this.iname+".reallymakeinvisible()";
		      setTimeout (timeoutcode, 10);
		  }
	 }
	 
	 this.mouseover_top = function() {
		 this.is_mouseover_top = true;
		 this.checkhoover();
	 }
	 
	 this.mouseout_top = function() {
		 this.is_mouseover_top = false;
		 this.checkhoover();
	 }
	 
	 this.mouseover_bottom = function() {
		 this.is_mouseover_self = true;
		 this.checkhoover();
	 }
	 
	 this.mouseout_bottom = function() {
		 this.is_mouseover_self = false;
		 this.checkhoover();		 
	 }
}
cm_dropdown_1 = new Cm_Dropdown();
cm_dropdown_1.divname = 'navi_dropdown_1';
cm_dropdown_1.iname = 'cm_dropdown_1';
cm_dropdown_2 = new Cm_Dropdown();
cm_dropdown_2.divname = 'navi_dropdown_2';
cm_dropdown_2.iname = 'cm_dropdown_2';
//cm_dropdown_2.hidden = 'visible';

function Cm_Subdropdown() {
     this.divname = '';
	 this.isover = false;
	 
	 this.mouseov = function() {
		 document.getElementById(this.divname).style.backgroundImage = 'url(/designimg/bg_navibox_point_mo.gif)';
		 this.isover = true;
	 }
	 
	 this.mouseou = function() {
		this.isover = false;
		timeoutcode = this.iname+".mouseou_really()";
		setTimeout (timeoutcode, 10);
	 }
	 
	 this.mouseou_really = function() {
		if(!this.isover) {
		    document.getElementById(this.divname).style.backgroundImage = 'url(/designimg/bg_navibox_point.gif)';
		} else {
			timeoutcode = this.iname+".mouseou_really()";
		    setTimeout (timeoutcode, 10);
		}
	 }
}

cm_sub_1 = new Cm_Subdropdown();
cm_sub_1.divname = 'subbox_1';
cm_sub_1.iname = 'cm_sub_1';
cm_sub_2 = new Cm_Subdropdown();
cm_sub_2.divname = 'subbox_2';
cm_sub_2.iname = 'cm_sub_2';
cm_sub_3 = new Cm_Subdropdown();
cm_sub_3.divname = 'subbox_3';
cm_sub_3.iname = 'cm_sub_3';
cm_sub_4 = new Cm_Subdropdown();
cm_sub_4.divname = 'subbox_4';
cm_sub_4.iname = 'cm_sub_4';
cm_sub_5 = new Cm_Subdropdown();
cm_sub_5.divname = 'subbox_5';
cm_sub_5.iname = 'cm_sub_5';
cm_sub_6 = new Cm_Subdropdown();
cm_sub_6.divname = 'subbox_6';
cm_sub_6.iname = 'cm_sub_6';
cm_sub_7 = new Cm_Subdropdown();
cm_sub_7.divname = 'subbox_7';
cm_sub_7.iname = 'cm_sub_7';
cm_sub_8 = new Cm_Subdropdown();
cm_sub_8.divname = 'subbox_8';
cm_sub_8.iname = 'cm_sub_8';
cm_sub_9 = new Cm_Subdropdown();
cm_sub_9.divname = 'subbox_9';
cm_sub_9.iname = 'cm_sub_9';
cm_sub_10 = new Cm_Subdropdown();
cm_sub_10.divname = 'subbox_10';
cm_sub_10.iname = 'cm_sub_10';
cm_sub_21 = new Cm_Subdropdown();
cm_sub_21.divname = 'subbox_21';
cm_sub_21.iname = 'cm_sub_21';
cm_sub_22 = new Cm_Subdropdown();
cm_sub_22.divname = 'subbox_22';
cm_sub_22.iname = 'cm_sub_22';
cm_sub_23 = new Cm_Subdropdown();
cm_sub_23.divname = 'subbox_23';
cm_sub_23.iname = 'cm_sub_23';
cm_sub_24 = new Cm_Subdropdown();
cm_sub_24.divname = 'subbox_24';
cm_sub_24.iname = 'cm_sub_24';
cm_sub_25 = new Cm_Subdropdown();
cm_sub_25.divname = 'subbox_25';
cm_sub_25.iname = 'cm_sub_25';
cm_sub_26 = new Cm_Subdropdown();
cm_sub_26.divname = 'subbox_26';
cm_sub_26.iname = 'cm_sub_26';
cm_sub_27 = new Cm_Subdropdown();
cm_sub_27.divname = 'subbox_27';
cm_sub_27.iname = 'cm_sub_27';
cm_sub_28 = new Cm_Subdropdown();
cm_sub_28.divname = 'subbox_28';
cm_sub_28.iname = 'cm_sub_28';
cm_sub_29 = new Cm_Subdropdown();
cm_sub_29.divname = 'subbox_29';
cm_sub_29.iname = 'cm_sub_29';

function Cm_Subdropdown_lite() {
     this.divname = '';
	 this.iname = '';
	 this.isover = false;
	 
	 this.mouseov = function() {
		 this.isover = true;
		 document.getElementById(this.divname).style.backgroundImage = 'url(/designimg/navi_individuell_out2.png)';
	 }
	 
	 this.mouseou = function() {
		 this.isover = false;
		 timeoutcode = this.iname+".mouseou_really()";
		 setTimeout (timeoutcode, 10);
	 }
	 
	 this.mouseou_really = function() {
		 if(!this.isover) {
			 document.getElementById(this.divname).style.backgroundImage = 'url(/designimg/navi_individuell_in2.png)';
		 } else {
			 timeoutcode = this.iname+".mouseou_really()";
		     setTimeout (timeoutcode, 10);
		 }
	 }
}

cm_lsub_1 = new Cm_Subdropdown_lite();
cm_lsub_1.divname = 'subboxlite_1';
cm_lsub_1.iname = 'cm_lsub_1';
cm_lsub_2 = new Cm_Subdropdown_lite();
cm_lsub_2.divname = 'subboxlite_2';
cm_lsub_2.iname = 'cm_lsub_2';
cm_lsub_3 = new Cm_Subdropdown_lite();
cm_lsub_3.divname = 'subboxlite_3';
cm_lsub_3.iname = 'cm_lsub_3';
