document.write("<script language=\"JavaScript1.2\" src=\"http://www.apoforms.inttex.de/apothema/thema_plus.js\"></script>")

var t_text;
var m_text;
var short_text;
var brl="<br clear='left'>"
var mo_thema;
var mo_aktion;
var mo_info;
var mo_praesent;
var mo_woche;
var mo_zeit;
var short_text_vor
var text_vor_thema;
var text_vor;
var mit_vorschau;
//Neu für vorschau
var v_aktion;
var mon_vor_eins, leer_test;
var mon_vor_zwei=false
var link_vor_eins, link_vor_zwei;
var v_frame_nummer
var v_backlink;
var vor_info;
//src="infoplus_IFR.htm"

var g_apo="Elfen-Apotheke"

var frame_hoch=640;

function f_start_hoehe()
{
frame_nummer();
if(top.window.S_VERZ_site!=19)
//alert("starthöhe");
parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);

}

function frame_nummer()
{
var v_check;

for(var i=0; i< parent.frames.document.getElementsByTagName('iframe').length; i ++)
{
v_check=parent.frames.document.getElementsByTagName('iframe')[i].getAttribute('src');
v_check=v_check.substr(v_check.length-16,v_check.length)
// alert(v_check);
if(v_check=="infoplus_IFR.htm" || v_check=="nfoplus1_IFR.htm" || v_check=="nfoplus2_IFR.htm")
  v_frame_nummer=i;
}

}

function f_aktuelles_thema()
{
frame_nummer();

document.location.href="infoplus_IFR.htm"
if(top.window.S_VERZ_site!=21)
parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',600);

}

function f_neues_thema_eins()
{
frame_nummer();

document.location.href="infoplus1_IFR.htm"
if(top.window.S_VERZ_site!=21)
parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',600);
}

function f_neues_thema_zwei()
{
frame_nummer();

document.location.href="infoplus2_IFR.htm"
if(top.window.S_VERZ_site!=21)
parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',400);
}
//ende neu für Vorschau

function setze_t_text(verwendung)
{
var verwendung;
var aktuell = new Date();
var start_mon=aktuell.getMonth() + 1;
var start_Y=aktuell.getFullYear();
var ende_aktion=aktuell.getDate()

//test
//ende_aktion=15;
//start_mon=4
//start_Y=2009



if(verwendung==1) start_mon=start_mon+1;
mon_vor_eins=start_mon;
if(start_mon==13 && verwendung==1)
{
start_Y=aktuell.getFullYear() +1 ;
start_mon=1;
}
if(verwendung==2) start_mon=start_mon+2;

//alert(verwendung, " ", start_mon)

var w_tag=aktuell.getDate()
link_vor_eins=start_mon+1;
link_vor_zwei=link_vor_eins+1;

//var start_mon=aktuell.getMonth() + 1;



var short_year, short_year_jw;
var day_end;
var mo_str;

short_year=String(start_Y);


if(start_mon==12)
{
short_year_jw=String(start_Y+1);
//alert(short_year_jw);
short_year_jw=short_year_jw.substring(2,4);
}
short_year=short_year.substring(2,4);

if(start_mon==12) {link_vor_eins=1;link_vor_zwei=link_vor_eins+1;};
if(start_mon==11) {link_vor_eins=12;link_vor_zwei=1;};

belege_monate(start_mon-1);
if(start_mon==1)
{short_year_b=String(aktuell.getFullYear());
short_year_b=short_year_b.substring(2,4);
}
else
{short_year_b=short_year;};
v_backlink="Monatsthema " + g_link + " " +  short_year_b;
v_backlink="<span onMouseover='top.window.no_g_und_s();' class='norm_link' onClick='f_aktuelles_thema();'>" + v_backlink + "</span>"
dat_end=day_end + mo_str + start_Y;
belege_monate(link_vor_eins);
if(start_mon==12)
{
link_vor_eins= "&nbsp;Vorschau " + g_link + " " +  short_year_jw +" ";
}
else
{
link_vor_eins= "&nbsp;Vorschau " + g_link + " " +  short_year +" ";
};

link_vor_eins="<span style='background-color: #F3FAF3; '><span class='norm'>" + link_vor_eins + "</span></span>" + brl;
link_vor_zwei="<span class='norm'>" + link_vor_zwei + "</span>" + brl;

//link_vor_eins=""
//link_vor_zwei=""


var v_MD=1;
if(v_MD==0) v_ergaenzung=" und den Magdeburger A+Apotheken"
else
v_ergaenzung="";

//alert(start_mon)
switch(start_mon)
{
case 1:
leer_test=mo_aktion;
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]
mo_woche=brl +  mo_woche;

break;

case 2:
leer_test=mo_aktion;
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]
mo_woche=brl +  mo_woche;

