(function($) {
	$.fn.hoverIntent = function(f,g) {
		var cfg = {sensitivity: 7,interval: 100,timeout: 0};
		cfg = $.extend(cfg, g ? { over: f, out: g } : f );
		var cX, cY, pX, pY;
		var track = function(ev) {cX = ev.pageX;cY = ev.pageY;};

		var compare = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
				$(ob).unbind("mousemove",track);
				ob.hoverIntent_s = 1;
				return cfg.over.apply(ob,[ev]);
			} else {
				pX = cX; pY = cY;
				ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
			}
		};
		var delay = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			ob.hoverIntent_s = 0;
			return cfg.out.apply(ob,[ev]);
		};
		var handleHover = function(e) {
			var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
			while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
			if ( p == this ) { return false; }
			var ev = jQuery.extend({},e);
			var ob = this;
			if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
			if (e.type == "mouseover") {
				pX = ev.pageX; pY = ev.pageY;
				$(ob).bind("mousemove",track);
				if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
			} else {
				$(ob).unbind("mousemove",track);
				if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
			}
		};
		return this.mouseover(handleHover).mouseout(handleHover);
	};
})(jQuery);
//

/**
 * jQuery lightBox plugin
 * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
 * and adapted to me for use like a plugin from jQuery.
 * @name jquery-lightbox-0.4.pack.js
 * @author Leandro Vieira Pinho - http://leandrovieira.com
 * @version 0.4
 * @date November 17, 2007
 * @category jQuery plugin
 * @copyright (c) 2007 Leandro Vieira Pinho (leandrovieira.com)
 * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
 * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
 */
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}('(6($){$.2L.3f=6(4){4=1W.2F({2x:\'#32\',2e:0.8,1O:\'V/5-3e-T.Z\',2i:\'V/5-1t-2S.Z\',23:\'V/5-1t-2O.Z\',1V:\'V/5-1t-2I.Z\',19:\'V/5-2G.Z\',17:10,1I:2B,2z:\'1f\',2p:\'33\',2m:\'c\',2h:\'p\',2c:\'n\',h:[],9:0},4);f E=C;6 20(){1Z(C,E);D 1g}6 1Z(1a,E){$(\'1R, 1Q, 1N\').k({\'1M\':\'2D\'});1K();4.h.y=0;4.9=0;7(E.y==1){4.h.1F(u 1h(1a.16(\'H\'),1a.16(\'2v\')))}m{36(f i=0;i<E.y;i++){4.h.1F(u 1h(E[i].16(\'H\'),E[i].16(\'2v\')))}}2n(4.h[4.9][0]!=1a.16(\'H\')){4.9++}J()}6 1K(){$(\'l\').31(\'<e g="r-N"></e><e g="r-5"><e g="5-t-d-v"><e g="5-t-d"><1s g="5-d"><e 2V="" g="5-j"><a H="#" g="5-j-13"></a><a H="#" g="5-j-X"></a></e><e g="5-T"><a H="#" g="5-T-25"><1s P="\'+4.1O+\'"></a></e></e></e><e g="5-t-d-Y-v"><e g="5-t-d-Y"><e g="5-d-F"><1c g="5-d-F-1p"></1c><1c g="5-d-F-1o"></1c></e><e g="5-1B"><a H="#" g="5-1B-1Y"><1s P="\'+4.1V+\'"></a></e></e></e></e>\');f w=1m();$(\'#r-N\').k({2J:4.2x,2H:4.2e,Q:w[0],I:w[1]}).1S();f L=1l();$(\'#r-5\').k({1P:L[1]+(w[3]/10),1k:L[0]}).B();$(\'#r-N,#r-5\').K(6(){18()});$(\'#5-T-25,#5-1B-1Y\').K(6(){18();D 1g});$(A).2E(6(){f w=1m();$(\'#r-N\').k({Q:w[0],I:w[1]});f L=1l();$(\'#r-5\').k({1P:L[1]+(w[3]/10),1k:L[0]})})}6 J(){$(\'#5-T\').B();$(\'#5-d,#5-j,#5-j-13,#5-j-X,#5-t-d-Y-v,#5-d-F-1o\').1j();f M=u 1f();M.1L=6(){$(\'#5-d\').2C(\'P\',4.h[4.9][0]);1J(M.Q,M.I);M.1L=6(){}};M.P=4.h[4.9][0]};6 1J(1n,1i){f 1H=$(\'#5-t-d-v\').Q();f 1G=$(\'#5-t-d-v\').I();f 1q=(1n+(4.17*2));f 1r=(1i+(4.17*2));f 1E=1H-1q;f 26=1G-1r;$(\'#5-t-d-v\').3d({Q:1q,I:1r},4.1I,6(){2y()});7((1E==0)&&(26==0)){7($.3c.3b){1C(3a)}m{1C(38)}}$(\'#5-j-13,#5-j-X\').k({I:1i+(4.17*2)});$(\'#5-t-d-Y-v\').k({Q:1n})};6 2y(){$(\'#5-T\').1j();$(\'#5-d\').1S(6(){2u();2s()});2r()};6 2u(){$(\'#5-t-d-Y-v\').35(\'34\');$(\'#5-d-F-1p\').1j();7(4.h[4.9][1]){$(\'#5-d-F-1p\').2o(4.h[4.9][1]).B()}7(4.h.y>1){$(\'#5-d-F-1o\').2o(4.2z+\' \'+(4.9+1)+\' \'+4.2p+\' \'+4.h.y).B()}}6 2s(){$(\'#5-j\').B();$(\'#5-j-13,#5-j-X\').k({\'11\':\'1y U(\'+4.19+\') 12-14\'});7(4.9!=0){$(\'#5-j-13\').1d().2l(6(){$(C).k({\'11\':\'U(\'+4.2i+\') 1k 15% 12-14\'})},6(){$(C).k({\'11\':\'1y U(\'+4.19+\') 12-14\'})}).B().2k(\'K\',6(){4.9=4.9-1;J();D 1g})}7(4.9!=(4.h.y-1)){$(\'#5-j-X\').1d().2l(6(){$(C).k({\'11\':\'U(\'+4.23+\') 30 15% 12-14\'})},6(){$(C).k({\'11\':\'1y U(\'+4.19+\') 12-14\'})}).B().2k(\'K\',6(){4.9=4.9+1;J();D 1g})}2j()}6 2j(){$(b).2Z(6(O){2g(O)})}6 1w(){$(b).1d()}6 2g(O){7(O==2f){S=2Y.2d;1u=27}m{S=O.2d;1u=O.2X}W=2W.2U(S).2T();7((W==4.2m)||(W==\'x\')||(S==1u)){18()}7((W==4.2h)||(S==37)){7(4.9!=0){4.9=4.9-1;J();1w()}}7((W==4.2c)||(S==39)){7(4.9!=(4.h.y-1)){4.9=4.9+1;J();1w()}}}6 2r(){7((4.h.y-1)>4.9){2a=u 1f();2a.P=4.h[4.9+1][0]}7(4.9>0){29=u 1f();29.P=4.h[4.9-1][0]}}6 18(){$(\'#r-5\').28();$(\'#r-N\').2R(6(){$(\'#r-N\').28()});$(\'1R, 1Q, 1N\').k({\'1M\':\'2Q\'})}6 1m(){f q,o;7(A.1b&&A.24){q=A.22+A.2P;o=A.1b+A.24}m 7(b.l.21>b.l.2b){q=b.l.2N;o=b.l.21}m{q=b.l.2M;o=b.l.2b}f z,G;7(R.1b){7(b.s.1e){z=b.s.1e}m{z=R.22}G=R.1b}m 7(b.s&&b.s.1v){z=b.s.1e;G=b.s.1v}m 7(b.l){z=b.l.1e;G=b.l.1v}7(o<G){1x=G}m{1x=o}7(q<z){1A=q}m{1A=z}1X=u 1h(1A,1x,z,G);D 1X};6 1l(){f q,o;7(R.2A){o=R.2A;q=R.2K}m 7(b.s&&b.s.1z){o=b.s.1z;q=b.s.2t}m 7(b.l){o=b.l.1z;q=b.l.2t}2q=u 1h(q,o);D 2q};6 1C(1U){f 2w=u 1T();1D=2f;3g{f 1D=u 1T()}2n(1D-2w<1U)};D C.1d(\'K\').K(20)}})(1W);',62,203,'||||settings|lightbox|function|if||activeImage||document||image|div|var|id|imageArray||nav|css|body|else||yScroll||xScroll|jquery|documentElement|container|new|box|arrPageSizes||length|windowWidth|window|show|this|return|jQueryMatchedObj|details|windowHeight|href|height|_set_image_to_view|click|arrPageScroll|objImagePreloader|overlay|objEvent|src|width|self|keycode|loading|url|images|key|btnNext|data|gif||background|no|btnPrev|repeat||getAttribute|containerBorderSize|_finish|imageBlank|objClicked|innerHeight|span|unbind|clientWidth|Image|false|Array|intImageHeight|hide|left|___getPageScroll|___getPageSize|intImageWidth|currentNumber|caption|intWidth|intHeight|img|btn|escapeKey|clientHeight|_disable_keyboard_navigation|pageHeight|transparent|scrollTop|pageWidth|secNav|___pause|curDate|intDiffW|push|intCurrentHeight|intCurrentWidth|containerResizeSpeed|_resize_container_image_box|_set_interface|onload|visibility|select|imageLoading|top|object|embed|fadeIn|Date|ms|imageBtnClose|jQuery|arrayPageSize|btnClose|_start|_initialize|scrollHeight|innerWidth|imageBtnNext|scrollMaxY|link|intDiffH||remove|objPrev|objNext|offsetHeight|keyToNext|keyCode|overlayOpacity|null|_keyboard_action|keyToPrev|imageBtnPrev|_enable_keyboard_navigation|bind|hover|keyToClose|while|html|txtOf|arrayPageScroll|_preload_neighbor_images|_set_navigation|scrollLeft|_show_image_data|title|date|overlayBgColor|_show_image|txtImage|pageYOffset|400|attr|hidden|resize|extend|blank|opacity|close|backgroundColor|pageXOffset|fn|offsetWidth|scrollWidth|next|scrollMaxX|visible|fadeOut|prev|toLowerCase|fromCharCode|style|String|DOM_VK_ESCAPE|event|keydown|right|append|000|of|fast|slideDown|for||100||250|msie|browser|animate|ico|lightBox|do'.split('|'),0,{}));


