//jQuery.fn.loadAltAsImage = function(tgt) { 		var newFile=$(tgt).attr("title");		if($(tgt).attr("title")!=""){		$(tgt).attr("src",newFile);		$(tgt).attr("title","");	}		//alert(tgt+" "+$(tgt).attr("src"));	};jQuery.extend(jQuery.expr[':'], {	containsIgnoreCase: "(a.textContent||a.innerText||jQuery (a).text()||'').toLowerCase().indexOf((m[3]||'').toLowerCase())>=0"});jQuery.fn.paginateList = function(opts) { 	opts = jQuery.extend({		itemsPerPage:10,		btnHolder:"#btnHolder",		startPage:0,		btnLabel:"page",		callback:function(){return false;}	},opts||{}); 		opts.itemsPerPage = (!opts.itemsPerPage || opts.itemsPerPage < 0)?1:opts.itemsPerPage;		opts.btnLabel = (!opts.btnLabel)?1:opts.btnLabel;		var tgt="#"+$(this).attr("id");		var items = $(this).children(".toPage");		var totChildren = items.size();				var totPages = numPages();		 		$(tgt).children(".toPage").hide(); 				$(tgt).children(".toPage:lt("+(opts.itemsPerPage)+")").children("div").children("a").children("img").each(function(i) {			//alert($(this).attr("id"));			$(this).loadAltAsImage("#"+$(this).attr("id"));		});		 		$(tgt).children(".toPage:lt("+(opts.itemsPerPage)+")").show(); 		var pageButtons = "";				var i;				for(i=0;i<totPages;i++){			pageButtons +="<a class=\"pageIcon\" href=\"#\" >| <span>"+(i+1)+"</span> </a>";		}		$("#btnHolder").html(opts.btnLabel+pageButtons);		 		$("#btnHolder").children("a:eq("+(opts.startPage)+")").addClass("activeBlogFilter");//alert(tgt);		$("#btnHolder").children("a").click(function(){		 	var gotoPage = $(this).children("span").text()-1;			var s = (opts.itemsPerPage*gotoPage)-1;			var e = (s+opts.itemsPerPage)+1;			showRange(s,e);			$("#btnHolder").children("a").removeClass("activeBlogFilter");			$(this).addClass("activeBlogFilter");			return false;		});				function numPages() {			return Math.ceil(totChildren/opts.itemsPerPage);		}				function showRange(a,b) {			$(tgt).children(".toPage").hide();					//	$(tgt).children(".toPage:lt("+b+")").filter(":gt("+a+")").show();			$(tgt).children(".toPage:lt("+b+")").filter(":gt("+a+")").fadeIn(200);									$(tgt).children(".toPage:lt("+b+")").filter(":gt("+a+")").children("div").children("a").children("img").each(function(i) {			//	alert($(this).attr("id"));				$(this).loadAltAsImage("#"+$(this).attr("id"));			});				 					}								};//
