(function(b){b.fn.mobilynotes=function(a){var e={init:"rotate",positionMultiplier:5,title:null,showList:true,autoplay:true,interval:4000};var f=b.extend({},e,a);return this.each(function(){var c=b(this),j=c.find(".note"),k=j.length,d;var l={init:function(){l.css();if(f.showList){l.list()}if(f.autoplay){l.autoplay()}l.show()},random:function(h,g){return Math.floor((Math.random()*(g-h+1))+h)},css:function(){var g=j.length;j.each(function(h){var r=b(this);switch(f.init){case"plain":var q=l.random(-(f.positionMultiplier),f.positionMultiplier),s=l.random(-(f.positionMultiplier),f.positionMultiplier);r.css({top:s+"px",left:q+"px",zIndex:g--});break;case"rotate":var i=l.random(-(f.positionMultiplier),f.positionMultiplier),t="rotate("+i+"deg)";r.css({"-webkit-transform":t,"-moz-transform":t,"-o-transform":t,filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation="+i+")",zIndex:g--})}r.attr("note",h)})},zindex:function(){var h=new Array();j.each(function(i){h[i]=b(this).css("z-index")});var g=Math.max.apply(Math,h);return g},list:function(){c.after(b("<ul />").addClass("listNotes"));var h=c.find(".listNotes"),g=new Array();if(f.title!=null){j.each(function(i){g[i]=b(this).find(f.title).text()})}else{g[0]="Bad selector!"}for(x in g){c.next(".listNotes").append(b("<li />").append(b("<a />").attr({href:"#",rel:x}).text(g[x])))}},autoplay:function(){var h=1,g=setInterval(function(){h==k?h=0:"";var p=j.eq(h),o=p.width(),i=p.css("left");l.animate(p,o,i);h++},f.interval)},show:function(){c.next(".listNotes").find("a").click(function(){var q=b(this),h=q.attr("rel"),r=j.filter(function(){return b(this).attr("note")==h}),g=r.css("left"),p=r.width(),i=r.height();clearInterval(d);l.animate(r,p,g);return false})},animate:function(i,h,n){var g=l.zindex();i.animate({left:h+"px"},function(){i.css({zIndex:g+1}).animate({left:n})})}};l.init()})}}(jQuery));(function(b){b.fn.mobilynotesI=function(a){var e={init:"rotate",positionMultiplier:5,title:null,showList:true,autoplay:true,interval:4000};var f=b.extend({},e,a);return this.each(function(){var c=b(this),j=c.find(".note"),k=j.length,d;var l={init:function(){l.css();if(f.showList){l.list()}if(f.autoplay){l.autoplay()}l.show()},random:function(h,g){return Math.floor((Math.random()*(g-h+1))+h)},css:function(){var g=j.length;j.each(function(h){var r=b(this);switch(f.init){case"plain":var q=l.random(-(f.positionMultiplier),f.positionMultiplier),s=l.random(-(f.positionMultiplier),f.positionMultiplier);r.css({top:s+"px",left:q+"px",zIndex:g--});break;case"rotate":var i=l.random(-(f.positionMultiplier),f.positionMultiplier),t="rotate("+i+"deg)";r.css({"-webkit-transform":t,"-moz-transform":t,"-o-transform":t,filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation="+i+")",zIndex:g--})}r.attr("note",h)})},zindex:function(){var h=new Array();j.each(function(i){h[i]=b(this).css("z-index")});var g=Math.max.apply(Math,h);return g},list:function(){c.after(b("<ul />").addClass("listNotes"));var h=c.find(".listNotes"),g=new Array();if(f.title!=null){j.each(function(i){g[i]=b(this).find(f.title).text()})}else{g[0]="Bad selector!"}for(x in g){c.next(".listNotes").append(b("<li />").append(b("<a />").attr({href:"#",rel:x}).text(g[x])))}},autoplay:function(){var h=1,g=setInterval(function(){h==k?h=0:"";var p=j.eq(h),o=p.width(),i=p.css("left");l.animate(p,o,i);h++},f.interval)},show:function(){c.next(".listNotes").find("a").click(function(){var q=b(this),h=q.attr("rel"),r=j.filter(function(){return b(this).attr("note")==h}),g=r.css("left"),p=r.width(),i=r.height();clearInterval(d);l.animate(r,p,g);return false})},animate:function(i,h,n){var g=l.zindex();i.animate({left:-h+"px"},function(){i.css({zIndex:g+1}).animate({left:n})})}};l.init()})}}(jQuery));