// ***************************************************************************************************************************************************
// ***************************************************************************************************************************************************
// Facebox
(function($) {
  $.facebox = function(data) {
    $.facebox.init()
    $.facebox.loading()
    $.isFunction(data) ? data.call() : $.facebox.reveal(data)
  }

  $.facebox.settings = {
    loading_image : '/wp-content/themes/DCC/images/loading.gif',
    close_image   : '/wp-content/themes/DCC/images/closelabel.gif',
    image_types   : [ 'png', 'jpg', 'jpeg', 'gif' ],
    facebox_html  : '\
  <div id="facebox" style="display:none;"> \
    <div class="popup"> \
      <table> \
        <tbody> \
          <tr> \
            <td class="tl"/><td class="b"/><td class="tr"/> \
          </tr> \
          <tr> \
            <td class="b"/> \
            <td class="body"> \
              <div class="content"> \
              </div> \
              <div class="footer"> \
                <a href="#" class="close"> \
                  <img src="" title="close" class="close_image" /> \
                </a> \
              </div> \
            </td> \
            <td class="b"/> \
          </tr> \
          <tr> \
            <td class="bl"/><td class="b"/><td class="br"/> \
          </tr> \
        </tbody> \
      </table> \
    </div> \
  </div>'
  }

  $.facebox.loading = function() {
    if ($('#facebox .loading').length == 1) return true

    $('#facebox .content').empty()
    $('#facebox .body').children().hide().end().
      append('<div class="loading"><img src="'+$.facebox.settings.loading_image+'"/></div>')

    var pageScroll = $.facebox.getPageScroll()
    $('#facebox').css({
      top:	pageScroll[1] + ($.facebox.getPageHeight() / 10),
      left:	pageScroll[0]
    }).show()

    $(document).bind('keydown.facebox', function(e) {
      if (e.keyCode == 27) $.facebox.close()
    })
  }

  $.facebox.reveal = function(data, klass) {
    if (klass) $('#facebox .content').addClass(klass)
    $('#facebox .content').append(data)
    $('#facebox .loading').remove()
    $('#facebox .body').children().fadeIn('normal')
  }

  $.facebox.close = function() {
    $(document).unbind('keydown.facebox')
    $('#facebox').fadeOut(function() {
      $('#facebox .content').removeClass().addClass('content')
    })
    return false
  }

  $.fn.facebox = function() {
    $.facebox.init()

    var image_types = $.facebox.settings.image_types.join('|')
    image_types = new RegExp('\.' + image_types + '$', 'i')

    function click_handler() {
      $.facebox.loading(true)

      // support for rel="facebox[.inline_popup]" syntax, to add a class
      var klass = this.rel.match(/facebox\[\.(\w+)\]/)
      if (klass) klass = klass[1]

      // div
      if (this.href.match(/#/)) {
        var url    = window.location.href.split('#')[0]
        var target = this.href.replace(url,'')
        $.facebox.reveal($(target).clone().show(), klass)

      // image
      } else if (this.href.match(image_types)) {
        var image = new Image()
        image.onload = function() {
          $.facebox.reveal('<div class="image"><img src="' + image.src + '" /></div>', klass)
        }
        image.src = this.href

      // ajax
      } else {
        $.get(this.href, function(data) { $.facebox.reveal(data, klass) })
      }

      return false
    }

    this.click(click_handler)
    return this
  }

  $.facebox.init = function() {
    if ($.facebox.settings.inited) {
      return true
    } else {
      $.facebox.settings.inited = true
    }

    $('body').append($.facebox.settings.facebox_html)

    var preload = [ new Image(), new Image() ]
    preload[0].src = $.facebox.settings.close_image
    preload[1].src = $.facebox.settings.loading_image

    $('#facebox').find('.b:first, .bl, .br, .tl, .tr').each(function() {
      preload.push(new Image())
      preload.slice(-1).src = $(this).css('background-image').replace(/url\((.+)\)/, '$1')
    })

    $('#facebox .close').click($.facebox.close)
    $('#facebox .close_image').attr('src', $.facebox.settings.close_image)
  }

  // getPageScroll() by quirksmode.com
  $.facebox.getPageScroll = function() {
    var xScroll, yScroll;
    if (self.pageYOffset) {
      yScroll = self.pageYOffset;
      xScroll = self.pageXOffset;
    } else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
      yScroll = document.documentElement.scrollTop;
      xScroll = document.documentElement.scrollLeft;
    } else if (document.body) {// all other Explorers
      yScroll = document.body.scrollTop;
      xScroll = document.body.scrollLeft;	
    }
    return new Array(xScroll,yScroll) 
  }

  // adapter from getPageSize() by quirksmode.com
  $.facebox.getPageHeight = function() {
    var windowHeight
    if (self.innerHeight) {	// all except Explorer
      windowHeight = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
      windowHeight = document.documentElement.clientHeight;
    } else if (document.body) { // other Explorers
      windowHeight = document.body.clientHeight;
    }	
    return windowHeight
  }
})(jQuery);



