eval(function(p,a,c,k,e,r){
    e=function(c){
        return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))
    };if(!''.replace(/^/,String)){
        while(c--)r[e(c)]=k[c]||e(c);k=[function(e){
            return r[e]
        }];e=function(){
            return'\\w+'
        };c=1
    };while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p
}('8 q(f,e,m){8 12(){4 b="";3(u m==\'8\'){m=m()}3(E.Q&&E.1k&&E.1k.1h){b=\'<1M 1F="1C/x-1s-18" \';3(l.w){G(l,{R:l.w})}F(4 a B l){3(l[a]!==z){b+=[a]+\'="\'+l[a]+\'"\\n\\t\'}}3(m){b+=\'1m=\\\'\'+1d(m)+\'\\\'\'}b+=\'/>\'}y{b=\'<D 2A="2x:2s-2q-2n-2k-2i" \';b+=\'U="\'+l.U+\'" N="\'+l.N+\'"\';3(!l.w&&M.28){l.w="26"+(""+25.23()).1n(5)}3(l.w){b+=\' w="\'+l.w+\'"\'}b+=\'>\';b+=\'\\n\\t<11 R="1W" Y="\'+l.H+\'" />\';l.w=l.H=l.U=l.N=z;F(4 k B l){3(l[k]!==z){b+=\'\\n\\t<11 R="\'+k+\'" Y="\'+l[k]+\'" />\'}}3(m){b+=\'\\n\\t<11 R="1m" Y=\\\'\'+1d(m)+\'\\\' />\'}b+="</D>";3(p){1Q(b)}}9 b}8 1f(d){4 c=1I(8(){4 a=M;4 b=a.Z(d);3(b){q(b,e,m);1E(c)}y 3(a&&a.2H&&a.Z&&a.2D){1E(c)}},13);9 1B}8 G(b,a){3(a){F(O B a){3(a.16(O)){b[O]=a[O]}}}}4 l={H:\'#\',U:\'1x%\',N:\'1x%\',A:z,V:z,1b:z,1a:1t,2o:\'#2m\',2l:1B,2j:\'1q\',2h:\'2g\',1F:\'1C/x-1s-18\',1p:\'2d://2c.2b.2a/29/27\'};3(u e==\'15\'){e={H:e}}G(l,e);4 h=q.K();4 g=l.A;4 o=l.1b;4 p=l.1a;3(u f==\'15\'){4 n=M.Z(f);3(n){f=n}y{9 1f(f)}}3(!f){9}3(!g||q.14(g)){l.V=l.A=l.1b=l.1a=z;f.I=12();9 f.21}y 3(l.V){4 j=l.V.1Z(l,q.K(),m);3(j){f.I=j}}y 3(g&&o&&q.14([6,1Y])){G(l,{H:o});m={1X:1V.1j,1U:\'1T\',1S:M.1R};f.I=12()}y{3(f.I.v(/\\s/g,\'\')!==\'\'){}y{f.I="<1i>X A "+g+" 1P 1O 1g 1N</1i>"+"<1l>"+(h[0]>0?"1L A 1g "+h:"1K 1J 20 18 1H 22")+"</1l>"+"<p>1G 24 A 2J <a 1j=\'"+l.1p+"\'>2I</a></p>"}}8 1d(a){4 b="";F(4 c B a){3(a[c]){b+=[c]+\'=\'+W(a[c])+\'&\'}}9 b.1n(0,b.1h-1)}8 W(b){2C(1D(b)){T\'15\':9\'"\'+b.v(L 2B(\'(["\\\\\\\\])\',\'g\'),\'\\\\$1\')+\'"\';T\'1A\':9\'[\'+1z(b,8(a){9 W(a)}).1o(\',\')+\']\';T\'8\':9\'"8()"\';T\'D\':4 c=[];F(4 d B b){3(b.16(d)){c.1y(\'"\'+d+\'":\'+W(b[d]))}}9\'{\'+c.1o(\',\')+\'}\'}9 2y(b).v(/\\s/g," ").v(/\\\'/g,"\\"")}8 1D(a){3(a===z||a===19){9 1t}4 b=u a;9(b==\'D\'&&a.1y)?\'1A\':b}3(17.1w){17.1w("2w",8(){2v=8(){};2t=8(){}})}8 1z(c,a){4 b=[];F(4 i B c){3(c.16(i)){b[i]=a(c[i])}}9 b}9 f}3(u 1v==\'8\'){(8($){$.2r.G({q:8(b,a){9 1u.2p(8(){q(1u,b,a)})}})})(1v)}q=q||{};q.K=8(){4 d=[0,0];3(E.Q&&u E.Q["1r X"]=="D"){4 f=E.Q["1r X"].2u;3(u f!="19"){f=f.v(/^.*\\s+(\\S+\\s+\\S+$)/,"$1");4 c=J(f.v(/^(.*)\\..*$/,"$1"),10);4 a=/r/.2z(f)?J(f.v(/^.*r(.*)$/,"$1"),10):0;d=[c,a]}}y 3(17.P){1e{4 b=L P("C.C.7")}1c(e){1e{b=L P("C.C.6");d=[6,0];b.2E="1q"}1c(2F){3(d[0]==6){9}}1e{b=L P("C.C")}1c(2G){}}3(u b=="D"){f=b.2f("$A");3(u f!="19"){f=f.v(/^\\S+\\s+(.*)$/,"$1").2e(",");d=[J(f[0],10),J(f[2],10)]}}}9 d};q.14=8(c){4 a=q.K();4 b=(a[0]>c[0])||(a[0]==c[0]&&a[1]>=c[1]);9 b};',62,170,'|||if|var||||function|return|||||||||||||||||flashembed||||typeof|replace|id||else|null|version|in|ShockwaveFlash|object|navigator|for|extend|src|innerHTML|parseInt|getVersion|new|document|height|key|ActiveXObject|plugins|name||case|width|onFail|asString|Flash|value|getElementById||param|getHTML||isSupported|string|hasOwnProperty|window|flash|undefined|debug|expressInstall|catch|concatVars|try|init|is|length|h2|href|mimeTypes|h3|flashvars|substring|join|pluginspage|always|Shockwave|shockwave|false|this|jQuery|attachEvent|100|push|map|array|true|application|typeOf|clearInterval|type|Download|plugin|setInterval|have|You|Your|embed|required|greater|or|alert|title|MMdoctitle|PlugIn|MMplayerType|location|movie|MMredirectURL|65|call|no|firstChild|installed|random|latest|Math|_|getflashplayer|all|go|com|adobe|www|http|split|GetVariable|high|quality|444553540000|allowscriptaccess|96B8|allowfullscreen|ffffff|11cf|bgcolor|each|AE6D|fn|D27CDB6E|__flash_savedUnloadHandler|description|__flash_unloadHandler|onbeforeunload|clsid|String|test|classid|RegExp|switch|body|AllowScriptAccess|ee|eee|getElementsByTagName|here|from'.split('|'),0,{}));

