/**
 * jQuery slidePhotos plugin
 * 
 * @requires jQuery
 * @version: 1.0.0
 * @category jquery plugin
 * @copyright (c) 2009 Ingcyte Corporation.
 */
(function(a){a.fn.extend({slidePhotos:function(b){var c={speed:200};var b=a.extend({},c,b||{});return this.each(function(){var n=a(this).parent();var l=a("ul",a(this));var o=a("li",l);var q=a(".prev",n);var e=a(".next",n);var j=o.size();var d=o.width();var p=o.height();var k=0;var m=new Array();for(var g=0;g<j;g++){m.push(d*g)}a(this).css({position:"relative",overflow:"hidden",width:d+"px",height:p+"px"});l.css({position:"absolute",top:"0",left:"0",margin:"0",padding:"0",overflow:"hidden","list-style-type":"none",width:d*j+"px",height:p+"px"});o.css({"float":"left",margin:"0",padding:"0",overflow:"hidden",width:d+"px",height:p+"px"});var h=function(i){if(i>=0&&i<j){l.animate({left:-m[i]+"px"},b.speed);k=i}f()};var f=function(){if(j-1>0){switch(k){case 0:q.addClass("no-more");if(e.hasClass("no-more")){e.removeClass("no-more")}break;case j-1:if(q.hasClass("no-more")){q.removeClass("no-more")}e.addClass("no-more");break;default:e.removeClass("no-more");q.removeClass("no-more");break}}else{q.addClass("no-more");e.addClass("no-more")}};q.click(function(){h(k-1)});e.click(function(){h(k+1)});f()})}})})(jQuery);
