// JavaScript Document

jQuery(document).ready(function($) {
	$.extend($.expr[':'], {
		'containsi': function(elem, i, match, array) {
			return (elem.textContent || elem.innerText || '').toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
		}
	});

	$("input[type=checkbox]").css({width:'auto','border':'0'});
	$("input[type=hidden]").css({display:'none',width:'0'});
//
//	$(".enlarge").live('mouseover mouseout',function(){
//		$(this).find('img').toggle();
//	}).live('click',function(){
//		$c = $(this).next().clone(true).insertAfter(this);
//		$(this).next().openPopup();
//	});

	$('.ajaxSelect').each(function(i){
		$(this).load(SYS_AJAX+'ajax-load-select.php', {
			table: $(this).attr('table'),
			show: $(this).attr('show'),
			filter: $(this).attr('filter'),
			selected: $(this).attr('data-selected')
		});
	});
});