break;

case 3:
leer_test=mo_aktion;
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]
mo_woche=brl +  mo_woche;

break;
case 4:
vor_info="";

        v_aktion="";
        v_aktion_a="";

        m_text=plus_m_text[start_mon]

        day_end=plus_day_end[start_mon];
        mo_str="." + plus_mo_str[start_mon] + "."
        mo_thema=plus_mo_thema[start_mon];
        mo_new=plus_mo_new[start_mon];
        mo_info=plus_mo_info[start_mon];
        mo_praesent=plus_mo_praesent[start_mon]
        mo_woche=plus_mo_woche[start_mon];
        mo_zeit="01.- " + mo_str + "."

        mo_aktion=plus_mo_aktion[start_mon]


        if(verwendung==0)
        mo_woche=brl +  mo_woche;
        //mo_zeit="01.- 30."
        //mo_aktion="Lassen Sie sich beraten.";

        mo_link_ref="gesund-u-schlank"
        mo_brosch="Gesund <br> und schlank"
        mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
        leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
case 5:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;

case 6:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
case 7:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
case 8:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
case 9:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
case 10:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
case 11:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
case 12:
vor_info="";
v_aktion="";
v_aktion_a="";
m_text=plus_m_text[start_mon]
day_end=plus_day_end[start_mon];
mo_str="." + plus_mo_str[start_mon] + "."
mo_thema=plus_mo_thema[start_mon];
mo_new=plus_mo_new[start_mon];
mo_info=plus_mo_info[start_mon];
mo_praesent=plus_mo_praesent[start_mon]
mo_woche=plus_mo_woche[start_mon];
mo_zeit="01.- " + mo_str + "."
mo_aktion=plus_mo_aktion[start_mon]

if(verwendung==0)
mo_woche=brl +  mo_woche;
mo_link_ref="gesund-u-schlank"
mo_brosch="Gesund <br> und schlank"
mo_link="<a target='_blank' href='http://apoforms.inttex.de/a-plus-gesundheits-infos/indikationsbroschueren/" + mo_link_ref + ".html'><font size='1' face='Arial'><span style='letter-spacing: 3'>" + mo_brosch + "</span></font></a>";
leer_test=mo_aktion;
        frame_hoch=580;
        frame_nummer();
        if(top.window.S_VERZ_site!=21)
           {
           //alert("hallo Momnat")
           parent.frames.document.getElementsByTagName('iframe')[v_frame_nummer].setAttribute('height',frame_hoch);
           }

break;
}
if (m_text.substring(0,3) =="Mai")
    short_text= m_text.substring(0,3) + " "  + short_year;
else
    short_text= m_text.substring(0,3) + ". "  + short_year;
m_text= m_text + " " + start_Y;
}

var g_link;
function belege_monate(link_mon)
{
switch(link_mon)
       {
       case 1: g_link="Jan."; break;
       case 2: g_link="Feb."; break;
       case 3: g_link="Mrz."; break;
       case 4: g_link="Apr."; break;
       case 5: g_link="Mai"; break;
       case 6: g_link="Jun."; break;
       case 7: g_link="Jul."; break;
       case 8: g_link="Aug."; break;
       case 9: g_link="Sep."; break;
       case 10: g_link="Okt."; break;
       case 11: g_link="Nov."; break;
       case 12: g_link="Dez."; break;
       case 0: g_link="Dez."; break;
       }
}
