document.write("<script type=\"text/javascript\" language=\"JavaScript1.2\" src=\"http://www.apoforms.andreas-grey.com/apothema/datum_all.js\"></script>")

var t_text;
var m_text;
var my_themaNL;
var my_themaNLH;
var weih_v="";
var brl="<br clear='left'>"

var S_VERZ_site;
var S_VERZ_NR = new Array(); //Inhalt
//alert(document.location.href.substr(document.location.href.length-9,document.location.href.length))
if(document.location.href.substr(document.location.href.length-9,document.location.href.length)=="index.htm" || document.location.href=="http://www.ostapotheke.net/")
        {
        //alert("schreibe");
        document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"in_script/apo2u_shop.css\">")
        document.write("<script language=\"JavaScript1.2\" src=\"http://www.apoforms.andreas-grey.com/ap_z/plus_produkte.js\"></script>")
        document.write("<script language=\"JavaScript1.2\" src=\"in_script/apo2u_gruppe.js\"></script>")


        };


var a_npic=new Array;
a_npic[2]="nav2";
a_npic[3]="nav3";
a_npic[4]="nav4";
a_npic[5]="nav5";
a_npic[6]="nav6";
a_npic[7]="nav7";
a_npic[8]="nav8";
a_npic[9]="nav9";
a_npic[10]="nav10";
a_npic[11]="nav11";
a_npic[12]="nav12";
a_npic[13]="nav13"
a_npic[14]="nav14"
a_npic[15]="nav15"

S_VERZ_NR[10]="Unsere Leistungen im Überblick.";
S_VERZ_NR[101]=500;
S_VERZ_NR[20]="Informationen zur Apotheke."
S_VERZ_NR[201]=500;
S_VERZ_NR[30]="?Fragen?: Nutzen Sie unser Kontaktformular.";
S_VERZ_NR[301]=500;
S_VERZ_NR[40]="So finden Sie die Apotheke.";
S_VERZ_NR[401]=500;
S_VERZ_NR[50]="Hausapotheke";
S_VERZ_NR[501]=1000;
S_VERZ_NR[60]="Unsere Linkliste zum aktuellen Theam";
S_VERZ_NR[601]=950;
S_VERZ_NR[70]="Online-Reservierung von Medikamenten, Bestellung von Leihgeräten.";
S_VERZ_NR[701]=1150;
S_VERZ_NR[80]="Unsere Mitarbeiter stellen sich vor.";
S_VERZ_NR[801]=500;
S_VERZ_NR[90]="Unsere Kundenzeitschriften.";
S_VERZ_NR[901]=1350;
S_VERZ_NR[100]="Die Kundenkarte.";
S_VERZ_NR[1001]=1000;
S_VERZ_NR[110]="Telefonnummern und Adressen für Ihre Gesundheit.";
S_VERZ_NR[1101]=600;
S_VERZ_NR[120]="Viele interessante Links rund um die Gesundheit.";
S_VERZ_NR[1201]=900;
S_VERZ_NR[130]="Anmeldeformular für eine Beratung.";
S_VERZ_NR[1301]=600;
S_VERZ_NR[140]="Notdienst der Apotheken in Magdeburg"
S_VERZ_NR[1401]=500;
S_VERZ_NR[150]="Team Einzelbilder";
S_VERZ_NR[1501]=1300;
S_VERZ_NR[160]="adressen";
S_VERZ_NR[1601]=900;
S_VERZ_NR[170]="plusinfo";
S_VERZ_NR[1701]=600;
S_VERZ_NR[180]="infotelefon";
S_VERZ_NR[1801]=600;
S_VERZ_NR[190]="frei";
S_VERZ_NR[1901]=600;

