	var cz_gal_activebigimage = 1;
	function cz_swapgallery(img){
		document.getElementById('cz_gal_bigimage_'+cz_gal_activebigimage).style.display='none';
		document.getElementById('cz_gal_bigimage_'+img).style.display='block';
		cz_gal_activebigimage = img;
	}
	
	function cz_gal_slideshow(jumpto){
		cz_gal_newimage = parseInt(cz_gal_activebigimage)+parseInt(jumpto);
		if(document.getElementById('cz_gal_bigimage_'+cz_gal_newimage)){
			cz_swapgallery(cz_gal_newimage);
		}
	}
	
	var cz_sonderhefte_activeimage = 1;
	var cz_sonderhefte_activeimage_max = 10;
	function cz_swapsonderhefte(img){
		for(i=1;i<=cz_sonderhefte_activeimage_max;i++){
			if(document.getElementById('cz_sonderheft_'+i)){
		      document.getElementById('cz_sonderheft_'+i).style.display='none';
			}
		}
		document.getElementById('cz_sonderheft_'+img).style.display='block';
		cz_sonderhefte_activeimage = img;
	}
	
	function cz_sonderheft_slideshow(jumpto,maxnum){
		cz_sond_newimage = parseInt(cz_sonderhefte_activeimage)+parseInt(jumpto);
		if(document.getElementById('cz_sonderheft_'+cz_sond_newimage)){
			cz_swapsonderhefte(cz_sond_newimage);
		}else
		{
			if(cz_sond_newimage==0)
			{
				cz_sonderhefte_activeimage = maxnum;
			}
			else{
				cz_sonderhefte_activeimage = 1;
			}
			if(document.getElementById('cz_sonderheft_'+cz_sonderhefte_activeimage)){
			cz_swapsonderhefte(cz_sonderhefte_activeimage);
			}
		}
	}
	
	var cz_mainarticle_active = '1';
	function cz_swapmainarticle(article){
		for(i=1;i<=4;i++){
			document.getElementById('cz_mainarticle_'+i).style.display='none';
		}
		document.getElementById('cz_mainarticle_'+cz_mainarticle_active).style.display='none';
		document.getElementById('cz_morenews_'+cz_mainarticle_active).style.border='1px solid #fff';
		document.getElementById('cz_mainarticle_'+article).style.display='block';
		document.getElementById('cz_morenews_'+article).style.border='1px solid #cecece';
		cz_mainarticle_active = article;
	}

	function cz_swapaktmag(magazine){
		document.getElementById('cz_akt_mag_big_1').style.display='none';
		document.getElementById('cz_akt_mag_big_2').style.display='none';
		document.getElementById('cz_akt_mag_big_3').style.display='none';
		document.getElementById('cz_akt_mag_big_4').style.display='none';
		document.getElementById('cz_akt_mag_select').style.display='none';
		if(magazine == '0'){
			document.getElementById('cz_akt_mag_select').style.display='block';
		} else {
			document.getElementById('cz_akt_mag_big_'+magazine).style.display='block';
		}
	}
	
	function vf_switch_content(content_name,content_to_show,content_count){
		for(i=1;i<=content_count;i++){
			document.getElementById(content_name+i).className='content-disabled';
			document.getElementById(content_name+i+i).className='rider-disabled';
		}
		document.getElementById(content_name+content_to_show).className='content-enabled';
		document.getElementById(content_name+content_to_show+content_to_show).className='rider-enabled';
	}
	
	function omd_bookmark(title,url){
		// firefox
		if (window.sidebar)
		{ 
			window.sidebar.addPanel(title, url, "");
		}
		// opera
		else if(window.opera && window.print)
		{
			var elem = document.createElement('a');
			elem.setAttribute('href',url);
			elem.setAttribute('title',title);
			elem.setAttribute('rel','sidebar');
			elem.click();
		}
		// ie
		else if(document.all)
		window.external.AddFavorite(url, title);
	}
	
	function omd_copyLinkBox(what) {
		if (document.getElementById('vf_omd_copyLink-box').style.display == 'inline' && what != 'click')
		{
		document.getElementById('vf_omd_copyLink-box').style.display='none';
		}
		else
		{
			switch(what)
			{
				case 'close':	document.getElementById('vf_omd_copyLink-box').style.display='none';  
								break;
				case 'click':	document.getElementById('vf_omd_copyLink-input').select();			
								break;
				default:		document.getElementById('vf_omd_copyLink-box').style.display='inline';
								document.getElementById('vf_omd_copyLink-input').focus();
								document.getElementById('vf_omd_copyLink-input').select();			
			}
		}
	}
	function omd_kl_feature_austattung(){
		if(document.getElementById("omd_vfmz_feature_austattung")){
	    var test_omd_vfmz_feature_austattung = document.getElementById("omd_vfmz_feature_austattung").innerHTML;
  	  document.getElementById("omd_vfmz_feature_austattung").innerHTML = test_omd_vfmz_feature_austattung.substr(0, test_omd_vfmz_feature_austattung.length-2);
    }		
	}
	function omd_KLLOADER(){
	 window.scrollTo(0,0);
	 document.getElementById("myloaderButtons").style.display='none';
	 document.getElementById("myloader").style.display='block';
   if(navigator.appName=="Microsoft Internet Explorer"){
	  window.setTimeout("omd_KLLOADER_action()", 5000);
	 }else{
	  window.setTimeout("omd_KLLOADER_action()", 2000);
	 }
 }
 function omd_KLLOADER_action(){
   document.getElementById("myloader").style.display='none';
   document.getElementById("myloaderPart").style.display='block';
	 document.getElementById("myloaderButtons").style.display='block';
 }
 function omd_speedline_adjust(){
	 document.getElementById('OMSOffer').style.height = frames['OMSOffer'].document.getElementById('OMSDiv').offsetHeight + 'px';
 }
function omd_iewarning(){
	var ua = navigator.userAgent; 
	if(ua.indexOf("MSIE") >=0){
		 document.getElementById("omd_myinfotxt").style.display = "block";
	}
}