

//****Navagation******************************************



var mbW=250;

var mbA,mbT,mbTf,mbSf;

var mbR = [];



function mbSet(m,c)

{

	if (document.getElementById&&document.createElement)

	{

		var m=document.getElementById(m);

        m.className=c;

        mbR[mbR.length] = m;

        var i;



        e=m.getElementsByTagName('a');

        if (!mbTf) mbTf=new Function('mbHT();');

        if (!mbSf) mbSf=new Function('mbS(this);');

        for (i=0;i<e.length;i++)

        {

			e[i].onmouseout=e[i].onblur=mbTf;

			e[i].onmouseover=e[i].onfocus=mbSf;

        }



        m=m.getElementsByTagName('ul');

        for (i=0;i<m.length;i++)

        {

			mbH(mbL(m[i]));

        }

	}

}



function mbHA() {

        if (mbA) {

                while (mbA) mbH(mbA);

                mbHE('visible');

        }

}



function mbHT() {

        if (!mbT) mbT=setTimeout('mbHA();', mbW);

}



function mbTC() {

        if (mbT) {

                clearTimeout(mbT);

                mbT=null;

        }

}



function mbS(m) {

        mbTC();

        if (mbA) while (mbA&&m!=mbA&&mbP(m)!=mbA) mbH(mbA);

        else mbHE('hidden');



        if (mbM(m)) {

                mbSH(m,'visible');

                mbA=m;

        }

}



function mbH(m)

{

	if (m==mbA) mbA=mbP(m);

	mbSH(m,'hidden');

	mbT=null;

}



function mbL(m) {

        while (m && m.tagName != 'A') m = m.previousSibling;

        return m;

}



function mbM(l) {

        while (l && l.tagName != 'UL') l = l.nextSibling;

        return l;

}



function mbP(m) {

        var p = m.parentNode.parentNode;

        if (p.tagName == 'UL') {

                var i = 0;

                while (i < mbR.length) {

                        if (mbR[i] == p) return null;

                        i++;

                }

        } else {

                return null;

        }

        return mbL(p);

}



function mbSH(m,v) {

        m.className=v;

        mbM(m).style.visibility=v;

}



function mbHE(v) {

        mbHEV(v,document.getElementsByTagName('select'));

}



function mbHEV(v,e) {

        for (var i=0;i<e.length;i++) e[i].style.visibility=v;

}

//****Scrollbar******************************************


function move()

 {

  chk = document.body.clientWidth + 2;

  if(window.event.x > chk) //Ist Mauszeiger über Scrollbar?

   {

    var sfc = "powderblue";     //scrollbar-face-color

    var ssc = "red";     //scrollbar-shadow-color

    var shc = "blue"; //scrollbar-highlight-color

    var stc = "yellow"; //scrollbar-track-color

    var sac = "green"; //scrollbar-arrow-color



    document.body.style.scrollbarFaceColor = sfc;

    document.body.style.scrollbarShadowColor = ssc;

    document.body.style.scrollbarTrackColor = stc;

    document.body.style.scrollbarHighlightColor = shc;

    document.body.style.scrollbarArrowColor = sac;

   }

  else //wenn Mauszeiger nicht über Scrollbar

   {

    var sfc = "CornflowerBlue"; //scrollbar-face-color

    var ssc = "MediumBlue"; //scrollbar-shadow-color

    var shc = "LightBlue"; //scrollbar-highlight-color

    var stc = "LightCyan"; //scrollbar-track-color

    var sac = "blue";       //scrollbar-arrow-color



    document.body.style.scrollbarFaceColor = sfc;

    document.body.style.scrollbarShadowColor = ssc;

    document.body.style.scrollbarTrackColor = stc;

    document.body.style.scrollbarHighlightColor = shc;

    document.body.style.scrollbarArrowColor = sac;

   }

 }
 
 //****Bildwechsel******************************************
 

var agt = navigator.userAgent.toLowerCase();

var dom = (document.getElementById) ? true : false;

var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;

var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;

var ns4 = (document.layers && !dom) ? true : false;

var ie4 = (document.all && !dom) ? true : false;

var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var is_win  = ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1)) ? true : false;



