﻿if(jQuery) (function($){
	$.event.special.imgload={
		add:function(hollaback){
			if(this.nodeType===1&&this.tagName.toLowerCase()==='img'&&this.src!==''){
				if(this.complete||this.readyState===4){
					hollaback.handler.apply(this);
				}else if(this.readyState==='uninitialized'&&this.src.indexOf('data:')===0){
					$(this).trigger('error');
				}else{
					$(this).bind('load', hollaback.handler);
				}
			}
		}
	};
	$.fn.carouselFotoDh = function(params){
		var conf = $.extend({
			clipBlock:'.clipCarousel',
			moveBlock:'ul',
			itemBlock:'li',
			prevPage:'itemArrowLeft',
			nextPage:'itemArrowRight',
			viewItem:'unitSingle',
			currentBlock:'unitCurrent',
			playBlock:'unitSlide',
			playDuration:6000,
			timeAnimate:300,
			nWidth:707,
			nHeight:472,
			labelPlay:'',
			labelStop:'',
			labelPrev:'',
			labelNext:'',
			labelFotoImg:'',
			labelFromImg:''
		}, params);
		return this.each(function(){
			var c=conf, o=$(this), f=this, t1=null, view=$('<div />').addClass(c.viewItem), fake=$('<div />').addClass('unitFake'), prev=$('<a />').addClass(c.prevPage).attr('title', c.labelPrev).html(c.labelPrev),
				next=$('<a />').addClass(c.nextPage).attr('title', c.labelNext).html(c.labelNext), currentPosition, currentItem=-1, preload=[], cur=$('<div />').addClass(c.currentBlock), slide=$('<a href="#" title="'+c.labelPlay+'">'+c.labelPlay+'</a>').addClass(c.playBlock), slideInfo=false, fakeList=$('<div />');
			$.extend(f,{
				getClip:function(){return o.find(c.clipBlock)},
				getMoveBlock:function(){return f.getClip().find(c.moveBlock)},
				getLastItem:function(){
					var p=f.getAllItem().eq(f.getSizeItem()-1);
					return f.getClip().outerWidth(false)-(p.outerWidth(false)+p.position().left)},
				getCenterItem:function(itemIn){
					var p=f.getAllItem().eq(itemIn);
					return p.outerWidth(false)/2+p.position().left;
				},
				getSizeItem:function(){return f.getAllItem().size()},
				getAllItem:function(){return f.getMoveBlock().children(c.itemBlock)},
				getFocus:function(i){return fakeList.children('a').eq(i).focus()},
				pushAll:function(){
					f.getAllItem().each(function(i){
						var desc=$('<div />').addClass('unitDesc');
						preload.push(desc.append($(this).find('.unitText')));
					});
				},
				moveItem:function(itemIn){
					currentPosition=-f.getCenterItem(itemIn)+f.getClip().outerWidth(false)/2;
					prev.removeClass('disableArrow'); next.removeClass('disableArrow');
					if(currentPosition<f.getLastItem()){currentPosition=f.getLastItem(); next.addClass('disableArrow')}
					if(currentPosition>0){currentPosition=0; prev.addClass('disableArrow')}
					if(currentItem!=itemIn){
						f.getAllItem().removeClass('itemActive');
						currentItem=itemIn;
						f.getMoveBlock().animate({left:currentPosition});
						f.loadingItem(itemIn);
						f.viewCurrent(currentItem);
					}
					f.getAllItem().eq(currentItem).addClass('itemActive');
				},
				resizeImg:function(imgSub, needHeight, needWidth){
					var aspectRatio=needWidth/needHeight, thisWidth=imgSub.width(), thisHeight=imgSub.height(), imgAspectRatio=thisWidth/thisHeight, topSize=0, okHeight=needHeight;
					//if(needHeight===0){aspectRatio=imgAspectRatio-1}else{aspectRatio=imgAspectRatio+1}
					//if((needHeight&&thisHeight>needHeight)||(needWidth&&thisWidth>needWidth)){
						if(imgAspectRatio>aspectRatio){needHeight=Math.floor(thisHeight/thisWidth*needWidth);
						}else{needWidth=Math.floor(thisWidth/thisHeight*needHeight)}
						if(needHeight<okHeight){topSize=(okHeight-needHeight)/2}
						$(imgSub).css({height:needHeight, width:needWidth, marginTop:topSize});
					//}
				},
				loadingItem:function(itemLink){
					fake.removeClass('hideElement').animate({opacity:1}, c.timeAnimate, function(){
						$('<img />').attr('src', f.getAllItem().eq(itemLink).find('a').attr('href')).bind('imgload',
							function(e){
								view.empty().append(preload[itemLink]);
								f.resizeImg($(this).appendTo(view), c.nHeight-preload[itemLink].height(), c.nWidth);
								$(this).appendTo(view);
								fake.animate({opacity:0}, c.timeAnimate, function(){fake.addClass('hideElement')});
							});
					});
				},
				movePage:function(toSide){
					if(toSide=='minus'){
						currentPosition+=f.getClip().outerWidth(false);
						if(currentPosition>0){currentPosition=0; prev.addClass('disableArrow')}
					}else if(toSide=='plus'){
						currentPosition-=f.getClip().outerWidth(false);
						if(currentPosition<f.getLastItem()){currentPosition=f.getLastItem(); next.addClass('disableArrow')}
					}
					f.getMoveBlock().animate({left:currentPosition});
				},
				slideShow:function(){
					if(slideInfo==false){
						slide.addClass('startSlide').html(c.labelStop).attr('title', c.labelStop);
						slideInfo=true; f.autoRestart();
						f.getClip().bind('mouseenter', function(){f.autoPause()}).bind('mouseleave',function(){f.autoRestart()});
						view.bind('mouseenter', function(){f.autoPause()}).bind('mouseleave',function(){f.autoRestart()});
					}else{
						slide.removeClass('startSlide').html(c.labelPlay).attr('title', c.labelPlay);
						slideInfo=false; f.autoPause();
						f.getClip().unbind('mouseenter mouseleave');
						view.unbind('mouseenter mouseleave');
					}
				},
				autoRestart:function(){clearTimeout(t1);
					if(currentItem+1>=f.getSizeItem()){currentItem=-1}
					t1=setTimeout(function(){
					f.getFocus(currentItem+1); f.moveItem(currentItem+1); f.autoRestart()},c.playDuration);
					
				},
				autoPause:function(){clearInterval(t1)},
				viewCurrent:function(i){cur.html(c.labelFotoImg+' '+(i+1)+' '+c.labelFromImg+' '+f.getSizeItem())}
			});
			f.getClip().addClass('clipCarouselLoad');
			f.getMoveBlock().addClass('listCarouselLoad');
			f.pushAll();
			o.prepend(fake).prepend(view).prepend(prev).append(next).find('.fotoToolBox').prepend(slide).prepend(cur);
			prev.bind('click', function(){
				next.removeClass('disableArrow');
				f.movePage('minus');
			});
			slide.bind('click', function(e){
				f.slideShow();
				e.preventDefault();
			});
			next.bind('click', function(){
				prev.removeClass('disableArrow');
				f.movePage('plus');
			});
			f.getAllItem().each(function(i){
				fakeList.append($('<a href="#">fake'+i+'</a>')).appendTo(f.getClip()).addClass('fakeLink');
				$(this).bind('click', function(e){
					f.moveItem(i); f.getFocus(i); e.preventDefault();
				}).find('a').attr('tabIndex', '-1');
			});
			fakeList.children('a').each(function(i){
				$(this).bind('focusin', function(){
					f.moveItem(i);
				});
			});
			f.moveItem(0);
			f.getClip().bind('keydown', function(e){
				if(e.keyCode==37){f.getFocus(currentItem-1); f.moveItem(currentItem-1); return false}
				if(e.keyCode==39){f.getFocus(currentItem+1); f.moveItem(currentItem+1); return false}
			});
		})
	};
	//
	$.fn.tooltipDh = function(params){
		var conf = $.extend({
			effect:'toggle',
			fadeOutSpeed:'normal',
			predelay:0,
			delay:30,
			opacity:1,
			tip:0,
			position:['center', 'right'],
			offset:[0, 0],
			relative:!1,
			cancelDefault:!0,
			events:{
				def:'click,click',
				input:'focus,blur',
				widget:'focus mouseenter,blur mouseleave',
				tooltip:''
			},
			layout:'<div/>',
			tipClass:'view-tip',
			externalHtml:'<div class="itemArrow"><span /></div>',
			innerClose:'<span class="itemClose" />'
		}, params);
		return this.each(function(){
			var b = {
				toggle:[function(a){
					var b = this.getConf(),
						c = this.getTip(),
						d = b.opacity;
					d < 1 && c.css({
						opacity: d
					}), c.show(), a.call()
				}, function (a) {
					this.getTip().hide(), a.call()
				}],
				fade:[function(a){
					var b = this.getConf();
					this.getTip().fadeTo(b.fadeInSpeed, b.opacity, a)
				}, function (a) {
					this.getTip().fadeOut(this.getConf().fadeOutSpeed, a)
				}]
			};
			var f = this, d = $(this), e = conf,
				g = d.add(f), v=0, c=$(e.innerClose),
				h, i = 0,
				j = 0,
				k = d.attr('title'),
				l = d.attr('href'),
				m = b[e.effect],
				n, o = d.is(':input'),
				p = o && d.is(':checkbox, :radio, select, :button, :submit'),
				q = d.attr('type'),
				r = e.events[q] || e.events[o ? p ? 'widget' : 'input' : 'def'];
			if (!m) throw 'Nonexistent effect \'' + e.effect + '\'';
			r = r.split(/,\s*/);
			if (r.length != 2) throw 'Tooltip: bad events configuration for ' + q;
			if(r[0]=='click' && r[1]=='click'){
				d.bind('click', function(a){
					if(v){f.hide(a);v=0}else{f.show(a);v=1}
					return false;
				})
			}else{
				d.bind(r[0], function(a){
					clearTimeout(i), e.predelay ? j = setTimeout(function(){
						f.show(a)
					}, e.predelay) : f.show(a)
				}).bind(r[1], function (a) {
					clearTimeout(j), e.delay ? i = setTimeout(function(){
						f.hide(a)
					}, e.delay) : f.hide(a)
				})
			};
			k && e.cancelDefault && (d.removeAttr('title'), d.data('title', k));
			if(l && l!='#'){(l=$(l), $(l).remove())}
			$.extend(f, {
				setPosition:function(b, c, d){
					var e = d.relative ? b.position().top : b.offset().top,
						f = d.relative ? b.position().left : b.offset().left,
						g = d.position[0];
					e -= c.outerHeight() - d.offset[0], f += b.outerWidth() + d.offset[1], /iPad/i.test(navigator.userAgent) && (e -= a(window).scrollTop());
					var h = c.outerHeight() + b.outerHeight();
					g == 'center' && (e += h / 2), g == 'bottom' && (e += h), g = d.position[1];
					var i = c.outerWidth() + b.outerWidth();
					g == 'center' && (f -= i / 2), g == 'left' && (f -= i);
					return {
						top: e,
						left: f
					}
				},
				close:function(z){
					c.bind('click', function(a){f.hide(a);v=0;});
				},
				show:function(b){
					if(!h){
						l ? h = $(e.layout).append(e.externalHtml).append(c).addClass(e.tipClass).appendTo(document.body).hide().append(l) : e.tip ? h = $(e.tip).eq(0) : k ? h = $(e.layout).append(e.externalHtml).addClass(e.tipClass).appendTo(document.body).hide().append(k) : (h = d.next(), h.length || (h = d.parent().next()));
						if(!h.length) throw 'Cannot find tooltip for ' + d
					}
					if(f.isShown()) return f;
					
					h.stop(!0, !0);
					var o = f.setPosition(d, h, e);
					e.tip && h.html(d.data('title')), b = b || a.Event(), b.type = 'onBeforeShow', g.trigger(b, [o]);
					if (b.isDefaultPrevented()) return f;
					o = f.setPosition(d, h, e), h.css({
						position: 'absolute',
						top: o.top,
						left: o.left
					}), n = !0, m[0].call(f, function () {
						b.type = 'onShow', n = 'full', g.trigger(b)
					});
					var p = e.events.tooltip.split(/,\s*/);
					h.data('__set') || (h.bind(p[0], function(){
						clearTimeout(i), clearTimeout(j)
					}), p[1] && !d.is('input:not(:checkbox, :radio), textarea') && h.bind(p[1], function(a){
						a.relatedTarget != d[0] && d.trigger(r[1].split(' ')[0])
					}), h.data('__set', !0));
					if(c.length){f.close(b)}
					return f
				},
				hide:function(c){
					if(!h || !f.isShown()) return f;
					c = c || a.Event(), c.type = 'onBeforeHide', g.trigger(c);
					if(!c.isDefaultPrevented()){
						n = !1, b[e.effect][1].call(f, function(){
							c.type = 'onHide', g.trigger(c)
						});
						return f
					}
				},
				isShown:function(a){return a ? n == 'full' : n},
				getConf:function(){return e},
				getTip:function(){return h},
				getTrigger:function(){return d}
			}),
			$.each('onHide,onBeforeShow,onShow,onBeforeHide'.split(','), function(b, c){
				$.isFunction(e[c]) && $(f).bind(c, e[c]), f[c] = function(b){
					b && $(f).bind(c, b);
					return f
				}
			})//,
			//d.bind('click', function(){return false})
		})
	}
	//
	$.fn.carouselSmallDh = function(params){
		var conf = $.extend({
			clipBlock:'.carouselCnt',
			moveBlock:'ul.listSmall',
			itemBlock:'li',
			listClass:'carouselNbr',
			playDuration:5000,
			playBlock:'unitSlide',
			labelPlay:'',
			labelStop:''
		}, params);
		return this.each(function(){
			var c=conf,o=$(this),
				f=this,
				tO=null,
				blockNav=$('<div />').addClass(c.listClass),
				fake=$('<div />').addClass('unitFake'), slideInfo=false,
				//fakeTab=$('<a href="">fake</a>').addClass('linkFake'),
				listNav, slide=$('<a href="#" title="'+c.labelPlay+'">'+c.labelPlay+'</a>').addClass(c.playBlock),
				currentItem=0;
			$.extend(f,{
				getClip:function(){return o.find(c.clipBlock)},
				getMoveBlock:function(){return f.getClip().find(c.moveBlock)},
				getWidthItem:function(){return f.getMoveBlock().find(c.itemBlock).outerWidth(true)},
				getAllItem:function(){return f.getMoveBlock().children(c.itemBlock)},
				getSizeItem:function(){return f.getAllItem().size()},
				moveItem:function(){
					if(currentItem>=f.getSizeItem()){currentItem=0}
					if(currentItem<0){currentItem=f.getSizeItem()-1}
					fake.animate({opacity:1}, 100, function(){
						f.getMoveBlock().css({left:-currentItem*f.getWidthItem()});
						fake.removeClass('hideElement');
						listNav.removeClass('itemActive').eq(currentItem).addClass('itemActive');
						fake.animate({opacity:0}, 300, function(){fake.addClass('hideElement')});
					});
				},
				listBlock:function(){
					f.getAllItem().each(function(i){
						blockNav.append($('<li />').html('<a href="#">'+(i+1)+'</a>'));
					}).find('a').attr('tabIndex', '-1');;
					blockNav.wrapInner('<ul />').prepend(slide);
					listNav=blockNav.find('li');
					listNav.each(function(index){
						$(this).bind('focusin', function(e){currentItem=index; f.moveItem();
						}).bind('click', function(e){e.preventDefault()})
					})
					o.append(blockNav);
				},
				slideShow:function(){
					if(slideInfo==false){
						slide.addClass('startSlide').html(c.labelStop).attr('title', c.labelStop);
						slideInfo=true; f.autoRestart();
						o.bind('mouseenter focusin', function(){f.autoPause()}).bind('mouseleave focusout',function(){f.autoRestart()});
					}else{
						slide.removeClass('startSlide').html(c.labelPlay).attr('title', c.labelPlay);
						slideInfo=false; f.autoPause();
						o.unbind('mouseenter mouseleave focusin focusout');
					}
				},
				autoRestart:function(){clearTimeout(tO); tO=setTimeout(function(){++currentItem; f.moveItem(); f.autoRestart()},c.playDuration)},
				autoPause:function(){clearInterval(tO)}
			});
			if(f.getClip().html()!=null){
				f.getClip().addClass('clipScriptLoad');
				f.getClip().prepend(fake);
				f.listBlock(); f.moveItem();
				listNav.bind('keydown', function(e){
					if(e.keyCode==37){f.moveItem(--currentItem); listNav.children('a').eq(currentItem).focus(); return false}
					if(e.keyCode==39){f.moveItem(++currentItem); listNav.children('a').eq(currentItem).focus(); return false}
					if(e.keyCode==13){
						if(f.getAllItem().eq(currentItem).find('a')!=null){
							document.location=f.getAllItem().eq(currentItem).find('a').attr('href'); return false
						}
					}
				});
				slide.bind('click', function(e){f.slideShow(); e.preventDefault()});
				f.slideShow();
			}
		})
	};
	//
	$.fn.carouselDh = function(params){
		var conf = $.extend({
			clipBlock:'.clipCarousel',
			moveBlock:'ul',
			itemBlock:'li',
			sizePage:5,
			prevPage:'itemArrowLeft',
			nextPage:'itemArrowRight',
			pageBlock:'.page',
			noScrollSize:120,
			sizeScroll:3,
			labelPrev:'',
			labelNext:''
		}, params);
		return this.each(function(){
			var c=conf,o=$(this),
				f=this,
				prev=$('<a />').addClass(c.prevPage).attr('title', c.labelPrev).html(c.labelPrev),
				next=$('<a />').addClass(c.nextPage).attr('title', c.labelNext).html(c.labelNext),
				currentItem=0,
				currentPage=0,
				positionMoveBlock=0,
				timeOut=null, pagePosition=null;
			$.extend(f,{
				getClip:function(){return o.find(c.clipBlock)},
				getMoveBlock:function(){return o.find(c.moveBlock)},
				getWidthItem:function(){return f.getMoveBlock().find(c.itemBlock).outerWidth(true)},
				getSizeItem:function(){return f.getAllItem().size()},
				getAllItem:function(){return f.getMoveBlock().children(c.itemBlock)},
				getSizePrevScroll:function(){return f.getClip().width()/2-c.noScrollSize+f.getClip().offset().left},
				getSizeNextScroll:function(){return f.getClip().width()/2+c.noScrollSize+f.getClip().offset().left},
				getLastPage:function(){return (Math.ceil((f.getSizeItem()-c.sizePage)))*f.getWidthItem()},
				movePage:function(pageIn){
					currentItem=pageIn*c.sizePage;
					if(currentItem<=0){currentItem=0; currentPage=0; positionMoveBlock=0; prev.addClass('disableArrow')}
					if(currentItem>=f.getSizeItem()-c.sizePage){
						currentItem=f.getSizeItem()-c.sizePage;
						currentPage=Math.floor(currentItem/c.sizePage);
						next.addClass('disableArrow');
					}
					f.getMoveBlock().animate({left:-currentItem*f.getWidthItem()});
					positionMoveBlock=currentItem*f.getWidthItem();
				},

				hoverTime:function(){
					timeOut=setInterval(function(){
						if(pagePosition>f.getSizeNextScroll()){
							if(!(f.getMoveBlock().position().left <= -f.getLastPage())){positionMoveBlock+=c.sizeScroll; prev.removeClass('disableArrow')}
							else{positionMoveBlock=f.getLastPage(); next.addClass('disableArrow')}
						}
						if(pagePosition<f.getSizePrevScroll()){
							if(!(f.getMoveBlock().position().left >= 0)){positionMoveBlock-=c.sizeScroll; next.removeClass('disableArrow')}
							else{positionMoveBlock=0; prev.addClass('disableArrow')}
							
						}
						f.getMoveBlock().css({left:-positionMoveBlock});
						currentItem=Math.floor(positionMoveBlock/f.getWidthItem());
						currentPage=Math.floor(currentItem/c.sizePage);
					}, 2)
				},
				opacityItem:function(){
					f.getMoveBlock().find('img').each(function(){
						$(this).css({opacity:0.7})
							.hover(function(){$(this).css({opacity:1})},function(){$(this).css({opacity:0.7})});
					})
				},
				onStart:function(){
					var s;
					f.getClip().addClass('clipScriptLoad');
					f.getMoveBlock().addClass('listScriptLoad');
					f.opacityItem();
					if(f.getWidthItem()*f.getAllItem().length>f.getClip().width()){
						o.prepend(prev);
						o.append(next);
						if(f.getAllItem().length%2){
							s=(f.getWidthItem()*(f.getAllItem().length+1))/2-(f.getClip().width()/2);
						}else{
							s=(f.getWidthItem()*f.getAllItem().length)/2-(f.getClip().width()/2);
						}
						f.getMoveBlock().css({left:-s});
						positionMoveBlock=s;
						f.bindHoverScroll();
						prev.bind('click', function(){
							next.removeClass('disableArrow');
							f.movePage(--currentPage);
						});
						next.bind('click', function(){
							prev.removeClass('disableArrow');
							f.movePage(++currentPage);
						});
					}else{
						s=0;
						f.getMoveBlock().css({left:-s});
					}
				},
				bindHoverScroll:function(){
					f.getClip().bind('mouseenter',function(){
						f.hoverTime();
					}).bind('mouseleave',function(){clearInterval(timeOut)}).bind('mousemove', function(e){pagePosition=e.pageX});
				}
			});
			f.onStart();
		})
	}
})(jQuery);
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}};function renderOption(c,b){var a='<label><input type="checkbox" name="'+c+'[]" value="'+b.value+'"';if(b.selected){a+=' checked="checked"'}a+=" />"+b.text+"</label>";return a}function renderOptions(e,a,d){var c="";for(var b=0;b<a.length;b++){if(a[b].optgroup){c+='<label class="optGroup">';if(d.optGroupSelectable){c+='<input type="checkbox" class="optGroup" />'+a[b].optgroup}else{c+=a[b].optgroup}c+='</label><div class="optGroupContainer">';c+=renderOptions(e,a[b].options,d);c+="</div>"}else{c+=renderOption(e,a[b])}}return c}function buildOptions(i){var c=$(this);var d=c.next(".multiSelectOptions");var a=c.data("config");var g=c.data("callback");d.html("");var e="";if(a.selectAll){e+='<label class="selectAll"><input type="checkbox" class="selectAll" />'+a.selectAllText+"</label>"}e+=renderOptions(c.attr("id"),i,a);d.html(e);var b=d.width();var h=false;if(d.height()>a.listHeight){d.css("height",a.listHeight+"px");h=true}else{d.css("height","")}var f=h&&(b==d.width())?17:0;if((d.width()+f)<c.outerWidth()){d.css("width",c.outerWidth()-2+"px")}else{d.css("width",(d.width()+f)+"px")}if($.fn.bgiframe){c.next(".multiSelectOptions").bgiframe({width:d.width(),height:d.height()})}if(a.selectAll){d.find("INPUT.selectAll").click(function(){d.find("INPUT:checkbox").attr("checked",$(this).attr("checked")).parent("LABEL").toggleClass("checked",$(this).attr("checked"))})}if(a.optGroupSelectable){d.addClass("optGroupHasCheckboxes");d.find("INPUT.optGroup").click(function(){$(this).parent().next().find("INPUT:checkbox").attr("checked",$(this).attr("checked")).parent("LABEL").toggleClass("checked",$(this).attr("checked"))})}d.find("INPUT:checkbox").click(function(){$(this).parent("LABEL").toggleClass("checked",$(this).attr("checked"));updateSelected.call(c);c.focus();if($(this).parent().parent().hasClass("optGroupContainer")){updateOptGroup.call(c,$(this).parent().parent().prev())}if(g){g($(this))}});d.each(function(){$(this).find("INPUT:checked").parent().addClass("checked")});updateSelected.call(c);if(a.optGroupSelectable){d.find("LABEL.optGroup").each(function(){updateOptGroup.call(c,$(this))})}d.find("LABEL:has(INPUT)").hover(function(){$(this).parent().find("LABEL").removeClass("hover");$(this).addClass("hover")},function(){$(this).parent().find("LABEL").removeClass("hover")});c.keydown(function(p){var l=$(this).next(".multiSelectOptions");if(l.css("visibility")!="hidden"){if(p.keyCode==9){$(this).addClass("focus").trigger("click");$(this).focus().next(":input").focus();return true}if(p.keyCode==27||p.keyCode==37||p.keyCode==39){$(this).addClass("focus").trigger("click")}if(p.keyCode==40||p.keyCode==38){var r=l.find("LABEL");var j=r.index(r.filter(".hover"));var o=-1;if(j<0){l.find("LABEL:first").addClass("hover")}else{if(p.keyCode==40&&j<r.length-1){o=j+1}else{if(p.keyCode==38&&j>0){o=j-1}}}if(o>=0){$(r.get(j)).removeClass("hover");$(r.get(o)).addClass("hover");adjustViewPort(l)}return false}if(p.keyCode==13||p.keyCode==32){var q=l.find("LABEL.hover INPUT:checkbox");q.attr("checked",!q.attr("checked")).parent("LABEL").toggleClass("checked",q.attr("checked"));if(q.hasClass("selectAll")){l.find("INPUT:checkbox").attr("checked",q.attr("checked")).parent("LABEL").addClass("checked").toggleClass("checked",q.attr("checked"))}updateSelected.call(c);if(g){g($(this))}return false}if(p.keyCode>=33&&p.keyCode<=126){var n=l.find("LABEL:startsWith("+String.fromCharCode(p.keyCode)+")");var k=n.index(n.filter("LABEL.hover"));var m=n.filter(function(s){return s>k});n=(m.length>=1?m:n).filter("LABEL:first");if(n.length==1){l.find("LABEL.hover").removeClass("hover");n.addClass("hover");adjustViewPort(l)}}}else{if(p.keyCode==38||p.keyCode==40||p.keyCode==13||p.keyCode==32){$(this).removeClass("focus").trigger("click");l.find("LABEL:first").addClass("hover");return false}if(p.keyCode==9){l.next(":input").focus();return true}}if(p.keyCode==13){return false}})}function adjustViewPort(b){var a=b.find("LABEL.hover").position().top+b.find("LABEL.hover").outerHeight();if(a>b.innerHeight()){b.scrollTop(b.scrollTop()+a-b.innerHeight())}if(b.find("LABEL.hover").position().top<0){b.scrollTop(b.scrollTop()+b.find("LABEL.hover").position().top)}}function updateOptGroup(d){var b=$(this);var c=b.data("config");if(c.optGroupSelectable){var a=true;$(d).next().find("INPUT:checkbox").each(function(){if(!$(this).attr("checked")){a=false;return false}});$(d).find("INPUT.optGroup").attr("checked",a).parent("LABEL").toggleClass("checked",a)}}function updateSelected(){var d=$(this);var f=d.next(".multiSelectOptions");var e=d.data("config");var a=0;var b=true;var c="";f.find("INPUT:checkbox").not(".selectAll, .optGroup").each(function(){if($(this).attr("checked")){a++;c=c+$(this).parent().text()+", "}else{b=false}});c=c.replace(/\s*\,\s*$/,"");if(a==0){d.find("span").html(e.noneSelected)}else{if(e.oneOrMoreSelected=="*"){d.find("span").html(c);d.attr("title",c)}else{d.find("span").html(e.oneOrMoreSelected.replace("%",a))}}if(e.selectAll){f.find("INPUT.selectAll").attr("checked",b).parent("LABEL").toggleClass("checked",b)}}$.extend($.fn,{multiSelectDh:function(a,b){if(!a){a={}}if(a.selectAll==undefined){a.selectAll=false}if(a.selectAllText==undefined){a.selectAllText="Select All"}if(a.noneSelected==undefined){a.noneSelected="Select options"}if(a.oneOrMoreSelected==undefined){a.oneOrMoreSelected="*"}if(a.optGroupSelectable==undefined){a.optGroupSelectable=false}if(a.listHeight==undefined){a.listHeight=150}$(this).each(function(){var c=$(this);var e='<a href="javascript:;" class="multiSelect"><span></span></a>';e+='<div class="multiSelectOptions" style="position: absolute; z-index: 99999; visibility: hidden;"></div>';$(c).after(e);var f=$(c).next(".multiSelect");var g=f.next(".multiSelectOptions");f.find("span").css("width",$(c).width()+"px");f.data("config",a);f.data("callback",b);var d=[];$(c).children().each(function(){if(this.tagName.toUpperCase()=="OPTGROUP"){var h=[];d.push({optgroup:$(this).attr("label"),options:h});$(this).children("OPTION").each(function(){if($(this).val()!=""){h.push({text:$(this).html(),value:$(this).val(),selected:$(this).attr("selected")})}})}else{if(this.tagName.toUpperCase()=="OPTION"){if($(this).val()!=""){d.push({text:$(this).html(),value:$(this).val(),selected:$(this).attr("selected")})}}}});$(c).remove();f.attr("id",$(c).attr("id"));buildOptions.call(f,d);f.hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}).click(function(){if($(this).hasClass("active")){$(this).multiSelectOptionsHide()}else{$(this).multiSelectOptionsShow()}return false}).focus(function(){$(this).addClass("focus")}).blur(function(){$(this).removeClass("focus")});$(document).click(function(h){if(!($(h.target).parents().andSelf().is(".multiSelectOptions"))){f.multiSelectOptionsHide()}})})},multiSelectOptionsUpdate:function(a){buildOptions.call($(this),a)},multiSelectOptionsHide:function(){$(this).removeClass("active").removeClass("hover").next(".multiSelectOptions").css("visibility","hidden")},multiSelectOptionsShow:function(){var a=$(this);var d=a.next(".multiSelectOptions");var c=a.data("config");$(".multiSelect").multiSelectOptionsHide();d.find("LABEL").removeClass("hover");a.addClass("active").next(".multiSelectOptions").css("visibility","visible");a.focus();a.next(".multiSelectOptions").scrollTop(0);var b=a.position();a.next(".multiSelectOptions").css({top:b.top+$(this).outerHeight()+"px"});a.next(".multiSelectOptions").css({left:b.left+"px"})},selectedValuesString:function(){var a="";$(this).next(".multiSelectOptions").find("INPUT:checkbox:checked").not(".optGroup, .selectAll").each(function(){a+=$(this).attr("value")+","});return a.replace(/\s*\,\s*$/,"")}});$.expr[":"].startsWith=function(el,i,m){var search=m[3];if(!search){return false}return eval("/^[/s]*"+search+"/i").test($(el).text())};$.Autocompleter=function(b,c){this.cacheData_={};this.cacheLength_=0;this.selectClass_="jquery-autocomplete-selected-item";this.keyTimeout_=null;this.lastKeyPressed_=null;this.lastProcessedValue_=null;this.lastSelectedValue_=null;this.active_=false;this.finishOnBlur_=true;if(!b||!(b instanceof jQuery)||b.length!==1||b.get(0).tagName.toUpperCase()!=="INPUT"){alert("Invalid parameter for jquery.Autocompleter, jQuery object with one element with INPUT tag expected");return}if(typeof c==="string"){this.options={url:c}}else{this.options=c}this.options.maxCacheLength=parseInt(this.options.maxCacheLength,10);if(isNaN(this.options.maxCacheLength)||this.options.maxCacheLength<1){this.options.maxCacheLength=1}this.options.minChars=parseInt(this.options.minChars,10);if(isNaN(this.options.minChars)||this.options.minChars<1){this.options.minChars=1}this.dom={};this.dom.$elem=b;b.attr("value",this.options.defValue);this.dom.$results=$("<div></div>").hide();if(this.options.resultsClass){this.dom.$results.addClass(this.options.resultsClass)}this.dom.$results.css({position:"absolute"});$("body").append(this.dom.$results);var a=this;b.keydown(function(d){a.lastKeyPressed_=d.keyCode;switch(a.lastKeyPressed_){case 38:d.preventDefault();if(a.active_){a.focusPrev()}else{a.activate()}return false;break;case 40:d.preventDefault();if(a.active_){a.focusNext()}else{a.activate()}return false;break;case 9:case 13:if(a.active_){d.preventDefault();a.selectCurrent();return false}break;case 27:if(a.active_){d.preventDefault();a.finish();return false}break;default:a.activate()}});b.blur(function(){if(b.attr("value")==""){b.attr("value",a.options.defValue).removeClass(a.options.inputClass)}if(a.finishOnBlur_){setTimeout(function(){a.finish()},200)}});b.focus(function(){if(a.options.defValue==b.attr("value")){b.attr("value","").addClass(a.options.inputClass)}})};$.Autocompleter.prototype.position=function(){var a=this.dom.$elem.offset();this.dom.$results.css({top:a.top+this.dom.$elem.outerHeight(),left:a.left})};$.Autocompleter.prototype.cacheRead=function(d){var f,c,b,a,e;if(this.options.useCache){d=String(d);f=d.length;if(this.options.matchSubset){c=1}else{c=f}while(c<=f){if(this.options.matchInside){a=f-c}else{a=0}e=0;while(e<=a){b=d.substr(0,c);if(this.cacheData_[b]!==undefined){return this.cacheData_[b]}e++}c++}}return false};$.Autocompleter.prototype.cacheWrite=function(a,b){if(this.options.useCache){if(this.cacheLength_>=this.options.maxCacheLength){this.cacheFlush()}a=String(a);if(this.cacheData_[a]!==undefined){this.cacheLength_++}return this.cacheData_[a]=b}return false};$.Autocompleter.prototype.cacheFlush=function(){this.cacheData_={};this.cacheLength_=0};$.Autocompleter.prototype.callHook=function(c,b){var a=this.options[c];if(a&&$.isFunction(a)){return a(b,this)}return false};$.Autocompleter.prototype.activate=function(){var b=this;var a=function(){b.activateNow()};var c=parseInt(this.options.delay,10);if(isNaN(c)||c<=0){c=250}if(this.keyTimeout_){clearTimeout(this.keyTimeout_)}this.keyTimeout_=setTimeout(a,c)};$.Autocompleter.prototype.activateNow=function(){var a=this.dom.$elem.val();if(a!==this.lastProcessedValue_&&a!==this.lastSelectedValue_){if(a.length>=this.options.minChars){this.active_=true;this.lastProcessedValue_=a;this.fetchData(a)}}};$.Autocompleter.prototype.fetchData=function(b){if(this.options.data){this.filterAndShowResults(this.options.data,b)}else{var a=this;this.fetchRemoteData(b,function(c){a.filterAndShowResults(c,b)})}};$.Autocompleter.prototype.fetchRemoteData=function(c,e){var d=this.cacheRead(c);if(d){e(d)}else{var a=this;this.dom.$elem.addClass(this.options.loadingClass);var b=function(g){var f=false;if(g!==false){f=a.parseRemoteData(g);a.cacheWrite(c,f)}a.dom.$elem.removeClass(a.options.loadingClass);e(f)};$.ajax({url:this.makeUrl(c),success:b,error:function(){b(false)}})}};$.Autocompleter.prototype.setExtraParam=function(b,c){var a=$.trim(String(b));if(a){if(!this.options.extraParams){this.options.extraParams={}}if(this.options.extraParams[a]!==c){this.options.extraParams[a]=c;this.cacheFlush()}}};$.Autocompleter.prototype.makeUrl=function(f){var a=this;var d=this.options.paramName||"q";var b=this.options.url;var e=$.extend({},this.options.extraParams);if(this.options.paramName===false){b+=encodeURIComponent(f)}else{e[d]=f}var c=[];$.each(e,function(g,h){c.push(a.makeUrlParam(g,h))});if(c.length){b+=b.indexOf("?")==-1?"?":"&";b+=c.join("&")}return b};$.Autocompleter.prototype.makeUrlParam=function(a,b){return String(a)+"="+encodeURIComponent(b)};$.Autocompleter.prototype.parseRemoteData=function(e){var c=[];var g=String(e).replace("\r\n","\n");var d,a,b,h,k=g.split("\n");var f;for(d=0;d<k.length;d++){h=k[d].split("|");b=[];for(a=0;a<h.length;a++){b.push(unescape(h[a]))}f=b.shift();c.push({value:unescape(f),data:b})}return c};$.Autocompleter.prototype.filterAndShowResults=function(a,b){this.showResults(this.filterResults(a,b),b)};$.Autocompleter.prototype.filterResults=function(e,b){var g=[];var m,d,f,n,j,a;var l,h,c="";var k=new RegExp("[.*+?|()\\[\\]{}\\\\]","g");for(f=0;f<e.length;f++){n=e[f];j=typeof n;if(j==="string"){m=n;d={}}else{if($.isArray(n)){m=n[0];d=n.slice(1)}else{if(j==="object"){m=n.value;d=n.data}}}m=String(m);if(m>""){if(typeof d!=="object"){d={}}a=!this.options.filterResults;if(!a){h=String(b);h=h.replace(k,"\\$&");if(!this.options.matchInside){h="^"+h}if(!this.options.matchCase){c="i"}l=new RegExp(h,c);a=l.test(m)}if(a){g.push({value:m,data:d})}}}if(this.options.sortResults){g=this.sortResults(g,b)}if(this.options.maxItemsToShow>0&&this.options.maxItemsToShow<g.length){g.length=this.options.maxItemsToShow}return g};$.Autocompleter.prototype.sortResults=function(c,d){var b=this;var a=this.options.sortFunction;if(!$.isFunction(a)){a=function(g,e,h){return b.sortValueAlpha(g,e,h)}}c.sort(function(f,e){return a(f,e,d)});return c};$.Autocompleter.prototype.sortValueAlpha=function(d,c,e){d=String(d.value);c=String(c.value);if(!this.options.matchCase){d=d.toLowerCase();c=c.toLowerCase()}if(d>c){return 1}if(d<c){return -1}return 0};$.Autocompleter.prototype.showResults=function(e,b){var l=this;var g=$("<ul></ul>");var f,m,j,a,h=false,d=false,k=new RegExp(b,"g");var c=e.length;for(f=0;f<c;f++){m=e[f];this.showResult(m.value,m.data);j=$("<li>"+this.showResult(m.value,m.data).replace(k,"<strong>"+b+"</strong>")+"</li>");j.data("value",m.value);j.data("data",m.data);j.click(function(){var i=$(this);l.selectItem(i)}).mousedown(function(){l.finishOnBlur_=false}).mouseup(function(){l.finishOnBlur_=true});g.append(j);if(h===false){h=String(m.value);d=j;j.addClass(this.options.firstItemClass)}if(f==c-1){j.addClass(this.options.lastItemClass)}}if(c){this.position();this.dom.$results.html(g).show();a=this.dom.$results.outerWidth()-this.dom.$results.width();this.dom.$results.width(this.dom.$elem.outerWidth()-a);$("li",this.dom.$results).hover(function(){l.focusItem(this)},function(){});if(this.autoFill(h,b)){this.focusItem(d)}}};$.Autocompleter.prototype.showResult=function(b,a){if($.isFunction(this.options.showResult)){return this.options.showResult(b,a)}else{return b}};$.Autocompleter.prototype.autoFill=function(e,c){var b,a,d,f;if(this.options.autoFill&&this.lastKeyPressed_!=8){b=String(e).toLowerCase();a=String(c).toLowerCase();d=e.length;f=c.length;if(b.substr(0,f)===a){this.dom.$elem.val(e);this.selectRange(f,d);return true}}return false};$.Autocompleter.prototype.focusNext=function(){this.focusMove(+1)};$.Autocompleter.prototype.focusPrev=function(){this.focusMove(-1)};$.Autocompleter.prototype.focusMove=function(a){var b,c=$("li",this.dom.$results);a=parseInt(a,10);for(var b=0;b<c.length;b++){if($(c[b]).hasClass(this.selectClass_)){this.focusItem(b+a);return}}this.focusItem(0)};$.Autocompleter.prototype.focusItem=function(b){var a,c=$("li",this.dom.$results);if(c.length){c.removeClass(this.selectClass_).removeClass(this.options.selectClass);if(typeof b==="number"){b=parseInt(b,10);if(b<0){b=0}else{if(b>=c.length){b=c.length-1}}a=$(c[b])}else{a=$(b)}if(a){a.addClass(this.selectClass_).addClass(this.options.selectClass)}}};$.Autocompleter.prototype.selectCurrent=function(){var a=$("li."+this.selectClass_,this.dom.$results);if(a.length==1){this.selectItem(a)}else{this.finish()}};$.Autocompleter.prototype.selectItem=function(d){var c=d.data("value");var b=d.data("data");var a=this.displayValue(c,b);this.lastProcessedValue_=a;this.lastSelectedValue_=a;this.dom.$elem.val(a).focus();this.setCaret(a.length);this.callHook("onItemSelect",{value:c,data:b});this.finish()};$.Autocompleter.prototype.displayValue=function(b,a){if($.isFunction(this.options.displayValue)){return this.options.displayValue(b,a)}else{return b}};$.Autocompleter.prototype.finish=function(){if(this.keyTimeout_){clearTimeout(this.keyTimeout_)}if(this.dom.$elem.val()!==this.lastSelectedValue_){if(this.options.mustMatch){this.dom.$elem.val("")}this.callHook("onNoMatch")}this.dom.$results.hide();this.lastKeyPressed_=null;this.lastProcessedValue_=null;if(this.active_){this.callHook("onFinish")}this.active_=false};$.Autocompleter.prototype.selectRange=function(d,a){var c=this.dom.$elem.get(0);if(c.setSelectionRange){c.focus();c.setSelectionRange(d,a)}else{if(this.createTextRange){var b=this.createTextRange();b.collapse(true);b.moveEnd("character",a);b.moveStart("character",d);b.select()}}};$.Autocompleter.prototype.setCaret=function(a){this.selectRange(a,a)};$.fn.autocompleteDh=function(a){if(typeof a==="string"){a={url:a}}var b=$.extend({},$.fn.autocompleteDh.defaults,a);return this.each(function(){var d=$(this);var c=new $.Autocompleter(d,b);d.data("autocompleter",c)})};$.fn.autocompleteDh.defaults={paramName:"",minChars:1,loadingClass:"acLoading",resultsClass:"acResults",inputClass:"acInput",selectClass:"acSelect",mustMatch:false,matchCase:true,matchInside:true,matchSubset:true,useCache:true,maxCacheLength:10,autoFill:false,filterResults:true,sortResults:true,sortFunction:false,onItemSelect:false,onNoMatch:false,maxItemsToShow:5,defValue:"Enter data"};})();
