;
/* AGGREGATED JS FILE: misc/drupal.js */
// $Id: drupal.js,v 1.29.2.1 2007/07/15 23:07:06 drumm Exp $

var Drupal = Drupal || {};

/**
 * Set the variable that indicates if JavaScript behaviors should be applied
 */
Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;

/**
 * Extends the current object with the parameter. Works recursively.
 */
Drupal.extend = function(obj) {
  for (var i in obj) {
    if (this[i]) {
      Drupal.extend.apply(this[i], [obj[i]]);
    }
    else {
      this[i] = obj[i];
    }
  }
};

/**
 * Redirects a button's form submission to a hidden iframe and displays the result
 * in a given wrapper. The iframe should contain a call to
 * window.parent.iframeHandler() after submission.
 */
Drupal.redirectFormButton = function (uri, button, handler) {
  // Trap the button
  button.onmouseover = button.onfocus = function() {
    button.onclick = function() {
      // Create target iframe
      Drupal.createIframe();

      // Prepare variables for use in anonymous function.
      var button = this;
      var action = button.form.action;
      var target = button.form.target;

      // Redirect form submission to iframe
      this.form.action = uri;
      this.form.target = 'redirect-target';

      handler.onsubmit();

      // Set iframe handler for later
      window.iframeHandler = function () {
        var iframe = $('#redirect-target').get(0);
        // Restore form submission
        button.form.action = action;
        button.form.target = target;

        // Get response from iframe body
        try {
          response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML;
          // Firefox 1.0.x hack: Remove (corrupted) control characters
          response = response.replace(/[\f\n\r\t]/g, ' ');
          if (window.opera) {
            // Opera-hack: it returns innerHTML sanitized.
            response = response.replace(/&quot;/g, '"');
          }
        }
        catch (e) {
          response = null;
        }

        response = Drupal.parseJson(response);
        // Check response code
        if (response.status == 0) {
          handler.onerror(response.data);
          return;
        }
        handler.oncomplete(response.data);

        return true;
      }

      return true;
    }
  }
  button.onmouseout = button.onblur = function() {
    button.onclick = null;
  }
};

/**
 * Retrieves the absolute position of an element on the screen
 */
Drupal.absolutePosition = function (el) {
  var sLeft = 0, sTop = 0;
  var isDiv = /^div$/i.test(el.tagName);
  if (isDiv && el.scrollLeft) {
    sLeft = el.scrollLeft;
  }
  if (isDiv && el.scrollTop) {
    sTop = el.scrollTop;
  }
  var r = { x: el.offsetLeft - sLeft, y: el.offsetTop - sTop };
  if (el.offsetParent) {
    var tmp = Drupal.absolutePosition(el.offsetParent);
    r.x += tmp.x;
    r.y += tmp.y;
  }
  return r;
};

/**
 * Return the dimensions of an element on the screen
 */
Drupal.dimensions = function (el) {
  return { width: el.offsetWidth, height: el.offsetHeight };
};

/**
 *  Returns the position of the mouse cursor based on the event object passed
 */
Drupal.mousePosition = function(e) {
  return { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop };
};

/**
 * Parse a JSON response.
 *
 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
 */
Drupal.parseJson = function (data) {
  if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
    return { status: 0, data: data.length ? data : 'Unspecified error' };
  }
  return eval('(' + data + ');');
};

/**
 * Create an invisible iframe for form submissions.
 */
Drupal.createIframe = function () {
  if ($('#redirect-holder').size()) {
    return;
  }
  // Note: some browsers require the literal name/id attributes on the tag,
  // some want them set through JS. We do both.
  window.iframeHandler = function () {};
  var div = document.createElement('div');
  div.id = 'redirect-holder';
  $(div).html('<iframe name="redirect-target" id="redirect-target" class="redirect" onload="window.iframeHandler();"></iframe>');
  var iframe = div.firstChild;
  $(iframe)
    .attr({
      name: 'redirect-target',
      id: 'redirect-target'
    })
    .css({
      position: 'absolute',
      height: '1px',
      width: '1px',
      visibility: 'hidden'
    });
  $('body').append(div);
};

/**
 * Delete the invisible iframe
 */
Drupal.deleteIframe = function () {
  $('#redirect-holder').remove();
};

/**
 * Freeze the current body height (as minimum height). Used to prevent
 * unnecessary upwards scrolling when doing DOM manipulations.
 */
Drupal.freezeHeight = function () {
  Drupal.unfreezeHeight();
  var div = document.createElement('div');
  $(div).css({
    position: 'absolute',
    top: '0px',
    left: '0px',
    width: '1px',
    height: $('body').css('height')
  }).attr('id', 'freeze-height');
  $('body').append(div);
};

/**
 * Unfreeze the body height
 */
Drupal.unfreezeHeight = function () {
  $('#freeze-height').remove();
};

/**
 * Wrapper to address the mod_rewrite url encoding bug
 * (equivalent of drupal_urlencode() in PHP).
 */
Drupal.encodeURIComponent = function (item, uri) {
  uri = uri || location.href;
  item = encodeURIComponent(item).replace(/%2F/g, '/');
  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
};

// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {
  document.documentElement.className = 'js';
}

;
/* AGGREGATED JS FILE: sites/all/themes/hamptonroads/floatbox/floatbox.js */
/********************************************************************************
* Floatbox v4.20
* October 31, 2010
*
* Copyright (c) 2008-2010 Byron McGregor
* Website: http://randomous.com/floatbox
* This software and all associated files are protected by copyright.
* Redistribution and modification of the executable portions is prohibited.
* Use on any commercial site requires registration and purchase of a license key.
* See http://randomous.com/floatbox/license for details.
* This comment block must be retained in all deployments.
*********************************************************************************/