var maxImages = 1;

var maxImages = 2;

var maxImages = 3;

var maxImages = 4;

var activeImage = 1;



function fnToggle() {

		

	if (is_win && ie5)

	{

		prvImageContainer.filters[0].Apply();

		document.getElementById("prvImage" + activeImage).style.visibility="hidden";

		if (activeImage == maxImages) activeImage=0;

		activeImage++;

		document.getElementById("prvImage" + activeImage).style.visibility="visible";

		prvImageContainer.filters[0].Play();

	} else {

		document.prvImage.src = img[activeImage].src;

		activeImage++;

		if (activeImage > maxImages) activeImage=1;

	}				

}    		



function beginTransitions() {

	timerID = setInterval("fnToggle()", 3000);

}

//****Bildwechsel home******************************************


var maxImages_home = 1;

var maxImages_home = 2;

var maxImages_home = 3;

var activeImage_home = 1;



function fnToggle_home() {

		

	if (is_win && ie5)

	{

		prvImageContainer_home.filters[0].Apply();

		document.getElementById("prvImage_home" + activeImage_home).style.visibility="hidden";

		if (activeImage_home == maxImages_home) activeImage_home=0;

		activeImage_home++;

		document.getElementById("prvImage_home" + activeImage_home).style.visibility="visible";

		prvImageContainer_home.filters[0].Play();

	} else {

		document.prvImage_home.src = img[activeImage_home].src;

		activeImage_home++;

		if (activeImage_home > maxImages_home) activeImage_home=1;

	}				

}    		



function beginTransitions_home() {

	timerID_home = setInterval("fnToggle_home()", 4000);

}

// dummy
function beginTransitions_aktuelles() {

}

//****Laufschrift******************************************
		
function createArr(num) { for(var i = 0; i < num; i++) { this[i] = null } }

function fillArr(tx,me,ti,wa) { this.text = tx;  this.method = me.toLowerCase();  this.ticks = ti;  this.wait = wa }

function block(num,txt,mthod,tcks,wit) { blocks[num] = new fillArr(txt,mthod,tcks,wit) }

function ms(unt) { var sp = "";  for( var i = 1; i <= unt; i++ ) { sp += " " } return(sp) }

function Activate() { if (cblock == max) { cblock = 0;  if (iloop == 0) { loops--;  if (loops == 0) { meth = "0" } else { meth = blocks[cblock].method } } else { meth = blocks[cblock].method } } else { meth = blocks[cblock].method }

if (meth == "0") { document.Active.ASCII.value = end }

if (meth == "display") { Tape = blocks[cblock].text;  Wait = blocks[cblock].wait;  Display() }

if (meth == "display center") { Tape = blocks[cblock].text;  Wait = blocks[cblock].wait;  half = Tape.length / 2;  DisplayC() }

if (meth == "scroll left") { clen = tlen;  Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  tTicks = Ticks * 2;  ScrollL() }

if (meth == "scroll right") { clen = 0 - blocks[cblock].text.length;  Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  tTicks = Ticks * 2;  ScrollR() }

if (meth == "scroll lc") { clen = 0 - blocks[cblock].text.length;  Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  Wait = blocks[cblock].wait;  tTicks = Ticks * 2;  half = Tape.length / 2;  ScrollLC() }

if (meth == "scroll rc") { clen = tlen;  Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  Wait = blocks[cblock].wait;  tTicks = Ticks * 2;  half = Tape.length / 2;  ScrollRC() }

if (meth == "scroll cl") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  tTicks = Ticks * 2;  half = Tape.length / 2;  clen = cent - half;  ScrollCL() }

if (meth == "scroll cr") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  tTicks = Ticks * 2;  half = Tape.length / 2;  clen = cent - half;  ScrollCR() }

if (meth == "slide left") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  Wait = blocks[cblock].wait;  cpos = 0;  clet = Tape.charAt(cpos);  clen = tlen;  cstr = "";  SlideL() }

if (meth == "slide lc") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  Wait = blocks[cblock].wait;  cpos = Tape.length - 1;  clet = Tape.charAt(cpos);  clen = 0;  cstr = "";  half = Tape.length / 2;  iba = cent - half;  ib = ms(iba);  SlideLC() }

