/*
 * jQuery UI 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
(function(a){a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.2",plugin:{add:function(f,c,h){f=a.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g<c.length;g++){f.options[c[g][0]]&&c[g][1].apply(f.element,h)}}}},contains:function(d,c){return document.compareDocumentPosition?d.compareDocumentPosition(c)&16:d!==c&&d.contains(c)},hasScroll:function(e,c){if(a(e).css("overflow")=="hidden"){return false}c=c&&c=="left"?"scrollLeft":"scrollTop";var f=false;if(e[c]>0){return true}e[c]=1;f=e[c]>0;e[c]=0;return f},isOverAxis:function(e,c,f){return e>c&&e<c+f},isOver:function(h,c,l,k,j,i){return a.ui.isOverAxis(h,l,j)&&a.ui.isOverAxis(c,k,i)},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(d,c){return typeof d==="number"?this.each(function(){var b=this;setTimeout(function(){a(b).focus();c&&c.call(b)},d)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var b;b=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"))||!b.length?a(document):b},zIndex:function(d){if(d!==undefined){return this.css("zIndex",d)}if(this.length){d=a(this[0]);for(var c;d.length&&d[0]!==document;){c=d.css("position");if(c=="absolute"||c=="relative"||c=="fixed"){c=parseInt(d.css("zIndex"));if(!isNaN(c)&&c!=0){return c}}d=d.parent()}}return 0}});a.extend(a.expr[":"],{data:function(e,c,f){return !!a.data(e,f[3])},focusable:function(e){var c=e.nodeName.toLowerCase(),f=a.attr(e,"tabindex");return(/input|select|textarea|button|object/.test(c)?!e.disabled:"a"==c||"area"==c?e.href||!isNaN(f):!isNaN(f))&&!a(e)["area"==c?"parents":"closest"](":hidden").length},tabbable:function(d){var c=a.attr(d,"tabindex");return(isNaN(c)||c>=0)&&a(d).is(":focusable")}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a){var c=a.fn.remove;a.fn.remove=function(b,d){return this.each(function(){if(!d){if(!b||a.filter(b,[this]).length){a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})}}return c.call(a(this),b,d)})};a.widget=function(b,j,i){var h=b.split(".")[0],g;b=b.split(".")[1];g=h+"-"+b;if(!i){i=j;j=a.Widget}a.expr[":"][g]=function(d){return !!a.data(d,b)};a[h]=a[h]||{};a[h][b]=function(d,e){arguments.length&&this._createWidget(d,e)};j=new j;j.options=a.extend({},j.options);a[h][b].prototype=a.extend(true,j,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},i);a.widget.bridge(b,a[h][b])};a.widget.bridge=function(b,d){a.fn[b]=function(k){var j=typeof k==="string",i=Array.prototype.slice.call(arguments,1),g=this;k=!j&&i.length?a.extend.apply(null,[true,k].concat(i)):k;if(j&&k.substring(0,1)==="_"){return g}j?this.each(function(){var f=a.data(this,b),e=f&&a.isFunction(f[k])?f[k].apply(f,i):f;if(e!==f&&e!==undefined){g=e;return false}}):this.each(function(){var e=a.data(this,b);if(e){k&&e.option(k);e._init()}else{a.data(this,b,new d(k,this))}});return g}};a.Widget=function(b,d){arguments.length&&this._createWidget(b,d)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,f){this.element=a(f).data(this.widgetName,this);this.options=a.extend(true,{},this.options,a.metadata&&a.metadata.get(f)[this.widgetName],b);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._init()},_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(b,h){var g=b,f=this;if(arguments.length===0){return a.extend({},f.options)}if(typeof b==="string"){if(h===undefined){return this.options[b]}g={};g[b]=h}a.each(g,function(e,d){f._setOption(e,d)});return f},_setOption:function(b,d){this.options[b]=d;if(b==="disabled"){this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",d)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,j,i){var h=this.options[b];j=a.Event(j);j.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();i=i||{};if(j.originalEvent){b=a.event.props.length;for(var g;b;){g=a.event.props[--b];j[g]=j.originalEvent[g]}}this.element.trigger(j,i);return !(a.isFunction(h)&&h.call(this.element[0],j,i)===false||j.isDefaultPrevented())}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(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(c){return b._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var c=this,h=d.which==1,g=typeof this.options.cancel=="string"?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false;if(!h||g||!this._mouseCapture(d)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(b){return c._mouseMove(b)};this._mouseUpDelegate=function(b){return c._mouseUp(b)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||d.preventDefault();return d.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!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;this._preventClickEvent=b.target==this._mouseDownEvent.target;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.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,c=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");c.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");this.range=a([]);if(c.range){if(c.range===true){this.range=a("<div></div>");if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&&c.values.length!==2){c.values=[c.values[0],c.values[0]]}}else{this.range=a("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(c.range==="min"||c.range==="max"){this.range.addClass("ui-slider-range-"+c.range)}this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");if(c.values&&c.values.length){for(;a(".ui-slider-handle",this.element).length<c.values.length;){a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()}).hover(function(){c.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(c.disabled){a(this).blur()}else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)});this.handles.keydown(function(n){var m=true,l=a(this).data("index.ui-slider-handle"),k,j,b;if(!d.options.disabled){switch(n.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:m=false;if(!d._keySliding){d._keySliding=true;a(this).addClass("ui-state-active");k=d._start(n,l);if(k===false){return}}break}b=d.options.step;k=d.options.values&&d.options.values.length?(j=d.values(l)):(j=d.value());switch(n.keyCode){case a.ui.keyCode.HOME:j=d._valueMin();break;case a.ui.keyCode.END:j=d._valueMax();break;case a.ui.keyCode.PAGE_UP:j=d._trimAlignValue(k+(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:j=d._trimAlignValue(k-(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(k===d._valueMax()){return}j=d._trimAlignValue(k+b);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(k===d._valueMin()){return}j=d._trimAlignValue(k-b);break}d._slide(n,l,j);return m}}).keyup(function(f){var b=a(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(f,b);d._change(f,b);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(j){var d=this.options,q,o,n,m,l,k;if(d.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();q={x:j.pageX,y:j.pageY};o=this._normValueFromMouse(q);n=this._valueMax()-this._valueMin()+1;l=this;this.handles.each(function(c){var b=Math.abs(o-l.values(c));if(n>b){n=b;m=a(this);k=c}});if(d.range===true&&this.values(1)===d.min){k+=1;m=a(this.handles[k])}if(this._start(j,k)===false){return false}this._mouseSliding=true;l._handleIndex=k;m.addClass("ui-state-active").focus();d=m.offset();this._clickOffset=!a(j.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:j.pageX-d.left-m.width()/2,top:j.pageY-d.top-m.height()/2-(parseInt(m.css("borderTopWidth"),10)||0)-(parseInt(m.css("borderBottomWidth"),10)||0)+(parseInt(m.css("marginTop"),10)||0)};o=this._normValueFromMouse(q);this._slide(j,k,o);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(d){var c=this._normValueFromMouse({x:d.pageX,y:d.pageY});this._slide(d,this._handleIndex,c);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var c;if(this.orientation==="horizontal"){c=this.elementSize.width;d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}c=d/c;if(c>1){c=1}if(c<0){c=0}if(this.orientation==="vertical"){c=1-c}d=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+c*d)},_start:function(e,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}return this._trigger("start",e,f)},_slide:function(f,d,h){var g;if(this.options.values&&this.options.values.length){g=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===true&&(d===0&&h>g||d===1&&h<g)){h=g}if(h!==this.values(d)){g=this.values();g[d]=h;f=this._trigger("slide",f,{handle:this.handles[d],value:h,values:g});this.values(d?0:1);f!==false&&this.values(d,h,true)}}else{if(h!==this.value()){f=this._trigger("slide",f,{handle:this.handles[d],value:h});f!==false&&this.value(h)}}},_stop:function(e,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("stop",e,f)},_change:function(e,d){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("change",e,f)}},value:function(b){if(arguments.length){this.options.value=this._trimAlignValue(b);this._refreshValue();this._change(null,0)}return this._value()},values:function(g,d){var j,i,h;if(arguments.length>1){this.options.values[g]=this._trimAlignValue(d);this._refreshValue();this._change(null,g)}if(arguments.length){if(a.isArray(arguments[0])){j=this.options.values;i=arguments[0];for(h=0;h<j.length;h+=1){j[h]=this._trimAlignValue(i[h]);this._change(null,h)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(g):this.value()}}else{return this._values()}},_setOption:function(f,d){var h,g=0;if(a.isArray(this.options.values)){g=this.options.values.length}a.Widget.prototype._setOption.apply(this,arguments);switch(f){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(h=0;h<g;h+=1){this._change(null,h)}this._animateOff=false;break}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b)},_values:function(e){var d,f;if(arguments.length){d=this.options.values[e];return d=this._trimAlignValue(d)}else{d=this.options.values.slice();for(f=0;f<d.length;f+=1){d[f]=this._trimAlignValue(d[f])}return d}},_trimAlignValue:function(e){if(e<this._valueMin()){return this._valueMin()}if(e>this._valueMax()){return this._valueMax()}var d=this.options.step>0?this.options.step:1,f=e%d;e=e-f;if(Math.abs(f)*2>=d){e+=f>0?d:-d}return parseFloat(e.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var u=this.options.range,t=this.options,s=this,r=!this._animateOff?t.animate:false,q,o={},n,m,l,d;if(this.options.values&&this.options.values.length){this.handles.each(function(b){q=(s.values(b)-s._valueMin())/(s._valueMax()-s._valueMin())*100;o[s.orientation==="horizontal"?"left":"bottom"]=q+"%";a(this).stop(1,1)[r?"animate":"css"](o,t.animate);if(s.options.range===true){if(s.orientation==="horizontal"){if(b===0){s.range.stop(1,1)[r?"animate":"css"]({left:q+"%"},t.animate)}if(b===1){s.range[r?"animate":"css"]({width:q-n+"%"},{queue:false,duration:t.animate})}}else{if(b===0){s.range.stop(1,1)[r?"animate":"css"]({bottom:q+"%"},t.animate)}if(b===1){s.range[r?"animate":"css"]({height:q-n+"%"},{queue:false,duration:t.animate})}}}n=q})}else{m=this.value();l=this._valueMin();d=this._valueMax();q=d!==l?(m-l)/(d-l)*100:0;o[s.orientation==="horizontal"?"left":"bottom"]=q+"%";this.handle.stop(1,1)[r?"animate":"css"](o,t.animate);if(u==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[r?"animate":"css"]({width:q+"%"},t.animate)}if(u==="max"&&this.orientation==="horizontal"){this.range[r?"animate":"css"]({width:100-q+"%"},{queue:false,duration:t.animate})}if(u==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[r?"animate":"css"]({height:q+"%"},t.animate)}if(u==="max"&&this.orientation==="vertical"){this.range[r?"animate":"css"]({height:100-q+"%"},{queue:false,duration:t.animate})}}}});a.extend(a.ui.slider,{version:"1.8.2"})})(jQuery);if($.browser.msie===true){(function(){var b=document;var c=window.PIE;if(!c){c=window.PIE={CSS_PREFIX:"-pie-",STYLE_PREFIX:"Pie",CLASS_PREFIX:"pie_",tableCellTags:{TD:1,TH:1}};try{b.execCommand("BackgroundImageCache",false,true)}catch(a){}c.ieVersion=function(){var d=4,f=b.createElement("div"),e=f.getElementsByTagName("i");while(f.innerHTML="<!--[if gt IE "+(++d)+"]><i></i><![endif]-->",e[0]){}return d}();if(c.ieVersion===6){c.CSS_PREFIX=c.CSS_PREFIX.replace(/^-/,"")}c.ie8DocMode=c.ieVersion===8&&b.documentMode;c.Util={createVmlElement:function(d){var e="css3vml",f=c._vmlCreatorDoc;if(!f){f=c._vmlCreatorDoc=b.createDocumentFragment();f.namespaces.add(e,"urn:schemas-microsoft-com:vml")}return f.createElement(e+":"+d)},getUID:function(d){return d&&d._pieId||(d._pieId=+new Date()+Math.random())},merge:function(j){var g,d,h,e,f=arguments;for(g=1,d=f.length;g<d;g++){e=f[g];for(h in e){if(e.hasOwnProperty(h)){j[h]=e[h]}}}return j},withImageSize:function(i,h,d){var g=c._imgSizes||(c._imgSizes={}),f=g[i],e;if(f){h.call(d,f)}else{e=new Image();e.onload=function(){f=g[i]={w:e.width,h:e.height};h.call(d,f);e.onload=null};e.src=i}}};c.Observable=function(){this.observers=[];this.indexes={}};c.Observable.prototype={observe:function(e){var g=c.Util.getUID(e),d=this.indexes,f=this.observers;if(!(g in d)){d[g]=f.length;f.push(e)}},unobserve:function(e){var f=c.Util.getUID(e),d=this.indexes;if(f&&f in d){delete this.observers[d[f]];delete d[f]}},fire:function(){var e=this.observers,d=e.length;while(d--){e[d]&&e[d]()}}};if(c.ie8DocMode===8){c.Heartbeat=new c.Observable();setInterval(function(){c.Heartbeat.fire()},250)}c.OnBeforeUnload=new c.Observable();window.attachEvent("onbeforeunload",function(){c.OnBeforeUnload.fire()});c.OnBeforeUnload.attachManagedEvent=function(f,d,e){f.attachEvent(d,e);this.observe(function(){f.detachEvent(d,e)})};(function(){c.OnResize=new c.Observable();function d(){c.OnResize.fire()}c.OnBeforeUnload.attachManagedEvent(window,"onresize",d)})();(function(){c.OnScroll=new c.Observable();function d(){c.OnScroll.fire()}c.OnBeforeUnload.attachManagedEvent(window,"onscroll",d);c.OnResize.observe(d)})();(function(){var f;function d(){f=c.Element.destroyAll()}function e(){if(f){for(var h=0,g=f.length;h<g;h++){c.attach(f[h])}f=0}}c.OnBeforeUnload.attachManagedEvent(window,"onbeforeprint",d);c.OnBeforeUnload.attachManagedEvent(window,"onafterprint",e)})();c.Length=(function(){var h=b.createElement("length-calc"),g=h.style,e={},d={};g.position="absolute";g.top=g.left=-9999;function f(i){this.val=i}f.prototype={unitRE:/(px|em|ex|mm|cm|in|pt|pc|%)$/,getNumber:function(){var i=e[this.val],j;if(i===j){i=e[this.val]=parseFloat(this.val)}return i},getUnit:function(){var j=d[this.val],i;if(!j){i=this.val.match(this.unitRE);j=d[this.val]=(i&&i[0])||"px"}return j},isPercentage:function(){return this.getUnit()==="%"},pixels:function(j,l){var i=this.getNumber(),k=this.getUnit();switch(k){case"px":return i;case"%":return i*(typeof l==="function"?l():l)/100;case"em":return i*this.getEmPixels(j);case"ex":return i*this.getEmPixels(j)/2;default:return i*f.conversions[k]}},getEmPixels:function(k){var i=k.currentStyle.fontSize,j;if(i.indexOf("px")>0){return parseFloat(i)}else{h.style.width="1em";k.appendChild(h);j=h.offsetWidth;if(h.parentNode!==k){k.removeChild(h)}return j}}};f.conversions=(function(){var j=["mm","cm","in","pt","pc"],n={},l=b.documentElement,k=j.length,m;l.appendChild(h);while(k--){m=j[k];h.style.width="100"+m;n[m]=h.offsetWidth/100}l.removeChild(h);return n})();f.ZERO=new f("0");return f})();c.BgPosition=(function(){var g=new c.Length("50%"),e={top:1,center:1,bottom:1},f={left:1,center:1,right:1};function d(h){this.tokens=h}d.prototype={getValues:function(){if(!this._values){var n=this.tokens,m=n.length,h=c.Tokenizer.Type,l=c.Length.ZERO,i=h.IDENT,k=h.LENGTH,j=h.PERCENT,o,r,q=["left",l,"top",l];if(m===1){n.push({type:i,value:"center"});m++}if(m===2){if(i&(n[0].type|n[1].type)&&n[0].value in e&&n[1].value in f){n.push(n.shift())}if(n[0].type&i){if(n[0].value==="center"){q[1]=g}else{q[0]=n[0].value}}else{if(n[0].isLengthOrPercent()){q[1]=new c.Length(n[0].value)}}if(n[1].type&i){if(n[1].value==="center"){q[3]=g}else{q[2]=n[1].value}}else{if(n[1].isLengthOrPercent()){q[3]=new c.Length(n[1].value)}}}else{}this._values=q}return this._values},coords:function(k,j,i){var l=this.getValues(),h=l[1].pixels(k,j),m=l[3].pixels(k,i);return{x:l[0]==="right"?j-h:h,y:l[2]==="bottom"?i-m:m}}};return d})();c.Angle=(function(){function d(e){this.val=e}d.prototype={unitRE:/[a-z]+$/i,getUnit:function(){return this._unit||(this._unit=this.val.match(this.unitRE)[0].toLowerCase())},degrees:function(){var f=this._deg,e,g;if(f===undefined){e=this.getUnit();g=parseFloat(this.val,10);f=this._deg=(e==="deg"?g:e==="rad"?g/Math.PI*180:e==="grad"?g/400*360:e==="turn"?g*360:0)}return f}};return d})();c.Color=(function(){function d(e){this.val=e}d.rgbaRE=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/;d.prototype={parse:function(){if(!this._color){var f=this.val,e=f.match(d.rgbaRE);if(e){this._color="rgb("+e[1]+","+e[2]+","+e[3]+")";this._alpha=parseFloat(e[4])}else{this._color=f;this._alpha=(f==="transparent"?0:1)}}},value:function(e){this.parse();return this._color==="currentColor"?e.currentStyle.color:this._color},alpha:function(){this.parse();return this._alpha}};return d})();c.Tokenizer=(function(){function e(f){this.css=f;this.ch=0;this.tokens=[];this.tokenIndex=0}var d=e.Type={ANGLE:1,CHARACTER:2,COLOR:4,DIMEN:8,FUNCTION:16,IDENT:32,LENGTH:64,NUMBER:128,OPERATOR:256,PERCENT:512,STRING:1024,URL:2048};e.Token=function(f,g){this.type=f;this.value=g};e.Token.prototype={isLength:function(){return this.type&d.LENGTH||(this.type&d.NUMBER&&this.value==="0")},isLengthOrPercent:function(){return this.isLength()||this.type&d.PERCENT}};e.prototype={whitespace:/\s/,number:/^[\+\-]?(\d*\.)?\d+/,url:/^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i,ident:/^\-?[_a-z][\w-]*/i,string:/^("([^"]*)"|'([^']*)')/,operator:/^[\/,]/,hash:/^#[\w]+/,hashColor:/^#([\da-f]{6}|[\da-f]{3})/i,unitTypes:{px:d.LENGTH,em:d.LENGTH,ex:d.LENGTH,mm:d.LENGTH,cm:d.LENGTH,"in":d.LENGTH,pt:d.LENGTH,pc:d.LENGTH,deg:d.ANGLE,rad:d.ANGLE,grad:d.ANGLE},colorNames:{aqua:1,black:1,blue:1,fuchsia:1,gray:1,green:1,lime:1,maroon:1,navy:1,olive:1,purple:1,red:1,silver:1,teal:1,white:1,yellow:1,currentColor:1},colorFunctions:{rgb:1,rgba:1,hsl:1,hsla:1},next:function(h){var n,g,t,m,r,j,q=this;function o(v,w){var u=new e.Token(v,w);if(!h){q.tokens.push(u);q.tokenIndex++}return u}function i(){q.tokenIndex++;return null}if(this.tokenIndex<this.tokens.length){return this.tokens[this.tokenIndex++]}while(this.whitespace.test(this.css.charAt(this.ch))){this.ch++}if(this.ch>=this.css.length){return i()}g=this.ch;n=this.css.substring(this.ch);t=n.charAt(0);switch(t){case"#":if(m=n.match(this.hashColor)){this.ch+=m[0].length;return o(d.COLOR,m[0])}break;case'"':case"'":if(m=n.match(this.string)){this.ch+=m[0].length;return o(d.STRING,m[2]||m[3]||"")}break;case"/":case",":this.ch++;return o(d.OPERATOR,t);case"u":if(m=n.match(this.url)){this.ch+=m[0].length;return o(d.URL,m[2]||m[3]||m[4]||"")}}if(m=n.match(this.number)){j=m[0];this.ch+=j.length;if(n.charAt(j.length)==="%"){this.ch++;return o(d.PERCENT,j+"%")}if(m=n.substring(j.length).match(this.ident)){j+=m[0];this.ch+=m[0].length;return o(this.unitTypes[m[0].toLowerCase()]||d.DIMEN,j)}return o(d.NUMBER,j)}if(m=n.match(this.ident)){j=m[0];this.ch+=j.length;if(j.toLowerCase() in this.colorNames){return o(d.COLOR,j)}if(n.charAt(j.length)==="("){this.ch++;if(j.toLowerCase() in this.colorFunctions){function k(u){return u&&u.type&d.NUMBER}function f(u){return u&&(u.type&(d.NUMBER|d.PERCENT))}function s(u,v){return u&&u.value===v}function l(){return q.next(1)}if((j.charAt(0)==="r"?f(l()):k(l()))&&s(l(),",")&&f(l())&&s(l(),",")&&f(l())&&(j==="rgb"||j==="hsa"||(s(l(),",")&&k(l())))&&s(l(),")")){return o(d.COLOR,this.css.substring(g,this.ch))}return i()}return o(d.FUNCTION,j+"(")}return o(d.IDENT,j)}this.ch++;return o(d.CHARACTER,t)},hasNext:function(){var f=this.next();this.prev();return !!f},prev:function(){return this.tokens[this.tokenIndex---2]},all:function(){while(this.next()){}return this.tokens},until:function(h,f){var j=[],g,i;while(g=this.next()){if(h(g)){i=true;this.prev();break}j.push(g)}return f&&!i?null:j}};return e})();c.BoundsInfo=function(d){this.targetElement=d};c.BoundsInfo.prototype={_locked:0,positionChanged:function(){var e=this._lastBounds,d;return !e||((d=this.getBounds())&&(e.x!==d.x||e.y!==d.y))},sizeChanged:function(){var e=this._lastBounds,d;return !e||((d=this.getBounds())&&(e.w!==d.w||e.h!==d.h))},getLiveBounds:function(){var d=this.targetElement.getBoundingClientRect();return{x:d.left,y:d.top,w:d.right-d.left,h:d.bottom-d.top}},getBounds:function(){return this._locked?(this._lockedBounds||(this._lockedBounds=this.getLiveBounds())):this.getLiveBounds()},hasBeenQueried:function(){return !!this._lastBounds},lock:function(){++this._locked},unlock:function(){if(!--this._locked){if(this._lockedBounds){this._lastBounds=this._lockedBounds}this._lockedBounds=null}}};(function(){function d(f){var e=c.Util.getUID(f);return function(){if(this._locked){var g=this._lockedValues||(this._lockedValues={});return(e in g)?g[e]:(g[e]=f.call(this))}else{return f.call(this)}}}c.StyleInfoBase={_locked:0,newStyleInfo:function(e){function f(g){this.targetElement=g}c.Util.merge(f.prototype,c.StyleInfoBase,e);f._propsCache={};return f},getProps:function(){var f=this.getCss(),e=this.constructor._propsCache;return f?(f in e?e[f]:(e[f]=this.parseCss(f))):null},getCss:d(function(){var h=this.targetElement,j=this.constructor,g=h.style,f=h.currentStyle,i=this.cssProperty,e=this.styleProperty,k=j._prefixedCssProp||(j._prefixedCssProp=c.CSS_PREFIX+i),l=j._prefixedStyleProp||(j._prefixedStyleProp=c.STYLE_PREFIX+e.charAt(0).toUpperCase()+e.substring(1));return g[l]||f.getAttribute(k)||g[e]||f.getAttribute(i)}),isActive:d(function(){return !!this.getProps()}),changed:d(function(){var f=this.getCss(),e=f!==this._lastCss;this._lastCss=f;return e}),cacheWhenLocked:d,lock:function(){++this._locked},unlock:function(){if(!--this._locked){delete this._lockedValues}}}})();c.BackgroundStyleInfo=c.StyleInfoBase.newStyleInfo({cssProperty:c.CSS_PREFIX+"background",styleProperty:c.STYLE_PREFIX+"Background",attachIdents:{scroll:1,fixed:1,local:1},repeatIdents:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},originIdents:{"padding-box":1,"border-box":1,"content-box":1},clipIdents:{"padding-box":1,"border-box":1},positionIdents:{top:1,right:1,bottom:1,left:1,center:1},sizeIdents:{contain:1,cover:1},parseCss:function(j){var e=this.targetElement,g=e.currentStyle,m,i,n,r=c.Tokenizer.Type,q=r.OPERATOR,s=r.IDENT,u=r.COLOR,l,v,k=this.positionIdents,d,t,f=null;function o(w){return w.isLengthOrPercent()||(w.type&s&&w.value in k)}function h(w){return(w.isLengthOrPercent()&&new c.Length(w.value))||(w.value==="auto"&&"auto")}if(this.getCss3()){m=new c.Tokenizer(j);f={images:[]};n={};while(i=m.next()){l=i.type;v=i.value;if(!n.type&&l&r.FUNCTION&&v==="linear-gradient("){d={stops:[],type:"linear-gradient"};t={};while(i=m.next()){l=i.type;v=i.value;if(l&r.CHARACTER&&v===")"){if(t.color){d.stops.push(t)}if(d.stops.length>1){c.Util.merge(n,d)}break}if(l&u){if(d.angle||d.gradientStart){i=m.prev();if(i.type!==q){break}m.next()}t={color:new c.Color(v)};i=m.next();if(i.isLengthOrPercent()){t.offset=new c.Length(i.value)}else{m.prev()}}else{if(l&r.ANGLE&&!d.angle&&!t.color&&!d.stops.length){d.angle=new c.Angle(i.value)}else{if(o(i)&&!d.gradientStart&&!t.color&&!d.stops.length){m.prev();d.gradientStart=new c.BgPosition(m.until(function(w){return !o(w)},false))}else{if(l&q&&v===","){if(t.color){d.stops.push(t);t={}}}else{break}}}}}}else{if(!n.type&&l&r.URL){n.url=v;n.type="image"}else{if(o(i)&&!n.size){m.prev();n.position=new c.BgPosition(m.until(function(w){return !o(w)},false))}else{if(l&s){if(v in this.repeatIdents){n.repeat=v}else{if(v in this.originIdents){n.origin=v;if(v in this.clipIdents){n.clip=v}}else{if(v in this.attachIdents){n.attachment=v}}}}else{if(l&u&&!f.color){f.color=new c.Color(v)}else{if(l&q){if(v==="/"){i=m.next();l=i.type;v=i.value;if(l&s&&v in this.sizeIdents){n.size=v}else{if(v=h(i)){n.size={w:v,h:h(m.next())||(m.prev()&&v)}}}}else{if(v===","&&n.type){f.images.push(n);n={}}}}else{return null}}}}}}}if(n.type){f.images.push(n)}}else{this.withActualBg(function(){var z=g.backgroundPositionX,y=g.backgroundPositionY,x=g.backgroundImage,w=g.backgroundColor;f={};if(w!=="transparent"){f.color=new c.Color(w)}if(x!=="none"){f.images=[{type:"image",url:new c.Tokenizer(x).next().value,repeat:g.backgroundRepeat,position:new c.BgPosition(new c.Tokenizer(z+" "+y).all())}]}})}return(f&&(f.color||(f.images&&f.images[0])))?f:null},withActualBg:function(g){var d=this.targetElement.runtimeStyle,f=d.backgroundImage,h=d.backgroundColor,e;if(f){d.backgroundImage=""}if(h){d.backgroundColor=""}e=g.call(this);if(f){d.backgroundImage=f}if(h){d.backgroundColor=h}return e},getCss:c.StyleInfoBase.cacheWhenLocked(function(){return this.getCss3()||this.withActualBg(function(){var d=this.targetElement.currentStyle;return d.backgroundColor+" "+d.backgroundImage+" "+d.backgroundRepeat+" "+d.backgroundPositionX+" "+d.backgroundPositionY})}),getCss3:c.StyleInfoBase.cacheWhenLocked(function(){var d=this.targetElement;return d.style[this.styleProperty]||d.currentStyle.getAttribute(this.cssProperty)}),isPngFix:function(){var e=0,d;if(c.ieVersion<7){d=this.targetElement;e=(""+(d.style[c.STYLE_PREFIX+"PngFix"]||d.currentStyle.getAttribute(c.CSS_PREFIX+"png-fix"))==="true")}return e},isActive:c.StyleInfoBase.cacheWhenLocked(function(){return(this.getCss3()||this.isPngFix())&&!!this.getProps()})});c.BorderStyleInfo=c.StyleInfoBase.newStyleInfo({sides:["Top","Right","Bottom","Left"],namedWidths:{thin:"1px",medium:"3px",thick:"5px"},parseCss:function(f){var d={},h={},k={},i=false,g=true,e=true,j=true;this.withActualBorder(function(){var r=this.targetElement,v=r.currentStyle,u=0,n,t,o,l,s,m,w,q;for(;u<4;u++){w=this.sides[u];q=w.charAt(0).toLowerCase();n=h[q]=v["border"+w+"Style"];t=v["border"+w+"Color"];o=v["border"+w+"Width"];if(u>0){if(n!==l){e=false}if(t!==s){g=false}if(o!==m){j=false}}l=n;s=t;m=o;k[q]=new c.Color(t);o=d[q]=new c.Length(h[q]==="none"?"0":(this.namedWidths[o]||o));if(o.pixels(this.targetElement)>0){i=true}}});return i?{widths:d,styles:h,colors:k,widthsSame:j,colorsSame:g,stylesSame:e}:null},getCss:c.StyleInfoBase.cacheWhenLocked(function(){var f=this.targetElement,e=f.currentStyle,d;if(!(f.tagName in c.tableCellTags&&f.offsetParent.currentStyle.borderCollapse==="collapse")){this.withActualBorder(function(){d=e.borderWidth+"|"+e.borderStyle+"|"+e.borderColor})}return d}),withActualBorder:function(g){var e=this.targetElement.runtimeStyle,d=e.borderWidth,h=e.borderColor,f;if(d){e.borderWidth=""}if(h){e.borderColor=""}f=g.call(this);if(d){e.borderWidth=d}if(h){e.borderColor=h}return f}});(function(){c.BorderRadiusStyleInfo=c.StyleInfoBase.newStyleInfo({cssProperty:"border-radius",styleProperty:"borderRadius",parseCss:function(k){var f=null,n,l,o,j,g,m=false;function i(q){return new c.Length(q)}if(k){o=new c.Tokenizer(k);function h(){var q=[],r;while((j=o.next())&&j.isLengthOrPercent()){g=i(j.value);r=g.getNumber();if(r<0){return null}if(r>0){m=true}q.push(g)}return q.length>0&&q.length<5?{tl:q[0],tr:q[1]||q[0],br:q[2]||q[0],bl:q[3]||q[1]||q[0]}:null}if(n=h()){if(j){if(j.type&c.Tokenizer.Type.OPERATOR&&j.value==="/"){l=h()}}else{l=n}if(m&&n&&l){f={x:n,y:l}}}}return f}});var d=c.Length.ZERO,e={tl:d,tr:d,br:d,bl:d};c.BorderRadiusStyleInfo.ALL_ZERO={x:e,y:e}})();c.BorderImageStyleInfo=c.StyleInfoBase.newStyleInfo({cssProperty:"border-image",styleProperty:"borderImage",repeatIdents:{stretch:1,round:1,repeat:1,space:1},parseCss:function(n){var r=null,q,k,h,t,d,m,w,j=0,i,l=c.Tokenizer.Type,f=l.IDENT,o=l.NUMBER,u=l.LENGTH,e=l.PERCENT;if(n){q=new c.Tokenizer(n);r={};function v(y){return y&&(y.type&l.OPERATOR)&&(y.value==="/")}function x(y){return y&&(y.type&f)&&(y.value==="fill")}function s(){d=q.until(function(y){return !(y.type&(o|e))});if(x(q.next())&&!r.fill){r.fill=true}else{q.prev()}if(v(q.next())){j++;m=q.until(function(y){return !(k.type&(o|e|u))&&!((k.type&f)&&k.value==="auto")});if(v(q.next())){j++;w=q.until(function(y){return !(k.type&(o|u))})}}else{q.prev()}}while(k=q.next()){h=k.type;t=k.value;if(h&(o|e)&&!d){q.prev();s()}else{if(x(k)&&!r.fill){r.fill=true;s()}else{if((h&f)&&this.repeatIdents[t]&&!r.repeat){r.repeat={h:t};if(k=q.next()){if((k.type&f)&&this.repeatIdents[k.value]){r.repeat.v=k.value}else{q.prev()}}}else{if((h&l.URL)&&!r.src){r.src=t}else{return null}}}}}if(!r.src||!d||d.length<1||d.length>4||(m&&m.length>4)||(j===1&&m.length<1)||(w&&w.length>4)||(j===2&&w.length<1)){return null}if(!r.repeat){r.repeat={h:"stretch"}}if(!r.repeat.v){r.repeat.v=r.repeat.h}function g(z,y){return{t:y(z[0]),r:y(z[1]||z[0]),b:y(z[2]||z[0]),l:y(z[3]||z[1]||z[0])}}r.slice=g(d,function(y){return new c.Length((y.type&o)?y.value+"px":y.value)});r.width=m&&m.length>0?g(m,function(y){return y.type&(u|e)?new c.Length(y.value):y.value}):(i=this.targetElement.currentStyle)&&{t:new c.Length(i.borderTopWidth),r:new c.Length(i.borderRightWidth),b:new c.Length(i.borderBottomWidth),l:new c.Length(i.borderLeftWidth)};r.outset=g(w||[0],function(y){return y.type&u?new c.Length(y.value):y.value})}return r}});c.BoxShadowStyleInfo=c.StyleInfoBase.newStyleInfo({cssProperty:"box-shadow",styleProperty:"boxShadow",parseCss:function(f){var i,h=c.Length,e=c.Tokenizer.Type,g;if(f){g=new c.Tokenizer(f);i={outset:[],inset:[]};function d(){var m,n,o,l,q,k,j;while(m=g.next()){o=m.value;n=m.type;if(n&e.OPERATOR&&o===","){break}else{if(m.isLength()&&!q){g.prev();q=g.until(function(r){return !r.isLength()})}else{if(n&e.COLOR&&!l){l=o}else{if(n&e.IDENT&&o==="inset"&&!k){k=true}else{return false}}}}}j=q&&q.length;if(j>1&&j<5){(k?i.inset:i.outset).push({xOffset:new h(q[0].value),yOffset:new h(q[1].value),blur:new h(q[2]?q[2].value:"0"),spread:new h(q[3]?q[3].value:"0"),color:new c.Color(l||"currentColor")});return true}return false}while(d()){}}return i&&(i.inset.length||i.outset.length)?i:null}});c.VisibilityStyleInfo=c.StyleInfoBase.newStyleInfo({getCss:c.StyleInfoBase.cacheWhenLocked(function(){var d=this.targetElement.currentStyle;return d.visibility+"|"+d.display}),parseCss:function(){var g=this.targetElement,e=g.runtimeStyle,f=g.currentStyle,d=e.visibility,h;e.visibility="";h=f.visibility;e.visibility=d;return{visible:h!=="hidden",displayed:f.display!=="none"}},isActive:function(){return false}});c.RendererBase={newRenderer:function(d){function e(h,i,f,g){this.targetElement=h;this.boundsInfo=i;this.styleInfos=f;this.parent=g}c.Util.merge(e.prototype,c.RendererBase,d);return e},isPositioned:false,needsUpdate:function(){return false},updateProps:function(){this.destroy();if(this.isActive()){this.draw()}},updatePos:function(){this.isPositioned=true},updateSize:function(){if(this.isActive()){this.draw()}else{this.destroy()}},addLayer:function(e,h){this.removeLayer(e);for(var j=this._layers||(this._layers=[]),g=e+1,d=j.length,f;g<d;g++){f=j[g];if(f){break}}j[e]=h;this.getBox().insertBefore(h,f||null)},getLayer:function(d){var e=this._layers;return e&&e[d]||null},removeLayer:function(d){var e=this.getLayer(d),f=this._box;if(e&&f){f.removeChild(e);this._layers[d]=null}},getShape:function(f,j,h,i){var d=this._shapes||(this._shapes={}),e=d[f],g;if(!e){e=d[f]=c.Util.createVmlElement("shape");if(j){e.appendChild(e[j]=c.Util.createVmlElement(j))}if(i){h=this.getLayer(i);if(!h){this.addLayer(i,b.createElement("group"+i));h=this.getLayer(i)}}h.appendChild(e);g=e.style;g.position="absolute";g.left=g.top=0;g.behavior="url(#default#VML)"}return e},deleteShape:function(f){var d=this._shapes,e=d&&d[f];if(e){e.parentNode.removeChild(e);delete d[f]}return !!e},getRadiiPixels:function(g){var e=this.targetElement,d=this.boundsInfo.getBounds(),r=d.w,i=d.h,q,n,l,k,o,m,t,s,j;q=g.x.tl.pixels(e,r);n=g.y.tl.pixels(e,i);l=g.x.tr.pixels(e,r);k=g.y.tr.pixels(e,i);o=g.x.br.pixels(e,r);m=g.y.br.pixels(e,i);t=g.x.bl.pixels(e,r);s=g.y.bl.pixels(e,i);j=Math.min(r/(q+l),i/(k+m),r/(t+o),i/(n+s));if(j<1){q*=j;n*=j;l*=j;k*=j;o*=j;m*=j;t*=j;s*=j}return{x:{tl:q,tr:l,br:o,bl:t},y:{tl:n,tr:k,br:m,bl:s}}},getBoxPath:function(v,n,y){n=n||1;var x,z,q=this.boundsInfo.getBounds(),t=q.w*n,D=q.h*n,B=this.styleInfos.borderRadiusInfo,C=Math.floor,e=Math.ceil,o=v?v.t*n:0,s=v?v.r*n:0,A=v?v.b*n:0,u=v?v.l*n:0,f,d,k,i,m,l,j,g;if(y||B.isActive()){x=this.getRadiiPixels(y||B.getProps());f=x.x.tl*n;d=x.y.tl*n;k=x.x.tr*n;i=x.y.tr*n;m=x.x.br*n;l=x.y.br*n;j=x.x.bl*n;g=x.y.bl*n;z="m"+C(u)+","+C(d)+"qy"+C(f)+","+C(o)+"l"+e(t-k)+","+C(o)+"qx"+e(t-s)+","+C(i)+"l"+e(t-s)+","+e(D-l)+"qy"+e(t-m)+","+e(D-A)+"l"+C(j)+","+e(D-A)+"qx"+C(u)+","+e(D-g)+" x e"}else{z="m"+C(u)+","+C(o)+"l"+e(t-s)+","+C(o)+"l"+e(t-s)+","+e(D-A)+"l"+C(u)+","+e(D-A)+"xe"}return z},getBox:function(){var e=this.parent.getLayer(this.boxZIndex),d;if(!e){e=b.createElement(this.boxName);d=e.style;d.position="absolute";d.top=d.left=0;this.parent.addLayer(this.boxZIndex,e)}return e},destroy:function(){this.parent.removeLayer(this.boxZIndex);delete this._shapes;delete this._layers}};c.RootRenderer=c.RendererBase.newRenderer({isActive:function(){var e=this.childRenderers;for(var d in e){if(e.hasOwnProperty(d)&&e[d].isActive()){return true}}return false},needsUpdate:function(){return this.styleInfos.visibilityInfo.changed()},updatePos:function(){if(this.isActive()){var f=this.getPositioningElement(),k=f,e,j,g=f.currentStyle,d=g.position,n,o=this.getBox().style,h,m=0,l=0,i=this.boundsInfo.getBounds();if(d==="fixed"&&c.ieVersion>6){m=i.x;l=i.y;n=d}else{do{k=k.offsetParent}while(k&&(k.currentStyle.position==="static"));if(k){j=k.getBoundingClientRect();h=k.currentStyle;m=i.x-j.left-(parseFloat(h.borderLeftWidth)||0);l=i.y-j.top-(parseFloat(h.borderTopWidth)||0)}else{e=b.documentElement;m=i.x+e.scrollLeft-e.clientLeft;l=i.y+e.scrollTop-e.clientTop}n="absolute"}o.position=n;o.left=m;o.top=l;o.zIndex=d==="static"?-1:g.zIndex;this.isPositioned=true}},updateSize:function(){},updateVisibility:function(){var d=this.styleInfos.visibilityInfo.getProps();this.getBox().style.display=(d.visible&&d.displayed)?"":"none"},updateProps:function(){if(this.isActive()){this.updateVisibility()}else{this.destroy()}},getPositioningElement:function(){var d=this.targetElement;return d.tagName in c.tableCellTags?d.offsetParent:d},getBox:function(){var e=this._box,d;if(!e){d=this.getPositioningElement();e=this._box=b.createElement("css3-container");this.updateVisibility();d.parentNode.insertBefore(e,d)}return e},destroy:function(){var e=this._box,d;if(e&&(d=e.parentNode)){d.removeChild(e)}delete this._box;delete this._layers}});c.BackgroundRenderer=c.RendererBase.newRenderer({boxZIndex:2,boxName:"background",needsUpdate:function(){var d=this.styleInfos;return d.backgroundInfo.changed()||d.borderRadiusInfo.changed()},isActive:function(){var d=this.styleInfos;return d.borderImageInfo.isActive()||d.borderRadiusInfo.isActive()||d.backgroundInfo.isActive()||(d.boxShadowInfo.isActive()&&d.boxShadowInfo.getProps().inset)},draw:function(){var d=this.boundsInfo.getBounds();if(d.w&&d.h){this.drawBgColor();this.drawBgImages()}},drawBgColor:function(){var k=this.styleInfos.backgroundInfo.getProps(),d=this.boundsInfo.getBounds(),e=this.targetElement,g=k&&k.color,j,l,i,m,f;if(g&&g.alpha()>0){this.hideBackground();j=this.getShape("bgColor","fill",this.getBox(),1);l=d.w;i=d.h;j.stroked=false;j.coordsize=l*2+","+i*2;j.coordorigin="1,1";j.path=this.getBoxPath(null,2);m=j.style;m.width=l;m.height=i;j.fill.color=g.value(e);f=g.alpha();if(f<1){j.fill.opacity=f}}else{this.deleteShape("bgColor")}},drawBgImages:function(){var k=this.styleInfos.backgroundInfo.getProps(),d=this.boundsInfo.getBounds(),l=k&&k.images,f,j,m,g,n,e;if(l){this.hideBackground();m=d.w;g=d.h;e=l.length;while(e--){f=l[e];j=this.getShape("bgImage"+e,"fill",this.getBox(),2);j.stroked=false;j.fill.type="tile";j.fillcolor="none";j.coordsize=m*2+","+g*2;j.coordorigin="1,1";j.path=this.getBoxPath(0,2);n=j.style;n.width=m;n.height=g;if(f.type==="linear-gradient"){this.addLinearGradient(j,f)}else{j.fill.src=f.url;this.positionBgImage(j,e)}}}e=l?l.length:0;while(this.deleteShape("bgImage"+e++)){}},positionBgImage:function(d,e){c.Util.withImageSize(d.fill.src,function(q){var t=d.fill,f=this.targetElement,k=this.boundsInfo.getBounds(),v=k.w,h=k.h,y=this.styleInfos,s=y.borderInfo.getProps(),w=s&&s.widths,A=w?w.t.pixels(f):0,C=w?w.r.pixels(f):0,l=w?w.b.pixels(f):0,g=w?w.l.pixels(f):0,i=y.backgroundInfo.getProps().images[e],m=i.position?i.position.coords(f,v-q.w-g-C,h-q.h-A-l):{x:0,y:0},n=i.repeat,z,x,o=0,u=0,r=v+1,B=h+1,j=c.ieVersion===8?0:1;z=Math.round(m.x)+g+0.5;x=Math.round(m.y)+A+0.5;t.position=(z/v)+","+(x/h);if(n&&n!=="repeat"){if(n==="repeat-x"||n==="no-repeat"){o=x+1;B=x+q.h+j}if(n==="repeat-y"||n==="no-repeat"){u=z+1;r=z+q.w+j}d.style.clip="rect("+o+"px,"+r+"px,"+B+"px,"+u+"px)"}},this)},addLinearGradient:function(v,Q){var P=this.targetElement,E=this.boundsInfo.getBounds(),I=E.w,O=E.h,s=v.fill,u=Q.angle,f=Q.gradientStart,C=Q.stops,G=C.length,g=Math.PI,D,B,z,l,k,T,S,n,m,x,d,t,q,o,L,K,e,J,N,M,F,H;function A(j,Z,U,h,Y){if(U===0||U===180){return[h,Z]}else{if(U===90||U===270){return[j,Y]}else{var w=Math.tan(-U*g/180),W=w*j-Z,i=-1/w,V=i*h-Y,X=i-w,ab=(V-W)/X,aa=(w*V-i*W)/X;return[ab,aa]}}}function r(){T=(u>=90&&u<270)?I:0;S=u<180?O:0;n=I-T;m=O-S}function R(){while(u<0){u+=360}u=u%360}function y(w,j){var i=j[0]-w[0],h=j[1]-w[1];return Math.abs(i===0?h:h===0?i:Math.sqrt(i*i+h*h))}if(f){f=f.coords(P,I,O);B=f.x;z=f.y}if(u){u=u.degrees();R();r();if(!f){B=T;z=S}J=A(B,z,u,n,m);l=J[0];k=J[1]}else{if(f){l=I-B;k=O-z}else{B=z=l=0;k=O}}q=l-B;o=k-z;if(u===D){u=(!q?(o<0?90:270):(!o?(q<0?180:0):-Math.atan2(o,q)/g*180));R();r()}x=(u%90)?Math.atan2(q*I/O,o)/g*180:(u+90);x+=180;x=x%360;L=y([B,z],[l,k]);d=y([T,S],A(T,S,u,n,m));t=[];e=y([B,z],A(B,z,u,T,S))/d*100;K=[];for(N=0;N<G;N++){K.push(C[N].offset?C[N].offset.pixels(P,L):N===0?0:N===G-1?L:null)}for(N=1;N<G;N++){if(K[N]===null){F=K[N-1];M=N;do{H=K[++M]}while(H===null);K[N]=F+(H-F)/(M-N+1)}K[N]=Math.max(K[N],K[N-1])}for(N=0;N<G;N++){t.push((e+(K[N]/d*100))+"% "+C[N].color.value(P))}s.angle=x;s.type="gradient";s.method="sigma";s.color=C[0].color.value(P);s.color2=C[G-1].color.value(P);s.colors.value=t.join(",")},hideBackground:function(){var d=this.targetElement.runtimeStyle;d.backgroundImage="url(about:blank)";d.backgroundColor="transparent"},destroy:function(){c.RendererBase.destroy.call(this);var d=this.targetElement.runtimeStyle;d.backgroundImage=d.backgroundColor=""}});c.BorderRenderer=c.RendererBase.newRenderer({boxZIndex:4,boxName:"border",childlessElements:{TABLE:1,INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,IMG:1,HR:1,FIELDSET:1},inputButtonTypes:{submit:1,button:1,reset:1},needsUpdate:function(){var d=this.styleInfos;return d.borderInfo.changed()||d.borderRadiusInfo.changed()},isActive:function(){var d=this.styleInfos;return(d.borderImageInfo.isActive()||d.borderRadiusInfo.isActive()||d.backgroundInfo.isActive())&&d.borderInfo.isActive()},draw:function(){var e=this.targetElement,m=e.currentStyle,q=this.styleInfos.borderInfo.getProps(),d=this.boundsInfo.getBounds(),r=d.w,k=d.h,o,n,t,u,j,f,g,l;if(q){this.hideBorder();j=this.getBorderSegments(2);for(g=0,l=j.length;g<l;g++){f=j[g];n=this.getShape("borderPiece"+g,f.stroke?"stroke":"fill",this.getBox());n.coordsize=r*2+","+k*2;n.coordorigin="1,1";n.path=f.path;u=n.style;u.width=r;u.height=k;n.filled=!!f.fill;n.stroked=!!f.stroke;if(f.stroke){t=n.stroke;t.weight=f.weight+"px";t.color=f.color.value(e);t.dashstyle=f.stroke==="dashed"?"2 2":f.stroke==="dotted"?"1 1":"solid";t.linestyle=f.stroke==="double"&&f.weight>2?"ThinThin":"Single"}else{n.fill.color=f.fill.value(e)}}while(this.deleteShape("borderPiece"+g++)){}}},hideBorder:function(){var e=this.targetElement,k=e.currentStyle,g=e.runtimeStyle,o=e.tagName,h=c.ieVersion===6,f,l,j;if((h&&o in this.childlessElements)||o==="BUTTON"||(o==="INPUT"&&e.type in this.inputButtonTypes)){g.borderWidth="";f=this.styleInfos.borderInfo.sides;for(j=f.length;j--;){l=f[j];g["padding"+l]="";g["padding"+l]=(new c.Length(k["padding"+l])).pixels(e)+(new c.Length(k["border"+l+"Width"])).pixels(e)+(!c.ieVersion===8&&j%2?1:0)}g.borderWidth=0}else{if(h){if(e.childNodes.length!==1||e.firstChild.tagName!=="ie6-mask"){var n=b.createElement("ie6-mask"),m=n.style,d;m.visibility="visible";m.zoom=1;while(d=e.firstChild){n.appendChild(d)}e.appendChild(n);g.visibility="hidden"}}else{g.borderColor="transparent"}}},getBorderSegments:function(i){var e=this.targetElement,j,x,g,v=this.styleInfos.borderInfo,t=[],y,d,u,w,f,A,B=Math.round,o,z,s,m,k,l;if(v.isActive()){o=v.getProps();m=o.widths;k=o.styles;l=o.colors;if(o.widthsSame&&o.stylesSame&&o.colorsSame){if(l.t.alpha()>0){u=m.t.pixels(e);w=u/2;t.push({path:this.getBoxPath({t:w,r:w,b:w,l:w},i),stroke:k.t,color:l.t,weight:u})}}else{i=i||1;j=this.boundsInfo.getBounds();x=j.w;g=j.h;u=B(m.t.pixels(e));w=B(m.r.pixels(e));f=B(m.b.pixels(e));A=B(m.l.pixels(e));var q={t:u,r:w,b:f,l:A};z=this.styleInfos.borderRadiusInfo;if(z.isActive()){s=this.getRadiiPixels(z.getProps())}y=Math.floor;d=Math.ceil;function h(E,D){return s?s[E][D]:0}function r(M,K,J,G,N,I){var F=h("x",M),D=h("y",M),E=65535,L=M.charAt(1)==="r",H=M.charAt(0)==="b";return(F>0&&D>0)?(I?"al":"ae")+(L?d(x-F):y(F))*i+","+(H?d(g-D):y(D))*i+","+(y(F)-K)*i+","+(y(D)-J)*i+","+(G*E)+","+(45*E*(N?1:-1)):((I?"m":"l")+(L?x-K:K)*i+","+(H?g-J:J)*i)}function n(G,F,E,H){var I=(G==="t"?y(h("x","tl"))*i+","+d(F)*i:G==="r"?d(x-F)*i+","+y(h("y","tr"))*i:G==="b"?d(x-h("x","br"))*i+","+y(g-F)*i:y(F)*i+","+d(g-h("y","bl"))*i),D=(G==="t"?d(x-h("x","tr"))*i+","+d(F)*i:G==="r"?d(x-F)*i+","+d(g-h("y","br"))*i:G==="b"?y(h("x","bl"))*i+","+y(g-F)*i:y(F)*i+","+y(h("y","tl"))*i);return E?(H?"m"+D:"")+"l"+I:(H?"m"+I:"")+"l"+D}function C(L,H,F,M,N,K){var J=L==="l"||L==="r",I=q[L],D,O,G,E;if(I>0&&k[L]!=="none"&&l[L].alpha()>0){D=q[J?L:H];O=q[J?H:L];G=q[J?L:F];E=q[J?F:L];if(k[L]==="dashed"||k[L]==="dotted"){t.push({path:r(M,D,O,K+45,0,1)+r(M,0,0,K,1,0),fill:l[L]});t.push({path:n(L,I/2,0,1),stroke:k[L],weight:I,color:l[L]});t.push({path:r(N,G,E,K,0,1)+r(N,0,0,K-45,1,0),fill:l[L]})}else{t.push({path:r(M,D,O,K+45,0,1)+n(L,I,0,0)+r(N,G,E,K,0,0)+(k[L]==="double"&&I>2?r(N,G-y(G/3),E-y(E/3),K-45,1,0)+n(L,d(I/3*2),1,0)+r(M,D-y(D/3),O-y(O/3),K,1,0)+"x "+r(M,y(D/3),y(O/3),K+45,0,1)+n(L,y(I/3),1,0)+r(N,y(G/3),y(E/3),K,0,0):"")+r(N,0,0,K-45,1,0)+n(L,0,1,0)+r(M,0,0,K,1,0),fill:l[L]})}}}C("t","l","r","tl","tr",90);C("r","t","b","tr","br",0);C("b","r","l","br","bl",-90);C("l","b","t","bl","tl",-180)}}return t},destroy:function(){c.RendererBase.destroy.call(this);this.targetElement.runtimeStyle.borderColor=""}});c.BorderImageRenderer=c.RendererBase.newRenderer({boxZIndex:5,pieceNames:["t","tr","r","br","b","bl","l","tl","c"],needsUpdate:function(){return this.styleInfos.borderImageInfo.changed()},isActive:function(){return this.styleInfos.borderImageInfo.isActive()},draw:function(){var e=this.styleInfos.borderImageInfo.getProps(),h=this.boundsInfo.getBounds(),g=this.getBox(),d=this.targetElement,f=this.pieces;c.Util.withImageSize(e.src,function(t){var r=h.w,k=h.h,n=e.width,s=n.t.pixels(d),u=n.r.pixels(d),o=n.b.pixels(d),x=n.l.pixels(d),v=e.slice,i=v.t.pixels(d),m=v.r.pixels(d),w=v.b.pixels(d),q=v.l.pixels(d);function j(D,A,C,z,E){var B=f[D].style;B.width=A;B.height=C;B.left=z;B.top=E}j("tl",x,s,0,0);j("t",r-x-u,s,x,0);j("tr",u,s,r-u,0);j("r",u,k-s-o,r-u,s);j("br",u,o,r-u,k-o);j("b",r-x-u,o,x,k-o);j("bl",x,o,0,k-o);j("l",x,k-s-o,0,s);j("c",r-x-u,k-s-o,x,s);function l(B,A,C){for(var z=0,y=B.length;z<y;z++){f[B[z]]["imagedata"][A]=C}}l(["tl","t","tr"],"cropBottom",(t.h-i)/t.h);l(["tl","l","bl"],"cropRight",(t.w-q)/t.w);l(["bl","b","br"],"cropTop",(t.h-w)/t.h);l(["tr","r","br"],"cropLeft",(t.w-m)/t.w);if(e.repeat.v==="stretch"){l(["l","r","c"],"cropTop",i/t.h);l(["l","r","c"],"cropBottom",w/t.h)}if(e.repeat.h==="stretch"){l(["t","b","c"],"cropLeft",q/t.w);l(["t","b","c"],"cropRight",m/t.w)}f.c.style.display=e.fill?"":"none"},this)},getBox:function(){var j=this.parent.getLayer(this.boxZIndex),h,g,f,e=this.pieceNames,d=e.length;if(!j){j=b.createElement("border-image");h=j.style;h.position="absolute";this.pieces={};for(f=0;f<d;f++){g=this.pieces[e[f]]=c.Util.createVmlElement("rect");g.appendChild(c.Util.createVmlElement("imagedata"));h=g.style;h.behavior="url(#default#VML)";h.position="absolute";h.top=h.left=0;g.imagedata.src=this.styleInfos.borderImageInfo.getProps().src;g.stroked=false;g.filled=false;j.appendChild(g)}this.parent.addLayer(this.boxZIndex,j)}return j}});c.BoxShadowOutsetRenderer=c.RendererBase.newRenderer({boxZIndex:1,boxName:"outset-box-shadow",needsUpdate:function(){var d=this.styleInfos;return d.boxShadowInfo.changed()||d.borderRadiusInfo.changed()},isActive:function(){var d=this.styleInfos.boxShadowInfo;return d.isActive()&&d.getProps().outset[0]},draw:function(){var O=this,f=this.targetElement,q=this.getBox(),L=this.styleInfos,K=L.boxShadowInfo.getProps().outset,v=L.borderRadiusInfo.getProps(),I=K.length,H=I,G,n=this.boundsInfo.getBounds(),r=n.w,J=n.h,m=c.ieVersion===8?1:0,z=["tl","tr","br","bl"],o,A,e,F,C,g,l,P,E,s,D,k,u,t,N,B,y,M,d;function x(j,R,T,Q,i,h,U){var w=O.getShape("shadow"+j+R,"fill",q,I-j),S=w.fill;w.coordsize=r*2+","+J*2;w.coordorigin="1,1";w.stroked=false;w.filled=true;S.color=i.value(f);if(h){S.type="gradienttitle";S.color2=S.color;S.opacity=0}w.path=U;C=w.style;C.left=T;C.top=Q;C.width=r;C.height=J;return w}while(H--){A=K[H];g=A.xOffset.pixels(f);l=A.yOffset.pixels(f);P=A.spread.pixels(f),E=A.blur.pixels(f);D=A.color;s=-P-E;if(!v&&E){v=c.BorderRadiusStyleInfo.ALL_ZERO}u=this.getBoxPath({t:s,r:s,b:s,l:s},2,v);if(E){t=(P+E)*2+r;N=(P+E)*2+J;B=E*2/t;y=E*2/N;if(E-P>r/2||E-P>J/2){for(G=4;G--;){o=z[G];M=o.charAt(0)==="b";d=o.charAt(1)==="r";e=x(H,o,g,l,D,E,u);F=e.fill;F.focusposition=(d?1-B:B)+","+(M?1-y:y);F.focussize="0,0";e.style.clip="rect("+((M?N/2:0)+m)+"px,"+(d?t:t/2)+"px,"+(M?N:N/2)+"px,"+((d?t/2:0)+m)+"px)"}}else{e=x(H,"",g,l,D,E,u);F=e.fill;F.focusposition=B+","+y;F.focussize=(1-B*2)+","+(1-y*2)}}else{e=x(H,"",g,l,D,E,u);k=D.alpha();if(k<1){e.fill.opacity=k}}}}});c.ImgRenderer=c.RendererBase.newRenderer({boxZIndex:6,boxName:"imgEl",needsUpdate:function(){var d=this.styleInfos;return this.targetElement.src!==this._lastSrc||d.borderRadiusInfo.changed()},isActive:function(){var d=this.styleInfos;return d.borderRadiusInfo.isActive()||d.backgroundInfo.isPngFix()},draw:function(){this.hideActualImg();var i=this.getShape("img","fill",this.getBox()),m=i.fill,e=this.boundsInfo.getBounds(),k=e.w,g=e.h,j=this.styleInfos.borderInfo.getProps(),n=j&&j.widths,f=this.targetElement,d=f.src,l=Math.round,o;i.stroked=false;m.type="frame";m.src=d;m.position=(0.5/k)+","+(0.5/g);i.coordsize=k*2+","+g*2;i.coordorigin="1,1";i.path=this.getBoxPath(n?{t:l(n.t.pixels(f)),r:l(n.r.pixels(f)),b:l(n.b.pixels(f)),l:l(n.l.pixels(f))}:0,2);o=i.style;o.width=k;o.height=g;this._lastSrc=d},hideActualImg:function(){this.targetElement.runtimeStyle.filter="alpha(opacity=0)"},destroy:function(){c.RendererBase.destroy.call(this);this.targetElement.runtimeStyle.filter=""}});c.Element=(function(){var i={},h=c.CSS_PREFIX+"lazy-init",k=" "+c.CLASS_PREFIX+"hover",d=new RegExp("\\b"+c.CLASS_PREFIX+"hover\\b","g"),j={background:1,bgColor:1,display:1};function f(n,m,l){n.attachEvent(m,l)}function g(n,m,l){n.detachEvent(m,l)}function e(o){var K,n=new c.BoundsInfo(o),E,J,m,z,s,L,B,w;function D(){if(!s){var Q,P,O=o.currentStyle.getAttribute(h)==="true",M;if(!z){z=1;o.runtimeStyle.zoom=1;G()}n.lock();if(O&&(P=n.getBounds())&&(Q=b.documentElement||b.body)&&(P.y>Q.clientHeight||P.x>Q.clientWidth||P.y+P.h<0||P.x+P.w<0)){if(!B){B=1;c.OnScroll.observe(D)}}else{s=1;B=z=0;c.OnScroll.unobserve(D);E={backgroundInfo:new c.BackgroundStyleInfo(o),borderInfo:new c.BorderStyleInfo(o),borderImageInfo:new c.BorderImageStyleInfo(o),borderRadiusInfo:new c.BorderRadiusStyleInfo(o),boxShadowInfo:new c.BoxShadowStyleInfo(o),visibilityInfo:new c.VisibilityStyleInfo(o)};J=[E.backgroundInfo,E.borderInfo,E.borderImageInfo,E.borderRadiusInfo,E.boxShadowInfo,E.visibilityInfo];M=new c.RootRenderer(o,n,E);var N=[new c.BoxShadowOutsetRenderer(o,n,E,M),new c.BackgroundRenderer(o,n,E,M),new c.BorderRenderer(o,n,E,M),new c.BorderImageRenderer(o,n,E,M)];if(o.tagName==="IMG"){N.push(new c.ImgRenderer(o,n,E,M))}M.childRenderers=N;K=[M].concat(N);F();if(c.ie8DocMode===8){c.Heartbeat.observe(v)}v(1)}if(!L){L=1;f(o,"onmove",C);f(o,"onresize",C);f(o,"onpropertychange",t);f(o,"onmouseenter",l);f(o,"onmouseleave",A);c.OnResize.observe(C);c.OnBeforeUnload.observe(y)}n.unlock()}}function C(){if(n&&n.hasBeenQueried()){v()}}function v(O){if(!w){if(s){var N,M;x();if(O||n.positionChanged()){for(N=0,M=K.length;N<M;N++){K[N].updatePos()}}if(O||n.sizeChanged()){for(N=0,M=K.length;N<M;N++){K[N].updateSize()}}u()}else{if(!z){D()}}}}function t(){var N,M,O,P=event;if(!w&&!(P&&P.propertyName in j)){if(s){x();for(N=0,M=K.length;N<M;N++){O=K[N];if(!O.isPositioned){O.updatePos()}if(O.needsUpdate()){O.updateProps()}}u()}else{if(!z){D()}}}}function r(){o.className+=k}function I(){o.className=o.className.replace(d,"")}function l(){setTimeout(r,0)}function A(){setTimeout(I,0)}function q(){var M=event.propertyName;if(M==="className"||M==="id"){t()}}function x(){n.lock();for(var M=J.length;M--;){J[M].lock()}}function u(){for(var M=J.length;M--;){J[M].unlock()}n.unlock()}function y(){if(L){if(m){for(var O=0,M=m.length,N;O<M;O++){N=m[O];g(N,"onpropertychange",q);g(N,"onmouseenter",l);g(N,"onmouseleave",A)}}g(o,"onmove",v);g(o,"onresize",v);g(o,"onpropertychange",t);g(o,"onmouseenter",l);g(o,"onmouseleave",A);c.OnBeforeUnload.unobserve(y);L=0}}function H(){if(!w){var N,M;y();w=1;if(K){for(N=0,M=K.length;N<M;N++){K[N].destroy()}}if(c.ie8DocMode===8){c.Heartbeat.unobserve(v)}c.OnResize.unobserve(v);K=n=E=J=m=o=null}}function F(){var O=o.currentStyle.getAttribute(c.CSS_PREFIX+"watch-ancestors"),N,M;if(O){m=[];O=parseInt(O,10);N=0;M=o.parentNode;while(M&&(O==="NaN"||N++<O)){m.push(M);f(M,"onpropertychange",q);f(M,"onmouseenter",l);f(M,"onmouseleave",A);M=M.parentNode}}}function G(){var N=o,M=1;while(N=N.previousSibling){if(N.nodeType===1){M=0;break}}if(M){o.className+=" "+c.CLASS_PREFIX+"first-child"}}this.init=D;this.update=v;this.destroy=H;this.el=o}e.getInstance=function(l){var m=c.Util.getUID(l);return i[m]||(i[m]=new e(l))};e.destroy=function(l){var n=c.Util.getUID(l),m=i[n];if(m){m.destroy();delete i[n]}};e.destroyAll=function(){var m=[],n;if(i){for(var l in i){if(i.hasOwnProperty(l)){n=i[l];m.push(n.el);n.destroy()}}i={}}return m};return e})();c.attach=function(d){if(c.ieVersion<9){c.Element.getInstance(d).init()}};c.detach=function(d){c.Element.destroy(d)}}})()}(function(window,undefined){var S={version:"3.0.3"};var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")>-1||ua.indexOf("win32")>-1){S.isWindows=true}else{if(ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1){S.isMac=true}else{if(ua.indexOf("linux")>-1){S.isLinux=true}}}S.isIE=ua.indexOf("msie")>-1;S.isIE6=ua.indexOf("msie 6")>-1;S.isIE7=ua.indexOf("msie 7")>-1;S.isGecko=ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1;S.isWebKit=ua.indexOf("applewebkit/")>-1;var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;var open=false,initialized=false,lastOptions={},slideDelay=0,slideStart,slideTimer;S.current=-1;S.dimensions=null;S.ease=function(state){return 1+Math.pow(state-1,3)};S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};S.gallery=[];S.onReady=noop;S.path=null;S.player=null;S.reset=function(){initialized=false};S.options={animate:true,animateFade:true,autoplayMovies:true,continuous:true,enableKeys:true,flashParams:{bgcolor:"#ffffff",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20,cssPrepend:"sb"};S.playerId=S.options.cssPrepend+"-player";S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null};S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)};S.isOpen=function(){return open};S.isPaused=function(){return slideTimer=="pause"};S.applyOptions=function(options){lastOptions=apply({},S.options);apply(S.options,options)};S.revertOptions=function(){apply(S.options,lastOptions)};S.init=function(options,callback){if(initialized){return}initialized=true;if(S.skin.options){apply(S.options,S.skin.options)}if(options){apply(S.options,options)}if(!S.path){var path,scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i){path=scriptPath.exec(scripts[i].src);if(path){S.path=path[1];break}}}if(callback){S.onReady=callback}S.playerId=S.options.cssPrepend+"-player";bindLoad()};S.open=function(obj){if(open){return}var gc=S.makeGallery(obj);S.gallery=gc[0];S.current=gc[1];obj=S.getCurrent();if(obj==null){return}S.applyOptions(obj.options||{});filterGallery();if(S.gallery.length){obj=S.getCurrent();if(S.options.onOpen(obj)===false){return}open=true;S.skin.onOpen(obj,load)}};S.close=function(){if(!open){return}open=false;if(S.player){S.player.remove();S.player=null}if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null}slideDelay=0;listenKeys(false);S.options.onClose(S.getCurrent());S.skin.onClose();S.revertOptions()};S.play=function(){if(!S.hasNext()){return}if(!slideDelay){slideDelay=S.options.slideshowDelay*1000}if(slideDelay){slideStart=now();slideTimer=setTimeout(function(){slideDelay=slideStart=0;S.next()},slideDelay);if(S.skin.onPlay){S.skin.onPlay()}}};S.pause=function(){if(typeof slideTimer!="number"){return}slideDelay=Math.max(0,slideDelay-(now()-slideStart));if(slideDelay){clearTimeout(slideTimer);slideTimer="pause";if(S.skin.onPause){S.skin.onPause()}}};S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);if(!(index in S.gallery)){return}}else{return}}S.current=index;if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;slideDelay=slideStart=0}S.options.onChange(S.getCurrent());load(true)};S.next=function(){S.change(S.current+1)};S.previous=function(){S.change(S.current-1)};S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;var extraHeight=2*padding+topBottom;if(height+extraHeight>maxHeight){height=maxHeight-extraHeight}var extraWidth=2*padding+leftRight;if(width+extraWidth>maxWidth){width=maxWidth-extraWidth}var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);if(preserveAspect&&oversized){if(changeHeight>changeWidth){width=Math.round((originalWidth/originalHeight)*height)}else{if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width)}}}S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};return S.dimensions};S.makeGallery=function(obj){var gallery=[],current=-1;if(typeof obj=="string"){obj=[obj]}if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o}else{gallery[i]={content:o}}});current=0}else{if(obj.tagName){var cacheObj=S.getCache(obj);obj=cacheObj?cacheObj:S.makeObject(obj)}if(obj.gallery){gallery=[];var o;for(var key in S.cache){o=S.cache[key];if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content){current=gallery.length}gallery.push(o)}}if(current==-1){gallery.unshift(obj);current=0}}else{gallery=[obj];current=0}}each(gallery,function(i,o){gallery[i]=apply({},o)});return[gallery,current]};S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};if(options){options=apply({},options);each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];delete options[o]}});obj.options=options}else{obj.options={}}if(!obj.player){obj.player=S.getPlayer(obj.content)}var rel=link.getAttribute("rel");if(rel){var match=rel.match(galleryName);if(match){obj.gallery=escape(match[2])}each(rel.split(";"),function(i,p){match=p.match(inlineParam);if(match){obj[match[1]]=match[2]}})}return obj};S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0){return"inline"}var q=content.indexOf("?");if(q>-1){content=content.substring(0,q)}var ext,m=content.match(fileExtension);if(m){ext=m[0].toLowerCase()}if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1){return"img"}if(S.swf&&S.swf.ext.indexOf(ext)>-1){return"swf"}if(S.flv&&S.flv.ext.indexOf(ext)>-1){return"flv"}if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp"}else{return"qt"}}if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"wmp"}}return"iframe"};function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;for(var i=0;i<S.gallery.length;++i){obj=S.gallery[i];remove=false;needed=null;switch(obj.player){case"flv":case"swf":if(!plugins.fla){needed="fla"}break;case"qt":if(!plugins.qt){needed="qt"}break;case"wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt"}else{needed="qtf4m"}}else{if(!plugins.wmp){needed="wmp"}}break;case"qtwmp":if(plugins.qt){obj.player="qt"}else{if(plugins.wmp){obj.player="wmp"}else{needed="qtwmp"}}break}if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case"qtf4m":format="shared";replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];break;case"qtwmp":format="either";replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];break;default:format="single";replace=[err[needed].url,err[needed].name]}obj.player="html";obj.content='<div class="'+S.options.cssPrepend+'-message">'+sprintf(S.lang.errors[format],replace)+"</div>"}else{remove=true}}else{if(obj.player=="inline"){m=inlineId.exec(obj.content);if(m){inlineEl=get(m[1]);if(inlineEl){obj.content=inlineEl.innerHTML}else{remove=true}}else{remove=true}}else{if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;obj.height=177}}}}if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}}function listenKeys(on){if(!S.options.enableKeys){return}(on?addEvent:removeEvent)(document,"keydown",handleKey)}function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey){return}var code=keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slideTimer=="number"?S.pause:S.play;break}if(handler){preventDefault(e);handler()}}function load(changing){listenKeys(false);var obj=S.getCurrent();var player=(obj.player=="inline"?"html":obj.player);if(typeof S[player]!="function"){throw"unknown player "+player}if(changing){S.player.remove();S.revertOptions();S.applyOptions(obj.options||{})}S.player=new S[player](obj,S.playerId);if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}}S.skin.onLoad(changing,waitReady)}function waitReady(){if(!open){return}if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);timer=null;S.skin.onReady(show)}}else{clearInterval(timer);timer=null}},10)}else{S.skin.onReady(show)}}function show(){if(!open){return}S.player.append(S.skin.body,S.dimensions);S.skin.onShow(finish)}function finish(){if(!open){return}if(S.player.onLoad){S.player.onLoad()}S.options.onFinish(S.getCurrent());if(!S.isPaused()){S.play()}listenKeys(true)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;from=from||0;if(from<0){from+=len}for(;from<len;++from){if(from in this&&this[from]===obj){return from}}return -1}}function now(){return(new Date).getTime()}function apply(original,extension){for(var property in extension){original[property]=extension[property]}return original}function each(obj,callback){var i=0,len=obj.length;for(var value=obj[0];i<len&&callback.call(value,i,value)!==false;value=obj[++i]){}}function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i]})}function noop(){}function get(id){return document.getElementById(id)}function remove(el){el.parentNode.removeChild(el)}var supportsOpacity=true,supportsFixed=true;function checkSupport(){var body=document.body,div=document.createElement("div");supportsOpacity=typeof div.style.opacity==="string";div.style.position="fixed";div.style.margin=0;div.style.top="20px";body.appendChild(div,body.firstChild);supportsFixed=div.offsetTop==20;body.removeChild(div)}S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;return function(el,style){var ret;if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret}if(getComputedStyle){var computedStyle=getComputedStyle(el,null);if(computedStyle){ret=computedStyle[style]}if(style=="opacity"&&ret==""){ret="1"}}else{ret=el.currentStyle[style]}return ret}})();S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html)}else{if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag)}else{el.innerHTML=html}}};S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+dimension]}return document.body["client"+dimension]};S.setOpacity=function(el,opacity){var style=el.style;if(supportsOpacity){style.opacity=(opacity==1?"":opacity)}else{style.zoom=1;if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter)){style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(opacity*100)+")"}}};S.clearOpacity=function(el){S.setOpacity(el,1)};function getTarget(e){return e.target}function getPageXY(e){return[e.pageX,e.pageY]}function preventDefault(e){e.preventDefault()}function keyCode(e){return e.keyCode}function addEvent(el,type,handler){jQuery(el).bind(type,handler)}function removeEvent(el,type,handler){jQuery(el).unbind(type,handler)}jQuery.fn.shadowbox=function(options){return this.each(function(){var el=jQuery(this);var opts=jQuery.extend({},options||{},jQuery.metadata?el.metadata():jQuery.meta?el.data():{});var cls=this.className||"";opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;Shadowbox.setup(el,opts)})};var loaded=false,DOMContentLoaded;if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);S.load()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);S.load()}}}}function doScrollCheck(){if(loaded){return}try{document.documentElement.doScroll("left")}catch(e){setTimeout(doScrollCheck,1);return}S.load()}function bindLoad(){if(document.readyState==="complete"){return S.load()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",S.load,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",S.load);var topLevel=false;try{topLevel=window.frameElement===null}catch(e){}if(document.documentElement.doScroll&&topLevel){doScrollCheck()}}}}S.load=function(){if(loaded){return}if(!document.body){return setTimeout(S.load,13)}loaded=true;checkSupport();S.onReady();if(!S.options.skipSetup){S.setup()}S.skin.init()};S.plugins={};if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(i,p){names.push(p.name)});names=names.join(",");var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{var detectPlugin=function(name){var axo;try{axo=new ActiveXObject(name)}catch(e){}return !!axo};S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;S.cache={};S.select=function(selector){var links=[];if(!selector){var rel;each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");if(rel&&relAttr.test(rel)){links.push(el)}})}else{var length=selector.length;if(length){if(typeof selector=="string"){if(S.find){links=S.find(selector)}}else{if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find){links=S.find(selector[0],selector[1])}}else{for(var i=0;i<length;++i){links[i]=selector[i]}}}}else{links.push(selector)}}return links};S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options)})};S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link)})};S.addCache=function(link,options){var key=link[expando];if(key==undefined){key=cacheKey++;link[expando]=key;addEvent(link,"click",handleClick)}S.cache[key]=S.makeObject(link,options)};S.removeCache=function(link){removeEvent(link,"click",handleClick);delete S.cache[link[expando]];link[expando]=null};S.getCache=function(link){var key=link[expando];return(key in S.cache&&S.cache[key])};S.clearCache=function(){for(var key in S.cache){S.removeCache(S.cache[key].link)}S.cache={}};function handleClick(e){S.open(this);if(S.gallery.length){preventDefault(e)}}S.find=(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[]}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}}if(!set){set=context.getElementsByTagName("*")}return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop===result){result=[]}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true}else{if(match===true){continue}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true}else{curLoop[i]=false}}else{if(pass){result.push(item);anyFound=true}}}}}if(found!==undefined){if(!inplace){curLoop=result}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]}break}}}if(expr===old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr}else{break}}old=expr}return curLoop};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,true)}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}}return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return !!elem.firstChild},empty:function(elem){return !elem.firstChild},has:function(elem,i,match){return !!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false}}return true}else{throw"Syntax error, unrecognized expression: "+name}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(type==="first"){return true}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}}parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source)}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i])}}else{for(var i=0;array[i];i++){ret.push(array[i])}}}return ret}}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true}return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true}return ret}}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true}return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true}return ret}}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true}return a.ownerDocument?-1:1}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true}return ret}}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)}}}return ret}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)}return Sizzle.filter(later,tmpSet)};return Sizzle})();S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return}var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();return swfobject})();S.lang={code:"en",of:"of",loading:"loading",cancel:"Cancel",next:"Next",previous:"Previous",play:"Play",pause:"Pause",close:"Close",errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};var pre,proxyId=S.options.cssPrepend+"-drag-proxy",dragData,dragProxy,dragTarget;function resetDrag(){dragData={x:0,y:0,startX:null,startY:null}}function updateProxy(){var dims=S.dimensions;apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"})}function enableDrag(){resetDrag();var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');dragProxy=get(proxyId);updateProxy();addEvent(dragProxy,"mousedown",startDrag)}function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);remove(dragProxy);dragProxy=null}dragTarget=null}function startDrag(e){preventDefault(e);var xy=getPageXY(e);dragData.startX=xy[0];dragData.startY=xy[1];dragTarget=get(S.player.id);addEvent(document,"mousemove",positionDrag);addEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grabbing"}}function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);var moveX=xy[0]-dragData.startX;dragData.startX+=moveX;dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);var moveY=xy[1]-dragData.startY;dragData.startY+=moveY;dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"})}function endDrag(){removeEvent(document,"mousemove",positionDrag);removeEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grab"}}S.img=function(obj,id){this.obj=obj;this.id=id;this.ready=false;var self=this;pre=new Image();pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;self.width=obj.width?parseInt(obj.width,10):pre.width;self.ready=true;pre.onload=null;pre=null};pre.src=obj.content};S.img.ext=["bmp","gif","jpg","jpeg","png"];S.img.prototype={append:function(body,dims){var img=document.createElement("img");img.id=this.id;img.src=this.obj.content;img.style.position="absolute";var height,width;if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;width=dims.innerWidth}else{height=this.height;width=this.width}img.setAttribute("height",height);img.setAttribute("width",width);body.appendChild(img)},remove:function(){var el=get(this.id);if(el){remove(el)}disableDrag();if(pre){pre.onload=null;pre=null}},onLoad:function(){var dims=S.dimensions;if(dims.oversized&&S.options.handleOversize=="drag"){enableDrag()}},onWindowResize:function(){var dims=S.dimensions;switch(S.options.handleOversize){case"resize":var el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth;break;case"drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));if(top+this.height<dims.innerHeight){dragTarget.style.top=dims.innerHeight-this.height+"px"}if(left+this.width<dims.innerWidth){dragTarget.style.left=dims.innerWidth-this.width+"px"}updateProxy()}break}}};S.iframe=function(obj,id){this.obj=obj;this.id=id;var overlay=get(S.options.cssPrepend+"-overlay");this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth};S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="no"';if(S.isIE){html+=' allowtransparency="true"';if(S.isIE6){html+=" src=\"javascript:false;document.write('');\""}}html+="></iframe>";body.innerHTML=html},remove:function(){var el=get(this.id);if(el){remove(el);if(S.isGecko){delete window.frames[this.id]}}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];win.location.href=this.obj.content}};S.html=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):500};S.html.prototype={append:function(body,dims){var div=document.createElement("div");div.id=this.id;div.className="html";div.innerHTML=this.obj.content;body.appendChild(div)},remove:function(){var el=get(this.id);if(el){remove(el)}}};S.swf=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):300};S.swf.ext=["swf"];S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var jwControllerHeight=20;S.flv=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=jwControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.flv.ext=["flv","m4v"];S.flv.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var qtControllerHeight=16;S.qt=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=qtControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.qt.ext=["dv","mov","moov","movie","mp4","avi","mpg","mpeg"];S.qt.prototype={append:function(body,dims){var opt=S.options,autoplay=String(opt.autoplayMovies),controls=String(opt.showMovieControls);var html="<object",movie={id:this.id,name:this.id,height:this.height,width:this.width,kioskmode:"true"};if(S.isIE){movie.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";movie.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{movie.type="video/quicktime";movie.data=this.obj.content}for(var m in movie){html+=" "+m+'="'+movie[m]+'"'}html+=">";var params={src:this.obj.content,scale:"aspect",controller:controls,autoplay:autoplay};for(var p in params){html+='<param name="'+p+'" value="'+params[p]+'">'}html+="</object>";body.innerHTML=html},remove:function(){try{document[this.id].Stop()}catch(e){}var el=get(this.id);if(el){remove(el)}}};var wmpControllerHeight=(S.isIE?70:45);S.wmp=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=wmpControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.wmp.ext=["asf","avi","mpg","mpeg","wm","wmv"];S.wmp.prototype={append:function(body,dims){var opt=S.options,autoplay=opt.autoplayMovies?1:0;var movie='<object id="'+this.id+'" name="'+this.id+'" height="'+this.height+'" width="'+this.width+'"',params={autostart:opt.autoplayMovies?1:0};if(S.isIE){movie+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';params.url=this.obj.content;params.uimode=opt.showMovieControls?"full":"none"}else{movie+=' type="video/x-ms-wmv"';movie+=' data="'+this.obj.content+'"';params.showcontrols=opt.showMovieControls?1:0}movie+=">";for(var p in params){movie+='<param name="'+p+'" value="'+params[p]+'">'}movie+="</object>";body.innerHTML=movie},remove:function(){if(S.isIE){try{window[this.id].controls.stop();window[this.id].URL="movie"+now()+".wmv";window[this.id]=function(){}}catch(e){}}var el=get(this.id);if(el){setTimeout(function(){remove(el)},10)}}};var overlayOn=false,visibilityCache=[],pngIds=[S.options.cssPrepend+"-nav-close",S.options.cssPrepend+"-nav-next",S.options.cssPrepend+"-nav-play",S.options.cssPrepend+"-nav-pause",S.options.cssPrepend+"-nav-previous"],container,overlay,wrapper,doWindowResize=true;function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+value+"px"};if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);if(callback){callback()}return}var from=parseFloat(S.getStyle(el,property))||0;var delta=to-from;if(delta==0){if(callback){callback()}return}duration*=1000;var begin=now(),ease=S.ease,end=begin+duration,time;var interval=setInterval(function(){time=now();if(time>=end){clearInterval(interval);interval=null;anim(el,to);if(callback){callback()}}else{anim(el,from+ease((time-begin)/duration)*delta)}},10)}function setSize(){container.style.height=S.getWindowSize("Height")+"px";container.style.width=S.getWindowSize("Width")+"px"}function setPosition(){container.style.top=document.documentElement.scrollTop+"px";container.style.left=document.documentElement.scrollLeft+"px"}function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||""})}else{visibilityCache=[];each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);el.style.visibility="hidden"})})}}function toggleNav(id,on){var el=get(S.options.cssPrepend+"-nav-"+id);if(el){el.style.display=on?"":"none"}}function toggleLoading(on,callback){var loading=get(S.options.cssPrepend+"-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");if(on){S.setOpacity(loading,0);loading.style.display="block";var wrapped=function(){S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped)}else{wrapped()}}else{var wrapped=function(){loading.style.display="none";S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped)}else{wrapped()}}}function buildBars(callback){var obj=S.getCurrent();get(S.options.cssPrepend+"-title-inner").innerHTML=obj.title||"";var close,next,play,pause,previous;if(S.options.displayNav){close=true;var len=S.gallery.length;if(len>1){if(S.options.continuous){next=previous=true}else{next=(len-1)>S.current;previous=S.current>0}}if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();play=!pause}}else{close=next=play=pause=previous=false}toggleNav("close",close);toggleNav("next",next);toggleNav("play",play);toggleNav("pause",pause);toggleNav("previous",previous);var counter="";if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0){i+=len}end=S.current+(limit-h);if(end>len){end-=len}}while(i!=end){if(i==len){i=0}counter+='<a onclick="Shadowbox.change('+i+');"';if(i==S.current){counter+=' class="'+S.options.cssPrepend+'-counter-current"'}counter+=">"+(++i)+"</a>"}}else{counter=[S.current+1,S.lang.of,len].join(" ")}}get(S.options.cssPrepend+"-counter").innerHTML=counter;callback()}function showBars(callback){var titleInner=get(S.options.cssPrepend+"-title-inner"),infoInner=get(S.options.cssPrepend+"-info-inner"),duration=0.35;titleInner.style.visibility=infoInner.style.visibility="";if(titleInner.innerHTML!=""){animate(titleInner,"marginTop",0,duration)}animate(infoInner,"marginTop",0,duration,callback)}function hideBars(anim,callback){var title=get(S.options.cssPrepend+"-title"),info=get(S.options.cssPrepend+"-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get(S.options.cssPrepend+"-title-inner"),infoInner=get(S.options.cssPrepend+"-info-inner"),duration=(anim?0.35:0);animate(titleInner,"marginTop",titleHeight,duration);animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";callback()})}function adjustHeight(height,top,anim,callback){var wrapperInner=get(S.options.cssPrepend+"-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);animate(wrapper,"top",top,duration);animate(wrapperInner,"height",height,duration,callback)}function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);animate(wrapper,"left",left,duration);animate(wrapper,"width",width,duration,callback)}function setDimensions(height,width,top,bottom){var bodyInner=get(S.options.cssPrepend+"-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect)}var K={};K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#fff",overlayOpacity:0.8,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};K.init=function(){K.markup='<div id="'+S.options.cssPrepend+'-container"><div id="'+S.options.cssPrepend+'-overlay"></div><div id="'+S.options.cssPrepend+'-wrapper"><div id="'+S.options.cssPrepend+'-title"><div id="'+S.options.cssPrepend+'-title-inner"></div></div><div id="'+S.options.cssPrepend+'-wrapper-inner"><div id="'+S.options.cssPrepend+'-body"><div id="'+S.options.cssPrepend+'-body-inner"></div><div id="'+S.options.cssPrepend+'-loading"><div id="'+S.options.cssPrepend+'-loading-inner"><span>{loading}</span></div></div></div></div><div id="'+S.options.cssPrepend+'-info"><div id="'+S.options.cssPrepend+'-info-inner"><div id="'+S.options.cssPrepend+'-counter"></div><div id="'+S.options.cssPrepend+'-nav"><a id="'+S.options.cssPrepend+'-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="'+S.options.cssPrepend+'-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="'+S.options.cssPrepend+'-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="'+S.options.cssPrepend+'-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="'+S.options.cssPrepend+'-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';S.appendHTML(document.body,sprintf(K.markup,S.lang));K.body=get(S.options.cssPrepend+"-body-inner");container=get(S.options.cssPrepend+"-container");overlay=get(S.options.cssPrepend+"-overlay");wrapper=get(S.options.cssPrepend+"-wrapper");if(!supportsFixed){container.style.position="absolute"}if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;each(pngIds,function(i,id){el=get(id);if(el){m=S.getStyle(el,"backgroundImage").match(re);if(m){el.style.backgroundImage="none";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+m[1]+",sizingMethod=scale);"}}})}var timer;addEvent(window,"resize",function(){if(timer){clearTimeout(timer);timer=null}if(open){timer=setTimeout(K.onWindowResize,10)}})};K.onOpen=function(obj,callback){doWindowResize=false;container.style.display="block";setSize();var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);adjustHeight(dims.innerHeight,dims.top);adjustWidth(dims.width,dims.left);if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;S.setOpacity(overlay,0);if(!S.options.modal){addEvent(overlay,"click",S.close)}overlayOn=true}if(!supportsFixed){setPosition();addEvent(window,"scroll",setPosition)}toggleTroubleElements();container.style.visibility="visible";if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback)}else{callback()}};K.onLoad=function(changing,callback){toggleLoading(true);while(K.body.firstChild){remove(K.body.firstChild)}hideBars(changing,function(){if(!open){return}if(!changing){wrapper.style.visibility="visible"}buildBars(callback)})};K.onReady=function(callback){if(!open){return}var player=S.player,dims=setDimensions(player.height,player.width);var wrapped=function(){showBars(callback)};switch(S.options.animSequence){case"hw":adjustHeight(dims.innerHeight,dims.top,true,function(){adjustWidth(dims.width,dims.left,true,wrapped)});break;case"wh":adjustWidth(dims.width,dims.left,true,function(){adjustHeight(dims.innerHeight,dims.top,true,wrapped)});break;default:adjustWidth(dims.width,dims.left,true);adjustHeight(dims.innerHeight,dims.top,true,wrapped)}};K.onShow=function(callback){toggleLoading(false,callback);doWindowResize=true};K.onClose=function(){if(!supportsFixed){removeEvent(window,"scroll",setPosition)}removeEvent(overlay,"click",S.close);wrapper.style.visibility="hidden";var callback=function(){container.style.visibility="hidden";container.style.display="none";toggleTroubleElements(true)};if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback)}else{callback()}};K.onPlay=function(){toggleNav("play",false);toggleNav("pause",true)};K.onPause=function(){toggleNav("pause",false);toggleNav("play",true)};K.onWindowResize=function(){if(!doWindowResize){return}setSize();var player=S.player,dims=setDimensions(player.height,player.width);adjustWidth(dims.width,dims.left);adjustHeight(dims.innerHeight,dims.top);if(player.onWindowResize){player.onWindowResize()}};S.skin=K;window.Shadowbox=S})(window);(function(a){a.jScrollPane={active:[]};a.fn.jScrollPane=function(b){b=a.extend({},a.fn.jScrollPane.defaults,b);var c=function(){return false};return this.each(function(){var ai=a(this);ai.css("overflow","hidden");var C=this;if(a(this).parent().is(".jScrollPaneContainer")){var aA=b.maintainPosition?ai.position().top:0;var al=a(this).parent();var aW=al.innerWidth();var ay=al.outerHeight();var ak=ay;a(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",al).remove();ai.css({top:0})}else{var aA=0;this.originalPadding=ai.css("paddingTop")+" "+ai.css("paddingRight")+" "+ai.css("paddingBottom")+" "+ai.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(ai.css("paddingLeft"))||0)+(parseInt(ai.css("paddingRight"))||0);var aW=ai.innerWidth();var ay=ai.innerHeight();var ak=ay;ai.wrap(a("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:ay+"px",width:aW+"px"}));a(document).bind("emchange",function(e,d,f){ai.jScrollPane(b)})}if(b.reinitialiseOnImageLoad){var aj=a.data(C,"jScrollPaneImagesToLoad")||a("img",ai);var aq=[];if(aj.length){aj.each(function(e,d){a(this).bind("load",function(){if(a.inArray(e,aq)==-1){aq.push(d);aj=a.grep(aj,function(f,g){return f!=d});a.data(C,"jScrollPaneImagesToLoad",aj);b.reinitialiseOnImageLoad=false;ai.jScrollPane(b)}}).each(function(g,f){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var aJ=this.originalSidePaddingTotal;var aN={height:"auto",width:aW-b.scrollbarWidth-b.scrollbarMargin-aJ+"px"};if(b.scrollbarOnLeft){aN.paddingLeft=b.scrollbarMargin+b.scrollbarWidth+"px"}else{aN.paddingRight=b.scrollbarMargin+"px"}ai.css(aN);var aM=ai.outerHeight();var aQ=ay/aM;if(aQ<0.99){var ap=ai.parent();ap.append(a("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:b.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:b.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:b.scrollbarWidth+"px"}),a("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:b.scrollbarWidth+"px"}))));var av=a(">.jScrollPaneTrack",ap);var ah=a(">.jScrollPaneTrack .jScrollPaneDrag",ap);if(b.showArrows){var aT;var aC;var ae;var aH;var aP=function(){if(aH>4||aH%4==0){aw(aE+aC*aY)}aH++};var am=function(d){a("html").unbind("mouseup",am);aT.removeClass("jScrollActiveArrowButton");clearInterval(ae)};var A=function(){a("html").bind("mouseup",am);aT.addClass("jScrollActiveArrowButton");aH=0;aP();ae=setInterval(aP,100)};ap.append(a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp"}).css({width:b.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){aT=a(this);aC=-1;A();this.blur();return false}).bind("click",c),a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown"}).css({width:b.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){aT=a(this);aC=1;A();this.blur();return false}).bind("click",c));var ag=a(">.jScrollArrowUp",ap);var an=a(">.jScrollArrowDown",ap);if(b.arrowSize){ak=ay-b.arrowSize-b.arrowSize;av.css({height:ak+"px",top:b.arrowSize+"px"})}else{var aG=ag.height();b.arrowSize=aG;ak=ay-aG-an.height();av.css({height:ak+"px",top:aG+"px"})}}var az=a(this).css({position:"absolute",overflow:"visible"});var au;var B;var aY;var aE=0;var ab=aQ*ay/2;var aZ=function(f,d){var e=d=="X"?"Left":"Top";return f["page"+d]||(f["client"+d]+(document.documentElement["scroll"+e]||document.body["scroll"+e]))||0};var aU=function(){return false};var aB=function(){aL();au=ah.offset(false);au.top-=aE;B=ak-ah[0].offsetHeight;aY=2*b.wheelSpeed*B/aM};var at=function(d){aB();ab=aZ(d,"Y")-aE-au.top;a("html").bind("mouseup",ad).bind("mousemove",aS);if(a.browser.msie){a("html").bind("dragstart",aU).bind("selectstart",aU)}return false};var ad=function(){a("html").unbind("mouseup",ad).unbind("mousemove",aS);ab=aQ*ay/2;if(a.browser.msie){a("html").unbind("dragstart",aU).unbind("selectstart",aU)}};var aw=function(e){e=e<0?0:(e>B?B:e);aE=e;ah.css({top:e+"px"});var d=e/B;az.css({top:((ay-aM)*d)+"px"});ai.trigger("scroll");if(b.showArrows){ag[e==0?"addClass":"removeClass"]("disabled");an[e==B?"addClass":"removeClass"]("disabled")}};var aS=function(d){aw(aZ(d,"Y")-au.top-ab)};var aI=Math.max(Math.min(aQ*(ay-b.arrowSize*2),b.dragMaxHeight),b.dragMinHeight);ah.css({height:"72px"}).bind("mousedown",at);var aO;var af;var ao;var aF=function(){if(af>8||af%4==0){aw((aE-((aE-ao)/2)))}af++};var aD=function(){clearInterval(aO);a("html").unbind("mouseup",aD).unbind("mousemove",aV)};var aV=function(d){ao=aZ(d,"Y")-au.top-ab};var ac=function(d){aB();aV(d);af=0;a("html").bind("mouseup",aD).bind("mousemove",aV);aO=setInterval(aF,100);aF()};av.bind("mousedown",ac);ap.bind("mousewheel",function(f,d){aB();aL();var e=aE;aw(aE-d*aY);var g=e!=aE;return !g});var ar;var aa;function aX(){var d=(ar-aE)/b.animateStep;if(d>1||d<-1){aw(aE+d)}else{aw(ar);aL()}}var aL=function(){if(aa){clearInterval(aa);delete ar}};var ax=function(d,f){if(typeof d=="string"){$e=a(d,ai);if(!$e.length){return}d=$e.offset().top-ai.offset().top}ap.scrollTop(0);aL();var e=-d/(ay-aM)*B;if(f||!b.animateTo){aw(e)}else{ar=e;aa=setInterval(aX,b.animateInterval)}};ai[0].scrollTo=ax;ai[0].scrollBy=function(d){var e=-parseInt(az.css("top"))||0;ax(e+d)};aB();ax(-aA,true);a("*",this).bind("focus",function(f){var g=a(this);var d=0;while(g[0]!=ai[0]){d+=g.position().top;g=g.offsetParent()}var j=-parseInt(az.css("top"))||0;var e=j+ay;var h=d>j&&d<e;if(!h){var i=d-b.scrollbarMargin;if(d>j){i+=a(this).height()+15+b.scrollbarMargin-ay}ax(i)}});if(location.hash){var aK=location.hash;try{if(aK.length>=2&&aK.indexOf("/")==1){aK="#"+aK.substring(2)}}catch(aR){}ax(aK)}a(document).bind("click",function(d){$target=a(d.target);if($target.is("a")){var e=$target.attr("href");if(e.substr(0,1)=="#"){ax(e)}}});a.jScrollPane.active.push(ai[0])}else{ai.css({height:ay+"px",width:aW-this.originalSidePaddingTotal+"px",padding:this.originalPadding});ai.parent().unbind("mousewheel")}})};a.fn.jScrollPane.defaults={scrollbarWidth:13,scrollbarMargin:0,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false};a(window).bind("unload",function(){var b=a.jScrollPane.active;for(var c=0;c<b.length;c++){b[c].scrollTo=b[c].scrollBy=null}})})(jQuery);(function(b){b.event.special.mousewheel={setup:function(){var a=b.event.special.mousewheel.handler;if(b.browser.mozilla){b(this).bind("mousemove.mousewheel",function(d){b.data(this,"mwcursorposdata",{pageX:d.pageX,pageY:d.pageY,clientX:d.clientX,clientY:d.clientY})})}if(this.addEventListener){this.addEventListener((b.browser.mozilla?"DOMMouseScroll":"mousewheel"),a,false)}else{this.onmousewheel=a}},teardown:function(){var a=b.event.special.mousewheel.handler;b(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((b.browser.mozilla?"DOMMouseScroll":"mousewheel"),a,false)}else{this.onmousewheel=function(){}}b.removeData(this,"mwcursorposdata")},handler:function(g){var a=Array.prototype.slice.call(arguments,1);g=b.event.fix(g||window.event);b.extend(g,b.data(this,"mwcursorposdata")||{});var f=0,h=true;if(g.wheelDelta){f=g.wheelDelta/120}if(g.detail){f=-g.detail/3}g.data=g.data||{};g.type="mousewheel";a.unshift(f);a.unshift(g);return b.event.handle.apply(this,a)}};b.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);(function(b){b.fn.easySlider=function(a){var d={esCallback:function(f,c){},prevId:"selector-left",prevText:"Previous",nextId:"selector-right",nextText:"Next",controlsShow:true,controlsBefore:"",controlsAfter:"",controlsFade:true,firstId:"firstBtn",firstText:"First",firstShow:false,lastId:"lastBtn",lastText:"Last",lastShow:false,vertical:false,speed:300,auto:false,pause:2000,continuous:true,numeric:false,numericId:"controls"};var a=b.extend(d,a);this.each(function(){var y=b(this);var C=b("li",y).length;var h=b("li",y).width();var x=b("li",y).height();var v=true;y.width(h);y.height(x);y.css("overflow","hidden");var t=C-1;var c=0;b("ul",y).css("width",C*h);if(a.continuous){b("ul",y).prepend(b("ul li:last-child",y).clone().css("margin-left","-"+h+"px"));b("ul",y).append(b("ul li:nth-child(2)",y).clone());b("ul",y).css("width",(C+1)*h)}if(!a.vertical){b("li",y).css("float","left")}if(a.controlsShow){var w=a.controlsBefore;if(a.numeric){w+='<ol id="'+a.numericId+'"></ol>'}if(a.firstShow){w+='<span id="'+a.firstId+'"><a href="javascript:void(0);">'+a.firstText+"</a></span>"}w+=' <span id="'+a.prevId+'"><a href="javascript:void(0);">'+a.prevText+"</a></span>";w+=' <span id="'+a.nextId+'"><a href="javascript:void(0);">'+a.nextText+"</a></span>";if(a.lastShow){w+=' <span id="'+a.lastId+'"><a href="javascript:void(0);">'+a.lastText+"</a></span>"}w+=a.controlsAfter;b(y).after(w)}if(a.numeric){for(var z=0;z<C;z++){b(document.createElement("li")).attr("id",a.numericId+(z+1)).html("<a rel="+z+' href="javascript:void(0);">&nbsp;</a>').appendTo(b("#"+a.numericId)).click(function(){B(b("a",b(this)).attr("rel"),true)})}}b("a","#"+a.nextId).click(function(){B("next",true);a.esCallback(y.find("ul li:eq("+c+")").attr("rel"))});b("a","#"+a.prevId).click(function(){B("prev",true);a.esCallback(y.find("ul li:eq("+c+")").attr("rel"))});b("a","#"+a.firstId).click(function(){B("first",true);a.esCallback(y.find("ul li:eq("+c+")").attr("rel"))});b("a","#"+a.lastId).click(function(){B("last",true);a.esCallback(y.find("ul li:eq("+c+")").attr("rel"))});function A(e){e=parseInt(e)+1;b("li","#"+a.numericId).removeClass("current");b("li#"+a.numericId+e).addClass("current")}function i(){if(c>t){c=0}if(c<0){c=t}if(!a.vertical){b("ul",y).css("margin-left",(c*h*-1))}else{b("ul",y).css("margin-top",(c*x*-1))}v=true;if(a.numeric){A(c)}}function B(k,g){if(v){v=false;var j=c;switch(k){case"next":c=(j>=t)?(a.continuous?c+1:t):c+1;break;case"prev":c=(c<=0)?(a.continuous?c-1:0):c-1;break;case"first":c=0;break;case"last":c=t;break;default:c=parseInt(k);break}var e=Math.abs(j-c);var f=e*a.speed;if(!a.vertical){p=(c*h*-1);b("ul",y).animate({marginLeft:p},{queue:false,duration:f,complete:i})}else{p=(c*x*-1);b("ul",y).animate({marginTop:p},{queue:false,duration:f,complete:i})}if(!a.continuous&&a.controlsFade){if(c==t){b("a","#"+a.nextId).hide();b("a","#"+a.lastId).hide()}else{b("a","#"+a.nextId).show();b("a","#"+a.lastId).show()}if(c==0){b("a","#"+a.prevId).hide();b("a","#"+a.firstId).hide()}else{b("a","#"+a.prevId).show();b("a","#"+a.firstId).show()}}if(g){clearTimeout(s)}if(a.auto&&k=="next"&&!g){s=setTimeout(function(){B("next",false)},e*a.speed+a.pause)}}}var s;if(a.auto){s=setTimeout(function(){B("next",false)},a.pause)}if(a.numeric){A(0)}if(!a.continuous&&a.controlsFade){b("a","#"+a.prevId).hide();b("a","#"+a.firstId).hide()}})}})(jQuery);(function(a){a.fn.jBrowserBookmark=function(k,b){var f=a.extend(opts={language:{"":["Press [key] + "," to bookmark this page."]},defaultLanguage:"",functionButton:["CTRL","CMD"]},k);var g=window.location.href;var e=document.title;var j;j=c();return this.each(function(){a(this).click(function(n){n.preventDefault();try{switch(j){case"konqueror":case"firefox":window.sidebar.addPanel(e,g,"");break;case"msie":window.external.AddFavorite(g,e);break;case"opera":if(i()<11){a(this).attr("rel","sidebar").attr("title",e).attr("href",g);break}else{throw m}default:throw m}}catch(m){var l=h(j);var o=d();if(/mac/.test(navigator.platform.toLowerCase()=="mac")){prefix=o[0].replace("[key]",opts.functionButton[1])}else{prefix=o[0].replace("[key]",opts.functionButton[0])}alert(prefix+l+o[1])}})});function c(){if(a.browser.msie){return"msie"}if(a.browser.mozilla){return"firefox"}if(a.browser.opera){return"opera"}if(a.browser.safari&&/chrome/.test(navigator.userAgent.toLowerCase())){return"chrome"}if(a.browser.safari){return"safari"}if(/konqueror/.test(navigator.userAgent.toLowerCase())){return"konqueror"}}function h(l){switch(l){case"konqueror":return"B";break;case"opera":return(i()<9)?"T":"D";break;default:return"D";break}}function d(){var l;if(opts.language[b]!=undefined){l=b}else{if(opts.language[navigator.language.toLowerCase().substring(0,2)]!=undefined){l=navigator.language.toLowerCase().substring(0,2)}else{if(opts.language[opts.defaultLanguage]!=undefined){l=opts.defaultLanguage}else{for(var m in opts.language){l=m;break}}}}return opts.language[l]}function i(){version=navigator.userAgent.substring(navigator.userAgent.toLowerCase().indexOf("version/")+8);return parseInt(version.substring(0,version.indexOf(".")))}}})(jQuery);var winnie=winnie||{};winnie.constants=winnie.constants||{ANIMATING:"animating",CLEANUP:"cleanup",CHANGE_DEEPLINK:"changedeeplink",CHANGE_CONTENT:"changing",CHANGE_SECTION:"allchange",LIKE_ACTIVATED:"activatelike",LOG:"log",ERROR:"error",INFO:"info",WARNING:"warn",DEBUG:"debug"};winnie.pie=winnie.pie||{};winnie.pie.roundedList=[];winnie.pie.attachElements=function(a){try{if(PIE&&$(pieRoundedSearch).length>0){if(a){a.find(pieRoundedSearch).each(function(){if(winnie.pie.alreadyAttached(this)===false){winnie.pie.roundedList.push(this);PIE.attach(this)}})}else{$(pieRoundedSearch).each(function(){if(winnie.pie.alreadyAttached(this)===false){winnie.pie.roundedList.push(this);PIE.attach(this)}})}}}catch(b){if($.browser.msie===true){winnie.log(b.description+"!  Error attaching PIE objects.",winnie.constants.ERROR)}}};winnie.pie.alreadyAttached=function(b){var a=0;for(a=0;a<winnie.pie.roundedList;a++){if(b===winnie.pie.roundedList[a]){return true}}return false};winnie.pie.removeAttached=function(b){var a=0;for(a=0;a<winnie.pie.roundedList;a++){if(b===winnie.pie.roundedList[a]){winnie.pie.roundedList.splice(a,1);break}}};winnie.pie.detachElements=function(){try{if(PIE&&winnie.utils.isUndefined($(pieRoundedSearch).each)===false){if(container){container.find(pieRoundedSearch).each(function(){winnie.pie.removeAttached(this);PIE.detach(this)});winnie.pie.roundedList=[]}else{$(pieRoundedSearch).each(function(){winnie.pie.removeAttached(this);PIE.detach(this)})}}}catch(a){if($.browser.msie===true){winnie.log(a.description+"!  Error detaching PIE objects.",winnie.constants.ERROR)}}winnie.pie.roundedList=[]};winnie.utils=winnie.utils||{};winnie.utils.isUndefined=function(a){if(typeof a==="undefined"||a==="undefined"||a==="null"||!a){return true}return false};winnie.utils.getCookie=function(b){var d=document.cookie.split("; "),c,a;for(c=0;c<d.length;c++){a=d[c].split("=");if(b===a[0]){return unescape(a[1])}}return undefined};winnie.utils.getQueryParams=function(a){var c={length:0},e,h,g,f,b,j;try{h=a.split("#")[0].split("?")[1].split("&");g=a.substring(a.length-1);c.length=h.length;c.endsWithChar=g;for(e=0;e<h.length;e++){f=h[e].split("=");b=unescape(f[0]);j=unescape(f[1]);c[b]=j}}catch(d){c.error=d}finally{return c}};winnie.utils.setCookie=function(b,c,a){if(a){document.cookie=b+"="+escape(c)+"; expires="+a}else{document.cookie=b+"="+escape(c)}};winnie.jsCache=winnie.jsCache||{};winnie.jsCache.externalJsList=winnie.jsCache.externalJsList||[];winnie.jsCache.addJs=function(a){winnie.log("Adding "+a+" to loaded js list...",winnie.constants.DEBUG);winnie.jsCache.externalJsList.push(a)};winnie.jsCache.isUsingJs=function(a){var b;for(b=0;b<winnie.jsCache.externalJsList.length;b++){if(winnie.jsCache.externalJsList[b]===a){return true}}return false};winnie.initLog=function(){var a=winnie.utils.getQueryParams(location.href);var b=winnie.utils.getCookie("debugJs");if(winnie.utils.isUndefined(a.debug)===false){winnie.utils.setCookie("debugJs",a.debug);winnie.logEnabled=a.debug}else{if(winnie.utils.isUndefined(b)===false){winnie.logEnabled=b}}winnie.initLog=function(){return}};winnie.initLog();winnie.logEnabled=winnie.logEnabled||0;winnie.log=function(d,c,e){var b=d;var a=e||1;if(winnie.logEnabled!==0&&a>=winnie.logEnabled){c=winnie.utils.isUndefined(c)===true?winnie.constants.LOG:c;if(window.console&&console[c]){console[c](d)}else{if(c===winnie.constants.DEBUG||c===winnie.constants.INFO){if($.browser.msie===true){if(window.console&&console.info){console.info(b)}}else{if(window.console&&console.debug){console.debug(b)}}}else{if(window.console&&console.log){console.log(b)}}}}};winnie.content=winnie.content||{};winnie.content.loadShadowBox=function(a){if(a.type==="html"){var b={};b[ageGateOptions.locationKey]=location.href;$.ajax({url:a.srcUrl,data:b,dataType:a.type,success:function(c){winnie.content.trackAjax(a.srcUrl);Shadowbox.open({content:c,player:winnie.utils.isUndefined(a.type)===true?"html":a.type,title:a.title,height:a.height,width:a.width,options:a})},dataFilter:function(g,j){var c=g.toLowerCase();var d="<head";var h="</head>";var k=c.indexOf(d);var f=c.indexOf(h);var e=g.substring(0,k);var i=g.substring(f+h.length);return e+"<head></head>"+i}})}else{winnie.content.trackAjax(a.srcUrl);Shadowbox.open({content:a.srcUrl,player:winnie.utils.isUndefined(a.type)===true?"html":a.type,title:a.title,height:a.height,width:a.width,options:a})}};winnie.content.trackAjax=function(c){try{var e=winnie.content.createTrackingObject(c);var a=false;try{a=winnie.utils.isUndefined(cto.ajaxStart)}catch(b){a=false}if(a===true){cto.siteSection=e.siteSection;cto.pageName=e.pageName;cto.track()}else{cto.ajaxStart();cto.siteSection=e.siteSection;cto.pageName=e.pageName;cto.ajaxEnd()}winnie.log("Sending ajax tracking\nsection= "+e.siteSection+"\npage= "+e.pageName,winnie.constants.DEBUG,1)}catch(d){winnie.log("Error sending ajax tracking for url "+c+"\nerror: "+d.description,winnie.constants.ERROR)}};winnie.content.createTrackingObject=function(c){var b={};var a=c.indexOf("://");if(a!=-1){c=c.split("://")[1]}var d=winnie.utils.getQueryParams(c);c=c.split("?")[0];var h=c.split("/");var i=h[h.length-1];if(i.indexOf(".")==-1&&i.lastIndexOf("/")!=(i.length-1)){c=c+"/"}var e=baseUrl.replace(new RegExp("/","g"),"");var f=c.substring(0,c.lastIndexOf("/"));var g=c.substring(c.lastIndexOf("/")+1);if(f.indexOf("/")===0){f=f.substring(1)}f+="/"+g;if(winnie.utils.isUndefined(d[subcontentIdParameterName])===false){g=d[subcontentIdParameterName]}else{if(winnie.utils.isUndefined(d.area)===false){g=d.area}}if(winnie.utils.isUndefined(g)===true){g="index"}if(f.lastIndexOf("/")==(f.length-1)){f=f.substring(0,f.lastIndexOf("/"))}f=f.replace(new RegExp("/","g"),":");b.siteSection=f;b.pageName=g;return b};winnie.content.createTrackingLinkObject=function(b){var e={};b=b.indexOf("#")===0?b.split("#")[1]:b.split("#")[0];b=b.split("?")[0];var a=b.indexOf("://");if(a!=-1){b=b.split("://")[1]}a=b.indexOf("www.");if(a!=-1){b=b.split("www.")[1]}var d="exit_";try{d=d+cto.site+"_"}catch(c){winnie.log("Error creating linkPrefix "+c.description,winnie.constants.ERROR)}e.linkId=d+b.replace(new RegExp("/","g"),"_");return e};winnie.content.trackExternalLink=function(f,e){try{var a=winnie.content.createTrackingObject(location.href.split("#")[0]);var c=false;try{c=(winnie.utils.isUndefined(cto.trackLink)===false)}catch(b){c=false}if(c===true){var h;if(typeof e==="string"){h=e}else{h=winnie.content.createTrackingLinkObject($(f).attr("href")).linkId}var d=a.siteSection;cto.trackLink(h,d)}else{var g=$(f);if(typeof e==="string"){g.attr("name",e)}else{if(winnie.utils.isUndefined(g.attr("name"))===true){g.attr("name",winnie.content.createTrackingLinkObject(g.attr("href")).linkId)}}cto.tracklink(f)}}catch(i){winnie.log("Error sending link tracking "+i.description,winnie.constants.ERROR)}};$(document).ready(function(){setTimeout(function(){winnie.pie.attachElements()},200);var a=function(){$("SCRIPT").each(function(){var c=$(this).attr("src");if(winnie.utils.isUndefined(c)===false&&winnie.jsCache.isUsingJs(c)===false){winnie.jsCache.addJs(c)}})};a();var b=function(){};$(document).bind(winnie.constants.CHANGE_CONTENT,a);$(document).bind(winnie.constants.CLEANUP,b);$(window).unload(function(){$(document).unbind(winnie.constants.CHANGE_CONTENT,a);$(document).unbind(winnie.constants.CLEANUP,b);b()});$("#content p:last").css("margin","0px")});(function(e){var d={};var f=true;var c=function(){e("#video-holder").addClass("video-holder-ajax");e("#video-close").addClass("video-close-ajax");e("#audio-close, #video-close").show();e("#ajax-module").fadeIn("fast",function(){winnie.pie.attachElements()});var g=0.7;e("#ajax-opacity, #video-ajax-opacity").animate({opacity:g},0,function(){e(this).fadeIn("fast")});e("content-loader-animation").show()};var b=function(){e("#ajax-module").fadeIn("fast",function(){e(this).remove();e("#ajax-opacity, #video-ajax-opacity").hide()});e("content-loader-animation").hide()};var a={init:function(g){return this.each(function(){var i=e(this).attr("href");var h=e(this).attr("rel");var j=winnie.utils.getQueryParams(h);if(j.type==="ajax"){e(this).click(function(k){k.preventDefault();var l=winnie.ajax.createAjaxUrl(i,{type:"ajax"});e.ajax({type:"GET",url:l,dataType:"html",error:function(o,m,n){winnie.log("Error loading json data "+l+", status: "+m,winnie.constants.ERROR)},success:function(q){if(e("#ajax-module").length===0){var n=e(q);var m=n.find("#audio-content, #video-content").html();n.find("#audio-content #upgrade, #video-holder #upgrade").remove();try{n.each(function(s){var t=e(this).attr("src");if(winnie.utils.isUndefined(t)===true||(winnie.utils.isUndefined(t)===false&&winnie.jsCache.isUsingJs(t)===false)){winnie.jsCache.addJs(t);e("#content").append(e(this))}})}catch(o){winnie.log("Is this IE?  Error appending ajax content: "+o,winnie.constants.ERROR)}e("#content-back").remove();if(swfobject.hasFlashPlayerVersion(minSwfVersion)===false){f=false;e("#audio-content, video-content").append(m)}else{n.find("video").remove()}if(e("#video-holder").length>0){e("#ajax-module").append(e(".ajax-button-list").clone());var r=e("#ajax-module .ajax-button-list").offset();r.top=r.top+25;e("#ajax-module .ajax-button-list").offset(r);e("#ajax-module a").each(function(){if(e(this).attr("rel").indexOf("type=ajax")!==-1){e(this).text(e("#ajax-close-text").text());e(this).unbind("click");e(this).bind("click",function(s){s.preventDefault();b();e(this).unbind("click")})}})}e("#ajax-module").hide();e(".ajax-back, #subnav il li a").click(function(s){s.preventDefault();b();e(this).unbind("click")});c()}}})})}})},cleanup:function(g){return this.each(function(){e(this).unbind("click")})}};e.fn.winnieAudioVideoButton=function(h){var g="$.fn.winnieAudioVideoButton";if(typeof arguments["0"]==="object"){e.extend(d,arguments["0"])}else{if(typeof arguments["1"]==="object"){e.extend(d,arguments["1"])}}if(a[h]){winnie.log("Calling JQuery method "+g+"."+h,winnie.constants.DEBUG);return a[h].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof h==="object"||!h){winnie.log("Calling JQuery method "+g+".init",winnie.constants.DEBUG);return a.init.apply(this,arguments)}else{winnie.log("JQuery Method "+h+" does not exist on "+g,winnie.constants.ERROR)}}}})(jQuery);(function(c){var b={};var a={init:function(){return this.each(function(){var d=c(this);d.click(function(e){e.preventDefault();window.print()})})},cleanup:function(){return this.each(function(){var d=c(this);d.unbind("click")})}};c.fn.winniePrint=function(e){var d="$.fn.winniePrint";if(typeof arguments["0"]==="object"){c.extend(b,arguments["0"])}else{if(typeof arguments["1"]==="object"){c.extend(b,arguments["1"])}}if(a[e]){winnie.log("Calling JQuery method "+d+"."+e,winnie.constants.DEBUG);return a[e].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof e==="object"||!e){winnie.log("Calling JQuery method "+d+".init",winnie.constants.DEBUG);return a.init.apply(this,arguments)}else{winnie.log("JQuery Method "+e+" does not exist on "+d,winnie.constants.ERROR)}}}})(jQuery);(function(c){var b={};var a={init:function(d,e){return this.each(function(){try{var h=c(this);var g;jQuery.data(h,"hoverTimeout",g);h.hover(function(){clearTimeout(jQuery.data(h,"hoverTimeout"));if(e!==undefined&&e.hide!==undefined){e.hide()}d.show()},function(){g=setTimeout(function(){if(d.hide!==undefined){d.hide()}},250);jQuery.data(h,"hoverTimeout",g);d.hover(function(){clearTimeout(jQuery.data(h,"hoverTimeout"))},function(){d.hide()})})}catch(f){if(window.console&&console.log){console.log("error: "+f)}}})},appendDeepLink:function(d){return this.each(function(){try{var g=c(this);var e=g.attr("href")+location.hash;g.attr("href",e)}catch(f){if(window.console&&console.log){console.log("error: "+f)}}})},shadowbox:function(d){return this.each(function(){c(this).click(function(e){e.preventDefault();winnie.content.loadShadowBox(d)})})},cleanup:function(){return this.each(function(d){c(this).unbind("hover");c(this).unbind("click");if(d&&d.unbind){d.unbind("hover")}if(jQuery.data(c(this),"hoverTimeout")){clearTimeout(jQuery.data(c(this),"hoverTimeout"))}})}};c.fn.winnieSocialToolbar=function(e){var d="$.fn.winnieSocialToolbar";if(typeof arguments["0"]==="object"){c.extend(b,arguments["0"])}else{if(typeof arguments["1"]==="object"){c.extend(b,arguments["1"])}}if(a[e]){winnie.log("Calling JQuery method "+d+"."+e,winnie.constants.DEBUG);return a[e].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof e==="object"||!e){winnie.log("Calling JQuery method "+d+".init",winnie.constants.DEBUG);return a.init.apply(this,arguments)}else{winnie.log("JQuery Method "+e+" does not exist on "+d,winnie.constants.ERROR)}}}})(jQuery);(function(c){var b={};var a={init:function(){return this.each(function(j){var h=c(this).attr("href");var g=winnie.utils.getQueryParams(h);var i=c(this).attr("href");var k=new RegExp(b.regExp,"i");var f={};c.extend(f,b);var e=(ageGateOptions.regExp==b.regExp)?"age-gate":"external-link";winnie.log("Compare redirect "+i+" passed= "+k.test(i)+" linkType="+e);if(i!==""&&k.test(i)===f.requiredSearchResponse){var l=f.srcUrl;var n=c(this).data("events");var m=winnie.utils.isUndefined(ageGateOptions.redirectKey)==true?"redirect":ageGateOptions.redirectKey;var o=winnie.utils.isUndefined(ageGateOptions.actionKey)==true?"action":ageGateOptions.actionKey;if(ageGateOptions.regExp==b.regExp){c(this).attr("target",b.target);if(i.indexOf(m+"=")!=-1){c(this).attr("href",i.split(m+"=")[1])}else{c(this).attr("href",i)}}winnie.log("Setting "+e+" Shadowbox "+f.type+" for link "+i);var d=(new Date(new Date().getFullYear()+10,1,1)).toGMTString();c(this).click(function(q){var s=-1;var r=true;if(ageGateOptions.regExp==b.regExp){ageGateOptions.cookie=h;if(winnie.utils.isUndefined(g[o])===false&&winnie.utils.getCookie(g[o])!="viewed"){r=true;q.preventDefault()}else{if(winnie.utils.isUndefined(g[o])===false&&winnie.utils.getCookie(g[o])=="viewed"){r=false;clearTimeout(s)}else{if(winnie.utils.getCookie(escape(h))!="viewed"){r=true;q.preventDefault()}else{r=false;clearTimeout(s)}}}}if(r===true){q.preventDefault();if(winnie.utils.isUndefined(g[m])===false&&winnie.utils.isUndefined(i)===false){i=g[m]}externalLinkOptions.redirect=i;ageGateOptions.redirect=i;if(winnie.utils.isUndefined(g[o])===false){ageGateOptions.action=g[o]}s=setTimeout(function(){winnie.content.loadShadowBox(f)},200)}})}})},track_links:function(){var d=location.href;if(d.indexOf("://")!=-1){d=d.split("://")[1]}var e="";var f="";if(d.indexOf("/")!=-1){e=d.split("/")[0];f=d.split("/")[1]}return this.each(function(){var h="^(http://|https://)(?!"+e+"/"+f+")";var i=new RegExp(h,"g");var g=c(this).attr("href");if(b.useRegExp===false||i.test(g)===true){winnie.log("Matched link track for "+g+"\nmatching regexp= "+h+"\nuseRegExp= "+b.useRegExp,winnie.constants.DEBUG,2);c(this).mouseup(function(){winnie.content.trackExternalLink(c(this)[0])})}})},cleanup:function(){return this.each(function(){c(this).unbind("click")})},cleanup_tracking:function(){return this.each(function(){c(this).unbind("mouseup")})}};c.fn.winnieExternalLink=function(e){var d="$.fn.winnieExternalLink";if(typeof arguments["0"]==="object"){c.extend(b,arguments["0"])}else{if(typeof arguments["1"]==="object"){c.extend(b,arguments["1"])}}if(a[e]){winnie.log("Calling JQuery method "+d+"."+e,winnie.constants.DEBUG);return a[e].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof e==="object"||!e){winnie.log("Calling JQuery method "+d+".init",winnie.constants.DEBUG);return a.init.apply(this,arguments)}else{winnie.log("JQuery Method "+e+" does not exist on "+d,winnie.constants.ERROR)}}}})(jQuery);(function(c){var b={cssActiveClass:"active",cssLargeClass:"large",cssMenuDisplay:"block",cssMenuSelectedClass:"selected"};var a={hideOtherRollovers:function(d){var e=c("#"+d);if(d!==""&&e.length!==0){return this.each(function(g){var f=c(this).attr("rel");if(f!==""&&f!==d&&f!=="#"){c("#"+f).hide()}})}},init:function(){return this.each(function(){var k=c(this);var j;var n=k.attr("rel");var i=k.outerHeight();var l=k.parent().find("span").outerHeight();if(l>i){if(k.parent().hasClass(b.cssLargeClass)===false){k.parent().addClass(b.cssLargeClass)}}else{if(k.parent().hasClass(b.cssLargeClass)===true){k.parent().removeClass(b.cssLargeClass)}}var m;try{m=!disableMenuRollovers}catch(f){m=true}if(m===true&&n!==""){j=c("#"+n);if(j.length>0){j.show();var g=k.offset();var d=(g.top+(k.innerHeight()/2));var e=(d-(j.innerHeight()/2));j.offset({left:null,top:e});j.hide();j.unbind();var h;k.mouseover(function(o){var q;o.preventDefault();clearTimeout(h);clearTimeout(q);c("#menu > ul li a").winnieMultilineMenu("hideOtherRollovers",n);j.show();j.mouseover(function(r){r.preventDefault();clearTimeout(h);clearTimeout(q);c(this).show()});j.mouseout(function(r){r.preventDefault();clearTimeout(q);q=setTimeout(function(){j.hide();j.unbind("mouseover");j.unbind("mouseout")},100)})});k.mouseout(function(o){o.preventDefault();h=setTimeout(function(){j.hide();j.unbind("mouseover");j.unbind("mouseout")},250)})}}})},active:function(d){return this.each(function(){var e=c(this);e.addClass("active")})},cleanup:function(){return this.each(function(){c(this).unbind("hover")})}};c.fn.winnieMultilineMenu=function(e){var d="$.fn.winnieMultilineMenu";if(typeof arguments["0"]==="object"){c.extend(b,arguments["0"])}else{if(typeof arguments["1"]==="object"){c.extend(b,arguments["1"])}}if(a[e]){winnie.log("Calling JQuery method "+d+"."+e,winnie.constants.DEBUG);return a[e].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof e==="object"||!e){winnie.log("Calling JQuery method "+d+".init",winnie.constants.DEBUG);return a.init.apply(this,arguments)}else{winnie.log("JQuery Method "+e+" does not exist on "+d,winnie.constants.ERROR)}}}})(jQuery);$(document).ready(function(){var a=function(){$("#menu ul li a").winnieMultilineMenu();$(".social .facebook").winnieSocialToolbar("init",$("#facebook"),$("#twitter"));$(".social .twitter").winnieSocialToolbar("init",$("#twitter"),$("#facebook"));$("#twitter .tweet").winnieSocialToolbar("appendDeepLink");try{$("#toolbar-inner ul .bookmark a").jBrowserBookmark({language:{en:[bookmarkPrompt.keyString,bookmarkPrompt.msgString]},defaultLanguage:"en"},"en");$("#toolbar-inner ul .date a").winnieSocialToolbar("shadowbox",saveTheDateOptions)}catch(e){}try{$("#toolbar-inner ul .tickets a").winnieSocialToolbar("shadowbox",ticketingOptions);$("#toolbar-inner ul .friends a").winnieSocialToolbar("shadowbox",stafOptions);$("#toolbar-inner ul .register a").winnieSocialToolbar("shadowbox",usRegisterOptions)}catch(f){}if($.fn.winnieAudioVideoButton){$(".buttons ul li a").winnieAudioVideoButton()}if($.fn.winniePrint){$("#scroller .print a").winniePrint()}try{$(ignoreDebugFrameworkButtons).winnieExternalLink(ageGateOptions)}catch(e){}try{$(ignoreDebugFrameworkButtons).winnieExternalLink(externalLinkOptions)}catch(d){}$("#wrapper > *:not(#header-disney)").find(ignoreDebugFrameworkButtons).winnieExternalLink("cleanup_tracking");$("#toolbar div a, #promos-small div a, #promos-large div a").winnieExternalLink("cleanup_tracking");$("#wrapper > *:not(#header-disney, #toolbar)").find(ignoreDebugFrameworkButtons).winnieExternalLink("track_links");$("#toolbar div a, #promos-small div a, #promos-large div a").winnieExternalLink("track_links",{useRegExp:false});$("#scroller ul li a").winnieExternalLink("cleanup_tracking")};var b=function(){try{$(".buttons ul li a").winnieAudioVideoButton("cleanup");$(".ajax-back, #subnav il li a").winnieAudioVideoButton("cleanup")}catch(e){}try{$("#scroller .print a").winniePrint("cleanup")}catch(f){}try{$(ignoreDebugFrameworkButtons).winnieExternalLink("cleanup")}catch(d){}};var c=function(){$("#toolbar #facebook a.like").hide();$("#toolbar #facebook #real-like").show()};if(winnie.utils.getCookie(escape("like-us"))=="viewed"){c()}$(document).bind(winnie.constants.CHANGE_CONTENT,a);$(document).bind(winnie.constants.CHANGE_SECTION,a);$(document).bind(winnie.constants.CLEANUP,b);$(document).bind(winnie.constants.LIKE_ACTIVATED,c);$(window).unload(function(){$(document).unbind(winnie.constants.CHANGE_CONTENT,a);$(document).unbind(winnie.constants.CHANGE_SECTION,a);$(document).unbind(winnie.constants.CLEANUP,b);$(document).unbind(winnie.constants.LIKE_ACTIVATED,c);b();try{$("#menu ul li a").winnieMultilineMenu("cleanup")}catch(d){}try{$(".social .facebook").winnieSocialToolbar("cleanup");$(".social .twitter").winnieSocialToolbar("cleanup");$("#twitter .tweet").winnieSocialToolbar("cleanup");$("#toolbar-inner ul .bookmark a").winnieSocialToolbar("cleanup");$("#toolbar-inner ul .date a").winnieSocialToolbar("cleanup");$("#toolbar-inner ul .tickets a").winnieSocialToolbar("cleanup");$("#toolbar-inner ul .register a").winnieSocialToolbar("cleanup")}catch(e){}});a()});Shadowbox.init({onOpen:function(a){try{$("#sb-nav-close").removeClass();if(a.options.closeBtnClass){$("#sb-nav-close").addClass(a.options.closeBtnClass)}}catch(b){winnie.log(b.description,winnie.constants.ERROR)}staticJsInitialsed=false},onFinish:function(evt){if(staticJsInitialsed===false){$("#sb-player").find("SCRIPT").each(function(){var src=$(this).attr("src");try{if(winnie.utils.isUndefined(src)===false){$.getScript(src)}else{eval($(this).html())}}catch(err){}})}$("#sb-nav a, #sb-player #age-wrapper ul li a").each(function(){var href=$(this).attr("href");if(winnie.utils.isUndefined(href)===true||href==="#"||href==="/#"){$(this).attr("href","/#");$(this).click(function(evt){evt.preventDefault()})}});winnie.pie.attachElements()},overlayColor:"#000",overlayOpacity:0.1,displayNav:true,enableKeys:false});