Floatbox.prototype.customPaths = {
	installBase: '',
	modules: '',
	languages: '',
	graphics: ''
};
function Floatbox(){var a=this;a.proto=Floatbox.prototype;a.extend=function(){var d=arguments,h=d[0]||{},g,c,f;if(d[2]===true){h=d.callee({},h)}for(var e=1,b=d.length;e<b;e++){if(typeof(g=d[e])==="object"){for(c in g){if(g.hasOwnProperty(c)&&(f=g[c])!==a.undefined){h[c]=f}}}}return h};a.CH=[];a.HH=function(c){var b;while((b=a.CH.shift())){b()}}}self.fb=new Floatbox;fb.extend(fb.proto,{PA:"absolute",PB:"activateElements",PC:"addEvent",PD:"addEventListener",PE:"afterFBLoaded",PF:"afterItemEnd",PG:"appendChild",PH:"array",PI:"auto",PJ:"autoFitHTML",PK:"autoFitSpace",PL:"autoStart",PM:"backgroundColor",PN:"backgroundImage",PO:"backgroundPosition",PP:"beforeItemEnd",PQ:"beforeItemStart",PR:"boolean",PS:"borderWidth",PT:"caption",PU:"caption2Left",PV:"className",PW:"clientHeight",PX:"clientWidth",PY:"colorTheme",PZ:"compareDocumentPosition",QA:"controlsCorner",QB:"controlsLeft",QC:"controlsPos",QD:"Corner",QE:"cornerRadius",QF:"createElement",QG:"currentIndex",QH:"currentItem",QI:"customPaths",QJ:"defaultView",QK:"disableScroll",QL:"display",QM:"document",QN:"documentElement",QO:"draggerLocation",QP:"enableDragMove",QQ:"enableDragResize",QR:"enableKeyboardNav",QS:"enableQueryStringOptions",QT:"encodeHTML",QU:"executeJS",QV:"fbBoxLiner",QW:"fbCaliper",QX:"fbCaption",QY:"fbCaption2",QZ:"fbContent",RA:"fbContentWrapper",RB:"fbControls",RC:"fbCornerBottom",RD:"fbCornerRight",RE:"fbCorners2",RF:"fbCornerTop",RG:"fbDragger",RH:"fbIframeHider",RI:"fbIndexLinks",RJ:"fbInfoLink",RK:"fbItemNumber",RL:"fbLeftNav",RM:"fbLoaderGif",RN:"fbNavControls",RO:"fbNewWindowLink",RP:"fbOverlay",RQ:"fbOverlayNext",RR:"fbOverlayPrev",RS:"fbPrintLink",RT:"fbResizer",RU:"fbRightNav",RV:"fbShadows",RW:"fbSubControls",RX:"fbZoomDiv",RY:"fbZoomImg",RZ:"firstChild",SA:"fixed",SB:"frame",SC:"function",SD:"getAttribute",SE:"getElementById",SF:"getElementsByClassName",SG:"getElementsByTagName",SH:"getIframeDocument",SI:"getIframeWindow",SJ:"getLayout",SK:"getOuterHTML",SL:"getScroll",SM:"getStyle",SN:"getViewport",SO:"getViewportHeight",SP:"getViewportWidth",SQ:"globalOptions",SR:"hidden",SS:"iframe",ST:"image",SU:"imageFadeDuration",SV:"indexLinksCorner",SW:"indexOf",SX:"infoLinkCorner",SY:"inline",SZ:"innerBorder",TA:"innerHTML",TB:"instances",TC:"itemNumberCorner",TD:"lastChild",TE:"loadPageOnClose",TF:"maxIndexThumbSize",TG:"media",TH:"mousemove",TI:"mouseout",TJ:"mouseover",TK:"mouseup",TL:"moveWithMouse",TM:"newWindowLinkCorner",TN:"nodeContains",TO:"nodeType",TP:"nofloatbox",TQ:"none",TR:"numIndexLinks",TS:"object",TT:"offsetHeight",TU:"offsetLeft",TV:"offsetTop",TW:"offsetWidth",TX:"onclick",TY:"onmousemove",TZ:"onmouseout",UA:"onmouseover",UB:"onreadystatechange",UC:"outerBorder",UD:"outsideClickCloses",UE:"overlayFadeDuration",UF:"overlayOpacity",UG:"ownerDocument",UH:"paddingBottom",UI:"paddingLeft",UJ:"paddingRight",UK:"Panel",UL:"parentNode",UM:"parentWindow",UN:"position",UO:"printLinkCorner",UP:"proportional",UQ:"proportionalResize",UR:"Radius",US:"removeAttribute",UT:"removeChild",UU:"removeEvent",UV:"replace",UW:"resizeDuration",UX:"resizeTool",UY:"roundCorners",UZ:"setAttribute",VA:"setInnerHTML",VB:"setRequestHeader",VC:"shadowSize",VD:"shadowType",VE:"showContent",VF:"showHints",VG:"showItemNumber",VH:"showNavOverlay",VI:"showNewWindowIcon",VJ:"showPlayPause",VK:"silverlight",VL:"slideshow",VM:"splitResize",VN:"stopEvent",VO:"string",VP:"strings",VQ:"substring",VR:"toLowerCase",VS:"touchstart",VT:"visibility",VU:"visible",VV:"WidgetDiv",VW:"winload"});(function(){var a=true,b=false,c=null;fb.extend(fb.proto,{version:"4.20",build:"2010/10/31",CD:{roundCorners:"all",cornerRadius:12,shadowType:"drop",shadowSize:12,outerBorder:1,innerBorder:1,padding:24,panelPadding:8,overlayOpacity:55,modal:a,titleAsCaption:a,autoFitImages:a,autoFitHTML:a,autoFitMedia:a,autoFitSpace:5,resizeImages:a,resizeTool:"cursor",captionPos:"bl",caption2Pos:"tc",infoLinkPos:"bl",printLinkPos:"bl",newWindowLinkPos:"tr",itemNumberPos:"bl",indexLinksPos:"br",controlsPos:"br",controlsType:fb.PI,centerNav:b,boxLeft:fb.PI,boxTop:fb.PI,youtubeAutoEnd:a,showIE6EndOfLife:b,enableDragMove:a,stickyDragMove:a,enableDragResize:b,stickyDragResize:a,draggerLocation:fb.SB,showItemNumber:a,showClose:a,showNewWindowIcon:a,closeOnNewWindow:b,preloadAll:a,cacheAjaxContent:b,centerOnResize:a,disableScroll:b,randomOrder:b,colorTheme:fb.PI,strongControls:b,language:fb.PI,floatboxClass:"floatbox",cycleClass:"fbCycler",tooltipClass:"fbTooltip",hideObjects:a,hideJava:a,doAnimations:a,resizeDuration:3.5,imageFadeDuration:3,overlayFadeDuration:4,startAtClick:a,zoomImages:a,liveImageResize:a,splitResize:"no",cycleInterval:5,cycleFadeDuration:4.5,cyclePauseOnHover:b,navType:"both",navOverlayWidth:35,navOverlayPos:30,showNavOverlay:"never",showHints:"once",enableWrap:a,enableKeyboardNav:a,outsideClickCloses:a,imageClickCloses:b,numIndexLinks:0,showIndexThumbs:a,pipIndexThumbs:a,maxIndexThumbSize:0,slideInterval:4.5,endTask:"exit",showPlayPause:a,startPaused:b,pauseOnPrev:a,pauseOnNext:b,pauseOnResize:a,ie9betaSafe:a,licenseKey:""},HR:20,ES:16,BP:60,LF:1,BQ:8,GI:140,GH:100,JR:750,FZ:120,GJ:70,IO:15,CT:45,GT:45,FV:Math.ceil,FW:Math.floor,FX:Math.log,O:Math.max,P:Math.min,FY:Math.random,Q:Math.round,ER:Infinity,KF:String.fromCharCode,DK:function(d){return parseInt(d,10)},DH:function(d){return parseFloat(d)},I:function(d,e){return setTimeout(d,e)},KV:function(d){return !!(d&&d.D&&d.KG!=="direct"&&d.KG!==fb.SY)},HE:function(){return(new Date).getTime()},AO:(location.protocol+"//"+location.host)[fb.VR](),AV:(navigator.language||navigator.userLanguage||navigator.systemLanguage||navigator.AV||"en")[fb.VQ](0,2),instances:[],children:[],anchors:[],G:[],X:[],HX:[],HY:[],AD:[],GL:{},IA:{},CR:{},L:{},HQ:{},CS:{},JX:function(){if(!document.body){return fb.I(fb.JX,50)}var d="self",f=(self.fbPageOptions&&fbPageOptions.framed)||/framed/.test(fb.FI);if(!(f||self===parent)){try{if(!fb.FE(parent.location.href)){d="parent"}}catch(g){}if(d==="parent"&&!(parent.fb&&parent.fb.EU)){return fb.I(fb.JX,50)}}if(document.compatMode==="BackCompat"){alert("Floatbox does not support quirks mode.\nPage needs to have a valid doctype declaration.");return}if(d==="self"){fb.ET()}else{self.fb=parent.fb}(function(){var e=self[fb.QM],h=e&&e.body;if(!(h&&fb.EU)){return fb.I(arguments.callee,50)}fb.AD.push(self);document.fbAnchorCount=h[fb.SG]("a").length;if(fb.EN){fb.proto.BH=fb.DU(fb.DD())}fb[fb.PB](h);fb[fb.PC](fb.ie?h:e,"mousedown",function(i){try{fb.BJ=i.clientX;fb.BK=i.clientY;fb.BI=i.target;fb.I(function(){try{fb.BJ=fb.BK=fb.BI=c}catch(j){}},250)}catch(i){}});if(d==="self"){fb.K(c,fb.PE)}if(fb[fb.PL]){fb.I(function(){if(!fb.AN){fb.AN=a;fb.start(fb[fb.PL])}},100)}if(fb.EL===a){fb.DL("ie6")}})()},ET:function(){var l=this,h=fb.proto;function j(n){return n+(n[fb.VQ](n.length-1)==="/"?"":"/")}if(!l.EY){h.EY=j(l[fb.QI].installBase||l.DO("script","src",/(.*)floatbox.js(?:\?|$)/i)||l.DO("link","href",/(.*)floatbox.css(?:\?|$)/i)||"/floatbox/")}if(!l[fb.SQ]){l.DL("options",l.EY);l.I(function(){l.ET()},25);return}l[fb.TB].push(l);l.M=l.JT=l[fb.TB].length-1;l.F=[];l.HC=[];l.EB=[];l.KL={};l.T={};l.BV={};l.FA=fb.EU;if(!l.FA){l.parent=l.fbParent=l.topBox=l[fb.TD]=l;l.DN();var f={},k=navigator.userAgent,d=navigator.appVersion,i;function e(o,n){return l.DH(o.split(n)[1])}f.FT=d[fb.SW]("Macintosh")>-1;if(l.EO){f.ie=a;f.ie9=l.EO===9;f.EN=l.EO<9;f.EM=l.EO<8;f.EL=l.EO<7;f.EP=(i=e(d,"Windows NT "))&&i<6;f.EJ=d[fb.SW](" x64;")>0}else{if(window.opera){f.opera=a;f.HK=l.DH(d)<9.5;f.HJ=e(k,"Version/")>=10.5}else{if(k[fb.SW]("AppleWebKit")>=0){f.KZ=a;f.LA=f.FT;f.mobile=k[fb.SW]("Mobile")>=0}else{if((i=e(k,"Firefox/"))){f.ff=a;f.CX=i<3;f.CW=!f.CX;f.CV=f.FT}else{if((i=e(k,"SeaMonkey/"))){f.seaMonkey=a;f.JA=i<2}}}}}if(/Kindle|nook brow/.test(k)){f.IG=a}l.extend(h,f,{HF:{},Z:self,H:document,CF:document[fb.QN],CG:document[fb.SG]("head")[0],C:document.body,GK:j(l[fb.QI].modules||l.EY+"modules/"),FL:j(l[fb.QI].languages||l.EY+"languages/"),DQ:j(l[fb.QI].graphics||l.EY+"graphics/"),rtl:l[fb.SM](document.body,"direction")==="rtl"});l.DL("core")}else{l.parent=l.fbParent=fb[fb.TD];fb.topBox=fb[fb.TD]=l;fb.children.push(l)}var m=l.DQ;l.IP=m+"magnify_plus.cur";l.IL=m+"magnify_minus.cur";l.HD=m+"404.jpg";l.AQ=m+"blank.gif";var g=/\bautoStart=(.+?)(?:&|$)/i.exec(location.search);l.AM=g?g[1]:c;l.EU=a;return l},DO:function(e,d,j){var h=document[fb.SG](e),g=h.length,f;while(g--){if((f=j.exec(h[g][d]))){return f[1]||"./"}}return""},DN:function(){var e=this,d;function f(i){var h={},g;for(g in i){if(i.hasOwnProperty(g)){h[g==="img"?fb.ST:g]=e.HT(i[g])}}return h}e.L.L=e[fb.SQ].globalOptions||{};e.L.BC=e[fb.SQ].childOptions||{};e.L.KS=f(e[fb.SQ].typeOptions);e.L.BE=f(e[fb.SQ].classOptions);e.HQ.L=self.fbPageOptions||{};e.HQ.BC=self.fbChildOptions||{};e.HQ.KS=f(self.fbTypeOptions);e.HQ.BE=f(self.fbClassOptions);if((e.L.L.enableCookies||e.HQ.L.enableCookies)&&(d=/fbOptions=(.+?)(;|$)/.exec(document.cookie))){e.extend(e.CS,e.HT(d[1]))}if(e.L.L[fb.QS]||e.HQ.L[fb.QS]||(location.search&&/enableQueryStringOptions=true/i.test(location.search))){e.extend(e.CS,e.HT(location.search[fb.VQ](1)))}e.JF(e.CD);e.JF(e.L.L);e.JF(e.HQ.L);e.JF(e.CS)},JE:function(d,j){var f=this,h={},g=f.L,i=f.HQ,e=((d.AH||"")+" "+(d.FG.BD||""))[fb.UV](/\s+/g," ")[fb.UV](/^\s+|\s+$/g,"").split(" ");function k(n){var l={},m=e.length;while(m--){f.extend(l,n.BE[e[m]])}return l}f.extend(h,f.CD,g.L);if(j){f.extend(h,g.BC)}f.extend(h,g.KS[d.type]);if(d.KG){f.extend(h,g.KS[d.KG])}f.extend(h,k(g),i.L);if(j){f.extend(h,i.BC)}f.extend(h,i.KS[d.type]);if(d.KG){f.extend(h,i.KS[d.KG])}f.extend(h,k(i),f.CS,d.FG);if(!d.HM){d.HM=h}return(d.W=h)},tagAnchors:function(d){this[fb.PB](d)},activateElements:function(g){var o=this;if(!o.EU){return o.I(function(){o[fb.PB](g)},50)}if(!(g=fb$(g))){if(o.CC){o.CC(-1)}for(var k=0;k<o.AD.length;k++){try{if(o.AD[k]&&o.AD[k][fb.QM]){o[fb.PB](o.AD[k][fb.QM])}}catch(l){}}return}function h(p){var r=g[fb.SG](p);for(var q=0,e=r.length;q<e;q++){o.HS(r[q],c,b,m)}}function d(u,p){var t=o.HT(u[fb.SD]("data-fb-options")||u[fb.SD]("rev")||""),r=u[fb.SG](p),s=r.length;if(!t.autoTypes){t.autoTypes="image|media|html"}t.BD=u[fb.PV];while(s--){var e=r[s];if(!/\bnofloatbox\b/i.test(e[fb.PV]+" "+e[fb.SD]("rel"))){var v=o.HT(e[fb.SD]("data-fb-options")||e[fb.SD]("rev")||""),q=o.extend({},t,v);e[fb.UZ]("data-fb-options",o.FU(q))}}}var m=o.ownerInstance(g),j=o[fb.SF](o.floatboxClass,g[fb.UG]||g),k=j.length;while(k--){var f=j[k];if(!/^a(rea)?$/.test(o.J(f))){d(f,"a");d(f,"area")}}h("a");h("area");var n=g[fb.UG]||g;if(o.HY.length){o.DL("popup");o.HV(n)}var j=o[fb.SF](o.cycleClass,g);if(j.length){o.DL("cycler");o.BX(j,m)}var j=o[fb.SF](o.tooltipClass,g);if(j.length){o.DL("tooltip");o.KN(j,n,m)}},HS:function(d,g,l,n){var p=this,o={},m;o.FG=g||{};d=d||o.FG.source||o.FG.html||o.FG.href;if(!d&&o.FG.showThis!==b){return}o.source=o.D=d;var k=p.anchors.length;while(k--){if(p.anchors[k].source===d){return l?p.anchors[k]:p.undefined}}o.KH=l;if(l){o.M=fb[fb.TD].M}else{o.M=isNaN(n)?p.ownerInstance(o.AE):n}if(p.typeOf(d)==="node"){if(/^a(rea)?$/.test(p.J(d))){var j=p.HT(d[fb.SD]("data-fb-options")||d[fb.SD]("rev"));o.FG=p.extend(j,o.FG);o.href=decodeURI(d.href||"");o.AI=d[fb.SD]("rel")||"";o.AJ=d[fb.SD]("title")||"";o.AH=d[fb.PV]||"";o.HP=d[fb.UG];o.AE=d;o.KK=d[fb.SG]("img")[0]||c;if((m=(new RegExp("\\b"+p.floatboxClass+"(\\S*)","i")).exec(o.AH))){o.KH=a;if(m[1]){o.group=m[1]}}else{if(p.HQ.L.autoGallery&&!/\bnofloatbox\b/i.test(o.AH+" "+o.AI)&&p.CY(o.href)===fb.ST){o.KH=a;o.group=".autoGallery"}else{if((m=/^(?:floatbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)(.*)/i.exec(o.AI))){o.KH=a;o.group=m[1];if(/^(slide|lyte)show/i.test(o.AI)){o.FG.doSlideshow=a}else{if(/^(i|lyte)frame/i.test(o.AI)){o.type="html";o.KG=fb.SS}}}}}if(o.KK&&((m=/(?:^|\s)fbPop(up|down|left|right|pip)(?:\s|$)/i.exec(o.AH)))){o.HZ=m[1];p.HY.push(o)}}else{o.type="html";o.KG=fb.SY}}o.D=o.FG.source||o.FG.href||o.href||d;if(!o.type){o.D=p.decodeHTML(o.D);if(/<.+>/.test(o.D)){o.type="html";o.KG="direct"}else{if((m=/#([a-z][^\s=]*)$/i.exec(o.D))){var h=p.CZ(m[1],o.HP);if(h){o.D=h;o.type="html";o.KG=fb.SY}}}if(!o.type){o.type=(o.FG.type||p.CY(o.D))[fb.VR]();if(o.type==="img"){o.type=fb.ST}if(/^(iframe|inline|ajax|direct)$/.test(o.type)){o.KG=o.type;o.type="html"}if(/^(flash|quicktime|wmp|silverlight|pdf)$/.test(o.type)){o.KG=o.type;o.type=fb.TG}}}if(!o.KH&&o.FG.autoTypes&&(o.FG.autoTypes[fb.SW](o.type)>-1||(o.KG&&o.FG.autoTypes[fb.SW](o.KG)>-1))){o.KH=a}if(!o.KH){return}if(p.ie&&o.KG==="pdf"&&p.FE(o.D)){o.type="html";o.KG=fb.SS}if(o.KG===fb.SY){o.BO=p.LC(o.D)}p.JE(o);o.group=o.W.group||o.group||"";if(l){p.anchors.splice(0,0,o)}else{p.anchors.push(o)}if(o.type===fb.TG){p.DL(fb.TG)}if(o.href&&!fb[fb.PL]){if(p.AM){if(o.W.showThis!==b&&o.href[fb.SW](p.AM)>-1){fb[fb.PL]=o}}else{if(o.W[fb.PL]===a){fb[fb.PL]=o}else{if(o.W[fb.PL]==="once"){var m=/fbAutoShown=(.+?)(?:;|$)/.exec(document.cookie),f=m?m[1]:"",e=escape(o.href);if(f[fb.SW](e)===-1){fb[fb.PL]=o;document.cookie="fbAutoShown="+f+e+"; path=/"}}}}}if(p.EL&&o.AE){o.AE.hideFocus="true"}if(o.AE&&!l){p[fb.PC](o.AE,"click",p.DD(o,p),p.BH,o.M);o.AE[fb.TX]=c}if(l){return o}},DD:function(d,e){return function(f){if(!(f&&(f.ctrlKey||f.metaKey||f.shiftKey||f.altKey))||d.W.showThis===b||(d.type!==fb.ST&&d.KG!==fb.SS)){e.start(this);return e[fb.VN](f)}}},CY:function(j){if(typeof j!==fb.VO){return""}var g=j.search(/[\?#]/),f=(g!==-1)?j[fb.VQ](0,g):j,g=f.lastIndexOf(".")+1,h=g?f[fb.VQ](g)[fb.VR]():"",e,k={youtube:/\.com\/(watch\?v=|watch\?(.+)&v=|v\/[\w\-]+)/,"video.yahoo":/\.com\/watch\/\w+\/\w+/,dailymotion:/\.com\/swf\/\w+/,vimeo:/\.com\/\w+/,vevo:/\.com\/(watch\/\w+|videoplayer\/(index|embedded)\?)/i};if(/^(jpe?g|png|gif|bmp)$/.test(h)){return fb.ST}if(!h||/^(html?|php\d?|aspx?)$/.test(h)){return fb.SS}if(h==="swf"){return"flash"}if(h==="pdf"){return"pdf"}if(h==="xap"){return fb.VK}if(/^(mpe?g|movi?e?|3gp|3g2|m4v|mp4|m1v|mpe|qt)$/.test(h)){return"quicktime"}if(/^(wmv?|avi|asf)$/.test(h)){return"wmp"}if((e=/^(?:http:)?\/\/(?:www.)?([a-z\.]+)\.com\//i.exec(f))&&e[1]){var d=e[1][fb.VR]();if(k[d]&&k[d].test(j)){return"flash"}}return fb.SS},CZ:function(j,f){var e=this,h=c;if(typeof j===fb.VO){h=(f&&f[fb.SE](j))||e.H[fb.SE](j)||fb$(j);var d=fb[fb.TB].length,g;while(!h&&d--&&(g=fb[fb.TB][d])){if(e.J(g[fb.QZ])===fb.SS&&!e.FE(g[fb.QZ].src)){if((f=e[fb.SH](g[fb.QZ]))){h=f[fb.SE](j)}}}}return h},LC:function(g){var f=this,d=g[fb.UL],e="fbWrapper";if(d[fb.PV]===e){return d}else{var h=g[fb.UG][fb.QF]("div");h[fb.PV]=e;h.style[fb.QL]=f[fb.SM](g,fb.QL);h.style[fb.VT]=f[fb.SM](g,fb.VT);d.replaceChild(h,g);h[fb.PG](g);if(f[fb.SM](g,fb.QL)===fb.TQ){g.style[fb.QL]="block"}if(f[fb.SM](g,fb.VT)===fb.SR){g.style[fb.VT]=fb.VU}return h}},HT:function(m){var o=this,l={};if(o.typeOf(m)===fb.TS){return m}if(typeof m!==fb.VO||!m){return l}var k=[],j,g=/`([^`]*?)`/g;g.lastIndex=0;while((j=g.exec(m))){k.push(j[1])}if(k.length){m=m[fb.UV](g,"``")}m=m[fb.UV](/[\r\n]/g," ");m=m[fb.UV](/\s{2,}/g," ");m=m[fb.UV](/\s*[:=]\s*/g,":");m=m[fb.UV](/\s*[;&,]\s*/g," ");m=m[fb.UV](/^\s+|\s+$/g,"");m=m[fb.UV](/(:\d+)px\b/gi,"$1");var e=m.split(" "),h=e.length;while(h--){var f=e[h].split(":"),d=f[0],n=f[1];if(d){if(!isNaN(n)){n=+n}else{if(n==="true"){n=a}else{if(n==="false"){n=b}else{if(n==="``"){n=k.pop()||""}}}}l[d]=n}}return l},FU:function(f){var e="",d,g;for(d in f){g=f[d];if(g!==""){if(/[:=&;,\s]/.test(g)){g="`"+g+"`"}e+=d+":"+g+" "}}return e},JF:function(f){var e=this;for(var d in f){if(e.CD.hasOwnProperty(d)&&f[d]!==""){e[d]=f[d]}}},DL:function(e,f){var d=fb;if(e&&!(d[e+"Loaded"]||d.GL[e])){if(!/core|options/.test(e)&&!d.coreLoaded){return d.I(function(){d.DL(e,f)},120)}d.GL[e]=a;d[fb.QU]((f||d.GK)+e+".js"+d.FI)}},executeJS:function(d,l){var m=this,k=m.H||document,i=m.CG||k[fb.SG]("head")[0]||k[fb.QN],g=k[fb.QF]("script");function f(){i[fb.UT](g);g=g.onload=g[fb.UB]=c;if(typeof l===fb.SC){l()}}g.type="text/javascript";if(l===a){d='fb.execRtn = eval("'+d[fb.UV](/\\/g,"\\\\")[fb.UV](/"/g,'\\"')+'")';try{g[fb.PG](document.createTextNode(d))}catch(h){g.text=d}i[fb.PG](g);var j=fb.execRtn;f();delete fb.execRtn;return j}else{g.onload=g[fb.UB]=function(){if(/^$|complete|loaded/.test(this.readyState||"")){f()}};g.src=d;i.insertBefore(g,i[fb.RZ])}},getStyle:function(l,e,q){var r=this,g;function o(s){return q?r.Q(r.DH(s)||0):s||""}if(!(l=fb$(l))){return c}if(window.getComputedStyle){var f=l[fb.UG]&&l[fb.UG][fb.QJ];if(!(g=f&&f.getComputedStyle(l,""))){return c}if(e){e=e[fb.UV](/([A-Z])/g,"-$1")[fb.VR]();return o(g.getPropertyValue(e))}}e=e&&e[fb.UV](/-(\w)/g,function(s,t){return t.toUpperCase()});if(l.currentStyle){g=l.currentStyle;if(e){var m=g[e]||"";if(/^[\.\d]+[^\.\d]/.test(m)&&!/^\d+px/i.test(m)){var p=l[fb.UG],i=p[fb.QF]("xxx"),n,h;if(/html|body/.test(fb.J(l))){n=l;h=l[fb.RZ]}else{n=l[fb.UL];h=l}n.insertBefore(i,h);i.style.left=m;m=i.style.pixelLeft+"px";n[fb.UT](i)}return o(m)}}if(g&&!e){var k="",d,j;if(g.cssText){k=g.cssText}else{for(d in g){j=g[d];if(isNaN(d)&&j&&typeof j===fb.VO){k+=d[fb.UV](/([A-Z])/g,"-$1")[fb.VR]()+": "+j+"; "}}}return k}return o((l.style&&e&&l.style[e])||"")},addEvent:function(g,j,h,m,l){var p=this;if((g=fb$(g))){if(g[fb.TO]==9&&/^DOMContentLoaded$/i.test(j)){var k=p.CH.length;while(k--){if(p.CH[k]===h){break}}if(k===-1){p.CH.push(h)}}else{if(g[fb.PD]){g[fb.PD](j,h,b)}else{if(g.attachEvent){if(!m){m=p.DU(h)}p[fb.UU](g,j,h,m);var f="on"+j,n=j+m,e=f+m,o=g[fb.UG]||g,d=o[fb.UM]||g;g[n]=h;g[e]=function(q){if(!q){var i=g[fb.UG];q=i&&i[fb.UM]&&i[fb.UM].event}if(q&&!q.target){q.target=q.srcElement}if(g&&g[n]){return g[n](q)}};g.attachEvent(f,g[e])}}}if(l||l===0){if(!fb.CR[l]){fb.CR[l]=[]}fb.CR[l].push({a:g,b:j,c:h,d:m})}}return h},removeEvent:function(g,i,h,k){var m=this;g=fb$(g);try{if(!(g&&(g[fb.TO]||g[fb.QM]))){return}}catch(j){return}if(g[fb.PD]){g.removeEventListener(i,h,b)}else{if(g.detachEvent){if(!k){k=m.DU(h)}var f="on"+i,l=i+k,d=f+k;if(g[d]){g.detachEvent(f,g[d])}g[d]=g[l]=c}}},DU:function(g){var f=g+"",e=f.length,d=e;while(d--){e=((e<<5)^(e>>27))^f.charCodeAt(d)}return e},stopEvent:function(f){if((f=f||window.event)){if(f.stopPropagation){f.stopPropagation()}if(f.preventDefault){f.preventDefault()}try{f.cancelBubble=a}catch(d){}try{f.returnValue=b}catch(d){}try{f.cancel=a}catch(d){}}return b},getElementsByClassName:function(n,f){var p=this;if(!(f=fb$(f))||f[fb.TO]==9){f=(((f&&f[fb.UG])||f)||document)[fb.QN]}if(p.typeOf(n)===fb.PH){var o=arguments.callee,e=n.pop();if(n.length){return o(n,f).concat(o(e,f))}else{n=e}}var m=[],d,k,g,l;if(f[fb.SF]){d=f[fb.SF](n);k=d.length;while(k--){m[k]=d[k]}}else{var h=new RegExp("(^|\\s)"+n+"(\\s|$)");d=f[fb.SG]("*");for(k=0,g=0,l=d.length;k<l;k++){if(h.test(d[k][fb.PV])){m[g++]=d[k]}}}return m},typeOf:function(d){var f=typeof d;if(f===fb.TS){if(!d){return"null"}var e=d.constructor;if(e===Array){return fb.PH}if(e===String){return fb.VO}if(d[fb.TO]&&e!==Object){return"node"}}return f},J:function(d){return((d&&d.nodeName)||"")[fb.VR]()},ownerInstance:function(j){if(!(j=fb$(j))){return}var f=this,l,h,g,e=j[fb.UG]||j,d=fb[fb.TB].length;function k(m){var o=f[fb.SH](m);if(o===e){return a}var n=(o||m)[fb.SG](fb.SS),i=n.length;while(i--){if(k(n[i])){return a}}return b}while(d--){if((l=fb[fb.TB][d])&&(h=l.fbBox)){if(f[fb.TN](h,j)||((g=l[fb.QZ])&&k(g))){return d}}}return -1},nodeContains:function(d,e){if(!((d=fb$(d))&&(e=fb$(e)))){return}if(e[fb.TO]==3){e=e[fb.UL]}if(d===e){return a}if(!e[fb.TO]||e[fb.TO]==9){return b}if(d[fb.TO]==9){d=d[fb.QN]}if(d.contains){return d.contains(e)}if(d[fb.PZ]){return !!(d[fb.PZ](e)&16)}},hasAttribute:function(f,e){if(!(f=fb$(f))){return}var d=this;if(f.hasAttribute){return f.hasAttribute(e)}return(new RegExp("<[^>]+[^>\\w-=\"']"+e+"[^\\w\\-]","i")).test(d[fb.SK](f))},encodeHTML:function(d){if(typeof d!==fb.VO){return d}return d[fb.UV](/&/g,"&amp;")[fb.UV](/</g,"&lt;")[fb.UV](/>/g,"&gt;")[fb.UV](/"/g,"&quot;")},decodeHTML:function(d){if(typeof d!==fb.VO){return d}return d[fb.UV](/&lt;/g,"<")[fb.UV](/&gt;/g,">")[fb.UV](/&quot;/g,'"')[fb.UV](/&apos;/g,"'")[fb.UV](/&amp;/g,"&")},setInnerHTML:function(d,h){if(!(d=fb$(d))){return b}try{d[fb.TA]=h;return a}catch(l){}try{var m=d[fb.UG],j=m.createRange();j.selectNodeContents(d);j.deleteContents();if(h){var f=(new DOMParser).parseFromString('<div xmlns="http://www.w3.org/1999/xhtml">'+h+"</div>","application/xhtml+xml"),n=f[fb.QN].childNodes;for(var g=0,k=n.length;g<k;g++){d[fb.PG](m.importNode(n[g],a))}}return a}catch(l){}return b},getOuterHTML:function(d){if(!(d=fb$(d))){return""}if(d.outerHTML){return d.outerHTML}var e=(d[fb.UG]||d[fb.QM])[fb.QF]("div");e[fb.PG](d.cloneNode(a));return e[fb.TA]},getIframeWindow:function(g){var f=this,d=fb.SS;g=fb$(g);if(f.J(g)!==d){if(f.J(f[fb.QZ])===d){g=f[fb.QZ]}else{if(f.J(fb[fb.TD][fb.QZ])===d){g=fb[fb.TD][fb.QZ]}}}if(f.J(g)===d){try{var i=g.contentWindow||(g.contentDocument&&g.contentDocument[fb.QJ]);if(i.location.href){return i}}catch(h){}}return c},getIframeDocument:function(e){var d=this,f=d[fb.SI](e);return(f&&f[fb.QM])||c},FE:function(e){var d=this;if(typeof e!==fb.VO){return a}if(e&&e[fb.SW]("//")===0){e=(d.Z||self).location.protocol+e}return/^https?:\/\/\w/i.test(e)&&e[fb.VR]()[fb.SW](fb.AO)!==0},flashObject:function(){var i=this,f=arguments[0];if(typeof f!==fb.TS){f={url:arguments[0],width:arguments[1],height:arguments[2],params:arguments[3],node:arguments[4],id:arguments[5],altContent:arguments[6]}}var d=f.width?(f.width+"")[fb.UV]("px",""):"100%",j=f.height?(f.height+"")[fb.UV]("px",""):"100%",k={wmode:"opaque",scale:"exactfit",play:"false",quality:"high"},l=fb$(f.node);i.extend(k,i.HT(f.params));var g='<object class="fbFlashObject" width="'+d+'" height="'+j+'" '+(f.id?'id="'+f.id+'" ':"");if(i.EO){g+='classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0"><param name="movie" value="'+f.url+'" />'}else{g+='type="application/x-shockwave-flash" data="'+f.url+'"><param name="pluginspage" value="http://get.http://www.adobe.com/flashplayer/" />'}for(var e in k){if(k.hasOwnProperty(e)){g+='<param name="'+e+'" value="'+k[e]+'" />'}}g+=(f.altContent||"")+"</object>";if(l&&l[fb.TO]==1){i[fb.VA](l,g)}else{document.write(g)}},start:function(f,d){var e=this;e.I(function(){e.start(f,d)},100)},preload:function(e,g,f){var d=this;d.I(function(){d.preload(e,g,f)},250)},BX:function(e,f){var d=this;d.I(function(){d.BX(e,f)},200)},KN:function(f,e,g){var d=this;d.I(function(){d.KN(f,e,g)},200)},HV:function(e){var d=this;d.I(function(){d.HV(e)},150)},translate:function(f,d,g){var e=this;e.I(function(){e.translate(f,d,g)},200)},ajax:function(h,g){var d=this;if(g===d.undefined){if(window.XMLHttpRequest){g=new XMLHttpRequest}else{try{g=new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){try{g=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){}}}}g=g||b;d.I(function(){d.ajax(h,g)},200);return g},printNode:function(f,e){var d=this;d.I(function(){d.printNode(f,e)},200)},K:function(e,f){var d=this;d.I(function(){d.K(e,f)},200)}})})();var fb$=function(a){return typeof a===fb.VO?(document[fb.SE](a)||null):a};if(typeof fb.EO==="undefined"){fb.proto.FI=fb.DO("script","src",/floatbox.js(\?.*)$/i);fb.proto.EO=0;(function(){var a=document[fb.QF]("div");fb[fb.VA](a,'<!--[if IE]><div id="fb_ieChk"></div><![endif]-->');if(a[fb.RZ]&&a[fb.RZ].id==="fb_ieChk"){if(document.documentMode){fb.proto.EO=document.documentMode}else{fb[fb.VA](a,'<!--[if lt IE 7]><div id="fb_ie6"></div><![endif]-->');fb.proto.EO=a[fb.RZ]&&a[fb.RZ].id==="fb_ie6"?6:7}}fb[fb.VA](a,"");a=null})()}fb[fb.PC](document,"DOMContentLoaded",fb.JX);fb[fb.PC](window,"load",function(){fb.HH();var g=self[fb.QM].body;if(!(g&&fb.EU)){return fb.I(arguments.callee,50)}if(g[fb.SG]("a").length>document.fbAnchorCount){fb[fb.PB](g)}try{var b=parent.fb[fb.TD];if(b[fb.SI]()===self){if(b.coreLoaded&&b.IZ==="no"){b.resize()}if(!b.modal){b[fb.PC](document[fb.QN],"click",function(){if(b!==parent.fb.topBox){b.IQ()}})}}}catch(f){}if(fb.Z===self){fb.K(null,fb.VW)}var c;if(self===fb.Z&&fb[fb.VD]!==fb.TQ&&fb[fb.VC]){var d=fb.DQ+"shadow",a="_s"+fb[fb.VC]+"_r"+fb[fb.QE]+".png";c=[fb.AQ,d+"Top"+a,d+"Right"+a,d+fb.QD+a,d+fb.QD+a[fb.UV]("_r"+fb[fb.QE],"_r0"),d+"Bottom"+a,d+"Left"+a]}fb.I(function(){if(self.fb){fb.preload(c,null,true)}},200);fb[fb.PC](window,"unload",function(){if(self.fb&&fb.E&&fb.Z===self){fb.E("*");var e=fb[fb.TB].length;while(e--){fb.CC(e);fb.CE(e)}fb.CC(-1);var e=fb.IA.length;while(e--){fb.IA[e]=null}}})});if(document[fb.PD]){document[fb.PD]("DOMContentLoaded",fb.HH,false)};(function(){/*@cc_on try{document.body.doScroll('up');return fb.HH();}catch(e){}/*@if (false) @*/if(/loaded|complete/.test(document.readyState))return fb.HH();/*@end @*/if(fb.CH.length)fb.I(arguments.callee,20);})();

;
/* AGGREGATED JS FILE: sites/all/themes/hamptonroads/floatbox/options.js */
fb.proto.globalOptions = {
// **********************************************
// EDIT ONLY WITHIN THE FOUR OPTION BLOCKS BELOW.
// See the instructions for information about setting floatbox options.
// See the options reference for details about all the available options.
// Commas are required after each entry except the last entry in a block.
// A comma on the last entry in a block will cause the option settings to fail in some browsers.

// globalOptions is where you enter a license key and change default floatbox options site-wide.
// Use the configurator.html form in this folder to generate globalOptions preferences through form selections.

globalOptions: {
  licenseKey: "Ql@dPlKaQkDs",          // Paste your license key between the quotes, or enter it in the configurator form.
  showIE6EndOfLife: true  // Everyone is encouraged to set this to true to give IE6 users a chance to upgrade.


},

// childOptions are preferences to be applied only to secondary floatboxes.
// Additional options can be added to this list,
// or remove an option to have it revert to the default or global setting.

childOptions: {
  cornerRadius: 4,
  shadowSize: 8,
  padding: 16,
  overlayOpacity: 45,
  resizeDuration: 3,
  imageFadeDuration: 3,
  overlayFadeDuration: 0
},

// Option settings can be assigned based on floatbox content type.
// The syntax of typeOptions is different than the object code above.
// Each type is assigned an option string formatted the same as
// the options placed in a link's data-fb-options (or rev) attribute.
// example - iframe: "color:blue showNewWindow:true",
// Javascript Object Notation can be used instead of the option string.

typeOptions: {
  image: "",
  // html settings apply to the 4 html sub-types that follow
  html: "",
    iframe: "",
    inline: "",
    ajax: "",
    direct: "",
  // media settings apply to the 5 media sub-types that follow
  media: "height:60%w",
    flash: "width:640",
    quicktime: "",
    wmp: "",
    silverlight: "height:82%",
    pdf: "height:95%",
  // tooltip settings can consist of tooltip-specific options in addition to the standard floatbox options
  tooltip: ""
},

// You can propogate settings to groups of anchors by assigning them a class
// and associating that class name with a string of options here.
// The syntax is the same as for typeOptions above.

classOptions: {
},

// END OF EDITABLE CONTENT
// ***********************
optionsLoaded: true };

;
/* AGGREGATED JS FILE: sites/all/themes/hamptonroads/floatbox/story_page_options.js */

fbPageOptions = {
  //controlsPos: "tl", 
  colorTheme: "white",
  modal:true, // overlay with bg color
  navType: "overlay",
  showNavOverlay: "always",  
  navOverlayWidth: 40,
  itemNumberPos: "tc",
  enableDragResize: true,
  numIndexLinks: -1,   
  pipIndexThumbs: false,
  hideObjects: true,
  showIndexThumbs: true, 
  caption2Pos: "tc", 
  indexLinksPos: "bc", 
  overlayOpacity: 50,
  overlayColor: "#000",
  maxIndexThumbSize: 110,
  preloadAll: true,
  zoomImages: false,
  resizeImages: false,
  cornerRadius: 4,
  resizeDuration: 2,
  panelPadding: 12
};

;
/* AGGREGATED JS FILE: sites/all/modules/comment_breakdown/js/comment_breakdown_display.js */
if(Drupal.jsEnabled){
  $(document).ready(function(){   
    
    
    
    var groupby_month_chkbox_is_checked = $('#edit-groupby-month').is(':checked');
    
    if(groupby_month_chkbox_is_checked){
      handle_groupby_month();
    }
    
    $("#edit-groupby-month").change(function() { 
      handle_groupby_month();
    });  
  
  
  function handle_groupby_month(){
    if ($("#edit-groupby-month").is(':checked') ){   
        $("#edit-begin-viewdate-day").hide();
        $("#edit-end-viewdate-day").hide();
        $("#edit-begin-viewdate-day").val('1');
        $("#edit-end-viewdate-day").val('1');
        $("#comment-breakdown tr:last").css({'background-color': '#FFF28E'});
     }else{
       $("#edit-begin-viewdate-day").show();
       $("#edit-end-viewdate-day").show();
     }
    
  }
  
  }); //doc ready
}