if (meth == "slide rc") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  Wait = blocks[cblock].wait;  cpos = 0;  clet = Tape.charAt(cpos);  cstr = "";  half = Tape.length / 2;  clen = cent + half;  fs = ms(cent - half);  SlideRC() }

if (meth == "slide cl") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  cpos = 0;  clet = Tape.charAt(cpos);  cstr = Tape.substring(1,Tape.length);  half = Tape.length / 2;  clen = cent - half;  iba = 0;  ib = ms(iba);  SlideCL() }

if (meth == "slide cr") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  cpos = Tape.length - 1;  clet = Tape.charAt(cpos);  cstr = Tape.substring(0,Tape.length - 1);  half = Tape.length / 2;  clen = 0;  fs = ms(cent - half);  SlideCR() }

if (meth == "slip left") { clen = 0;  Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  SlipL() }

if (meth == "slip right") { clen = 0;  Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  SlipR() }

if (meth == "slip letter") { Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  cpos = Tape.length - 1;  clet = Tape.charAt(cpos);  cstr = Tape.substring(0,Tape.length - 1);  clen = 0;  SlipLet() }

if (meth == "split"){ Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  var iii = Tape.length / 2;  if (iii / 2 != Math.ceil(iii / 2)) { Tape = Tape + " " } hstr1 = Tape.substring(0,Tape.length/2);  hstr2 = Tape.substring(Tape.length/2,Tape.length);  tTicks = Ticks * 2;  clen = cent - hstr1.length;  iba = 0;  ib = ms(iba);  Split() }

if (meth == "merge"){ Tape = blocks[cblock].text;  Ticks = blocks[cblock].ticks;  var iii = Tape.length / 2;  if (iii / 2 != Math.ceil(iii / 2)) { Tape = Tape + " " } hstr1 = Tape.substring(0,Tape.length/2);  hstr2 = Tape.substring(Tape.length/2,Tape.length);  tTicks = Ticks * 2;  clen = 0 - hstr1.length;  iba = tlen;  ib = ms(iba);  Wait = blocks[cblock].wait;  Merge() } }

function Display() { document.Active.ASCII.value = Tape;  cblock++;  timerID = setTimeout("Activate()",Wait) }

function DisplayC() { var temp = cent - half;  ini = ms(temp);  document.Active.ASCII.value = ini + Tape;  cblock++;  timerID = setTimeout("Activate()",Wait) }

function ScrollL() { if (clen >= 0) { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("ScrollL()",Ticks) } else { beg = 0 - clen;  if (beg == Tape.length) { document.Active.ASCII.value = "";  cblock++;  timerID = setTimeout("Activate()",Ticks) } else { tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("ScrollL()",tTicks) } } }

function ScrollR() { if (clen >= 0) { if (clen > tlen) { document.Active.ASCII.value = "";  cblock++;  timerID = setTimeout("Activate()",Ticks) } else { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("ScrollR()",Ticks) } } else { beg = 0 - clen;  tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("ScrollR()",tTicks) } }

function ScrollLC() { if (clen >= 0) { if (cent <= (clen + half)) { cblock++;  timerID = setTimeout("Activate()",Wait) } else { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("ScrollLC()",Ticks) } } else { beg = 0 - clen;  if (cent <= (clen + half)) { cblock++;  timerID = setTimeout("Activate()",Wait) } else { tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("ScrollLC()",tTicks) } } }

function ScrollRC() { if (clen >= 0) { if (cent >= (clen + half)) { cblock++;  timerID = setTimeout("Activate()",Wait) } else { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("ScrollRC()",Ticks) } } else { beg = 0 - clen;  if (cent >= (clen + half)) { cblock++;  timerID = setTimeout("Activate()",Wait) } tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("ScrollRC()",tTicks) } }

function ScrollCL() { if (clen >= 0) { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("ScrollCL()",Ticks) } else { beg = 0 - clen;  if (beg >= Tape.length) { document.Active.ASCII.value = "";  cblock++;  timerID = setTimeout("Activate()",Wait) } else { tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("ScrollCL()",tTicks) } } }

