(function(a,b){function d(c){return!a(c).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.9",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(c,f){return typeof c==="number"?this.each(function(){var h=this;setTimeout(function(){a(h).focus();f&&f.call(h)},c)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,
"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?a(document):c},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var f;c.length&&c[0]!==document;){f=c.css("position");
if(f==="absolute"||f==="relative"||f==="fixed"){f=parseInt(c.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}c=c.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(c,f){function h(u,o,x,B){a.each(j,function(){o-=parseFloat(a.curCSS(u,"padding"+this,true))||0;if(x)o-=parseFloat(a.curCSS(u,
"border"+this+"Width",true))||0;if(B)o-=parseFloat(a.curCSS(u,"margin"+this,true))||0});return o}var j=f==="Width"?["Left","Right"]:["Top","Bottom"],r=f.toLowerCase(),t={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+f]=function(u){if(u===b)return t["inner"+f].call(this);return this.each(function(){a(this).css(r,h(this,u)+"px")})};a.fn["outer"+f]=function(u,o){if(typeof u!=="number")return t["outer"+f].call(this,u);return this.each(function(){a(this).css(r,
h(this,u,true,o)+"px")})}});a.extend(a.expr[":"],{data:function(c,f,h){return!!a.data(c,h[3])},focusable:function(c){var f=c.nodeName.toLowerCase(),h=a.attr(c,"tabindex");if("area"===f){f=c.parentNode;h=f.name;if(!c.href||!h||f.nodeName.toLowerCase()!=="map")return false;c=a("img[usemap=#"+h+"]")[0];return!!c&&d(c)}return(/input|select|textarea|button|object/.test(f)?!c.disabled:"a"==f?c.href||!isNaN(h):!isNaN(h))&&d(c)},tabbable:function(c){var f=a.attr(c,"tabindex");return(isNaN(f)||f>=0)&&a(c).is(":focusable")}});
a(function(){var c=document.body,f=c.appendChild(f=document.createElement("div"));a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart"in f;c.removeChild(f).style.display="none"});a.extend(a.ui,{plugin:{add:function(c,f,h){c=a.ui[c].prototype;for(var j in h){c.plugins[j]=c.plugins[j]||[];c.plugins[j].push([f,h[j]])}},call:function(c,f,h){if((f=c.plugins[f])&&c.element[0].parentNode)for(var j=0;j<f.length;j++)c.options[f[j][0]]&&
f[j][1].apply(c.element,h)}},contains:function(c,f){return document.compareDocumentPosition?c.compareDocumentPosition(f)&16:c!==f&&c.contains(f)},hasScroll:function(c,f){if(a(c).css("overflow")==="hidden")return false;f=f&&f==="left"?"scrollLeft":"scrollTop";var h=false;if(c[f]>0)return true;c[f]=1;h=c[f]>0;c[f]=0;return h},isOverAxis:function(c,f,h){return c>f&&c<f+h},isOver:function(c,f,h,j,r,t){return a.ui.isOverAxis(c,h,r)&&a.ui.isOverAxis(f,j,t)}})}})(jQuery);
(function(a,b){if(a.cleanData){var d=a.cleanData;a.cleanData=function(f){for(var h=0,j;(j=f[h])!=null;h++)a(j).triggerHandler("remove");d(f)}}else{var c=a.fn.remove;a.fn.remove=function(f,h){return this.each(function(){if(!h)if(!f||a.filter(f,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return c.call(a(this),f,h)})}}a.widget=function(f,h,j){var r=f.split(".")[0],t;f=f.split(".")[1];t=r+"-"+f;if(!j){j=h;h=a.Widget}a.expr[":"][t]=function(u){return!!a.data(u,
f)};a[r]=a[r]||{};a[r][f]=function(u,o){arguments.length&&this._createWidget(u,o)};h=new h;h.options=a.extend(true,{},h.options);a[r][f].prototype=a.extend(true,h,{namespace:r,widgetName:f,widgetEventPrefix:a[r][f].prototype.widgetEventPrefix||f,widgetBaseClass:t},j);a.widget.bridge(f,a[r][f])};a.widget.bridge=function(f,h){a.fn[f]=function(j){var r=typeof j==="string",t=Array.prototype.slice.call(arguments,1),u=this;j=!r&&t.length?a.extend.apply(null,[true,j].concat(t)):j;if(r&&j.charAt(0)==="_")return u;
r?this.each(function(){var o=a.data(this,f),x=o&&a.isFunction(o[j])?o[j].apply(o,t):o;if(x!==o&&x!==b){u=x;return false}}):this.each(function(){var o=a.data(this,f);o?o.option(j||{})._init():a.data(this,f,new h(j,this))});return u}};a.Widget=function(f,h){arguments.length&&this._createWidget(f,h)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,h){a.data(h,this.widgetName,this);this.element=a(h);this.options=a.extend(true,{},this.options,
this._getCreateOptions(),f);var j=this;this.element.bind("remove."+this.widgetName,function(){j.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(f,h){var j=f;if(arguments.length===0)return a.extend({},this.options);if(typeof f==="string"){if(h===b)return this.options[f];j={};j[f]=h}this._setOptions(j);return this},_setOptions:function(f){var h=this;a.each(f,function(j,r){h._setOption(j,r)});return this},_setOption:function(f,h){this.options[f]=h;if(f==="disabled")this.widget()[h?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",h);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,h,j){var r=this.options[f];h=a.Event(h);h.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();j=j||{};if(h.originalEvent){f=a.event.props.length;for(var t;f;){t=a.event.props[--f];h[t]=h.originalEvent[t]}}this.element.trigger(h,j);return!(a.isFunction(r)&&r.call(this.element[0],h,j)===false||h.isDefaultPrevented())}}})(jQuery);
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(d){return b._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===a.data(d.target,b.widgetName+".preventClickEvent")){a.removeData(d.target,b.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=
b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var d=this,c=b.which==1,f=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!c||f||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=
this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(h){return d._mouseMove(h)};this._mouseUpDelegate=function(h){return d._mouseUp(h)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);
return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b);return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",
true);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(b){var d=
this.options;if(this.helper||d.disabled||a(b.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(b);if(!this.handle)return false;return true},_mouseStart:function(b){var d=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",b)===false){this._clear();return false}this._cacheHelperProportions();
a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){d=this._uiHash();if(this._trigger("drag",b,d)===false){this._mouseUp({});return false}this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return false},_mouseStop:function(b){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)d=a.ui.ddmanager.drop(this,b);if(this.dropped){d=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&
this.options.revert.call(this.element,d)){var c=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b)!==false&&c._clear()})}else this._trigger("stop",b)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(b){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
b.target)d=true});return d},_createHelper:function(b){var d=this.options;b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[b])):d.helper=="clone"?this.element.clone():this.element;b.parents("body").length||b.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||
0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment==
"parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[(b.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(b.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?
0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){var d=a(b.containment)[0];if(d){b=a(b.containment).offset();var c=a(d).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(a(d).css("borderTopWidth"),
10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,b.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(b.containment.constructor==
Array)this.containment=b.containment},_convertPositionTo:function(b,d){if(!d)d=this.position;b=b=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:d.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
f?0:c.scrollTop())*b),left:d.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),h=b.pageX,j=b.pageY;
if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])h=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])j=this.containment[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])h=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])j=this.containment[3]+this.offset.click.top}if(d.grid){j=this.originalPageY+Math.round((j-this.originalPageY)/
d.grid[1])*d.grid[1];j=this.containment?!(j-this.offset.click.top<this.containment[1]||j-this.offset.click.top>this.containment[3])?j:!(j-this.offset.click.top<this.containment[1])?j-d.grid[1]:j+d.grid[1]:j;h=this.originalPageX+Math.round((h-this.originalPageX)/d.grid[0])*d.grid[0];h=this.containment?!(h-this.offset.click.left<this.containment[0]||h-this.offset.click.left>this.containment[2])?h:!(h-this.offset.click.left<this.containment[0])?h-d.grid[0]:h+d.grid[0]:h}}return{top:j-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,d,c){c=c||this._uiHash();a.ui.plugin.call(this,b,[d,c]);if(b=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,b,d,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.9"});a.ui.plugin.add("draggable",
"connectToSortable",{start:function(b,d){var c=a(this).data("draggable"),f=c.options,h=a.extend({},d,{item:c.element});c.sortables=[];a(f.connectToSortable).each(function(){var j=a.data(this,"sortable");if(j&&!j.options.disabled){c.sortables.push({instance:j,shouldRevert:j.options.revert});j._refreshItems();j._trigger("activate",b,h)}})},stop:function(b,d){var c=a(this).data("draggable"),f=a.extend({},d,{item:c.element});a.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,f)}})},drag:function(b,d){var c=a(this).data("draggable"),f=this;a.each(c.sortables,function(){this.instance.positionAbs=
c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};b.target=this.instance.currentItem[0];this.instance._mouseCapture(b,
true);this.instance._mouseStart(b,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",b);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(b)}else if(this.instance.isOver){this.instance.isOver=
0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",b,this.instance._uiHash(this.instance));this.instance._mouseStop(b,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",b);c.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),d=a(this).data("draggable").options;if(b.css("cursor"))d._cursor=
b.css("cursor");b.css("cursor",d.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")})},
stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(b,d){b=a(d.helper);d=a(this).data("draggable").options;if(b.css("opacity"))d._opacity=b.css("opacity");b.css("opacity",d.opacity)},stop:function(b,d){b=a(this).data("draggable").options;b._opacity&&a(d.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=
document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(b){var d=a(this).data("draggable"),c=d.options,f=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-b.pageY<c.scrollSensitivity)d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop+c.scrollSpeed;else if(b.pageY-d.overflowOffset.top<c.scrollSensitivity)d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop-
c.scrollSpeed;if(!c.axis||c.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-b.pageX<c.scrollSensitivity)d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft+c.scrollSpeed;else if(b.pageX-d.overflowOffset.left<c.scrollSensitivity)d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(b.pageY-a(document).scrollTop()<c.scrollSensitivity)f=a(document).scrollTop(a(document).scrollTop()-c.scrollSpeed);else if(a(window).height()-
(b.pageY-a(document).scrollTop())<c.scrollSensitivity)f=a(document).scrollTop(a(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(b.pageX-a(document).scrollLeft()<c.scrollSensitivity)f=a(document).scrollLeft(a(document).scrollLeft()-c.scrollSpeed);else if(a(window).width()-(b.pageX-a(document).scrollLeft())<c.scrollSensitivity)f=a(document).scrollLeft(a(document).scrollLeft()+c.scrollSpeed)}f!==false&&a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,b)}});a.ui.plugin.add("draggable",
"snap",{start:function(){var b=a(this).data("draggable"),d=b.options;b.snapElements=[];a(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var c=a(this),f=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(b,d){for(var c=a(this).data("draggable"),f=c.options,h=f.snapTolerance,j=d.offset.left,r=j+c.helperProportions.width,t=d.offset.top,u=t+c.helperProportions.height,o=
c.snapElements.length-1;o>=0;o--){var x=c.snapElements[o].left,B=x+c.snapElements[o].width,C=c.snapElements[o].top,F=C+c.snapElements[o].height;if(x-h<j&&j<B+h&&C-h<t&&t<F+h||x-h<j&&j<B+h&&C-h<u&&u<F+h||x-h<r&&r<B+h&&C-h<t&&t<F+h||x-h<r&&r<B+h&&C-h<u&&u<F+h){if(f.snapMode!="inner"){var y=Math.abs(C-u)<=h,A=Math.abs(F-t)<=h,J=Math.abs(x-r)<=h,D=Math.abs(B-j)<=h;if(y)d.position.top=c._convertPositionTo("relative",{top:C-c.helperProportions.height,left:0}).top-c.margins.top;if(A)d.position.top=c._convertPositionTo("relative",
{top:F,left:0}).top-c.margins.top;if(J)d.position.left=c._convertPositionTo("relative",{top:0,left:x-c.helperProportions.width}).left-c.margins.left;if(D)d.position.left=c._convertPositionTo("relative",{top:0,left:B}).left-c.margins.left}var Q=y||A||J||D;if(f.snapMode!="outer"){y=Math.abs(C-t)<=h;A=Math.abs(F-u)<=h;J=Math.abs(x-j)<=h;D=Math.abs(B-r)<=h;if(y)d.position.top=c._convertPositionTo("relative",{top:C,left:0}).top-c.margins.top;if(A)d.position.top=c._convertPositionTo("relative",{top:F-c.helperProportions.height,
left:0}).top-c.margins.top;if(J)d.position.left=c._convertPositionTo("relative",{top:0,left:x}).left-c.margins.left;if(D)d.position.left=c._convertPositionTo("relative",{top:0,left:B-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[o].snapping&&(y||A||J||D||Q))c.options.snap.snap&&c.options.snap.snap.call(c.element,b,a.extend(c._uiHash(),{snapItem:c.snapElements[o].item}));c.snapElements[o].snapping=y||A||J||D||Q}else{c.snapElements[o].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,
b,a.extend(c._uiHash(),{snapItem:c.snapElements[o].item}));c.snapElements[o].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options;b=a.makeArray(a(b.stack)).sort(function(c,f){return(parseInt(a(c).css("zIndex"),10)||0)-(parseInt(a(f).css("zIndex"),10)||0)});if(b.length){var d=parseInt(b[0].style.zIndex)||0;a(b).each(function(c){this.style.zIndex=d+c});this[0].style.zIndex=d+b.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(b,
d){b=a(d.helper);d=a(this).data("draggable").options;if(b.css("zIndex"))d._zIndex=b.css("zIndex");b.css("zIndex",d.zIndex)},stop:function(b,d){b=a(this).data("draggable").options;b._zIndex&&a(d.helper).css("zIndex",b._zIndex)}})})(jQuery);var VZ_$=$;
function VirtualAgent(a){this.build="2_0_10";this.scriptFileName="VirtuOzAgent.js";this.cssFileName="VirtuOz.css";this.baseDir=this.getScriptPath(this.scriptFileName);this.width="397";this.height="375";this.swfUrl=this.baseDir+"Ethias.swf?b="+this.build;this.flashversion="9";this.botDiv="agentContainer";this.langCode=a.toUpperCase();this.firstClick=this.isPopin=true;this.isOpen=this.minimized=this.flashContent=this.agent=null;this.posP={x:null,y:null};this.posR={x:null,y:null};this.img={popin:{FR:this.baseDir+
"assets/img/popin_FR.png",NL:this.baseDir+"assets/img/popin_NL.png"},minimized:{FR:this.baseDir+"assets/img/reduce_FR.png",NL:this.baseDir+"assets/img/reduce_NL.png"},closeX:this.baseDir+"assets/img/btnClose.png",minimize:this.baseDir+"assets/img/btnMinimize.png"};this.css={VZ_Agent:{width:"422px",height:"426px",position:"fixed",right:"10px",bottom:"10px",zIndex:"9999",visibility:"hidden"},VZ_Flash:{width:"397px",height:"375px",position:"absolute",left:"13px",top:"34px",outline:"none"},VZ_Reduce:{width:"413px",
height:"87px",position:"fixed",right:"10px",bottom:"10px",outline:"none",backgroundPosition:"0px -87px",cursor:"pointer",visibility:"hidden"},VZ_ReduceHover:{backgroundPosition:"0px 0px"},VZ_CloseX:{position:"absolute",top:"18px",right:"17px",width:"13px",height:"14px",backgroundPosition:"0px -14px",overflow:"hidden",cursor:"pointer"},VZ_CloseXHover:{backgroundPosition:"0px 0px"},VZ_Minimize:{position:"absolute",top:"18px",right:"32px",width:"13px",height:"14px",backgroundPosition:"0px -14px",overflow:"hidden",
cursor:"pointer"},VZ_MinimizeHover:{backgroundPosition:"0px 0px"},VZ_DragHandle:{position:"absolute",top:"15px",left:"15px",width:"355px",height:"22px",overflow:"hidden",cursor:"move",outline:"none"}}}
VirtualAgent.prototype={bind:function(a){var b=this;return function(){return a.apply(b,arguments)}},getScriptPath:function(a){a=a.toLowerCase();var b=document.getElementsByTagName("script");for(i=0;i<b.length;i++)if(b[i].src&&b[i].src.toLowerCase().lastIndexOf(a)!=-1)return b[i].src.toString().substring(0,b[i].src.toLowerCase().lastIndexOf(a));return""},init:function(){this.isPopin&&this.createPopinDivs();var a=VZ_$.browser.msie?"opaque":"window",b={appAbsPath:this.baseDir,contextID:this.getCookie("contextID"),
interlocutorID:this.getCookie("interlocutorID"),langCode:this.langCode,convHistory:this.getCookie("history")};a={menu:"false",bgcolor:"#ffffff",allowScriptAccess:"always",wmode:a};var d={};this.swfobject.embedSWF(this.swfUrl,this.botDiv,this.width,this.height,this.flashversion,this.baseDir+"expressInstall.swf",b,a,d,this.bind(this.flashLoaded))},flashLoaded:function(){this.flashContent=VZ_$("#"+this.botDiv);this.isPopin&&this.popinInit()},createPopinDivs:function(){this.agent=VZ_$("<div class='VZ_Agent'></div>").appendTo("body").html("<div class='VZ_DragHandle'></div><div class='VZ_Flash'></div>").css("backgroundImage",
"url('"+this.img.popin[this.langCode]+"')");this.flashContent=VZ_$("#"+this.botDiv).appendTo(VZ_$(".VZ_Flash"));VZ_$("<div class='VZ_CloseX'></div>").appendTo(this.agent).css("backgroundImage","url('"+this.img.closeX+"')").click(this.bind(this.clearAll));VZ_$("<div class='VZ_Minimize'></div>").appendTo(this.agent).css("backgroundImage","url('"+this.img.minimize+"')").click(this.bind(this.showMinimized));this.minimized=VZ_$("<div class='VZ_Reduce'></div>").appendTo("body").css("backgroundImage","url('"+
this.img.minimized[this.langCode]+"')").click(this.bind(this.showPopin));for(var a in this.css)try{VZ_$("."+a).css(this.css[a])}catch(b){}},popinInit:function(){if(VZ_$.browser.msie){this.agent.css("position","absolute");this.minimized.css("position","absolute");this.posP.x=parseInt(this.getCookie("popinX"))||this.agent.offset().left-VZ_$(window).scrollLeft();this.posP.y=parseInt(this.getCookie("popinY"))||this.agent.offset().top-VZ_$(window).scrollTop()}else{this.posP.x=parseInt(this.getCookie("popinX"))||
this.agent.offset().left-VZ_$(window).scrollLeft();this.posP.y=parseInt(this.getCookie("popinY"))||this.agent.offset().top-VZ_$(window).scrollTop();this.agent.css({left:this.posP.x+"px",top:this.posP.y+"px"})}this.posR={x:this.minimized.offset().left-VZ_$(window).scrollLeft(),y:this.minimized.offset().top-VZ_$(window).scrollLeft()};this.isOpen=this.getCookie("popinOpen");switch(this.isOpen){case "L":this.firstClick=false;this.showPopin();break;case "S":this.showMinimized();break;default:this.clearAll()}this.agent.draggable({containment:"document",
handle:".VZ_DragHandle",addClasses:false,start:this.bind(this.onStartMove),stop:this.bind(this.onStopMove)});VZ_$(window).scroll(this.bind(this.setPosition))},setPosition:function(){var a={x:this.posP.x,y:this.posP.y},b=VZ_$(window).width()-this.agent.width(),d=VZ_$(window).height()-this.agent.height();this.posP.x=this.posP.x>b?b-5:this.posP.x;this.posP.y=this.posP.y>d?d-5:this.posP.y;this.posP.x=this.posP.x<0?5:this.posP.x;this.posP.y=this.posP.y<0?5:this.posP.y;if(this.posP.x!=a.x||this.posP.y!=
a.y){this.agent.css({left:this.posP.x+"px",top:this.posP.y+"px"});this.saveBoxPos(this.isOpen)}this.agent.css("position")=="absolute"&&this.agent.css({left:VZ_$(window).scrollLeft()+this.posP.x+"px",top:VZ_$(window).scrollTop()+this.posP.y+"px"});this.minimized.css("position")=="absolute"&&this.minimized.css({left:VZ_$(window).scrollLeft()+this.posR.x+"px",top:VZ_$(window).scrollTop()+this.posR.y+"px"})},onStartMove:function(){},onStopMove:function(){this.posP.x=this.agent.offset().left-VZ_$(window).scrollLeft();
this.posP.y=this.agent.offset().top-VZ_$(window).scrollTop();this.saveBoxPos("L")},showPopin:function(){if(this.firstClick){this.firstClick=false;var a=this.langCode=="FR"?"http://be.sitestat.com/ethias/ethias/s?ethias.fr.hyperlink-mathias_popupsite":"http://be.sitestat.com/ethias/ethias/s?ethias.nl.hyperlink-mathias_popupsite";try{sitestat(a)}catch(b){}}this.agent.css("visibility","visible");this.flashContent.css("visibility","visible");this.minimized.css("visibility","hidden");this.saveBoxPos("L");
this.setPosition()},showMinimized:function(){this.agent.css("visibility","hidden");this.flashContent.css("visibility","hidden");this.minimized.css("visibility","visible");this.saveBoxPos("S");this.setPosition()},clearAll:function(){this.agent.css("visibility","hidden");this.flashContent.css("visibility","hidden");this.minimized.css("visibility","hidden");this.saveBoxPos("")},saveBoxPos:function(a){this.isOpen=a;this.setCookie("popinX",this.posP.x,"session");this.setCookie("popinY",this.posP.y,"session");
this.setCookie("popinOpen",a,"session")},getCookie:function(a){for(var b=document.cookie.split("; "),d=0;d<b.length;d++){var c=b[d].split("=");if(c[0]==escape(a))return c[1]?unescape(c[1]):""}return""},setCookie:function(a,b,d,c,f,h){if(!a)return false;if(d=="delete")d=-10;if(d==undefined)d=2592E3;if(d=="followUp"||d=="contextID"||d=="interlocutorID"||d=="contextFlag"||d=="contextInfo")d=1800;if(d=="history")d=2592E3;if(c==undefined||c=="")c="/";document.cookie=escape(a)+"="+escape(b)+(d!="session"?
";expires="+(new Date((new Date).getTime()+1E3*d)).toGMTString():"")+(c?";path="+c:"")+(f?";domain="+f:"")+(h?";secure":"");if(d<0){if(typeof this.getCookie(a)=="string")return false;return true}if(typeof this.getCookie(a)=="string")return true;return false},swfobject:function(){function a(){if(!N){try{var e=s.getElementsByTagName("body")[0].appendChild(A("span"));e.parentNode.removeChild(e)}catch(g){return}N=true;e=T.length;for(var k=0;k<e;k++)T[k]()}}function b(e){if(N)e();else T[T.length]=e}function d(e){if(typeof E.addEventListener!=
v)E.addEventListener("load",e,false);else if(typeof s.addEventListener!=v)s.addEventListener("load",e,false);else if(typeof E.attachEvent!=v)J(E,"onload",e);else if(typeof E.onload=="function"){var g=E.onload;E.onload=function(){g();e()}}else E.onload=e}function c(){da?f():h()}function f(){var e=s.getElementsByTagName("body")[0],g=A(G);g.setAttribute("type",U);var k=e.appendChild(g);if(k){var l=0;(function(){if(typeof k.GetVariable!=v){var m=k.GetVariable("$version");if(m){m=m.split(" ")[1].split(",");
n.pv=[parseInt(m[0],10),parseInt(m[1],10),parseInt(m[2],10)]}}else if(l<10){l++;setTimeout(arguments.callee,10);return}e.removeChild(g);k=null;h()})()}else h()}function h(){var e=K.length;if(e>0)for(var g=0;g<e;g++){var k=K[g].id,l=K[g].callbackFn,m={success:false,id:k};if(n.pv[0]>0){var p=y(k);if(p)if(D(K[g].swfVersion)&&!(n.wk&&n.wk<312)){O(k,true);if(l){m.success=true;m.ref=j(k);l(m)}}else if(K[g].expressInstall&&r()){m={};m.data=K[g].expressInstall;m.width=p.getAttribute("width")||"0";m.height=
p.getAttribute("height")||"0";if(p.getAttribute("class"))m.styleclass=p.getAttribute("class");if(p.getAttribute("align"))m.align=p.getAttribute("align");var q={};p=p.getElementsByTagName("param");for(var w=p.length,z=0;z<w;z++)if(p[z].getAttribute("name").toLowerCase()!="movie")q[p[z].getAttribute("name")]=p[z].getAttribute("value");t(m,q,k,l)}else{u(p);l&&l(m)}}else{O(k,true);if(l){if((k=j(k))&&typeof k.SetVariable!=v){m.success=true;m.ref=k}l(m)}}}}function j(e){var g=null;if((e=y(e))&&e.nodeName==
"OBJECT")if(typeof e.SetVariable!=v)g=e;else if(e=e.getElementsByTagName(G)[0])g=e;return g}function r(){return!V&&D("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function t(e,g,k,l){V=true;ba=l||null;ea={success:false,id:k};var m=y(k);if(m){if(m.nodeName=="OBJECT"){R=o(m);W=null}else{R=m;W=k}e.id=fa;if(typeof e.width==v||!/%$/.test(e.width)&&parseInt(e.width,10)<310)e.width="310";if(typeof e.height==v||!/%$/.test(e.height)&&parseInt(e.height,10)<137)e.height="137";s.title=s.title.slice(0,47)+" - Flash Player Installation";
l=n.ie&&n.win?"ActiveX":"PlugIn";l="MMredirectURL="+E.location.toString().replace(/&/g,"%26")+"&MMplayerType="+l+"&MMdoctitle="+s.title;if(typeof g.flashvars!=v)g.flashvars+="&"+l;else g.flashvars=l;if(n.ie&&n.win&&m.readyState!=4){l=A("div");k+="SWFObjectNew";l.setAttribute("id",k);m.parentNode.insertBefore(l,m);m.style.display="none";(function(){m.readyState==4?m.parentNode.removeChild(m):setTimeout(arguments.callee,10)})()}x(e,g,k)}}function u(e){if(n.ie&&n.win&&e.readyState!=4){var g=A("div");
e.parentNode.insertBefore(g,e);g.parentNode.replaceChild(o(e),g);e.style.display="none";(function(){e.readyState==4?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)})()}else e.parentNode.replaceChild(o(e),e)}function o(e){var g=A("div");if(n.win&&n.ie)g.innerHTML=e.innerHTML;else if(e=e.getElementsByTagName(G)[0])if(e=e.childNodes)for(var k=e.length,l=0;l<k;l++)!(e[l].nodeType==1&&e[l].nodeName=="PARAM")&&e[l].nodeType!=8&&g.appendChild(e[l].cloneNode(true));return g}function x(e,g,k){var l,
m=y(k);if(n.wk&&n.wk<312)return l;if(m){if(typeof e.id==v)e.id=k;if(n.ie&&n.win){var p="";for(var q in e)if(e[q]!=Object.prototype[q])if(q.toLowerCase()=="data")g.movie=e[q];else if(q.toLowerCase()=="styleclass")p+=' class="'+e[q]+'"';else if(q.toLowerCase()!="classid")p+=" "+q+'="'+e[q]+'"';q="";for(var w in g)if(g[w]!=Object.prototype[w])q+='<param name="'+w+'" value="'+g[w]+'" />';m.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+p+">"+q+"</object>";X[X.length]=e.id;l=
y(e.id)}else{w=A(G);w.setAttribute("type",U);for(p in e)if(e[p]!=Object.prototype[p])if(p.toLowerCase()=="styleclass")w.setAttribute("class",e[p]);else p.toLowerCase()!="classid"&&w.setAttribute(p,e[p]);for(var z in g)g[z]!=Object.prototype[z]&&z.toLowerCase()!="movie"&&B(w,z,g[z]);m.parentNode.replaceChild(w,m);l=w}}return l}function B(e,g,k){var l=A("param");l.setAttribute("name",g);l.setAttribute("value",k);e.appendChild(l)}function C(e){var g=y(e);if(g&&g.nodeName=="OBJECT")if(n.ie&&n.win){g.style.display=
"none";(function(){g.readyState==4?F(e):setTimeout(arguments.callee,10)})()}else g.parentNode.removeChild(g)}function F(e){if(e=y(e)){for(var g in e)if(typeof e[g]=="function")e[g]=null;e.parentNode.removeChild(e)}}function y(e){var g=null;try{g=s.getElementById(e)}catch(k){}return g}function A(e){return s.createElement(e)}function J(e,g,k){e.attachEvent(g,k);P[P.length]=[e,g,k]}function D(e){var g=n.pv;e=e.split(".");e[0]=parseInt(e[0],10);e[1]=parseInt(e[1],10)||0;e[2]=parseInt(e[2],10)||0;return g[0]>
e[0]||g[0]==e[0]&&g[1]>e[1]||g[0]==e[0]&&g[1]==e[1]&&g[2]>=e[2]?true:false}function Q(e,g,k,l){if(!(n.ie&&n.mac)){var m=s.getElementsByTagName("head")[0];if(m){k=k&&typeof k=="string"?k:"screen";if(l)ca=H=null;if(!H||ca!=k){l=A("style");l.setAttribute("type","text/css");l.setAttribute("media",k);H=m.appendChild(l);if(n.ie&&n.win&&typeof s.styleSheets!=v&&s.styleSheets.length>0)H=s.styleSheets[s.styleSheets.length-1];ca=k}if(n.ie&&n.win)H&&typeof H.addRule==G&&H.addRule(e,g);else H&&typeof s.createTextNode!=
v&&H.appendChild(s.createTextNode(e+" {"+g+"}"))}}}function O(e,g){if(ga){g=g?"visible":"hidden";if(N&&y(e))y(e).style.visibility=g;else Q("#"+e,"visibility:"+g)}}function ha(e){var g=/[\\\"<>\.;]/;return(g=g.exec(e)!=null)&&typeof encodeURIComponent!=v?encodeURIComponent(e):e}var v="undefined",G="object",ia="Shockwave Flash",ka="ShockwaveFlash.ShockwaveFlash",U="application/x-shockwave-flash",fa="SWFObjectExprInst",ja="onreadystatechange",E=window,s=document,L=navigator,da=false,T=[c],K=[],X=[],
P=[],R,W,ba,ea,N=false,V=false,H,ca,ga=true,n=function(){var e=typeof s.getElementById!=v&&typeof s.getElementsByTagName!=v&&typeof s.createElement!=v,g=L.userAgent.toLowerCase(),k=L.platform.toLowerCase(),l=k?/win/.test(k):/win/.test(g);k=k?/mac/.test(k):/mac/.test(g);g=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var m=!+"\u000b1",p=[0,0,0],q=null;if(typeof L.plugins!=v&&typeof L.plugins[ia]==G){if((q=L.plugins[ia].description)&&!(typeof L.mimeTypes!=v&&L.mimeTypes[U]&&
!L.mimeTypes[U].enabledPlugin)){da=true;m=false;q=q.replace(/^.*\s+(\S+\s+\S+$)/,"$1");p[0]=parseInt(q.replace(/^(.*)\..*$/,"$1"),10);p[1]=parseInt(q.replace(/^.*\.(.*)\s.*$/,"$1"),10);p[2]=/[a-zA-Z]/.test(q)?parseInt(q.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof E.ActiveXObject!=v)try{var w=new ActiveXObject(ka);if(w)if(q=w.GetVariable("$version")){m=true;q=q.split(" ")[1].split(",");p=[parseInt(q[0],10),parseInt(q[1],10),parseInt(q[2],10)]}}catch(z){}return{w3:e,pv:p,wk:g,ie:m,win:l,
mac:k}}();(function(){if(n.w3){if(typeof s.readyState!=v&&s.readyState=="complete"||typeof s.readyState==v&&(s.getElementsByTagName("body")[0]||s.body))a();if(!N){typeof s.addEventListener!=v&&s.addEventListener("DOMContentLoaded",a,false);if(n.ie&&n.win){s.attachEvent(ja,function(){if(s.readyState=="complete"){s.detachEvent(ja,arguments.callee);a()}});E==top&&function(){if(!N){try{s.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return}a()}}()}n.wk&&function(){N||(/loaded|complete/.test(s.readyState)?
a():setTimeout(arguments.callee,0))}();d(a)}}})();(function(){n.ie&&n.win&&window.attachEvent("onunload",function(){for(var e=P.length,g=0;g<e;g++)P[g][0].detachEvent(P[g][1],P[g][2]);e=X.length;for(g=0;g<e;g++)C(X[g]);for(var k in n)n[k]=null;n=null;for(var l in va.swfobject)va.swfobject[l]=null;va.swfobject=null})})();return{registerObject:function(e,g,k,l){if(n.w3&&e&&g){var m={};m.id=e;m.swfVersion=g;m.expressInstall=k;m.callbackFn=l;K[K.length]=m;O(e,false)}else l&&l({success:false,id:e})},getObjectById:function(e){if(n.w3)return j(e)},
embedSWF:function(e,g,k,l,m,p,q,w,z,S){var Y={success:false,id:g};if(n.w3&&!(n.wk&&n.wk<312)&&e&&g&&k&&l&&m){O(g,false);b(function(){k+="";l+="";var M={};if(z&&typeof z===G)for(var I in z)M[I]=z[I];M.data=e;M.width=k;M.height=l;I={};if(w&&typeof w===G)for(var Z in w)I[Z]=w[Z];if(q&&typeof q===G)for(var aa in q)if(typeof I.flashvars!=v)I.flashvars+="&"+aa+"="+q[aa];else I.flashvars=aa+"="+q[aa];if(D(m)){Z=x(M,I,g);M.id==g&&O(g,true);Y.success=true;Y.ref=Z}else if(p&&r()){M.data=p;t(M,I,g,S);return}else O(g,
true);S&&S(Y)})}else S&&S(Y)},switchOffAutoHideShow:function(){ga=false},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:D,createSWF:function(e,g,k){if(n.w3)return x(e,g,k)},showExpressInstall:function(e,g,k,l){n.w3&&r()&&t(e,g,k,l)},removeSWF:function(e){n.w3&&C(e)},createCSS:function(e,g,k,l){n.w3&&Q(e,g,k,l)},addDomLoadEvent:b,addLoadEvent:d,getQueryParamValue:function(e){var g=s.location.search||s.location.hash;if(g){if(/\?/.test(g))g=
g.split("?")[1];if(e==null)return ha(g);g=g.split("&");for(var k=0;k<g.length;k++)if(g[k].substring(0,g[k].indexOf("="))==e)return ha(g[k].substring(g[k].indexOf("=")+1))}return""},expressInstallCallback:function(){if(V){var e=y(fa);if(e&&R){e.parentNode.replaceChild(R,e);if(W){O(W,true);if(n.ie&&n.win)R.style.display="block"}ba&&ba(ea)}V=false}}}}()};