// ***************************************************************************************************************************************************
// ***************************************************************************************************************************************************
// GreyBox found on Google
var GB_ANIMATION = true;
var GB_DONE = false;
function GB_show(caption, url, height, width) {
  GB_HEIGHT = height || 400;
  GB_WIDTH = width || 400;
  if(!GB_DONE) {
    $(document.body)
      .append("<div id='GB_overlay'></div><div id='GB_window'><div id='GB_caption'></div>"
        + "<img src='/wp-content/themes/DCC/images/close.gif' alt='Close window'/></div>");
    $("#GB_window img").click(GB_hide);
    $("#GB_overlay").click(GB_hide);
    $(window).resize(GB_position);
    GB_DONE = true;
  }

  $("#GB_frame").remove();
  $("#GB_window").append("<iframe id='GB_frame' src='"+url+"'></iframe>");

  $("#GB_caption").html(caption);
  $("#GB_overlay").show();
  GB_position();

  if(GB_ANIMATION)
    $("#GB_window").slideDown("slow");
  else
    $("#GB_window").show();
}

function GB_hide() {
  $("#GB_window,#GB_overlay").hide();
}

function GB_position() {
  var de = document.documentElement;
  var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
  $("#GB_window").css({width:GB_WIDTH+"px",height:GB_HEIGHT+"px",
    left: ((w - GB_WIDTH)/2)+"px" });
  $("#GB_frame").css("height",GB_HEIGHT - 32 +"px");
}