function ScrollCR() { if (clen >= 0) { if (clen > tlen) { document.Active.ASCII.value = "";  cblock++;  timerID = setTimeout("Activate()",Wait) } else { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("ScrollCR()",Ticks) } } else { beg = 0 - clen;  tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("ScrollCR()",tTicks) } }

function SlideL() { if (clen >= 0) { ini = ms(clen);  tickered = cstr + ini + clet;  document.Active.ASCII.value = tickered;  clen -= 3;  timerID = setTimeout("SlideL()",Ticks) } else { document.Active.ASCII.value = cstr + clet;  cstr = document.Active.ASCII.value;  clen = tlen - cstr.length;  cpos++;  clet = Tape.charAt(cpos);  if (clet == " ") { cstr = cstr + " ";  cpos++;  clet = Tape.charAt(cpos) } if (clet == "") { cblock++;  timerID = setTimeout("Activate()",Wait) } else { timerID = setTimeout("SlideL()",Ticks) } } }

function SlideLC() { if (clen <= cent - half) { ini = ms(clen);  tickered = ini + clet + ib + cstr;  document.Active.ASCII.value = tickered;  clen += 3;  iba -= 3;  ib = ms(iba);  timerID = setTimeout("SlideLC()",Ticks) } else { iba = cent - half;  ini = ms(iba);  ib = ms(iba);  document.Active.ASCII.value = ini + clet + cstr;  cstr = clet + cstr;  clen = 0;  cpos--;  if (cpos >= 0) { clet = Tape.charAt(cpos);  if (clet == " ") { cstr = " " + cstr;  cpos--;  clet = Tape.charAt(cpos) } timerID = setTimeout("SlideLC()",Ticks) } else { cblock++;  timerID = setTimeout("Activate()",Wait) } } }

function SlideRC() { if (clen >= 0) { ini = ms(clen);  tickered = fs + cstr + ini + clet;  document.Active.ASCII.value = tickered;  clen -= 3;  timerID = setTimeout("SlideRC()",Ticks) } else { clen = cent + half;  cstr += clet;  document.Active.ASCII.value = fs + cstr;  cpos++;  clet = Tape.charAt(cpos);  if (clet == " ") { cstr = cstr + " ";  cpos++;  clet = Tape.charAt(cpos) } if (clet == "") { document.Active.ASCII.value = fs + Tape;  cblock++;  timerID = setTimeout("Activate()",Wait) } else { timerID = setTimeout("SlideRC()",Ticks) } } }

function SlideCL() { if (clen > 0) { ini = ms(clen);  tickered = ini + clet + ib + cstr;  document.Active.ASCII.value = tickered;  clen -= 3;  iba += 3;  ib = ms(iba);  timerID = setTimeout("SlideCL()",Ticks) } else { iba = 0;  ib = ms(iba);  clen = cent - half;  ini = ms(clen);  document.Active.ASCII.value = ini + cstr;  cstr = cstr.substring(1,Tape.length);  cpos++;  clet = Tape.charAt(cpos);  if (clet == " ") { cstr = cstr.substring(1,Tape.length);  cpos++;  clet = Tape.charAt(cpos) } if (clet == "") { document.Active.ASCII.value = "";  cblock++;  timerID = setTimeout("Activate()",Ticks) } else { timerID = setTimeout("SlideCL()",Ticks) } } }

function SlideCR() { if (clen <= cent + half) { ini = ms(clen);  tickered = fs + cstr + ini + clet;  document.Active.ASCII.value = tickered;  clen += 3;  timerID = setTimeout("SlideCR()",Ticks) } else { clen = 0;  document.Active.ASCII.value = fs + cstr;  cstr = cstr.substring(0,cstr.length - 1);  cpos--;  half += 1;  if (cpos >= 0) {        ;  clet = Tape.charAt(cpos);  if (clet == " ") { cstr = cstr.substring(0,cstr.length - 1);  cpos--;  clet = Tape.charAt(cpos) } timerID = setTimeout("SlideCR()",Ticks) } else { cblock++;  timerID = setTimeout("Activate()",Ticks) } } }

