/* nav */ $(document).ready(function () { $('#nav ul li').hover(function () { //show its submenu $('ul', this).slideDown(100); }, function () { //hide its submenu $('ul', this).slideUp(100); }); }); /* jQuery Coda-Slider v1.1 - http://www.ndoherty.com/coda-slider Copyright (c) 2007 Niall Doherty */ eval(function (p, a, c, k, e, d) { 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--) { d[e(c)] = k[c] || e(c) } k = [function (e) { return d[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 }('3(d(){3("4.T").1s("

16...<1t /><18 19=\'1a/11-1b.1c\' 1d=\'O...\'/ >

")});b j=0;3.1e.1f=d(f){f=3.1g({G:"1h",E:1i,1j:Q},f);P 6.w(d(){b o=3(6);o.7("p.O").1k();o.q("T").l("1l");b m=o.7("4.I").C();b k=o.7("4.I").1m();b U=m*k;o.7("4.t").K("C",U);b N=k*2;F(h.g&&D(h.g.s(1))<=k){b 9=D(h.g.s(1));b e=-(m*(9-1));3(6).7("4.t").K({H:e})}B{b 9=1};o.w(d(i){3(6).W("<4 r=\'J\' M=\'J"+j+"\'>1n<\\/4>");3(6).1o("<4 r=\'L\' M=\'L"+j+"\'>1q<\\/4>");3(6).W("<4 r=\'c\' M=\'c"+j+"\'><\\/v><\\/4>");3(6).7("4.I").w(d(n){3("4#c"+j+" v").X(""+3(6).S("10")+"<\\/a><\\/x>")});3("4#c"+j+" a").w(d(z){N+=3(6).5().C();3(6).12("u",d(){3(6).l("8").5().5().7("a").13(3(6)).q("8");b e=-(m*z);9=z+1;3(6).5().5().5().V().7("4.t").R({H:e},f.E,f.G)})});3("4#J"+j+" a").u(d(){F(9==1){b e=-(m*(k-1));9=k;3(6).5().5().7("4.c a.8").q("8").5().5().7("x:14 a").l("8")}B{9-=1;b e=-(m*(9-1));3(6).5().5().7("4.c a.8").q("8").5().15().7("a").l("8")};3(6).5().5().7("4.t").R({H:e},f.E,f.G);h.g=9;P Q});3("4#L"+j+" a").u(d(){F(9==k){b e=0;9=1;3(6).5().5().7("4.c a.8").q("8").5().5().7("a:y(0)").l("8")}B{b e=-(m*9);9+=1;3(6).5().5().7("4.c a.8").q("8").5().V().7("a").l("8")};3(6).5().5().7("4.t").R({H:e},f.E,f.G);h.g=9;P Q});3("a.1p-1r").u(d(){3(6).Y().7(".c v x a:y("+(D(3(6).S("A").s(1))-1)+")").17(\'u\')});3("4#c"+j).K("C",N);F(h.g&&D(h.g.s(1))<=k){3("4#c"+j+" a:y("+(h.g.s(1)-1)+")").l("8")}B{3("4#c"+j+" a:y(0)").l("8")}});j++})};', 62, 92, '|||jQuery|div|parent|this|find|current|cPanel||var|stripNav|function|cnt|settings|hash|location|||panelCount|addClass|panelWidth||container||removeClass|class|slice|panelContainer|click|ul|each|li|eq||href|else|width|parseInt|easeTime|if|easeFunc|left|panel|stripNavL|css|stripNavR|id|navWidth|loading|return|false|animate|attr|csw|stripViewerWidth|next|before|append|parents|tab|title|ajax|bind|not|last|prev|Loading|trigger|img|src|images|loader|gif|alt|fn|codaSlider|extend|expoinout|750|toolTip|remove|stripViewer|size|Left|after|cross|Right|link|prepend|br'.split('|'), 0, {})) $(document).ready(function () { /* carousel */ var theInt = null; var $crosslink, $navthumb; var curclicked = 0; theInterval = function (cur) { clearInterval(theInt); if (typeof cur != 'undefined') curclicked = cur; $crosslink.removeClass("current"); $navthumb.eq(curclicked).parent().addClass("current"); $("#movers-row a").eq(curclicked).trigger('click'); theInt = setInterval(function () { $crosslink.removeClass("current"); $navthumb.eq(curclicked).parent().addClass("current"); $("#movers-row a").eq(curclicked).trigger('click'); curclicked++; if (6 == curclicked) curclicked = 0; }, 5000); }; $("#main-photo-slider").codaSlider(); $navthumb = $(".nav-thumb"); $crosslink = $(".cross-link"); $navthumb.click(function () { var $this = $(this); theInterval($this.parent().attr('href').slice(1) - 1); return false; }); theInterval(); }); // tabbed content $(function () { $(".tab-nav > li > a").click(function (e) { e.preventDefault(); $(".tab-nav > li").removeClass("selected"); $(this).parent().addClass("selected"); var x = $(this).attr('rel'); $(".tabbed-content.active").removeClass("active"); $("#" + x).addClass("active"); }); $(".inner-tab-nav > li > a").click(function (e) { e.preventDefault(); $(".inner-tab-nav > li").removeClass("selected"); $(this).parent().addClass("selected"); var y = $(this).attr('rel'); $(".inner-tabbed-content.active").removeClass("active"); $("#" + y).addClass("active"); }); }); // footer social media carousel $("#featured a").click(function () { var x = $(this).attr("class"); if (x === "#twitter") { $(".collapse").removeClass("collapse"); $("#fb").addClass("collapse"); $("#you-tube").addClass("collapse"); } else if (x === "#fb") { $(".collapse").removeClass("collapse"); $("#twitter").addClass("collapse"); $("#you-tube").addClass("collapse"); } else { $(".collapse").removeClass("collapse"); $("#twitter").addClass("collapse"); $("#fb").addClass("collapse"); } $("#featured .selected").removeClass("selected"); $(this).addClass("selected"); }); $(".text-dec").click(function () { $(".content-box").css({ "font-size": "css property value" }); }); // text size adjustment var min = 8; var max = 18; function increaseFontSize() { var p = document.getElementsByTagName('p'); for (i = 0; i < p.length; i++) { if (p[i].style.fontSize) { var s = parseInt(p[i].style.fontSize.replace("px", "")); } else { var s = 12; } if (s != max) { s += 1; } p[i].style.fontSize = s + "px" } } function decreaseFontSize() { var p = document.getElementsByTagName('p'); for (i = 0; i < p.length; i++) { if (p[i].style.fontSize) { var s = parseInt(p[i].style.fontSize.replace("px", "")); } else { var s = 12; } if (s != min) { s -= 1; } p[i].style.fontSize = s + "px" } } window.onload = function () { if ($("#map_canvas").length){ var h = 500, w = 700; var c = new google.maps.Point((h / 2), (w / 2)); //array for the mouseovers below var x; var arrMouseovers = [{ lat: 38.901287, lon: -77.035106, description: '

Department of Veterans Affairs
810 Vermont Ave., NW
Washington, DC 20005

' }, { lat: 38.901747, lon: -77.035501, description: '

Department of Veterans Affairs
1575 I St., NW
Washington, DC 20005

' }, { lat: 38.901438, lon: -77.040887, description: '

Department of Veterans Affairs
1722 I St., NW
Washington, DC 20006

' }, { lat: 38.901204, lon: -77.02327, description: '

Department of Veterans Affairs
801 I St., NW
Washington, DC 20001

' }, { lat: 38.901797, lon: -77.016962, description: '

Department of Veterans Affairs
425 I St., NW
Washington, DC 20001

' }, { lat: 38.900728, lon: -77.040586, description: '

Department of Veterans Affairs
1717 H St., NW
Washington, DC 20006

' }, { lat: 38.898382, lon: -77.042539, description: '

Department of Veterans Affairs
1800 G St., NW
Washington, DC 20006

' }, { lat: 38.90588, lon: -77.004709, description: '

Department of Veterans Affairs
131 M St., NE
Washington, DC 20002

' }, { lat: 38.904527, lon: -77.006651, description: '

Department of Veterans Affairs
1100 First St., NE
Washington, DC 20002

' }, { lat: 38.903099, lon: -77.006447, description: '

Department of Veterans Affairs
90 K St., NE
Washington, DC 20002

' }]; var myMapOptions = { maxZoom: 19, minZoom: 13, zoom: 14, center: new google.maps.LatLng(38.901204, - 77.02327), mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myMapOptions); // loop over our arrays for (i = 0; i < arrMouseovers.length; i++) { // create a marker var marker = new google.maps.Marker({ title: arrMouseovers[i].title, position: new google.maps.LatLng(arrMouseovers[i].lat, arrMouseovers[i].lon), map: map }); bindInfoWindow(marker, map, "

" + arrMouseovers[i].description + "

"); mouseoverInfoWindow(marker, map, "

" + arrMouseovers[i].description + "

"); } var hoverOptions = { content: '', disableAutoPan: true, maxWidth: 0, pixelOffset: new google.maps.Size(-140, 0), zIndex: null, boxStyle: { background: "url('images/tip-up.png') no-repeat", width: "340px" }, closeBoxMargin: "10px 5px 3px", closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif", infoBoxClearance: new google.maps.Size(1, 1), isHidden: false, pane: "floatPane", enableEventPropagation: false }; var clickOptions = { content: '', disableAutoPan: false, maxWidth: 0, pixelOffset: new google.maps.Size(-140, 0), zIndex: null, boxStyle: { background: "url('images/tip-up.png') no-repeat", width: "340px" }, closeBoxMargin: "10px 5px 3px", closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif", infoBoxClearance: new google.maps.Size(10, 10), isHidden: false, pane: "floatPane", enableEventPropagation: false }; var hoverWindow = new InfoBox(hoverOptions); var clickWindow = new InfoBox(clickOptions); function bindInfoWindow(marker, map, html) { // clicking a marker google.maps.event.addListener(marker, 'click', function () { clickWindow.setContent(html); clickWindow.open(map, this); }); } function mouseoverInfoWindow(marker, map, html) { // mouse over a marker google.maps.event.addListener(marker, 'mouseover', function (e) { // getting the pixels coordinates function convertPoint(latLng) { var topRight = map.getProjection().fromLatLngToPoint(map.getBounds().getNorthEast()); var bottomLeft = map.getProjection().fromLatLngToPoint(map.getBounds().getSouthWest()); var scale = Math.pow(2, map.getZoom()); var worldPoint = map.getProjection().fromLatLngToPoint(latLng); return new google.maps.Point((worldPoint.x - bottomLeft.x) * scale, (worldPoint.y - topRight.y) * scale); } var x = convertPoint(e.latLng); // checking for positioning of infobox // east side if (x.x > 490) { hoverWindow.boxStyle_.background = "url('images/tip-up.png') no-repeat scroll 195px 0 transparent"; hoverWindow.pixelOffset_.height = 0; hoverWindow.pixelOffset_.width = -335; // south-east corner if (x.y > 365) { hoverWindow.boxStyle_.background = "url('images/tip-down.png') no-repeat scroll 195px bottom transparent"; hoverWindow.pixelOffset_.height = -175; hoverWindow.pixelOffset_.width = -335; } // west side } else if (x.x < 210) { hoverWindow.boxStyle_.background = "url('images/tip-up.png') no-repeat scroll -130px 0 transparent"; hoverWindow.pixelOffset_.height = 0; hoverWindow.pixelOffset_.width = -10; // south-west corner if (x.y > 365) { hoverWindow.boxStyle_.background = "url('images/tip-down.png') no-repeat scroll -130px bottom transparent"; hoverWindow.pixelOffset_.height = -175; hoverWindow.pixelOffset_.width = -10; } // south side } else if (x.y > 365) { hoverWindow.boxStyle_.background = "url('images/tip-down.png') no-repeat scroll 0px bottom transparent"; hoverWindow.pixelOffset_.height = -175; hoverWindow.pixelOffset_.width = -140; // default state } else { hoverWindow.boxStyle_.background = "url('images/tip-up.png') no-repeat scroll 0 0 transparent"; hoverWindow.pixelOffset_.height = -0; hoverWindow.pixelOffset_.width = -140; } hoverWindow.setContent(html); hoverWindow.open(map, this); }); // mouse out of a marker google.maps.event.addListener(marker, 'mouseout', function () { hoverWindow.close(); }); } } else { } } jQuery.fn.dataTableExt.oSort['us_date-asc'] = function (a, b) { var usDatea = $(a).html().split('/'); var usDateb = $(b).html().split('/'); var x = (usDatea[2] + usDatea[0] + usDatea[1]) * 1; var y = (usDateb[2] + usDateb[0] + usDateb[1]) * 1; return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }; jQuery.fn.dataTableExt.oSort['us_date-desc'] = function (a, b) { var usDatea = $(a).html().split('/'); var usDateb = $(b).html().split('/'); var x = (usDatea[2] + usDatea[0] + usDatea[1]) * 1; var y = (usDateb[2] + usDateb[0] + usDateb[1]) * 1; return ((x < y) ? 1 : ((x > y) ? -1 : 0)); }; $(document).ready(function () { $("#breadcrumbs ul li:last-child").addClass('last-child'); // default sorting $('.sort').dataTable({"bAutoWidth": false,"aaSorting": []}); // auto-sort disabled $('.faqs').dataTable({"bAutoWidth": false,"aaSorting": []}); // sorting by particular column $('.mou').dataTable({ "bAutoWidth": false, "aoColumns": [ null, null, { "sType": "us_date" } ] }); $('.grievances').dataTable({ "bAutoWidth": false, "aoColumns": [ { "sType": "us_date" }, null, null, null ] }); $('.grievances-2-col').dataTable({ "bAutoWidth": false, "aoColumns": [ { "sType": "us_date" }, null, { "sType": "us_date" }, null ] }); $('.grievances-nffe').dataTable({ "bAutoWidth": false, "aoColumns": [ null, { "sType": "us_date" }, null, { "sType": "us_date" }, null ] }); $('.grievances-afge').dataTable({ "bAutoWidth": false, "aoColumns": [ { "sWidth": "100px" }, { "sType": "us_date", "sWidth": "100px" }, { "sWidth": "100px" }, { "bSortable": false, "sWidth": "100px" }, { "bSortable": false, "sWidth": "100px" }, { "sWidth": "100px" } ] }); $("#featured > ul").tabs({ fx: { opacity: "toggle" } }).tabs("rotate", 10000, true); });