(function($){$.baseClass=function(obj){obj=$(obj);return obj.get(0).className.match(/([^ ]+)/)[1];};$.fn.addDependClass=function(className,delimiter){var options={delimiter:delimiter?delimiter:'-'}
return this.each(function(){var baseClass=$.baseClass(this);if(baseClass)
$(this).addClass(baseClass+options.delimiter+className);});};$.fn.removeDependClass=function(className,delimiter){var options={delimiter:delimiter?delimiter:'-'}
return this.each(function(){var baseClass=$.baseClass(this);if(baseClass)
$(this).removeClass(baseClass+options.delimiter+className);});};$.fn.toggleDependClass=function(className,delimiter){var options={delimiter:delimiter?delimiter:'-'}
return this.each(function(){var baseClass=$.baseClass(this);if(baseClass)
if($(this).is("."+baseClass+options.delimiter+className))
$(this).removeClass(baseClass+options.delimiter+className);else
$(this).addClass(baseClass+options.delimiter+className);});};})(jQuery);(function(){Function.prototype.inheritFrom=function(BaseClass,oOverride){var Inheritance=function(){};Inheritance.prototype=BaseClass.prototype;this.prototype=new Inheritance();this.prototype.constructor=this;this.prototype.baseConstructor=BaseClass;this.prototype.superClass=BaseClass.prototype;if(oOverride){for(var i in oOverride){this.prototype[i]=oOverride[i];}}};Number.prototype.jSliderNice=function(iRoundBase){var re=/^(-)?(\d+)([\.,](\d+))?$/;var iNum=Number(this);var sNum=String(iNum);var aMatches;var sDecPart='';var sTSeparator=' ';if((aMatches=sNum.match(re))){var sIntPart=aMatches[2];var iDecPart=(aMatches[4])?Number('0.'+aMatches[4]):0;if(iDecPart){var iRF=Math.pow(10,(iRoundBase)?iRoundBase:2);iDecPart=Math.round(iDecPart*iRF);sNewDecPart=String(iDecPart);sDecPart=sNewDecPart;if(sNewDecPart.length<iRoundBase){var iDiff=iRoundBase-sNewDecPart.length;for(var i=0;i<iDiff;i++){sDecPart="0"+sDecPart;};}
sDecPart=","+sDecPart;}else{if(iRoundBase&&iRoundBase!=0){for(var i=0;i<iRoundBase;i++){sDecPart+="0";};sDecPart=","+sDecPart;}}
var sResult;if(Number(sIntPart)<1000){sResult=sIntPart+sDecPart;}else{var sNewNum='';var i;for(i=1;i*3<sIntPart.length;i++)
sNewNum=sTSeparator+sIntPart.substring(sIntPart.length-i*3,sIntPart.length-(i-1)*3)+sNewNum;sResult=sIntPart.substr(0,3-i*3+sIntPart.length)+sNewNum+sDecPart;}
if(aMatches[1])
return'-'+sResult;else
return sResult;}
else{return sNum;}};this.jSliderIsArray=function(value){if(typeof value=="undefined")return false;if(value instanceof Array||(!(value instanceof Object)&&(Object.prototype.toString.call((value))=='[object Array]')||typeof value.length=='number'&&typeof value.splice!='undefined'&&typeof value.propertyIsEnumerable!='undefined'&&!value.propertyIsEnumerable('splice'))){return true;}
return false;}})();(function(){var cache={};this.jSliderTmpl=function jSliderTmpl(str,data){var fn=!(/\W/).test(str)?cache[str]=cache[str]||jSliderTmpl(str):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};"+"with(obj){p.push('"+
str.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")
+"');}return p.join('');");return data?fn(data):fn;};})();(function($){this.Draggable=function(){this._init.apply(this,arguments);};Draggable.prototype={oninit:function(){},events:function(){},onmousedown:function(){this.ptr.css({position:"absolute"});},onmousemove:function(evt,x,y){this.ptr.css({left:x,top:y});},onmouseup:function(){},isDefault:{drag:false,clicked:false,toclick:true,mouseup:false},_init:function(){if(arguments.length>0){this.ptr=$(arguments[0]);this.outer=$(".draggable-outer");this.is={};$.extend(this.is,this.isDefault);var _offset=this.ptr.offset();this.d={left:_offset.left,top:_offset.top,width:this.ptr.width(),height:this.ptr.height()};this.oninit.apply(this,arguments);this._events();}},_events:function(){var oThis=this;$(document).mousemove(function(evt){if(oThis.is.drag){oThis._mousemove(evt);return false;}}).mouseup(function(evt){oThis._mouseup(evt);}).bind("dragstart",function(){return false;});this.ptr.mousedown(function(evt){oThis._mousedown(evt);return false;}).mouseup(function(evt){oThis._mouseup(evt);});this.ptr.find("a").click(function(){oThis.is.clicked=true;if(!oThis.is.toclick){oThis.is.toclick=true;return false;}}).mousedown(function(evt){oThis._mousedown(evt);return false;}).bind("dragstart",function(){return false;});this.events();},_mousedown:function(evt){this.is.drag=true;this.is.clicked=false;this.is.mouseup=false;var _offset=this.ptr.offset();this.cx=evt.pageX-_offset.left;this.cy=evt.pageY-_offset.top;$.extend(this.d,{left:_offset.left,top:_offset.top,width:this.ptr.width(),height:this.ptr.height()});if(this.outer&&this.outer.get(0)){this.outer.css({height:Math.max(this.outer.height(),$(document.body).height()),overflow:"hidden"});}
this.onmousedown(evt);},_mousemove:function(evt){this.is.toclick=false;this.onmousemove(evt,evt.pageX-this.cx,evt.pageY-this.cy);},_mouseup:function(evt){var oThis=this;if(this.is.drag){this.is.drag=false;if(this.outer&&this.outer.get(0)){if($.browser.mozilla){this.outer.css({overflow:"hidden"});}else{this.outer.css({overflow:"visible"});}
if($.browser.msie&&$.browser.version=='6.0'){this.outer.css({height:"100%"});}else{this.outer.css({height:"auto"});}}
this.onmouseup(evt);}}};})(jQuery);(function($){$.slider=function(node,settings){var jNode=$(node);if(!jNode.data("jslider"))
jNode.data("jslider",new jSlider(node,settings));return jNode.data("jslider");};$.fn.slider=function(action,opt_value){var returnValue,args=arguments;function isDef(val){return val!==undefined;};function isDefAndNotNull(val){return val!=null;};this.each(function(){var self=$.slider(this,action);if(typeof action=="string"){switch(action){case"value":if(isDef(args[1])&&isDef(args[2])){var pointers=self.getPointers();if(isDefAndNotNull(pointers[0])&&isDefAndNotNull(args[1])){pointers[0].set(args[1]);pointers[0].setIndexOver();}
if(isDefAndNotNull(pointers[1])&&isDefAndNotNull(args[2])){pointers[1].set(args[2]);pointers[1].setIndexOver();}}
else if(isDef(args[1])){var pointers=self.getPointers();if(isDefAndNotNull(pointers[0])&&isDefAndNotNull(args[1])){pointers[0].set(args[1]);pointers[0].setIndexOver();}}
else
returnValue=self.getValue();break;case"prc":if(isDef(args[1])&&isDef(args[2])){var pointers=self.getPointers();if(isDefAndNotNull(pointers[0])&&isDefAndNotNull(args[1])){pointers[0]._set(args[1]);pointers[0].setIndexOver();}
if(isDefAndNotNull(pointers[1])&&isDefAndNotNull(args[2])){pointers[1]._set(args[2]);pointers[1].setIndexOver();}}
else if(isDef(args[1])){var pointers=self.getPointers();if(isDefAndNotNull(pointers[0])&&isDefAndNotNull(args[1])){pointers[0]._set(args[1]);pointers[0].setIndexOver();}}
else
returnValue=self.getPrcValue();break;case"calculatedValue":var value=self.getValue().split(";");returnValue="";for(var i=0;i<value.length;i++){returnValue+=(i>0?";":"")+self.nice(value[i]);};break;case"skin":self.setSkin(args[1]);break;};}
else if(!action&&!opt_value){if(!jSliderIsArray(returnValue))
returnValue=[];returnValue.push(slider);}});if(jSliderIsArray(returnValue)&&returnValue.length==1)
returnValue=returnValue[0];return returnValue||this;};var OPTIONS={settings:{from:1,to:10,step:1,smooth:true,limits:true,round:0,value:"5;7",dimension:""},className:"jslider",selector:".jslider-",template:jSliderTmpl('<span class="<%=className%>">'+'<table><tr><td>'+'<div class="<%=className%>-bg">'+'<i class="l"><i></i></i><i class="r"><i></i></i>'+'<i class="v"><i></i></i>'+'</div>'+'<div class="<%=className%>-pointer"><i></i></div>'+'<div class="<%=className%>-pointer <%=className%>-pointer-to"><i></i></div>'+'<div class="<%=className%>-label"><span><%=settings.from%></span></div>'+'<div class="<%=className%>-label <%=className%>-label-to"><span><%=settings.to%></span><%=settings.dimension%></div>'+'<div class="<%=className%>-value"><span></span><%=settings.dimension%></div>'+'<div class="<%=className%>-value <%=className%>-value-to"><span></span><%=settings.dimension%></div>'+'<div class="<%=className%>-scale"><%=scale%></div>'+'</td></tr></table>'+'</span>')};this.jSlider=function(){return this.init.apply(this,arguments);};jSlider.prototype={init:function(node,settings){this.settings=$.extend(true,{},OPTIONS.settings,settings?settings:{});this.inputNode=$(node).hide();this.settings.interval=this.settings.to-this.settings.from;this.settings.value=this.inputNode.attr("value");if(this.settings.calculate&&$.isFunction(this.settings.calculate))
this.nice=this.settings.calculate;if(this.settings.onstatechange&&$.isFunction(this.settings.onstatechange))
this.onstatechange=this.settings.onstatechange;this.is={init:false};this.o={};this.create();},onstatechange:function(){},create:function(){var $this=this;this.domNode=$(OPTIONS.template({className:OPTIONS.className,settings:{from:this.nice(this.settings.from),to:this.nice(this.settings.to),dimension:this.settings.dimension},scale:this.generateScale()}));this.inputNode.after(this.domNode);this.drawScale();if(this.settings.skin&&this.settings.skin.length>0)
this.setSkin(this.settings.skin);this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()};$.extend(this.o,{pointers:{},labels:{0:{o:this.domNode.find(OPTIONS.selector+"value").not(OPTIONS.selector+"value-to")},1:{o:this.domNode.find(OPTIONS.selector+"value").filter(OPTIONS.selector+"value-to")}},limits:{0:this.domNode.find(OPTIONS.selector+"label").not(OPTIONS.selector+"label-to"),1:this.domNode.find(OPTIONS.selector+"label").filter(OPTIONS.selector+"label-to")}});$.extend(this.o.labels[0],{value:this.o.labels[0].o.find("span")});$.extend(this.o.labels[1],{value:this.o.labels[1].o.find("span")});if(!$this.settings.value.split(";")[1]){this.settings.single=true;this.domNode.addDependClass("single");}
if(!$this.settings.limits)
this.domNode.addDependClass("limitless");this.domNode.find(OPTIONS.selector+"pointer").each(function(i){var value=$this.settings.value.split(";")[i];if(value){$this.o.pointers[i]=new jSliderPointer(this,i,$this);var prev=$this.settings.value.split(";")[i-1];if(prev&&new Number(value)<new Number(prev))value=prev;value=value<$this.settings.from?$this.settings.from:value;value=value>$this.settings.to?$this.settings.to:value;$this.o.pointers[i].set(value,true);}});this.o.value=this.domNode.find(".v");this.is.init=true;$.each(this.o.pointers,function(i){$this.redraw(this);});(function(self){$(window).resize(function(){self.onresize();});})(this);},setSkin:function(skin){if(this.skin_)
this.domNode.removeDependClass(this.skin_,"_");this.domNode.addDependClass(this.skin_=skin,"_");},setPointersIndex:function(i){$.each(this.getPointers(),function(i){this.index(i);});},getPointers:function(){return this.o.pointers;},generateScale:function(){if(this.settings.scale&&this.settings.scale.length>0){var str="";var s=this.settings.scale;var prc=Math.round((100/(s.length-1))*10)/10;for(var i=0;i<s.length;i++){str+='<span style="left: '+i*prc+'%">'+(s[i]!='|'?'<ins>'+s[i]+'</ins>':'')+'</span>';};return str;}else return"";return"";},drawScale:function(){this.domNode.find(OPTIONS.selector+"scale span ins").each(function(){$(this).css({marginLeft:-$(this).outerWidth()/2});});},onresize:function(){var self=this;this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()};$.each(this.o.pointers,function(i){self.redraw(this);});},limits:function(x,pointer){if(!this.settings.smooth){var step=this.settings.step*100/(this.settings.interval);x=Math.round(x/step)*step;}
var another=this.o.pointers[1-pointer.uid];if(another&&pointer.uid&&x<another.value.prc)x=another.value.prc;if(another&&!pointer.uid&&x>another.value.prc)x=another.value.prc;if(x<0)x=0;if(x>100)x=100;return Math.round(x*10)/10;},redraw:function(pointer){if(!this.is.init)return false;this.setValue();if(this.o.pointers[0]&&this.o.pointers[1])
this.o.value.css({left:this.o.pointers[0].value.prc+"%",width:(this.o.pointers[1].value.prc-this.o.pointers[0].value.prc)+"%"});this.o.labels[pointer.uid].value.html(this.nice(pointer.value.origin));this.redrawLabels(pointer);},redrawLabels:function(pointer){function setPosition(label,sizes,prc){sizes.margin=-sizes.label/2;label_left=sizes.border+sizes.margin;if(label_left<0)
sizes.margin-=label_left;if(sizes.border+sizes.label/2>self.sizes.domWidth){sizes.margin=0;sizes.right=true;}else
sizes.right=false;label.o.css({left:prc+"%",marginLeft:sizes.margin,right:"auto"});if(sizes.right)label.o.css({left:"auto",right:0});return sizes;}
var self=this;var label=this.o.labels[pointer.uid];var prc=pointer.value.prc;var sizes={label:label.o.outerWidth(),right:false,border:(prc*this.sizes.domWidth)/100};if(!this.settings.single){var another=this.o.pointers[1-pointer.uid];var another_label=this.o.labels[another.uid];switch(pointer.uid){case 0:if(sizes.border+sizes.label/2>another_label.o.offset().left-this.sizes.domOffset.left){another_label.o.css({visibility:"hidden"});another_label.value.html(this.nice(another.value.origin));label.o.css({visibility:"visible"});prc=(another.value.prc-prc)/2+prc;if(another.value.prc!=pointer.value.prc){label.value.html(this.nice(pointer.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(another.value.origin));sizes.label=label.o.outerWidth();sizes.border=(prc*this.sizes.domWidth)/100;}}else{another_label.o.css({visibility:"visible"});}
break;case 1:if(sizes.border-sizes.label/2<another_label.o.offset().left-this.sizes.domOffset.left+another_label.o.outerWidth()){another_label.o.css({visibility:"hidden"});another_label.value.html(this.nice(another.value.origin));label.o.css({visibility:"visible"});prc=(prc-another.value.prc)/2+another.value.prc;if(another.value.prc!=pointer.value.prc){label.value.html(this.nice(another.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(pointer.value.origin));sizes.label=label.o.outerWidth();sizes.border=(prc*this.sizes.domWidth)/100;}}else{another_label.o.css({visibility:"visible"});}
break;}}
sizes=setPosition(label,sizes,prc);if(another_label){var sizes={label:another_label.o.outerWidth(),right:false,border:(another.value.prc*this.sizes.domWidth)/100};sizes=setPosition(another_label,sizes,another.value.prc);}
this.redrawLimits();},redrawLimits:function(){if(this.settings.limits){var limits=[true,true];for(key in this.o.pointers){if(!this.settings.single||key==0){var pointer=this.o.pointers[key];var label=this.o.labels[pointer.uid];var label_left=label.o.offset().left-this.sizes.domOffset.left;var limit=this.o.limits[0];if(label_left<limit.outerWidth())
limits[0]=false;var limit=this.o.limits[1];if(label_left+label.o.outerWidth()>this.sizes.domWidth-limit.outerWidth())
limits[1]=false;}};for(var i=0;i<limits.length;i++){if(limits[i])
this.o.limits[i].fadeIn("fast");else
this.o.limits[i].fadeOut("fast");};}},setValue:function(){var value=this.getValue();this.inputNode.attr("value",value);this.onstatechange.call(this,value);},getValue:function(){if(!this.is.init)return false;var $this=this;var value="";$.each(this.o.pointers,function(i){if(this.value.prc!=undefined&&!isNaN(this.value.prc))value+=(i>0?";":"")+$this.prcToValue(this.value.prc);});return value;},getPrcValue:function(){if(!this.is.init)return false;var $this=this;var value="";$.each(this.o.pointers,function(i){if(this.value.prc!=undefined&&!isNaN(this.value.prc))value+=(i>0?";":"")+this.value.prc;});return value;},prcToValue:function(prc){if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0){var h=this.settings.heterogeneity;var _start=0;var _from=this.settings.from;for(var i=0;i<=h.length;i++){if(h[i])var v=h[i].split("/");else var v=[100,this.settings.to];v[0]=new Number(v[0]);v[1]=new Number(v[1]);if(prc>=_start&&prc<=v[0]){var value=_from+((prc-_start)*(v[1]-_from))/(v[0]-_start);}
_start=v[0];_from=v[1];};}else{var value=this.settings.from+(prc*this.settings.interval)/100;}
return this.round(value);},valueToPrc:function(value,pointer){if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0){var h=this.settings.heterogeneity;var _start=0;var _from=this.settings.from;for(var i=0;i<=h.length;i++){if(h[i])var v=h[i].split("/");else var v=[100,this.settings.to];v[0]=new Number(v[0]);v[1]=new Number(v[1]);if(value>=_from&&value<=v[1]){var prc=pointer.limits(_start+(value-_from)*(v[0]-_start)/(v[1]-_from));}
_start=v[0];_from=v[1];};}else{var prc=pointer.limits((value-this.settings.from)*100/this.settings.interval);}
return prc;},round:function(value){value=Math.round(value/this.settings.step)*this.settings.step;if(this.settings.round)value=Math.round(value*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round);else value=Math.round(value);return value;},nice:function(value){value=value.toString().replace(/,/gi,".");value=value.toString().replace(/ /gi,"");if(Number.prototype.jSliderNice)
return(new Number(value)).jSliderNice(this.settings.round).replace(/-/gi,"&minus;");else
return new Number(value);}};function jSliderPointer(){this.baseConstructor.apply(this,arguments);}
jSliderPointer.inheritFrom(Draggable,{oninit:function(ptr,id,_constructor){this.uid=id;this.parent=_constructor;this.value={};this.settings=this.parent.settings;},onmousedown:function(evt){this._parent={offset:this.parent.domNode.offset(),width:this.parent.domNode.width()};this.ptr.addDependClass("hover");this.setIndexOver();},onmousemove:function(evt,x){this._set(this.calc(evt.pageX));},onmouseup:function(evt){this._set(this.calc(evt.pageX));if(this.parent.settings.callback&&$.isFunction(this.parent.settings.callback))
this.parent.settings.callback.call(this.parent,this.parent.getValue());this.ptr.removeDependClass("hover");},setIndexOver:function(){this.parent.setPointersIndex(1);this.index(2);},index:function(i){this.ptr.css({zIndex:i});},limits:function(x){return this.parent.limits(x,this);},calc:function(coords){var x=this.limits(((coords-this._parent.offset.left)*100)/this._parent.width);return x;},set:function(value,opt_origin){this.value.origin=this.parent.round(value);this._set(this.parent.valueToPrc(value,this),opt_origin);},_set:function(prc,opt_origin){if(!opt_origin)
this.value.origin=this.parent.prcToValue(prc);this.value.prc=prc;this.ptr.css({left:prc+"%"});this.parent.redraw(this);}});})(jQuery);jQuery.fn.blink=function(o){var d={speed:200,blinks:3,callback:null};var o=jQuery.extend(d,o);return this.each(function(){var calls=0;for(i=1;i<=o.blinks;i++){$(this).animate({opacity:0},o.speed).animate({opacity:1},o.speed,function(){calls++;if(calls==o.blinks&&jQuery.isFunction(o.callback)){o.callback();}});}});};(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr);};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())
+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')
+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0);};});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val;}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}
return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,'position')=='static'))
offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});(function($){$.fn.bounce=function(sConfig){try{var opts=$.fn.bounce.opts;if(typeof(sConfig)!='undefined'){if(typeof(sConfig.bounceclass)!='undefined'){opts.bounceclass=sConfig.bounceclass;}
if(typeof(sConfig.min)!='undefined'){opts.iMin=sConfig.min;}
if(typeof(sConfig.max)!='undefined'){opts.iMax=sConfig.max;}
if(typeof(sConfig.bottom)!='undefined'){opts.bBottom=sConfig.bottom;}
if(typeof(sConfig.string)!='undefined'){opts.clickstring=sConfig.string;}
if(typeof(sConfig.open)!='undefined'){opts.bAllopen=sConfig.open;}}
return this.each(function(){var temp_tfx=wrapText(this,opts.bounceclass);if(temp_tfx!=null){if(!opts.bBottom){temp_tfx.innerHTML=opts.clickstring+temp_tfx.innerHTML;}else{temp_tfx.innerHTML+=opts.clickstring;}
var tfx={};tfx.elem=temp_tfx;tfx.elem.running=false;tfx.elem.jq=$(temp_tfx);tfx.elem.textarea=temp_tfx.childNodes;if(tfx.elem.textarea.length){if(!opts.bBottom){tfx.elem.textarea=tfx.elem.textarea[1];}else{tfx.elem.textarea=tfx.elem.textarea[0];}}else{return false;}
tfx.elem.textarea.jq=$(tfx.elem.textarea);tfx.elem.textarea.style.display='none';tfx.elem.bOpen=false;tfx.elem.style.height=opts.iMin+'px';tfx.elem.style.display='block';tfx.elem.jq.click(BounceEvent);tfx.elem.textarea.jq.click(function(ev){ev.cancelBubble=true;return false;});opts.aBouncers.push(tfx.elem);if(opts.bAllopen){$.fn.bounceOpen(iTemps+1);}}});}catch(e){writeConsole('Error in bounce(): ',e);}};$.fn.bounce.opts={iMin:10,iMax:200,iDuration:1500,bounceclass:'mybounce',bBottom:true,bAllopen:false,aBouncers:new Array,clickstring:'----',aTop:new Array};function wrapText(cThis,sClass){try{if(!cThis){return false;}
var oParent=cThis.parentNode;if(oParent){if(typeof(oParent.bOpen)!='undefined'){return null;}}
var oWrap=document.createElement('div');if(typeof(sClass)!='undefined'){oWrap.className=sClass;}
oWrap.appendChild(cThis.cloneNode(true));oParent.insertBefore(oWrap,cThis);oParent.removeChild(cThis);cThis=oWrap;oWrap=null;oParent=null;}catch(e){writeConsole('Error in wrapText(): ',e);}
return cThis;};function BounceEvent(){var opts=$.fn.bounce.opts;if(this.running){return false;}
if(this.bOpen){this.bOpen=false;$(this).height(opts.iMin);this.textarea.style.display='none';this.running=false;}else{this.running=true;this.bOpen=true;this.textarea.style.display='block';var keep_this=this;$(this).animate({height:opts.iMax},{duration:opts.iDuration,easing:'easeOutElastic'});window.setTimeout(function(){keep_this.running=false;},1500);}};$.fn.bounceOpen=function(){try{var opts=$.fn.bounce.opts;if(arguments.length>1){for(var iTemps=0;iTemps<arguments.length;iTemps++){var iBouncer=arguments[iTemps];if((iBouncer>0)&&(iBouncer<=opts.aBouncers.length)){var oThis=opts.aBouncers[iBouncer-1];if(!oThis.bOpen){oThis.textarea.style.display='block';oThis.bOpen=true;$(oThis).height(opts.iMax);}
oThis=null;}}
if(this){return this;}}else{return this.each(function(){var oThis=this.parentNode;if(oThis){if(typeof(oThis.bOpen)!='undefined'){if(!oThis.bOpen){oThis.textarea.style.display='block';oThis.bOpen=true;$(oThis).height(opts.iMax);}}}
oThis=null;});}}catch(e){writeConsole('Error in bounceOpen(): ',e);}};function writeConsole(sText,e){if(typeof(sText)!='undefined'){var bConsole=false;if(typeof(console)!='undefined'){if(typeof(console.log)!='undefined'){bConsole=true;}}
if(bConsole){var oLog=console.log;}else{var oLog=alert;}
var sErrorOutput='';if(typeof(e)!='undefined'){if(typeof(e.message)!='undefined'){sErrorOutput=e.message;}}
oLog(sText+sErrorOutput);}};})(jQuery);(function($){$.fn.condense=function(options){$.metadata?debug('metadata plugin detected'):debug('metadata plugin not present');var opts=$.extend({},$.fn.condense.defaults,options);return this.each(function(){$this=$(this);var o=$.metadata?$.extend({},opts,$this.metadata()):opts;debug('Condensing ['+$this.text().length+']: '+$this.text());var clone=cloneCondensed($this,o);if(clone){$this.attr('id')?$this.attr('id','condensed_'+$this.attr('id')):false;var controlMore=" <span class='condense_control condense_control_more' style='cursor:pointer;'>"+o.moreText+"</span>";var controlLess=" <span class='condense_control condense_control_less' style='cursor:pointer;'>"+o.lessText+"</span>";clone.append(o.ellipsis+controlMore);$this.after(clone).hide().append(controlLess);$('.condense_control_more',clone).click(function(){debug('moreControl clicked.');triggerExpand($(this),o)});$('.condense_control_less',$this).click(function(){debug('lessControl clicked.');triggerCondense($(this),o)});}});};function cloneCondensed(elem,opts){if($.trim(elem.text()).length<=opts.condensedLength+opts.minTrail){debug('element too short: skipping.');return false;}
var fullbody=$.trim(elem.html());var fulltext=$.trim(elem.text());var delim=opts.delim;var clone=elem.clone();var delta=0;do{var loc=findDelimiterLocation(fullbody,opts.delim,(opts.condensedLength+delta));clone.html($.trim(fullbody.substring(0,(loc+1))));var cloneTextLength=clone.text().length;var cloneHtmlLength=clone.html().length;delta=clone.html().length-cloneTextLength;debug("condensing... [html-length:"+cloneHtmlLength+" text-length:"+cloneTextLength+" delta: "+delta+" break-point: "+loc+"]");}while(clone.text().length<opts.condensedLength)
if((fulltext.length-cloneTextLength)<opts.minTrail){debug('not enough trailing text: skipping.');return false;}
debug('clone condensed. [text-length:'+cloneTextLength+']');return clone;}
function findDelimiterLocation(html,delim,startpos){var foundDelim=false;var loc=startpos;do{var loc=html.indexOf(delim,loc);if(loc<0){debug("No delimiter found.");return html.length;}
foundDelim=true;while(isInsideTag(html,loc)){loc++;foundDelim=false;}}while(!foundDelim)
debug("Delimiter found in html at: "+loc);return loc;}
function isInsideTag(html,loc){return(html.indexOf('>',loc)<html.indexOf('<',loc));}
function triggerCondense(control,opts){debug('Condense Trigger: '+control.html());var orig=control.parent();var condensed=orig.next();condensed.show();var con_w=condensed.width();var con_h=condensed.height();condensed.hide();var orig_w=orig.width();var orig_h=orig.height();orig.animate({height:con_h,width:con_w,opacity:1},opts.lessSpeed,opts.easing,function(){orig.height(orig_h).width(orig_w).hide();condensed.show();});}
function triggerExpand(control,opts){debug('Expand Trigger: '+control.html());var condensed=control.parent();var orig=condensed.prev();orig.show();var orig_w=orig.width();var orig_h=orig.height();orig.width(condensed.width()+"px").height(condensed.height()+"px");condensed.hide();orig.animate({height:orig_h,width:orig_w,opacity:1},opts.moreSpeed,opts.easing);if(condensed.attr('id')){var idAttr=condensed.attr('id');condensed.attr('id','condensed_'+idAttr);orig.attr('id',idAttr);}}
function debug($obj){if(window.console&&window.console.log){window.console.log($obj);}};$.fn.condense.defaults={condensedLength:200,minTrail:20,delim:" ",moreText:"[more]",lessText:"[less]",ellipsis:" ( ... )",moreSpeed:"normal",lessSpeed:"normal",easing:"linear"};})(jQuery);(function($){$.fn.expander=function(options){var opts=$.extend({},$.fn.expander.defaults,options);var delayedCollapse;return this.each(function(){var $this=$(this);var o=$.meta?$.extend({},opts,$this.data()):opts;var cleanedTag,startTags,endTags;var allText=$this.html();var startText=allText.slice(0,o.slicePoint).replace(/\w+$/,'');startTags=startText.match(/<\w[^>]*>/g);if(startTags){startText=allText.slice(0,o.slicePoint+startTags.join('').length).replace(/\w+$/,'');}
if(startText.lastIndexOf('<')>startText.lastIndexOf('>')){startText=startText.slice(0,startText.lastIndexOf('<'));}
var endText=allText.slice(startText.length);if(!$('span.details',this).length){if(endText.replace(/\s+$/,'').split(' ').length<o.widow){return;}
if(endText.indexOf('</')>-1){endTags=endText.match(/<(\/)?[^>]*>/g);for(var i=0;i<endTags.length;i++){if(endTags[i].indexOf('</')>-1){var startTag,startTagExists=false;for(var j=0;j<i;j++){startTag=endTags[j].slice(0,endTags[j].indexOf(' ')).replace(/(\w)$/,'$1>');if(startTag==rSlash(endTags[i])){startTagExists=true;}}
if(!startTagExists){startText=startText+endTags[i];var matched=false;for(var s=startTags.length-1;s>=0;s--){if(startTags[s].slice(0,startTags[s].indexOf(' ')).replace(/(\w)$/,'$1>')==rSlash(endTags[i])&&matched==false){cleanedTag=cleanedTag?startTags[s]+cleanedTag:startTags[s];matched=true;}};}}}
endText=cleanedTag&&cleanedTag+endText||endText;}
$this.html([startText,'<span class="read-more">',o.expandPrefix,'<a href="#">',o.expandText,'</a>','</span>','<span class="details">',endText,'</span>'].join(''));}
var $thisDetails=$('span.details',this),$readMore=$('span.read-more',this);$thisDetails.hide();$readMore.find('a').click(function(){$readMore.hide();if(o.expandEffect==='show'&&!o.expandSpeed){o.beforeExpand($this);$thisDetails.show();o.afterExpand($this);delayCollapse(o,$thisDetails);}else{o.beforeExpand($this);$thisDetails[o.expandEffect](o.expandSpeed,function(){$thisDetails.css({zoom:''});o.afterExpand($this);delayCollapse(o,$thisDetails);});}
return false;});if(o.userCollapse){$this.find('span.details').append('<span class="re-collapse">'+o.userCollapsePrefix+'<a href="#">'+o.userCollapseText+'</a></span>');$this.find('span.re-collapse a').click(function(){clearTimeout(delayedCollapse);var $detailsCollapsed=$(this).parents('span.details');reCollapse($detailsCollapsed);o.onCollapse($this,true);return false;});}});function reCollapse(el){el.hide().prev('span.read-more').show();}
function delayCollapse(option,$collapseEl){if(option.collapseTimer){delayedCollapse=setTimeout(function(){reCollapse($collapseEl);option.onCollapse($collapseEl.parent(),false);},option.collapseTimer);}}
function rSlash(rString){return rString.replace(/\//,'');}};$.fn.expander.defaults={slicePoint:100,widow:4,expandText:'read more',expandPrefix:'&hellip; ',collapseTimer:0,expandEffect:'fadeIn',expandSpeed:'',userCollapse:true,userCollapseText:'[collapse expanded text]',userCollapsePrefix:' ',beforeExpand:function($thisEl){},afterExpand:function($thisEl){},onCollapse:function($thisEl,byUser){}};})(jQuery);var SeitenURL='http://www.dergepflegtemann.de';var SeitenTitel='Männerkosmetik Shop von DerGepflegteMann.de';var Kommentar='Exklusive Grooming Männerkosmetik Artikel für Rasur, Gesicht-, Haar- und Körperpflege für den Mann! High Quality Produkte namhafter Hersteller aus den USA.';function Lesezeichen()
{if(window.sidebar)
{window.sidebar.addPanel(SeitenTitel,SeitenURL,Kommentar);}
else if(window.opera&&window.print)
{var elem=document.createElement('a');elem.setAttribute('href',SeitenURL);elem.setAttribute('title',SeitenTitel);elem.setAttribute('rel','sidebar');elem.click();}
else if(document.all)
{window.external.AddFavorite(SeitenURL,SeitenTitel);}}
function showHome()
{closeLogin();closeNoticelist();closeNoticelist2()
closeBasket();}
function autoClose()
{$("#emcontentpage").bind("mouseenter",function(){showHome();});}
var t_showBasket;var b_isopenBasket;function showBasket()
{clearTimeout(t_showBasket);closeLogin();closeNoticelist();closeNoticelist2();$("#animation_basket").addClass("hover");if($.browser.msie)
$("#popup_basket").fadeIn(0);else
$("#popup_basket").fadeIn(300);b_isopenBasket=true;}
function closeBasket()
{$("#animation_basket").removeClass("hover");if($.browser.msie)
$("#popup_basket").fadeOut(0);else
$("#popup_basket").fadeOut(300);b_isopenBasket=false;}
function showBasketAuto()
{showBasket();t_showBasket=setTimeout("closeBasket()",8000);setTimeout("autoClose()",8000);}
var t_showLogin;var b_isopenLogin;function showLogin()
{if(b_isopenLogin==true)
return;clearTimeout(t_showLogin);closeBasket();closeNoticelist();closeNoticelist2();$("#animation_login").addClass("hover");if($.browser.msie)
$("#popup_login").fadeIn(0);else
$("#popup_login").fadeIn(300);b_isopenLogin=true;}
function closeLogin()
{$("#animation_login").removeClass("hover");if($.browser.msie)
$("#popup_login").fadeOut(0);else
$("#popup_login").fadeOut(300);b_isopenLogin=false;}
var t_showNoticelist;var b_isopenNoticelist;function showNoticelist()
{closeBasket();closeLogin();$("#animation_noticelist").addClass("hover");if($.browser.msie)
$("#popup_noticelist").fadeIn(0);else
$("#popup_noticelist").fadeIn(300);b_isopenNoticelist=true;}
function closeNoticelist()
{$("#animation_noticelist").removeClass("hover");if($.browser.msie)
$("#popup_noticelist").fadeOut(0);else
$("#popup_noticelist").fadeOut(300);b_isopenNoticelist=false;}
function showNoticelistAuto()
{showNoticelist();t_showNoticelist=setTimeout("closeNoticelist()",8000);setTimeout("autoClose()",8000);}
function showNoticelist2()
{closeBasket();closeLogin();$("#animation_noticelist").addClass("hover");if($.browser.msie)
$("#popup_noticelist2").fadeIn(0);else
$("#popup_noticelist2").fadeIn(300);b_isopenNoticelist=true;}
function closeNoticelist2()
{$("#animation_noticelist").removeClass("hover");if($.browser.msie)
$("#popup_noticelist2").fadeOut(0);else
$("#popup_noticelist2").fadeOut(300);b_isopenNoticelist=false;}
var t_showLanguage;var b_isopenLanguage;function showLanguage()
{closeBasket();$("#slide_language").addClass("hover");b_isopenLanguage=true;}
function closeLanguage()
{$("#slide_language").removeClass("hover");b_isopenLanguage=false;}
var t_showBrands;var b_isopenBrands;function showBrands()
{$("#slide_brands").addClass("hover");b_isopenBrands=true;}
function closeBrands()
{$("#slide_brands").removeClass("hover");b_isopenBrands=false;}
var t_showHelp;var b_isopenHelp;function showHelp()
{$("#slide_help").addClass("hover");b_isopenHelp=true;}
function closeHelp()
{$("#slide_help").removeClass("hover");b_isopenHelp=false;}
var t_showSorting;var b_isopenSorting;function showSorting()
{$("#slide_sorting").addClass("hover");b_isopenSorting=true;}
function closeSorting()
{$("#slide_sorting").removeClass("hover");b_isopenSorting=false;}
$(document).ready(function()
{if($("#slide_sorting"))
{$("#slide_sorting").hover(function(){clearTimeout(t_showSorting);t_showBrands=setTimeout("showSorting()",0);},function(){clearTimeout(t_showSorting);t_showSorting=setTimeout("closeSorting()",0);});}});