function SlipR() { if (clen >= 0) { if (clen > tlen) { document.Active.ASCII.value = "";  cblock++;  timerID = setTimeout("Activate()",Ticks) } else { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("SlipR()",Ticks) } } else { beg = 0 - clen;  tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen++;  timerID = setTimeout("SlipR()",Ticks) } }

function SlipL() { if (clen >= 0) { ini = ms(clen);  tickered = ini + Tape;  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("SlipL()",Ticks) } else { beg = 0 - clen;  if (beg == Tape.length) { document.Active.ASCII.value = "";  cblock++;  timerID = setTimeout("Activate()",Ticks) } else { tickered = Tape.substring(beg,tlen);  document.Active.ASCII.value = tickered;  clen--;  timerID = setTimeout("SlipL()",Ticks) } } }

function SlipLet() { if (clen < tlen) { ini = ms(clen);  tickered = cstr + ini + clet;  document.Active.ASCII.value = tickered;  clen += 3;  timerID = setTimeout("SlipLet()",Ticks) } else { clen = 0;  cstr = cstr.substring(0,cstr.length - 1);  cpos--;  if (cpos >= 0) {        ;  clet = Tape.charAt(cpos);  if (clet == " ") { cstr = cstr.substring(0,cstr.length - 1);  cpos--;  clet = Tape.charAt(cpos) } timerID = setTimeout("SlipLet()",Ticks) } else { cblock++;  timerID = setTimeout("Activate()",Ticks) } } }

function Split() { if (clen >= 0) { ini = ms(clen);  tickered = ini + hstr1 + ib + hstr2;  document.Active.ASCII.value = tickered;  clen--;  iba += 2;  ib = ms(iba);  timerID = setTimeout("Split()",Ticks) } else { if (clen <= 0 - hstr1.length) { cblock++;  timerID = setTimeout("Activate()",Ticks) } else { beg = 0 - clen;  tickered = hstr1.substring(beg,tlen);  document.Active.ASCII.value = tickered + ib + hstr2;  clen--;  iba += 2;  ib = ms(iba);  timerID = setTimeout("Split()",tTicks) } } }

function Merge() { if (clen >= 0) { if (clen > cent - hstr1.length) { tickered = ini + hstr1 + hstr2;  document.Active.ASCII.value = tickered;  cblock++;  timerID = setTimeout("Activate()",Wait) } else { ini = ms(clen);  tickered = ini + hstr1 + ib + hstr2;  document.Active.ASCII.value = tickered;  clen++;  iba -= 2;  ib = ms(iba);  timerID = setTimeout("Merge()",Ticks) } } else { beg = 0 - clen;  tickered = hstr1.substring(beg,tlen);  document.Active.ASCII.value = tickered + ib + hstr2;  clen++;  iba -= 4;  ib = ms(iba);  timerID = setTimeout("Merge()",tTicks) } }



var max = 18

var blocks = new createArr(max)

var len = 50

var loops = 0

var end = 'Wir haben Welpen !'


/*


block(17,"We are looking forward to new puppies!!","display",0,500)

block(18,"Wir haben Welpen !","display center",0,500)

block(2,"Wir haben Welpen !","scroll left",100,0)

block(3,"We are looking forward to new puppies!!","scroll right",100,0)

block(4,"Wir haben Welpen !","scroll lc",100,500)

block(5,"We are looking forward to new puppies!!","scroll rc",100,500)

block(6,"Wir haben Welpen !","scroll cl",100,0)

block(7,"We are looking forward to new puppies!!","scroll cr",100,0)

block(8,"Wir haben Welpen !","slide left",100,500)

block(9,"We are looking forward to new puppies!!","slide lc",100,500)

block(10,"Wir haben Welpen !","slide rc",100,500)

block(11,"We are looking forward to new puppies!!","slide cl",100,0)

block(12,"Wir haben Welpen !","slide cr",100,0)

block(13,"We are looking forward to new puppies!!","slip left",100,0)

block(14,"Wir haben Welpen !","slip right",100,0)

block(15,"We are looking forward to new puppies!!","slip letter",100,0)

block(16,"Wir haben Welpen !","display",0,500)

block(0,"Wir haben Welpen !","merge",100,1000)

block(1,"We are looking forward to new puppies!!","split",100,0)

*/