function dl_finden()
{
var Aussage = document.location.href;

//alert(Aussage);

var Suche1 = /(index)/;
S_VERZ_NR[13] = Suche1.exec(Aussage);
var Suche2 = /(impressum)/;
S_VERZ_NR[23] = Suche2.exec(Aussage);
var Suche3 = /(kontakt)/;
S_VERZ_NR[33] = Suche3.exec(Aussage);
var Suche4 = /(anfahrt)/;
S_VERZ_NR[43] = Suche4.exec(Aussage);
var Suche5 = /(hausapo_info)/;
S_VERZ_NR[53] = Suche5.exec(Aussage);
var Suche6 = /(service)/;
S_VERZ_NR[63] = Suche6.exec(Aussage);
var Suche7 = /(hausapotheke)/;
S_VERZ_NR[73] = Suche7.exec(Aussage);
var Suche8 = /(team)/;
S_VERZ_NR[83] = Suche8.exec(Aussage);
var Suche9 = /(kundenzeitung)/;
S_VERZ_NR[93] = Suche9.exec(Aussage);
var Suche10 = /(kundenkarte)/;
S_VERZ_NR[103] = Suche10.exec(Aussage);
var Suche11 = /(aertze)/;
S_VERZ_NR[113] = Suche11.exec(Aussage);
var Suche12 = /(gesundheitstipps)/;
S_VERZ_NR[123] = Suche12.exec(Aussage);
var Suche13 = /(geraete)/;
S_VERZ_NR[133] = Suche13.exec(Aussage);
var Suche14 = /(notdienst)/;
S_VERZ_NR[143] = Suche14.exec(Aussage);
var Suche15 = /(team_einzel)/;
S_VERZ_NR[153] = Suche15.exec(Aussage);
var Suche16 = /(adresse)/;
S_VERZ_NR[163] = Suche16.exec(Aussage);
var Suche17 = /(plusinfo)/;
S_VERZ_NR[173] = Suche17.exec(Aussage);
var Suche18 = /(infotelefon)/;
S_VERZ_NR[183] = Suche18.exec(Aussage);

var i_zehn;
var i_dreizehn;
for(var i=1; i<=18; i++)
{
i_dreizehn=(i*10)+3;
i_zehn=(i*10);

if(S_VERZ_NR[i_dreizehn]!=null)
    S_VERZ_site=i;
}
L_S_VERZ_site=S_VERZ_site;

//alert(S_VERZ_site);
//if(S_VERZ_site==1) init_menue();
//window.name=S_VERZ_site;
//if(L_S_VERZ_site!=14);
 //window.name=S_VERZ_site;
}


function setze_t_text()
{

var aktuell = new Date();
var start_mon=aktuell.getMonth() + 1;
var start_Y=aktuell.getFullYear();
var day_end;
var mo_str;
switch(start_mon)
{
case 1:
        m_text="Januar";
        day_end="31";
        mo_str=".01."
        break;
case 2:
        m_text="Februar";
        day_end="29";
        mo_str=".02."
        break;
case 3:
        m_text="März";
        day_end="31";
        mo_str=".03."
        break;
case 4:
        m_text="April";
        day_end="30";
        mo_str=".04."
        break;
case 5:
        m_text="Mai";
        day_end="31";
        mo_str=".05."
        break;
case 6:
        m_text="Juni";
        day_end="30";
        mo_str=".06."
        break;
case 7:
        m_text="Juli";
        day_end="31";
        mo_str=".07."
        break;
case 8:
        m_text="August";
        day_end="31";
        mo_str=".08."
        break;
case 9:
        m_text="September";
        day_end="30";
        mo_str=".09."
        break;
case 10:
        m_text="Oktober";
        day_end="31";
        mo_str=".10."
        break;
case 11:
        m_text="November";
        day_end="30";
        mo_str=".11."
        break;
case 12:
        m_text="Dezember";
        day_end="31";
        mo_str=".12."
        break;

}
m_text= m_text + " " + start_Y;
dat_end=day_end + mo_str + start_Y;

}