function popupContent(w,id,tit){
    if(typeof(id) != 'undefined' && !id.match(/^default$/gi)){
        darkScreen(true, function(){
            Dialog.create('popup_window','',
            {
                width:w+20,
                height:480,
                title:((typeof(tit)!='undefined')?tit:'Perimeter Church'),
                closebutton:true,
                content: j('#'+id).html()
            });
            j('#popup_window_cont').css({
                overflow: '',
                height: '',
                width: ''
            });
        });
    }
}

function popupVideo(w,id){
    darkScreen(true, function(){
        Dialog.create('video_window','',
        {
            width:w+20,
            height:480,
            title:'',
            closebutton:true,
            content: j('#'+id).html()
        });
        j('#video_window_cont').css({
            overflow: '',
            height: '',
            width: ''
        });
        reloc();
        if (typeof window.addEventListener != 'undefined')
        {
            window.addEventListener("resize", reloc, false);
        }
        else if (typeof document.addEventListener != 'undefined')
        {
            document.addEventListener("resize", reloc, false);
        }
        else if (typeof window.attachEvent != 'undefined')
        {
            window.attachEvent("onresize", reloc);
        }
        j('#video_window_handle').css({
            backgroundColor: '#4E4E4E',
            border:'0!important'
        });
    }
    );
}