// ***************************************************************************************************************************************************
// ***************************************************************************************************************************************************

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}('2H.35.3y=1j(a){N b={19:{R:8},1c:{R:8},1i:{R:8},1k:{R:8},1Z:1T,2j:1T,3v:["3r"]};M(a&&1V(a)!=\'3j\')2H.3e(b,a);1m 7.2S(1j(){1W 2p(b,7).2o()})};1j 2p(){7.W=2m[1];7.P=2m[0];7.1o=1X;7.1p=1X;7.26=1W 25();7.2z=1X;N G=$(7.W).O("1l");N H=$(7.W).O("1L");N I=$(7.W).O("38");N J=$(7.W).O("2t");N K=$(7.W).O("V");N L=$(7.W).O("2O");7.1F=2h($(7.W).O("2I"));7.1I=2h($(7.W).O("20"));7.1R=Z(((G!=""&&G!="1Y"&&G.1s("%")==-1)?G.1r(0,G.1s("T")):7.W.3x));7.2k=Z(((H!=""&&H!="1Y"&&H.1s("%")==-1)?H.1r(0,H.1s("T")):7.W.3w));7.S=Z(((I!=""&&I.1s("T")!==-1)?I.2F(0,I.1s("T")):0));7.1x=Z(((L!=""&&L.1s("T")!==-1)?L.2F(0,L.1s("T")):0));7.1g=7.S+"T"+" 3u "+7.1F;7.1v=((J!="3t")?J:"");M(7.1v=="3s")7.1v="";7.2B=7.W.2g;M(K!="1n")$(7.W).O("V","28");$(7.W).O("1y","1t !3m");M(($.24.2x&&$.24.3l==6)&&H=="1Y"&&G=="1Y")$(7.W).O("1L","1a%");M(($.24.2x)){$(7.W).O("2u","1");$(7.W+" *").O("2u","3h")}M(7.P.2j==1T&&7.1x>0)7.W.2g="";7.2o=1j(){1M(N t=0;t<2;t++){1E(t){U 0:M(7.P.19||7.P.1c){N a=1A.1B("1C");N b=Q.1U(7.P.19?7.P.19.R:0,7.P.1c?7.P.1c.R:0);$(a).O({1L:"1a%","1O-1P":"1D",1K:"1Q",V:"1n","1y-X":7.S,"1y-1b":7.S,1l:b+"T",1q:0-b+"T",X:0-7.S+"T"});7.1o=7.W.1e(a)};Y;U 1:M(7.P.1i||7.P.1k){N a=1A.1B("1C");N c=Q.1U(7.P.1i?7.P.1i.R:0,7.P.1k?7.P.1k.R:0);$(a).O({1L:"1a%","1O-1P":"1D",1K:"1Q",V:"1n","1y-X":7.S,"1y-1b":7.S,1l:c,1u:0-c+"T",X:0-7.S+"T"});7.1p=7.W.1e(a)};Y}};M(7.1o)$(7.W).O("1d-1q",0);M(7.1p)$(7.W).O("1d-1u",0);N d=["1c","19","1k","1i"];1M(N i 29 d){M(i>-1<4){N e=d[i];M(!7.P[e]){M(((e=="1c"||e=="19")&&7.1o!=1X)||((e=="1k"||e=="1i")&&7.1p!=1X)){N f=1A.1B("1C");$(f).O({V:"28","1O-1P":"1D",1K:"1Q"});M(7.1v=="")$(f).O("20",7.1I);17 $(f).O("2t",7.1v);1E(e){U"19":$(f).O({1l:b-7.S,"1z-1b":7.P.1c.R-(7.S*2),"1d-X":7.1g,"1d-1q":7.1g,X:-7.S+"T"});Y;U"1c":$(f).O({1l:b-7.S,"1z-X":7.P.19.R-(7.S*2),"1d-1b":7.1g,"1d-1q":7.1g,X:7.S+"T","1h-V":"-"+(b+7.S)+"T 1t"});Y;U"1i":$(f).O({1l:c-7.S,"1z-1b":7.P.1k.R-(7.S*2),"1d-X":7.1g,"1d-1u":7.1g,X:-7.S+"T","1h-V":"-"+(7.S)+"T -"+(7.1R+(c+7.S))+"T"});Y;U"1k":$(f).O({1l:c-7.S,"1z-X":7.P.1i.R-(7.S*2),"1d-1b":7.1g,"1d-1u":7.1g,X:7.S+"T","1h-V":"-"+(c+7.S)+"T -"+(7.1R+(c+7.S))+"T"});Y}}}17{M(7.26[7.P[e].R]){N f=7.26[7.P[e].R].2n(1T)}17{N f=1A.1B("1C");$(f).O({1l:7.P[e].R,1L:7.P[e].R,V:"1n","1O-1P":"1D",1K:"1Q"});N g=Z(7.P[e].R-7.S);1M(N h=0,j=7.P[e].R;h<j;h++){M((h+1)>=g)N l=-1;17 N l=(Q.2l(Q.1H(Q.1f(g,2)-Q.1f((h+1),2)))-1);M(g!=j){M((h)>=g)N m=-1;17 N m=Q.2G(Q.1H(Q.1f(g,2)-Q.1f(h,2)));M((h+1)>=j)N n=-1;17 N n=(Q.2l(Q.1H(Q.1f(j,2)-Q.1f((h+1),2)))-1)};M((h)>=j)N o=-1;17 N o=Q.2G(Q.1H(Q.1f(j,2)-Q.1f(h,2)));M(l>-1)7.1G(h,0,7.1I,1a,(l+1),f,-1,7.P[e].R);M(g!=j){1M(N p=(l+1);p<m;p++){M(7.P.1Z){M(7.1v!=""){N q=(27(h,p,g)*1a);M(q<30){7.1G(h,p,7.1F,1a,1,f,0,7.P[e].R)}17{7.1G(h,p,7.1F,1a,1,f,-1,7.P[e].R)}}17{N r=2E(7.1I,7.1F,27(h,p,g));7.1G(h,p,r,1a,1,f,0,7.P[e].R,e)}}};M(7.P.1Z){M(n>=m){M(m==-1)m=0;7.1G(h,m,7.1F,1a,(n-m+1),f,0,0)}}17{M(n>=l){7.1G(h,(l+1),7.1F,1a,(n-l),f,0,0)}};N s=7.1F}17{N s=7.1I;N n=l};M(7.P.1Z){1M(N p=(n+1);p<o;p++){7.1G(h,p,s,(27(h,p,j)*1a),1,f,((7.S>0)?0:-1),7.P[e].R)}}};7.26[7.P[e].R]=f.2n(1T)};M(e!="1k"){1M(N t=0,k=f.2D.2C;t<k;t++){N u=f.2D[t];N v=Z(u.18.1q.1r(0,u.18.1q.1s("T")));N w=Z(u.18.X.1r(0,u.18.X.1s("T")));N x=Z(u.18.1l.1r(0,u.18.1l.1s("T")));M(e=="19"||e=="1i"){$(u).O("X",7.P[e].R-w-1+"T")};M(e=="1c"||e=="19"){$(u).O("1q",7.P[e].R-x-v+"T")};1E(e){U"1c":$(u).O("1h-V","-"+Q.1w((7.2k-7.P[e].R+7.S)+w)+"T -"+Q.1w(7.P[e].R-x-v-7.S)+"T");Y;U"19":$(u).O("1h-V","-"+Q.1w((7.P[e].R-w-1)-7.S)+"T -"+Q.1w(7.P[e].R-x-v-7.S)+"T");Y;U"1i":$(u).O("1h-V","-"+Q.1w((7.P[e].R-w-1)-7.S)+"T -"+Q.1w((7.1R+7.P[e].R+v)-7.S)+"T");Y}}}};M(f){1E(e){U"19":M($(f).O("V")=="1n")$(f).O("1q","0");M($(f).O("V")=="1n")$(f).O("X","0");M(7.1o)7.1o.1e(f);Y;U"1c":M($(f).O("V")=="1n")$(f).O("1q","0");M($(f).O("V")=="1n")$(f).O("1b","0");M(7.1o)7.1o.1e(f);Y;U"1i":M($(f).O("V")=="1n")$(f).O("1u","0");M(f.18.V=="1n")$(f).O("X","0");M(7.1p)7.1p.1e(f);Y;U"1k":M($(f).O("V")=="1n")$(f).O("1u","0");M($(f).O("V")=="1n")$(f).O("1b","0");M(7.1p)7.1p.1e(f);Y}}}};N y=1W 25();y["t"]=Q.1w(7.P.19.R-7.P.1c.R);y["b"]=Q.1w(7.P.1i.R-7.P.1k.R);1M(z 29 y){M(z=="t"||z=="b"){M(y[z]){N A=((7.P[z+"l"].R<7.P[z+"r"].R)?z+"l":z+"r");N B=1A.1B("1C");$(B).O({1l:y[z],1L:7.P[A].R+"T",V:"1n","1O-1P":"1D",1K:"1Q","1h-2f":7.1I});1E(A){U"19":$(B).O({1u:"1t",X:"1t","1d-1b":7.1g});7.1o.1e(B);Y;U"1c":$(B).O({1u:"1t",1b:"1t","1d-1b":7.1g});7.1o.1e(B);Y;U"1i":$(B).O({1q:"1t",X:"1t","1d-X":7.1g});7.1p.1e(B);Y;U"1k":$(B).O({1u:"1t",1b:"1t","1d-1b":7.1g});7.1p.1e(B);Y}};N C=1A.1B("1C");$(C).O({V:"28","1O-1P":"1D",1K:"1Q","1h-2f":7.1I,"1h-2A":7.1v});1E(z){U"t":M(7.1o){M(7.P.19.R&&7.P.1c.R){$(C).O({1l:b-7.S,"1z-X":7.P.19.R-7.S,"1z-1b":7.P.1c.R-7.S,"1d-1q":7.1g});7.1o.1e(C);M(7.1v!="")$(C).O("1h-V","-"+(b+7.S)+"T 1t");7.1o.1e(C)};$(7.W).O("1h-V","1t -"+(b-7.S)+"T")};Y;U"b":M(7.1p){M(7.P.1i.R&&7.P.1k.R){$(C).O({1l:c-7.S+"T","1z-X":7.P.1i.R-7.S,"1z-1b":7.P.1k.R-7.S,"1d-1u":7.1g});7.1p.1e(C);M(7.1v!="")$(C).O("1h-V","-"+(c+7.S)+"T -"+(7.1R+(b+7.S))+"T");7.1p.1e(C)}};Y}}};M(7.P.2j==1T&&7.1x>0){N D=1A.1B("1C");$(D).O("V","28");D.2g=7.2B;$(D).3q="3o";N E=Q.1w(b-7.1x);N F=Q.1w(c-7.1x);M(b<7.1x)$(D).O("1y-1q",E);M(c<7.1x)$(D).O("1y-1u",c);$(D).O({"1y-X":7.1x,"1y-1b":7.1x});7.2z=7.W.1e(D)}};7.1G=1j(a,b,c,d,e,f,g,h){N i=1A.1B("1C");$(i).O({1l:e,1L:"1D",V:"1n","1O-1P":"1D",1K:"1Q"});N j=Q.1U(7.P["1c"].R,7.P["19"].R);M(g==-1&&7.1v!=""){$(i).O({"1h-2A":7.1v,"1h-V":((7.2k-(h-a)+7.S)*-1)+"T "+(((7.1R+j+b)-7.S)*-1)+"T"})}17{$(i).O("1h-2f",c)};M(d!=1a)2y(i,d);$(i).O({1q:b+"T",X:a+"T"});f.1e(i)}};1j 2E(a,b,c){N d=Z(a.1N(1,2),16);N e=Z(a.1N(3,2),16);N f=Z(a.1N(5,2),16);N g=Z(b.1N(1,2),16);N h=Z(b.1N(3,2),16);N i=Z(b.1N(5,2),16);M(c>1||c<0)c=1;N j=Q.2e((d*c)+(g*(1-c)));M(j>1S)j=1S;M(j<0)j=0;N k=Q.2e((e*c)+(h*(1-c)));M(k>1S)k=1S;M(k<0)k=0;N l=Q.2e((f*c)+(i*(1-c)));M(l>1S)l=1S;M(l<0)l=0;1m"#"+1J(j)+1J(k)+1J(l)};1j 1J(a){23=a/16;2d=a%16;23=23-(2d/16);2w=2a(23);2v=2a(2d);1m 2w+\'\'+2v};1j 2a(x){M((x>=0)&&(x<=9)){1m x}17{1E(x){U 10:1m"A";U 11:1m"B";U 12:1m"C";U 13:1m"D";U 14:1m"E";U 15:1m"F"}}};1j 27(x,y,r){N a=0;N b=1W 25(1);N c=1W 25(1);N d=0;N e="";N f=Q.1H((Q.1f(r,2)-Q.1f(x,2)));M((f>=y)&&(f<(y+1))){e="3f";b[d]=0;c[d]=f-y;d=d+1};N f=Q.1H((Q.1f(r,2)-Q.1f(y+1,2)));M((f>=x)&&(f<(x+1))){e=e+"3d";b[d]=f-x;c[d]=1;d=d+1};N f=Q.1H((Q.1f(r,2)-Q.1f(x+1,2)));M((f>=y)&&(f<(y+1))){e=e+"3c";b[d]=1;c[d]=f-y;d=d+1};N f=Q.1H((Q.1f(r,2)-Q.1f(y,2)));M((f>=x)&&(f<(x+1))){e=e+"3a";b[d]=f-x;c[d]=0};1E(e){U"39":a=Q.22(c[0],c[1])+((Q.1U(c[0],c[1])-Q.22(c[0],c[1]))/2);Y;U"37":a=1-(((1-b[0])*(1-c[1]))/2);Y;U"36":a=Q.22(b[0],b[1])+((Q.1U(b[0],b[1])-Q.22(b[0],b[1]))/2);Y;U"3b":a=(c[0]*b[1])/2;Y;34:a=1};1m a};1j 2c(a){33{N b=2b(a);N c=Z(b[0]);N d=Z(b[1]);N f=Z(b[2]);N g="#"+1J(c)+1J(d)+1J(f)}32(e){31("2Z 3g 2Y 2X 2W 3i 2V 2U 2T 3k 29 1j 2c")};1m g};1j 2b(a){N b=a.1r(4,a.1s(")"));N c=b.2R(", ");1m c};1j 2y(a,b){b=(b==1a)?2Q.2P:b;M($.24.3n&&a.2N!="3p"){N c=2b(a.18.20);N d=Z(c[0]);N e=Z(c[1]);N f=Z(c[2]);a.18.20="2M("+d+", "+e+", "+f+", "+b/1a+")"}17 M(1V(a.18.2i)!="21"){a.18.2i=b/1a}17 M(1V(a.18.2s)!="21"){a.18.2s=b/1a}17 M(1V(a.18.2r)!="21"){a.18.2r="2L(2i:"+b+")"}17 M(1V(a.18.2q)!="21"){a.18.2q=b/1a}};1j 2h(a){N b="#2K";M(a!=""&&a!="2J"){M(a.1N(0,3)=="3z"){b=2c(a)}17 M(a.2C==4){b="#"+a.1r(1,2)+a.1r(1,2)+a.1r(2,3)+a.1r(2,3)+a.1r(3,4)+a.1r(3,4)}17{b=a}};1m b};',62,222,'|||||||this|||||||||||||||||||||||||||||||||||||||||if|var|css|settings|Math|radius|borderWidth|px|case|position|box|left|break|parseInt||||||||else|style|tl|100|right|tr|border|appendChild|pow|borderString|background|bl|function|br|height|return|absolute|topContainer|bottomContainer|top|substring|indexOf|0px|bottom|bgImage|abs|boxPadding|padding|margin|document|createElement|DIV|1px|switch|borderColour|drawPixel|sqrt|boxColour|IntToHex|overflow|width|for|substr|font|size|hidden|boxHeight|255|true|max|typeof|new|null|auto|antiAlias|backgroundColor|undefined|min|base|browser|Array|masterCorners|pixelFraction|relative|in|MakeHex|rgb2Array|rgb2Hex|rem|round|color|innerHTML|format_colour|opacity|autoPad|boxWidth|floor|arguments|cloneNode|applyCorners|curvyObject|KHTMLOpacity|filter|MozOpacity|backgroundImage|zoom|remS|baseS|msie|setOpacity|contentDIV|image|boxContent|length|childNodes|BlendColour|slice|ceil|jQuery|borderTopColor|transparent|ffffff|alpha|rgba|tagName|paddingTop|999|99|split|each|to|value|RGB|converting|error|an|There||alert|catch|try|default|fn|TopBottom|TopRight|borderTopWidth|LeftRight|Bottom|LeftBottom|Right|Top|extend|Left|was|normal|the|string|Hexadecimal|version|important|safari|autoPadDiv|IFRAME|addClass|div|initial|none|solid|validTags|scrollWidth|scrollHeight|corner|rgb'.split('|'),0,{}));


