/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "Image Cross-Fader"
 * Version: 1.1.1, 2009-06-04
 * by Christophe DELIENS (G2F - GET2FUTURE)
 * 
 * http://twitter.com/cdeliens
 * chris[at]g2f[dot]be
 *
 * Copyright (c) 2009 Christophe DELIENS
 * Licensed under the MIT Licence (http://www.opensource.org/licenses/mit-license.php)
 */
(function(d){var c=null;var a=Array();var e=0;var g=false;var b=null;var f=null;d.fn.imageCrossFader=function(l){b=d.extend(d.fn.imageCrossFader.defaults,l);return this.each(function(){f=d(this);var n=f.find("ul li");var m=n.size();a=Array(m);f.empty().show();if(b.pauseOnHover){f.mouseenter(function(){g=true;j()}).mouseleave(function(){g=false;k()})}if(b.index){var p=d("<div></div>").attr("class","index").appendTo(f)}for(i=0;i<m;++i){var o=d(n[i]).html();a[i]=o;if(b.index){d("<p></p>").text(i+1).attr("rel",i).click(function(){h(parseInt(d(this).attr("rel")));return false}).appendTo(d(p))}}h(0)})};d.fn.imageCrossFader.defaults={fadeIn:600,fadeOut:200,delay:3000,pauseOnHover:true,index:true};function h(l){j();if(b.index){f.find("div.index p").removeClass("selected");f.find("div.index p[rel="+l+"]").addClass("selected")}f.find("div.item").fadeOut(b.fadeOut);d("<div></div>").attr("class","item").append(a[l]).appendTo(f).fadeIn(b.fadeIn);e=l+1;if(e>=a.length){e=0}if(!g){k()}}function k(){c=window.setTimeout(function(){h(e)},b.delay)}function j(){if(c!=null){window.clearTimeout(c)}}})(jQuery);
