";
document.body.innerHTML = ""
+ "
"
+ ""
+ _logo_
+ _header_
+ _inh_
+ "
"
+ ""
+ "
"
if ( document.title.indexOf(" - ") != -1 ){ setTimeout("f_icon_menue()",0); }
setTimeout("f_css_test()",500);
f_resize();
window.addEventListener("resize",f_resize,0);
window.addEventListener("onorientationchange",f_resize,0)
} window.onload = f_onload;
function f_resize(){
// Buttonfeld-Breite anpassen
ow = document.body.offsetWidth; ow2 = ow - 20;
if( document.getElementById( "id_breite_buttonfeld" ) ){
_id_ = "id_breite_buttonfeld";
if ( ow < 1000 ){ document.getElementById( _id_ ).style.width= "100%"; }
else{ document.getElementById( _id_ ).style.width = "1000px"; }
}
// Flyer-Breite anpassen
if( document.getElementById( "id_box_prospekt_1" ) ){
for( jj=0; jj< 8; jj++){
_id_ = "id_flyer" + jj;
if ( ow > 1000 ){ document.getElementById( _id_ ).className = "flyer480px"; document.getElementById( _id_ ).classList.add("flyer480px"); }
else if ( ow > 400 ){ document.getElementById( _id_ ).className = "flyer360px"; document.getElementById( _id_ ).classList.add("flyer360px"); }
else { document.getElementById( _id_ ).className = "flyer100prozent"; document.getElementById( _id_ ).classList.add("flyer100prozent"); }
}
}
// Banner-Breite anpassen
if( document.getElementById( "id_box_prospekt_100" ) ){
_id_ = "id_box_prospekt_100";
if ( ow < 1200 ){document.getElementById( _id_ ).style.width = "100%";}
else if ( ow < 2000 ){document.getElementById( _id_ ).style.width = "90%";}
else { document.getElementById( _id_ ).style.width = "80%"; }
}
// eRezept-Prospekt-Breite anpassen
if( document.getElementById( "id_erezept" ) ){
_id_ = "id_erezept";
if ( ow > 600 ){ document.getElementById( _id_ ).className = "flyer50prozent"; document.getElementById( _id_ ).classList.add("flyer50prozent"); }
else { document.getElementById( _id_ ).className = "flyer90prozent"; document.getElementById( _id_ ).classList.add("flyer90prozent"); }
}
}
function f_css_test(){
_csstest_ = 1; if ( document.getElementById( "id_trennbalken" ).offsetHeight == 0 ){ _csstest_ = 0; }
if ( _css_ != _csstest_ ){ self.location.href = self.location.href; }
setTimeout("f_css_test()",100);
}
function f_link(e){
if ( e == "text_anleitung" ){ f_text_anleitung(); }
else if ( e == "text_prospekt" ){ f_text_prospekt(); }
else{ self.location.href = e; }
if( e.indexOf( "http" ) == -1 ){ f_icon_menue(); }
}
function f_text_anleitung(){
_id_ = "id_anleitung";
document.getElementById( _id_ ).style.display = "none";
document.body.scrollTop = 0, document.documentElement.scrollTop = 0;
document.getElementById( _id_ ).innerHTML = text_anleitung;
document.getElementById( _id_ ).style.display = "block";
f_icon_menue();
}
function f_text_prospekt(){
_id_ = "id_inh";
document.getElementById( _id_ ).style.display = "none";
document.body.scrollTop = 0, document.documentElement.scrollTop = 0;
document.getElementById( _id_ ).innerHTML = text_prospekt;
document.getElementById( _id_ ).style.display = "block";
}
function f_icon_menue(){
document.getElementById( "id_infozeile" ).innerHTML = "
"
}
function f_mouseenter(r){
for( j=0; j< i; j++){ _id_ = "id_box_" + j; document.getElementById( _id_ ).blur(); }
f_change_class(r);
}
function f_mouseleave(r){
_id_ = "id_box_" + r;
document.getElementById( _id_ ).className = "divbut2";
document.getElementById( _id_ ).classList.add("divbut2");
document.getElementById( _id_ ).blur();
}
function f_change_class(r){
for( j=0; j< i; j++){ _id_ = "id_box_" + j; document.getElementById( _id_ ).className = "divbut2"; document.getElementById( _id_ ).classList.add("divbut2"); }
_id_ = "id_box_" + r; document.getElementById( _id_ ).className = "divbut2_red"; document.getElementById( _id_ ).classList.add("divbut2_red");
}
function f_prospekt_focus(r){
_id_ = "id_box_prospekt_" + r; document.getElementById( _id_ ).className = "prospekt_hover"; document.getElementById( _id_ ).classList.add("prospekt_hover");
}
function f_prospekt_blur(r){
_id_ = "id_box_prospekt_" + r; document.getElementById( _id_ ).className = "prospekt_default"; document.getElementById( _id_ ).classList.add("prospekt_default");
}
_op_= 0;
function f_img_header(){
if(_op_<1){ _op_+=0.03; document.getElementById( "id_img_header" ).style.opacity=_op_; setTimeout("f_img_header()",100); }
else{ setTimeout("f_img_header2()",3000); }
}
function f_img_header2(){
if ( document.images[0].src.indexOf( "img/header5.png") != -1 ){ _img_ = "img/header4.png"; link_a_header = link_advent }
else { _img_ = "img/header5.png"; link_a_header = link_blackday; }
document.images[0].src = _img_ ;
document.getElementById( "id_a_header" ).href = link_a_header;
_op_=0; document.getElementById( "id_img_header" ).style.opacity=0; f_img_header();
}
loc_flyer="";
var jetzt=new Date(), m=jetzt.getMonth();
if(m==0){_fl_="Januar"; loc_flyer="Flyer-01Jan/"; _mon_ = "Jan"; _mon2_ = "Januar"; prosp = p_Januar; }
else if(m==1){_fl_="Februar"; loc_flyer="Flyer-02Feb/"; _mon_ = "Feb"; _mon2_ = "Februar"; prosp = p_Februar; }
else if(m==2){_fl_="März"; loc_flyer="Flyer-03Mae/"; _mon_ = "Mae"; _mon2_ = "März"; prosp = p_Maerz; }
else if(m==3){_fl_="April"; loc_flyer="Flyer-04Apr/"; _mon_ = "Apr"; _mon2_ = "April"; prosp = p_April; }
else if(m==4){_fl_="Mai"; loc_flyer="Flyer-05Mai/"; _mon_ = "Mai"; _mon2_ = "Mai"; prosp = p_Mai; }
else if(m==5){_fl_="Juni"; loc_flyer="Flyer-06Jun/"; _mon_ = "Jun"; _mon2_ = "Juni"; prosp = p_Juni; }
else if(m==6){_fl_="Juli"; loc_flyer="Flyer-07Jul/"; _mon_ = "Jul"; _mon2_ = "Juli"; prosp = p_Juli; }
else if(m==7){_fl_="August"; loc_flyer="Flyer-08Aug/"; _mon_ = "Aug"; _mon2_ = "August"; prosp = p_August; }
else if(m==8){_fl_="September"; loc_flyer="Flyer-09Sep/"; _mon_ = "Sep"; _mon2_ = "September"; prosp = p_September; }
else if(m==9){_fl_="Oktober"; loc_flyer="Flyer-10Okt/"; _mon_ = "Okt"; _mon2_ = "Oktober"; prosp = p_Oktober; }
else if(m==10){_fl_="November"; loc_flyer="Flyer-11Nov/"; _mon_ = "Nov"; _mon2_ = "November"; prosp = p_November; }
else if(m==11){_fl_="Dezember"; loc_flyer="Flyer-12Dez/"; _mon_ = "Dez"; _mon2_ = "Dezember"; prosp = p_Dezember; }
prosp = prosp
.replace(new RegExp("
", "g"), "")
.replace(new RegExp("", "g"), "")
.replace(new RegExp(" [(]Grund", "g"), ". Dies entspricht dem Grund")
.replace(new RegExp(" l[)]", "g"), " Liter")
.replace(new RegExp(" kg[)]", "g"), " Kilogramm")
.replace(new RegExp(" [(]PZN:", "g"), " mit der Pharmazentralnummer ")
.replace(new RegExp("[)]:", "g"), " für: ")
_prospekt_ = loc_flyer + "0.jpg";
_jahr_=jetzt.getFullYear();
function f_selflocation(){ self.location.href=self.location.href; }