function ruf_mitnehmen()
{
//top.window.name="Mitnehmen"
//window.location.href="sh_new/index.htm"
document.location.href="sh_new/index.htm";

}
function ruf_books()
{
top.window.name="books"
window.location.href="sh_new/index.htm"
}

var gapx;
var gapx2;
var v_avhoehe;
var v_avhoehe1;
var pic_spacer_v;
var pic_spacer_v1;
var pic_spacer_in;
var v_vers;
var ap_x;
var apy;
var ap_xhalb;
function sw_hoehe()
{
var d_act;


v_vers=navigator.appName;

var v_vers=navigator.appName;

ar_elf=(S_VERZ_site *100)+1

if(v_vers=="Netscape")
  {
  apy=window.innerHeight+1;
  apx=window.innerWidth;

  };

if(v_vers!="Netscape")
   {
  apy=document.all.b_act.offsetHeight;
  v_avhoehe=apy;
  //alert("exp")
  apx=document.all.b_act.offsetWidth;
  ap_x=apx;
  };


  ap_xhalb=apx-782;
  ap_xhalb=ap_xhalb/2;
  ap_xhalb=parseInt(ap_xhalb);
  ap_x=ap_x+680;
  ap_x=parseInt(ap_x);

if(v_vers=="Netscape")
  {
  v_avhoehe=window.innerHeight;
  ap_x=window.innerWidth;
  ap_x=ap_x-800;
  ap_x=ap_x/2;
  gapx2=ap_x;
  ap_x=ap_x+680;
  ap_x=parseInt(ap_x);
  gapx=ap_x;
  };


v_avhoehe=v_avhoehe;
v_avhoehe1=v_avhoehe-125;
v_avhoehe2=v_avhoehe-100;
pic_spacer_v="<img border='0' src='images/sp44y.jpg' width='4' height='" + v_avhoehe + "'>";
pic_spacer_v1="<img border='0' src='images/dy_5_5_grau.gif' width='1' height='" + v_avhoehe1 + "'>";
pic_spacer_in="<img border='0' src='images/dy_5_5_grau.gif' width='1' height='" + v_avhoehe2 + "'>";

if(S_VERZ_NR[ar_elf]>v_avhoehe)
    {
    pic_spacer_v="<img border='0' src='dy_5_5.gif' width='1' height='" + S_VERZ_NR[ar_elf] + "'>";
    navi_hoehe=S_VERZ_NR[ar_elf]-1;
    //pic_spacer_v1="<img border='0' src='dy_5_5.gif' width='1' height='" + navi_hoehe + "'>";
    };


}
var a_title=new Array;
a_title[2]="So finden Sie die Ost Apotheke in Magdeburg";
a_title[3]="Geschichte der Ost Apotheke Magdeburg";
a_title[4]="Die Mitarbeiter der Ost Apotheke in Magdeburg stellen sich vor ";
a_title[5]="Links zur Gesundheit von Ihrer Ost Apotheke in Magdeburg ";
a_title[6]="Arzneimittel und Medikamente in der Ost Apotheke in Magdeburg bestellen ";
a_title[7]="Babywaagen, Milchpumpen, Inhalationsgeräte in der Ost Apotheke in Magdeburg ausleihen ";
a_title[8]="Angebote Ihrer Ost Apotheke in Magdeburg";
a_title[9]="Adressen rund um die Gesundheit zusammengestellt von Ihrer Ost Apotheke in Magdeburg ";
a_title[10]="Die Kundenkarte der Ost Apotheke in Magdeburg - Onlineantrag ";
a_title[11]="Notdienst der Ost Apotheke Magdeburg und der Apotheken in der Umgebung ";
a_title[12]="Monatlich topaktuelle und preiswerte Angebote Ihrer Ost Apotheke in Magdeburg";

