(function(e){var k={};var c={};var j={};var f=[];var d;$jq.fn.jBreadCrumb=function(m){k=e.extend({},e.fn.jBreadCrumb.defaults,m);return this.each(function(){c=e(this);h()})};function h(){if(typeof($jq.easing)=="object"){d="easeOutQuad"}else{d="swing"}j=$jq(c).find("li");$jq(c).find("ul").wrap('<div style="overflow:hidden; position:relative;  width: 100%;"><div>');if(j.length>0){$jq(j[j.length-1]).addClass("last");$jq(j[0]).addClass("first");if(j.length>k.minimumCompressionElements){l()}}}function l(){var m=$jq(j[j.length-1]);if($jq(m).width()>k.maxFinalElementLength){if(k.beginingElementsToLeaveOpen>0){k.beginingElementsToLeaveOpen--}if(k.endElementsToLeaveOpen>0){k.endElementsToLeaveOpen--}}if($jq(m).width()<k.maxFinalElementLength&&$jq(m).width()>k.minFinalElementLength){if(k.beginingElementsToLeaveOpen>0){k.beginingElementsToLeaveOpen--}}var n=j.length-1-k.endElementsToLeaveOpen;$jq(j[j.length-1]).css({background:"none"});e(j).each(function(p,q){if(p>k.beginingElementsToLeaveOpen&&p<n){$jq(q).find("a").wrap("<span></span>").width($jq(q).find("a").width()+10);$jq(q).append($jq('<div class="'+k.overlayClass+'"></div>').css({display:"block"})).css({background:"none"});if(g()){a($jq(q).find("."+k.overlayClass).css({width:"20px",right:"-1px"}))}var o={id:p,width:$jq(q).width(),listElement:$jq(q).find("span"),isAnimating:false,element:$jq(q).find("span")};$jq(q).bind("mouseover",o,i).bind("mouseout",o,b);$jq(q).find("a").unbind("mouseover",i).unbind("mouseout",b);q.autoInterval=setInterval(function(){clearInterval(q.autoInterval);$jq(q).find("span").animate({width:k.previewWidth},k.timeInitialCollapse,k.easing)},(150*(p-2)))}})}function i(n){var m=n.data.id;var o=n.data.width;$jq(n.data.element).stop();$jq(n.data.element).animate({width:o},{duration:k.timeExpansionAnimation,easing:k.easing,queue:false});return false}function b(n){var m=n.data.id;$jq(n.data.element).stop();$jq(n.data.element).animate({width:k.previewWidth},{duration:k.timeCompressionAnimation,easing:k.easing,queue:false});return false}function g(){var m=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent);return m}function a(m){var n;if($jq(m).is("img")){n=$jq(m).attr("src")}else{n=e(m).css("backgroundImage");n.match(/^url\(["']?(.*\.png)["']?\)$/i);n=RegExp.$1}e(m).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='"+n+"')"})}$jq.fn.jBreadCrumb.defaults={maxFinalElementLength:400,minFinalElementLength:200,minimumCompressionElements:4,endElementsToLeaveOpen:1,beginingElementsToLeaveOpen:1,timeExpansionAnimation:800,timeCompressionAnimation:500,timeInitialCollapse:600,easing:d,overlayClass:"chevronOverlay",previewWidth:5}})($jq);
