
var thisie4;
var thisns4;
var thisns6;

var
   newwin = null;


function go(picname)
{

if (newwin != null)  { newwin.close(); newwin = null; }

myImage = new Image();
myImage.src = picname;
x = myImage.width+50;
y = myImage.height+50;

newwin = window.open("","moving","height="+y+",width="+x+",scroll=no,scrolling=no");
newwin.moveTo((screen.width / 2) - (x/ 2),(screen.height / 2) - (y / 2));
newwin.document.write ('<center on><image src="'+picname+'">');

newwin.focus();
}


function e_type() {
thisie4 = (document.all) ? true : false;
thisns4 = (document.layers) ? true : false;
thisns6 = (document.getElementById && !document.all) ? true : false;
}

function getCookie(Name) {
var search = Name + "="
if (document.cookie.length > 0) {                      // if there are any cookies
   offset = document.cookie.indexOf(search)
   if (offset != -1) {                                 // if cookie exists
      offset += search.length                          // set index of beginning of value
      end = document.cookie.indexOf(";", offset)       // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length
//      alert('after read '+unescape(document.cookie.substring(offset, end)))
      return unescape(document.cookie.substring(offset, end))
      }
   }
}

// Sets cookie values. Expiration date is optional
//
function setCookie(name, value, expire) {
document.cookie = name + "=" + escape(value)
+ ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}

function register(visitedpages) {
var today = new Date()
var expires = new Date()
expires.setTime(today.getTime() + 1000*60*60*24*365)
setCookie("VisitedPages", visitedpages, expires)
}

function pd (datpar) {
Xmm=datpar.getMonth();
Xdd=datpar.getDate();
Xmm++;
datestr=datpar.getYear();

//alert ('ie4 ' + thisie4 + ' , ns4 ' + thisns4 + ' , ns6 ' + thisns6);

if (datestr<2000) {datestr=datestr+1900;}
if (datestr<2000) {alert('Falsches Datum erkannt '+datestr)};
datestr+=((Xmm<10) ? "/0" : "/") + Xmm;
datestr+=((Xdd<10) ? "/0" : "/") + Xdd;
return (datestr);
}

function pgtitle (br800t, br1024t, hdr, br800b, br1024b) {

if (parent.ScrnW<900) {                                  // 800 x 600
   if (parent.myns4) {br800t--}                    // ns4 special to conserve vertical space
   for(i=1;i<=br800t;i++)  document.write('<br>');

   if(hdr>'') {
//      document.write('<div style="{margin-top=20; text-align=center; margin-right=90}">');
      document.write('<h4>');
      document.write(hdr);
      document.write('</h4><!--/div-->');
      }
   for(i=1;i<=br800b;i++)  document.write('<br>');
   }

else {
   if (parent.myns4) {br1024t--}                    // ns4 special to conserve vertical space
   for(i=1;i<=br1024t;i++) document.write('<br>');
   if(hdr>'') {                                           // 1024 x 768
//      document.write('<div style="{margin-top=20; text-align=center; margin-right=120}">');
      document.write('<h3>');
      document.write(hdr);
      document.write('</h3><!--/div-->');
      }
   for(i=1;i<=br1024b;i++) document.write('<br>');
   }

(parent.ScrnW<900)?document.write('<div style="{font-weight:400}">'):document.write('');
}

function da (a) {
alert ('"'+a+'"');
}

function jsaccess0(pg) {}
function jsaccess1(pg) {temp = new Date(); res = pd (temp); parent.Visited1[pg] = res; Coowrite(); }
function jsaccess2(pg) {temp = new Date(); res = pd (temp); parent.Visited2[pg] = res; Coowrite(); }
function jsaccess3(pg) {temp = new Date(); res = pd (temp); parent.Visited3[pg] = res; Coowrite(); }
function jsaccess4(pg) {temp = new Date(); res = pd (temp); parent.Visited4[pg] = res; Coowrite(); }
function jsaccess5(pg) {temp = new Date(); res = pd (temp); parent.Visited5[pg] = res; Coowrite(); }
function jsaccess6(pg) {temp = new Date(); res = pd (temp); parent.Visited6[pg] = res; Coowrite(); }
function jsaccess7(pg) {temp = new Date(); res = pd (temp); parent.Visited7[pg] = res; Coowrite(); }
function jsaccess8(pg) {temp = new Date(); res = pd (temp); parent.Visited8[pg] = res; Coowrite(); }
function jsaccess9(pg) {temp = new Date(); res = pd (temp); parent.Visited9[pg] = res; Coowrite(); }


function Coowrite() {
var CookieBuf = "";
for (i=0; i<1; i++) {   CookieBuf= CookieBuf+ ("1_"+i) + " "+ parent.Visited1 [i] + "  ";}
for (i=0; i<6; i++) {   CookieBuf= CookieBuf+ ("2_"+i) + " "+ parent.Visited2 [i] + "  ";}
for (i=0; i<4; i++) {   CookieBuf= CookieBuf+ ("3_"+i) + " "+ parent.Visited3 [i] + "  ";}
for (i=0; i<1; i++) {   CookieBuf= CookieBuf+ ("4_"+i) + " "+ parent.Visited4 [i] + "  ";}
for (i=0; i<6; i++) {   CookieBuf= CookieBuf+ ("5_"+i) + " "+ parent.Visited5 [i] + "  ";}
for (i=0; i<7; i++) {   CookieBuf= CookieBuf+ ("6_"+i) + " "+ parent.Visited6 [i] + "  ";}
for (i=0; i<5; i++) {   CookieBuf= CookieBuf+ ("7_"+i) + " "+ parent.Visited7 [i] + "  ";}
for (i=0; i<7; i++) {   CookieBuf= CookieBuf+ ("8_"+i) + " "+ parent.Visited8 [i] + "  ";}
for (i=0; i<1; i++) {   CookieBuf= CookieBuf+ ("9_"+i) + " "+ parent.Visited9 [i] + "  ";}

parent.Coocount = CookieBuf;
// alert('before rewrite '+parent.Coocount);
register(parent.Coocount);
}