var g_pages=new Array;
g_pages[9]="adressen.htm";
g_pages[24]="anfahrt.htm";
g_pages[26]="arzneiinfo.htm";
g_pages[0]="arzte.htm";
g_pages[7]="geraete.htm";
g_pages[5]="gesundheitsinfo.htm";
g_pages[25]="hausapo_info.htm";
g_pages[3]="historie.htm";
g_pages[23]="impressum.htm";
g_pages[100]="base.htm";
g_pages[11]="kukaform.htm";
g_pages[15]="kundenkarte.htm";
g_pages[13]="kundenzeitung.htm";
g_pages[4]="mitarbeiter.htm";
g_pages[11]="NotdF_in.htm";
g_pages[11]="notdienst.htm";
g_pages[14]="service.htm";
g_pages[28]="suche_inl.htm";
g_pages[27]="uebersicht.htm";
g_pages[21]="aplus.htm";
g_pages[22]="kontakt.htm";


var g_title;
function set_title(t_refs)
{
if(t_refs=="adressen.htm") g_title="Website der Ost-Apotheke Magdeburg - Adressenservice";
if(t_refs=="anfahrt.htm") g_title="Website der Ost-Apotheke Magdeburg - So finden Sie uns";
if(t_refs=="aplus.htm") g_title="Website der Ost-Apotheke Magdeburg - A-plus";
if(t_refs=="arzneiinfo.htm") g_title="Website der Ost-Apotheke Magdeburg - Arznei-Info-Telefon";
if(t_refs=="arzte.htm") g_title="Website der Ost-Apotheke Magdeburg - Adressenservice";
if(t_refs=="geraete.htm") g_title="Website der Ost-Apotheke Magdeburg - Gerätevorbestellung";
if(t_refs=="gesundheitsinfo.htm") g_title="Website der Ost-Apotheke Magdeburg - Gesundheitsinformationen";
if(t_refs=="hausapo_info.htm") g_title="Website der Ost-Apotheke Magdeburg - Informationen zur Hausapotheke/Barmer Service-Apotheke";
if(t_refs=="historie.htm") g_title="Website der Ost-Apotheke Magdeburg - Historie";
if(t_refs=="impressum.htm") g_title="Website der Ost-Apotheke Magdeburg - Impressum";
if(t_refs=="index.htm") g_title="Willkommen auf der Website der Ost-Apotheke Magdeburg";
if(t_refs=="kukaform.htm") g_title="Website der Ost-Apotheke Magdeburg - Kundenkarte Onlineantrag";
if(t_refs=="kundenkarte.htm") g_title="Website der Ost-Apotheke Magdeburg - Kundenkarte";
if(t_refs=="kundenzeitung.htm") g_title="Website der Ost-Apotheke Magdeburg - Kundenzeitungen";
if(t_refs=="mitarbeiter.htm") g_title="Website der Ost-Apotheke Magdeburg - Die Mitarbeiter stellen sich vor";
if(t_refs=="NotdF_in.htm") g_title="Website der Ost-Apotheke Magdeburg - Notdienst der Apotheken in Magdeburg";
if(t_refs=="notdienst.htm") g_title="Website der Ost-Apotheke Magdeburg - Notdienst der Apotheken in Magdeburg";
if(t_refs=="service.htm") g_title="Website der Ost-Apotheke Magdeburg - Die Serviceleistungen";
if(t_refs=="suche_inl.htm") g_title="Website der Ost-Apotheke Magdeburg - Suchformular";
if(t_refs=="uebersicht.htm") g_title="Website der Ost-Apotheke Magdeburg - Seitenübersicht";

//alert(g_title)
}

var a_npic=new Array;
a_npic[2]="nav2";
a_npic[3]="nav3";
a_npic[4]="nav4";
a_npic[5]="nav5";
a_npic[6]="nav6";
a_npic[7]="nav7";
a_npic[8]="nav8";
a_npic[9]="nav9";
a_npic[10]="nav10";
a_npic[11]="nav11";
a_npic[12]="nav12";
a_npic[13]="nav13"
a_npic[14]="nav14"
a_npic[15]="nav15"
var v_veranst;
v_veranst="<font size='2' face='Arial''> 10. - 15. Mai 2004 Aktionswoche Homöopathie</font>"