function reloc(){
    var leftPosition = (j(window).width() - j('#video_window').width()) / 2;
    var posY = (typeof(document.documentElement) != 'undefined' && document.documentElement.scrollTop) ? document.documentElement.scrollTop : window.scrollY;
    try{
        j('#video_window').css({
            position: 'absolute',
            left: leftPosition,
            top:posY+10,
            backgroundColor: '#000',
            border:'0!important'
        });
        if(j('#darkenScreenObject')){
            j('#darkenScreenObject').css({
                width:j(window).width()+'px'
            });
        }
    }catch(err){}
}

function showVideo(videoFile, w, h, autoStart, inline,ref){
    var id = 'video'+Math.ceil(Math.random()*100*100000);
    ref = (typeof(ref) != 'undefined') ? ref : id;
    var css = (typeof(inline) !== 'undefined' && inline.length > 0) ? 'display:none' : 'display:block';
    document.write('<div id="'+id+'" style="'+css+'"></div>');
    if(typeof(inline) != 'undefined' && inline.length > 0){
        document.write('<a class="videoLink" id="link'+ref+'" alt="Play video" title="Play video" href="javascript:void(popupVideo('+w+',\''+id+'\'))">'+inline+'</a>');
    }
    var isUTube = (videoFile.match(/^[a-z0-9]+$/gi)) ? true : false;
    var isMov = (videoFile.match(/\.mov/gi)) ? true : false;
    var mov = '<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="'+w+'" height="'+h+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">';
    mov += '<param name="src" value="'+videoFile+'">';
    mov += '<param name="autoplay" value="'+autoStart+'">';
    mov += '<param name="loop" value="false">';
    mov += '<param name="controller" value="true">';
    mov += '<param name="type" value="video/quicktime" height="'+h+'" width="'+w+'">';
    mov += '<embed src="'+videoFile+'" width="'+w+'" height="'+h+'" autoplay="'+autoStart+'" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/download/"></embed>';
    mov += '</object>';
    var youtube = '<object width="'+w+'" height="'+h+'"><param name="movie" value="http://www.youtube.com/v/'+videoFile+'&hl=en&fs=1&rel=0&autoplay='+((autoStart)?1:0)+'"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'+videoFile+'&hl=en&fs=1&rel=0&autoplay='+((autoStart)?1:0)+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+w+'" height="'+h+'"></embed></object>';
    var embed = '<embed width="'+w+'" height="'+h+'" flashvars=\'config={"autoPlay":'+autoStart+',"playList":[{"url":"'+videoFile+'","overlayId":"play"}],"initialScale":"fill","useNativeFullScreen":true}\' pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" quality="high" allowscriptaccess="always" allowfullscreen="true" bgcolor="#ffffff" src="/flowplayer/FlowPlayerDark.swf"/>';
    document.getElementById(id).innerHTML = (isUTube) ? youtube : ((isMov) ? mov : embed);
}


function toggleView(pid,ref) {
    var el = document.getElementById(pid);
    el.style.display = (el.style.display != 'none' ? 'none' : '' );
    var show = (el.style.display != 'none' ? false : true );
    var t = (show) ? ref.innerHTML.replace(/(.*)[\+\-]{1}$/gi,'$1') + ' +' :ref.innerHTML.replace(/(.*)[\+\-]{1}$/gi,'$1') + ' -';
    ref.innerHTML = t;
    ref.setAttribute('class','link');
}

function toggleViewInit(){
    j('body *').filter(function(ix,el){
        return j(this).attr('onclick');
    }).each(function(i,e){
        var on = j(e).attr('onclick').toString();
        if(on.match(/toggleview/gi)){
            var rep = on.replace(/[\s\n]{2,}/gi,'').replace(/^[^\"\']+[\"\']{1}([^\"\']+)[\"\']{1}[^\"\']+$/gi, '$1');
            if(j('#'+rep).html()){
                var dis = j('#'+rep).css('display');
                var sign = (dis == 'none') ? ' +': ' -';
                var t = j(e).text().replace(/\s{2,}/g, ' ').replace(/(.*)[\+\-]{1}$/g, '$1');
                j(e).text(t+sign);
                j(e).addClass('link');
            }
        }
    });
}