if ($j.browser.msie && ($j.browser.version == "6.0")) {
}
else {
	
}

$j(document).ready(function() {
	
	$j('#homeslide .slideshow').cycle({
		pager: '.pages'
	});
	
	// # Modal Window
	$j("a.modal").fancybox({
		//'modal' : true
		scrolling: 'no',
		autoScale: 'true'
	});
	
	//$j('.testimonials #scItem_1').parent().addClass('_testimonials_wrap');
	
	//var totalNumber = $j('.testimonials .box').length;
	
	$j('.testimonials .box').each(function(index) {
		
		if (index % 2 == 0)	{
			//console.log(index);
		} else {
			$j('.testimonials li:eq('+index+')').addClass('last');
		}
	  });
	
		//if (listNumber % 2 == 0) {
		//	$j('.testimonials li:eq('+listNumber+')').addClass('last');
		//}
	
	$j('._saBar ._dropdown ul').attr('id','bar');

	
	$j('._sc_gallery li:nth-child(6)').addClass('last');
	$j('._sc_gallery li:nth-child(12)').addClass('last');
	
	$j('a.reveal').click(function(e){
		e.preventDefault();
		var h = $j(this).attr('href');
		if ($j(h).length != 0) {
			$j(h).toggle();
			$j(this).toggleClass('revealed');
		}
	});	
	
	$j(".accordion").accordion({
		autoHeight: false
	});
	
	$j('._datatable').dataTable( {
		"bProcessing": true,
		"sAjaxSource": '_assets/ajax.php?a=list-members'		
	});
	
	$j('#footer #nav li:not(:last-child)').append('|');
	
	//$j('.textobj._saContent ul li').prepend('• ');
	
	//$j('._dropdown li').prepend('• ').remove();
	
	$j("thead input").keyup( function () {
		/* Filter on the column (the index) of this element */
		$j('._datatable').dataTable().fnFilter( this.value, $j("thead input").index(this) );
	});
	
	
	
});