var ob1t="";

var plus_ref="http://aplus.klaxmedia.de/"
//ob1t+="<table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#006600'><tr><td>"
ob1t+="<table width=150 height=150 border='0' cellpadding='3' cellspacing='0' style='border-collapse: collapse'"
ob1t+="<tr>"
ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' href='aplus.htm'>Was heißt A-plus?</a></font></td>"
ob1t+="</tr>"
ob1t+="<tr>"
ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' href='arzneiinfo.htm'>Arznei-Info Telefon<br clear='left'>18.00 - 23.00 Uhr</a></font></td>"
ob1t+="</tr>"
ob1t+="<tr>"
ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' target='_new' href='javascript:rezept();'>Arzneimittelvorbestellung</a></font></td>"
ob1t+="</tr>"
ob1t+="<tr>"
ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' href='gesundheitsinfo.htm'>Informationsbroschüren</a></font></td>"
ob1t+="</tr>"
ob1t+="<tr>"
ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' target='_blank' href='" + plus_ref + "a-plus-aktuell.html'>Mitmach-Aktionen</a></font></td>"
ob1t+="</tr>"
ob1t+="<tr>"
ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' target='_blank' href='" + plus_ref + "a-plus-aktuell/veranstaltungen.html'>Veranstaltungen</a></font></td>"
ob1t+="</tr>"
ob1t+="<tr>"
ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' target='_new' href='kundenzeitung.htm'>Kundenzeitungen</a></font></td>"
ob1t+="</tr>"
//ob1t+="<tr>"
//ob1t+="<td width='100%'><font size=2 color=#006600 face=Arial><a class='gruen' href='javascript:ruf_books();'>Büchersortiment</a></font></td>"
//ob1t+="</tr>"
ob1t+="</table>"
//ob1t+="</td></tr></table>";

function watch_resize()
{
var gapx2N;
var v_avhoeheN;
if(navigator.appName!="Netscape")
    {v_avhoeheN=document.all.b_act.offsetHeight;
    ap_x=document.all.b_act.offsetWidth;
     ap_x=ap_x-800;
     ap_x=ap_x/2;
     gapx2N=parseInt(ap_x);
     ap_x=ap_x+680;
     ap_x=parseInt(ap_x);
     //alert(t_act);
     };


if(navigator.appName=="Netscape")
  {
  v_avhoeheN=window.innerHeight;
  ap_x=window.innerWidth;
  ap_x=ap_x-800;
  ap_x=ap_x/2;
  gapx2N=parseInt(ap_x);
  ap_x=ap_x+680;
  ap_x=parseInt(ap_x);
  gapx=ap_x;
  };

alert("Xold:" + gapx2 + " Yold="+ v_avhoehe +  "Xnew:" + gapx2N + "Ynew="+ v_avhoeheN);
}

//window.captureEvents(Event.RESIZE);
window.onresize = watch_resize_rel;

function watch_resize_rel()
{
//window.location.href=self.location.href;
}


//FEIERTAG setzen
var v_feiertag;
var osD = new Array(); //Ostern Start Tag
osD[2006]=14;
osD[2007]=10;
osD[2008]=23;
osD[2009]=14;
osD[2010]=6;
osD[2011]=26;
osD[2012]=10;
osD[2013]=2;
osD[2014]=22;
osD[2015]=7;
osD[2016]=27;
osD[2017]=18;
osD[2018]=3;
osD[2019]=23;

var osM = new Array(); //Ostern Start Monat
osM[2006]=3;
osM[2007]=3;
osM[2008]=2;
osM[2009]=3;
osM[2010]=3;
osM[2011]=3;
osM[2012]=3;
osM[2013]=3;
osM[2014]=3;
osM[2015]=3;
osM[2016]=2;
osM[2017]=3;
osM[2018]=3;
osM[2019]=3;