var HoverConfig = {sensitivity: 1,interval: 150, over: openTab, timeout: 750, out: closeTab};
var AccordionParams;
function closeTab() {}
function openTab()
{
   var c = "hover-open";
   var $t = $(this);
   if ($t.hasClass(c)) {return false;}
   $t.addClass(c).siblings().removeClass(c);
   var p = $t.parent()[0];
   if (p.opened != "undefined") {$(p.opened).next("div."+AccordionParams.contentclass).animate({width: "0px"},AccordionParams.speed);}
   p.opened = this;
   $t.next("div."+AccordionParams.contentclass).animate({width: AccordionParams.contentwidth + "px"}, AccordionParams.speed);
}

jQuery.fn.extend({
  HorizontalAccordion: function(params){
    AccordionParams = $.extend({speed: 500,headerclass: "header",contentclass: "content",contentwidth:633},AccordionParams);
    return this.each(function(){$("."+AccordionParams.headerclass,this).hoverIntent(HoverConfig);});
  }
});


function OpenInitialTab()
{
    
    var $opentab = $("div#navigation .nav-open");
    if ($opentab.length > 0)
    {
        $opentab.addClass("hover-open")
            .next("div."+AccordionParams.contentclass)
            .animate({width: AccordionParams.contentwidth + "px"}, AccordionParams.speed);
        $opentab.parent()[0].opened = $opentab.get()[0];
    }
}

