$(document).ready(function() {

$('.ncat-96').expander({
	slicePoint:       295,  // default is 100
	expandText:         'read more…', // default is 'read more…'
	collapseTimer:    0, // re-collapses after 5 seconds; default is 0, so no re-collapsing
	userCollapseText: 'read less…'  // default is '[collapse expanded text]'
});

$('.ncat-95').expander({
	slicePoint:       348,  // default is 100
	expandText:         'read more…', // default is 'read more…'
	collapseTimer:    0, // re-collapses after 5 seconds; default is 0, so no re-collapsing
	userCollapseText: 'read less…'  // default is '[collapse expanded text]'
});

	//$(".ngg-gallery-thumbnail-box:nth-child(5n)").css("clear","left");
	//$(".ngg-gallery-thumbnail-box:eq(4)").css("clear","none");
	//$(".ngg-gallery-thumbnail-box:eq(5)").css("clear","left");
	$(".ngg-gallery-thumbnail-box").css("width","120px").css("height","95px");
	
	
	if (navigator.appVersion.indexOf("Mac")!=-1) {
jQuery('body').addClass('mac');}
else {
jQuery('body').addClass('pc');
};

  // Drop down navigation
	$('#menu-primary').superfish({speed:'100'}); 
	
	$('#menu-primary li').has('ul').addClass('dropdown');
	
	
	$('#menu-primary li ul').hover(function() {
		$(this).closest("li").toggleClass("dropdownhover");
	});	 
	
	$(".section-two-cols .module:last").each(function(){
      $(this).addClass("module-highlight module-last");
	});
	
	$("a[href*=.pdf]").click(function(){
		window.open(this.href);
		return false;
	});
	
	//$("a:not([href*='gridserver.com'])").click(function(){
		//window.open(this.href);
		//return false;
	//})
	
	$("a").filter(function() {
		return this.hostname && this.hostname !== location.hostname;
	}).attr('target', '_blank');


// DD_belatedPNG fix for IE6
if ($.browser.msie && $.browser.version <= 6 ) { 

	DD_belatedPNG.fix('.tl, .tr, .bl, .br, .section .module-highlight .module-content, .sidebar .module h3, span.overlay, .topage a');

}

});