var oeD = new Array(); //Ostern Ende Tag-Ostermontag
oeD[2006]=17
oeD[2007]=10;
oeD[2008]=25;
oeD[2009]=14;
oeD[2010]=6;
oeD[2011]=26;
oeD[2012]=10;
oeD[2013]=2;
oeD[2014]=22;
oeD[2015]=7;
oeD[2016]=29;
oeD[2017]=18;
oeD[2018]=3;
oeD[2019]=23;

var oeM = new Array(); //Ostern Ende Monat
oeM[2006]=4;
oeM[2007]=4;
oeM[2008]=3;
oeM[2009]=4;
oeM[2010]=4;
oeM[2011]=4;
oeM[2012]=4;
oeM[2013]=4;
oeM[2014]=4;
oeM[2015]=4;
oeM[2016]=3;
oeM[2017]=4;
oeM[2018]=4;
oeM[2019]=4;



function feiertag_kalender()
{
var w_aktuell= new Date();
var wjahr=w_aktuell.getFullYear();
var wmon=w_aktuell.getMonth() + 1;
var wtag=w_aktuell.getDate()

var ueber_monat;

for(l=1;l<=20;l++)
{
if(l==8 || l==12 || l==16 || l==20)
  ueber_monat=30
else
  ueber_monat=29;
}

if(wmon==3)
   ueber_monat=32;
if(wmon==4)
   ueber_monat=31;
if(wmon==5)
   ueber_monat=32;

var ende_ostern;

ende_ostern= oeD[wjahr];

if(wmon==osM[wjahr] && wtag>=osD[wjahr] && wtag<ueber_monat)
    v_feiertag="ostern";

if(wmon==oeM[wjahr] && wtag>=1 && wtag<ende_ostern)
    v_feiertag="ostern";

if(wmon==12)
   v_feiertag="weihnacht";

//Test
//v_feiertag="weihnacht";
//v_feiertag="ostern";
//alert("hallo")
hausapos_hoch();
}

function hausapos_hoch()
{
for (var k=0; k<document.getElementsByTagName('iframe').length; k++)
{
if(document.getElementsByTagName('iframe')[k].getAttribute('id')=="hausapos")
   document.getElementsByTagName('iframe')[k].setAttribute('height',460);
}


}

function weihnachten()
{
feiertag_kalender();
//wjahr=2005;
if(v_feiertag=="weihnacht" ||  v_feiertag=="ostern")
{
 for(var jp = 0; jp < document.images.length; jp++)
 {
 r_img=document.getElementsByTagName('img')[jp].getAttribute('id');
 if(r_img=="gruss" && v_feiertag=="ostern")
         {document.getElementsByTagName("img")[jp].setAttribute('src', "images/banner_ostern.gif");
          document.getElementsByTagName("img")[jp].setAttribute('height', 104);
          document.getElementsByTagName("img")[jp].setAttribute('width', 104);
          };
 if(r_img=="gruss" && v_feiertag=="weihnacht")
         {document.getElementsByTagName("img")[jp].setAttribute('src', "images/banner_weihnacht.gif");
          document.getElementsByTagName("img")[jp].setAttribute('height', 104);
          document.getElementsByTagName("img")[jp].setAttribute('width', 104);
          };
 }
};
 //alert(controll);
}

function sh_pop1()
{
var ap_y=60;
obj.clipTo(0,150,172,0,1)
my_x=ap_xhalb+550;
if(ap_x<=0)
ap_x=550;

obj.moveIt(my_x,ap_y);

obj.bg('#FFFFEE');
obj.writeIt(ob1t)
obj.showIt();
//alert(ap_xhalb + ";" + ap_y)

}


function hi_pop1()
{
obj.hideIt();
}

function rezept()
{
top.window.name="http://www.apotheke2u.com/Ost-Apotheke--39114--Magdeburg/rezept-einloesen/index.html";
document.location.href="aposhop.htm";
}