block(17,"Wir haben Welpen !!","display",0,500)

block(18,"Wir haben Welpen !!","display center",0,500)

block(2,"Wir haben Welpen !!","scroll left",100,0)

block(3,"Wir haben Welpen !!","scroll right",100,0)

block(4,"Wir haben Welpen !!","scroll lc",100,500)

block(5,"Wir haben Welpen !!","scroll rc",100,500)

block(6,"Wir haben Welpen !!","scroll cl",100,0)

block(7,"Wir haben Welpen !!","scroll cr",100,0)

block(8,"Wir haben Welpen !!","slide left",100,500)

block(9,"Wir haben Welpen !!","slide lc",100,500)

block(10,"Wir haben Welpen !!","slide rc",100,500)

block(11,"Wir haben Welpen !!","slide cl",100,0)

block(12,"Wir haben Welpen !!","slide cr",100,0)

block(13,"Wir haben Welpen !!","slip left",100,0)

block(14,"Wir haben Welpen !!","slip right",100,0)

block(15,"Wir haben Welpen !!","slip letter",100,0)

block(16,"Wir haben Welpen !!","display",0,500)

block(0,"Wir haben Welpen !!","merge",100,1000)

block(1,"Wir haben Welpen !!","split",100,0)




var tlen = 2.4 * len

var cent = tlen / 2.2

var clen = null

var tickered = null

var ini = null

var iloop = 0

if (loops == 0) {iloop = 1}

var cblock = 0

var timerID = null

var beg = null

var clet = null

var cstr = null

var cpos = null

var ib = null

var iba = null

var fs = null

var hstr1 = null

var hstr2 = null

//****Bilder Popup******************************************
		
function OpenNewWindow(Picture,Breit,Hoch)

{

	xsize = Breit+35;// Zusatz für Rand rechts und links

	ysize = Hoch+75; //Zusatz für Rand oben und unten - damit Button angezeit werden kann 

		

	ScreenWidth = screen.width;

	ScreenHeight = screen.height;



	xpos = (ScreenWidth/2)-(xsize/2);

	ypos = (ScreenHeight/2)-(ysize/2);

	

	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");

	NewWindow.document.write ("<html><head><title>BILDANZEIGE");

	NewWindow.document.write ("</title></head>");

	NewWindow.document.write ("<body background='images/h5.jpg' onload='focus()'>");

	//NewWindow.document.write ("<body bgcolor='#cccccc'>");

	NewWindow.document.write ("<table align='center'><tr>");

	NewWindow.document.write ("<td align='center' valign='top'>");

	NewWindow.document.write ("<table border='1' bgcolor='#000000' cellpadding='0' cellspacing='1'><tr><td align='center'>");

	NewWindow.document.write ("<img src=");

	NewWindow.document.write (Picture);

	NewWindow.document.write (">");

	NewWindow.document.write ("</tr></table>");

	NewWindow.document.write ("</td></tr><tr>");

	NewWindow.document.write ("<td align='center' valign='bottom'>");

	NewWindow.document.write ("<br><center><form><input type='button' value='FENSTER SCHLIESSEN' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");

	NewWindow.document.write ("</td></tr></table>");

	NewWindow.document.write ("</form></body></html>");

	NewWindow.document.close();

	NewWindow.resizeTo(xsize,ysize); 

}



//****Blinkender Stern******************************************

function ShowStar()

{

	document.getElementById("star").style.visibility="visible";

	//document.getElementById("star1").style.visibility="visible";

	//document.getElementById("blinkText").style.visibility="hidden";

}



function HideStar()

{

	document.getElementById("star").style.visibility="hidden";

	//document.getElementById("star1").style.visibility="hidden";

	//document.getElementById("blinkText").style.visibility="visible";

}



function BeginBlink() {

	blinktimer1 = setInterval("ShowStar()", 500);

	blinktimer2 = setInterval("HideStar()", 500);

	

	// stern bei welpen ausblenden

	document.getElementById("star1").style.visibility="hidden";

}