diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
diff --git a/demo/1/index.html b/demo/1/index.html
new file mode 100755
index 0000000..d2fb573
--- /dev/null
+++ b/demo/1/index.html
@@ -0,0 +1,172 @@
+
+
+
+
+quickPager - easy jQuery paging plugin
+
+
+
+
+
+
+
+ SimplePager demo page
+ back to blog post
+
+
+ $("ul.paging").quickPager();
+
+
+
+
+
+ - 1
+ - 2
+ - 3
+ - 4
+ - 5
+ - 6
+ - 7
+ - 8
+ - 9
+ - 10
+ - 11
+ - 12
+ - 13
+ - 14
+ - 15
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+
+
+Second example
+
+
+ $("ul.paging2").quickPager({pagerLocation:"both"});
+
+
+
+ - 1
+ - 2
+ - 3
+ - 4
+ - 5
+ - 6
+ - 7
+ - 8
+ - 9
+ - 10
+ - 11
+ - 12
+ - 13
+ - 14
+ - 15
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+
+
+
+
+
+
+
+
diff --git a/demo/2/index.html b/demo/2/index.html
new file mode 100755
index 0000000..fb59e76
--- /dev/null
+++ b/demo/2/index.html
@@ -0,0 +1,329 @@
+
+
+
+
+quickPager - easy jQuery paging plugin
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 2 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 3 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 4 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 5 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 6 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 7 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 8 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 9 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 10 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 12 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 13 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 14 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 15 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 16 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 17 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 18 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 19 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 20 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 21 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 22 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 23 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 24 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 25 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 26 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 27 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 28 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 29 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 30 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 31 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 32 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 33 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 34 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+ 35 |
+ Table Cell |
+ Table Cell |
+ Table Cell |
+
+
+
+ dasdas
+
+
+
+
+
+
+
+
+
diff --git a/scripts/quickpager.jquery.js b/scripts/quickpager.jquery.js
new file mode 100755
index 0000000..5363fe6
--- /dev/null
+++ b/scripts/quickpager.jquery.js
@@ -0,0 +1,111 @@
+//-------------------------------------------------
+// Quick Pager jquery plugin
+// Created by dan and emanuel @geckonm.com
+// www.geckonewmedia.com
+//
+// v1.1
+// 18/09/09 * bug fix by John V - http://blog.geekyjohn.com/
+//-------------------------------------------------
+
+(function($) {
+
+ $.fn.quickPager = function(options) {
+
+ var defaults = {
+ pageSize: 10,
+ currentPage: 1,
+ holder: null,
+ pagerLocation: "after"
+ };
+
+ var options = $.extend(defaults, options);
+
+
+ return this.each(function() {
+
+
+ var selector = $(this);
+ var pageCounter = 1;
+
+ selector.wrap("");
+
+ selector.children().each(function(i){
+
+ if(i < pageCounter*options.pageSize && i >= (pageCounter-1)*options.pageSize) {
+ $(this).addClass("simplePagerPage"+pageCounter);
+ }
+ else {
+ $(this).addClass("simplePagerPage"+(pageCounter+1));
+ pageCounter ++;
+ }
+
+ });
+
+ // show/hide the appropriate regions
+ selector.children().hide();
+ selector.children(".simplePagerPage"+options.currentPage).show();
+
+ if(pageCounter <= 1) {
+ return;
+ }
+
+ //Build pager navigation
+ var pageNav = "";
+
+ if(!options.holder) {
+ switch(options.pagerLocation)
+ {
+ case "before":
+ selector.before(pageNav);
+ break;
+ case "both":
+ selector.before(pageNav);
+ selector.after(pageNav);
+ break;
+ default:
+ selector.after(pageNav);
+ }
+ }
+ else {
+ $(options.holder).append(pageNav);
+ }
+
+ //pager navigation behaviour
+ selector.parent().find(".simplePagerNav a").click(function() {
+
+ //grab the REL attribute
+ var clickedLink = $(this).attr("rel");
+ options.currentPage = clickedLink;
+
+ if(options.holder) {
+ $(this).parent("li").parent("ul").parent(options.holder).find("li.currentPage").removeClass("currentPage");
+ $(this).parent("li").parent("ul").parent(options.holder).find("a[rel='"+clickedLink+"']").parent("li").addClass("currentPage");
+ }
+ else {
+ //remove current current (!) page
+ $(this).parent("li").parent("ul").parent(".simplePagerContainer").find("li.currentPage").removeClass("currentPage");
+ //Add current page highlighting
+ $(this).parent("li").parent("ul").parent(".simplePagerContainer").find("a[rel='"+clickedLink+"']").parent("li").addClass("currentPage");
+ }
+
+ //hide and show relevant links
+ selector.children().hide();
+ selector.find(".simplePagerPage"+clickedLink).show();
+
+ return false;
+ });
+ });
+ }
+
+
+})(jQuery);
+