function InitWhatsNext()
{
    $('a.addfav').click(function() {

        var url = location.href;
        var title = document.title;
        if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if(window.external) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		alert('Sorry, your browser does not support this feature.  You can manually bookmark this page if you like.');
        }
        return false;
    }).attr('href','javascript:void(0);');
}
$(document).ready(function(){
	$("div#navigation").HorizontalAccordion();
	$('div.round').corner();
	OpenInitialTab();
	InitWhatsNext();
	$('#get-directions').click(function() {
		addr = "http://maps.google.com/maps?f=d&hl=en&saddr="+$('input#address').val()+"&daddr=655+Kearny+Ave,+Kearny,+NJ+07032";
		GB_show("Directions to Our Office",addr, 700, 700);
	});
	$('a:contains(Hours)').click(function() {
		jQuery.facebox($('#page-office-hours').html());
		return false;
	});
	$('#office-tour-gallery a').lightBox({
		imageLoading:			'/wp-content/themes/DCC/images/lightbox-ico-loading.gif',
		imageBtnPrev:			'/wp-content/themes/DCC/images/lightbox-btn-prev.gif',
		imageBtnNext:			'/wp-content/themes/DCC/images/lightbox-btn-next.gif',
		imageBtnClose:			'/wp-content/themes/DCC/images/lightbox-btn-close.gif',
		imageBlank:			'/wp-content/themes/DCC/images/lightbox-blank.gif',
		
		
	});
});
/*
// Configuration related to overlay
			overlayBgColor: 		'#000',		// (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
			overlayOpacity:			0.8,		// (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
			// Configuration related to images
			imageLoading:			'images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
			imageBtnPrev:			'images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
			imageBtnNext:			'images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
			imageBtnClose:			'images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
			imageBlank:				'images/lightbox-blank.gif',			// (string) Path and the name of a blank image (one pixel)
			// Configuration related to container image box
			containerBorderSize:	10,			// (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value
			containerResizeSpeed:	400,		// (integer) Specify the resize duration of container image. These number are miliseconds. 400 is default.
			// Configuration related to texts in caption. For example: Image 2 of 8. You can alter either "Image" and "of" texts.
			txtImage:				'Image',	// (string) Specify text "Image"
			txtOf:					'of',		// (string) Specify text "of"
			// Configuration related to keyboard navigation
			keyToClose:				'c',		// (string) (c = close) Letter to close the jQuery lightBox interface. Beyond this letter, the letter X and the SCAPE key is used to.
			keyToPrev:				'p',		// (string) (p = previous) Letter to show the previous image
			keyToNext:				'n',		// (string) (n = next) Letter to show the next image.
			// Donīt alter these variables in any way
			imageArray:				[],
			activeImage:			0

*/