rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (value.match(/^\d{1,2}\s{3}/)) value = Zotero.Utilities.cleanString(value.replace(/^\d{1,2}\s{3}/, ""));
if (value.match(/^\d{1,2}\s{3}/)) value = Zotero.Utilities.trimInternal(value.replace(/^\d{1,2}\s{3}/, ""));
Zotero.Utilities.processDocuments(urls, function(newDoc) { var uri = newDoc.location.href; var namespace = newDoc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var elmts = newDoc.evaluate('//table/tbody/tr[@valign="top"]', newDoc, nsResolver, XPathResult.ANY_TYPE, null); var record = new marc.record(); while(elmt = elmts.iterateNext()) { var field = Zotero.Utilities.superCleanString(newDoc.evaluate('./TD[1]/text()[1]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().nodeValue); var value = newDoc.evaluate('./TD[2]/text()[1]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().nodeValue; // remove spacing value = value.replace(/^\s+/, ""); value = value.replace(/\s+$/, ""); if(field == 0) { record.leader = "00000"+value; } else { var ind = value[3]+value[5]; if (value.match(/^\d{1,2}\s{3}/)) value = Zotero.Utilities.cleanString(value.replace(/^\d{1,2}\s{3}/, "")); value = value.replace(/\$([a-z0-9]) /g, marc.subfieldDelimiter+"$1"); if(value[0] != marc.subfieldDelimiter) { value = marc.subfieldDelimiter+"a"+value; } record.addField(field, ind, value); } } var newItem = new Zotero.Item(); record.translate(newItem); var oldTags = newItem.tags; var newTags = new Array(); for each (var tag in oldTags) { if (newTags.indexOf(tag) == -1) newTags.push(tag) } newItem.tags = newTags; newItem.repository = "Berkeley Library Catalog"; newItem.complete(); }, function() { Zotero.done(); }, null);
$special.dragstart = $special.dragend = { setup:function(){}, teardown:function(){} }; function handler ( event ){ var elem = this, returned, data = event.data || {}; if ( data.elem ){ elem = event.dragTarget = data.elem; event.dragProxy = drag.proxy || elem; event.cursorOffsetX = data.pageX - data.left; event.cursorOffsetY = data.pageY - data.top; event.offsetX = event.pageX - event.cursorOffsetX; event.offsetY = event.pageY - event.cursorOffsetY;
function handler ( event ){ var elem = this, returned, data = event.data || {}; if ( data.elem ){ elem = event.dragTarget = data.elem; event.dragProxy = drag.proxy || elem; event.cursorOffsetX = data.pageX - data.left; event.cursorOffsetY = data.pageY - data.top; event.offsetX = event.pageX - event.cursorOffsetX; event.offsetY = event.pageY - event.cursorOffsetY;
(function($) { // secure $ jQuery alias/*******************************************************************************************/// Created: 2008-06-04 | Updated: 2010-03-24/*******************************************************************************************/// Events: drag, dragstart, dragend/*******************************************************************************************/// jquery method$.fn.drag = function( fn1, fn2, fn3 ){ if ( fn2 ) this.bind('dragstart', fn1 ); // 2+ args if ( fn3 ) this.bind('dragend', fn3 ); // 3 args return !fn1 ? this.trigger('drag') // 0 args : this.bind('drag', fn2 ? fn2 : fn1 ); // 1+ args };// local refsvar $event = $.event, $special = $event.special, drag;// special event configurationdrag = $special.drag = { not: ':input', // don't begin to drag on event.targets that match this selector distance: 0, // distance dragged before dragstart which: 1, // mouse button pressed to start drag sequence dragging: false, // hold the active target element setup: function( data ){ data = $.extend({ distance: drag.distance, which: drag.which, not: drag.not }, data || {}); data.distance = squared( data.distance ); // x2 + y2 = distance2 $event.add( this, "mousedown", handler, data ); if ( this.attachEvent ) this.attachEvent("ondragstart", dontStart ); // prevent image dragging in IE... }, teardown: function(){ $event.remove( this, "mousedown", handler ); if ( this === drag.dragging ) drag.dragging = drag.proxy = false; // deactivate element selectable( this, true ); // enable text selection if ( this.detachEvent ) this.detachEvent("ondragstart", dontStart ); // prevent image dragging in IE... } }; // prevent normal event binding...$special.dragstart = $special.dragend = { setup:function(){}, teardown:function(){} };// handle drag-releatd DOM eventsfunction handler ( event ){ var elem = this, returned, data = event.data || {}; // mousemove or mouseup if ( data.elem ){ // update event properties... elem = event.dragTarget = data.elem; // drag source element event.dragProxy = drag.proxy || elem; // proxy element or source event.cursorOffsetX = data.pageX - data.left; // mousedown offset event.cursorOffsetY = data.pageY - data.top; // mousedown offset event.offsetX = event.pageX - event.cursorOffsetX; // element offset event.offsetY = event.pageY - event.cursorOffsetY; // element offset } // mousedown, check some initial props to avoid the switch statement else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; // handle various events switch ( event.type ){ // mousedown, left click, event.target is not restricted, init dragging case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); // store some initial attributes $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); // disable text selection drag.dragging = null; // pending state return false; // prevents text selection in safari // mousemove, check distance, start dragging case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) // x2 + y2 = distance2 < data.distance ) break; // distance tolerance not reached event.target = data.target; // force target from "mousedown" event (fix distance issue) returned = hijack( event, "dragstart", elem ); // trigger "dragstart", return proxy element if ( returned !== false ){ // "dragstart" not rejected drag.dragging = elem; // activate element drag.proxy = event.dragProxy = $( returned || elem )[0]; // set proxy } // mousemove, dragging case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); // trigger "drag" if ( $special.drop ){ // manage drop events $special.drop.allowed = returned !== false; // prevent drop $special.drop.handler( event ); // "dropstart", "dropend" } if ( returned !== false ) break; // "drag" not rejected, stop event.type = "mouseup"; // helps "drop" handler behave } // mouseup, stop dragging case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); // remove page events if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); // "drop" hijack( event, "dragend", elem ); // trigger "dragend" } selectable( elem, true ); // enable text selection drag.dragging = drag.proxy = data.elem = false; // deactivate element break; } return true; }// set event type to custom value, and handle itfunction hijack ( event, type, elem ){ event.type = type; // force the event type var result = $.event.handle.call( elem, event ); return result===false ? false : result || event.result; } // return the value squared function squared ( value ){ return Math.pow( value, 2 ); }// suppress default dragstart IE events...function dontStart(){ return ( drag.dragging === false ); }// toggles text selection attributes function selectable ( elem, bool ){ if ( !elem ) return; // maybe element was removed ? elem.unselectable = bool ? "off" : "on"; // IE elem.onselectstart = function(){ return bool; }; // IE //if ( document.selection && document.selection.empty ) document.selection.empty(); // IE if ( elem.style ) elem.style.MozUserSelect = bool ? "" : "none"; // FF } /*******************************************************************************************/})( jQuery ); // confine scope
else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; switch ( event.type ){ case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); drag.dragging = null; return false; case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) < data.distance ) break; event.target = data.target; returned = hijack( event, "dragstart", elem ); if ( returned !== false ){ drag.dragging = elem; drag.proxy = event.dragProxy = $( returned || elem )[0]; } case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); if ( $special.drop ){ $special.drop.allowed = returned !== false; $special.drop.handler( event );
else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; switch ( event.type ){ case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); drag.dragging = null; return false; case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) < data.distance ) break; event.target = data.target; returned = hijack( event, "dragstart", elem ); if ( returned !== false ){ drag.dragging = elem; drag.proxy = event.dragProxy = $( returned || elem )[0];
(function($) { // secure $ jQuery alias/*******************************************************************************************/// Created: 2008-06-04 | Updated: 2010-03-24/*******************************************************************************************/// Events: drag, dragstart, dragend/*******************************************************************************************/// jquery method$.fn.drag = function( fn1, fn2, fn3 ){ if ( fn2 ) this.bind('dragstart', fn1 ); // 2+ args if ( fn3 ) this.bind('dragend', fn3 ); // 3 args return !fn1 ? this.trigger('drag') // 0 args : this.bind('drag', fn2 ? fn2 : fn1 ); // 1+ args };// local refsvar $event = $.event, $special = $event.special, drag;// special event configurationdrag = $special.drag = { not: ':input', // don't begin to drag on event.targets that match this selector distance: 0, // distance dragged before dragstart which: 1, // mouse button pressed to start drag sequence dragging: false, // hold the active target element setup: function( data ){ data = $.extend({ distance: drag.distance, which: drag.which, not: drag.not }, data || {}); data.distance = squared( data.distance ); // x2 + y2 = distance2 $event.add( this, "mousedown", handler, data ); if ( this.attachEvent ) this.attachEvent("ondragstart", dontStart ); // prevent image dragging in IE... }, teardown: function(){ $event.remove( this, "mousedown", handler ); if ( this === drag.dragging ) drag.dragging = drag.proxy = false; // deactivate element selectable( this, true ); // enable text selection if ( this.detachEvent ) this.detachEvent("ondragstart", dontStart ); // prevent image dragging in IE... } }; // prevent normal event binding...$special.dragstart = $special.dragend = { setup:function(){}, teardown:function(){} };// handle drag-releatd DOM eventsfunction handler ( event ){ var elem = this, returned, data = event.data || {}; // mousemove or mouseup if ( data.elem ){ // update event properties... elem = event.dragTarget = data.elem; // drag source element event.dragProxy = drag.proxy || elem; // proxy element or source event.cursorOffsetX = data.pageX - data.left; // mousedown offset event.cursorOffsetY = data.pageY - data.top; // mousedown offset event.offsetX = event.pageX - event.cursorOffsetX; // element offset event.offsetY = event.pageY - event.cursorOffsetY; // element offset } // mousedown, check some initial props to avoid the switch statement else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; // handle various events switch ( event.type ){ // mousedown, left click, event.target is not restricted, init dragging case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); // store some initial attributes $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); // disable text selection drag.dragging = null; // pending state return false; // prevents text selection in safari // mousemove, check distance, start dragging case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) // x2 + y2 = distance2 < data.distance ) break; // distance tolerance not reached event.target = data.target; // force target from "mousedown" event (fix distance issue) returned = hijack( event, "dragstart", elem ); // trigger "dragstart", return proxy element if ( returned !== false ){ // "dragstart" not rejected drag.dragging = elem; // activate element drag.proxy = event.dragProxy = $( returned || elem )[0]; // set proxy } // mousemove, dragging case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); // trigger "drag" if ( $special.drop ){ // manage drop events $special.drop.allowed = returned !== false; // prevent drop $special.drop.handler( event ); // "dropstart", "dropend" } if ( returned !== false ) break; // "drag" not rejected, stop event.type = "mouseup"; // helps "drop" handler behave } // mouseup, stop dragging case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); // remove page events if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); // "drop" hijack( event, "dragend", elem ); // trigger "dragend" } selectable( elem, true ); // enable text selection drag.dragging = drag.proxy = data.elem = false; // deactivate element break; } return true; }// set event type to custom value, and handle itfunction hijack ( event, type, elem ){ event.type = type; // force the event type var result = $.event.handle.call( elem, event ); return result===false ? false : result || event.result; } // return the value squared function squared ( value ){ return Math.pow( value, 2 ); }// suppress default dragstart IE events...function dontStart(){ return ( drag.dragging === false ); }// toggles text selection attributes function selectable ( elem, bool ){ if ( !elem ) return; // maybe element was removed ? elem.unselectable = bool ? "off" : "on"; // IE elem.onselectstart = function(){ return bool; }; // IE //if ( document.selection && document.selection.empty ) document.selection.empty(); // IE if ( elem.style ) elem.style.MozUserSelect = bool ? "" : "none"; // FF } /*******************************************************************************************/})( jQuery ); // confine scope
if ( returned !== false ) break; event.type = "mouseup"; } case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); hijack( event, "dragend", elem ); } selectable( elem, true ); drag.dragging = drag.proxy = data.elem = false; break; } return true; } function hijack ( event, type, elem ){ event.type = type; var result = $.event.handle.call( elem, event ); return result===false ? false : result || event.result;
case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); if ( $special.drop ){ $special.drop.allowed = returned !== false; $special.drop.handler( event ); } if ( returned !== false ) break; event.type = "mouseup"; } case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); hijack( event, "dragend", elem ); } selectable( elem, true ); drag.dragging = drag.proxy = data.elem = false; break; } return true;
(function($) { // secure $ jQuery alias/*******************************************************************************************/// Created: 2008-06-04 | Updated: 2010-03-24/*******************************************************************************************/// Events: drag, dragstart, dragend/*******************************************************************************************/// jquery method$.fn.drag = function( fn1, fn2, fn3 ){ if ( fn2 ) this.bind('dragstart', fn1 ); // 2+ args if ( fn3 ) this.bind('dragend', fn3 ); // 3 args return !fn1 ? this.trigger('drag') // 0 args : this.bind('drag', fn2 ? fn2 : fn1 ); // 1+ args };// local refsvar $event = $.event, $special = $event.special, drag;// special event configurationdrag = $special.drag = { not: ':input', // don't begin to drag on event.targets that match this selector distance: 0, // distance dragged before dragstart which: 1, // mouse button pressed to start drag sequence dragging: false, // hold the active target element setup: function( data ){ data = $.extend({ distance: drag.distance, which: drag.which, not: drag.not }, data || {}); data.distance = squared( data.distance ); // x2 + y2 = distance2 $event.add( this, "mousedown", handler, data ); if ( this.attachEvent ) this.attachEvent("ondragstart", dontStart ); // prevent image dragging in IE... }, teardown: function(){ $event.remove( this, "mousedown", handler ); if ( this === drag.dragging ) drag.dragging = drag.proxy = false; // deactivate element selectable( this, true ); // enable text selection if ( this.detachEvent ) this.detachEvent("ondragstart", dontStart ); // prevent image dragging in IE... } }; // prevent normal event binding...$special.dragstart = $special.dragend = { setup:function(){}, teardown:function(){} };// handle drag-releatd DOM eventsfunction handler ( event ){ var elem = this, returned, data = event.data || {}; // mousemove or mouseup if ( data.elem ){ // update event properties... elem = event.dragTarget = data.elem; // drag source element event.dragProxy = drag.proxy || elem; // proxy element or source event.cursorOffsetX = data.pageX - data.left; // mousedown offset event.cursorOffsetY = data.pageY - data.top; // mousedown offset event.offsetX = event.pageX - event.cursorOffsetX; // element offset event.offsetY = event.pageY - event.cursorOffsetY; // element offset } // mousedown, check some initial props to avoid the switch statement else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; // handle various events switch ( event.type ){ // mousedown, left click, event.target is not restricted, init dragging case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); // store some initial attributes $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); // disable text selection drag.dragging = null; // pending state return false; // prevents text selection in safari // mousemove, check distance, start dragging case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) // x2 + y2 = distance2 < data.distance ) break; // distance tolerance not reached event.target = data.target; // force target from "mousedown" event (fix distance issue) returned = hijack( event, "dragstart", elem ); // trigger "dragstart", return proxy element if ( returned !== false ){ // "dragstart" not rejected drag.dragging = elem; // activate element drag.proxy = event.dragProxy = $( returned || elem )[0]; // set proxy } // mousemove, dragging case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); // trigger "drag" if ( $special.drop ){ // manage drop events $special.drop.allowed = returned !== false; // prevent drop $special.drop.handler( event ); // "dropstart", "dropend" } if ( returned !== false ) break; // "drag" not rejected, stop event.type = "mouseup"; // helps "drop" handler behave } // mouseup, stop dragging case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); // remove page events if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); // "drop" hijack( event, "dragend", elem ); // trigger "dragend" } selectable( elem, true ); // enable text selection drag.dragging = drag.proxy = data.elem = false; // deactivate element break; } return true; }// set event type to custom value, and handle itfunction hijack ( event, type, elem ){ event.type = type; // force the event type var result = $.event.handle.call( elem, event ); return result===false ? false : result || event.result; } // return the value squared function squared ( value ){ return Math.pow( value, 2 ); }// suppress default dragstart IE events...function dontStart(){ return ( drag.dragging === false ); }// toggles text selection attributes function selectable ( elem, bool ){ if ( !elem ) return; // maybe element was removed ? elem.unselectable = bool ? "off" : "on"; // IE elem.onselectstart = function(){ return bool; }; // IE //if ( document.selection && document.selection.empty ) document.selection.empty(); // IE if ( elem.style ) elem.style.MozUserSelect = bool ? "" : "none"; // FF } /*******************************************************************************************/})( jQuery ); // confine scope
function squared ( value ){ return Math.pow( value, 2 ); } function dontStart(){ return ( drag.dragging === false ); } function selectable ( elem, bool ){ if ( !elem ) return; elem.unselectable = bool ? "off" : "on"; elem.onselectstart = function(){ return bool; }; if ( elem.style ) elem.style.MozUserSelect = bool ? "" : "none";
function hijack ( event, type, elem ){ event.type = type; var result = $.event.handle.call( elem, event ); return result===false ? false : result || event.result; } function squared ( value ){ return Math.pow( value, 2 ); } function dontStart(){ return ( drag.dragging === false ); } function selectable ( elem, bool ){ if ( !elem ) return; elem.unselectable = bool ? "off" : "on"; elem.onselectstart = function(){ return bool; }; if ( elem.style ) elem.style.MozUserSelect = bool ? "" : "none";
(function($) { // secure $ jQuery alias/*******************************************************************************************/// Created: 2008-06-04 | Updated: 2010-03-24/*******************************************************************************************/// Events: drag, dragstart, dragend/*******************************************************************************************/// jquery method$.fn.drag = function( fn1, fn2, fn3 ){ if ( fn2 ) this.bind('dragstart', fn1 ); // 2+ args if ( fn3 ) this.bind('dragend', fn3 ); // 3 args return !fn1 ? this.trigger('drag') // 0 args : this.bind('drag', fn2 ? fn2 : fn1 ); // 1+ args };// local refsvar $event = $.event, $special = $event.special, drag;// special event configurationdrag = $special.drag = { not: ':input', // don't begin to drag on event.targets that match this selector distance: 0, // distance dragged before dragstart which: 1, // mouse button pressed to start drag sequence dragging: false, // hold the active target element setup: function( data ){ data = $.extend({ distance: drag.distance, which: drag.which, not: drag.not }, data || {}); data.distance = squared( data.distance ); // x2 + y2 = distance2 $event.add( this, "mousedown", handler, data ); if ( this.attachEvent ) this.attachEvent("ondragstart", dontStart ); // prevent image dragging in IE... }, teardown: function(){ $event.remove( this, "mousedown", handler ); if ( this === drag.dragging ) drag.dragging = drag.proxy = false; // deactivate element selectable( this, true ); // enable text selection if ( this.detachEvent ) this.detachEvent("ondragstart", dontStart ); // prevent image dragging in IE... } }; // prevent normal event binding...$special.dragstart = $special.dragend = { setup:function(){}, teardown:function(){} };// handle drag-releatd DOM eventsfunction handler ( event ){ var elem = this, returned, data = event.data || {}; // mousemove or mouseup if ( data.elem ){ // update event properties... elem = event.dragTarget = data.elem; // drag source element event.dragProxy = drag.proxy || elem; // proxy element or source event.cursorOffsetX = data.pageX - data.left; // mousedown offset event.cursorOffsetY = data.pageY - data.top; // mousedown offset event.offsetX = event.pageX - event.cursorOffsetX; // element offset event.offsetY = event.pageY - event.cursorOffsetY; // element offset } // mousedown, check some initial props to avoid the switch statement else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; // handle various events switch ( event.type ){ // mousedown, left click, event.target is not restricted, init dragging case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); // store some initial attributes $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); // disable text selection drag.dragging = null; // pending state return false; // prevents text selection in safari // mousemove, check distance, start dragging case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) // x2 + y2 = distance2 < data.distance ) break; // distance tolerance not reached event.target = data.target; // force target from "mousedown" event (fix distance issue) returned = hijack( event, "dragstart", elem ); // trigger "dragstart", return proxy element if ( returned !== false ){ // "dragstart" not rejected drag.dragging = elem; // activate element drag.proxy = event.dragProxy = $( returned || elem )[0]; // set proxy } // mousemove, dragging case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); // trigger "drag" if ( $special.drop ){ // manage drop events $special.drop.allowed = returned !== false; // prevent drop $special.drop.handler( event ); // "dropstart", "dropend" } if ( returned !== false ) break; // "drag" not rejected, stop event.type = "mouseup"; // helps "drop" handler behave } // mouseup, stop dragging case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); // remove page events if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); // "drop" hijack( event, "dragend", elem ); // trigger "dragend" } selectable( elem, true ); // enable text selection drag.dragging = drag.proxy = data.elem = false; // deactivate element break; } return true; }// set event type to custom value, and handle itfunction hijack ( event, type, elem ){ event.type = type; // force the event type var result = $.event.handle.call( elem, event ); return result===false ? false : result || event.result; } // return the value squared function squared ( value ){ return Math.pow( value, 2 ); }// suppress default dragstart IE events...function dontStart(){ return ( drag.dragging === false ); }// toggles text selection attributes function selectable ( elem, bool ){ if ( !elem ) return; // maybe element was removed ? elem.unselectable = bool ? "off" : "on"; // IE elem.onselectstart = function(){ return bool; }; // IE //if ( document.selection && document.selection.empty ) document.selection.empty(); // IE if ( elem.style ) elem.style.MozUserSelect = bool ? "" : "none"; // FF } /*******************************************************************************************/})( jQuery ); // confine scope
WT_DECLARE_WT_MEMBER(1,"WDialog",function(g,b){function k(a){var c=a||window.event;a=d.pageCoordinates(c);c=d.windowCoordinates(c);var e=d.windowSize();if(c.x>0&&c.x<e.x&&c.y>0&&c.y<e.y){j=true;b.style.left=d.pxself(b,"left")+a.x-h+"px";b.style.top=d.pxself(b,"top")+a.y-i+"px";h=a.x;i=a.y}}jQuery.data(b,"obj",this);var l=this,f=$(b).find(".titlebar").first().get(0),d=g.WT,h,i,j=false;if(f){f.onmousedown=function(a){a=a||window.event;d.capture(f);a=d.pageCoordinates(a);h=a.x;i=a.y;f.onmousemove=k}; f.onmouseup=function(){f.onmousemove=null;d.capture(null)}}this.centerDialog=function(){if(b.parentNode==null){b=f=null;this.centerDialog=function(){}}else if(b.style.display!="none"){if(!j){var a=d.windowSize(),c=b.offsetWidth,e=b.offsetHeight;b.style.left=Math.round((a.x-c)/2+(d.isIE6?document.documentElement.scrollLeft:0))+"px";b.style.top=Math.round((a.y-e)/2+(d.isIE6?document.documentElement.scrollTop:0))+"px";b.style.marginLeft="0px";b.style.marginTop="0px";b.style.width!=null&&b.style.height!= null&&l.wtResize(b,c,e)}b.style.visibility="visible"}};this.wtResize=function(a,c,e){e-=2;c-=2;a.style.height=e+"px";a.style.width=c+"px";a=a.lastChild;e-=a.previousSibling.offsetHeight+8;if(e>0){a.style.height=e+"px";g.layouts&&g.layouts.adjust()}}});
WT_DECLARE_WT_MEMBER(1,"WDialog",function(g,b){function k(a){var c=a||window.event;a=d.pageCoordinates(c);c=d.windowCoordinates(c);var e=d.windowSize();if(c.x>0&&c.x<e.x&&c.y>0&&c.y<e.y){h=true;b.style.left=d.pxself(b,"left")+a.x-i+"px";b.style.top=d.pxself(b,"top")+a.y-j+"px";i=a.x;j=a.y}}jQuery.data(b,"obj",this);var l=this,f=$(b).find(".titlebar").first().get(0),d=g.WT,i,j,h=false;if(b.style.left!=""||b.style.top!="")h=true;if(f){f.onmousedown=function(a){a=a||window.event;d.capture(f);a=d.pageCoordinates(a); i=a.x;j=a.y;f.onmousemove=k};f.onmouseup=function(){f.onmousemove=null;d.capture(null)}}this.centerDialog=function(){if(b.parentNode==null){b=f=null;this.centerDialog=function(){}}else if(b.style.display!="none"){if(!h){var a=d.windowSize(),c=b.offsetWidth,e=b.offsetHeight;b.style.left=Math.round((a.x-c)/2+(d.isIE6?document.documentElement.scrollLeft:0))+"px";b.style.top=Math.round((a.y-e)/2+(d.isIE6?document.documentElement.scrollTop:0))+"px";b.style.marginLeft="0px";b.style.marginTop="0px";b.style.width!= ""&&b.style.height!=""&&l.wtResize(b,c,e)}b.style.visibility="visible"}};this.wtResize=function(a,c,e){e-=2;c-=2;a.style.height=e+"px";a.style.width=c+"px";a=a.lastChild;e-=a.previousSibling.offsetHeight+8;if(e>0){a.style.height=e+"px";g.layouts&&g.layouts.adjust()}}});
WT_DECLARE_WT_MEMBER(1,"WDialog",function(g,b){function k(a){var c=a||window.event;a=d.pageCoordinates(c);c=d.windowCoordinates(c);var e=d.windowSize();if(c.x>0&&c.x<e.x&&c.y>0&&c.y<e.y){j=true;b.style.left=d.pxself(b,"left")+a.x-h+"px";b.style.top=d.pxself(b,"top")+a.y-i+"px";h=a.x;i=a.y}}jQuery.data(b,"obj",this);var l=this,f=$(b).find(".titlebar").first().get(0),d=g.WT,h,i,j=false;if(f){f.onmousedown=function(a){a=a||window.event;d.capture(f);a=d.pageCoordinates(a);h=a.x;i=a.y;f.onmousemove=k};f.onmouseup=function(){f.onmousemove=null;d.capture(null)}}this.centerDialog=function(){if(b.parentNode==null){b=f=null;this.centerDialog=function(){}}else if(b.style.display!="none"){if(!j){var a=d.windowSize(),c=b.offsetWidth,e=b.offsetHeight;b.style.left=Math.round((a.x-c)/2+(d.isIE6?document.documentElement.scrollLeft:0))+"px";b.style.top=Math.round((a.y-e)/2+(d.isIE6?document.documentElement.scrollTop:0))+"px";b.style.marginLeft="0px";b.style.marginTop="0px";b.style.width!=null&&b.style.height!=null&&l.wtResize(b,c,e)}b.style.visibility="visible"}};this.wtResize=function(a,c,e){e-=2;c-=2;a.style.height=e+"px";a.style.width=c+"px";a=a.lastChild;e-=a.previousSibling.offsetHeight+8;if(e>0){a.style.height=e+"px";g.layouts&&g.layouts.adjust()}}});
WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(c,j,e,m,p,q,r,s,g,h,i,k,l){function n(b){b=b.changedTouches?{x:b.changedTouches[0].pageX,y:b.changedTouches[0].pageY}:c.pageCoordinates(b);return Math.min(Math.max(j=="h"?b.x-f.x-d.x:b.y-f.y-d.y,p),q)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(j=="v"){a.style.width=m+"px";a.style.height=e+"px"}else{a.style.height=m+"px";a.style.width=e+"px"}var f,d=c.widgetPageCoordinates(g);e=c.widgetPageCoordinates(h);if(i.touches)f= c.widgetCoordinates(g,i.touches[0]);else{f=c.widgetCoordinates(g,i);c.capture(null);c.capture(a)}k-=c.px(g,"marginLeft");l-=c.px(g,"marginTop");d.x+=k-e.x;d.y+=l-e.y;f.x-=k-e.x;f.y-=l-e.y;a.style.left=d.x+"px";a.style.top=d.y+"px";a.className=r;h.appendChild(a);c.cancelEvent(i);a.onmousemove=h.ontouchmove=function(b){var o=n(b);if(j=="h")a.style.left=d.x+o+"px";else a.style.top=d.y+o+"px";c.cancelEvent(b)};a.onmouseup=h.ontouchend=function(b){if(a.parentNode!=null){a.parentNode.removeChild(a);s(n(b)); h.ontouchmove=null}}});
WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(b,j,e,m,p,q,r,s,g,h,i,k,l){function n(c){c=!b.isIE&&c.changedTouches?{x:c.changedTouches[0].pageX,y:c.changedTouches[0].pageY}:b.pageCoordinates(c);return Math.min(Math.max(j=="h"?c.x-f.x-d.x:c.y-f.y-d.y,p),q)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(j=="v"){a.style.width=m+"px";a.style.height=e+"px"}else{a.style.height=m+"px";a.style.width=e+"px"}var f,d=b.widgetPageCoordinates(g);e=b.widgetPageCoordinates(h); if(i.touches)f=b.widgetCoordinates(g,i.touches[0]);else{f=b.widgetCoordinates(g,i);b.capture(null);b.capture(a)}k-=b.px(g,"marginLeft");l-=b.px(g,"marginTop");d.x+=k-e.x;d.y+=l-e.y;f.x-=k-e.x;f.y-=l-e.y;a.style.left=d.x+"px";a.style.top=d.y+"px";a.className=r;h.appendChild(a);b.cancelEvent(i);a.onmousemove=h.ontouchmove=function(c){var o=n(c);if(j=="h")a.style.left=d.x+o+"px";else a.style.top=d.y+o+"px";b.cancelEvent(c)};a.onmouseup=h.ontouchend=function(c){if(a.parentNode!=null){a.parentNode.removeChild(a); s(n(c));h.ontouchmove=null}}});
WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(c,j,e,m,p,q,r,s,g,h,i,k,l){function n(b){b=b.changedTouches?{x:b.changedTouches[0].pageX,y:b.changedTouches[0].pageY}:c.pageCoordinates(b);return Math.min(Math.max(j=="h"?b.x-f.x-d.x:b.y-f.y-d.y,p),q)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(j=="v"){a.style.width=m+"px";a.style.height=e+"px"}else{a.style.height=m+"px";a.style.width=e+"px"}var f,d=c.widgetPageCoordinates(g);e=c.widgetPageCoordinates(h);if(i.touches)f=c.widgetCoordinates(g,i.touches[0]);else{f=c.widgetCoordinates(g,i);c.capture(null);c.capture(a)}k-=c.px(g,"marginLeft");l-=c.px(g,"marginTop");d.x+=k-e.x;d.y+=l-e.y;f.x-=k-e.x;f.y-=l-e.y;a.style.left=d.x+"px";a.style.top=d.y+"px";a.className=r;h.appendChild(a);c.cancelEvent(i);a.onmousemove=h.ontouchmove=function(b){var o=n(b);if(j=="h")a.style.left=d.x+o+"px";else a.style.top=d.y+o+"px";c.cancelEvent(b)};a.onmouseup=h.ontouchend=function(b){if(a.parentNode!=null){a.parentNode.removeChild(a);s(n(b));h.ontouchmove=null}}});
history: false, keyboard: false
history: false
(function($) { var t = $.tools.scrollable; t.navigator = { conf: { navi: '.navi', naviItem: null, activeClass: 'active', indexed: false, idPrefix: null, // 1.2 history: false, keyboard: false } }; // jQuery plugin implementation $.fn.navigator = function(conf) { // configuration if (typeof conf == 'string') { conf = {navi: conf}; } conf = $.extend({}, t.navigator.conf, conf); var ret; this.each(function() { var api = $(this).data("scrollable"), navi = api.getRoot().parent().find(conf.navi), buttons = api.getNaviButtons(), cls = conf.activeClass, history = conf.history && $.fn.history; // @deprecated stuff if (api) { ret = api; } api.getNaviButtons = function() { return buttons.add(navi); }; function doClick(el, i, e) { api.seekTo(i); if (history) { location.hash = el.attr("href").replace("#", ""); } else { return e.preventDefault(); } } function els() { return navi.find(conf.naviItem || '> *'); } function addItem(i) { var item = $("<" + (conf.naviItem || 'a') + "/>").click(function(e) { doClick($(this), i, e); }).attr("href", "#" + i); // index number / id attribute if (i === 0) { item.addClass(cls); } if (conf.indexed) { item.text(i + 1); } if (conf.idPrefix) { item.attr("id", conf.idPrefix + i); } return item.appendTo(navi); } // generate navigator if (els().length) { els().each(function(i) { $(this).click(function(e) { doClick($(this), i, e); }); }); } else { $.each(api.getItems(), function(i) { addItem(i); }); } // activate correct entry api.onBeforeSeek(function(e, index) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } }); function doHistory(evt, hash) { var el = els().eq(hash.replace("#", "")); if (!el.length) { el = els().filter("[href=" + hash + "]"); } el.click(); } // new item being added api.onAddItem(function(e, item) { var item = addItem(api.getItems().index(item)); if (history) { item.history(doHistory); } }); if (history) { els().history(doHistory); } }); return conf.api ? ret : this; }; })(jQuery);
a.pxself(v,"width")!=p)v.style.width=p+"px"}++b}}return true};this.contains=function(b){var c=a.getElement(t);b=a.getElement(b.getId());return a.contains(c,b)};this.adjust()});
a.pxself(v,"width")!=p)v.style.width=p+"px"}++b}}return true};this.contains=function(b){var c=a.getElement(t);b=a.getElement(b.getId());return c&&b?a.contains(c,b):false};this.adjust()});
WT_DECLARE_WT_MEMBER(1,"StdLayout",function(a,t,h){var o=this;this.getId=function(){return t};this.WT=a;this.marginH=function(b){var c=b.parentNode,f=a.px(b,"marginLeft");f+=a.px(b,"marginRight");f+=a.px(b,"borderLeftWidth");f+=a.px(b,"borderRightWidth");f+=a.px(b,"paddingLeft");f+=a.px(b,"paddingRight");f+=a.pxself(c,"paddingLeft");f+=a.pxself(c,"paddingRight");return f};this.marginV=function(b){var c=a.px(b,"marginTop");c+=a.px(b,"marginBottom");c+=a.px(b,"borderTopWidth");c+=a.px(b,"borderBottomWidth");c+=a.px(b,"paddingTop");c+=a.px(b,"paddingBottom");return c};this.getColumn=function(b){var c,f,i,d=a.getElement(t).firstChild.childNodes;f=c=0;for(i=d.length;f<i;f++){var k=d[f];if(a.hasTag(k,"COLGROUP")){f=-1;d=k.childNodes;i=d.length}if(a.hasTag(k,"COL"))if(k.className!="Wt-vrh")if(c==b)return k;else++c}return null};this.adjustCell=function(b,c,f){var i=c==0;c-=a.pxself(b,"paddingTop");c-=a.pxself(b,"paddingBottom");if(c<=0)c=0;b.style.height=c+"px";if(!(b.style.verticalAlign||b.childNodes.length==0)){var d=b.childNodes[0];if(c<=0)c=0;if(d.className=="Wt-hcenter"){d.style.height=c+"px";d=d.firstChild.firstChild;if(!a.hasTag(d,"TD"))d=d.firstChild;if(d.style.height!=c+"px")d.style.height=c+"px";d=d.firstChild}if(b.childNodes.length==1)c-=this.marginV(d);if(c<=0)c=0;if(!a.hasTag(d,"TABLE"))if(!i&&d.wtResize){b=d.parentNode.offsetWidth-o.marginH(d);if(f!=-1&&o.getColumn(f).style.width!=""){d.style.position="absolute";d.style.width=b+"px"}d.wtResize(d,b,c)}else if(d.style.height!=c+"px"){d.style.height=c+"px";if(d.className=="Wt-wrapdiv")if(a.isIE&&a.hasTag(d.firstChild,"TEXTAREA"))d.firstChild.style.height=c-a.pxself(d,"marginBottom")+"px"}}};this.adjustRow=function(b,c){var f=[];if(b.style.height!=c+"px")b.style.height=c+"px";b=b.childNodes;var i,d,k,g;i=0;g=-1;for(d=b.length;i<d;++i){k=b[i];k.className!="Wt-vrh"&&++g;if(k.rowSpan!=1){this.adjustCell(k,0,-1);f.push(k)}else this.adjustCell(k,c,-1)}return f};this.adjust=function(){var b=a.getElement(t);if(!b)return false;o.initResize&&o.initResize(a,t,h);if(a.isHidden(b))return true;var c=b.firstChild,f=b.parentNode;if(c.style.height!="")c.style.height="";if(!(b.dirty||c.w!=f.clientWidth||c.h!=f.clientHeight))return true;b.dirty=null;var i=a.pxself(f,"height");if(i==0){i=f.clientHeight;i-=a.px(f,"paddingTop");i-=a.px(f,"paddingBottom")}i-=a.px(b,"marginTop");i-=a.px(b,"marginBottom");var d,k;if(f.children){d=0;for(k=f.children.length;d<k;++d){var g=f.children[d];if(g!=b)i-=$(g).outerHeight()}}var p=b=0,l,s;l=d=0;for(k=c.rows.length;d<k;d++){g=c.rows[d];if(g.className=="Wt-hrh")i-=g.offsetHeight;else{p+=h.minheight[l];if(h.stretch[l]<=0)i-=g.offsetHeight;else b+=h.stretch[l];++l}}i=i>p?i:p;p=[];if(b!=0&&i>0){s=i;var q;l=d=0;for(k=c.rows.length;d<k;d++)if(c.rows[d].className!="Wt-hrh"){g=c.rows[d];if(h.stretch[l]!=0){if(h.stretch[l]!=-1){q=i*h.stretch[l]/b;q=s>q?q:s;q=Math.round(h.minheight[l]>q?h.minheight[l]:q);s-=q}else q=g.offsetHeight;a.addAll(p,this.adjustRow(g,q))}++l}}d=0;for(k=p.length;d<k;++d){g=p[d];this.adjustCell(g,g.offsetHeight,v)}c.w=f.clientWidth;c.h=f.clientHeight;if(c.style.tableLayout!="fixed")return true;b=0;l=c.childNodes;f=0;for(i=l.length;f<i;f++){var v=l[f],A,z;if(a.hasTag(v,"COLGROUP")){f=-1;l=v.childNodes;i=l.length}if(a.hasTag(v,"COL")){if(a.pctself(v,"width")==0){d=p=0;for(k=c.rows.length;d<k;d++){g=c.rows[d];s=g.childNodes;A=q=0;for(z=s.length;A<z;A++){g=s[A];if(g.colSpan==1&&q==b&&g.childNodes.length==1){g=g.firstChild;g=g.offsetWidth+o.marginH(g);p=Math.max(p,g);break}q+=g.colSpan;if(q>b)break}}if(p>0&&a.pxself(v,"width")!=p)v.style.width=p+"px"}++b}}return true};this.contains=function(b){var c=a.getElement(t);b=a.getElement(b.getId());return a.contains(c,b)};this.adjust()});
var tgt = e.target; if(tgt.form) tgt = tgt.form; id = 'plugin_include__' + tgt.id.value; var divs = getElementsByClass('plugin_include_content'); for(var j=0; j<divs.length; j++) { if(divs[j].id == id) { divs[j].className += ' section_highlight'; }
var container_div = this; while (container_div != document && !container_div.className.match(/\bplugin_include_content\b/)) { container_div = container_div.parentNode; } if (container_div != document) { container_div.className += ' section_highlight';
addInitEvent(function(){ var btns = getElementsByClass('btn_incledit',document,'form'); for(var i=0; i<btns.length; i++){ addEvent(btns[i],'mouseover',function(e){ var tgt = e.target; if(tgt.form) tgt = tgt.form; id = 'plugin_include__' + tgt.id.value; var divs = getElementsByClass('plugin_include_content'); for(var j=0; j<divs.length; j++) { if(divs[j].id == id) { divs[j].className += ' section_highlight'; } } }); addEvent(btns[i],'mouseout',function(e){ var secs = getElementsByClass('section_highlight',document,'div'); for(var j=0; j<secs.length; j++){ secs[j].className = secs[j].className.replace(/ section_highlight/,''); } }); }});
moved = true; el.style.left = (WT.pxself(el, 'left') + nowxy.x - dsx) + 'px'; el.style.top = (WT.pxself(el, 'top') + nowxy.y - dsy) + 'px'; dsx = nowxy.x; dsy = nowxy.y;
var wxy = WT.windowCoordinates(e); var wsize = WT.windowSize(); if (wxy.x > 0 && wxy.x < wsize.x && wxy.y > 0 && wxy.y < wsize.y) { moved = true; el.style.left = (WT.pxself(el, 'left') + nowxy.x - dsx) + 'px'; el.style.top = (WT.pxself(el, 'top') + nowxy.y - dsy) + 'px'; dsx = nowxy.x; dsy = nowxy.y; }
function(APP, el) { jQuery.data(el, 'obj', this); var self = this; var titlebar = $(el).find(".titlebar").first().get(0); var WT = APP.WT; var dsx, dsy; var moved = false; function handleMove(event) { var e = event||window.event; var nowxy = WT.pageCoordinates(e); moved = true; el.style.left = (WT.pxself(el, 'left') + nowxy.x - dsx) + 'px'; el.style.top = (WT.pxself(el, 'top') + nowxy.y - dsy) + 'px'; dsx = nowxy.x; dsy = nowxy.y; }; if (titlebar) { titlebar.onmousedown = function(event) { var e = event||window.event; WT.capture(titlebar); var pc = WT.pageCoordinates(e); dsx = pc.x; dsy = pc.y; titlebar.onmousemove = handleMove; }; titlebar.onmouseup = function(event) { titlebar.onmousemove = null; WT.capture(null); }; } this.centerDialog = function() { if (el.parentNode == null) { el = titlebar = null; this.centerDialog = function() { }; return; } if (el.style.display != 'none') { if (!moved) { var ws = WT.windowSize(); var w = el.offsetWidth, h = el.offsetHeight; el.style.left = Math.round((ws.x - w)/2 + (WT.isIE6 ? document.documentElement.scrollLeft : 0)) + 'px'; el.style.top = Math.round((ws.y - h)/2 + (WT.isIE6 ? document.documentElement.scrollTop : 0)) + 'px'; el.style.marginLeft='0px'; el.style.marginTop='0px'; if (el.style.width != null && el.style.height != null) self.wtResize(el, w, h); } el.style.visibility = 'visible'; } }; this.wtResize = function(self, w, h) { h -= 2; w -= 2; // 2 = dialog border self.style.height= h + 'px'; self.style.width= w + 'px'; var c = self.lastChild; var t = c.previousSibling; h -= t.offsetHeight + 8; // 8 = body padding if (h > 0) { c.style.height = h + 'px'; if (APP.layoutsAdjust) APP.layoutsAdjust(); } }; });
(function(){var v="http: function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function t(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function C(a){return a.replace(/\&/g, "&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(a,b,d,c){return t(a.getElementsByTagNameNS)?a.getElementsByTagNameNS(b,c):d?a.getElementsByTagName(d+":"+c):a.getElementsByTagName(c)}function D(a,b,d,c){return t(a.getAttributeNS)?a.getAttributeNS(b,c):d?a.getAttribute(d+":"+c):a.getAttribute(c)}function u(a,b,d,c){c||(c="");var e="\n"+c+"<"+a+">";if(d){var f;e+="\n"+c+" <"+b+">";for(var g in d)if(d.hasOwnProperty(g)){f=d[g];e+="\n"+c+" <"+g+">";if(typeof f==="array")for(var i,o=0,s= f.length;o<s;o++){i=f[o];e+="<Value>"+C(i)+"</Value>"}else e+=C(f);e+="</"+g+">"}e+="\n"+c+" </"+b+">"}e+="\n"+c+"</"+a+">";return e}var E="RequestType";function Q(a){var b="",d=a.method;b+="\n<"+n+":Envelope "+F+" "+x+">\n <"+n+":Body>\n <"+d+" "+G+" "+x+">";var c=null;switch(d){case Xmla.METHOD_DISCOVER:if(j(a.requestType))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <"+E+">"+a.requestType+"</"+E+">"+u("Restrictions","RestrictionList",a.restrictions, " ")+u("Properties","PropertyList",a.properties," ");break;case Xmla.METHOD_EXECUTE:if(j(a.statement))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <Command>\n <Statement>"+a.statement+"</Statement>\n </Command>"+u("Properties","PropertyList",a.properties," ");break;default:}c!==null&&c._throw();b+="\n </"+d+">\n </"+n+":Body>\n</"+n+":Envelope>";return b}function h(a,b,d){if(b&&!a)a={};for(var c in b)if(b.hasOwnProperty(c))if(d||j(a[c]))a[c]= b[c];return a}Xmla=function(a){this.listeners={};this.listeners[Xmla.EVENT_REQUEST]=[];this.listeners[Xmla.EVENT_SUCCESS]=[];this.listeners[Xmla.EVENT_ERROR]=[];this.listeners[Xmla.EVENT_DISCOVER]=[];this.listeners[Xmla.EVENT_DISCOVER_SUCCESS]=[];this.listeners[Xmla.EVENT_DISCOVER_ERROR]=[];this.listeners[Xmla.EVENT_EXECUTE]=[];this.listeners[Xmla.EVENT_EXECUTE_SUCCESS]=[];this.listeners[Xmla.EVENT_EXECUTE_ERROR]=[];this.options=h(h({},Xmla.defaultOptions,true),a,true);return this};Xmla.defaultOptions= {requestTimeout:30000,async:false};Xmla.METHOD_DISCOVER="Discover";Xmla.METHOD_EXECUTE="Execute";var p="DISCOVER_",k="MDSCHEMA_",q="DBSCHEMA_";Xmla.DISCOVER_DATASOURCES=p+"DATASOURCES";Xmla.DISCOVER_PROPERTIES=p+"PROPERTIES";Xmla.DISCOVER_SCHEMA_ROWSETS=p+"SCHEMA_ROWSETS";Xmla.DISCOVER_ENUMERATORS=p+"ENUMERATORS";Xmla.DISCOVER_KEYWORDS=p+"KEYWORDS";Xmla.DISCOVER_LITERALS=p+"LITERALS";Xmla.DBSCHEMA_CATALOGS=q+"CATALOGS";Xmla.DBSCHEMA_COLUMNS=q+"COLUMNS";Xmla.DBSCHEMA_PROVIDER_TYPES=q+"PROVIDER_TYPES"; Xmla.DBSCHEMA_SCHEMATA=q+"SCHEMATA";Xmla.DBSCHEMA_TABLES=q+"TABLES";Xmla.DBSCHEMA_TABLES_INFO=q+"TABLES_INFO";Xmla.MDSCHEMA_ACTIONS=k+"ACTIONS";Xmla.MDSCHEMA_CUBES=k+"CUBES";Xmla.MDSCHEMA_DIMENSIONS=k+"DIMENSIONS";Xmla.MDSCHEMA_FUNCTIONS=k+"FUNCTIONS";Xmla.MDSCHEMA_HIERARCHIES=k+"HIERARCHIES";Xmla.MDSCHEMA_LEVELS=k+"LEVELS";Xmla.MDSCHEMA_MEASURES=k+"MEASURES";Xmla.MDSCHEMA_MEMBERS=k+"MEMBERS";Xmla.MDSCHEMA_PROPERTIES=k+"PROPERTIES";Xmla.MDSCHEMA_SETS=k+"SETS";Xmla.EVENT_REQUEST="request";Xmla.EVENT_SUCCESS= "success";Xmla.EVENT_ERROR="error";Xmla.EVENT_EXECUTE="execute";Xmla.EVENT_EXECUTE_SUCCESS="executesuccess";Xmla.EVENT_EXECUTE_ERROR="executeerror";Xmla.EVENT_DISCOVER="discover";Xmla.EVENT_DISCOVER_SUCCESS="discoversuccess";Xmla.EVENT_DISCOVER_ERROR="discovererror";Xmla.EVENT_GENERAL=[Xmla.EVENT_REQUEST,Xmla.EVENT_SUCCESS,Xmla.EVENT_ERROR];Xmla.EVENT_DISCOVER_ALL=[Xmla.EVENT_DISCOVER,Xmla.EVENT_DISCOVER_SUCCESS,Xmla.EVENT_DISCOVER_ERROR];Xmla.EVENT_EXECUTE_ALL=[Xmla.EVENT_EXECUTE,Xmla.EVENT_EXECUTE_SUCCESS, Xmla.EVENT_EXECUTE_ERROR];Xmla.EVENT_ALL=[].concat(Xmla.EVENT_GENERAL,Xmla.EVENT_DISCOVER_ALL,Xmla.EVENT_EXECUTE_ALL);Xmla.PROP_DATASOURCEINFO="DataSourceInfo";Xmla.PROP_CATALOG="Catalog";Xmla.PROP_CUBE="Cube";Xmla.PROP_FORMAT="Format";Xmla.PROP_FORMAT_TABULAR="Tabular";Xmla.PROP_FORMAT_MULTIDIMENSIONAL="Multidimensional";Xmla.PROP_AXISFORMAT="AxisFormat";Xmla.PROP_AXISFORMAT_TUPLE="TupleFormat";Xmla.PROP_AXISFORMAT_CLUSTER="ClusterFormat";Xmla.PROP_AXISFORMAT_CUSTOM="CustomFormat";Xmla.PROP_CONTENT= "Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=a.events;j(b)&&Xmla.Exception._newError("NO_EVENTS_SPECIFIED","Xmla.addListener",a)._throw();if(N(b))b=b==="all"?Xmla.EVENT_ALL:b.split(",");b instanceof Array||Xmla.Exception._newError("WRONG_EVENTS_FORMAT", "Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e++){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(t(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw();var e=c.length,f=true;if(e)for(var g,i=0;i<e;i++){g= c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);ex._throw()}a.properties=h(a.properties,this.options.properties,false);a.restrictions=h(a.restrictions,this.options.restrictions,false);a.async=j(a.async)? this.options.async:a.async;a.requestTimeout=j(a.requestTimeout)?this.options.requestTimeout:a.requestTimeout;var d=Q(a);this.soapMessage=d;d={async:a.async,timeout:a.requestTimeout,data:d,error:function(){a.exception=exeception;b._requestError(a)},complete:function(c){a.xhr=c;b._requestSuccess(a)},url:a.url};if(a.username)d.username=a.username;if(a.password)d.password=a.password;if(this._fireEvent(Xmla.EVENT_REQUEST,a,true)&&(a.method==Xmla.METHOD_DISCOVER&&this._fireEvent(Xmla.EVENT_DISCOVER,a)|| a.method==Xmla.METHOD_EXECUTE&&this._fireEvent(Xmla.EVENT_EXECUTE,a)))d=M(d);return this.response},_requestError:function(a){this._fireEvent("error",a)},_requestSuccess:function(a){var b=a.xhr;this.responseXML=b.responseXML;this.responseText=b.responseText;b=a.method;var d=m(this.responseXML,w,n,"Fault");if(d.length){d=d.item(0);a.exception=new Xmla.Exception(Xmla.Exception.TYPE_ERROR,d.getElementsByTagName("faultcode").item(0).childNodes.item(0).data,d.getElementsByTagName("faultstring").item(0).childNodes.item(0).data,
(function(){var u="http: a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b=K?new ActiveXObject("MSXML2.XMLHTTP.3.0"):new XMLHttpRequest;b.open("POST",a.url,a.async);b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function M(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function B(a){return a.replace(/\&/g, "&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var o=document.getElementsByTagNameNS?function(a,b,d,c){return a.getElementsByTagNameNS(b,c)}:function(a,b,d,c){return d?a.getElementsByTagName(d+":"+c):a.getElementsByTagName(c)},C=document.documentElement.getAttributeNS?function(a,b,d,c){return a.getAttributeNS(b,c)}:function(a,b,d,c){return d?a.getAttribute(d+":"+c):a.getAttribute(c)};function t(a,b,d,c){c||(c="");var e,h,f,i,n,k="\n"+c+"<"+a+">";if(d){k+="\n"+c+" <"+b+">";for(i in d)if(d.hasOwnProperty(i)){n= d[i];k+="\n"+c+" <"+i+">";if(typeof n==="array"){h=0;for(e=n.length;h<e;h+=1){f=n[h];k+="<Value>"+B(f)+"</Value>"}}else k+=B(n);k+="</"+i+">"}k+="\n"+c+" </"+b+">"}k+="\n"+c+"</"+a+">";return k}var D="RequestType";function Q(a){var b="",d=a.method,c=null;b+="\n<"+p+":Envelope "+E+" "+w+">\n <"+p+":Body>\n <"+d+" "+F+" "+w+">";switch(d){case Xmla.METHOD_DISCOVER:if(j(a.requestType))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <"+D+">"+a.requestType+ "</"+D+">"+t("Restrictions","RestrictionList",a.restrictions," ")+t("Properties","PropertyList",a.properties," ");break;case Xmla.METHOD_EXECUTE:if(j(a.statement))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <Command>\n <Statement>"+a.statement+"</Statement>\n </Command>"+t("Properties","PropertyList",a.properties," ");break;default:}c!==null&&c._throw();b+="\n </"+d+">\n </"+p+":Body>\n</"+p+":Envelope>";return b}function g(a,b,d){if(b&& !a)a={};for(var c in b)if(b.hasOwnProperty(c))if(d||j(a[c]))a[c]=b[c];return a}Xmla=function(a){this.listeners={};this.listeners[Xmla.EVENT_REQUEST]=[];this.listeners[Xmla.EVENT_SUCCESS]=[];this.listeners[Xmla.EVENT_ERROR]=[];this.listeners[Xmla.EVENT_DISCOVER]=[];this.listeners[Xmla.EVENT_DISCOVER_SUCCESS]=[];this.listeners[Xmla.EVENT_DISCOVER_ERROR]=[];this.listeners[Xmla.EVENT_EXECUTE]=[];this.listeners[Xmla.EVENT_EXECUTE_SUCCESS]=[];this.listeners[Xmla.EVENT_EXECUTE_ERROR]=[];this.options=g(g({}, Xmla.defaultOptions,true),a,true);return this};Xmla.defaultOptions={requestTimeout:30000,async:false};Xmla.METHOD_DISCOVER="Discover";Xmla.METHOD_EXECUTE="Execute";var q="DISCOVER_",l="MDSCHEMA_",r="DBSCHEMA_";Xmla.DISCOVER_DATASOURCES=q+"DATASOURCES";Xmla.DISCOVER_PROPERTIES=q+"PROPERTIES";Xmla.DISCOVER_SCHEMA_ROWSETS=q+"SCHEMA_ROWSETS";Xmla.DISCOVER_ENUMERATORS=q+"ENUMERATORS";Xmla.DISCOVER_KEYWORDS=q+"KEYWORDS";Xmla.DISCOVER_LITERALS=q+"LITERALS";Xmla.DBSCHEMA_CATALOGS=r+"CATALOGS";Xmla.DBSCHEMA_COLUMNS= r+"COLUMNS";Xmla.DBSCHEMA_PROVIDER_TYPES=r+"PROVIDER_TYPES";Xmla.DBSCHEMA_SCHEMATA=r+"SCHEMATA";Xmla.DBSCHEMA_TABLES=r+"TABLES";Xmla.DBSCHEMA_TABLES_INFO=r+"TABLES_INFO";Xmla.MDSCHEMA_ACTIONS=l+"ACTIONS";Xmla.MDSCHEMA_CUBES=l+"CUBES";Xmla.MDSCHEMA_DIMENSIONS=l+"DIMENSIONS";Xmla.MDSCHEMA_FUNCTIONS=l+"FUNCTIONS";Xmla.MDSCHEMA_HIERARCHIES=l+"HIERARCHIES";Xmla.MDSCHEMA_LEVELS=l+"LEVELS";Xmla.MDSCHEMA_MEASURES=l+"MEASURES";Xmla.MDSCHEMA_MEMBERS=l+"MEMBERS";Xmla.MDSCHEMA_PROPERTIES=l+"PROPERTIES";Xmla.MDSCHEMA_SETS= l+"SETS";Xmla.EVENT_REQUEST="request";Xmla.EVENT_SUCCESS="success";Xmla.EVENT_ERROR="error";Xmla.EVENT_EXECUTE="execute";Xmla.EVENT_EXECUTE_SUCCESS="executesuccess";Xmla.EVENT_EXECUTE_ERROR="executeerror";Xmla.EVENT_DISCOVER="discover";Xmla.EVENT_DISCOVER_SUCCESS="discoversuccess";Xmla.EVENT_DISCOVER_ERROR="discovererror";Xmla.EVENT_GENERAL=[Xmla.EVENT_REQUEST,Xmla.EVENT_SUCCESS,Xmla.EVENT_ERROR];Xmla.EVENT_DISCOVER_ALL=[Xmla.EVENT_DISCOVER,Xmla.EVENT_DISCOVER_SUCCESS,Xmla.EVENT_DISCOVER_ERROR];Xmla.EVENT_EXECUTE_ALL= [Xmla.EVENT_EXECUTE,Xmla.EVENT_EXECUTE_SUCCESS,Xmla.EVENT_EXECUTE_ERROR];Xmla.EVENT_ALL=[].concat(Xmla.EVENT_GENERAL,Xmla.EVENT_DISCOVER_ALL,Xmla.EVENT_EXECUTE_ALL);Xmla.PROP_DATASOURCEINFO="DataSourceInfo";Xmla.PROP_CATALOG="Catalog";Xmla.PROP_CUBE="Cube";Xmla.PROP_FORMAT="Format";Xmla.PROP_FORMAT_TABULAR="Tabular";Xmla.PROP_FORMAT_MULTIDIMENSIONAL="Multidimensional";Xmla.PROP_AXISFORMAT="AxisFormat";Xmla.PROP_AXISFORMAT_TUPLE="TupleFormat";Xmla.PROP_AXISFORMAT_CLUSTER="ClusterFormat";Xmla.PROP_AXISFORMAT_CUSTOM= "CustomFormat";Xmla.PROP_CONTENT="Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){g(this.options,a,true)},addListener:function(a){var b=a.events;j(b)&&Xmla.Exception._newError("NO_EVENTS_SPECIFIED","Xmla.addListener",a)._throw();if(N(b))b=b==="all"?Xmla.EVENT_ALL:b.split(",");b instanceof Array||Xmla.Exception._newError("WRONG_EVENTS_FORMAT","Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e+=1){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(M(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw(); var e=c.length,h=true;if(e)for(var f,i=0;i<e;i+=1){f=c[i];f=f.handler.call(f.scope,a,b,this);if(d&&f===false){h=false;break}}else a==="error"&&b.exception._throw();return h},request:function(a){var b,d=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){b=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);b._throw()}a.properties=g(a.properties,this.options.properties,false);a.restrictions=g(a.restrictions, this.options.restrictions,false);a.async=j(a.async)?this.options.async:a.async;a.requestTimeout=j(a.requestTimeout)?this.options.requestTimeout:a.requestTimeout;this.soapMessage=b=Q(a);b={async:a.async,timeout:a.requestTimeout,data:b,error:function(c){a.exception=c;d._requestError(a)},complete:function(c){a.xhr=c;d._requestSuccess(a)},url:a.url};if(a.username)b.username=a.username;if(a.password)b.password=a.password;if(this._fireEvent(Xmla.EVENT_REQUEST,a,true)&&(a.method==Xmla.METHOD_DISCOVER&&this._fireEvent(Xmla.EVENT_DISCOVER, a)||a.method==Xmla.METHOD_EXECUTE&&this._fireEvent(Xmla.EVENT_EXECUTE,a)))b=L(b);return this.response},_requestError:function(a){this._fireEvent("error",a)},_requestSuccess:function(a){var b=a.xhr;this.responseXML=b.responseXML;this.responseText=b.responseText;b=a.method;var d=o(this.responseXML,v,p,"Fault");if(d.length){d=d.item(0);a.exception=new Xmla.Exception(Xmla.Exception.TYPE_ERROR,d.getElementsByTagName("faultcode").item(0).childNodes.item(0).data,d.getElementsByTagName("faultstring").item(0).childNodes.item(0).data,
(function(){var v="http://schemas.xmlsoap.org/soap/",w=v+"envelope/",n="SOAP-ENV",F="xmlns:"+n+'="'+w+'"',x=n+':encodingStyle="'+v+'encoding/"',y="urn:schemas-microsoft-com:",z=y+"xml-analysis",G='xmlns="'+z+'"',H="sql",I=y+"xml-sql",A="http://www.w3.org/2001/XMLSchema",B="xsd",J="http://www.w3.org/2001/XMLSchema-instance",K="xsi",r=z+":rowset",L=window.ActiveXObject?true:false;function M(a){var b;b=L?new ActiveXObject("MSXML2.XMLHTTP.3.0"):new XMLHttpRequest;b.open("POST",a.url,a.async);var d=false;function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function t(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function C(a){return a.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(a,b,d,c){return t(a.getElementsByTagNameNS)?a.getElementsByTagNameNS(b,c):d?a.getElementsByTagName(d+":"+c):a.getElementsByTagName(c)}function D(a,b,d,c){return t(a.getAttributeNS)?a.getAttributeNS(b,c):d?a.getAttribute(d+":"+c):a.getAttribute(c)}function u(a,b,d,c){c||(c="");var e="\n"+c+"<"+a+">";if(d){var f;e+="\n"+c+" <"+b+">";for(var g in d)if(d.hasOwnProperty(g)){f=d[g];e+="\n"+c+" <"+g+">";if(typeof f==="array")for(var i,o=0,s=f.length;o<s;o++){i=f[o];e+="<Value>"+C(i)+"</Value>"}else e+=C(f);e+="</"+g+">"}e+="\n"+c+" </"+b+">"}e+="\n"+c+"</"+a+">";return e}var E="RequestType";function Q(a){var b="",d=a.method;b+="\n<"+n+":Envelope "+F+" "+x+">\n <"+n+":Body>\n <"+d+" "+G+" "+x+">";var c=null;switch(d){case Xmla.METHOD_DISCOVER:if(j(a.requestType))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <"+E+">"+a.requestType+"</"+E+">"+u("Restrictions","RestrictionList",a.restrictions," ")+u("Properties","PropertyList",a.properties," ");break;case Xmla.METHOD_EXECUTE:if(j(a.statement))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <Command>\n <Statement>"+a.statement+"</Statement>\n </Command>"+u("Properties","PropertyList",a.properties," ");break;default:}c!==null&&c._throw();b+="\n </"+d+">\n </"+n+":Body>\n</"+n+":Envelope>";return b}function h(a,b,d){if(b&&!a)a={};for(var c in b)if(b.hasOwnProperty(c))if(d||j(a[c]))a[c]=b[c];return a}Xmla=function(a){this.listeners={};this.listeners[Xmla.EVENT_REQUEST]=[];this.listeners[Xmla.EVENT_SUCCESS]=[];this.listeners[Xmla.EVENT_ERROR]=[];this.listeners[Xmla.EVENT_DISCOVER]=[];this.listeners[Xmla.EVENT_DISCOVER_SUCCESS]=[];this.listeners[Xmla.EVENT_DISCOVER_ERROR]=[];this.listeners[Xmla.EVENT_EXECUTE]=[];this.listeners[Xmla.EVENT_EXECUTE_SUCCESS]=[];this.listeners[Xmla.EVENT_EXECUTE_ERROR]=[];this.options=h(h({},Xmla.defaultOptions,true),a,true);return this};Xmla.defaultOptions={requestTimeout:30000,async:false};Xmla.METHOD_DISCOVER="Discover";Xmla.METHOD_EXECUTE="Execute";var p="DISCOVER_",k="MDSCHEMA_",q="DBSCHEMA_";Xmla.DISCOVER_DATASOURCES=p+"DATASOURCES";Xmla.DISCOVER_PROPERTIES=p+"PROPERTIES";Xmla.DISCOVER_SCHEMA_ROWSETS=p+"SCHEMA_ROWSETS";Xmla.DISCOVER_ENUMERATORS=p+"ENUMERATORS";Xmla.DISCOVER_KEYWORDS=p+"KEYWORDS";Xmla.DISCOVER_LITERALS=p+"LITERALS";Xmla.DBSCHEMA_CATALOGS=q+"CATALOGS";Xmla.DBSCHEMA_COLUMNS=q+"COLUMNS";Xmla.DBSCHEMA_PROVIDER_TYPES=q+"PROVIDER_TYPES";Xmla.DBSCHEMA_SCHEMATA=q+"SCHEMATA";Xmla.DBSCHEMA_TABLES=q+"TABLES";Xmla.DBSCHEMA_TABLES_INFO=q+"TABLES_INFO";Xmla.MDSCHEMA_ACTIONS=k+"ACTIONS";Xmla.MDSCHEMA_CUBES=k+"CUBES";Xmla.MDSCHEMA_DIMENSIONS=k+"DIMENSIONS";Xmla.MDSCHEMA_FUNCTIONS=k+"FUNCTIONS";Xmla.MDSCHEMA_HIERARCHIES=k+"HIERARCHIES";Xmla.MDSCHEMA_LEVELS=k+"LEVELS";Xmla.MDSCHEMA_MEASURES=k+"MEASURES";Xmla.MDSCHEMA_MEMBERS=k+"MEMBERS";Xmla.MDSCHEMA_PROPERTIES=k+"PROPERTIES";Xmla.MDSCHEMA_SETS=k+"SETS";Xmla.EVENT_REQUEST="request";Xmla.EVENT_SUCCESS="success";Xmla.EVENT_ERROR="error";Xmla.EVENT_EXECUTE="execute";Xmla.EVENT_EXECUTE_SUCCESS="executesuccess";Xmla.EVENT_EXECUTE_ERROR="executeerror";Xmla.EVENT_DISCOVER="discover";Xmla.EVENT_DISCOVER_SUCCESS="discoversuccess";Xmla.EVENT_DISCOVER_ERROR="discovererror";Xmla.EVENT_GENERAL=[Xmla.EVENT_REQUEST,Xmla.EVENT_SUCCESS,Xmla.EVENT_ERROR];Xmla.EVENT_DISCOVER_ALL=[Xmla.EVENT_DISCOVER,Xmla.EVENT_DISCOVER_SUCCESS,Xmla.EVENT_DISCOVER_ERROR];Xmla.EVENT_EXECUTE_ALL=[Xmla.EVENT_EXECUTE,Xmla.EVENT_EXECUTE_SUCCESS,Xmla.EVENT_EXECUTE_ERROR];Xmla.EVENT_ALL=[].concat(Xmla.EVENT_GENERAL,Xmla.EVENT_DISCOVER_ALL,Xmla.EVENT_EXECUTE_ALL);Xmla.PROP_DATASOURCEINFO="DataSourceInfo";Xmla.PROP_CATALOG="Catalog";Xmla.PROP_CUBE="Cube";Xmla.PROP_FORMAT="Format";Xmla.PROP_FORMAT_TABULAR="Tabular";Xmla.PROP_FORMAT_MULTIDIMENSIONAL="Multidimensional";Xmla.PROP_AXISFORMAT="AxisFormat";Xmla.PROP_AXISFORMAT_TUPLE="TupleFormat";Xmla.PROP_AXISFORMAT_CLUSTER="ClusterFormat";Xmla.PROP_AXISFORMAT_CUSTOM="CustomFormat";Xmla.PROP_CONTENT="Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=a.events;j(b)&&Xmla.Exception._newError("NO_EVENTS_SPECIFIED","Xmla.addListener",a)._throw();if(N(b))b=b==="all"?Xmla.EVENT_ALL:b.split(",");b instanceof Array||Xmla.Exception._newError("WRONG_EVENTS_FORMAT","Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e++){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(t(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw();var e=c.length,f=true;if(e)for(var g,i=0;i<e;i++){g=c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);ex._throw()}a.properties=h(a.properties,this.options.properties,false);a.restrictions=h(a.restrictions,this.options.restrictions,false);a.async=j(a.async)?this.options.async:a.async;a.requestTimeout=j(a.requestTimeout)?this.options.requestTimeout:a.requestTimeout;var d=Q(a);this.soapMessage=d;d={async:a.async,timeout:a.requestTimeout,data:d,error:function(){a.exception=exeception;b._requestError(a)},complete:function(c){a.xhr=c;b._requestSuccess(a)},url:a.url};if(a.username)d.username=a.username;if(a.password)d.password=a.password;if(this._fireEvent(Xmla.EVENT_REQUEST,a,true)&&(a.method==Xmla.METHOD_DISCOVER&&this._fireEvent(Xmla.EVENT_DISCOVER,a)||a.method==Xmla.METHOD_EXECUTE&&this._fireEvent(Xmla.EVENT_EXECUTE,a)))d=M(d);return this.response},_requestError:function(a){this._fireEvent("error",a)},_requestSuccess:function(a){var b=a.xhr;this.responseXML=b.responseXML;this.responseText=b.responseText;b=a.method;var d=m(this.responseXML,w,n,"Fault");if(d.length){d=d.item(0);a.exception=new Xmla.Exception(Xmla.Exception.TYPE_ERROR,d.getElementsByTagName("faultcode").item(0).childNodes.item(0).data,d.getElementsByTagName("faultstring").item(0).childNodes.item(0).data,null,"_requestSuccess",a);switch(b){case Xmla.METHOD_DISCOVER:this._fireEvent(Xmla.EVENT_DISCOVER_ERROR,a);break;case Xmla.METHOD_EXECUTE:this._fireEvent(Xmla.EVENT_EXECUTE_ERROR,a);break}this._fireEvent(Xmla.EVENT_ERROR,a)}else{switch(b){case Xmla.METHOD_DISCOVER:var c=new Xmla.Rowset(this.responseXML,a.requestType);this.response=a.rowset=c;this._fireEvent(Xmla.EVENT_DISCOVER_SUCCESS,a);break;case Xmla.METHOD_EXECUTE:b=a.properties[Xmla.PROP_FORMAT];switch(b){case Xmla.PROP_FORMAT_TABULAR:c=new Xmla.Rowset(this.responseXML);break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=h(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=h(a,{requestType:Xmla.DISCOVER_PROPERTIES},true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYWORDS},true);return this.discover(a)},discoverLiterals:function(a){a=h(a,{requestType:Xmla.DISCOVER_LITERALS},true);return this.discover(a)},discoverDBCatalogs:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_CATALOGS},true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMATA},true);return this.discover(a)},discoverDBTables:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES},true);return this.discover(a)},discoverDBTablesInfo:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES_INFO},true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);return this.discover(a)},discoverMDFunctions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_FUNCTIONS},true);return this.discover(a)},discoverMDHierarchies:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_HIERARCHIES},true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);return this.discover(a)},discoverMDProperties:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_PROPERTIES},true);return this.discover(a)},discoverMDSets:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_SETS},true);return this.discover(a)}};function R(a){a=m(a,A,B,"complexType");var b=a.length,d,c;for(c=0;c<b;c++){d=a.item(c);if(d.getAttribute("name")==="row")return d}return null}Xmla.Rowset=function(a,b){this._initData(a,b);return this};Xmla.Rowset.MD_DIMTYPE_UNKNOWN=0;Xmla.Rowset.MD_DIMTYPE_TIME=1;Xmla.Rowset.MD_DIMTYPE_MEASURE=2;Xmla.Rowset.MD_DIMTYPE_OTHER=3;Xmla.Rowset.MD_DIMTYPE_QUANTITATIVE=5;Xmla.Rowset.MD_DIMTYPE_ACCOUNTS=6;Xmla.Rowset.MD_DIMTYPE_CUSTOMERS=7;Xmla.Rowset.MD_DIMTYPE_PRODUCTS=8;Xmla.Rowset.MD_DIMTYPE_SCENARIO=9;Xmla.Rowset.MD_DIMTYPE_UTILIY=10;Xmla.Rowset.MD_DIMTYPE_CURRENCY=11;Xmla.Rowset.MD_DIMTYPE_RATES=12;Xmla.Rowset.MD_DIMTYPE_CHANNEL=13;Xmla.Rowset.MD_DIMTYPE_PROMOTION=14;Xmla.Rowset.MD_DIMTYPE_ORGANIZATION=15;Xmla.Rowset.MD_DIMTYPE_BILL_OF_MATERIALS=16;Xmla.Rowset.MD_DIMTYPE_GEOGRAPHY=17;Xmla.Rowset.KEYS={};Xmla.Rowset.KEYS[Xmla.DBSCHEMA_CATALOGS]=["CATALOG_NAME"];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_COLUMNS]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_PROVIDER_TYPES]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_SCHEMATA]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_TABLES]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_TABLES_INFO]=[];Xmla.Rowset.KEYS[Xmla.DISCOVER_DATASOURCES]=["DataSourceName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_ENUMERATORS]=["EnumName","ElementName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_KEYWORDS]=["Keyword"];Xmla.Rowset.KEYS[Xmla.DISCOVER_LITERALS]=["LiteralName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_PROPERTIES]=["PropertyName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_SCHEMA_ROWSETS]=["SchemaName"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_ACTIONS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_CUBES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_DIMENSIONS]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","DIMENSION_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_FUNCTIONS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_HIERARCHIES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","HIERARCHY_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_LEVELS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_MEASURES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","MEASURE_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_MEMBERS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_PROPERTIES]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_SETS]=[];Xmla.Rowset.prototype={_type:null,rows:null,numRows:null,fieldOrder:null,fields:null,_fieldCount:null,_initData:function(a,b){this._type=b;this.numRows=(this.rows=m(a,r,null,"row"))?this.rows.length:0;this.reset();this.fieldOrder=[];this.fields={};this._fieldCount=0;var d=R(a);if(d){a=m(d,A,B,"sequence").item(0);a=a.childNodes;d=a.length;for(var c,e,f,g,i,o,s=0;s<d;s++){c=a.item(s);if(c.nodeType==1){e=D(c,I,H,"field");f=c.getAttribute("name");i=c.getAttribute("type");if(i==null&&this.row){g=this.row.getElementsByTagName(f);if(g.length)i=D(g.item(0),J,K,"type")}if(!i&&b==Xmla.DISCOVER_SCHEMA_ROWSETS&&f=="Restrictions")i="Restrictions";g=c.getAttribute("minOccurs");c=c.getAttribute("maxOccurs");o=this._getValueConverter(i);this.fields[e]={name:f,label:e,index:this._fieldCount++,type:i,jsType:o.jsType,minOccurs:j(g)?1:g,maxOccurs:j(c)?1:c==="unbounded"?Infinity:c,getter:this._createFieldGetter(f,o.func,g,c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText;else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c++)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func=this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,f;if(c==="1")if(d==="1")f=function(){var g=m(this.row,r,null,a);return b(e._elementText(g.item(0)))};else{if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?b(e._elementText(g.item(0))):null}}else if(d==="1")f=function(){var g=m(this.row,r,null,a);return e._arrayConverter(g,b)};else if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?e._arrayConverter(g,b):null};return f},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c++)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b++)a[b]=this.fieldOrder[b];return a},hasMoreRows:function(){return this.numRows>this.rowIndex},next:function(){this.row=this.rows.item(++this.rowIndex)},curr:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this.row=this.hasMoreRows()?this.rows.item(this.rowIndex):null},fieldDef:function(a){var b=this.fields[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldIndex:function(a){a=this.fieldDef(a);return a.index},fieldName:function(a){var b=this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,f){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=f;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var l="http://code.google.com/p/xmla4js/wiki/ExceptionCodes";Xmla.Exception.MISSING_REQUEST_TYPE_CDE=-1;Xmla.Exception.MISSING_REQUEST_TYPE_MSG="Missing_Request_Type";Xmla.Exception.MISSING_REQUEST_TYPE_HLP=l+"#"+Xmla.Exception.MISSING_REQUEST_TYPE_CDE+"_"+Xmla.Exception.MISSING_REQUEST_TYPE_MSG;Xmla.Exception.MISSING_STATEMENT_CDE=-2;Xmla.Exception.MISSING_STATEMENT_MSG="Missing_Statement";Xmla.Exception.MISSING_STATEMENT_HLP=l+"#"+Xmla.Exception.MISSING_STATEMENT_CDE+"_"+Xmla.Exception.MISSING_STATEMENT_MSG;Xmla.Exception.MISSING_URL_CDE=-3;Xmla.Exception.MISSING_URL_MSG="Missing_URL";Xmla.Exception.MISSING_URL_HLP=l+"#"+Xmla.Exception.MISSING_URL_CDE+"_"+Xmla.Exception.MISSING_URL_MSG;Xmla.Exception.NO_EVENTS_SPECIFIED_CDE=-4;Xmla.Exception.NO_EVENTS_SPECIFIED_MSG="No_Events_Specified";Xmla.Exception.NO_EVENTS_SPECIFIED_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.WRONG_EVENTS_FORMAT_CDE=-5;Xmla.Exception.WRONG_EVENTS_FORMAT_MSG="Wrong_Events_Format";Xmla.Exception.WRONG_EVENTS_FORMAT_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.UNKNOWN_EVENT_CDE=-6;Xmla.Exception.UNKNOWN_EVENT_MSG="Unknown_Event";Xmla.Exception.UNKNOWN_EVENT_HLP=l+"#"+Xmla.Exception.UNKNOWN_EVENT_CDE+"_"+Xmla.Exception.UNKNOWN_EVENT_MSG;Xmla.Exception.INVALID_EVENT_HANDLER_CDE=-7;Xmla.Exception.INVALID_EVENT_HANDLER_MSG="Invalid_Events_Handler";Xmla.Exception.INVALID_EVENT_HANDLER_HLP=l+"#"+Xmla.Exception.INVALID_EVENT_HANDLER_CDE+"_"+Xmla.Exception.INVALID_EVENT_HANDLER_MSG;Xmla.Exception.ERROR_PARSING_RESPONSE_CDE=-8;Xmla.Exception.ERROR_PARSING_RESPONSE_MSG="Error_Parsing_Response";Xmla.Exception.ERROR_PARSING_RESPONSE_HLP=l+"#"+Xmla.Exception.ERROR_PARSING_RESPONSE_CDE+"_"+Xmla.Exception.ERROR_PARSING_RESPONSE_MSG;Xmla.Exception.INVALID_FIELD_CDE=-9;Xmla.Exception.INVALID_FIELD_MSG="Invalid_Field";Xmla.Exception.INVALID_FIELD_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception.HTTP_ERROR_CDE=-10;Xmla.Exception.HTTP_ERROR_MSG="HTTP Error";Xmla.Exception.HTTP_ERROR_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception._newError=function(a,b,d){return new Xmla.Exception(Xmla.Exception.TYPE_ERROR,Xmla.Exception[a+"_CDE"],Xmla.Exception[a+"_MSG"],Xmla.Exception[a+"_HLP"],b,d)};Xmla.Exception.prototype={type:null,code:null,message:null,source:null,helpfile:null,data:null,_throw:function(){throw this;}}})();
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties= {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=h(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=h(a,{requestType:Xmla.DISCOVER_PROPERTIES}, true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYWORDS},true);return this.discover(a)},discoverLiterals:function(a){a=h(a,{requestType:Xmla.DISCOVER_LITERALS},true);return this.discover(a)},discoverDBCatalogs:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_CATALOGS}, true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMATA},true);return this.discover(a)},discoverDBTables:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES},true);return this.discover(a)},discoverDBTablesInfo:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES_INFO}, true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);return this.discover(a)},discoverMDFunctions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_FUNCTIONS},true);return this.discover(a)},discoverMDHierarchies:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_HIERARCHIES}, true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);return this.discover(a)},discoverMDProperties:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_PROPERTIES},true);return this.discover(a)},discoverMDSets:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_SETS}, true);return this.discover(a)}};function R(a){a=m(a,A,B,"complexType");var b=a.length,d,c;for(c=0;c<b;c++){d=a.item(c);if(d.getAttribute("name")==="row")return d}return null}Xmla.Rowset=function(a,b){this._initData(a,b);return this};Xmla.Rowset.MD_DIMTYPE_UNKNOWN=0;Xmla.Rowset.MD_DIMTYPE_TIME=1;Xmla.Rowset.MD_DIMTYPE_MEASURE=2;Xmla.Rowset.MD_DIMTYPE_OTHER=3;Xmla.Rowset.MD_DIMTYPE_QUANTITATIVE=5;Xmla.Rowset.MD_DIMTYPE_ACCOUNTS=6;Xmla.Rowset.MD_DIMTYPE_CUSTOMERS=7;Xmla.Rowset.MD_DIMTYPE_PRODUCTS=8;
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=g(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties= {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=g(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=g(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=g(a,{requestType:Xmla.DISCOVER_PROPERTIES}, true);return this.discover(a)},discoverSchemaRowsets:function(a){a=g(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=g(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=g(a,{requestType:Xmla.DISCOVER_KEYWORDS},true);return this.discover(a)},discoverLiterals:function(a){a=g(a,{requestType:Xmla.DISCOVER_LITERALS},true);return this.discover(a)},discoverDBCatalogs:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_CATALOGS}, true);return this.discover(a)},discoverDBColumns:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_SCHEMATA},true);return this.discover(a)},discoverDBTables:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_TABLES},true);return this.discover(a)},discoverDBTablesInfo:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_TABLES_INFO}, true);return this.discover(a)},discoverMDActions:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);return this.discover(a)},discoverMDFunctions:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_FUNCTIONS},true);return this.discover(a)},discoverMDHierarchies:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_HIERARCHIES}, true);return this.discover(a)},discoverMDLevels:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);return this.discover(a)},discoverMDProperties:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_PROPERTIES},true);return this.discover(a)},discoverMDSets:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_SETS}, true);return this.discover(a)}};function R(a){a=o(a,z,A,"complexType");var b=a.length,d,c;for(c=0;c<b;c+=1){d=a.item(c);if(d.getAttribute("name")==="row")return d}return null}Xmla.Rowset=function(a,b){this._initData(a,b);return this};Xmla.Rowset.MD_DIMTYPE_UNKNOWN=0;Xmla.Rowset.MD_DIMTYPE_TIME=1;Xmla.Rowset.MD_DIMTYPE_MEASURE=2;Xmla.Rowset.MD_DIMTYPE_OTHER=3;Xmla.Rowset.MD_DIMTYPE_QUANTITATIVE=5;Xmla.Rowset.MD_DIMTYPE_ACCOUNTS=6;Xmla.Rowset.MD_DIMTYPE_CUSTOMERS=7;Xmla.Rowset.MD_DIMTYPE_PRODUCTS=8;
(function(){var v="http://schemas.xmlsoap.org/soap/",w=v+"envelope/",n="SOAP-ENV",F="xmlns:"+n+'="'+w+'"',x=n+':encodingStyle="'+v+'encoding/"',y="urn:schemas-microsoft-com:",z=y+"xml-analysis",G='xmlns="'+z+'"',H="sql",I=y+"xml-sql",A="http://www.w3.org/2001/XMLSchema",B="xsd",J="http://www.w3.org/2001/XMLSchema-instance",K="xsi",r=z+":rowset",L=window.ActiveXObject?true:false;function M(a){var b;b=L?new ActiveXObject("MSXML2.XMLHTTP.3.0"):new XMLHttpRequest;b.open("POST",a.url,a.async);var d=false;function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function t(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function C(a){return a.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(a,b,d,c){return t(a.getElementsByTagNameNS)?a.getElementsByTagNameNS(b,c):d?a.getElementsByTagName(d+":"+c):a.getElementsByTagName(c)}function D(a,b,d,c){return t(a.getAttributeNS)?a.getAttributeNS(b,c):d?a.getAttribute(d+":"+c):a.getAttribute(c)}function u(a,b,d,c){c||(c="");var e="\n"+c+"<"+a+">";if(d){var f;e+="\n"+c+" <"+b+">";for(var g in d)if(d.hasOwnProperty(g)){f=d[g];e+="\n"+c+" <"+g+">";if(typeof f==="array")for(var i,o=0,s=f.length;o<s;o++){i=f[o];e+="<Value>"+C(i)+"</Value>"}else e+=C(f);e+="</"+g+">"}e+="\n"+c+" </"+b+">"}e+="\n"+c+"</"+a+">";return e}var E="RequestType";function Q(a){var b="",d=a.method;b+="\n<"+n+":Envelope "+F+" "+x+">\n <"+n+":Body>\n <"+d+" "+G+" "+x+">";var c=null;switch(d){case Xmla.METHOD_DISCOVER:if(j(a.requestType))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <"+E+">"+a.requestType+"</"+E+">"+u("Restrictions","RestrictionList",a.restrictions," ")+u("Properties","PropertyList",a.properties," ");break;case Xmla.METHOD_EXECUTE:if(j(a.statement))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <Command>\n <Statement>"+a.statement+"</Statement>\n </Command>"+u("Properties","PropertyList",a.properties," ");break;default:}c!==null&&c._throw();b+="\n </"+d+">\n </"+n+":Body>\n</"+n+":Envelope>";return b}function h(a,b,d){if(b&&!a)a={};for(var c in b)if(b.hasOwnProperty(c))if(d||j(a[c]))a[c]=b[c];return a}Xmla=function(a){this.listeners={};this.listeners[Xmla.EVENT_REQUEST]=[];this.listeners[Xmla.EVENT_SUCCESS]=[];this.listeners[Xmla.EVENT_ERROR]=[];this.listeners[Xmla.EVENT_DISCOVER]=[];this.listeners[Xmla.EVENT_DISCOVER_SUCCESS]=[];this.listeners[Xmla.EVENT_DISCOVER_ERROR]=[];this.listeners[Xmla.EVENT_EXECUTE]=[];this.listeners[Xmla.EVENT_EXECUTE_SUCCESS]=[];this.listeners[Xmla.EVENT_EXECUTE_ERROR]=[];this.options=h(h({},Xmla.defaultOptions,true),a,true);return this};Xmla.defaultOptions={requestTimeout:30000,async:false};Xmla.METHOD_DISCOVER="Discover";Xmla.METHOD_EXECUTE="Execute";var p="DISCOVER_",k="MDSCHEMA_",q="DBSCHEMA_";Xmla.DISCOVER_DATASOURCES=p+"DATASOURCES";Xmla.DISCOVER_PROPERTIES=p+"PROPERTIES";Xmla.DISCOVER_SCHEMA_ROWSETS=p+"SCHEMA_ROWSETS";Xmla.DISCOVER_ENUMERATORS=p+"ENUMERATORS";Xmla.DISCOVER_KEYWORDS=p+"KEYWORDS";Xmla.DISCOVER_LITERALS=p+"LITERALS";Xmla.DBSCHEMA_CATALOGS=q+"CATALOGS";Xmla.DBSCHEMA_COLUMNS=q+"COLUMNS";Xmla.DBSCHEMA_PROVIDER_TYPES=q+"PROVIDER_TYPES";Xmla.DBSCHEMA_SCHEMATA=q+"SCHEMATA";Xmla.DBSCHEMA_TABLES=q+"TABLES";Xmla.DBSCHEMA_TABLES_INFO=q+"TABLES_INFO";Xmla.MDSCHEMA_ACTIONS=k+"ACTIONS";Xmla.MDSCHEMA_CUBES=k+"CUBES";Xmla.MDSCHEMA_DIMENSIONS=k+"DIMENSIONS";Xmla.MDSCHEMA_FUNCTIONS=k+"FUNCTIONS";Xmla.MDSCHEMA_HIERARCHIES=k+"HIERARCHIES";Xmla.MDSCHEMA_LEVELS=k+"LEVELS";Xmla.MDSCHEMA_MEASURES=k+"MEASURES";Xmla.MDSCHEMA_MEMBERS=k+"MEMBERS";Xmla.MDSCHEMA_PROPERTIES=k+"PROPERTIES";Xmla.MDSCHEMA_SETS=k+"SETS";Xmla.EVENT_REQUEST="request";Xmla.EVENT_SUCCESS="success";Xmla.EVENT_ERROR="error";Xmla.EVENT_EXECUTE="execute";Xmla.EVENT_EXECUTE_SUCCESS="executesuccess";Xmla.EVENT_EXECUTE_ERROR="executeerror";Xmla.EVENT_DISCOVER="discover";Xmla.EVENT_DISCOVER_SUCCESS="discoversuccess";Xmla.EVENT_DISCOVER_ERROR="discovererror";Xmla.EVENT_GENERAL=[Xmla.EVENT_REQUEST,Xmla.EVENT_SUCCESS,Xmla.EVENT_ERROR];Xmla.EVENT_DISCOVER_ALL=[Xmla.EVENT_DISCOVER,Xmla.EVENT_DISCOVER_SUCCESS,Xmla.EVENT_DISCOVER_ERROR];Xmla.EVENT_EXECUTE_ALL=[Xmla.EVENT_EXECUTE,Xmla.EVENT_EXECUTE_SUCCESS,Xmla.EVENT_EXECUTE_ERROR];Xmla.EVENT_ALL=[].concat(Xmla.EVENT_GENERAL,Xmla.EVENT_DISCOVER_ALL,Xmla.EVENT_EXECUTE_ALL);Xmla.PROP_DATASOURCEINFO="DataSourceInfo";Xmla.PROP_CATALOG="Catalog";Xmla.PROP_CUBE="Cube";Xmla.PROP_FORMAT="Format";Xmla.PROP_FORMAT_TABULAR="Tabular";Xmla.PROP_FORMAT_MULTIDIMENSIONAL="Multidimensional";Xmla.PROP_AXISFORMAT="AxisFormat";Xmla.PROP_AXISFORMAT_TUPLE="TupleFormat";Xmla.PROP_AXISFORMAT_CLUSTER="ClusterFormat";Xmla.PROP_AXISFORMAT_CUSTOM="CustomFormat";Xmla.PROP_CONTENT="Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=a.events;j(b)&&Xmla.Exception._newError("NO_EVENTS_SPECIFIED","Xmla.addListener",a)._throw();if(N(b))b=b==="all"?Xmla.EVENT_ALL:b.split(",");b instanceof Array||Xmla.Exception._newError("WRONG_EVENTS_FORMAT","Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e++){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(t(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw();var e=c.length,f=true;if(e)for(var g,i=0;i<e;i++){g=c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);ex._throw()}a.properties=h(a.properties,this.options.properties,false);a.restrictions=h(a.restrictions,this.options.restrictions,false);a.async=j(a.async)?this.options.async:a.async;a.requestTimeout=j(a.requestTimeout)?this.options.requestTimeout:a.requestTimeout;var d=Q(a);this.soapMessage=d;d={async:a.async,timeout:a.requestTimeout,data:d,error:function(){a.exception=exeception;b._requestError(a)},complete:function(c){a.xhr=c;b._requestSuccess(a)},url:a.url};if(a.username)d.username=a.username;if(a.password)d.password=a.password;if(this._fireEvent(Xmla.EVENT_REQUEST,a,true)&&(a.method==Xmla.METHOD_DISCOVER&&this._fireEvent(Xmla.EVENT_DISCOVER,a)||a.method==Xmla.METHOD_EXECUTE&&this._fireEvent(Xmla.EVENT_EXECUTE,a)))d=M(d);return this.response},_requestError:function(a){this._fireEvent("error",a)},_requestSuccess:function(a){var b=a.xhr;this.responseXML=b.responseXML;this.responseText=b.responseText;b=a.method;var d=m(this.responseXML,w,n,"Fault");if(d.length){d=d.item(0);a.exception=new Xmla.Exception(Xmla.Exception.TYPE_ERROR,d.getElementsByTagName("faultcode").item(0).childNodes.item(0).data,d.getElementsByTagName("faultstring").item(0).childNodes.item(0).data,null,"_requestSuccess",a);switch(b){case Xmla.METHOD_DISCOVER:this._fireEvent(Xmla.EVENT_DISCOVER_ERROR,a);break;case Xmla.METHOD_EXECUTE:this._fireEvent(Xmla.EVENT_EXECUTE_ERROR,a);break}this._fireEvent(Xmla.EVENT_ERROR,a)}else{switch(b){case Xmla.METHOD_DISCOVER:var c=new Xmla.Rowset(this.responseXML,a.requestType);this.response=a.rowset=c;this._fireEvent(Xmla.EVENT_DISCOVER_SUCCESS,a);break;case Xmla.METHOD_EXECUTE:b=a.properties[Xmla.PROP_FORMAT];switch(b){case Xmla.PROP_FORMAT_TABULAR:c=new Xmla.Rowset(this.responseXML);break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=h(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=h(a,{requestType:Xmla.DISCOVER_PROPERTIES},true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYWORDS},true);return this.discover(a)},discoverLiterals:function(a){a=h(a,{requestType:Xmla.DISCOVER_LITERALS},true);return this.discover(a)},discoverDBCatalogs:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_CATALOGS},true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMATA},true);return this.discover(a)},discoverDBTables:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES},true);return this.discover(a)},discoverDBTablesInfo:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES_INFO},true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);return this.discover(a)},discoverMDFunctions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_FUNCTIONS},true);return this.discover(a)},discoverMDHierarchies:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_HIERARCHIES},true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);return this.discover(a)},discoverMDProperties:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_PROPERTIES},true);return this.discover(a)},discoverMDSets:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_SETS},true);return this.discover(a)}};function R(a){a=m(a,A,B,"complexType");var b=a.length,d,c;for(c=0;c<b;c++){d=a.item(c);if(d.getAttribute("name")==="row")return d}return null}Xmla.Rowset=function(a,b){this._initData(a,b);return this};Xmla.Rowset.MD_DIMTYPE_UNKNOWN=0;Xmla.Rowset.MD_DIMTYPE_TIME=1;Xmla.Rowset.MD_DIMTYPE_MEASURE=2;Xmla.Rowset.MD_DIMTYPE_OTHER=3;Xmla.Rowset.MD_DIMTYPE_QUANTITATIVE=5;Xmla.Rowset.MD_DIMTYPE_ACCOUNTS=6;Xmla.Rowset.MD_DIMTYPE_CUSTOMERS=7;Xmla.Rowset.MD_DIMTYPE_PRODUCTS=8;Xmla.Rowset.MD_DIMTYPE_SCENARIO=9;Xmla.Rowset.MD_DIMTYPE_UTILIY=10;Xmla.Rowset.MD_DIMTYPE_CURRENCY=11;Xmla.Rowset.MD_DIMTYPE_RATES=12;Xmla.Rowset.MD_DIMTYPE_CHANNEL=13;Xmla.Rowset.MD_DIMTYPE_PROMOTION=14;Xmla.Rowset.MD_DIMTYPE_ORGANIZATION=15;Xmla.Rowset.MD_DIMTYPE_BILL_OF_MATERIALS=16;Xmla.Rowset.MD_DIMTYPE_GEOGRAPHY=17;Xmla.Rowset.KEYS={};Xmla.Rowset.KEYS[Xmla.DBSCHEMA_CATALOGS]=["CATALOG_NAME"];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_COLUMNS]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_PROVIDER_TYPES]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_SCHEMATA]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_TABLES]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_TABLES_INFO]=[];Xmla.Rowset.KEYS[Xmla.DISCOVER_DATASOURCES]=["DataSourceName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_ENUMERATORS]=["EnumName","ElementName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_KEYWORDS]=["Keyword"];Xmla.Rowset.KEYS[Xmla.DISCOVER_LITERALS]=["LiteralName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_PROPERTIES]=["PropertyName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_SCHEMA_ROWSETS]=["SchemaName"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_ACTIONS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_CUBES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_DIMENSIONS]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","DIMENSION_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_FUNCTIONS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_HIERARCHIES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","HIERARCHY_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_LEVELS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_MEASURES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","MEASURE_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_MEMBERS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_PROPERTIES]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_SETS]=[];Xmla.Rowset.prototype={_type:null,rows:null,numRows:null,fieldOrder:null,fields:null,_fieldCount:null,_initData:function(a,b){this._type=b;this.numRows=(this.rows=m(a,r,null,"row"))?this.rows.length:0;this.reset();this.fieldOrder=[];this.fields={};this._fieldCount=0;var d=R(a);if(d){a=m(d,A,B,"sequence").item(0);a=a.childNodes;d=a.length;for(var c,e,f,g,i,o,s=0;s<d;s++){c=a.item(s);if(c.nodeType==1){e=D(c,I,H,"field");f=c.getAttribute("name");i=c.getAttribute("type");if(i==null&&this.row){g=this.row.getElementsByTagName(f);if(g.length)i=D(g.item(0),J,K,"type")}if(!i&&b==Xmla.DISCOVER_SCHEMA_ROWSETS&&f=="Restrictions")i="Restrictions";g=c.getAttribute("minOccurs");c=c.getAttribute("maxOccurs");o=this._getValueConverter(i);this.fields[e]={name:f,label:e,index:this._fieldCount++,type:i,jsType:o.jsType,minOccurs:j(g)?1:g,maxOccurs:j(c)?1:c==="unbounded"?Infinity:c,getter:this._createFieldGetter(f,o.func,g,c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText;else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c++)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func=this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,f;if(c==="1")if(d==="1")f=function(){var g=m(this.row,r,null,a);return b(e._elementText(g.item(0)))};else{if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?b(e._elementText(g.item(0))):null}}else if(d==="1")f=function(){var g=m(this.row,r,null,a);return e._arrayConverter(g,b)};else if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?e._arrayConverter(g,b):null};return f},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c++)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b++)a[b]=this.fieldOrder[b];return a},hasMoreRows:function(){return this.numRows>this.rowIndex},next:function(){this.row=this.rows.item(++this.rowIndex)},curr:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this.row=this.hasMoreRows()?this.rows.item(this.rowIndex):null},fieldDef:function(a){var b=this.fields[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldIndex:function(a){a=this.fieldDef(a);return a.index},fieldName:function(a){var b=this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,f){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=f;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var l="http://code.google.com/p/xmla4js/wiki/ExceptionCodes";Xmla.Exception.MISSING_REQUEST_TYPE_CDE=-1;Xmla.Exception.MISSING_REQUEST_TYPE_MSG="Missing_Request_Type";Xmla.Exception.MISSING_REQUEST_TYPE_HLP=l+"#"+Xmla.Exception.MISSING_REQUEST_TYPE_CDE+"_"+Xmla.Exception.MISSING_REQUEST_TYPE_MSG;Xmla.Exception.MISSING_STATEMENT_CDE=-2;Xmla.Exception.MISSING_STATEMENT_MSG="Missing_Statement";Xmla.Exception.MISSING_STATEMENT_HLP=l+"#"+Xmla.Exception.MISSING_STATEMENT_CDE+"_"+Xmla.Exception.MISSING_STATEMENT_MSG;Xmla.Exception.MISSING_URL_CDE=-3;Xmla.Exception.MISSING_URL_MSG="Missing_URL";Xmla.Exception.MISSING_URL_HLP=l+"#"+Xmla.Exception.MISSING_URL_CDE+"_"+Xmla.Exception.MISSING_URL_MSG;Xmla.Exception.NO_EVENTS_SPECIFIED_CDE=-4;Xmla.Exception.NO_EVENTS_SPECIFIED_MSG="No_Events_Specified";Xmla.Exception.NO_EVENTS_SPECIFIED_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.WRONG_EVENTS_FORMAT_CDE=-5;Xmla.Exception.WRONG_EVENTS_FORMAT_MSG="Wrong_Events_Format";Xmla.Exception.WRONG_EVENTS_FORMAT_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.UNKNOWN_EVENT_CDE=-6;Xmla.Exception.UNKNOWN_EVENT_MSG="Unknown_Event";Xmla.Exception.UNKNOWN_EVENT_HLP=l+"#"+Xmla.Exception.UNKNOWN_EVENT_CDE+"_"+Xmla.Exception.UNKNOWN_EVENT_MSG;Xmla.Exception.INVALID_EVENT_HANDLER_CDE=-7;Xmla.Exception.INVALID_EVENT_HANDLER_MSG="Invalid_Events_Handler";Xmla.Exception.INVALID_EVENT_HANDLER_HLP=l+"#"+Xmla.Exception.INVALID_EVENT_HANDLER_CDE+"_"+Xmla.Exception.INVALID_EVENT_HANDLER_MSG;Xmla.Exception.ERROR_PARSING_RESPONSE_CDE=-8;Xmla.Exception.ERROR_PARSING_RESPONSE_MSG="Error_Parsing_Response";Xmla.Exception.ERROR_PARSING_RESPONSE_HLP=l+"#"+Xmla.Exception.ERROR_PARSING_RESPONSE_CDE+"_"+Xmla.Exception.ERROR_PARSING_RESPONSE_MSG;Xmla.Exception.INVALID_FIELD_CDE=-9;Xmla.Exception.INVALID_FIELD_MSG="Invalid_Field";Xmla.Exception.INVALID_FIELD_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception.HTTP_ERROR_CDE=-10;Xmla.Exception.HTTP_ERROR_MSG="HTTP Error";Xmla.Exception.HTTP_ERROR_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception._newError=function(a,b,d){return new Xmla.Exception(Xmla.Exception.TYPE_ERROR,Xmla.Exception[a+"_CDE"],Xmla.Exception[a+"_MSG"],Xmla.Exception[a+"_HLP"],b,d)};Xmla.Exception.prototype={type:null,code:null,message:null,source:null,helpfile:null,data:null,_throw:function(){throw this;}}})();
[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_PROPERTIES]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_SETS]=[];Xmla.Rowset.prototype={_type:null,rows:null,numRows:null,fieldOrder:null,fields:null,_fieldCount:null,_initData:function(a,b){this._type=b;this.numRows=(this.rows=m(a,r,null,"row"))?this.rows.length:0;this.reset();this.fieldOrder=[];this.fields={};this._fieldCount=0;var d=R(a);if(d){a=m(d,A,B,"sequence").item(0);a=a.childNodes;d=a.length;for(var c,e,f,g,i,o,s=0;s<d;s++){c=a.item(s);if(c.nodeType==1){e=D(c,I,H, "field");f=c.getAttribute("name");i=c.getAttribute("type");if(i==null&&this.row){g=this.row.getElementsByTagName(f);if(g.length)i=D(g.item(0),J,K,"type")}if(!i&&b==Xmla.DISCOVER_SCHEMA_ROWSETS&&f=="Restrictions")i="Restrictions";g=c.getAttribute("minOccurs");c=c.getAttribute("maxOccurs");o=this._getValueConverter(i);this.fields[e]={name:f,label:e,index:this._fieldCount++,type:i,jsType:o.jsType,minOccurs:j(g)?1:g,maxOccurs:j(c)?1:c==="unbounded"?Infinity:c,getter:this._createFieldGetter(f,o.func,g, c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText; else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c++)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func= this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,f;if(c==="1")if(d==="1")f=function(){var g=m(this.row,r,null,a);return b(e._elementText(g.item(0)))};else{if(d==="0")f=function(){var g=m(this.row,r,null,a); return g.length?b(e._elementText(g.item(0))):null}}else if(d==="1")f=function(){var g=m(this.row,r,null,a);return e._arrayConverter(g,b)};else if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?e._arrayConverter(g,b):null};return f},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c++)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b++)a[b]=this.fieldOrder[b];return a}, hasMoreRows:function(){return this.numRows>this.rowIndex},next:function(){this.row=this.rows.item(++this.rowIndex)},curr:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this.row=this.hasMoreRows()?this.rows.item(this.rowIndex):null},fieldDef:function(a){var b=this.fields[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldIndex:function(a){a=this.fieldDef(a);return a.index},fieldName:function(a){var b= this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray(); this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a|| (a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a; return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,f){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=f;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var l="http: "_"+Xmla.Exception.MISSING_REQUEST_TYPE_MSG;Xmla.Exception.MISSING_STATEMENT_CDE=-2;Xmla.Exception.MISSING_STATEMENT_MSG="Missing_Statement";Xmla.Exception.MISSING_STATEMENT_HLP=l+"#"+Xmla.Exception.MISSING_STATEMENT_CDE+"_"+Xmla.Exception.MISSING_STATEMENT_MSG;Xmla.Exception.MISSING_URL_CDE=-3;Xmla.Exception.MISSING_URL_MSG="Missing_URL";Xmla.Exception.MISSING_URL_HLP=l+"#"+Xmla.Exception.MISSING_URL_CDE+"_"+Xmla.Exception.MISSING_URL_MSG;Xmla.Exception.NO_EVENTS_SPECIFIED_CDE=-4;Xmla.Exception.NO_EVENTS_SPECIFIED_MSG= "No_Events_Specified";Xmla.Exception.NO_EVENTS_SPECIFIED_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.WRONG_EVENTS_FORMAT_CDE=-5;Xmla.Exception.WRONG_EVENTS_FORMAT_MSG="Wrong_Events_Format";Xmla.Exception.WRONG_EVENTS_FORMAT_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.UNKNOWN_EVENT_CDE=-6;Xmla.Exception.UNKNOWN_EVENT_MSG="Unknown_Event";Xmla.Exception.UNKNOWN_EVENT_HLP=l+"#"+ Xmla.Exception.UNKNOWN_EVENT_CDE+"_"+Xmla.Exception.UNKNOWN_EVENT_MSG;Xmla.Exception.INVALID_EVENT_HANDLER_CDE=-7;Xmla.Exception.INVALID_EVENT_HANDLER_MSG="Invalid_Events_Handler";Xmla.Exception.INVALID_EVENT_HANDLER_HLP=l+"#"+Xmla.Exception.INVALID_EVENT_HANDLER_CDE+"_"+Xmla.Exception.INVALID_EVENT_HANDLER_MSG;Xmla.Exception.ERROR_PARSING_RESPONSE_CDE=-8;Xmla.Exception.ERROR_PARSING_RESPONSE_MSG="Error_Parsing_Response";Xmla.Exception.ERROR_PARSING_RESPONSE_HLP=l+"#"+Xmla.Exception.ERROR_PARSING_RESPONSE_CDE+ "_"+Xmla.Exception.ERROR_PARSING_RESPONSE_MSG;Xmla.Exception.INVALID_FIELD_CDE=-9;Xmla.Exception.INVALID_FIELD_MSG="Invalid_Field";Xmla.Exception.INVALID_FIELD_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception.HTTP_ERROR_CDE=-10;Xmla.Exception.HTTP_ERROR_MSG="HTTP Error";Xmla.Exception.HTTP_ERROR_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception._newError=function(a,b,d){return new Xmla.Exception(Xmla.Exception.TYPE_ERROR,
[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_PROPERTIES]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_SETS]=[];Xmla.Rowset.prototype={_type:null,rows:null,numRows:null,fieldOrder:null,fields:null,_fieldCount:null,_initData:function(a,b){this._type=b;this.numRows=(this.rows=o(a,s,null,"row"))?this.rows.length:0;this.reset();this.fieldOrder=[];this.fields={};this._fieldCount=0;var d=R(a);if(d){a=o(d,z,A,"sequence").item(0);a=a.childNodes;d=a.length;for(var c,e,h,f,i,n,k=0;k<d;k+=1){c=a.item(k);if(c.nodeType===1){e=C(c,H, G,"field");h=c.getAttribute("name");i=c.getAttribute("type");if(i===null&&this.row){f=this.row.getElementsByTagName(h);if(f.length)i=C(f.item(0),I,J,"type")}if(!i&&b==Xmla.DISCOVER_SCHEMA_ROWSETS&&h==="Restrictions")i="Restrictions";f=c.getAttribute("minOccurs");c=c.getAttribute("maxOccurs");n=this._getValueConverter(i);this.fields[e]={name:h,label:e,index:this._fieldCount+=1,type:i,jsType:n.jsType,minOccurs:j(f)?1:f,maxOccurs:j(c)?1:c==="unbounded"?Infinity:c,getter:this._createFieldGetter(h,n.func, f,c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,h=0;h<c;h+=1){e=a.item(h);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText; else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c+=1)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func= this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,h;if(c==="1")if(d==="1")h=function(){var f=o(this.row,s,null,a);return b(e._elementText(f.item(0)))};else{if(d==="0")h=function(){var f=o(this.row,s,null,a); return f.length?b(e._elementText(f.item(0))):null}}else if(d==="1")h=function(){var f=o(this.row,s,null,a);return e._arrayConverter(f,b)};else if(d==="0")h=function(){var f=o(this.row,s,null,a);return f.length?e._arrayConverter(f,b):null};return h},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c+=1)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b+=1)a[b]=this.fieldOrder[b]; return a},hasMoreRows:function(){return this.numRows>this.rowIndex},next:function(){this.rowIndex+=1;this.row=this.rows.item(this.rowIndex)},curr:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this.row=this.hasMoreRows()?this.rows.item(this.rowIndex):null},fieldDef:function(a){var b=this.fields[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldIndex:function(a){a=this.fieldDef(a);return a.index}, fieldName:function(a){var b=this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a= this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b; for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e,h=b.length,f=h-1,i=a;for(a=0;a<h;a+=1){c=b[a];c=d[c];if(e=i[c])if(a===f)if(e instanceof Array)e.push(d);else i[c]=[e,d];else i=e;else if(a===f)i[c]=d;else i=i[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a; return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,h){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=h;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var m="http: "_"+Xmla.Exception.MISSING_REQUEST_TYPE_MSG;Xmla.Exception.MISSING_STATEMENT_CDE=-2;Xmla.Exception.MISSING_STATEMENT_MSG="Missing_Statement";Xmla.Exception.MISSING_STATEMENT_HLP=m+"#"+Xmla.Exception.MISSING_STATEMENT_CDE+"_"+Xmla.Exception.MISSING_STATEMENT_MSG;Xmla.Exception.MISSING_URL_CDE=-3;Xmla.Exception.MISSING_URL_MSG="Missing_URL";Xmla.Exception.MISSING_URL_HLP=m+"#"+Xmla.Exception.MISSING_URL_CDE+"_"+Xmla.Exception.MISSING_URL_MSG;Xmla.Exception.NO_EVENTS_SPECIFIED_CDE=-4;Xmla.Exception.NO_EVENTS_SPECIFIED_MSG= "No_Events_Specified";Xmla.Exception.NO_EVENTS_SPECIFIED_HLP=m+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.WRONG_EVENTS_FORMAT_CDE=-5;Xmla.Exception.WRONG_EVENTS_FORMAT_MSG="Wrong_Events_Format";Xmla.Exception.WRONG_EVENTS_FORMAT_HLP=m+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.UNKNOWN_EVENT_CDE=-6;Xmla.Exception.UNKNOWN_EVENT_MSG="Unknown_Event";Xmla.Exception.UNKNOWN_EVENT_HLP=m+"#"+ Xmla.Exception.UNKNOWN_EVENT_CDE+"_"+Xmla.Exception.UNKNOWN_EVENT_MSG;Xmla.Exception.INVALID_EVENT_HANDLER_CDE=-7;Xmla.Exception.INVALID_EVENT_HANDLER_MSG="Invalid_Events_Handler";Xmla.Exception.INVALID_EVENT_HANDLER_HLP=m+"#"+Xmla.Exception.INVALID_EVENT_HANDLER_CDE+"_"+Xmla.Exception.INVALID_EVENT_HANDLER_MSG;Xmla.Exception.ERROR_PARSING_RESPONSE_CDE=-8;Xmla.Exception.ERROR_PARSING_RESPONSE_MSG="Error_Parsing_Response";Xmla.Exception.ERROR_PARSING_RESPONSE_HLP=m+"#"+Xmla.Exception.ERROR_PARSING_RESPONSE_CDE+ "_"+Xmla.Exception.ERROR_PARSING_RESPONSE_MSG;Xmla.Exception.INVALID_FIELD_CDE=-9;Xmla.Exception.INVALID_FIELD_MSG="Invalid_Field";Xmla.Exception.INVALID_FIELD_HLP=m+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception.HTTP_ERROR_CDE=-10;Xmla.Exception.HTTP_ERROR_MSG="HTTP Error";Xmla.Exception.HTTP_ERROR_HLP=m+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception._newError=function(a,b,d){return new Xmla.Exception(Xmla.Exception.TYPE_ERROR,
(function(){var v="http://schemas.xmlsoap.org/soap/",w=v+"envelope/",n="SOAP-ENV",F="xmlns:"+n+'="'+w+'"',x=n+':encodingStyle="'+v+'encoding/"',y="urn:schemas-microsoft-com:",z=y+"xml-analysis",G='xmlns="'+z+'"',H="sql",I=y+"xml-sql",A="http://www.w3.org/2001/XMLSchema",B="xsd",J="http://www.w3.org/2001/XMLSchema-instance",K="xsi",r=z+":rowset",L=window.ActiveXObject?true:false;function M(a){var b;b=L?new ActiveXObject("MSXML2.XMLHTTP.3.0"):new XMLHttpRequest;b.open("POST",a.url,a.async);var d=false;function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function t(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function C(a){return a.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(a,b,d,c){return t(a.getElementsByTagNameNS)?a.getElementsByTagNameNS(b,c):d?a.getElementsByTagName(d+":"+c):a.getElementsByTagName(c)}function D(a,b,d,c){return t(a.getAttributeNS)?a.getAttributeNS(b,c):d?a.getAttribute(d+":"+c):a.getAttribute(c)}function u(a,b,d,c){c||(c="");var e="\n"+c+"<"+a+">";if(d){var f;e+="\n"+c+" <"+b+">";for(var g in d)if(d.hasOwnProperty(g)){f=d[g];e+="\n"+c+" <"+g+">";if(typeof f==="array")for(var i,o=0,s=f.length;o<s;o++){i=f[o];e+="<Value>"+C(i)+"</Value>"}else e+=C(f);e+="</"+g+">"}e+="\n"+c+" </"+b+">"}e+="\n"+c+"</"+a+">";return e}var E="RequestType";function Q(a){var b="",d=a.method;b+="\n<"+n+":Envelope "+F+" "+x+">\n <"+n+":Body>\n <"+d+" "+G+" "+x+">";var c=null;switch(d){case Xmla.METHOD_DISCOVER:if(j(a.requestType))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <"+E+">"+a.requestType+"</"+E+">"+u("Restrictions","RestrictionList",a.restrictions," ")+u("Properties","PropertyList",a.properties," ");break;case Xmla.METHOD_EXECUTE:if(j(a.statement))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <Command>\n <Statement>"+a.statement+"</Statement>\n </Command>"+u("Properties","PropertyList",a.properties," ");break;default:}c!==null&&c._throw();b+="\n </"+d+">\n </"+n+":Body>\n</"+n+":Envelope>";return b}function h(a,b,d){if(b&&!a)a={};for(var c in b)if(b.hasOwnProperty(c))if(d||j(a[c]))a[c]=b[c];return a}Xmla=function(a){this.listeners={};this.listeners[Xmla.EVENT_REQUEST]=[];this.listeners[Xmla.EVENT_SUCCESS]=[];this.listeners[Xmla.EVENT_ERROR]=[];this.listeners[Xmla.EVENT_DISCOVER]=[];this.listeners[Xmla.EVENT_DISCOVER_SUCCESS]=[];this.listeners[Xmla.EVENT_DISCOVER_ERROR]=[];this.listeners[Xmla.EVENT_EXECUTE]=[];this.listeners[Xmla.EVENT_EXECUTE_SUCCESS]=[];this.listeners[Xmla.EVENT_EXECUTE_ERROR]=[];this.options=h(h({},Xmla.defaultOptions,true),a,true);return this};Xmla.defaultOptions={requestTimeout:30000,async:false};Xmla.METHOD_DISCOVER="Discover";Xmla.METHOD_EXECUTE="Execute";var p="DISCOVER_",k="MDSCHEMA_",q="DBSCHEMA_";Xmla.DISCOVER_DATASOURCES=p+"DATASOURCES";Xmla.DISCOVER_PROPERTIES=p+"PROPERTIES";Xmla.DISCOVER_SCHEMA_ROWSETS=p+"SCHEMA_ROWSETS";Xmla.DISCOVER_ENUMERATORS=p+"ENUMERATORS";Xmla.DISCOVER_KEYWORDS=p+"KEYWORDS";Xmla.DISCOVER_LITERALS=p+"LITERALS";Xmla.DBSCHEMA_CATALOGS=q+"CATALOGS";Xmla.DBSCHEMA_COLUMNS=q+"COLUMNS";Xmla.DBSCHEMA_PROVIDER_TYPES=q+"PROVIDER_TYPES";Xmla.DBSCHEMA_SCHEMATA=q+"SCHEMATA";Xmla.DBSCHEMA_TABLES=q+"TABLES";Xmla.DBSCHEMA_TABLES_INFO=q+"TABLES_INFO";Xmla.MDSCHEMA_ACTIONS=k+"ACTIONS";Xmla.MDSCHEMA_CUBES=k+"CUBES";Xmla.MDSCHEMA_DIMENSIONS=k+"DIMENSIONS";Xmla.MDSCHEMA_FUNCTIONS=k+"FUNCTIONS";Xmla.MDSCHEMA_HIERARCHIES=k+"HIERARCHIES";Xmla.MDSCHEMA_LEVELS=k+"LEVELS";Xmla.MDSCHEMA_MEASURES=k+"MEASURES";Xmla.MDSCHEMA_MEMBERS=k+"MEMBERS";Xmla.MDSCHEMA_PROPERTIES=k+"PROPERTIES";Xmla.MDSCHEMA_SETS=k+"SETS";Xmla.EVENT_REQUEST="request";Xmla.EVENT_SUCCESS="success";Xmla.EVENT_ERROR="error";Xmla.EVENT_EXECUTE="execute";Xmla.EVENT_EXECUTE_SUCCESS="executesuccess";Xmla.EVENT_EXECUTE_ERROR="executeerror";Xmla.EVENT_DISCOVER="discover";Xmla.EVENT_DISCOVER_SUCCESS="discoversuccess";Xmla.EVENT_DISCOVER_ERROR="discovererror";Xmla.EVENT_GENERAL=[Xmla.EVENT_REQUEST,Xmla.EVENT_SUCCESS,Xmla.EVENT_ERROR];Xmla.EVENT_DISCOVER_ALL=[Xmla.EVENT_DISCOVER,Xmla.EVENT_DISCOVER_SUCCESS,Xmla.EVENT_DISCOVER_ERROR];Xmla.EVENT_EXECUTE_ALL=[Xmla.EVENT_EXECUTE,Xmla.EVENT_EXECUTE_SUCCESS,Xmla.EVENT_EXECUTE_ERROR];Xmla.EVENT_ALL=[].concat(Xmla.EVENT_GENERAL,Xmla.EVENT_DISCOVER_ALL,Xmla.EVENT_EXECUTE_ALL);Xmla.PROP_DATASOURCEINFO="DataSourceInfo";Xmla.PROP_CATALOG="Catalog";Xmla.PROP_CUBE="Cube";Xmla.PROP_FORMAT="Format";Xmla.PROP_FORMAT_TABULAR="Tabular";Xmla.PROP_FORMAT_MULTIDIMENSIONAL="Multidimensional";Xmla.PROP_AXISFORMAT="AxisFormat";Xmla.PROP_AXISFORMAT_TUPLE="TupleFormat";Xmla.PROP_AXISFORMAT_CLUSTER="ClusterFormat";Xmla.PROP_AXISFORMAT_CUSTOM="CustomFormat";Xmla.PROP_CONTENT="Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=a.events;j(b)&&Xmla.Exception._newError("NO_EVENTS_SPECIFIED","Xmla.addListener",a)._throw();if(N(b))b=b==="all"?Xmla.EVENT_ALL:b.split(",");b instanceof Array||Xmla.Exception._newError("WRONG_EVENTS_FORMAT","Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e++){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(t(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw();var e=c.length,f=true;if(e)for(var g,i=0;i<e;i++){g=c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);ex._throw()}a.properties=h(a.properties,this.options.properties,false);a.restrictions=h(a.restrictions,this.options.restrictions,false);a.async=j(a.async)?this.options.async:a.async;a.requestTimeout=j(a.requestTimeout)?this.options.requestTimeout:a.requestTimeout;var d=Q(a);this.soapMessage=d;d={async:a.async,timeout:a.requestTimeout,data:d,error:function(){a.exception=exeception;b._requestError(a)},complete:function(c){a.xhr=c;b._requestSuccess(a)},url:a.url};if(a.username)d.username=a.username;if(a.password)d.password=a.password;if(this._fireEvent(Xmla.EVENT_REQUEST,a,true)&&(a.method==Xmla.METHOD_DISCOVER&&this._fireEvent(Xmla.EVENT_DISCOVER,a)||a.method==Xmla.METHOD_EXECUTE&&this._fireEvent(Xmla.EVENT_EXECUTE,a)))d=M(d);return this.response},_requestError:function(a){this._fireEvent("error",a)},_requestSuccess:function(a){var b=a.xhr;this.responseXML=b.responseXML;this.responseText=b.responseText;b=a.method;var d=m(this.responseXML,w,n,"Fault");if(d.length){d=d.item(0);a.exception=new Xmla.Exception(Xmla.Exception.TYPE_ERROR,d.getElementsByTagName("faultcode").item(0).childNodes.item(0).data,d.getElementsByTagName("faultstring").item(0).childNodes.item(0).data,null,"_requestSuccess",a);switch(b){case Xmla.METHOD_DISCOVER:this._fireEvent(Xmla.EVENT_DISCOVER_ERROR,a);break;case Xmla.METHOD_EXECUTE:this._fireEvent(Xmla.EVENT_EXECUTE_ERROR,a);break}this._fireEvent(Xmla.EVENT_ERROR,a)}else{switch(b){case Xmla.METHOD_DISCOVER:var c=new Xmla.Rowset(this.responseXML,a.requestType);this.response=a.rowset=c;this._fireEvent(Xmla.EVENT_DISCOVER_SUCCESS,a);break;case Xmla.METHOD_EXECUTE:b=a.properties[Xmla.PROP_FORMAT];switch(b){case Xmla.PROP_FORMAT_TABULAR:c=new Xmla.Rowset(this.responseXML);break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=h(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=h(a,{requestType:Xmla.DISCOVER_PROPERTIES},true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYWORDS},true);return this.discover(a)},discoverLiterals:function(a){a=h(a,{requestType:Xmla.DISCOVER_LITERALS},true);return this.discover(a)},discoverDBCatalogs:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_CATALOGS},true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMATA},true);return this.discover(a)},discoverDBTables:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES},true);return this.discover(a)},discoverDBTablesInfo:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_TABLES_INFO},true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);return this.discover(a)},discoverMDFunctions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_FUNCTIONS},true);return this.discover(a)},discoverMDHierarchies:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_HIERARCHIES},true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);return this.discover(a)},discoverMDProperties:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_PROPERTIES},true);return this.discover(a)},discoverMDSets:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_SETS},true);return this.discover(a)}};function R(a){a=m(a,A,B,"complexType");var b=a.length,d,c;for(c=0;c<b;c++){d=a.item(c);if(d.getAttribute("name")==="row")return d}return null}Xmla.Rowset=function(a,b){this._initData(a,b);return this};Xmla.Rowset.MD_DIMTYPE_UNKNOWN=0;Xmla.Rowset.MD_DIMTYPE_TIME=1;Xmla.Rowset.MD_DIMTYPE_MEASURE=2;Xmla.Rowset.MD_DIMTYPE_OTHER=3;Xmla.Rowset.MD_DIMTYPE_QUANTITATIVE=5;Xmla.Rowset.MD_DIMTYPE_ACCOUNTS=6;Xmla.Rowset.MD_DIMTYPE_CUSTOMERS=7;Xmla.Rowset.MD_DIMTYPE_PRODUCTS=8;Xmla.Rowset.MD_DIMTYPE_SCENARIO=9;Xmla.Rowset.MD_DIMTYPE_UTILIY=10;Xmla.Rowset.MD_DIMTYPE_CURRENCY=11;Xmla.Rowset.MD_DIMTYPE_RATES=12;Xmla.Rowset.MD_DIMTYPE_CHANNEL=13;Xmla.Rowset.MD_DIMTYPE_PROMOTION=14;Xmla.Rowset.MD_DIMTYPE_ORGANIZATION=15;Xmla.Rowset.MD_DIMTYPE_BILL_OF_MATERIALS=16;Xmla.Rowset.MD_DIMTYPE_GEOGRAPHY=17;Xmla.Rowset.KEYS={};Xmla.Rowset.KEYS[Xmla.DBSCHEMA_CATALOGS]=["CATALOG_NAME"];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_COLUMNS]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_PROVIDER_TYPES]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_SCHEMATA]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_TABLES]=[];Xmla.Rowset.KEYS[Xmla.DBSCHEMA_TABLES_INFO]=[];Xmla.Rowset.KEYS[Xmla.DISCOVER_DATASOURCES]=["DataSourceName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_ENUMERATORS]=["EnumName","ElementName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_KEYWORDS]=["Keyword"];Xmla.Rowset.KEYS[Xmla.DISCOVER_LITERALS]=["LiteralName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_PROPERTIES]=["PropertyName"];Xmla.Rowset.KEYS[Xmla.DISCOVER_SCHEMA_ROWSETS]=["SchemaName"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_ACTIONS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_CUBES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_DIMENSIONS]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","DIMENSION_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_FUNCTIONS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_HIERARCHIES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","HIERARCHY_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_LEVELS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_MEASURES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","MEASURE_NAME"];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_MEMBERS]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_PROPERTIES]=[];Xmla.Rowset.KEYS[Xmla.MDSCHEMA_SETS]=[];Xmla.Rowset.prototype={_type:null,rows:null,numRows:null,fieldOrder:null,fields:null,_fieldCount:null,_initData:function(a,b){this._type=b;this.numRows=(this.rows=m(a,r,null,"row"))?this.rows.length:0;this.reset();this.fieldOrder=[];this.fields={};this._fieldCount=0;var d=R(a);if(d){a=m(d,A,B,"sequence").item(0);a=a.childNodes;d=a.length;for(var c,e,f,g,i,o,s=0;s<d;s++){c=a.item(s);if(c.nodeType==1){e=D(c,I,H,"field");f=c.getAttribute("name");i=c.getAttribute("type");if(i==null&&this.row){g=this.row.getElementsByTagName(f);if(g.length)i=D(g.item(0),J,K,"type")}if(!i&&b==Xmla.DISCOVER_SCHEMA_ROWSETS&&f=="Restrictions")i="Restrictions";g=c.getAttribute("minOccurs");c=c.getAttribute("maxOccurs");o=this._getValueConverter(i);this.fields[e]={name:f,label:e,index:this._fieldCount++,type:i,jsType:o.jsType,minOccurs:j(g)?1:g,maxOccurs:j(c)?1:c==="unbounded"?Infinity:c,getter:this._createFieldGetter(f,o.func,g,c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText;else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c++)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func=this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,f;if(c==="1")if(d==="1")f=function(){var g=m(this.row,r,null,a);return b(e._elementText(g.item(0)))};else{if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?b(e._elementText(g.item(0))):null}}else if(d==="1")f=function(){var g=m(this.row,r,null,a);return e._arrayConverter(g,b)};else if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?e._arrayConverter(g,b):null};return f},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c++)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b++)a[b]=this.fieldOrder[b];return a},hasMoreRows:function(){return this.numRows>this.rowIndex},next:function(){this.row=this.rows.item(++this.rowIndex)},curr:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this.row=this.hasMoreRows()?this.rows.item(this.rowIndex):null},fieldDef:function(a){var b=this.fields[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldIndex:function(a){a=this.fieldDef(a);return a.index},fieldName:function(a){var b=this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,f){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=f;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var l="http://code.google.com/p/xmla4js/wiki/ExceptionCodes";Xmla.Exception.MISSING_REQUEST_TYPE_CDE=-1;Xmla.Exception.MISSING_REQUEST_TYPE_MSG="Missing_Request_Type";Xmla.Exception.MISSING_REQUEST_TYPE_HLP=l+"#"+Xmla.Exception.MISSING_REQUEST_TYPE_CDE+"_"+Xmla.Exception.MISSING_REQUEST_TYPE_MSG;Xmla.Exception.MISSING_STATEMENT_CDE=-2;Xmla.Exception.MISSING_STATEMENT_MSG="Missing_Statement";Xmla.Exception.MISSING_STATEMENT_HLP=l+"#"+Xmla.Exception.MISSING_STATEMENT_CDE+"_"+Xmla.Exception.MISSING_STATEMENT_MSG;Xmla.Exception.MISSING_URL_CDE=-3;Xmla.Exception.MISSING_URL_MSG="Missing_URL";Xmla.Exception.MISSING_URL_HLP=l+"#"+Xmla.Exception.MISSING_URL_CDE+"_"+Xmla.Exception.MISSING_URL_MSG;Xmla.Exception.NO_EVENTS_SPECIFIED_CDE=-4;Xmla.Exception.NO_EVENTS_SPECIFIED_MSG="No_Events_Specified";Xmla.Exception.NO_EVENTS_SPECIFIED_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.WRONG_EVENTS_FORMAT_CDE=-5;Xmla.Exception.WRONG_EVENTS_FORMAT_MSG="Wrong_Events_Format";Xmla.Exception.WRONG_EVENTS_FORMAT_HLP=l+"#"+Xmla.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+Xmla.Exception.NO_EVENTS_SPECIFIED_MSG;Xmla.Exception.UNKNOWN_EVENT_CDE=-6;Xmla.Exception.UNKNOWN_EVENT_MSG="Unknown_Event";Xmla.Exception.UNKNOWN_EVENT_HLP=l+"#"+Xmla.Exception.UNKNOWN_EVENT_CDE+"_"+Xmla.Exception.UNKNOWN_EVENT_MSG;Xmla.Exception.INVALID_EVENT_HANDLER_CDE=-7;Xmla.Exception.INVALID_EVENT_HANDLER_MSG="Invalid_Events_Handler";Xmla.Exception.INVALID_EVENT_HANDLER_HLP=l+"#"+Xmla.Exception.INVALID_EVENT_HANDLER_CDE+"_"+Xmla.Exception.INVALID_EVENT_HANDLER_MSG;Xmla.Exception.ERROR_PARSING_RESPONSE_CDE=-8;Xmla.Exception.ERROR_PARSING_RESPONSE_MSG="Error_Parsing_Response";Xmla.Exception.ERROR_PARSING_RESPONSE_HLP=l+"#"+Xmla.Exception.ERROR_PARSING_RESPONSE_CDE+"_"+Xmla.Exception.ERROR_PARSING_RESPONSE_MSG;Xmla.Exception.INVALID_FIELD_CDE=-9;Xmla.Exception.INVALID_FIELD_MSG="Invalid_Field";Xmla.Exception.INVALID_FIELD_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception.HTTP_ERROR_CDE=-10;Xmla.Exception.HTTP_ERROR_MSG="HTTP Error";Xmla.Exception.HTTP_ERROR_HLP=l+"#"+Xmla.Exception.INVALID_FIELD_CDE+"_"+Xmla.Exception.INVALID_FIELD_MSG;Xmla.Exception._newError=function(a,b,d){return new Xmla.Exception(Xmla.Exception.TYPE_ERROR,Xmla.Exception[a+"_CDE"],Xmla.Exception[a+"_MSG"],Xmla.Exception[a+"_HLP"],b,d)};Xmla.Exception.prototype={type:null,code:null,message:null,source:null,helpfile:null,data:null,_throw:function(){throw this;}}})();
$(self).bind(name, fn);
if (fn) { $(self).bind(name, fn); }
(function($) { // static constructs $.tools = $.tools || {version: '@VERSION'}; $.tools.tabs = { conf: { tabs: 'a', current: 'current', onBeforeClick: null, onClick: null, effect: 'default', initialIndex: 0, event: 'click', rotate: false, // 1.2 history: false }, addEffect: function(name, fn) { effects[name] = fn; } }; var effects = { // simple "toggle" effect 'default': function(i, done) { this.getPanes().hide().eq(i).show(); done.call(); }, /* configuration: - fadeOutSpeed (positive value does "crossfading") - fadeInSpeed */ fade: function(i, done) { var conf = this.getConf(), speed = conf.fadeOutSpeed, panes = this.getPanes(); if (speed) { panes.fadeOut(speed); } else { panes.hide(); } panes.eq(i).fadeIn(conf.fadeInSpeed, done); }, // for basic accordions slide: function(i, done) { this.getPanes().slideUp(200); this.getPanes().eq(i).slideDown(400, done); }, /** * AJAX effect */ ajax: function(i, done) { this.getPanes().eq(0).load(this.getTabs().eq(i).attr("href"), done); } }; var w; /** * Horizontal accordion * * @deprecated will be replaced with a more robust implementation */ $.tools.tabs.addEffect("horizontal", function(i, done) { // store original width of a pane into memory if (!w) { w = this.getPanes().eq(0).width(); } // set current pane's width to zero this.getCurrentPane().animate({width: 0}, function() { $(this).hide(); }); // grow opened pane to it's original width this.getPanes().eq(i).animate({width: w}, function() { $(this).show(); done.call(); }); }); function Tabs(root, paneSelector, conf) { var self = this, trigger = root.add(this), tabs = root.find(conf.tabs), panes = paneSelector.jquery ? paneSelector : root.children(paneSelector), current; // make sure tabs and panes are found if (!tabs.length) { tabs = root.children(); } if (!panes.length) { panes = root.parent().find(paneSelector); } if (!panes.length) { panes = $(paneSelector); } // public methods $.extend(this, { click: function(i, e) { var tab = tabs.eq(i); if (typeof i == 'string' && i.replace("#", "")) { tab = tabs.filter("[href*=" + i.replace("#", "") + "]"); i = Math.max(tabs.index(tab), 0); } if (conf.rotate) { var last = tabs.length -1; if (i < 0) { return self.click(last, e); } if (i > last) { return self.click(0, e); } } if (!tab.length) { if (current >= 0) { return self; } i = conf.initialIndex; tab = tabs.eq(i); } // current tab is being clicked if (i === current) { return self; } // possibility to cancel click action e = e || $.Event(); e.type = "onBeforeClick"; trigger.trigger(e, [i]); if (e.isDefaultPrevented()) { return; } // call the effect effects[conf.effect].call(self, i, function() { // onClick callback e.type = "onClick"; trigger.trigger(e, [i]); }); // default behaviour current = i; tabs.removeClass(conf.current); tab.addClass(conf.current); return self; }, getConf: function() { return conf; }, getTabs: function() { return tabs; }, getPanes: function() { return panes; }, getCurrentPane: function() { return panes.eq(current); }, getCurrentTab: function() { return tabs.eq(current); }, getIndex: function() { return current; }, next: function() { return self.click(current + 1); }, prev: function() { return self.click(current - 1); }, destroy: function() { tabs.unbind(conf.event).removeClass(conf.current); panes.find("a[href^=#]").unbind("click.T"); return self; } }); // callbacks $.each("onBeforeClick,onClick".split(","), function(i, name) { // configuration if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } // API self[name] = function(fn) { $(self).bind(name, fn); return self; }; }); if (conf.history && $.fn.history) { $.tools.history.init(tabs); conf.event = 'history'; } // setup click actions for each tab tabs.each(function(i) { $(this).bind(conf.event, function(e) { self.click(i, e); return e.preventDefault(); }); }); // cross tab anchor link panes.find("a[href^=#]").bind("click.T", function(e) { self.click($(this).attr("href"), e); }); // open initial tab if (location.hash && conf.tabs === "a" && root.find(conf.tabs + location.hash).length) { self.click(location.hash); } else { if (conf.initialIndex === 0 || conf.initialIndex > 0) { self.click(conf.initialIndex); } } } // jQuery plugin implementation $.fn.tabs = function(paneSelector, conf) { // return existing instance var el = this.data("tabs"); if (el) { el.destroy(); this.removeData("tabs"); } if ($.isFunction(conf)) { conf = {onBeforeClick: conf}; } // setup conf conf = $.extend({}, $.tools.tabs.conf, conf); this.each(function() { el = new Tabs($(this), paneSelector, conf); $(this).data("tabs", el); }); return conf.api ? el: this; }; }) (jQuery);
*/
$(document).ready(function(){ // Add rounded corners $("div#register_ad_box").corner(); $("div#login_box").corner(); $("div#register_box").corner(); $("div#register_priv_box").corner(); $("div#forgot_box").corner();});
if (out === null) out = s; else if (s.length < 2) out += "\\" + s;
if (out === null) out = s; else if (s.length < 2) out += "\\" + s; else { var c = charMap[s.substring(0, 2)]; if (c !== undefined) out += c + s.substring(2);
arr.each(function(s) { if (out === null) out = s; else if (s.length < 2) out += "\\" + s; else { var c = charMap[s.substring(0, 2)]; if (c !== undefined) out += c + s.substring(2); else { c = charMap2[s.substring(0, 3)]; if (c !== undefined) out += c + s.substring(3); else out += "\\" + s; } } });
var c = charMap[s.substring(0, 2)];
c = charMap2[s.substring(0, 3)];
arr.each(function(s) { if (out === null) out = s; else if (s.length < 2) out += "\\" + s; else { var c = charMap[s.substring(0, 2)]; if (c !== undefined) out += c + s.substring(2); else { c = charMap2[s.substring(0, 3)]; if (c !== undefined) out += c + s.substring(3); else out += "\\" + s; } } });
out += c + s.substring(2); else { c = charMap2[s.substring(0, 3)]; if (c !== undefined) out += c + s.substring(3); else out += "\\" + s; }
out += c + s.substring(3); else out += "\\" + s;
arr.each(function(s) { if (out === null) out = s; else if (s.length < 2) out += "\\" + s; else { var c = charMap[s.substring(0, 2)]; if (c !== undefined) out += c + s.substring(2); else { c = charMap2[s.substring(0, 3)]; if (c !== undefined) out += c + s.substring(3); else out += "\\" + s; } } });
});
} });
arr.each(function(s) { if (out === null) out = s; else if (s.length < 2) out += "\\" + s; else { var c = charMap[s.substring(0, 2)]; if (c !== undefined) out += c + s.substring(2); else { c = charMap2[s.substring(0, 3)]; if (c !== undefined) out += c + s.substring(3); else out += "\\" + s; } } });
this.children.each(function(child) { child.draw(printer, bartop);
this.beams.each(function(beam) { beam.draw(printer);
this.children.each(function(child) { child.draw(printer, bartop); });
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p>'+c.about_throwt_image+'</p>'+'<p>'+c.version+x.data.scayt.version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p><img src="'+window.scayt.getAboutInfo().logoURL+'" /></p>'+'<p>'+c.version+window.scayt.getAboutInfo().version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);
CKEDITOR.dialog.add('scaytcheck',function(a){var b=true,c,d=CKEDITOR.document,e=[],f,g=[],h=false,i=['dic_create,dic_restore','dic_rename,dic_delete'],j=['mixedCase','mixedWithDigits','allCaps','ignoreDomainNames'];function k(){return document.forms.optionsbar.options;};function l(){return document.forms.languagesbar.scayt_lang;};function m(x,y){if(!x)return;var z=x.length;if(z==undefined){x.checked=x.value==y.toString();return;}for(var A=0;A<z;A++){x[A].checked=false;if(x[A].value==y.toString())x[A].checked=true;}};var n=[{id:'options',label:a.lang.scayt.optionsTab,elements:[{type:'html',id:'options',html:'<form name="optionsbar"><div class="inner_options">\t<div class="messagebox"></div>\t<div style="display:none;">\t\t<input type="checkbox" name="options" id="allCaps" />\t\t<label for="allCaps" id="label_allCaps"></label>\t</div>\t<div style="display:none;">\t\t<input name="options" type="checkbox" id="ignoreDomainNames" />\t\t<label for="ignoreDomainNames" id="label_ignoreDomainNames"></label>\t</div>\t<div style="display:none;">\t<input name="options" type="checkbox" id="mixedCase" />\t\t<label for="mixedCase" id="label_mixedCase"></label>\t</div>\t<div style="display:none;">\t\t<input name="options" type="checkbox" id="mixedWithDigits" />\t\t<label for="mixedWithDigits" id="label_mixedWithDigits"></label>\t</div></div></form>'}]},{id:'langs',label:a.lang.scayt.languagesTab,elements:[{type:'html',id:'langs',html:'<form name="languagesbar"><div class="inner_langs">\t<div class="messagebox"></div>\t <div style="float:left;width:45%;margin-left:5px;" id="scayt_lcol" ></div> <div style="float:left;width:45%;margin-left:15px;" id="scayt_rcol"></div></div></form>'}]},{id:'dictionaries',label:a.lang.scayt.dictionariesTab,elements:[{type:'html',style:'',id:'dictionaries',html:'<form name="dictionarybar"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">\t<div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message"> </div>\t<div style="margin:5px auto; width:80%;white-space:normal;"> <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>\t\t<span class="cke_dialog_ui_labeled_content" >\t\t\t<div class="cke_dialog_ui_input_text">\t\t\t\t<input id="dic_name" type="text" class="cke_dialog_ui_input_text"/>\t\t</div></span></div>\t\t<div style="margin:5px auto; width:80%;white-space:normal;">\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_create">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_delete">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_rename">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_restore">\t\t\t\t</a>\t\t</div>\t<div style="margin:5px auto; width:95%;white-space:normal;" id="dic_info"></div></div></form>'}]},{id:'about',label:a.lang.scayt.aboutTab,elements:[{type:'html',id:'about',style:'margin: 5px 5px;',html:'<div id="scayt_about"></div>'}]}],o={title:a.lang.scayt.title,minWidth:360,minHeight:220,onShow:function(){var x=this;x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p>'+c.about_throwt_image+'</p>'+'<p>'+c.version+x.data.scayt.version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);w(S);t(U);},function(V){T=T.replace('%s',V.dname);w(S);s(T+'( '+(V.message||'')+' )');});};M.dic_delete=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_delete,W=c.succ_dic_delete;window.scayt.deleteUserDictionary(function(X){W=W.replace('%s',X.dname);v(U);u(T[0]);w('');t(W);},function(X){V=V.replace('%s',X.dname);s(V);});};M.dic_restore=x.dic_restore||(function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_restore,W=c.succ_dic_restore;window.scayt.restoreUserDictionary(S,function(X){W=W.replace('%s',X.dname);v(U);u(T[1]);t(W);},function(X){V=V.replace('%s',X.dname);s(V);});});function N(R){var S=d.getById('dic_name').getValue();if(!S){s(' Dictionary name should not be empty. ');return false;}try{var T=id=R.data.getTarget().getParent(),U=T.getId();M[U].apply(null,[T,S,i]);}catch(V){s(' Dictionary error. ');}return true;};var O=(i[0]+','+i[1]).split(','),P;for(B=0,P=O.length;B<P;B+=1){var Q=d.getById(O[B]);if(Q)Q.on('click',N,this);}},r=function(){var x=this;if(e[0]==1){var y=k();for(var z=0,A=y.length;z<A;z++){var B=y[z].id,C=d.getById(B);if(C){y[z].checked=false;if(x.options[B]==1)y[z].checked=true;if(b)C.on('click',function(){x.options[this.getId()]=this.$.checked?1:0;});}}}if(e[1]==1){var D=d.getById('cke_option'+x.sLang);m(D.$,x.sLang);}if(h){window.scayt.getNameUserDictionary(function(E){var F=E.dname;v(i[0]+','+i[1]);if(F){d.getById('dic_name').setValue(F);u(i[1]);}else u(i[0]);},function(){d.getById('dic_name').setValue('');});t('');}};function s(x){d.getById('dic_message').setHtml('<span style="color:red;">'+x+'</span>');};function t(x){d.getById('dic_message').setHtml('<span style="color:blue;">'+x+'</span>');};function u(x){x=String(x);var y=x.split(',');for(var z=0,A=y.length;z<A;z+=1)d.getById(y[z]).$.style.display='inline';};function v(x){x=String(x);var y=x.split(',');for(var z=0,A=y.length;z<A;z+=1)d.getById(y[z]).$.style.display='none';};function w(x){d.getById('dic_name').$.value=x;};return o;});
(function(x,v){function Y(){if(!d.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(Y,1);return}d.ready()}}function ra(a,b){b.src?d.ajax({url:b.src,async:false,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function S(a,b,e,g,h,k){var l=a.length;if(typeof b==="object"){for(var q in b)S(a,q,b[q],g,h,e);return a}if(e!==v){g=g&&d.isFunction(e);for(q=0;q<l;q++)h(a[q],b,g?e.call(a[q],q,h(a[q],b)):e,k);return a}return l? h(a[0],b):null}function Z(){return(new Date).getTime()}function $(a,b){var e=0;b.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var g=d.data(a[e++]),h=d.data(this,g);if(g=g&&g.events){delete h.handle;h.events={};for(var k in g)for(var l in g[k])d.event.add(this,k,g[k][l],g[k][l].data)}}})}function aa(a,b,e){var g,h,k;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&a[0].indexOf("<option")<0){h=true;if(k=d.fragments[a[0]])if(k!==1)g=k}if(!g){b=b&&b[0]?b[0].ownerDocument||b[0]:r; g=b.createDocumentFragment();d.clean(a,b,g,e)}if(h)d.fragments[a[0]]=k?g:1;return{fragment:g,cacheable:h}}function M(a){for(var b=0,e,g;(e=a[b])!=null;b++)if(!d.noData[e.nodeName.toLowerCase()]&&(g=e[B]))delete d.cache[g]}function ba(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,b){return new d.fn.init(a,b)},sa=x.jQuery,ta=x.$,r=x.document,N,ua=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,va=/^.[^:#\[\.,]*$/,wa=/\S/,xa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g, ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent,ca=false,H=[],E,T=Object.prototype.toString,U=Object.prototype.hasOwnProperty,V=Array.prototype.push,I=Array.prototype.slice,O=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,b){var e,g;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!b))if(e[1]){g=b?b.ownerDocument||b:r;if(a=ya.exec(a))if(d.isPlainObject(b)){a=[r.createElement(a[1])];d.fn.attr.call(a, b,true)}else a=[g.createElement(a[1])];else{a=aa([e[1]],[g]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(e[2])){if(b.id!==e[2])return N.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||N).find(a):d(b).find(a);else if(d.isFunction(a))return N.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return d.isArray(a)? this.setArray(a):d.makeArray(a,this)},selector:"",jquery:"1.4b1pre",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,e){a=d(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;V.apply(this,a);return this},each:function(a, b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(r,d);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||d(null)},push:V,sort:[].sort, splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,h,k,l,q;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(g&&q&&(d.isPlainObject(q)||d.isArray(q))){l=l&&(d.isPlainObject(l)||d.isArray(l))?l:d.isArray(q)?[]:{};a[k]=d.extend(g,l,q)}else if(q!==v)a[k]=q}return a};d.extend({noConflict:function(a){x.$= ta;if(a)x.jQuery=sa;return d},isReady:false,ready:function(){if(!d.isReady){if(!r.body)return setTimeout(d.ready,13);d.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,d);H=null}d.fn.triggerHandler&&d(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return d.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",d.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload", d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false; return true},noop:function(){},globalEval:function(a){if(a&&wa.test(a)){var b=r.getElementsByTagName("head")[0]||r.documentElement,e=r.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(r.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,e){var g,h=0,k=a.length,l=k===v||d.isFunction(a);if(e)if(l)for(g in a){if(b.apply(a[g],e)=== false)break}else for(;h<k;){if(b.apply(a[h++],e)===false)break}else if(l)for(g in a){if(b.call(a[g],g,a[g])===false)break}else for(e=a[0];h<k&&b.call(e,h,e)!==false;e=a[++h]);return a},trim:function(a){return(a||"").replace(xa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||d.isFunction(a)||typeof a!=="function"&&a.setInterval?V.call(b,a):d.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var e=0,g=b.length;e<g;e++)if(b[e]===a)return e; return-1},merge:function(a,b){var e=a.length,g=0;if(typeof b.length==="number")for(var h=b.length;g<h;g++)a[e++]=b[g];else for(;b[g]!==v;)a[e++]=b[g++];a.length=e;return a},grep:function(a,b,e){for(var g=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&g.push(a[h]);return g},map:function(a,b,e){for(var g=[],h,k=0,l=a.length;k<l;k++){h=b(a[k],k,e);if(h!=null)g[g.length]=h}return g.concat.apply([],g)},guid:1,proxy:function(a,b,e){if(arguments.length===2)if(typeof b==="string"){e=a;a=e[b];b=v}else if(b&&!d.isFunction(b)){e= b;b=v}if(!b&&a)b=function(){return a.apply(e||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||d.guid++;return b},uaMatch:function(a){var b={browser:""};a=a.toLowerCase();if(/webkit/.test(a))b={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};else if(/opera/.test(a))b={browser:"opera",version:/opera[\/ ]([\w.]+)/};else if(/msie/.test(a))b={browser:"msie",version:/msie ([\w.]+)/};else if(/mozilla/.test(a)&&!/compatible/.test(a))b={browser:"mozilla",version:/rv:([\w.]+)/};b.version=(b.version&&b.version.exec(a)|| [0,"0"])[1];return b},browser:{}});G=d.uaMatch(G);if(G.browser){d.browser[G.browser]=true;d.browser.version=G.version}if(d.browser.webkit)d.browser.safari=true;if(O)d.inArray=function(a,b){return O.call(b,a)};N=d(r);if(r.addEventListener)E=function(){r.removeEventListener("DOMContentLoaded",E,false);d.ready()};else if(r.attachEvent)E=function(){if(r.readyState==="complete"){r.detachEvent("onreadystatechange",E);d.ready()}};if(O)d.inArray=function(a,b){return O.call(b,a)};(function(){d.support={}; var a=r.documentElement,b=r.createElement("script"),e=r.createElement("div"),g="script"+Z();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var h=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!h||!h.length||!k)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")), hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+g+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(x[g]){d.support.scriptEval=true;delete x[g]}a.removeChild(b);if(e.attachEvent&& e.fireEvent){e.attachEvent("onclick",function q(){d.support.noCloneEvent=false;e.detachEvent("onclick",q)});e.cloneNode(true).fireEvent("onclick")}d(function(){var q=r.createElement("div");q.style.width=q.style.paddingLeft="1px";r.body.appendChild(q);d.boxModel=d.support.boxModel=q.offsetWidth===2;r.body.removeChild(q).style.display="none"});a=function(q){var p=r.createElement("div");q="on"+q;var o=q in p;if(!o){p.setAttribute(q,"return;");o=typeof p[q]==="function"}return o};d.support.submitBubbles= a("submit");d.support.changeBubbles=a("change");a=b=e=h=k=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var B="jQuery"+Z(),za=0,da={},Aa={};d.extend({cache:{},expando:B,noData:{embed:true,object:true,applet:true},data:function(a,b,e){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var g=a[B],h=d.cache;if(!b&& !g)return null;g||(g=++za);if(typeof b==="object"){a[B]=g;h=h[g]=d.extend(true,{},b)}else h=h[g]?h[g]:typeof e==="undefined"?Aa:(h[g]={});if(e!==v){a[B]=g;h[b]=e}return typeof b==="string"?h[b]:h}},removeData:function(a,b){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var e=a[B],g=d.cache,h=g[e];if(b){if(h){delete h[b];d.isEmptyObject(h)&&d.removeData(a)}}else{try{delete a[B]}catch(k){a.removeAttribute&&a.removeAttribute(B)}delete g[e]}}}});d.fn.extend({data:function(a,b){if(typeof a=== "undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){d.data(this,a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});(function(){function a(c){for(var f= "",i,j=0;c[j];j++){i=c[j];if(i.nodeType===3||i.nodeType===4)f+=i.nodeValue;else if(i.nodeType!==8)f+=a(i.childNodes)}return f}function b(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===f){u=s;break}s=s[c]}j[n]=u}}}function e(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset]; break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof f!=="string"){if(s===f){u=true;break}}else if(p.filter(f,[s]).length>0){u=s;break}}s=s[c]}j[n]=u}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(c,f,i,j){i=i||[];var n=f=f||r;if(f.nodeType!==1&&f.nodeType!==9)return[];if(!c||typeof c!=="string")return i; for(var m=[],t,s,u,J,C=true,F=P(f),D=c;(g.exec(""),t=g.exec(D))!==null;){D=t[3];m.push(t[1]);if(t[2]){J=t[3];break}}if(m.length>1&&w.exec(c))if(m.length===2&&o.relative[m[0]])s=ea(m[0]+m[1],f);else for(s=o.relative[m[0]]?[f]:p(m.shift(),f);m.length;){c=m.shift();if(o.relative[c])c+=m.shift();s=ea(c,s)}else{if(!j&&m.length>1&&f.nodeType===9&&!F&&o.match.ID.test(m[0])&&!o.match.ID.test(m[m.length-1])){t=p.find(m.shift(),f,F);f=t.expr?p.filter(t.expr,t.set)[0]:t.set[0]}if(f){t=j?{expr:m.pop(),set:K(j)}: p.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&f.parentNode?f.parentNode:f,F);s=t.expr?p.filter(t.expr,t.set):t.set;if(m.length>0)u=K(s);else C=false;for(;m.length;){var z=m.pop();t=z;if(o.relative[z])t=m.pop();else z="";if(t==null)t=f;o.relative[z](u,t,F)}}else u=[]}u||(u=s);if(!u)throw"Syntax error, unrecognized expression: "+(z||c);if(k.call(u)==="[object Array]")if(C)if(f&&f.nodeType===1)for(c=0;u[c]!=null;c++){if(u[c]&&(u[c]===true||u[c].nodeType===1&&fa(f,u[c])))i.push(s[c])}else for(c= 0;u[c]!=null;c++)u[c]&&u[c].nodeType===1&&i.push(s[c]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(c){if(L){l=q;c.sort(L);if(l)for(var f=1;f<c.length;f++)c[f]===c[f-1]&&c.splice(f--,1)}return c};p.matches=function(c,f){return p(c,null,null,f)};p.find=function(c,f,i){var j,n;if(!c)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(c)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g, "");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]= false;else if(ga){m.push(z);u=true}}if(D!==v){i||(t=m);c=c.replace(o.match[C],"");if(!u)return[];break}}if(c===n)if(u==null)throw"Syntax error, unrecognized expression: "+c;else break;n=c}return t};var o=p.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(c){return c.getAttribute("href")}},relative:{"+":function(c,f){var i=typeof f==="string",j=i&&!/\W/.test(f);i=i&&!j;if(j)f=f.toLowerCase();j=0;for(var n=c.length,m;j<n;j++)if(m=c[j]){for(;(m=m.previousSibling)&&m.nodeType!==1;);c[j]=i||m&&m.nodeName.toLowerCase()=== f?m||false:m===f}i&&p.filter(f,c,true)},">":function(c,f){var i=typeof f==="string";if(i&&!/\W/.test(f)){f=f.toLowerCase();for(var j=0,n=c.length;j<n;j++){var m=c[j];if(m){i=m.parentNode;c[j]=i.nodeName.toLowerCase()===f?i:false}}}else{j=0;for(n=c.length;j<n;j++)if(m=c[j])c[j]=i?m.parentNode:m.parentNode===f;i&&p.filter(f,c,true)}},"":function(c,f,i){var j=h++,n=e;if(typeof f==="string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("parentNode",f,j,c,m,i)},"~":function(c,f,i){var j=h++,n=e;if(typeof f=== "string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("previousSibling",f,j,c,m,i)}},find:{ID:function(c,f,i){if(typeof f.getElementById!=="undefined"&&!i)return(c=f.getElementById(c[1]))?[c]:[]},NAME:function(c,f){if(typeof f.getElementsByName!=="undefined"){var i=[];f=f.getElementsByName(c[1]);for(var j=0,n=f.length;j<n;j++)f[j].getAttribute("name")===c[1]&&i.push(f[j]);return i.length===0?null:i}},TAG:function(c,f){return f.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,f,i,j,n,m){c= " "+c[1].replace(/\\/g,"")+" ";if(m)return c;m=0;for(var t;(t=f[m])!=null;m++)if(t)if(n^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))i||j.push(t);else if(i)f[m]=false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(c[1]==="nth"){var f=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=f[1]+(f[2]||1)-0;c[3]=f[3]-0}c[0]=h++;return c}, ATTR:function(c,f,i,j,n,m){f=c[1].replace(/\\/g,"");if(!m&&o.attrMap[f])c[1]=o.attrMap[f];if(c[2]==="~=")c[4]=" "+c[4]+" ";return c},PSEUDO:function(c,f,i,j,n){if(c[1]==="not")if((g.exec(c[3])||"").length>1||/^\w/.test(c[3]))c[3]=p(c[3],null,null,f);else{c=p.filter(c[3],f,i,true^n);i||j.push.apply(j,c);return false}else if(o.match.POS.test(c[0])||o.match.CHILD.test(c[0]))return true;return c},POS:function(c){c.unshift(true);return c}},filters:{enabled:function(c){return c.disabled===false&&c.type!== "hidden"},disabled:function(c){return c.disabled===true},checked:function(c){return c.checked===true},selected:function(c){return c.selected===true},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},has:function(c,f,i){return!!p(i[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){return"text"===c.type},radio:function(c){return"radio"===c.type},checkbox:function(c){return"checkbox"===c.type},file:function(c){return"file"===c.type},password:function(c){return"password"=== c.type},submit:function(c){return"submit"===c.type},image:function(c){return"image"===c.type},reset:function(c){return"reset"===c.type},button:function(c){return"button"===c.type||c.nodeName.toLowerCase()==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)}},setFilters:{first:function(c,f){return f===0},last:function(c,f,i,j){return f===j.length-1},even:function(c,f){return f%2===0},odd:function(c,f){return f%2===1},lt:function(c,f,i){return f<i[3]-0},gt:function(c, f,i){return f>i[3]-0},nth:function(c,f,i){return i[3]-0===f},eq:function(c,f,i){return i[3]-0===f}},filter:{PSEUDO:function(c,f,i,j){var n=f[1],m=o.filters[n];if(m)return m(c,i,f,j);else if(n==="contains")return(c.textContent||c.innerText||a([c])||"").indexOf(f[3])>=0;else if(n==="not"){f=f[3];i=0;for(j=f.length;i<j;i++)if(f[i]===c)return false;return true}else throw"Syntax error, unrecognized expression: "+n;},CHILD:function(c,f){var i=f[1],j=c;switch(i){case "only":case "first":for(;j=j.previousSibling;)if(j.nodeType=== 1)return false;if(i==="first")return true;j=c;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return false;return true;case "nth":i=f[2];var n=f[3];if(i===1&&n===0)return true;f=f[0];var m=c.parentNode;if(m&&(m.sizcache!==f||!c.nodeIndex)){var t=0;for(j=m.firstChild;j;j=j.nextSibling)if(j.nodeType===1)j.nodeIndex=++t;m.sizcache=f}c=c.nodeIndex-n;return i===0?c===0:c%i===0&&c/i>=0}},ID:function(c,f){return c.nodeType===1&&c.getAttribute("id")===f},TAG:function(c,f){return f==="*"&&c.nodeType=== 1||c.nodeName.toLowerCase()===f},CLASS:function(c,f){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(f)>-1},ATTR:function(c,f){var i=f[1];c=o.attrHandle[i]?o.attrHandle[i](c):c[i]!=null?c[i]:c.getAttribute(i);i=c+"";var j=f[2];f=f[4];return c==null?j==="!=":j==="="?i===f:j==="*="?i.indexOf(f)>=0:j==="~="?(" "+i+" ").indexOf(f)>=0:!f?i&&c!==false:j==="!="?i!==f:j==="^="?i.indexOf(f)===0:j==="$="?i.substr(i.length-f.length)===f:j==="|="?i===f||i.substr(0,f.length+1)===f+"-":false},POS:function(c, f,i,j){var n=o.setFilters[f[2]];if(n)return n(c,i,f,j)}}},w=o.match.POS;for(var A in o.match){o.match[A]=new RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source)}var K=function(c,f){c=Array.prototype.slice.call(c,0);if(f){f.push.apply(f,c);return f}return c};try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(Wa){K=function(c,f){f=f||[];if(k.call(c)==="[object Array]")Array.prototype.push.apply(f,c);else if(typeof c.length=== "number")for(var i=0,j=c.length;i<j;i++)f.push(c[i]);else for(i=0;c[i];i++)f.push(c[i]);return f}}var L;if(r.documentElement.compareDocumentPosition)L=function(c,f){if(!c.compareDocumentPosition||!f.compareDocumentPosition){if(c==f)l=true;return c.compareDocumentPosition?-1:1}c=c.compareDocumentPosition(f)&4?-1:c===f?0:1;if(c===0)l=true;return c};else if("sourceIndex"in r.documentElement)L=function(c,f){if(!c.sourceIndex||!f.sourceIndex){if(c==f)l=true;return c.sourceIndex?-1:1}c=c.sourceIndex-f.sourceIndex; if(c===0)l=true;return c};else if(r.createRange)L=function(c,f){if(!c.ownerDocument||!f.ownerDocument){if(c==f)l=true;return c.ownerDocument?-1:1}var i=c.ownerDocument.createRange(),j=f.ownerDocument.createRange();i.setStart(c,0);i.setEnd(c,0);j.setStart(f,0);j.setEnd(f,0);c=i.compareBoundaryPoints(Range.START_TO_END,j);if(c===0)l=true;return c};(function(){var c=r.createElement("div"),f="script"+(new Date).getTime();c.innerHTML="<a name='"+f+"'/>";var i=r.documentElement;i.insertBefore(c,i.firstChild); if(r.getElementById(f)){o.find.ID=function(j,n,m){if(typeof n.getElementById!=="undefined"&&!m)return(n=n.getElementById(j[1]))?n.id===j[1]||typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id").nodeValue===j[1]?[n]:v:[]};o.filter.ID=function(j,n){var m=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id");return j.nodeType===1&&m&&m.nodeValue===n}}i.removeChild(c);i=c=null})();(function(){var c=r.createElement("div");c.appendChild(r.createComment(""));if(c.getElementsByTagName("*").length> 0)o.find.TAG=function(f,i){i=i.getElementsByTagName(f[1]);if(f[1]==="*"){f=[];for(var j=0;i[j];j++)i[j].nodeType===1&&f.push(i[j]);i=f}return i};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(f){return f.getAttribute("href",2)};c=null})();r.querySelectorAll&&function(){var c=p,f=r.createElement("div");f.innerHTML="<p class='TEST'></p>";if(!(f.querySelectorAll&&f.querySelectorAll(".TEST").length=== 0)){p=function(j,n,m,t){n=n||r;if(!t&&n.nodeType===9&&!P(n))try{return K(n.querySelectorAll(j),m)}catch(s){}return c(j,n,m,t)};for(var i in c)p[i]=c[i];f=null}}();(function(){var c=r.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!c.getElementsByClassName||c.getElementsByClassName("e").length===0)){c.lastChild.className="e";if(c.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(f,i,j){if(typeof i.getElementsByClassName!== "undefined"&&!j)return i.getElementsByClassName(f[1])};c=null}}})();var fa=r.compareDocumentPosition?function(c,f){return c.compareDocumentPosition(f)&16}:function(c,f){return c!==f&&(c.contains?c.contains(f):true)},P=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":false},ea=function(c,f){var i=[],j="",n;for(f=f.nodeType?[f]:f;n=o.match.PSEUDO.exec(c);){j+=n[0];c=c.replace(o.match.PSEUDO,"")}c=o.relative[c]?c+"*":c;n=0;for(var m=f.length;n<m;n++)p(c,f[n],i);return p.filter(j, i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return d.grep(a,function(h){return h===b===e});else if(typeof b==="string"){var g=d.grep(a,function(h){return h.nodeType===1});if(va.test(b))return d.filter(b,g,!e);else b=d.filter(b, a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this, a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){if(d.isArray(a)){var e=[],g=this[0],h,k={},l;if(g&&a.length){h=0;for(var q=a.length;h<q;h++){l=a[h];k[l]||(k[l]=d.expr.match.POS.test(l)?d(l,b||this.context):l)}for(;g&&g.ownerDocument&&g!==b;){for(l in k){h=k[l];if(h.jquery?h.index(g)>-1:d(g).is(h)){e.push({selector:l,elem:g});delete k[l]}}g=g.parentNode}}return e}var p=d.expr.match.POS.test(a)?d(a,b||this.context):null;return this.map(function(o,w){for(;w&& w.ownerDocument&&w!==b;){if(p?p.index(w)>-1:d(w).is(a))return w;w=w.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?d(a,b||this.context):d.makeArray(a);b=d.merge(this.get(),a);return this.pushStack(a[0]&&(a[0].setInterval||a[0].nodeType===9||a[0].parentNode&&a[0].parentNode.nodeType!==11)?d.unique(b):b)},andSelf:function(){return this.add(this.prevObject)}}); d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling", e)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(e,g){var h=d.map(this,b,e);Ba.test(a)||(g=e);if(g&&typeof g==="string")h=d.filter(g,h);h=this.length>1?d.unique(h):h;if((this.length>1||Da.test(g))&&Ca.test(a))h=h.reverse();return this.pushStack(h,a,I.call(arguments).join(","))}}); d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/[\n\t]/g,W=/\s+/,Ea=/\r/g,Fa=/href|src|style/,Ga=/(button|input)/i,Ha=/(button|input|object|select|textarea)/i, Ia=/^(a|area)$/i,ja=/radio|checkbox/;d.fn.extend({attr:function(a,b){return S(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.addClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(W),e=0,g=this.length;e<g;e++){var h=this[e];if(h.nodeType===1)if(h.className)for(var k=" "+h.className+" ", l=0,q=b.length;l<q;l++){if(k.indexOf(" "+b[l]+" ")<0)h.className+=" "+b[l]}else h.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.removeClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(W),e=0,g=this.length;e<g;e++){var h=this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1, k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q=g?q:!l.hasClass(h);l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className|| a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,e=this.length;b<e;b++)if((" "+this[b].className+" ").replace(ia," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(d.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(d.nodeName(b,"select")){var e=b.selectedIndex,g=[],h=b.options;b=b.type==="select-one";if(e<0)return null;var k=b?e:0;for(e=b?e+1:h.length;k<e;k++){var l=h[k];if(l.selected){a= d(l).val();if(b)return a;g.push(a)}}return g}if(ja.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=d.isFunction(a);return this.each(function(p){var o=d(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(d.isArray(w)&&ja.test(this.type))this.checked=d.inArray(o.val(),w)>=0;else if(d.nodeName(this,"select")){var A=d.makeArray(w);d("option",this).each(function(){this.selected= d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed"; a[b]=e}if(d.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ha.test(a.nodeName)||Ia.test(a.nodeName)&&a.href?0:v;return a[b]}if(!d.support.style&&g&&b==="style"){if(h)a.style.cssText=""+e;return a.style.cssText}h&&a.setAttribute(b,""+e);a=!d.support.hrefNormalized&&g&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return d.style(a,b,e)}});var ka=/ jQuery\d+="(?:\d+|null)"/g, R=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,Ka=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,la=/<([\w:]+)/,La=/<tbody/i,Ma=/<|&\w+;/,Na=function(a,b,e){return Ka.test(e)?a:b+"></"+e+">"},y={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"], _default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return d.getText(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this, e))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){d(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}, append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&& this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var e=this.outerHTML,g=this.ownerDocument;if(!e){e=g.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return d.clean([e.replace(ka,"").replace(R, "")],g)[0]}else return this.cloneNode(true)});if(a===true){$(this,b);$(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ka,""):null;else if(typeof a==="string"&&!/<script/i.test(a)&&(d.support.leadingWhitespace||!R.test(a))&&!y[(la.exec(a)||["",""])[1].toLowerCase()])try{for(var b=0,e=this.length;b<e;b++)if(this[b].nodeType===1){M(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(g){this.empty().append(a)}else d.isFunction(a)? this.each(function(h){var k=d(this),l=k.html();k.empty().append(function(){return a.call(this,h,l)})}):this.empty().append(a);return this},replaceWith:function(a){return this[0]&&this[0].parentNode?this.each(function(){var b=this.nextSibling,e=this.parentNode;d(this).remove();b?d(b).before(a):d(e).append(a)}):this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,e){function g(w){return d.nodeName(w,"table")?w.getElementsByTagName("tbody")[0]|| w.appendChild(w.ownerDocument.createElement("tbody")):w}var h,k,l=a[0],q=[];if(d.isFunction(l))return this.each(function(w){var A=d(this);a[0]=l.call(this,w,b?A.html():v);return A.domManip(a,b,e)});if(this[0]){h=a[0]&&a[0].parentNode&&a[0].parentNode.nodeType===11?{fragment:a[0].parentNode}:aa(a,this,q);if(k=h.fragment.firstChild){b=b&&d.nodeName(k,"tr");for(var p=0,o=this.length;p<o;p++)e.call(b?g(this[p],k):this[p],h.cacheable||this.length>1||p>0?h.fragment.cloneNode(true):h.fragment)}q&&d.each(q, ra)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(e){var g=[];e=d(e);for(var h=0,k=e.length;h<k;h++){var l=(h>0?this.clone(true):this).get();d.fn[b].apply(d(e[h]),l);g=g.concat(l)}return this.pushStack(g,a,e.selector)}});d.each({remove:function(a,b){if(!a||d.filter(a,[this]).length){if(!b&&this.nodeType===1){M(this.getElementsByTagName("*"));M([this])}this.parentNode&&this.parentNode.removeChild(this)}}, empty:function(){for(this.nodeType===1&&M(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){d.fn[a]=function(){return this.each(b,arguments)}});d.extend({clean:function(a,b,e,g){b=b||r;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||r;var h=[];d.each(a,function(k,l){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!Ma.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Ja,Na);var q=(la.exec(l)|| ["",""])[1].toLowerCase(),p=y[q]||y._default,o=p[0];k=b.createElement("div");for(k.innerHTML=p[1]+l+p[2];o--;)k=k.lastChild;if(!d.support.tbody){o=La.test(l);q=q==="table"&&!o?k.firstChild&&k.firstChild.childNodes:p[1]==="<table>"&&!o?k.childNodes:[];for(p=q.length-1;p>=0;--p)d.nodeName(q[p],"tbody")&&!q[p].childNodes.length&&q[p].parentNode.removeChild(q[p])}!d.support.leadingWhitespace&&R.test(l)&&k.insertBefore(b.createTextNode(R.exec(l)[0]),k.firstChild);l=d.makeArray(k.childNodes)}if(l.nodeType)h.push(l); else h=d.merge(h,l)}});if(e)for(a=0;h[a];a++)if(g&&d.nodeName(h[a],"script")&&(!h[a].type||h[a].type.toLowerCase()==="text/javascript"))g.push(h[a].parentNode?h[a].parentNode.removeChild(h[a]):h[a]);else{h[a].nodeType===1&&h.splice.apply(h,[a+1,0].concat(d.makeArray(h[a].getElementsByTagName("script"))));e.appendChild(h[a])}return h}});d.fn.offset="getBoundingClientRect"in r.documentElement?function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(h){d.offset.setOffset(this, a,h)});if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);var e=b.getBoundingClientRect(),g=b.ownerDocument;b=g.body;g=g.documentElement;return{top:e.top+(self.pageYOffset||d.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:e.left+(self.pageXOffset||d.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(w){d.offset.setOffset(this,a,w)});if(b=== b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var e=b.offsetParent,g=b,h=b.ownerDocument,k,l=h.documentElement,q=h.body;g=(h=h.defaultView)?h.getComputedStyle(b,null):b.currentStyle;for(var p=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==q&&b!==l;){if(d.offset.supportsFixedPosition&&g.position==="fixed")break;k=h?h.getComputedStyle(b,null):b.currentStyle;p-=b.scrollTop;o-=b.scrollLeft;if(b===e){p+=b.offsetTop;o+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&& /^t(able|d|h)$/i.test(b.nodeName))){p+=parseFloat(k.borderTopWidth)||0;o+=parseFloat(k.borderLeftWidth)||0}g=e;e=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){p+=parseFloat(k.borderTopWidth)||0;o+=parseFloat(k.borderLeftWidth)||0}g=k}if(g.position==="relative"||g.position==="static"){p+=q.offsetTop;o+=q.offsetLeft}if(d.offset.supportsFixedPosition&&g.position==="fixed"){p+=Math.max(l.scrollTop,q.scrollTop);o+=Math.max(l.scrollLeft,q.scrollLeft)}return{top:p, left:o}};d.offset={initialize:function(){var a=r.body,b=r.createElement("div"),e,g,h,k=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>"; a.insertBefore(b,a.firstChild);e=b.firstChild;g=e.firstChild;h=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=h.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b); d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),h=g.offset(),k=parseInt(d.curCSS(a,"top",true),10)||0,l=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a, e,h);e={top:b.top-h.top+k,left:b.left-h.left+l};"using"in b?b.using.call(a,e):g.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),e=this.offset(),g=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;e.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;g.top+=parseFloat(d.curCSS(b[0],"borderTopWidth",true))||0;g.left+=parseFloat(d.curCSS(b[0],"borderLeftWidth",true))||0;return{top:e.top- g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,b){var e="scroll"+b;d.fn[e]=function(g){var h=this[0],k;if(!h)return null;if(g!==v)return this.each(function(){if(k=ba(this))k.scrollTo(!a?g:d(k).scrollLeft(),a?g:d(k).scrollTop());else this[e]=g});else return(k=ba(h))?"pageXOffset"in k?k[a?"pageYOffset": "pageXOffset"]:d.support.boxModel&&k.document.documentElement[e]||k.document.body[e]:h[e]}});var Oa=/z-?index|font-?weight|opacity|zoom|line-?height/i,ma=/alpha\([^)]*\)/,na=/opacity=([^)]*)/,X=/float/i,oa=/-([a-z])/ig,Pa=/([A-Z])/g,Qa=/^-?\d+(?:px)?$/i,Ra=/^-?\d/,Sa={position:"absolute",visibility:"hidden",display:"block"},Ta=["Left","Right"],Ua=["Top","Bottom"],Va=r.defaultView&&r.defaultView.getComputedStyle,pa=d.support.cssFloat?"cssFloat":"styleFloat",qa=function(a,b){return b.toUpperCase()}; d.fn.css=function(a,b){return S(this,a,b,true,function(e,g,h){if(h===v)return d.curCSS(e,g);if(typeof h==="number"&&!Oa.test(g))h+="px";d.style(e,g,h)})};d.extend({style:function(a,b,e){if(!a||a.nodeType===3||a.nodeType===8)return v;if((b==="width"||b==="height")&&parseFloat(e)<0)e=v;var g=a.style||a,h=e!==v;if(!d.support.opacity&&b==="opacity"){if(h){g.zoom=1;b=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=g.filter||d.curCSS(a,"filter")||"";g.filter=ma.test(a)?a.replace(ma,b):b}return g.filter&& g.filter.indexOf("opacity=")>=0?parseFloat(na.exec(g.filter)[1])/100+"":""}if(X.test(b))b=pa;b=b.replace(oa,qa);if(h)g[b]=e;return g[b]},css:function(a,b,e,g){if(b==="width"||b==="height"){var h,k=b==="width"?Ta:Ua;function l(){h=b==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&d.each(k,function(){g||(h-=parseFloat(d.curCSS(a,"padding"+this,true))||0);if(g==="margin")h+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!== 0?l():d.swap(a,Sa,l);return Math.max(0,Math.round(h))}return d.curCSS(a,b,e)},curCSS:function(a,b,e){var g,h=a.style;if(!d.support.opacity&&b==="opacity"&&a.currentStyle){g=na.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return g===""?"1":g}if(X.test(b))b=pa;if(!e&&h&&h[b])g=h[b];else if(Va){if(X.test(b))b="float";b=b.replace(Pa,"-$1").toLowerCase();h=a.ownerDocument.defaultView;if(!h)return null;if(a=h.getComputedStyle(a,null))g=a.getPropertyValue(b);if(b==="opacity"&&g==="")g= "1"}else if(a.currentStyle){e=b.replace(oa,qa);g=a.currentStyle[b]||a.currentStyle[e];if(!Qa.test(g)&&Ra.test(g)){b=h.left;var k=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=e==="fontSize"?"1em":g||0;g=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=k}}return g},swap:function(a,b,e){var g={};for(var h in b){g[h]=a.style[h];a.style[h]=b[h]}e.call(a);for(h in b)a.style[h]=g[h]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var b=a.offsetWidth,e=a.offsetHeight,g= a.nodeName.toLowerCase()==="tr";return b===0&&e===0&&!g?true:b>0&&e>0&&!g?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}x.jQuery=x.$=d})(window);
(function(x,v){function Y(){if(!c.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(Y,1);return}c.ready()}}function ra(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function S(a,b,e,f,h,k){var l=a.length;if(typeof b==="object"){for(var q in b)S(a,q,b[q],f,h,e);return a}if(e!==v){f=f&&c.isFunction(e);for(q=0;q<l;q++)h(a[q],b,f?e.call(a[q],q,h(a[q],b)):e,k);return a}return l? h(a[0],b):null}function Z(){return(new Date).getTime()}function $(a,b){var e=0;b.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var f=c.data(a[e++]),h=c.data(this,f);if(f=f&&f.events){delete h.handle;h.events={};for(var k in f)for(var l in f[k])c.event.add(this,k,f[k][l],f[k][l].data)}}})}function aa(a,b,e){var f,h,k;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&a[0].indexOf("<option")<0){h=true;if(k=c.fragments[a[0]])if(k!==1)f=k}if(!f){b=b&&b[0]?b[0].ownerDocument||b[0]:r; f=b.createDocumentFragment();c.clean(a,b,f,e)}if(h)c.fragments[a[0]]=k?f:1;return{fragment:f,cacheable:h}}function M(a){for(var b=0,e,f;(e=a[b])!=null;b++)if(!c.noData[e.nodeName.toLowerCase()]&&(f=e[B]))delete c.cache[f]}function ba(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},sa=x.jQuery,ta=x.$,r=x.document,N,ua=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,va=/^.[^:#\[\.,]*$/,wa=/\S/,xa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g, ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent,ca=false,H=[],E,T=Object.prototype.toString,U=Object.prototype.hasOwnProperty,V=Array.prototype.push,I=Array.prototype.slice,O=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var e,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!b))if(e[1]){f=b?b.ownerDocument||b:r;if(a=ya.exec(a))if(c.isPlainObject(b)){a=[r.createElement(a[1])];c.fn.attr.call(a, b,true)}else a=[f.createElement(a[1])];else{a=aa([e[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(e[2])){if(b.id!==e[2])return N.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||N).find(a):c(b).find(a);else if(c.isFunction(a))return N.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.isArray(a)? this.setArray(a):c.makeArray(a,this)},selector:"",jquery:"1.4b1pre",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,e){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;V.apply(this,a);return this},each:function(a, b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(r,c);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||c(null)},push:V,sort:[].sort, splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,f=false,h,k,l,q;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(f&&q&&(c.isPlainObject(q)||c.isArray(q))){l=l&&(c.isPlainObject(l)||c.isArray(l))?l:c.isArray(q)?[]:{};a[k]=c.extend(f,l,q)}else if(q!==v)a[k]=q}return a};c.extend({noConflict:function(a){x.$= ta;if(a)x.jQuery=sa;return c},isReady:false,ready:function(){if(!c.isReady){if(!r.body)return setTimeout(c.ready,13);c.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,c);H=null}c.fn.triggerHandler&&c(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return c.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",c.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload", c.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false; return true},noop:function(){},globalEval:function(a){if(a&&wa.test(a)){var b=r.getElementsByTagName("head")[0]||r.documentElement,e=r.createElement("script");e.type="text/javascript";if(c.support.scriptEval)e.appendChild(r.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,e){var f,h=0,k=a.length,l=k===v||c.isFunction(a);if(e)if(l)for(f in a){if(b.apply(a[f],e)=== false)break}else for(;h<k;){if(b.apply(a[h++],e)===false)break}else if(l)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(e=a[0];h<k&&b.call(e,h,e)!==false;e=a[++h]);return a},trim:function(a){return(a||"").replace(xa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?V.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var e=0,f=b.length;e<f;e++)if(b[e]===a)return e; return-1},merge:function(a,b){var e=a.length,f=0;if(typeof b.length==="number")for(var h=b.length;f<h;f++)a[e++]=b[f];else for(;b[f]!==v;)a[e++]=b[f++];a.length=e;return a},grep:function(a,b,e){for(var f=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&f.push(a[h]);return f},map:function(a,b,e){for(var f=[],h,k=0,l=a.length;k<l;k++){h=b(a[k],k,e);if(h!=null)f[f.length]=h}return f.concat.apply([],f)},guid:1,proxy:function(a,b,e){if(arguments.length===2)if(typeof b==="string"){e=a;a=e[b];b=v}else if(b&&!c.isFunction(b)){e= b;b=v}if(!b&&a)b=function(){return a.apply(e||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){var b={browser:""};a=a.toLowerCase();if(/webkit/.test(a))b={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};else if(/opera/.test(a))b={browser:"opera",version:/opera[\/ ]([\w.]+)/};else if(/msie/.test(a))b={browser:"msie",version:/msie ([\w.]+)/};else if(/mozilla/.test(a)&&!/compatible/.test(a))b={browser:"mozilla",version:/rv:([\w.]+)/};b.version=(b.version&&b.version.exec(a)|| [0,"0"])[1];return b},browser:{}});G=c.uaMatch(G);if(G.browser){c.browser[G.browser]=true;c.browser.version=G.version}if(c.browser.webkit)c.browser.safari=true;if(O)c.inArray=function(a,b){return O.call(b,a)};N=c(r);if(r.addEventListener)E=function(){r.removeEventListener("DOMContentLoaded",E,false);c.ready()};else if(r.attachEvent)E=function(){if(r.readyState==="complete"){r.detachEvent("onreadystatechange",E);c.ready()}};if(O)c.inArray=function(a,b){return O.call(b,a)};(function(){c.support={}; var a=r.documentElement,b=r.createElement("script"),e=r.createElement("div"),f="script"+Z();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var h=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!h||!h.length||!k)){c.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")), hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+f+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(x[f]){c.support.scriptEval=true;delete x[f]}a.removeChild(b);if(e.attachEvent&& e.fireEvent){e.attachEvent("onclick",function q(){c.support.noCloneEvent=false;e.detachEvent("onclick",q)});e.cloneNode(true).fireEvent("onclick")}c(function(){var q=r.createElement("div");q.style.width=q.style.paddingLeft="1px";r.body.appendChild(q);c.boxModel=c.support.boxModel=q.offsetWidth===2;r.body.removeChild(q).style.display="none"});a=function(q){var p=r.createElement("div");q="on"+q;var o=q in p;if(!o){p.setAttribute(q,"return;");o=typeof p[q]==="function"}return o};c.support.submitBubbles= a("submit");c.support.changeBubbles=a("change");a=b=e=h=k=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var B="jQuery"+Z(),za=0,da={},Aa={};c.extend({cache:{},expando:B,noData:{embed:true,object:true,applet:true},data:function(a,b,e){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var f=a[B],h=c.cache;if(!b&& !f)return null;f||(f=++za);if(typeof b==="object"){a[B]=f;h=h[f]=c.extend(true,{},b)}else h=h[f]?h[f]:typeof e==="undefined"?Aa:(h[f]={});if(e!==v){a[B]=f;h[b]=e}return typeof b==="string"?h[b]:h}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var e=a[B],f=c.cache,h=f[e];if(b){if(h){delete h[b];c.isEmptyObject(h)&&c.removeData(a)}}else{try{delete a[B]}catch(k){a.removeAttribute&&a.removeAttribute(B)}delete f[e]}}}});c.fn.extend({data:function(a,b){if(typeof a=== "undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var f=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&e[1]?this.data(e[0]):f}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});(function(){function a(d){for(var g= "",i,j=0;d[j];j++){i=d[j];if(i.nodeType===3||i.nodeType===4)g+=i.nodeValue;else if(i.nodeType!==8)g+=a(i.childNodes)}return g}function b(d,g,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[d];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===g){u=s;break}s=s[d]}j[n]=u}}}function e(d,g,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[d];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset]; break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof g!=="string"){if(s===g){u=true;break}}else if(p.filter(g,[s]).length>0){u=s;break}}s=s[d]}j[n]=u}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(d,g,i,j){i=i||[];var n=g=g||r;if(g.nodeType!==1&&g.nodeType!==9)return[];if(!d||typeof d!=="string")return i; for(var m=[],t,s,u,J,C=true,F=P(g),D=d;(f.exec(""),t=f.exec(D))!==null;){D=t[3];m.push(t[1]);if(t[2]){J=t[3];break}}if(m.length>1&&w.exec(d))if(m.length===2&&o.relative[m[0]])s=ea(m[0]+m[1],g);else for(s=o.relative[m[0]]?[g]:p(m.shift(),g);m.length;){d=m.shift();if(o.relative[d])d+=m.shift();s=ea(d,s)}else{if(!j&&m.length>1&&g.nodeType===9&&!F&&o.match.ID.test(m[0])&&!o.match.ID.test(m[m.length-1])){t=p.find(m.shift(),g,F);g=t.expr?p.filter(t.expr,t.set)[0]:t.set[0]}if(g){t=j?{expr:m.pop(),set:K(j)}: p.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&g.parentNode?g.parentNode:g,F);s=t.expr?p.filter(t.expr,t.set):t.set;if(m.length>0)u=K(s);else C=false;for(;m.length;){var y=m.pop();t=y;if(o.relative[y])t=m.pop();else y="";if(t==null)t=g;o.relative[y](u,t,F)}}else u=[]}u||(u=s);if(!u)throw"Syntax error, unrecognized expression: "+(y||d);if(k.call(u)==="[object Array]")if(C)if(g&&g.nodeType===1)for(d=0;u[d]!=null;d++){if(u[d]&&(u[d]===true||u[d].nodeType===1&&fa(g,u[d])))i.push(s[d])}else for(d= 0;u[d]!=null;d++)u[d]&&u[d].nodeType===1&&i.push(s[d]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(d){if(L){l=q;d.sort(L);if(l)for(var g=1;g<d.length;g++)d[g]===d[g-1]&&d.splice(g--,1)}return d};p.matches=function(d,g){return p(d,null,null,g)};p.find=function(d,g,i){var j,n;if(!d)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(d)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g, "");j=o.find[s](n,g,i);if(j!=null){d=d.replace(o.match[s],"");break}}}}j||(j=g.getElementsByTagName("*"));return{set:j,expr:d}};p.filter=function(d,g,i,j){for(var n=d,m=[],t=g,s,u,J=g&&g[0]&&P(g[0]);d&&g.length;){for(var C in o.filter)if((s=o.leftMatch[C].exec(d))!=null&&s[2]){var F=o.filter[C],D,y;y=s[1];u=false;s.splice(1,1);if(y.substr(y.length-1)!=="\\"){if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(y=t[Q])!=null;Q++)if(y){D= F(y,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=false;else if(ga){m.push(y);u=true}}if(D!==v){i||(t=m);d=d.replace(o.match[C],"");if(!u)return[];break}}}if(d===n)if(u==null)throw"Syntax error, unrecognized expression: "+d;else break;n=d}return t};var o=p.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\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(d){return d.getAttribute("href")}},relative:{"+":function(d,g){var i=typeof g==="string",j=i&&!/\W/.test(g);i=i&&!j;if(j)g=g.toLowerCase();j=0;for(var n=d.length, m;j<n;j++)if(m=d[j]){for(;(m=m.previousSibling)&&m.nodeType!==1;);d[j]=i||m&&m.nodeName.toLowerCase()===g?m||false:m===g}i&&p.filter(g,d,true)},">":function(d,g){var i=typeof g==="string";if(i&&!/\W/.test(g)){g=g.toLowerCase();for(var j=0,n=d.length;j<n;j++){var m=d[j];if(m){i=m.parentNode;d[j]=i.nodeName.toLowerCase()===g?i:false}}}else{j=0;for(n=d.length;j<n;j++)if(m=d[j])d[j]=i?m.parentNode:m.parentNode===g;i&&p.filter(g,d,true)}},"":function(d,g,i){var j=h++,n=e;if(typeof g==="string"&&!/\W/.test(g)){var m= g=g.toLowerCase();n=b}n("parentNode",g,j,d,m,i)},"~":function(d,g,i){var j=h++,n=e;if(typeof g==="string"&&!/\W/.test(g)){var m=g=g.toLowerCase();n=b}n("previousSibling",g,j,d,m,i)}},find:{ID:function(d,g,i){if(typeof g.getElementById!=="undefined"&&!i)return(d=g.getElementById(d[1]))?[d]:[]},NAME:function(d,g){if(typeof g.getElementsByName!=="undefined"){var i=[];g=g.getElementsByName(d[1]);for(var j=0,n=g.length;j<n;j++)g[j].getAttribute("name")===d[1]&&i.push(g[j]);return i.length===0?null:i}}, TAG:function(d,g){return g.getElementsByTagName(d[1])}},preFilter:{CLASS:function(d,g,i,j,n,m){d=" "+d[1].replace(/\\/g,"")+" ";if(m)return d;m=0;for(var t;(t=g[m])!=null;m++)if(t)if(n^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(d)>=0))i||j.push(t);else if(i)g[m]=false;return false},ID:function(d){return d[1].replace(/\\/g,"")},TAG:function(d){return d[1].toLowerCase()},CHILD:function(d){if(d[1]==="nth"){var g=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(d[2]==="even"&&"2n"||d[2]==="odd"&& "2n+1"||!/\D/.test(d[2])&&"0n+"+d[2]||d[2]);d[2]=g[1]+(g[2]||1)-0;d[3]=g[3]-0}d[0]=h++;return d},ATTR:function(d,g,i,j,n,m){g=d[1].replace(/\\/g,"");if(!m&&o.attrMap[g])d[1]=o.attrMap[g];if(d[2]==="~=")d[4]=" "+d[4]+" ";return d},PSEUDO:function(d,g,i,j,n){if(d[1]==="not")if((f.exec(d[3])||"").length>1||/^\w/.test(d[3]))d[3]=p(d[3],null,null,g);else{d=p.filter(d[3],g,i,true^n);i||j.push.apply(j,d);return false}else if(o.match.POS.test(d[0])||o.match.CHILD.test(d[0]))return true;return d},POS:function(d){d.unshift(true); return d}},filters:{enabled:function(d){return d.disabled===false&&d.type!=="hidden"},disabled:function(d){return d.disabled===true},checked:function(d){return d.checked===true},selected:function(d){return d.selected===true},parent:function(d){return!!d.firstChild},empty:function(d){return!d.firstChild},has:function(d,g,i){return!!p(i[3],d).length},header:function(d){return/h\d/i.test(d.nodeName)},text:function(d){return"text"===d.type},radio:function(d){return"radio"===d.type},checkbox:function(d){return"checkbox"=== d.type},file:function(d){return"file"===d.type},password:function(d){return"password"===d.type},submit:function(d){return"submit"===d.type},image:function(d){return"image"===d.type},reset:function(d){return"reset"===d.type},button:function(d){return"button"===d.type||d.nodeName.toLowerCase()==="button"},input:function(d){return/input|select|textarea|button/i.test(d.nodeName)}},setFilters:{first:function(d,g){return g===0},last:function(d,g,i,j){return g===j.length-1},even:function(d,g){return g%2=== 0},odd:function(d,g){return g%2===1},lt:function(d,g,i){return g<i[3]-0},gt:function(d,g,i){return g>i[3]-0},nth:function(d,g,i){return i[3]-0===g},eq:function(d,g,i){return i[3]-0===g}},filter:{PSEUDO:function(d,g,i,j){var n=g[1],m=o.filters[n];if(m)return m(d,i,g,j);else if(n==="contains")return(d.textContent||d.innerText||a([d])||"").indexOf(g[3])>=0;else if(n==="not"){g=g[3];i=0;for(j=g.length;i<j;i++)if(g[i]===d)return false;return true}else throw"Syntax error, unrecognized expression: "+n;}, CHILD:function(d,g){var i=g[1],j=d;switch(i){case "only":case "first":for(;j=j.previousSibling;)if(j.nodeType===1)return false;if(i==="first")return true;j=d;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return false;return true;case "nth":i=g[2];var n=g[3];if(i===1&&n===0)return true;g=g[0];var m=d.parentNode;if(m&&(m.sizcache!==g||!d.nodeIndex)){var t=0;for(j=m.firstChild;j;j=j.nextSibling)if(j.nodeType===1)j.nodeIndex=++t;m.sizcache=g}d=d.nodeIndex-n;return i===0?d===0:d%i===0&&d/i>=0}}, ID:function(d,g){return d.nodeType===1&&d.getAttribute("id")===g},TAG:function(d,g){return g==="*"&&d.nodeType===1||d.nodeName.toLowerCase()===g},CLASS:function(d,g){return(" "+(d.className||d.getAttribute("class"))+" ").indexOf(g)>-1},ATTR:function(d,g){var i=g[1];d=o.attrHandle[i]?o.attrHandle[i](d):d[i]!=null?d[i]:d.getAttribute(i);i=d+"";var j=g[2];g=g[4];return d==null?j==="!=":j==="="?i===g:j==="*="?i.indexOf(g)>=0:j==="~="?(" "+i+" ").indexOf(g)>=0:!g?i&&d!==false:j==="!="?i!==g:j==="^="?i.indexOf(g)=== 0:j==="$="?i.substr(i.length-g.length)===g:j==="|="?i===g||i.substr(0,g.length+1)===g+"-":false},POS:function(d,g,i,j){var n=o.setFilters[g[2]];if(n)return n(d,i,g,j)}}},w=o.match.POS;for(var A in o.match){o.match[A]=new RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,function(d,g){return"\\"+(g-0+1)}))}var K=function(d,g){d=Array.prototype.slice.call(d,0);if(g){g.push.apply(g,d);return g}return d}; try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(Wa){K=function(d,g){g=g||[];if(k.call(d)==="[object Array]")Array.prototype.push.apply(g,d);else if(typeof d.length==="number")for(var i=0,j=d.length;i<j;i++)g.push(d[i]);else for(i=0;d[i];i++)g.push(d[i]);return g}}var L;if(r.documentElement.compareDocumentPosition)L=function(d,g){if(!d.compareDocumentPosition||!g.compareDocumentPosition){if(d==g)l=true;return d.compareDocumentPosition?-1:1}d=d.compareDocumentPosition(g)&4?-1:d=== g?0:1;if(d===0)l=true;return d};else if("sourceIndex"in r.documentElement)L=function(d,g){if(!d.sourceIndex||!g.sourceIndex){if(d==g)l=true;return d.sourceIndex?-1:1}d=d.sourceIndex-g.sourceIndex;if(d===0)l=true;return d};else if(r.createRange)L=function(d,g){if(!d.ownerDocument||!g.ownerDocument){if(d==g)l=true;return d.ownerDocument?-1:1}var i=d.ownerDocument.createRange(),j=g.ownerDocument.createRange();i.setStart(d,0);i.setEnd(d,0);j.setStart(g,0);j.setEnd(g,0);d=i.compareBoundaryPoints(Range.START_TO_END, j);if(d===0)l=true;return d};(function(){var d=r.createElement("div"),g="script"+(new Date).getTime();d.innerHTML="<a name='"+g+"'/>";var i=r.documentElement;i.insertBefore(d,i.firstChild);if(r.getElementById(g)){o.find.ID=function(j,n,m){if(typeof n.getElementById!=="undefined"&&!m)return(n=n.getElementById(j[1]))?n.id===j[1]||typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id").nodeValue===j[1]?[n]:v:[]};o.filter.ID=function(j,n){var m=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id"); return j.nodeType===1&&m&&m.nodeValue===n}}i.removeChild(d);i=d=null})();(function(){var d=r.createElement("div");d.appendChild(r.createComment(""));if(d.getElementsByTagName("*").length>0)o.find.TAG=function(g,i){i=i.getElementsByTagName(g[1]);if(g[1]==="*"){g=[];for(var j=0;i[j];j++)i[j].nodeType===1&&g.push(i[j]);i=g}return i};d.innerHTML="<a href='#'></a>";if(d.firstChild&&typeof d.firstChild.getAttribute!=="undefined"&&d.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(g){return g.getAttribute("href", 2)};d=null})();r.querySelectorAll&&function(){var d=p,g=r.createElement("div");g.innerHTML="<p class='TEST'></p>";if(!(g.querySelectorAll&&g.querySelectorAll(".TEST").length===0)){p=function(j,n,m,t){n=n||r;if(!t&&n.nodeType===9&&!P(n))try{return K(n.querySelectorAll(j),m)}catch(s){}return d(j,n,m,t)};for(var i in d)p[i]=d[i];g=null}}();(function(){var d=r.createElement("div");d.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!d.getElementsByClassName||d.getElementsByClassName("e").length=== 0)){d.lastChild.className="e";if(d.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(g,i,j){if(typeof i.getElementsByClassName!=="undefined"&&!j)return i.getElementsByClassName(g[1])};d=null}}})();var fa=r.compareDocumentPosition?function(d,g){return d.compareDocumentPosition(g)&16}:function(d,g){return d!==g&&(d.contains?d.contains(g):true)},P=function(d){return(d=(d?d.ownerDocument||d:0).documentElement)?d.nodeName!=="HTML":false},ea=function(d,g){var i=[], j="",n;for(g=g.nodeType?[g]:g;n=o.match.PSEUDO.exec(d);){j+=n[0];d=d.replace(o.match.PSEUDO,"")}d=o.relative[d]?d+"*":d;n=0;for(var m=g.length;n<m;n++)p(d,g[n],i);return p.filter(j,i)};c.find=p;c.expr=p.selectors;c.expr[":"]=c.expr.filters;c.unique=p.uniqueSort;c.getText=a;c.isXMLDoc=P;c.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(c.isFunction(b))return c.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return c.grep(a, function(h){return h===b===e});else if(typeof b==="string"){var f=c.grep(a,function(h){return h.nodeType===1});if(va.test(b))return c.filter(b,f,!e);else b=c.filter(b,a)}return c.grep(a,function(h){return c.inArray(h,b)>=0===e})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,f=0,h=this.length;f<h;f++){e=b.length;c.find(a,this[f],b);if(f>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var e= 0,f=b.length;e<f;e++)if(c.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var e=[],f=this[0],h,k={},l;if(f&&a.length){h=0;for(var q=a.length;h<q;h++){l=a[h];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;f&&f.ownerDocument&&f!==b;){for(l in k){h=k[l];if(h.jquery?h.index(f)> -1:c(f).is(h)){e.push({selector:l,elem:f});delete k[l]}}f=f.parentNode}}return e}var p=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(o,w){for(;w&&w.ownerDocument&&w!==b;){if(p?p.index(w)>-1:c(w).is(a))return w;w=w.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(), a);return this.pushStack(a[0]&&(a[0].setInterval||a[0].nodeType===9||a[0].parentNode&&a[0].parentNode.nodeType!==11)?c.unique(b):b)},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,e){return c.dir(a,"parentNode",e)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a, "nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,e){return c.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return c.dir(a,"previousSibling",e)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(e,f){var h=c.map(this,b,e);Ba.test(a)|| (f=e);if(f&&typeof f==="string")h=c.filter(f,h);h=this.length>1?c.unique(h):h;if((this.length>1||Da.test(f))&&Ca.test(a))h=h.reverse();return this.pushStack(h,a,I.call(arguments).join(","))}});c.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,e){var f=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!c(a).is(e));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,e){b=b||1;for(var f=0;a;a=a[e])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a, b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/[\n\t]/g,W=/\s+/,Ea=/\r/g,Fa=/href|src|style/,Ga=/(button|input)/i,Ha=/(button|input|object|select|textarea)/i,Ia=/^(a|area)$/i,ja=/radio|checkbox/;c.fn.extend({attr:function(a,b){return S(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(p){var o=c(this);o.addClass(a.call(this, p,o.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(W),e=0,f=this.length;e<f;e++){var h=this[e];if(h.nodeType===1)if(h.className)for(var k=" "+h.className+" ",l=0,q=b.length;l<q;l++){if(k.indexOf(" "+b[l]+" ")<0)h.className+=" "+b[l]}else h.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var o=c(this);o.removeClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(W),e=0,f=this.length;e<f;e++){var h= this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1,k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(h){var k=c(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=c(this),q=b,p=a.split(W);h=p[k++];){q=f?q:!l.hasClass(h); l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,e=this.length;b<e;b++)if((" "+this[b].className+" ").replace(ia," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b, "select")){var e=b.selectedIndex,f=[],h=b.options;b=b.type==="select-one";if(e<0)return null;var k=b?e:0;for(e=b?e+1:h.length;k<e;k++){var l=h[k];if(l.selected){a=c(l).val();if(b)return a;f.push(a)}}return f}if(ja.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=c.isFunction(a);return this.each(function(p){var o=c(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(c.isArray(w)&& ja.test(this.type))this.checked=c.inArray(o.val(),w)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(w);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](e);f=a.nodeType!==1||!c.isXMLDoc(a);var h=e!== v;b=f&&c.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&f&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed";a[b]=e}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ha.test(a.nodeName)||Ia.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&f&&b==="style"){if(h)a.style.cssText=""+e;return a.style.cssText}h&&a.setAttribute(b, ""+e);a=!c.support.hrefNormalized&&f&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,e)}});var ka=/ jQuery\d+="(?:\d+|null)"/g,R=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,Ka=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,la=/<([\w:]+)/,La=/<tbody/i,Ma=/<|&\w+;/,Na=function(a,b,e){return Ka.test(e)?a:b+"></"+e+">"},z={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"], td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};z.optgroup=z.option;z.tbody=z.tfoot=z.colgroup=z.caption=z.thead;z.th=z.td;if(!c.support.htmlSerialize)z._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var e=c(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&& this[0].ownerDocument||r).createTextNode(a));return c.getText(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(e){c(this).wrapAll(a.call(this,e))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})}, unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a= c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var e=this.outerHTML,f=this.ownerDocument;if(!e){e= f.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return c.clean([e.replace(ka,"").replace(R,"")],f)[0]}else return this.cloneNode(true)});if(a===true){$(this,b);$(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ka,""):null;else if(typeof a==="string"&&!/<script/i.test(a)&&(c.support.leadingWhitespace||!R.test(a))&&!z[(la.exec(a)||["",""])[1].toLowerCase()])try{for(var b=0,e=this.length;b<e;b++)if(this[b].nodeType=== 1){M(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}else c.isFunction(a)?this.each(function(h){var k=c(this),l=k.html();k.empty().append(function(){return a.call(this,h,l)})}):this.empty().append(a);return this},replaceWith:function(a){return this[0]&&this[0].parentNode?this.each(function(){var b=this.nextSibling,e=this.parentNode;c(this).remove();b?c(b).before(a):c(e).append(a)}):this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a, true)},domManip:function(a,b,e){function f(w){return c.nodeName(w,"table")?w.getElementsByTagName("tbody")[0]||w.appendChild(w.ownerDocument.createElement("tbody")):w}var h,k,l=a[0],q=[];if(c.isFunction(l))return this.each(function(w){var A=c(this);a[0]=l.call(this,w,b?A.html():v);return A.domManip(a,b,e)});if(this[0]){h=a[0]&&a[0].parentNode&&a[0].parentNode.nodeType===11?{fragment:a[0].parentNode}:aa(a,this,q);if(k=h.fragment.firstChild){b=b&&c.nodeName(k,"tr");for(var p=0,o=this.length;p<o;p++)e.call(b? f(this[p],k):this[p],h.cacheable||this.length>1||p>0?h.fragment.cloneNode(true):h.fragment)}q&&c.each(q,ra)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(e){var f=[];e=c(e);for(var h=0,k=e.length;h<k;h++){var l=(h>0?this.clone(true):this).get();c.fn[b].apply(c(e[h]),l);f=f.concat(l)}return this.pushStack(f,a,e.selector)}});c.each({remove:function(a,b){if(!a||c.filter(a, [this]).length){if(!b&&this.nodeType===1){M(this.getElementsByTagName("*"));M([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&M(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});c.extend({clean:function(a,b,e,f){b=b||r;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||r;var h=[];c.each(a,function(k,l){if(typeof l=== "number")l+="";if(l){if(typeof l==="string"&&!Ma.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Ja,Na);var q=(la.exec(l)||["",""])[1].toLowerCase(),p=z[q]||z._default,o=p[0];k=b.createElement("div");for(k.innerHTML=p[1]+l+p[2];o--;)k=k.lastChild;if(!c.support.tbody){o=La.test(l);q=q==="table"&&!o?k.firstChild&&k.firstChild.childNodes:p[1]==="<table>"&&!o?k.childNodes:[];for(p=q.length-1;p>=0;--p)c.nodeName(q[p],"tbody")&&!q[p].childNodes.length&&q[p].parentNode.removeChild(q[p])}!c.support.leadingWhitespace&& R.test(l)&&k.insertBefore(b.createTextNode(R.exec(l)[0]),k.firstChild);l=c.makeArray(k.childNodes)}if(l.nodeType)h.push(l);else h=c.merge(h,l)}});if(e)for(a=0;h[a];a++)if(f&&c.nodeName(h[a],"script")&&(!h[a].type||h[a].type.toLowerCase()==="text/javascript"))f.push(h[a].parentNode?h[a].parentNode.removeChild(h[a]):h[a]);else{h[a].nodeType===1&&h.splice.apply(h,[a+1,0].concat(c.makeArray(h[a].getElementsByTagName("script"))));e.appendChild(h[a])}return h}});c.fn.offset="getBoundingClientRect"in r.documentElement? function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(h){c.offset.setOffset(this,a,h)});if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var e=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:e.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:e.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b= this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(w){c.offset.setOffset(this,a,w)});if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var e=b.offsetParent,f=b,h=b.ownerDocument,k,l=h.documentElement,q=h.body;f=(h=h.defaultView)?h.getComputedStyle(b,null):b.currentStyle;for(var p=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==q&&b!==l;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;k=h?h.getComputedStyle(b,null):b.currentStyle; p-=b.scrollTop;o-=b.scrollLeft;if(b===e){p+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){p+=parseFloat(k.borderTopWidth)||0;o+=parseFloat(k.borderLeftWidth)||0}f=e;e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){p+=parseFloat(k.borderTopWidth)||0;o+=parseFloat(k.borderLeftWidth)||0}f=k}if(f.position==="relative"||f.position==="static"){p+=q.offsetTop;o+=q.offsetLeft}if(c.offset.supportsFixedPosition&& f.position==="fixed"){p+=Math.max(l.scrollTop,q.scrollTop);o+=Math.max(l.scrollLeft,q.scrollLeft)}return{top:p,left:o}};c.offset={initialize:function(){var a=r.body,b=r.createElement("div"),e,f,h,k=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>"; a.insertBefore(b,a.firstChild);e=b.firstChild;f=e.firstChild;h=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=h.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b); c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;e+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),h=f.offset(),k=parseInt(c.curCSS(a,"top",true),10)||0,l=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, e,h);e={top:b.top-h.top+k,left:b.left-h.left+l};"using"in b?b.using.call(a,e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),e=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;e.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:e.top- f.top,left:e.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var e="scroll"+b;c.fn[e]=function(f){var h=this[0],k;if(!h)return null;if(f!==v)return this.each(function(){if(k=ba(this))k.scrollTo(!a?f:c(k).scrollLeft(),a?f:c(k).scrollTop());else this[e]=f});else return(k=ba(h))?"pageXOffset"in k?k[a?"pageYOffset": "pageXOffset"]:c.support.boxModel&&k.document.documentElement[e]||k.document.body[e]:h[e]}});c.each(["Height","Width"],function(a,b){var e=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],e,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],e,false,f?"margin":"border"):null};c.fn[e]=function(f){var h=this[0];if(!h)return f==null?null:this;return"scrollTo"in h&&h.document?h.document.compatMode==="CSS1Compat"&&h.document.documentElement["client"+b]|| h.document.body["client"+b]:h.nodeType===9?Math.max(h.documentElement["client"+b],h.body["scroll"+b],h.documentElement["scroll"+b],h.body["offset"+b],h.documentElement["offset"+b]):f===v?c.css(h,e):this.css(e,typeof f==="string"?f:f+"px")}});var Oa=/z-?index|font-?weight|opacity|zoom|line-?height/i,ma=/alpha\([^)]*\)/,na=/opacity=([^)]*)/,X=/float/i,oa=/-([a-z])/ig,Pa=/([A-Z])/g,Qa=/^-?\d+(?:px)?$/i,Ra=/^-?\d/,Sa={position:"absolute",visibility:"hidden",display:"block"},Ta=["Left","Right"],Ua=["Top", "Bottom"],Va=r.defaultView&&r.defaultView.getComputedStyle,pa=c.support.cssFloat?"cssFloat":"styleFloat",qa=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return S(this,a,b,true,function(e,f,h){if(h===v)return c.curCSS(e,f);if(typeof h==="number"&&!Oa.test(f))h+="px";c.style(e,f,h)})};c.extend({style:function(a,b,e){if(!a||a.nodeType===3||a.nodeType===8)return v;if((b==="width"||b==="height")&&parseFloat(e)<0)e=v;var f=a.style||a,h=e!==v;if(!c.support.opacity&&b==="opacity"){if(h){f.zoom= 1;b=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=ma.test(a)?a.replace(ma,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(na.exec(f.filter)[1])/100+"":""}if(X.test(b))b=pa;b=b.replace(oa,qa);if(h)f[b]=e;return f[b]},css:function(a,b,e,f){if(b==="width"||b==="height"){var h,k=b==="width"?Ta:Ua;function l(){h=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(k,function(){f||(h-=parseFloat(c.curCSS(a,"padding"+this, true))||0);if(f==="margin")h+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?l():c.swap(a,Sa,l);return Math.max(0,Math.round(h))}return c.curCSS(a,b,e)},curCSS:function(a,b,e){var f,h=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=na.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(X.test(b))b=pa;if(!e&&h&&h[b])f=h[b];else if(Va){if(X.test(b))b="float";b=b.replace(Pa, "-$1").toLowerCase();h=a.ownerDocument.defaultView;if(!h)return null;if(a=h.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){e=b.replace(oa,qa);f=a.currentStyle[b]||a.currentStyle[e];if(!Qa.test(f)&&Ra.test(f)){b=h.left;var k=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=e==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=k}}return f},swap:function(a,b,e){var f={};for(var h in b){f[h]=a.style[h];a.style[h]= b[h]}e.call(a);for(h in b)a.style[h]=f[h]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,e=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&e===0&&!f?true:b>0&&e>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}x.jQuery=x.$=c})(window);
(function(x,v){function Y(){if(!d.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(Y,1);return}d.ready()}}function ra(a,b){b.src?d.ajax({url:b.src,async:false,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function S(a,b,e,g,h,k){var l=a.length;if(typeof b==="object"){for(var q in b)S(a,q,b[q],g,h,e);return a}if(e!==v){g=g&&d.isFunction(e);for(q=0;q<l;q++)h(a[q],b,g?e.call(a[q],q,h(a[q],b)):e,k);return a}return l?h(a[0],b):null}function Z(){return(new Date).getTime()}function $(a,b){var e=0;b.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var g=d.data(a[e++]),h=d.data(this,g);if(g=g&&g.events){delete h.handle;h.events={};for(var k in g)for(var l in g[k])d.event.add(this,k,g[k][l],g[k][l].data)}}})}function aa(a,b,e){var g,h,k;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&a[0].indexOf("<option")<0){h=true;if(k=d.fragments[a[0]])if(k!==1)g=k}if(!g){b=b&&b[0]?b[0].ownerDocument||b[0]:r;g=b.createDocumentFragment();d.clean(a,b,g,e)}if(h)d.fragments[a[0]]=k?g:1;return{fragment:g,cacheable:h}}function M(a){for(var b=0,e,g;(e=a[b])!=null;b++)if(!d.noData[e.nodeName.toLowerCase()]&&(g=e[B]))delete d.cache[g]}function ba(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,b){return new d.fn.init(a,b)},sa=x.jQuery,ta=x.$,r=x.document,N,ua=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,va=/^.[^:#\[\.,]*$/,wa=/\S/,xa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent,ca=false,H=[],E,T=Object.prototype.toString,U=Object.prototype.hasOwnProperty,V=Array.prototype.push,I=Array.prototype.slice,O=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,b){var e,g;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!b))if(e[1]){g=b?b.ownerDocument||b:r;if(a=ya.exec(a))if(d.isPlainObject(b)){a=[r.createElement(a[1])];d.fn.attr.call(a,b,true)}else a=[g.createElement(a[1])];else{a=aa([e[1]],[g]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(e[2])){if(b.id!==e[2])return N.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||N).find(a):d(b).find(a);else if(d.isFunction(a))return N.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return d.isArray(a)?this.setArray(a):d.makeArray(a,this)},selector:"",jquery:"1.4b1pre",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,e){a=d(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;V.apply(this,a);return this},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(r,d);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||d(null)},push:V,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,h,k,l,q;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(g&&q&&(d.isPlainObject(q)||d.isArray(q))){l=l&&(d.isPlainObject(l)||d.isArray(l))?l:d.isArray(q)?[]:{};a[k]=d.extend(g,l,q)}else if(q!==v)a[k]=q}return a};d.extend({noConflict:function(a){x.$=ta;if(a)x.jQuery=sa;return d},isReady:false,ready:function(){if(!d.isReady){if(!r.body)return setTimeout(d.ready,13);d.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,d);H=null}d.fn.triggerHandler&&d(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return d.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",d.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload",d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},noop:function(){},globalEval:function(a){if(a&&wa.test(a)){var b=r.getElementsByTagName("head")[0]||r.documentElement,e=r.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(r.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,e){var g,h=0,k=a.length,l=k===v||d.isFunction(a);if(e)if(l)for(g in a){if(b.apply(a[g],e)===false)break}else for(;h<k;){if(b.apply(a[h++],e)===false)break}else if(l)for(g in a){if(b.call(a[g],g,a[g])===false)break}else for(e=a[0];h<k&&b.call(e,h,e)!==false;e=a[++h]);return a},trim:function(a){return(a||"").replace(xa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||d.isFunction(a)||typeof a!=="function"&&a.setInterval?V.call(b,a):d.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var e=0,g=b.length;e<g;e++)if(b[e]===a)return e;return-1},merge:function(a,b){var e=a.length,g=0;if(typeof b.length==="number")for(var h=b.length;g<h;g++)a[e++]=b[g];else for(;b[g]!==v;)a[e++]=b[g++];a.length=e;return a},grep:function(a,b,e){for(var g=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&g.push(a[h]);return g},map:function(a,b,e){for(var g=[],h,k=0,l=a.length;k<l;k++){h=b(a[k],k,e);if(h!=null)g[g.length]=h}return g.concat.apply([],g)},guid:1,proxy:function(a,b,e){if(arguments.length===2)if(typeof b==="string"){e=a;a=e[b];b=v}else if(b&&!d.isFunction(b)){e=b;b=v}if(!b&&a)b=function(){return a.apply(e||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||d.guid++;return b},uaMatch:function(a){var b={browser:""};a=a.toLowerCase();if(/webkit/.test(a))b={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};else if(/opera/.test(a))b={browser:"opera",version:/opera[\/ ]([\w.]+)/};else if(/msie/.test(a))b={browser:"msie",version:/msie ([\w.]+)/};else if(/mozilla/.test(a)&&!/compatible/.test(a))b={browser:"mozilla",version:/rv:([\w.]+)/};b.version=(b.version&&b.version.exec(a)||[0,"0"])[1];return b},browser:{}});G=d.uaMatch(G);if(G.browser){d.browser[G.browser]=true;d.browser.version=G.version}if(d.browser.webkit)d.browser.safari=true;if(O)d.inArray=function(a,b){return O.call(b,a)};N=d(r);if(r.addEventListener)E=function(){r.removeEventListener("DOMContentLoaded",E,false);d.ready()};else if(r.attachEvent)E=function(){if(r.readyState==="complete"){r.detachEvent("onreadystatechange",E);d.ready()}};if(O)d.inArray=function(a,b){return O.call(b,a)};(function(){d.support={};var a=r.documentElement,b=r.createElement("script"),e=r.createElement("div"),g="script"+Z();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var h=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!h||!h.length||!k)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+g+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(x[g]){d.support.scriptEval=true;delete x[g]}a.removeChild(b);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function q(){d.support.noCloneEvent=false;e.detachEvent("onclick",q)});e.cloneNode(true).fireEvent("onclick")}d(function(){var q=r.createElement("div");q.style.width=q.style.paddingLeft="1px";r.body.appendChild(q);d.boxModel=d.support.boxModel=q.offsetWidth===2;r.body.removeChild(q).style.display="none"});a=function(q){var p=r.createElement("div");q="on"+q;var o=q in p;if(!o){p.setAttribute(q,"return;");o=typeof p[q]==="function"}return o};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=b=e=h=k=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var B="jQuery"+Z(),za=0,da={},Aa={};d.extend({cache:{},expando:B,noData:{embed:true,object:true,applet:true},data:function(a,b,e){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var g=a[B],h=d.cache;if(!b&&!g)return null;g||(g=++za);if(typeof b==="object"){a[B]=g;h=h[g]=d.extend(true,{},b)}else h=h[g]?h[g]:typeof e==="undefined"?Aa:(h[g]={});if(e!==v){a[B]=g;h[b]=e}return typeof b==="string"?h[b]:h}},removeData:function(a,b){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var e=a[B],g=d.cache,h=g[e];if(b){if(h){delete h[b];d.isEmptyObject(h)&&d.removeData(a)}}else{try{delete a[B]}catch(k){a.removeAttribute&&a.removeAttribute(B)}delete g[e]}}}});d.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){d.data(this,a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});(function(){function a(c){for(var f="",i,j=0;c[j];j++){i=c[j];if(i.nodeType===3||i.nodeType===4)f+=i.nodeValue;else if(i.nodeType!==8)f+=a(i.childNodes)}return f}function b(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===f){u=s;break}s=s[c]}j[n]=u}}}function e(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof f!=="string"){if(s===f){u=true;break}}else if(p.filter(f,[s]).length>0){u=s;break}}s=s[c]}j[n]=u}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(c,f,i,j){i=i||[];var n=f=f||r;if(f.nodeType!==1&&f.nodeType!==9)return[];if(!c||typeof c!=="string")return i;for(var m=[],t,s,u,J,C=true,F=P(f),D=c;(g.exec(""),t=g.exec(D))!==null;){D=t[3];m.push(t[1]);if(t[2]){J=t[3];break}}if(m.length>1&&w.exec(c))if(m.length===2&&o.relative[m[0]])s=ea(m[0]+m[1],f);else for(s=o.relative[m[0]]?[f]:p(m.shift(),f);m.length;){c=m.shift();if(o.relative[c])c+=m.shift();s=ea(c,s)}else{if(!j&&m.length>1&&f.nodeType===9&&!F&&o.match.ID.test(m[0])&&!o.match.ID.test(m[m.length-1])){t=p.find(m.shift(),f,F);f=t.expr?p.filter(t.expr,t.set)[0]:t.set[0]}if(f){t=j?{expr:m.pop(),set:K(j)}:p.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&f.parentNode?f.parentNode:f,F);s=t.expr?p.filter(t.expr,t.set):t.set;if(m.length>0)u=K(s);else C=false;for(;m.length;){var z=m.pop();t=z;if(o.relative[z])t=m.pop();else z="";if(t==null)t=f;o.relative[z](u,t,F)}}else u=[]}u||(u=s);if(!u)throw"Syntax error, unrecognized expression: "+(z||c);if(k.call(u)==="[object Array]")if(C)if(f&&f.nodeType===1)for(c=0;u[c]!=null;c++){if(u[c]&&(u[c]===true||u[c].nodeType===1&&fa(f,u[c])))i.push(s[c])}else for(c=0;u[c]!=null;c++)u[c]&&u[c].nodeType===1&&i.push(s[c]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(c){if(L){l=q;c.sort(L);if(l)for(var f=1;f<c.length;f++)c[f]===c[f-1]&&c.splice(f--,1)}return c};p.matches=function(c,f){return p(c,null,null,f)};p.find=function(c,f,i){var j,n;if(!c)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(c)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g,"");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=false;else if(ga){m.push(z);u=true}}if(D!==v){i||(t=m);c=c.replace(o.match[C],"");if(!u)return[];break}}if(c===n)if(u==null)throw"Syntax error, unrecognized expression: "+c;else break;n=c}return t};var o=p.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(c){return c.getAttribute("href")}},relative:{"+":function(c,f){var i=typeof f==="string",j=i&&!/\W/.test(f);i=i&&!j;if(j)f=f.toLowerCase();j=0;for(var n=c.length,m;j<n;j++)if(m=c[j]){for(;(m=m.previousSibling)&&m.nodeType!==1;);c[j]=i||m&&m.nodeName.toLowerCase()===f?m||false:m===f}i&&p.filter(f,c,true)},">":function(c,f){var i=typeof f==="string";if(i&&!/\W/.test(f)){f=f.toLowerCase();for(var j=0,n=c.length;j<n;j++){var m=c[j];if(m){i=m.parentNode;c[j]=i.nodeName.toLowerCase()===f?i:false}}}else{j=0;for(n=c.length;j<n;j++)if(m=c[j])c[j]=i?m.parentNode:m.parentNode===f;i&&p.filter(f,c,true)}},"":function(c,f,i){var j=h++,n=e;if(typeof f==="string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("parentNode",f,j,c,m,i)},"~":function(c,f,i){var j=h++,n=e;if(typeof f==="string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("previousSibling",f,j,c,m,i)}},find:{ID:function(c,f,i){if(typeof f.getElementById!=="undefined"&&!i)return(c=f.getElementById(c[1]))?[c]:[]},NAME:function(c,f){if(typeof f.getElementsByName!=="undefined"){var i=[];f=f.getElementsByName(c[1]);for(var j=0,n=f.length;j<n;j++)f[j].getAttribute("name")===c[1]&&i.push(f[j]);return i.length===0?null:i}},TAG:function(c,f){return f.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,f,i,j,n,m){c=" "+c[1].replace(/\\/g,"")+" ";if(m)return c;m=0;for(var t;(t=f[m])!=null;m++)if(t)if(n^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))i||j.push(t);else if(i)f[m]=false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(c[1]==="nth"){var f=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=f[1]+(f[2]||1)-0;c[3]=f[3]-0}c[0]=h++;return c},ATTR:function(c,f,i,j,n,m){f=c[1].replace(/\\/g,"");if(!m&&o.attrMap[f])c[1]=o.attrMap[f];if(c[2]==="~=")c[4]=" "+c[4]+" ";return c},PSEUDO:function(c,f,i,j,n){if(c[1]==="not")if((g.exec(c[3])||"").length>1||/^\w/.test(c[3]))c[3]=p(c[3],null,null,f);else{c=p.filter(c[3],f,i,true^n);i||j.push.apply(j,c);return false}else if(o.match.POS.test(c[0])||o.match.CHILD.test(c[0]))return true;return c},POS:function(c){c.unshift(true);return c}},filters:{enabled:function(c){return c.disabled===false&&c.type!=="hidden"},disabled:function(c){return c.disabled===true},checked:function(c){return c.checked===true},selected:function(c){return c.selected===true},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},has:function(c,f,i){return!!p(i[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){return"text"===c.type},radio:function(c){return"radio"===c.type},checkbox:function(c){return"checkbox"===c.type},file:function(c){return"file"===c.type},password:function(c){return"password"===c.type},submit:function(c){return"submit"===c.type},image:function(c){return"image"===c.type},reset:function(c){return"reset"===c.type},button:function(c){return"button"===c.type||c.nodeName.toLowerCase()==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)}},setFilters:{first:function(c,f){return f===0},last:function(c,f,i,j){return f===j.length-1},even:function(c,f){return f%2===0},odd:function(c,f){return f%2===1},lt:function(c,f,i){return f<i[3]-0},gt:function(c,f,i){return f>i[3]-0},nth:function(c,f,i){return i[3]-0===f},eq:function(c,f,i){return i[3]-0===f}},filter:{PSEUDO:function(c,f,i,j){var n=f[1],m=o.filters[n];if(m)return m(c,i,f,j);else if(n==="contains")return(c.textContent||c.innerText||a([c])||"").indexOf(f[3])>=0;else if(n==="not"){f=f[3];i=0;for(j=f.length;i<j;i++)if(f[i]===c)return false;return true}else throw"Syntax error, unrecognized expression: "+n;},CHILD:function(c,f){var i=f[1],j=c;switch(i){case "only":case "first":for(;j=j.previousSibling;)if(j.nodeType===1)return false;if(i==="first")return true;j=c;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return false;return true;case "nth":i=f[2];var n=f[3];if(i===1&&n===0)return true;f=f[0];var m=c.parentNode;if(m&&(m.sizcache!==f||!c.nodeIndex)){var t=0;for(j=m.firstChild;j;j=j.nextSibling)if(j.nodeType===1)j.nodeIndex=++t;m.sizcache=f}c=c.nodeIndex-n;return i===0?c===0:c%i===0&&c/i>=0}},ID:function(c,f){return c.nodeType===1&&c.getAttribute("id")===f},TAG:function(c,f){return f==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===f},CLASS:function(c,f){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(f)>-1},ATTR:function(c,f){var i=f[1];c=o.attrHandle[i]?o.attrHandle[i](c):c[i]!=null?c[i]:c.getAttribute(i);i=c+"";var j=f[2];f=f[4];return c==null?j==="!=":j==="="?i===f:j==="*="?i.indexOf(f)>=0:j==="~="?(" "+i+" ").indexOf(f)>=0:!f?i&&c!==false:j==="!="?i!==f:j==="^="?i.indexOf(f)===0:j==="$="?i.substr(i.length-f.length)===f:j==="|="?i===f||i.substr(0,f.length+1)===f+"-":false},POS:function(c,f,i,j){var n=o.setFilters[f[2]];if(n)return n(c,i,f,j)}}},w=o.match.POS;for(var A in o.match){o.match[A]=new RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source)}var K=function(c,f){c=Array.prototype.slice.call(c,0);if(f){f.push.apply(f,c);return f}return c};try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(Wa){K=function(c,f){f=f||[];if(k.call(c)==="[object Array]")Array.prototype.push.apply(f,c);else if(typeof c.length==="number")for(var i=0,j=c.length;i<j;i++)f.push(c[i]);else for(i=0;c[i];i++)f.push(c[i]);return f}}var L;if(r.documentElement.compareDocumentPosition)L=function(c,f){if(!c.compareDocumentPosition||!f.compareDocumentPosition){if(c==f)l=true;return c.compareDocumentPosition?-1:1}c=c.compareDocumentPosition(f)&4?-1:c===f?0:1;if(c===0)l=true;return c};else if("sourceIndex"in r.documentElement)L=function(c,f){if(!c.sourceIndex||!f.sourceIndex){if(c==f)l=true;return c.sourceIndex?-1:1}c=c.sourceIndex-f.sourceIndex;if(c===0)l=true;return c};else if(r.createRange)L=function(c,f){if(!c.ownerDocument||!f.ownerDocument){if(c==f)l=true;return c.ownerDocument?-1:1}var i=c.ownerDocument.createRange(),j=f.ownerDocument.createRange();i.setStart(c,0);i.setEnd(c,0);j.setStart(f,0);j.setEnd(f,0);c=i.compareBoundaryPoints(Range.START_TO_END,j);if(c===0)l=true;return c};(function(){var c=r.createElement("div"),f="script"+(new Date).getTime();c.innerHTML="<a name='"+f+"'/>";var i=r.documentElement;i.insertBefore(c,i.firstChild);if(r.getElementById(f)){o.find.ID=function(j,n,m){if(typeof n.getElementById!=="undefined"&&!m)return(n=n.getElementById(j[1]))?n.id===j[1]||typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id").nodeValue===j[1]?[n]:v:[]};o.filter.ID=function(j,n){var m=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id");return j.nodeType===1&&m&&m.nodeValue===n}}i.removeChild(c);i=c=null})();(function(){var c=r.createElement("div");c.appendChild(r.createComment(""));if(c.getElementsByTagName("*").length>0)o.find.TAG=function(f,i){i=i.getElementsByTagName(f[1]);if(f[1]==="*"){f=[];for(var j=0;i[j];j++)i[j].nodeType===1&&f.push(i[j]);i=f}return i};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(f){return f.getAttribute("href",2)};c=null})();r.querySelectorAll&&function(){var c=p,f=r.createElement("div");f.innerHTML="<p class='TEST'></p>";if(!(f.querySelectorAll&&f.querySelectorAll(".TEST").length===0)){p=function(j,n,m,t){n=n||r;if(!t&&n.nodeType===9&&!P(n))try{return K(n.querySelectorAll(j),m)}catch(s){}return c(j,n,m,t)};for(var i in c)p[i]=c[i];f=null}}();(function(){var c=r.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!c.getElementsByClassName||c.getElementsByClassName("e").length===0)){c.lastChild.className="e";if(c.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(f,i,j){if(typeof i.getElementsByClassName!=="undefined"&&!j)return i.getElementsByClassName(f[1])};c=null}}})();var fa=r.compareDocumentPosition?function(c,f){return c.compareDocumentPosition(f)&16}:function(c,f){return c!==f&&(c.contains?c.contains(f):true)},P=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":false},ea=function(c,f){var i=[],j="",n;for(f=f.nodeType?[f]:f;n=o.match.PSEUDO.exec(c);){j+=n[0];c=c.replace(o.match.PSEUDO,"")}c=o.relative[c]?c+"*":c;n=0;for(var m=f.length;n<m;n++)p(c,f[n],i);return p.filter(j,i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return d.grep(a,function(h){return h===b===e});else if(typeof b==="string"){var g=d.grep(a,function(h){return h.nodeType===1});if(va.test(b))return d.filter(b,g,!e);else b=d.filter(b,a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this,a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){if(d.isArray(a)){var e=[],g=this[0],h,k={},l;if(g&&a.length){h=0;for(var q=a.length;h<q;h++){l=a[h];k[l]||(k[l]=d.expr.match.POS.test(l)?d(l,b||this.context):l)}for(;g&&g.ownerDocument&&g!==b;){for(l in k){h=k[l];if(h.jquery?h.index(g)>-1:d(g).is(h)){e.push({selector:l,elem:g});delete k[l]}}g=g.parentNode}}return e}var p=d.expr.match.POS.test(a)?d(a,b||this.context):null;return this.map(function(o,w){for(;w&&w.ownerDocument&&w!==b;){if(p?p.index(w)>-1:d(w).is(a))return w;w=w.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?d(a,b||this.context):d.makeArray(a);b=d.merge(this.get(),a);return this.pushStack(a[0]&&(a[0].setInterval||a[0].nodeType===9||a[0].parentNode&&a[0].parentNode.nodeType!==11)?d.unique(b):b)},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling",e)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(e,g){var h=d.map(this,b,e);Ba.test(a)||(g=e);if(g&&typeof g==="string")h=d.filter(g,h);h=this.length>1?d.unique(h):h;if((this.length>1||Da.test(g))&&Ca.test(a))h=h.reverse();return this.pushStack(h,a,I.call(arguments).join(","))}});d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/[\n\t]/g,W=/\s+/,Ea=/\r/g,Fa=/href|src|style/,Ga=/(button|input)/i,Ha=/(button|input|object|select|textarea)/i,Ia=/^(a|area)$/i,ja=/radio|checkbox/;d.fn.extend({attr:function(a,b){return S(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.addClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(W),e=0,g=this.length;e<g;e++){var h=this[e];if(h.nodeType===1)if(h.className)for(var k=" "+h.className+" ",l=0,q=b.length;l<q;l++){if(k.indexOf(" "+b[l]+" ")<0)h.className+=" "+b[l]}else h.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.removeClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(W),e=0,g=this.length;e<g;e++){var h=this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1,k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q=g?q:!l.hasClass(h);l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,e=this.length;b<e;b++)if((" "+this[b].className+" ").replace(ia," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(d.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(d.nodeName(b,"select")){var e=b.selectedIndex,g=[],h=b.options;b=b.type==="select-one";if(e<0)return null;var k=b?e:0;for(e=b?e+1:h.length;k<e;k++){var l=h[k];if(l.selected){a=d(l).val();if(b)return a;g.push(a)}}return g}if(ja.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=d.isFunction(a);return this.each(function(p){var o=d(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(d.isArray(w)&&ja.test(this.type))this.checked=d.inArray(o.val(),w)>=0;else if(d.nodeName(this,"select")){var A=d.makeArray(w);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed";a[b]=e}if(d.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ha.test(a.nodeName)||Ia.test(a.nodeName)&&a.href?0:v;return a[b]}if(!d.support.style&&g&&b==="style"){if(h)a.style.cssText=""+e;return a.style.cssText}h&&a.setAttribute(b,""+e);a=!d.support.hrefNormalized&&g&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return d.style(a,b,e)}});var ka=/ jQuery\d+="(?:\d+|null)"/g,R=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,Ka=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,la=/<([\w:]+)/,La=/<tbody/i,Ma=/<|&\w+;/,Na=function(a,b,e){return Ka.test(e)?a:b+"></"+e+">"},y={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return d.getText(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this,e))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){d(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var e=this.outerHTML,g=this.ownerDocument;if(!e){e=g.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return d.clean([e.replace(ka,"").replace(R,"")],g)[0]}else return this.cloneNode(true)});if(a===true){$(this,b);$(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ka,""):null;else if(typeof a==="string"&&!/<script/i.test(a)&&(d.support.leadingWhitespace||!R.test(a))&&!y[(la.exec(a)||["",""])[1].toLowerCase()])try{for(var b=0,e=this.length;b<e;b++)if(this[b].nodeType===1){M(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(g){this.empty().append(a)}else d.isFunction(a)?this.each(function(h){var k=d(this),l=k.html();k.empty().append(function(){return a.call(this,h,l)})}):this.empty().append(a);return this},replaceWith:function(a){return this[0]&&this[0].parentNode?this.each(function(){var b=this.nextSibling,e=this.parentNode;d(this).remove();b?d(b).before(a):d(e).append(a)}):this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,e){function g(w){return d.nodeName(w,"table")?w.getElementsByTagName("tbody")[0]||w.appendChild(w.ownerDocument.createElement("tbody")):w}var h,k,l=a[0],q=[];if(d.isFunction(l))return this.each(function(w){var A=d(this);a[0]=l.call(this,w,b?A.html():v);return A.domManip(a,b,e)});if(this[0]){h=a[0]&&a[0].parentNode&&a[0].parentNode.nodeType===11?{fragment:a[0].parentNode}:aa(a,this,q);if(k=h.fragment.firstChild){b=b&&d.nodeName(k,"tr");for(var p=0,o=this.length;p<o;p++)e.call(b?g(this[p],k):this[p],h.cacheable||this.length>1||p>0?h.fragment.cloneNode(true):h.fragment)}q&&d.each(q,ra)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(e){var g=[];e=d(e);for(var h=0,k=e.length;h<k;h++){var l=(h>0?this.clone(true):this).get();d.fn[b].apply(d(e[h]),l);g=g.concat(l)}return this.pushStack(g,a,e.selector)}});d.each({remove:function(a,b){if(!a||d.filter(a,[this]).length){if(!b&&this.nodeType===1){M(this.getElementsByTagName("*"));M([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&M(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){d.fn[a]=function(){return this.each(b,arguments)}});d.extend({clean:function(a,b,e,g){b=b||r;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||r;var h=[];d.each(a,function(k,l){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!Ma.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Ja,Na);var q=(la.exec(l)||["",""])[1].toLowerCase(),p=y[q]||y._default,o=p[0];k=b.createElement("div");for(k.innerHTML=p[1]+l+p[2];o--;)k=k.lastChild;if(!d.support.tbody){o=La.test(l);q=q==="table"&&!o?k.firstChild&&k.firstChild.childNodes:p[1]==="<table>"&&!o?k.childNodes:[];for(p=q.length-1;p>=0;--p)d.nodeName(q[p],"tbody")&&!q[p].childNodes.length&&q[p].parentNode.removeChild(q[p])}!d.support.leadingWhitespace&&R.test(l)&&k.insertBefore(b.createTextNode(R.exec(l)[0]),k.firstChild);l=d.makeArray(k.childNodes)}if(l.nodeType)h.push(l);else h=d.merge(h,l)}});if(e)for(a=0;h[a];a++)if(g&&d.nodeName(h[a],"script")&&(!h[a].type||h[a].type.toLowerCase()==="text/javascript"))g.push(h[a].parentNode?h[a].parentNode.removeChild(h[a]):h[a]);else{h[a].nodeType===1&&h.splice.apply(h,[a+1,0].concat(d.makeArray(h[a].getElementsByTagName("script"))));e.appendChild(h[a])}return h}});d.fn.offset="getBoundingClientRect"in r.documentElement?function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(h){d.offset.setOffset(this,a,h)});if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);var e=b.getBoundingClientRect(),g=b.ownerDocument;b=g.body;g=g.documentElement;return{top:e.top+(self.pageYOffset||d.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:e.left+(self.pageXOffset||d.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(w){d.offset.setOffset(this,a,w)});if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var e=b.offsetParent,g=b,h=b.ownerDocument,k,l=h.documentElement,q=h.body;g=(h=h.defaultView)?h.getComputedStyle(b,null):b.currentStyle;for(var p=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==q&&b!==l;){if(d.offset.supportsFixedPosition&&g.position==="fixed")break;k=h?h.getComputedStyle(b,null):b.currentStyle;p-=b.scrollTop;o-=b.scrollLeft;if(b===e){p+=b.offsetTop;o+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){p+=parseFloat(k.borderTopWidth)||0;o+=parseFloat(k.borderLeftWidth)||0}g=e;e=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){p+=parseFloat(k.borderTopWidth)||0;o+=parseFloat(k.borderLeftWidth)||0}g=k}if(g.position==="relative"||g.position==="static"){p+=q.offsetTop;o+=q.offsetLeft}if(d.offset.supportsFixedPosition&&g.position==="fixed"){p+=Math.max(l.scrollTop,q.scrollTop);o+=Math.max(l.scrollLeft,q.scrollLeft)}return{top:p,left:o}};d.offset={initialize:function(){var a=r.body,b=r.createElement("div"),e,g,h,k=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);e=b.firstChild;g=e.firstChild;h=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=h.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b);d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),h=g.offset(),k=parseInt(d.curCSS(a,"top",true),10)||0,l=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a,e,h);e={top:b.top-h.top+k,left:b.left-h.left+l};"using"in b?b.using.call(a,e):g.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),e=this.offset(),g=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;e.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;g.top+=parseFloat(d.curCSS(b[0],"borderTopWidth",true))||0;g.left+=parseFloat(d.curCSS(b[0],"borderLeftWidth",true))||0;return{top:e.top-g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,b){var e="scroll"+b;d.fn[e]=function(g){var h=this[0],k;if(!h)return null;if(g!==v)return this.each(function(){if(k=ba(this))k.scrollTo(!a?g:d(k).scrollLeft(),a?g:d(k).scrollTop());else this[e]=g});else return(k=ba(h))?"pageXOffset"in k?k[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&k.document.documentElement[e]||k.document.body[e]:h[e]}});var Oa=/z-?index|font-?weight|opacity|zoom|line-?height/i,ma=/alpha\([^)]*\)/,na=/opacity=([^)]*)/,X=/float/i,oa=/-([a-z])/ig,Pa=/([A-Z])/g,Qa=/^-?\d+(?:px)?$/i,Ra=/^-?\d/,Sa={position:"absolute",visibility:"hidden",display:"block"},Ta=["Left","Right"],Ua=["Top","Bottom"],Va=r.defaultView&&r.defaultView.getComputedStyle,pa=d.support.cssFloat?"cssFloat":"styleFloat",qa=function(a,b){return b.toUpperCase()};d.fn.css=function(a,b){return S(this,a,b,true,function(e,g,h){if(h===v)return d.curCSS(e,g);if(typeof h==="number"&&!Oa.test(g))h+="px";d.style(e,g,h)})};d.extend({style:function(a,b,e){if(!a||a.nodeType===3||a.nodeType===8)return v;if((b==="width"||b==="height")&&parseFloat(e)<0)e=v;var g=a.style||a,h=e!==v;if(!d.support.opacity&&b==="opacity"){if(h){g.zoom=1;b=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=g.filter||d.curCSS(a,"filter")||"";g.filter=ma.test(a)?a.replace(ma,b):b}return g.filter&&g.filter.indexOf("opacity=")>=0?parseFloat(na.exec(g.filter)[1])/100+"":""}if(X.test(b))b=pa;b=b.replace(oa,qa);if(h)g[b]=e;return g[b]},css:function(a,b,e,g){if(b==="width"||b==="height"){var h,k=b==="width"?Ta:Ua;function l(){h=b==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&d.each(k,function(){g||(h-=parseFloat(d.curCSS(a,"padding"+this,true))||0);if(g==="margin")h+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?l():d.swap(a,Sa,l);return Math.max(0,Math.round(h))}return d.curCSS(a,b,e)},curCSS:function(a,b,e){var g,h=a.style;if(!d.support.opacity&&b==="opacity"&&a.currentStyle){g=na.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return g===""?"1":g}if(X.test(b))b=pa;if(!e&&h&&h[b])g=h[b];else if(Va){if(X.test(b))b="float";b=b.replace(Pa,"-$1").toLowerCase();h=a.ownerDocument.defaultView;if(!h)return null;if(a=h.getComputedStyle(a,null))g=a.getPropertyValue(b);if(b==="opacity"&&g==="")g="1"}else if(a.currentStyle){e=b.replace(oa,qa);g=a.currentStyle[b]||a.currentStyle[e];if(!Qa.test(g)&&Ra.test(g)){b=h.left;var k=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=e==="fontSize"?"1em":g||0;g=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=k}}return g},swap:function(a,b,e){var g={};for(var h in b){g[h]=a.style[h];a.style[h]=b[h]}e.call(a);for(h in b)a.style[h]=g[h]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var b=a.offsetWidth,e=a.offsetHeight,g=a.nodeName.toLowerCase()==="tr";return b===0&&e===0&&!g?true:b>0&&e>0&&!g?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}x.jQuery=x.$=d})(window);
editor.onActivate.add(function(editor) { $(editor.getContainer()).addClass('expanded'); });
editor.onEvent.add(function(editor, evt) { if(!added) { $(editor.getContainer()).addClass('expanded'); added = true; } });
editor.onActivate.add(function(editor) { $(editor.getContainer()).addClass('expanded'); });
var searchText = $(this).attr('text');
var searchText = $(this).val();
$(document).ready(function() { $("#loading").ajaxStart(function() { $(this).show(); }); $("#loading").ajaxStop(function() { $(this).hide(); $('.sortable').sortable(); }); $('#hosts').load('/cgi-bin/collection.modified.cgi'); $('#menu-tabs').tabs(); $(".date-field").datepicker(); $("#clock").jclock(); $("#clock-server").jclock(); $("#clock-server-slider").slider(); $('button').button(); $('#show-ruler-checkbox').click(function(){ if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } }); $('#ruler').draggable( { axis: 'x' } ); $('#hosts a, #plugins a').live('click', load_url); $('li.graph-image .ui-icon-close').live('click', function() { $(this).parent().parent().remove(); }); $("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("slow"); $(this).toggleClass("active"); return false; }); $('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); }); $("#host-filter").live('keyup', function() { var searchText = $(this).attr('text'); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); }); $('#hosts a, #plugins a').live('click', function() { $(this).addClass("selected"); }); $("#timespan-menu li").live( 'click', function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); $("li.graph-image li").hide(); $("li.graph-image li." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass( "selected"); });});
zpi.success();
var ZoteroWinWordIntegration = new function() { this.EXTENSION_STRING = "Zotero WinWord Integration"; this.EXTENSION_ID = "[email protected]"; this.EXTENSION_PREF_BRANCH = "extensions.zoteroWinWordIntegration."; this.EXTENSION_DIR = "zotero-winword-integration"; this.APP = 'Microsoft Word'; this.REQUIRED_ADDONS = [{ name: "Zotero", url: "zotero.org", id: "[email protected]", minVersion: "2.1a1.SVN" }]; var zoteroPluginInstaller; this.verifyNotCorrupt = function(zpi) {} this.install = function(zpi) { // get Zotero.dot file var dot = zpi.getAddonPath(this.EXTENSION_ID); dot.append("install"); dot.append("Zotero.dot"); // find Word Startup folders (see http://support.microsoft.com/kb/210860) var appData = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("AppData", Components.interfaces.nsILocalFile); // first check the registry for a custom startup folder var startupFolders = []; var addDefaultStartupFolder = false; var wrk = Components.classes["@mozilla.org/windows-registry-key;1"] .createInstance(Components.interfaces.nsIWindowsRegKey); for(var i=9; i<=13; i++) { var path = null; try { wrk.open(Components.interfaces.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Office\\"+i+".0\\Word\\Options", Components.interfaces.nsIWindowsRegKey.ACCESS_READ); try { path = wrk.readStringValue("STARTUP-PATH"); } finally { wrk.close(); } } catch(e) {} // create nsIFile from path in registry if(path) { try { var startupFolder = Components.classes["@mozilla.org/file/local;1"]. createInstance(Components.interfaces.nsILocalFile); startupFolder.initWithPath(path); startupFolders.push(startupFolder); } catch(e) { addDefaultStartupFolder = true; } } else { try { wrk.open(Components.interfaces.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Office\\"+i+".0\\Common\\General", Components.interfaces.nsIWindowsRegKey.ACCESS_READ); try { var startup = wrk.readStringValue("Startup"); var startupFolder = appData.clone().QueryInterface(Components.interfaces.nsILocalFile); startupFolder.appendRelativePath("Microsoft\\Word\\"+startup); startupFolders.push(startupFolder); } finally { wrk.close(); } } catch(e) { addDefaultStartupFolder = true; } } } if(startupFolders.length == 0 || addDefaultStartupFolder) { // if not in the registry, append Microsoft/Word/Startup to %AppData% (default location) var startupFolder = appData.clone().QueryInterface(Components.interfaces.nsILocalFile); startupFolder.appendRelativePath("Microsoft\\Word\\Startup"); startupFolders.push(startupFolder); } for each(var startupFolder in startupFolders) { var oldDot = startupFolder.clone().QueryInterface(Components.interfaces.nsILocalFile); oldDot.append("Zotero.dot"); if(oldDot.exists()) oldDot.remove(false); // copy Zotero.dot file to Word Startup folder dot.copyTo(startupFolder, "Zotero.dot"); } }}
el = new Slideshow($(this), conf, len);
el = new Slideshow($(this), conf);
this.each(function() { el = new Slideshow($(this), conf, len); $(this).data("slideshow", el); });
(function (win) { frames.push(win); Array.slice(win.frames).forEach(arguments.callee); })(window.content);
setTimeout(function () { statusline.updateUrl(); }, 100);
(function (win) { frames.push(win); Array.slice(win.frames).forEach(arguments.callee); })(window.content);
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf(),g=this.getTip(),h=f.opacity;if(h<1){g.css({opacity:h})}g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};function a(f,g){var p=this,k=c(this);f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function o(u){var t=g.relative?f.position().top:f.offset().top,s=g.relative?f.position().left:f.offset().left,v=g.position[0];t-=l.outerHeight()-g.offset[0];s+=f.outerWidth()+g.offset[1];var q=l.outerHeight()+f.outerHeight();if(v=="center"){t+=q/2}if(v=="bottom"){t+=q}v=g.position[1];var r=l.outerWidth()+f.outerWidth();if(v=="center"){s-=r/2}if(v=="left"){s-=r}return{top:t,left:s}}var i=f.is(":input"),e=i&&f.is(":checkbox, :radio, select, :button"),h=f.attr("type"),n=g.events[h]||g.events[i?(e?"widget":"input"):"def"];n=n.split(/,\s*/);if(n.length!=2){throw"Tooltip: bad events configuration for "+h}f.bind(n[0],function(r){if(g.oneInstance){c.each(d,function(){this.hide()})}var q=l.data("trigger");if(q&&q[0]!=this){l.hide().stop(true,true)}r.target=this;p.show(r);n=g.events.tooltip.split(/,\s*/);l.bind(n[0],function(){p.show(r)});if(n[1]){l.bind(n[1],function(){p.hide(r)})}});f.bind(n[1],function(q){p.hide(q)});if(!c.browser.msie&&!i&&!g.predelay){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,j=f.attr("title");if(j&&g.cancelDefault){f.removeAttr("title");f.data("title",j)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o(r);if(g.tip&&j){l.html(f.data("title"))}r=r||c.Event();r.type="onBeforeShow";k.trigger(r,[t]);if(r.isDefaultPrevented()){return p}t=o(r);l.css({position:"absolute",top:t.top,left:t.left});var s=b[g.effect];if(!s){throw'Nonexistent effect "'+g.effect+'"'}s[0].call(p,function(){r.type="onShow";k.trigger(r)})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(r){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){r=r||c.Event();r.type="onBeforeHide";k.trigger(r);if(r.isDefaultPrevented()){return}b[g.effect][1].call(p,function(){r.type="onHide";k.trigger(r)})}if(g.delay&&r){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},bind:function(q,r){k.bind(q,r);return p},onHide:function(q){return this.bind("onHide",q)},onBeforeShow:function(q){return this.bind("onBeforeShow",q)},onShow:function(q){return this.bind("onShow",q)},onBeforeHide:function(q){return this.bind("onBeforeHide",q)},unbind:function(q){k.unbind(q);return p}});c.each(g,function(q,r){if(c.isFunction(r)){p.bind(q,r)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}e=c.extend(true,g,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}if(e.lazy!==false&&(e.lazy===true||this.length>20)){this.one("mouseover",function(h){f=new a(c(this),e);f.show(h);d.push(f)})}else{this.each(function(){f=new a(c(this),e);d.push(f)})}return e.api?f:this}})(jQuery);
e=e||f.Event();e.type="onBeforeHide";h.trigger(e);if(!e.isDefaultPrevented()){l=false;o[b.effect][1].call(c,function(){e.type="onHide";h.trigger(e)});return c}},isShown:function(e){return e?l=="full":l},getConf:function(){return b},getTip:function(){return d},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(e,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(n){n&&f(c).bind(g,n);return c}})}f.tools=f.tools||{version:"1.2.5"};f.tools.tooltip=
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf(),g=this.getTip(),h=f.opacity;if(h<1){g.css({opacity:h})}g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};function a(f,g){var p=this,k=c(this);f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function o(u){var t=g.relative?f.position().top:f.offset().top,s=g.relative?f.position().left:f.offset().left,v=g.position[0];t-=l.outerHeight()-g.offset[0];s+=f.outerWidth()+g.offset[1];var q=l.outerHeight()+f.outerHeight();if(v=="center"){t+=q/2}if(v=="bottom"){t+=q}v=g.position[1];var r=l.outerWidth()+f.outerWidth();if(v=="center"){s-=r/2}if(v=="left"){s-=r}return{top:t,left:s}}var i=f.is(":input"),e=i&&f.is(":checkbox, :radio, select, :button"),h=f.attr("type"),n=g.events[h]||g.events[i?(e?"widget":"input"):"def"];n=n.split(/,\s*/);if(n.length!=2){throw"Tooltip: bad events configuration for "+h}f.bind(n[0],function(r){if(g.oneInstance){c.each(d,function(){this.hide()})}var q=l.data("trigger");if(q&&q[0]!=this){l.hide().stop(true,true)}r.target=this;p.show(r);n=g.events.tooltip.split(/,\s*/);l.bind(n[0],function(){p.show(r)});if(n[1]){l.bind(n[1],function(){p.hide(r)})}});f.bind(n[1],function(q){p.hide(q)});if(!c.browser.msie&&!i&&!g.predelay){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,j=f.attr("title");if(j&&g.cancelDefault){f.removeAttr("title");f.data("title",j)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o(r);if(g.tip&&j){l.html(f.data("title"))}r=r||c.Event();r.type="onBeforeShow";k.trigger(r,[t]);if(r.isDefaultPrevented()){return p}t=o(r);l.css({position:"absolute",top:t.top,left:t.left});var s=b[g.effect];if(!s){throw'Nonexistent effect "'+g.effect+'"'}s[0].call(p,function(){r.type="onShow";k.trigger(r)})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(r){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){r=r||c.Event();r.type="onBeforeHide";k.trigger(r);if(r.isDefaultPrevented()){return}b[g.effect][1].call(p,function(){r.type="onHide";k.trigger(r)})}if(g.delay&&r){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},bind:function(q,r){k.bind(q,r);return p},onHide:function(q){return this.bind("onHide",q)},onBeforeShow:function(q){return this.bind("onBeforeShow",q)},onShow:function(q){return this.bind("onShow",q)},onBeforeHide:function(q){return this.bind("onBeforeHide",q)},unbind:function(q){k.unbind(q);return p}});c.each(g,function(q,r){if(c.isFunction(r)){p.bind(q,r)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}e=c.extend(true,g,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}if(e.lazy!==false&&(e.lazy===true||this.length>20)){this.one("mouseover",function(h){f=new a(c(this),e);f.show(h);d.push(f)})}else{this.each(function(){f=new a(c(this),e);d.push(f)})}return e.api?f:this}})(jQuery);
$("div#row_body").click(function(event) { DeckViewerUI.showAnswer(); });
$("div#row_body").click(function() { DeckViewerUI.showAnswer(); });
$("div#row_body").click(function(event) { DeckViewerUI.showAnswer(); });
}
};
return function() { oGeodesyMarker.dateClicked(year, month, date, dateHrefId); }
function () { content.focus(); });
context.completions = folders.map(function (folder) [folder.server.prettyName + ": " + folder.name, "Unread: " + folder.getNumUnread(false)]);
function () { content.focus(); });
pm = root.find("#" + css.prev).unbind("click").click(function(e) { if (!pm.hasClass(css.disabled)) { self.prev(); } return false;
yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val());
pm = root.find("#" + css.prev).unbind("click").click(function(e) { if (!pm.hasClass(css.disabled)) { self.prev(); } return false; });
messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); var lid = item.lid; lastId = (lastId < lid)? lid : lastId; if ( fullPoll) MBchat.updateables.processMessage(item); });
var presenceReq = new ServerReq('presence.php', function(r) {});
messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); var lid = item.lid; lastId = (lastId < lid)? lid : lastId; //This should throw away messages if lastId is null if ( fullPoll) MBchat.updateables.processMessage(item); });
this.setBool("orderTabsAuto", value);
this.setBool("editRememberCurrentPos", value);
function(value) { this.setBool("orderTabsAuto", value);});
}, function() {
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() {
}, function() { $(this).removeClass('ui-state-hover'); });
});
}, function() { $(this).removeClass('ui-state-hover'); });
$('#clock-server-add').submit(function() { var offset = parseInt($('#clock-server-gmt').html()); var new_span = $(document.createElement("span")); var new_li = $(document.createElement("li")); new_span.jclock( { format : '%H:%M', utc : true, utcOffset : offset }); $(new_span).appendTo(new_li); new_li.append(' ' + $('#clock-server-add-label').val()); $(new_li).appendTo('#new-clock-container'); return false; });
function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } });
$('#clock-server-add').submit(function() { var offset = parseInt($('#clock-server-gmt').html()); var new_span = $(document.createElement("span")); var new_li = $(document.createElement("li")); new_span.jclock( { format : '%H:%M', utc : true, utcOffset : offset }); $(new_span).appendTo(new_li); new_li.append(' ' + $('#clock-server-add-label').val()); $(new_li).appendTo('#new-clock-container'); return false; });
v.fn(":email", "Plase enter a valid email address", function(el, v) {
v.fn(":email", "Please enter a valid email address", function(el, v) {
v.fn(":email", "Plase enter a valid email address", function(el, v) { return !v || emailRe.test(v); });
yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val());
pm = root.find("#" + css.prev).unbind("click").click(function(e) { if (!pm.hasClass(css.disabled)) { self.prev(); } return false;
yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val()); });
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^| )'+arguments[0]+'(?:$| )');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();})();
return d;})();var b=a.env;var c=b.ie;if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();})();
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^| )'+arguments[0]+'(?:$| )');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();})();
prev.toggleClass(conf.disabledClass, i <= 0); next.toggleClass(conf.disabledClass, i >= self.getSize() -1);
setTimeout(function() { if (!e.isDefaultPrevented()) { prev.toggleClass(conf.disabledClass, i <= 0); next.toggleClass(conf.disabledClass, i >= self.getSize() -1); } }, 1);
self.onBeforeSeek(function(e, i) { prev.toggleClass(conf.disabledClass, i <= 0); next.toggleClass(conf.disabledClass, i >= self.getSize() -1); });
padding_interval = setInterval(function ()
padding_interval = window.setInterval(function ()
padding_interval = setInterval(function () { if (doc_docEl.scrollHeight - (window.pageYOffset + doc_docEl.clientHeight) > pixels_needed + extra_padding) { viewPort.removeChild(padding_el); clearInterval(padding_interval); } }, 1000);
clearInterval(padding_interval);
window.clearInterval(padding_interval);
padding_interval = setInterval(function () { if (doc_docEl.scrollHeight - (window.pageYOffset + doc_docEl.clientHeight) > pixels_needed + extra_padding) { viewPort.removeChild(padding_el); clearInterval(padding_interval); } }, 1000);
var presenceReq = new ServerReq('presence.php', function(r) {});
messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); var lid = item.lid; if(lastId) { if (lid >= lastId) { if(lid > lastId+1) { displayErrorMessage("missed a log id, was "+lid+" expecting "+(lastId+1)); } lastId = lid; } } else { lastId = lid; } if ( fullPoll == 2) MBchat.updateables.processMessage(item); });
var presenceReq = new ServerReq('presence.php', function(r) {});
padding_interval = window.setInterval(function () { if (doc_docEl.scrollHeight - (window.pageYOffset + doc_docEl.clientHeight) > pixels_needed + extra_padding) { viewPort.removeChild(padding_el); window.clearInterval(padding_interval); } }, 1000);
return function () { if (!looking_up_verse_range) { looking_up_verse_range = true; window.setTimeout(update_verse_range_delayed, lookup_range_speed); } };
padding_interval = window.setInterval(function () { if (doc_docEl.scrollHeight - (window.pageYOffset + doc_docEl.clientHeight) > pixels_needed + extra_padding) { viewPort.removeChild(padding_el); window.clearInterval(padding_interval); } }, 1000);
var recIndex = this.dataStore.findBy(function(rec, id) { return rec.data[this.dataBookmark] == parts[0]; }, this);
this.groupStore.on('loadexception', function(store, recs, options) { this.selectBookmarkedItem(bookmark); }, this, {
var recIndex = this.dataStore.findBy(function(rec, id) { return rec.data[this.dataBookmark] == parts[0]; }, this);
$('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } });
$(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); },
$('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } });
0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function s(){K.abort();L=K=null;P||v()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},m.updateDelay);
function y(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){w()},m.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(Q);w()}else if((new Date).getTime()-ia>m.updateDelay){clearTimeout(Q);w()}}function F(d){ea=d;r._p_.comm.responseReceived(d)}function w(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*
0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function s(){K.abort();L=K=null;P||v()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},m.updateDelay);
d)}else s()}}function n(){K.abort();N=K=null;R||s()}function H(d,c,f,k){g.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=k;z[i]=aa(m,i);u();j();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function u(){if(K!=null&&N!=null){clearTimeout(N);K.abort();K=null}if(K==null)if(S==null){S=setTimeout(function(){s()},g.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(S);s()}else if((new Date).getTime()-
d)}else s()}}function n(){J.abort();N=J=null;R||s()}function H(d,c,f,k){g.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},i=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=k;z[i]=aa(m,i);u();j();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function u(){if(J!=null&&N!=null){clearTimeout(N);J.abort();J=null}if(J==null)if(S==null){S=setTimeout(function(){s()},g.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(S);s()}else if((new Date).getTime()-
d)}else s()}}function n(){K.abort();N=K=null;R||s()}function H(d,c,f,k){g.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=k;z[i]=aa(m,i);u();j();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function u(){if(K!=null&&N!=null){clearTimeout(N);K.abort();K=null}if(K==null)if(S==null){S=setTimeout(function(){s()},g.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(S);s()}else if((new Date).getTime()-
C.abort();C=null}if(C==null)if(S==null)S=setTimeout(function(){p()},q.updateDelay);else if(R){clearTimeout(S);p()}}function o(c){Y=c;da._p_.comm.responseReceived(c)}function p(){S=null;if(q.isIEMobile)feedback=false;if(X){if(!ea){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ea=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(fa)*1E5);if(v.length>0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};
C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){p()},q.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);p()}else if((new Date).getTime()-da>q.updateDelay){clearTimeout(M);p()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function p(){M=null;if(q.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(ga)*1E5);if(v.length>
C.abort();C=null}if(C==null)if(S==null)S=setTimeout(function(){p()},q.updateDelay);else if(R){clearTimeout(S);p()}}function o(c){Y=c;da._p_.comm.responseReceived(c)}function p(){S=null;if(q.isIEMobile)feedback=false;if(X){if(!ea){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ea=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(fa)*1E5);if(v.length>0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};
function(d){I.state=1;o(0,d.data,null)}}if(c.readyState==1){r();return}}_$_$endif_$_();if(F!=null&&O!=null){clearTimeout(O);F.abort();F=null}if(F==null)if(S==null){S=setTimeout(function(){r()},h.updateDelay);la=(new Date).getTime()}else if(ba){clearTimeout(S);r()}else if((new Date).getTime()-la>h.updateDelay){clearTimeout(S);r()}}function B(c){fa=c;k._p_.comm.responseReceived(c)}function r(){if(!F){S=null;if(R){if(!ma){if(confirm("The application was quited, do you want to restart?"))document.location=
"
function(d){I.state=1;o(0,d.data,null)}}if(c.readyState==1){r();return}}_$_$endif_$_();if(F!=null&&O!=null){clearTimeout(O);F.abort();F=null}if(F==null)if(S==null){S=setTimeout(function(){r()},h.updateDelay);la=(new Date).getTime()}else if(ba){clearTimeout(S);r()}else if((new Date).getTime()-la>h.updateDelay){clearTimeout(S);r()}}function B(c){fa=c;k._p_.comm.responseReceived(c)}function r(){if(!F){S=null;if(R){if(!ma){if(confirm("The application was quited, do you want to restart?"))document.location=
$(self).bind(name, fn);
if (fn) { $(self).bind(name, fn); }
$.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","), function(i, name) { // configuration if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } // API self[name] = function(fn) { $(self).bind(name, fn); return self; }; });
if (data.length >= 10) { $('#hosts ul').css({'height':130, 'overflow-y':'auto'}); }
function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } });
return DONE(result);
return DONE();
function(result) {// BigInteger.log( "stepping_millerRabin:No2.1" ); if ( i < t ) {// BigInteger.log( "stepping_millerRabin:No2.1.1" ); return; } else {// BigInteger.log( "stepping_millerRabin:No2.1.2" ); result.prime = true return DONE(result); } },
$$('dzk_texpand').each(function(el){
$$('.dzk_texpand').each(function(el){
$$('dzk_texpand').each(function(el){ new Texpand(el, {autoShrink: true, shrinkOnBlur:false, expandOnFocus: false, expandOnLoad: true }); });
Array.forEach(document.getElementById("liberator-commandline").childNodes, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; });
liberator.callInMainThread(function () { if ((flags & this.DISALLOW_MULTILINE) && !this._outputContainer.collapsed) return; let single = flags & (this.FORCE_SINGLELINE | this.DISALLOW_MULTILINE); let action = this._echoLine; if (!(flags & this.FORCE_MULTILINE) && !single && (!this._outputContainer.collapsed || this._messageBox.value == this._lastEcho)) { highlightGroup += " Message"; action = this._echoMultiline; } if ((flags & this.FORCE_MULTILINE) || (/\n/.test(str) || typeof str == "xml") && !(flags & this.FORCE_SINGLELINE)) action = this._echoMultiline; if (single) this._lastEcho = null; else { if (this._messageBox.value == this._lastEcho) this._echoMultiline(<span highlight="Message">{this._lastEcho}</span>, this._messageBox.getAttributeNS(NS.uri, "highlight")); this._lastEcho = (action == this._echoLine) && str; } if (action) action.call(this, str, highlightGroup, single); }, this);
Array.forEach(document.getElementById("liberator-commandline").childNodes, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; });
}).each(function(){ html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" media="' + $(this).attr('media') + '" >'); });
$("link", document).filter(function () { return $(this).attr("rel").toLowerCase() == "stylesheet"; }).each(function () {
}).each(function(){ html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" media="' + $(this).attr('media') + '" >'); });
null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):
d)}else F()}}function w(){I.abort();N=I=null;P||F()}function z(d,c,f,k){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!I){_$_$endif_$_();var h={},m=y.length;h.object=d;h.signal=c;h.event=f;h.feedback=k;y[m]=S(h,m);E();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(I!=null&&N!=null){clearTimeout(N);I.abort();I=null}if(I==null)if(Q==null){Q=setTimeout(function(){F()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(Q);F()}else if((new Date).getTime()-
null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):
GEvent.addListener(map, "mousemove", function(latlng){ var latStr = "<b>Long:</b> " + latlng.lng().toFixed(6) + "&nbsp&nbsp&nbsp&nbsp" + "<b>Lat:</b> " + latlng.lat().toFixed(6); document.getElementById("latlng").innerHTML = latStr;
GEvent.addListener(map, "mouseout", function(latlng){ document.getElementById("latlng").innerHTML = "";
GEvent.addListener(map, "mousemove", function(latlng){ var latStr = "<b>Long:</b> " + latlng.lng().toFixed(6) + "&nbsp&nbsp&nbsp&nbsp" + "<b>Lat:</b> " + latlng.lat().toFixed(6); document.getElementById("latlng").innerHTML = latStr; });
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"
(!a.browser.opera&&!b.leaveOpen&&b.printMode.toLowerCase()=="popup"?"close();":"")+"}<\/script>");d.push("</body></html>");return d.join("")}var j=g.document,a=g.jQuery;a.fn.printElement=function(c){var b=a.extend({},a.fn.printElement.defaults,c);if(b.printMode=="iframe")if(a.browser.opera||/chrome/.test(navigator.userAgent.toLowerCase()))b.printMode="popup";a("[id^='printElement_']").remove();return this.each(function(){var i=a.a?a.extend({},b,a(this).data()):b,d=a(this);d=m(d,i);var f=null,e=null; if(i.printMode.toLowerCase()=="popup"){f=g.open("about:blank","printElementWindow","width=650,height=440,scrollbars=yes");e=f.document}else{f="printElement_"+Math.round(Math.random()*99999).toString();var h=j.createElement("IFRAME");a(h).attr({style:i.iframeElementOptions.styleToAdd,id:f,className:i.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:"no",src:"about:blank"});j.body.appendChild(h);e=h.contentWindow||h.contentDocument;if(e.document)e=e.document;h=j.frames?j.frames[f]:j.getElementById(f); f=h.contentWindow||h}focus();e.open();e.write(d);e.close();k(f)})};a.fn.printElement.defaults={printMode:"iframe",pageTitle:"",overrideElementCSS:null,printBodyOptions:{styleToAdd:"padding:10px;margin:10px;",classNameToAdd:""},leaveOpen:false,iframeElementOptions:{styleToAdd:"border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;",classNameToAdd:""}};a.fn.printElement.cssElement={href:"",media:""}})(window);
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;}function _getMarkup(element,opts){var $element=$(element);var elementHtml=_getElementHTMLIncludingFormElements(element);var html=new Array();html.push('<html><head><title>'+opts.pageTitle+'</title>');if(opts.overrideElementCSS){if(opts.overrideElementCSS.length>0){for(var x=0;x<opts.overrideElementCSS.length;x++){var current=opts.overrideElementCSS[x];if(typeof(current)=='string')html.push('<link type="text/css" rel="stylesheet" href="'+current+'" >');else html.push('<link type="text/css" rel="stylesheet" href="'+current.href+'" media="'+current.media+'" >');}}}else{$(document).find("link").filter(function(){return $(this).attr("rel").toLowerCase()=="stylesheet";}).each(function(){html.push('<link type="text/css" rel="stylesheet" href="'+$(this).attr("href")+'" media="'+$(this).attr('media')+'" >');});}html.push('<base href="'+_getBaseHref()+'" />');html.push('</head><body style="'+opts.printBodyOptions.styleToAdd+'" class="'+opts.printBodyOptions.classNameToAdd+'">');html.push('<div class="'+$element.attr('class')+'">'+elementHtml+'</div>');html.push('<script type="text/javascript">function printPage(){focus();print();'+((!$.browser.opera&&!opts.leaveOpen&&opts.printMode.toLowerCase()=='popup')?'close();':'')+'}</script>');html.push('</body></html>');return html.join('');};})(jQuery);
function(result) {
function() {
function(result) {// BigInteger.log( "stepping_millerRabin:No2.1" ); if ( i < t ) {// BigInteger.log( "stepping_millerRabin:No2.1.1" ); return; } else {// BigInteger.log( "stepping_millerRabin:No2.1.2" ); result.prime = true return DONE(); } },
result.prime = true return DONE();
return DONE(true);
function(result) {// BigInteger.log( "stepping_millerRabin:No2.1" ); if ( i < t ) {// BigInteger.log( "stepping_millerRabin:No2.1.1" ); return; } else {// BigInteger.log( "stepping_millerRabin:No2.1.2" ); result.prime = true return DONE(); } },
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-
if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=
L=K=null;P||v()}function y(d,c,e,j){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q);
if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=
Math.exp(T)*500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);
500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);
Math.exp(T)*500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);
null){N=setTimeout(function(){A()},n.updateDelay);fa=(new Date).getTime()}else if(U){clearTimeout(N);A()}else if((new Date).getTime()-fa>n.updateDelay){clearTimeout(N);A()}}function R(d){ca=d;p._p_.comm.responseReceived(d)}function A(){N=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(x.length>0){d=f();c=d.feedback?setTimeout(r,_$_INDICATOR_TIMEOUT_$_):null;
d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);w()}else if((new Date).getTime()-
null){N=setTimeout(function(){A()},n.updateDelay);fa=(new Date).getTime()}else if(U){clearTimeout(N);A()}else if((new Date).getTime()-fa>n.updateDelay){clearTimeout(N);A()}}function R(d){ca=d;p._p_.comm.responseReceived(d)}function A(){N=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(x.length>0){d=f();c=d.feedback?setTimeout(r,_$_INDICATOR_TIMEOUT_$_):null;
}).bind("dragEnd", function(e) { if (!e.isDefaultPrevented()) { e.type = "change"; fire.trigger(e, [value]); }
}).bind("drag", function(e, y, x) {
}).bind("dragEnd", function(e) { if (!e.isDefaultPrevented()) { e.type = "change"; fire.trigger(e, [value]); } }).click(function(e) {
}).click(function(e) {
if (input.is(":disabled")) { return false; } slide(e, vertical ? y : x); }).bind("dragEnd", function(e) {
}).bind("dragEnd", function(e) { if (!e.isDefaultPrevented()) { e.type = "change"; fire.trigger(e, [value]); } }).click(function(e) {
C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){q()},p.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);q()}else if((new Date).getTime()-da>p.updateDelay){clearTimeout(M);q()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function q(){M=null;if(p.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(ga)*1E5);if(v.length>
function j(){if(C!=null&&K!=null){clearTimeout(K);C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){q()},p.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);q()}else if((new Date).getTime()-da>p.updateDelay){clearTimeout(M);q()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function q(){M=null;if(p.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+
C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){q()},p.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);q()}else if((new Date).getTime()-da>p.updateDelay){clearTimeout(M);q()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function q(){M=null;if(p.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(ga)*1E5);if(v.length>
hide_cursor_timeout = window.setTimeout(function ()
update_verse_range = (function () { function update_verse_range_delayed()
hide_cursor_timeout = window.setTimeout(function () { ///NOTE: Only works in Mozilla. /// IE is the only other major browser family that supports transparent cursors (.CUR files only), but it cannot be set via a timeout. /// WebKit (at least 532.9 (Safari 4/Chromium 4.0)) does not properly support completely transparent cursors. It also cannot be set via a timeout (see http://code.google.com/p/chromium/issues/detail?id=26723). /// WebKit can use an almost completely transparent PNG, and it will change the mouse cursor, but it calls the onmousemove event when the cursor changes. /// It would be possible to manually determine if the onmousemove event was legitimate by checking the X and Y coordinates. /// Opera (at least 10.53) has no alternate cursor support whatsoever. page.style.cursor = "none"; }, 2000);
page.style.cursor = "none"; }, 2000);
var new_title, ref_range, verse1, verse2; verse1 = get_verse_at_position(window.pageYOffset + topLoader.offsetHeight + 8, true, page); if (verse1 === false) { looking_up_verse_range = false; return; } verse2 = get_verse_at_position(window.pageYOffset + doc_docEl.clientHeight - 14, false, page); if (verse2 === false) { looking_up_verse_range = false; return; } verse1.v = verse1.v === 0 ? BF.lang.title : verse1.v; verse2.v = verse2.v === 0 ? BF.lang.title : verse2.v; if (verse1.b == verse2.b) { verse1.b = verse1.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse1.b]; if (verse1.c == verse2.c) { if (verse1.v == verse2.v) { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v; } else { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.v; } } else { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.c + ":" + verse2.v; } } else { verse1.b = verse1.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse1.b]; verse2.b = verse2.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse2.b]; ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.b + " " + verse2.c + ":" + verse2.v; } if (last_type == verse_lookup) { new_title = ref_range + " - " + BF.lang.app_name; } else { new_title = last_search + " (" + ref_range + ") - " + BF.lang.app_name; } if (document.title != new_title) { document.title = new_title; if (last_type == verse_lookup) { infoBar.innerHTML = ""; infoBar.appendChild(document.createTextNode(ref_range)); } } looking_up_verse_range = false; } return function () { if (!looking_up_verse_range) { looking_up_verse_range = true; window.setTimeout(update_verse_range_delayed, lookup_range_speed); } }; }());
hide_cursor_timeout = window.setTimeout(function () { ///NOTE: Only works in Mozilla. /// IE is the only other major browser family that supports transparent cursors (.CUR files only), but it cannot be set via a timeout. /// WebKit (at least 532.9 (Safari 4/Chromium 4.0)) does not properly support completely transparent cursors. It also cannot be set via a timeout (see http://code.google.com/p/chromium/issues/detail?id=26723). /// WebKit can use an almost completely transparent PNG, and it will change the mouse cursor, but it calls the onmousemove event when the cursor changes. /// It would be possible to manually determine if the onmousemove event was legitimate by checking the X and Y coordinates. /// Opera (at least 10.53) has no alternate cursor support whatsoever. page.style.cursor = "none"; }, 2000);
$("div#row_body").click(function() { DeckViewerUI.showAnswer(); });
$("#next a").click(function() { DeckViewerUI.next(); });
$("div#row_body").click(function() { DeckViewerUI.showAnswer(); });
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^| )'+arguments[0]+'(?:$| )');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();a.dom={};var d=a.dom;(function(){var e=[];a.tools={arrayCompare:function(f,g){if(!f&&!g)return true;if(!f||!g||f.length!=g.length)return false;for(var h=0;h<f.length;h++){if(f[h]!=g[h])return false;}return true;},clone:function(f){var g;if(f&&f instanceof Array){g=[];for(var h=0;h<f.length;h++)g[h]=this.clone(f[h]);return g;}if(f===null||typeof f!='object'||f instanceof String||f instanceof Number||f instanceof Boolean||f instanceof Date||f instanceof RegExp)return f;g=new f.constructor();for(var i in f){var j=f[i];g[i]=this.clone(j);}return g;},capitalize:function(f){return f.charAt(0).toUpperCase()+f.substring(1).toLowerCase();},extend:function(f){var g=arguments.length,h,i;if(typeof (h=arguments[g-1])=='boolean')g--;else if(typeof (h=arguments[g-2])=='boolean'){i=arguments[g-1];g-=2;}for(var j=1;j<g;j++){var k=arguments[j];for(var l in k){if(h===true||f[l]==undefined)if(!i||l in i)f[l]=k[l];}}return f;},prototypedCopy:function(f){var g=function(){};g.prototype=f;return new g();
return d;})();var b=a.env;var c=b.ie;if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();a.dom={};var d=a.dom;(function(){var e=[];a.on('reset',function(){e=[];});a.tools={arrayCompare:function(f,g){if(!f&&!g)return true;if(!f||!g||f.length!=g.length)return false;for(var h=0;h<f.length;h++){if(f[h]!=g[h])return false;}return true;},clone:function(f){var g;if(f&&f instanceof Array){g=[];for(var h=0;h<f.length;h++)g[h]=this.clone(f[h]);return g;}if(f===null||typeof f!='object'||f instanceof String||f instanceof Number||f instanceof Boolean||f instanceof Date||f instanceof RegExp)return f;g=new f.constructor();for(var i in f){var j=f[i];g[i]=this.clone(j);}return g;},capitalize:function(f){return f.charAt(0).toUpperCase()+f.substring(1).toLowerCase();},extend:function(f){var g=arguments.length,h,i;if(typeof (h=arguments[g-1])=='boolean')g--;else if(typeof (h=arguments[g-2])=='boolean'){i=arguments[g-1];g-=2;}for(var j=1;j<g;j++){var k=arguments[j];for(var l in k){if(h===true||f[l]==undefined)if(!i||l in i)f[l]=k[l];}}return f;},prototypedCopy:function(f){var g=function(){};
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^| )'+arguments[0]+'(?:$| )');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();a.dom={};var d=a.dom;(function(){var e=[];a.tools={arrayCompare:function(f,g){if(!f&&!g)return true;if(!f||!g||f.length!=g.length)return false;for(var h=0;h<f.length;h++){if(f[h]!=g[h])return false;}return true;},clone:function(f){var g;if(f&&f instanceof Array){g=[];for(var h=0;h<f.length;h++)g[h]=this.clone(f[h]);return g;}if(f===null||typeof f!='object'||f instanceof String||f instanceof Number||f instanceof Boolean||f instanceof Date||f instanceof RegExp)return f;g=new f.constructor();for(var i in f){var j=f[i];g[i]=this.clone(j);}return g;},capitalize:function(f){return f.charAt(0).toUpperCase()+f.substring(1).toLowerCase();},extend:function(f){var g=arguments.length,h,i;if(typeof (h=arguments[g-1])=='boolean')g--;else if(typeof (h=arguments[g-2])=='boolean'){i=arguments[g-1];g-=2;}for(var j=1;j<g;j++){var k=arguments[j];for(var l in k){if(h===true||f[l]==undefined)if(!i||l in i)f[l]=k[l];}}return f;},prototypedCopy:function(f){var g=function(){};g.prototype=f;return new g();
break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof f!=="string"){if(s===f){u=true;break}}else if(p.filter(f,[s]).length>0){u=s;break}}s=s[c]}j[n]=u}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(c,f,i,j){i=i||[];var n=f=f||r;if(f.nodeType!==1&&f.nodeType!==9)return[];if(!c||typeof c!=="string")return i;
break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof g!=="string"){if(s===g){u=true;break}}else if(p.filter(g,[s]).length>0){u=s;break}}s=s[d]}j[n]=u}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(d,g,i,j){i=i||[];var n=g=g||r;if(g.nodeType!==1&&g.nodeType!==9)return[];if(!d||typeof d!=="string")return i;
break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof f!=="string"){if(s===f){u=true;break}}else if(p.filter(f,[s]).length>0){u=s;break}}s=s[c]}j[n]=u}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(c,f,i,j){i=i||[];var n=f=f||r;if(f.nodeType!==1&&f.nodeType!==9)return[];if(!c||typeof c!=="string")return i;
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A(!c&&1);while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p};};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter(); a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null;},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null;},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r]; var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=q.type||q instanceof a.htmlParser.fragment;for(var s=0;s<this.length;s++){if(r)var t=q.type,u=q.name;var v=this[s],w=v.apply(window,arguments);if(w===false)return w;if(r){if(w&&(w.name!=u||w.type!=t))return w;}else if(typeof w!='string')return w;w!=undefined&&(q=w);}return q;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.on('instanceDestroyed',function(){if(e.isEmpty(this.instances))a.fire('reset');});a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this;var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B; if(x.type==3)x=x.split(z);else if(x.getChildCount()>0)if(z>=x.getChildCount()){x=x.append(t.document.createText(''));B=true;}else x=x.getChild(z);if(w.type==3){w.split(y);if(w.equals(x))x=w.getNext();}else if(!y){w=w.getFirst().insertBeforeMe(t.document.createText(''));A=true;}else if(y>=w.getChildCount()){w=w.append(t.document.createText(''));A=true;}else w=w.getChild(y).getPrevious();var C=w.getParents(),D=x.getParents(),E,F,G;for(E=0;E<C.length;E++){F=C[E];G=D[E];if(!F.equals(G))break;}var H=v,I,J,K,L;for(var M=E;M<C.length;M++){I=C[M];if(H&&!I.equals(w))J=H.append(I.clone());K=I.getNext();while(K){if(K.equals(D[M])||K.equals(x))break;L=K.getNext();if(u==2)H.append(K.clone(true));else{K.remove();if(u==1)H.append(K);}K=L;}if(H)H=J;}H=v;for(var N=E;N<D.length;N++){I=D[N];if(u>0&&!I.equals(x))J=H.append(I.clone());if(!C[N]||I.$.parentNode!=C[N].$.parentNode){K=I.getPrevious();while(K){if(K.equals(C[N])||K.equals(w))break;L=K.getPrevious();if(u==2)H.$.insertBefore(K.$.cloneNode(true),H.$.firstChild);else{K.remove();if(u==1)H.$.insertBefore(K.$,H.$.firstChild);}K=L;}}if(H)H=J;}if(u==2){var O=t.startContainer;if(O.type==3){O.$.data+=O.$.nextSibling.data;O.$.parentNode.removeChild(O.$.nextSibling);}var P=t.endContainer;if(P.type==3&&P.$.nextSibling){P.$.data+=P.$.nextSibling.data;P.$.parentNode.removeChild(P.$.nextSibling);}}else{if(F&&G&&(w.$.parentNode!=F.$.parentNode||x.$.parentNode!=G.$.parentNode)){var Q=G.getIndex();if(A&&G.$.parentNode==w.$.parentNode)Q--;t.setStart(G.getParent(),Q);}t.collapse(true);}if(A)w.remove();if(B&&x.$.parentNode)x.remove();},n={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1};function o(t){var u=false,v=d.walker.bookmark(true);return function(w){if(v(w))return true;if(w.type==3){if(e.trim(w.getText()).length)return false;}else if(w.type==1)if(!n[w.getName()])if(!t&&!c&&w.getName()=='br'&&!u)u=true;else return false;return true;};};function p(t){return t.type!=3&&t.getName() in f.$removeEmpty||!e.trim(t.getText())||t.getParent().hasAttribute('_fck_bookmark');};var q=new d.walker.whitespaces(),r=new d.walker.bookmark();function s(t){return!q(t)&&!r(t);};d.range.prototype={clone:function(){var u=this;var t=new d.range(u.document);t.startContainer=u.startContainer;t.startOffset=u.startOffset;t.endContainer=u.endContainer;t.endOffset=u.endOffset;t.collapsed=u.collapsed;return t;},collapse:function(t){var u=this;if(t){u.endContainer=u.startContainer; u.endOffset=u.startOffset;}else{u.startContainer=u.endContainer;u.startOffset=u.endOffset;}u.collapsed=true;},cloneContents:function(){var t=new d.documentFragment(this.document);if(!this.collapsed)m(this,2,t);return t;},deleteContents:function(){if(this.collapsed)return;m(this,0);},extractContents:function(){var t=new d.documentFragment(this.document);if(!this.collapsed)m(this,1,t);return t;},createBookmark:function(t){var y=this;var u,v,w,x;u=y.document.createElement('span');u.setAttribute('_fck_bookmark',1);u.setStyle('display','none');u.setHtml('&nbsp;');if(t){w='cke_bm_'+e.getNextNumber();u.setAttribute('id',w+'S');}if(!y.collapsed){v=u.clone();v.setHtml('&nbsp;');if(t)v.setAttribute('id',w+'E');x=y.clone();x.collapse();x.insertNode(v);}x=y.clone();x.collapse(true);x.insertNode(u);if(v){y.setStartAfter(u);y.setEndBefore(v);}else y.moveToPosition(u,4);return{startNode:t?w+'S':u,endNode:t?w+'E':v,serializable:t};},createBookmark2:function(t){var A=this;var u=A.startContainer,v=A.endContainer,w=A.startOffset,x=A.endOffset,y,z;if(!u||!v)return{start:0,end:0};if(t){if(u.type==1){y=u.getChild(w);if(y&&y.type==3&&w>0&&y.getPrevious().type==3){u=y;w=0;}}while(u.type==3&&(z=u.getPrevious())&&z.type==3){u=z;w+=z.getLength();}if(!A.isCollapsed){if(v.type==1){y=v.getChild(x);if(y&&y.type==3&&x>0&&y.getPrevious().type==3){v=y;x=0;}}while(v.type==3&&(z=v.getPrevious())&&z.type==3){v=z;x+=z.getLength();}}}return{start:u.getAddress(t),end:A.isCollapsed?null:v.getAddress(t),startOffset:w,endOffset:x,normalized:t,is2:true};},moveToBookmark:function(t){var B=this;if(t.is2){var u=B.document.getByAddress(t.start,t.normalized),v=t.startOffset,w=t.end&&B.document.getByAddress(t.end,t.normalized),x=t.endOffset;B.setStart(u,v);if(w)B.setEnd(w,x);else B.collapse(true);}else{var y=t.serializable,z=y?B.document.getById(t.startNode):t.startNode,A=y?B.document.getById(t.endNode):t.endNode;B.setStartBefore(z);z.remove();if(A){B.setEndBefore(A);A.remove();}else B.collapse(true);}},getBoundaryNodes:function(){var y=this;var t=y.startContainer,u=y.endContainer,v=y.startOffset,w=y.endOffset,x;if(t.type==1){x=t.getChildCount();if(x>v)t=t.getChild(v);else if(x<1)t=t.getPreviousSourceNode();else{t=t.$;while(t.lastChild)t=t.lastChild;t=new d.node(t);t=t.getNextSourceNode()||t;}}if(u.type==1){x=u.getChildCount();if(x>w)u=u.getChild(w).getPreviousSourceNode(true);else if(x<1)u=u.getPreviousSourceNode();else{u=u.$;while(u.lastChild)u=u.lastChild;u=new d.node(u);}}if(t.getPosition(u)&2)t=u;return{startNode:t,endNode:u}; },getCommonAncestor:function(t,u){var y=this;var v=y.startContainer,w=y.endContainer,x;if(v.equals(w)){if(t&&v.type==1&&y.startOffset==y.endOffset-1)x=v.getChild(y.startOffset);else x=v;}else x=v.getCommonAncestor(w);return u&&!x.is?x.getParent():x;},optimize:function(){var v=this;var t=v.startContainer,u=v.startOffset;if(t.type!=1)if(!u)v.setStartBefore(t);else if(u>=t.getLength())v.setStartAfter(t);t=v.endContainer;u=v.endOffset;if(t.type!=1)if(!u)v.setEndBefore(t);else if(u>=t.getLength())v.setEndAfter(t);},optimizeBookmark:function(){var v=this;var t=v.startContainer,u=v.endContainer;if(t.is&&t.is('span')&&t.hasAttribute('_fck_bookmark'))v.setStartAt(t,3);if(u&&u.is&&u.is('span')&&u.hasAttribute('_fck_bookmark'))v.setEndAt(u,4);},trim:function(t,u){var B=this;var v=B.startContainer,w=B.startOffset,x=B.collapsed;if((!t||x)&&v&&v.type==3){if(!w){w=v.getIndex();v=v.getParent();}else if(w>=v.getLength()){w=v.getIndex()+1;v=v.getParent();}else{var y=v.split(w);w=v.getIndex()+1;v=v.getParent();if(B.startContainer.equals(B.endContainer))B.setEnd(y,B.endOffset-B.startOffset);else if(v.equals(B.endContainer))B.endOffset+=1;}B.setStart(v,w);if(x){B.collapse(true);return;}}var z=B.endContainer,A=B.endOffset;if(!(u||x)&&z&&z.type==3){if(!A){A=z.getIndex();z=z.getParent();}else if(A>=z.getLength()){A=z.getIndex()+1;z=z.getParent();}else{z.split(A);A=z.getIndex()+1;z=z.getParent();}B.setEnd(z,A);}},enlarge:function(t){switch(t){case 1:if(this.collapsed)return;var u=this.getCommonAncestor(),v=this.document.getBody(),w,x,y,z,A,B=false,C,D,E=this.startContainer,F=this.startOffset;if(E.type==3){if(F){E=!e.trim(E.substring(0,F)).length&&E;B=!!E;}if(E)if(!(z=E.getPrevious()))y=E.getParent();}else{if(F)z=E.getChild(F-1)||E.getLast();if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)w=y;else this.setStartBefore(y);}z=y.getPrevious();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/[\s\ufeff]$/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{var G=z.$.all||z.$.getElementsByTagName('*');for(var H=0,I;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B){if(A)w=y;else if(y)this.setStartBefore(y);}else B=true;if(z){var J=z.getPrevious();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent(); }E=this.endContainer;F=this.endOffset;y=z=null;A=B=false;if(E.type==3){E=!e.trim(E.substring(F)).length&&E;B=!(E&&E.getLength());if(E)if(!(z=E.getNext()))y=E.getParent();}else{z=E.getChild(F);if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)x=y;else if(y)this.setEndAfter(y);}z=y.getNext();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/^[\s\ufeff]/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{G=z.$.all||z.$.getElementsByTagName('*');for(H=0;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B)if(A)x=y;else this.setEndAfter(y);if(z){J=z.getNext();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}if(w&&x){u=w.contains(x)?x:w;this.setStartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=new d.range(this.document);v=this.document.getBody();K.setStartAt(v,1);K.setEnd(this.startContainer,this.startOffset);var L=new d.walker(K),M,N,O=d.walker.blockBoundary(t==3?{br:1}:null),P=function(R){var S=O(R);if(!S)M=R;return S;},Q=function(R){var S=P(R);if(!S&&R.is&&R.is('br'))N=R;return S;};L.guard=P;y=L.lastBackward();M=M||v;this.setStartAt(M,!M.is('br')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=this.clone();K.collapse();K.setEndAt(v,2);L=new d.walker(K);L.guard=t==3?Q:P;M=null;y=L.lastForward();M=M||v;this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)this.setEndAfter(N);}},shrink:function(t){if(!this.collapsed){t=t||a.SHRINK_TEXT;var u=this.clone(),v=this.startContainer,w=this.endContainer,x=this.startOffset,y=this.endOffset,z=this.collapsed,A=1,B=1;if(v&&v.type==3)if(!x)u.setStartBefore(v);else if(x>=v.getLength())u.setStartAfter(v);else{u.setStartBefore(v);A=0;}if(w&&w.type==3)if(!y)u.setEndBefore(w);else if(y>=w.getLength())u.setEndAfter(w);else{u.setEndAfter(w);B=0;}var C=new d.walker(u);C.evaluator=function(G){return G.type==(t==a.SHRINK_ELEMENT?1:3);};var D;C.guard=function(G,H){if(t==a.SHRINK_ELEMENT&&G.type==3)return false;if(H&&G.equals(D))return false;if(!H&&G.type==1)D=G;return true;};if(A){var E=C[t==a.SHRINK_ELEMENT?'lastForward':'next']();E&&this.setStartBefore(E);}if(B){C.reset();var F=C[t==a.SHRINK_ELEMENT?'lastBackward':'previous']();F&&this.setEndAfter(F);}return!!(A||B);}},insertNode:function(t){var x=this; x.optimizeBookmark();x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);var u=w.extractContents(),v=t.clone(false);u.appendTo(v);v.insertAfter(t);w.moveToPosition(t,4);return v;},checkBoundaryOfElement:function(t,u){var v=this.clone(); v[u==1?'setStartAt':'setEndAt'](t,u==1?1:2);var w=new d.walker(v),x=false;w.evaluator=p;return w[u==1?'checkBackward':'checkForward']();},checkStartOfBlock:function(){var z=this;var t=z.startContainer,u=z.startOffset;if(u&&t.type==3){var v=e.ltrim(t.substring(0,u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.startContainer),x=z.clone();x.collapse(true);x.setStartAt(w.block||w.blockLimit,1);var y=new d.walker(x);y.evaluator=o(true);return y.checkBackward();},checkEndOfBlock:function(){var z=this;var t=z.endContainer,u=z.endOffset;if(t.type==3){var v=e.rtrim(t.substring(u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.endContainer),x=z.clone();x.collapse(false);x.setEndAt(w.block||w.blockLimit,2);var y=new d.walker(x);y.evaluator=o(false);return y.checkForward();},moveToElementEditablePosition:function(t,u){var v;if(f.$empty[t.getName()])return false;while(t&&t.type==1){v=t.isEditable();if(v)this.moveToPosition(t,u?2:1);else if(f.$inline[t.getName()]){this.moveToPosition(t,u?4:3);return true;}if(f.$empty[t.getName()])t=t[u?'getPrevious':'getNext'](s);else t=t[u?'getLast':'getFirst'](s);if(t&&t.type==3){this.moveToPosition(t,u?4:3);return true;}}return v;},moveToElementEditStart:function(t){return this.moveToElementEditablePosition(t);},moveToElementEditEnd:function(t){return this.moveToElementEditablePosition(t,true);},getEnclosedNode:function(){var t=this.clone(),u=new d.walker(t),v=d.walker.bookmark(true),w=d.walker.whitespaces(true),x=function(z){return w(z)&&v(z);};t.evaluator=x;var y=u.next();u.reset();return y&&y.equals(u.previous())?y:null;},getTouchedStartNode:function(){var t=this.startContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.startOffset)||t;},getTouchedEndNode:function(){var t=this.endContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.endOffset-1)||t;}};})();a.POSITION_AFTER_START=1;a.POSITION_BEFORE_END=2;a.POSITION_BEFORE_START=3;a.POSITION_AFTER_END=4;a.ENLARGE_ELEMENT=1;a.ENLARGE_BLOCK_CONTENTS=2;a.ENLARGE_LIST_ITEM_CONTENTS=3;a.START=1;a.END=2;a.STARTEND=3;a.SHRINK_ELEMENT=1;a.SHRINK_TEXT=2;(function(){if(b.webkit){b.hc=false;return;}var l=c&&b.version<7,m=c&&b.version==7,n=l?a.basePath+'images/spacer.gif':m?'about:blank':'data:image/png;base64,',o=h.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;background-image:url('+n+')"></div>',a.document);o.appendTo(a.document.getHead());try{b.hc=o.getComputedStyle('background-image')=='none';
var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=q.type||q instanceof a.htmlParser.fragment;for(var s=0;s<this.length;s++){if(r)var t=q.type,u=q.name;var v=this[s],w=v.apply(window,arguments);if(w===false)return w;if(r){if(w&&(w.name!=u||w.type!=t))return w;}else if(typeof w!='string')return w;w!=undefined&&(q=w);}return q;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.on('instanceDestroyed',function(){if(e.isEmpty(this.instances))a.fire('reset');});a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this;var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;if(x.type==3)x=x.split(z);else if(x.getChildCount()>0)if(z>=x.getChildCount()){x=x.append(t.document.createText(''));B=true;}else x=x.getChild(z);if(w.type==3){w.split(y);if(w.equals(x))x=w.getNext();}else if(!y){w=w.getFirst().insertBeforeMe(t.document.createText(''));A=true;}else if(y>=w.getChildCount()){w=w.append(t.document.createText(''));A=true;}else w=w.getChild(y).getPrevious();var C=w.getParents(),D=x.getParents(),E,F,G;for(E=0;E<C.length;E++){F=C[E];G=D[E];if(!F.equals(G))break;}var H=v,I,J,K,L;for(var M=E;M<C.length;M++){I=C[M];if(H&&!I.equals(w))J=H.append(I.clone());K=I.getNext();while(K){if(K.equals(D[M])||K.equals(x))break;L=K.getNext();if(u==2)H.append(K.clone(true));else{K.remove();if(u==1)H.append(K);}K=L;}if(H)H=J;}H=v;for(var N=E;N<D.length;N++){I=D[N];if(u>0&&!I.equals(x))J=H.append(I.clone());if(!C[N]||I.$.parentNode!=C[N].$.parentNode){K=I.getPrevious();while(K){if(K.equals(C[N])||K.equals(w))break;L=K.getPrevious();if(u==2)H.$.insertBefore(K.$.cloneNode(true),H.$.firstChild);else{K.remove();if(u==1)H.$.insertBefore(K.$,H.$.firstChild);}K=L;}}if(H)H=J;}if(u==2){var O=t.startContainer;if(O.type==3){O.$.data+=O.$.nextSibling.data;O.$.parentNode.removeChild(O.$.nextSibling);}var P=t.endContainer;if(P.type==3&&P.$.nextSibling){P.$.data+=P.$.nextSibling.data;P.$.parentNode.removeChild(P.$.nextSibling);}}else{if(F&&G&&(w.$.parentNode!=F.$.parentNode||x.$.parentNode!=G.$.parentNode)){var Q=G.getIndex();if(A&&G.$.parentNode==w.$.parentNode)Q--;t.setStart(G.getParent(),Q);}t.collapse(true);}if(A)w.remove();if(B&&x.$.parentNode)x.remove();},n={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1};function o(t){var u=false,v=d.walker.bookmark(true);return function(w){if(v(w))return true;if(w.type==3){if(e.trim(w.getText()).length)return false;}else if(w.type==1)if(!n[w.getName()])if(!t&&!c&&w.getName()=='br'&&!u)u=true;else return false;return true;};};function p(t){return t.type!=3&&t.getName() in f.$removeEmpty||!e.trim(t.getText())||t.getParent().hasAttribute('_fck_bookmark');};var q=new d.walker.whitespaces(),r=new d.walker.bookmark();function s(t){return!q(t)&&!r(t);};d.range.prototype={clone:function(){var u=this;var t=new d.range(u.document);t.startContainer=u.startContainer;t.startOffset=u.startOffset;t.endContainer=u.endContainer;t.endOffset=u.endOffset;t.collapsed=u.collapsed;return t;},collapse:function(t){var u=this;if(t){u.endContainer=u.startContainer;u.endOffset=u.startOffset;}else{u.startContainer=u.endContainer;u.startOffset=u.endOffset;}u.collapsed=true;},cloneContents:function(){var t=new d.documentFragment(this.document);if(!this.collapsed)m(this,2,t);return t;},deleteContents:function(){if(this.collapsed)return;m(this,0);},extractContents:function(){var t=new d.documentFragment(this.document);if(!this.collapsed)m(this,1,t);return t;},createBookmark:function(t){var y=this;var u,v,w,x;u=y.document.createElement('span');u.setAttribute('_fck_bookmark',1);u.setStyle('display','none');u.setHtml('&nbsp;');if(t){w='cke_bm_'+e.getNextNumber();u.setAttribute('id',w+'S');}if(!y.collapsed){v=u.clone();v.setHtml('&nbsp;');if(t)v.setAttribute('id',w+'E');x=y.clone();x.collapse();x.insertNode(v);}x=y.clone();x.collapse(true);x.insertNode(u);if(v){y.setStartAfter(u);y.setEndBefore(v);}else y.moveToPosition(u,4);return{startNode:t?w+'S':u,endNode:t?w+'E':v,serializable:t};},createBookmark2:function(t){var A=this;var u=A.startContainer,v=A.endContainer,w=A.startOffset,x=A.endOffset,y,z;if(!u||!v)return{start:0,end:0};if(t){if(u.type==1){y=u.getChild(w);if(y&&y.type==3&&w>0&&y.getPrevious().type==3){u=y;w=0;}}while(u.type==3&&(z=u.getPrevious())&&z.type==3){u=z;w+=z.getLength();}if(!A.isCollapsed){if(v.type==1){y=v.getChild(x);if(y&&y.type==3&&x>0&&y.getPrevious().type==3){v=y;x=0;}}while(v.type==3&&(z=v.getPrevious())&&z.type==3){v=z;x+=z.getLength();}}}return{start:u.getAddress(t),end:A.isCollapsed?null:v.getAddress(t),startOffset:w,endOffset:x,normalized:t,is2:true};},moveToBookmark:function(t){var B=this;if(t.is2){var u=B.document.getByAddress(t.start,t.normalized),v=t.startOffset,w=t.end&&B.document.getByAddress(t.end,t.normalized),x=t.endOffset;B.setStart(u,v);if(w)B.setEnd(w,x);else B.collapse(true);}else{var y=t.serializable,z=y?B.document.getById(t.startNode):t.startNode,A=y?B.document.getById(t.endNode):t.endNode;B.setStartBefore(z);z.remove();if(A){B.setEndBefore(A);A.remove();}else B.collapse(true);}},getBoundaryNodes:function(){var y=this;var t=y.startContainer,u=y.endContainer,v=y.startOffset,w=y.endOffset,x;if(t.type==1){x=t.getChildCount();if(x>v)t=t.getChild(v);else if(x<1)t=t.getPreviousSourceNode();else{t=t.$;while(t.lastChild)t=t.lastChild;t=new d.node(t);t=t.getNextSourceNode()||t;}}if(u.type==1){x=u.getChildCount();if(x>w)u=u.getChild(w).getPreviousSourceNode(true);else if(x<1)u=u.getPreviousSourceNode();else{u=u.$;while(u.lastChild)u=u.lastChild;u=new d.node(u);}}if(t.getPosition(u)&2)t=u;return{startNode:t,endNode:u};},getCommonAncestor:function(t,u){var y=this;var v=y.startContainer,w=y.endContainer,x;if(v.equals(w)){if(t&&v.type==1&&y.startOffset==y.endOffset-1)x=v.getChild(y.startOffset);else x=v;}else x=v.getCommonAncestor(w);return u&&!x.is?x.getParent():x;},optimize:function(){var v=this;var t=v.startContainer,u=v.startOffset;if(t.type!=1)if(!u)v.setStartBefore(t);else if(u>=t.getLength())v.setStartAfter(t);t=v.endContainer;u=v.endOffset;if(t.type!=1)if(!u)v.setEndBefore(t);else if(u>=t.getLength())v.setEndAfter(t);},optimizeBookmark:function(){var v=this;var t=v.startContainer,u=v.endContainer;if(t.is&&t.is('span')&&t.hasAttribute('_fck_bookmark'))v.setStartAt(t,3);if(u&&u.is&&u.is('span')&&u.hasAttribute('_fck_bookmark'))v.setEndAt(u,4);},trim:function(t,u){var B=this;var v=B.startContainer,w=B.startOffset,x=B.collapsed;if((!t||x)&&v&&v.type==3){if(!w){w=v.getIndex();v=v.getParent();}else if(w>=v.getLength()){w=v.getIndex()+1;v=v.getParent();}else{var y=v.split(w);w=v.getIndex()+1;v=v.getParent();if(B.startContainer.equals(B.endContainer))B.setEnd(y,B.endOffset-B.startOffset);else if(v.equals(B.endContainer))B.endOffset+=1;}B.setStart(v,w);if(x){B.collapse(true);return;}}var z=B.endContainer,A=B.endOffset;if(!(u||x)&&z&&z.type==3){if(!A){A=z.getIndex();z=z.getParent();}else if(A>=z.getLength()){A=z.getIndex()+1;z=z.getParent();}else{z.split(A);A=z.getIndex()+1;z=z.getParent();}B.setEnd(z,A);}},enlarge:function(t){switch(t){case 1:if(this.collapsed)return;var u=this.getCommonAncestor(),v=this.document.getBody(),w,x,y,z,A,B=false,C,D,E=this.startContainer,F=this.startOffset;if(E.type==3){if(F){E=!e.trim(E.substring(0,F)).length&&E;B=!!E;}if(E)if(!(z=E.getPrevious()))y=E.getParent();}else{if(F)z=E.getChild(F-1)||E.getLast();if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)w=y;else this.setStartBefore(y);}z=y.getPrevious();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/[\s\ufeff]$/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{var G=z.$.all||z.$.getElementsByTagName('*');for(var H=0,I;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B){if(A)w=y;else if(y)this.setStartBefore(y);}else B=true;if(z){var J=z.getPrevious();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}E=this.endContainer;F=this.endOffset;y=z=null;A=B=false;if(E.type==3){E=!e.trim(E.substring(F)).length&&E;B=!(E&&E.getLength());if(E)if(!(z=E.getNext()))y=E.getParent();}else{z=E.getChild(F);if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)x=y;else if(y)this.setEndAfter(y);}z=y.getNext();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/^[\s\ufeff]/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{G=z.$.all||z.$.getElementsByTagName('*');for(H=0;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B)if(A)x=y;else this.setEndAfter(y);if(z){J=z.getNext();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}if(w&&x){u=w.contains(x)?x:w;this.setStartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=new d.range(this.document);v=this.document.getBody();K.setStartAt(v,1);K.setEnd(this.startContainer,this.startOffset);var L=new d.walker(K),M,N,O=d.walker.blockBoundary(t==3?{br:1}:null),P=function(R){var S=O(R);if(!S)M=R;return S;},Q=function(R){var S=P(R);if(!S&&R.is&&R.is('br'))N=R;return S;};L.guard=P;y=L.lastBackward();M=M||v;this.setStartAt(M,!M.is('br')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=this.clone();K.collapse();K.setEndAt(v,2);L=new d.walker(K);L.guard=t==3?Q:P;M=null;y=L.lastForward();M=M||v;this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)this.setEndAfter(N);}},shrink:function(t){if(!this.collapsed){t=t||a.SHRINK_TEXT;var u=this.clone(),v=this.startContainer,w=this.endContainer,x=this.startOffset,y=this.endOffset,z=this.collapsed,A=1,B=1;if(v&&v.type==3)if(!x)u.setStartBefore(v);else if(x>=v.getLength())u.setStartAfter(v);else{u.setStartBefore(v);A=0;}if(w&&w.type==3)if(!y)u.setEndBefore(w);else if(y>=w.getLength())u.setEndAfter(w);else{u.setEndAfter(w);B=0;}var C=new d.walker(u);C.evaluator=function(G){return G.type==(t==a.SHRINK_ELEMENT?1:3);};var D;C.guard=function(G,H){if(t==a.SHRINK_ELEMENT&&G.type==3)return false;if(H&&G.equals(D))return false;if(!H&&G.type==1)D=G;return true;};if(A){var E=C[t==a.SHRINK_ELEMENT?'lastForward':'next']();E&&this.setStartBefore(E);}if(B){C.reset();var F=C[t==a.SHRINK_ELEMENT?'lastBackward':'previous']();F&&this.setEndAfter(F);}return!!(A||B);}},insertNode:function(t){var x=this;x.optimizeBookmark();x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);var u=w.extractContents(),v=t.clone(false);u.appendTo(v);v.insertAfter(t);w.moveToPosition(t,4);return v;},checkBoundaryOfElement:function(t,u){var v=this.clone();v[u==1?'setStartAt':'setEndAt'](t,u==1?1:2);var w=new d.walker(v),x=false;w.evaluator=p;return w[u==1?'checkBackward':'checkForward']();},checkStartOfBlock:function(){var z=this;var t=z.startContainer,u=z.startOffset;if(u&&t.type==3){var v=e.ltrim(t.substring(0,u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.startContainer),x=z.clone();x.collapse(true);x.setStartAt(w.block||w.blockLimit,1);var y=new d.walker(x);y.evaluator=o(true);return y.checkBackward();},checkEndOfBlock:function(){var z=this;var t=z.endContainer,u=z.endOffset;if(t.type==3){var v=e.rtrim(t.substring(u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.endContainer),x=z.clone();x.collapse(false);x.setEndAt(w.block||w.blockLimit,2);var y=new d.walker(x);y.evaluator=o(false);return y.checkForward();},moveToElementEditablePosition:function(t,u){var v;if(f.$empty[t.getName()])return false;while(t&&t.type==1){v=t.isEditable();if(v)this.moveToPosition(t,u?2:1);else if(f.$inline[t.getName()]){this.moveToPosition(t,u?4:3);return true;}if(f.$empty[t.getName()])t=t[u?'getPrevious':'getNext'](s);else t=t[u?'getLast':'getFirst'](s);if(t&&t.type==3){this.moveToPosition(t,u?4:3);return true;}}return v;},moveToElementEditStart:function(t){return this.moveToElementEditablePosition(t);},moveToElementEditEnd:function(t){return this.moveToElementEditablePosition(t,true);},getEnclosedNode:function(){var t=this.clone(),u=new d.walker(t),v=d.walker.bookmark(true),w=d.walker.whitespaces(true),x=function(z){return w(z)&&v(z);};t.evaluator=x;var y=u.next();u.reset();return y&&y.equals(u.previous())?y:null;},getTouchedStartNode:function(){var t=this.startContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.startOffset)||t;},getTouchedEndNode:function(){var t=this.endContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.endOffset-1)||t;}};})();a.POSITION_AFTER_START=1;a.POSITION_BEFORE_END=2;a.POSITION_BEFORE_START=3;a.POSITION_AFTER_END=4;a.ENLARGE_ELEMENT=1;a.ENLARGE_BLOCK_CONTENTS=2;a.ENLARGE_LIST_ITEM_CONTENTS=3;a.START=1;a.END=2;a.STARTEND=3;a.SHRINK_ELEMENT=1;a.SHRINK_TEXT=2;(function(){if(b.webkit){b.hc=false;return;}var l=c&&b.version<7,m=c&&b.version==7,n=l?a.basePath+'images/spacer.gif':m?'about:blank':'data:image/png;base64,',o=h.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;background-image:url('+n+')"></div>',a.document);o.appendTo(a.document.getHead());try{b.hc=o.getComputedStyle('background-image')=='none';
if(x.type==3)x=x.split(z);else if(x.getChildCount()>0)if(z>=x.getChildCount()){x=x.append(t.document.createText(''));B=true;}else x=x.getChild(z);if(w.type==3){w.split(y);if(w.equals(x))x=w.getNext();}else if(!y){w=w.getFirst().insertBeforeMe(t.document.createText(''));A=true;}else if(y>=w.getChildCount()){w=w.append(t.document.createText(''));A=true;}else w=w.getChild(y).getPrevious();var C=w.getParents(),D=x.getParents(),E,F,G;for(E=0;E<C.length;E++){F=C[E];G=D[E];if(!F.equals(G))break;}var H=v,I,J,K,L;for(var M=E;M<C.length;M++){I=C[M];if(H&&!I.equals(w))J=H.append(I.clone());K=I.getNext();while(K){if(K.equals(D[M])||K.equals(x))break;L=K.getNext();if(u==2)H.append(K.clone(true));else{K.remove();if(u==1)H.append(K);}K=L;}if(H)H=J;}H=v;for(var N=E;N<D.length;N++){I=D[N];if(u>0&&!I.equals(x))J=H.append(I.clone());if(!C[N]||I.$.parentNode!=C[N].$.parentNode){K=I.getPrevious();while(K){if(K.equals(C[N])||K.equals(w))break;L=K.getPrevious();if(u==2)H.$.insertBefore(K.$.cloneNode(true),H.$.firstChild);else{K.remove();if(u==1)H.$.insertBefore(K.$,H.$.firstChild);}K=L;}}if(H)H=J;}if(u==2){var O=t.startContainer;if(O.type==3){O.$.data+=O.$.nextSibling.data;O.$.parentNode.removeChild(O.$.nextSibling);}var P=t.endContainer;if(P.type==3&&P.$.nextSibling){P.$.data+=P.$.nextSibling.data;P.$.parentNode.removeChild(P.$.nextSibling);}}else{if(F&&G&&(w.$.parentNode!=F.$.parentNode||x.$.parentNode!=G.$.parentNode)){var Q=G.getIndex();if(A&&G.$.parentNode==w.$.parentNode)Q--;t.setStart(G.getParent(),Q);}t.collapse(true);}if(A)w.remove();if(B&&x.$.parentNode)x.remove();},n={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1};function o(t){var u=false,v=d.walker.bookmark(true);return function(w){if(v(w))return true;if(w.type==3){if(e.trim(w.getText()).length)return false;}else if(w.type==1)if(!n[w.getName()])if(!t&&!c&&w.getName()=='br'&&!u)u=true;else return false;return true;};};function p(t){return t.type!=3&&t.getName() in f.$removeEmpty||!e.trim(t.getText())||t.getParent().hasAttribute('_fck_bookmark');};var q=new d.walker.whitespaces(),r=new d.walker.bookmark();function s(t){return!q(t)&&!r(t);};d.range.prototype={clone:function(){var u=this;var t=new d.range(u.document);t.startContainer=u.startContainer;t.startOffset=u.startOffset;t.endContainer=u.endContainer;t.endOffset=u.endOffset;t.collapsed=u.collapsed;return t;},collapse:function(t){var u=this;if(t){u.endContainer=u.startContainer;
var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=q.type||q instanceof a.htmlParser.fragment;for(var s=0;s<this.length;s++){if(r)var t=q.type,u=q.name;var v=this[s],w=v.apply(window,arguments);if(w===false)return w;if(r){if(w&&(w.name!=u||w.type!=t))return w;}else if(typeof w!='string')return w;w!=undefined&&(q=w);}return q;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.on('instanceDestroyed',function(){if(e.isEmpty(this.instances))a.fire('reset');});a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this;var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;
if(x.type==3)x=x.split(z);else if(x.getChildCount()>0)if(z>=x.getChildCount()){x=x.append(t.document.createText(''));B=true;}else x=x.getChild(z);if(w.type==3){w.split(y);if(w.equals(x))x=w.getNext();}else if(!y){w=w.getFirst().insertBeforeMe(t.document.createText(''));A=true;}else if(y>=w.getChildCount()){w=w.append(t.document.createText(''));A=true;}else w=w.getChild(y).getPrevious();var C=w.getParents(),D=x.getParents(),E,F,G;for(E=0;E<C.length;E++){F=C[E];G=D[E];if(!F.equals(G))break;}var H=v,I,J,K,L;for(var M=E;M<C.length;M++){I=C[M];if(H&&!I.equals(w))J=H.append(I.clone());K=I.getNext();while(K){if(K.equals(D[M])||K.equals(x))break;L=K.getNext();if(u==2)H.append(K.clone(true));else{K.remove();if(u==1)H.append(K);}K=L;}if(H)H=J;}H=v;for(var N=E;N<D.length;N++){I=D[N];if(u>0&&!I.equals(x))J=H.append(I.clone());if(!C[N]||I.$.parentNode!=C[N].$.parentNode){K=I.getPrevious();while(K){if(K.equals(C[N])||K.equals(w))break;L=K.getPrevious();if(u==2)H.$.insertBefore(K.$.cloneNode(true),H.$.firstChild);else{K.remove();if(u==1)H.$.insertBefore(K.$,H.$.firstChild);}K=L;}}if(H)H=J;}if(u==2){var O=t.startContainer;if(O.type==3){O.$.data+=O.$.nextSibling.data;O.$.parentNode.removeChild(O.$.nextSibling);}var P=t.endContainer;if(P.type==3&&P.$.nextSibling){P.$.data+=P.$.nextSibling.data;P.$.parentNode.removeChild(P.$.nextSibling);}}else{if(F&&G&&(w.$.parentNode!=F.$.parentNode||x.$.parentNode!=G.$.parentNode)){var Q=G.getIndex();if(A&&G.$.parentNode==w.$.parentNode)Q--;t.setStart(G.getParent(),Q);}t.collapse(true);}if(A)w.remove();if(B&&x.$.parentNode)x.remove();},n={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1};function o(t){var u=false,v=d.walker.bookmark(true);return function(w){if(v(w))return true;if(w.type==3){if(e.trim(w.getText()).length)return false;}else if(w.type==1)if(!n[w.getName()])if(!t&&!c&&w.getName()=='br'&&!u)u=true;else return false;return true;};};function p(t){return t.type!=3&&t.getName() in f.$removeEmpty||!e.trim(t.getText())||t.getParent().hasAttribute('_fck_bookmark');};var q=new d.walker.whitespaces(),r=new d.walker.bookmark();function s(t){return!q(t)&&!r(t);};d.range.prototype={clone:function(){var u=this;var t=new d.range(u.document);t.startContainer=u.startContainer;t.startOffset=u.startOffset;t.endContainer=u.endContainer;t.endOffset=u.endOffset;t.collapsed=u.collapsed;return t;},collapse:function(t){var u=this;if(t){u.endContainer=u.startContainer;
v[u==1?'setStartAt':'setEndAt'](t,u==1?1:2);var w=new d.walker(v),x=false;w.evaluator=p;return w[u==1?'checkBackward':'checkForward']();},checkStartOfBlock:function(){var z=this;var t=z.startContainer,u=z.startOffset;if(u&&t.type==3){var v=e.ltrim(t.substring(0,u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.startContainer),x=z.clone();x.collapse(true);x.setStartAt(w.block||w.blockLimit,1);var y=new d.walker(x);y.evaluator=o(true);return y.checkBackward();},checkEndOfBlock:function(){var z=this;var t=z.endContainer,u=z.endOffset;if(t.type==3){var v=e.rtrim(t.substring(u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.endContainer),x=z.clone();x.collapse(false);x.setEndAt(w.block||w.blockLimit,2);var y=new d.walker(x);y.evaluator=o(false);return y.checkForward();},moveToElementEditablePosition:function(t,u){var v;if(f.$empty[t.getName()])return false;while(t&&t.type==1){v=t.isEditable();if(v)this.moveToPosition(t,u?2:1);else if(f.$inline[t.getName()]){this.moveToPosition(t,u?4:3);return true;}if(f.$empty[t.getName()])t=t[u?'getPrevious':'getNext'](s);else t=t[u?'getLast':'getFirst'](s);if(t&&t.type==3){this.moveToPosition(t,u?4:3);return true;}}return v;},moveToElementEditStart:function(t){return this.moveToElementEditablePosition(t);},moveToElementEditEnd:function(t){return this.moveToElementEditablePosition(t,true);},getEnclosedNode:function(){var t=this.clone(),u=new d.walker(t),v=d.walker.bookmark(true),w=d.walker.whitespaces(true),x=function(z){return w(z)&&v(z);};t.evaluator=x;var y=u.next();u.reset();return y&&y.equals(u.previous())?y:null;},getTouchedStartNode:function(){var t=this.startContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.startOffset)||t;},getTouchedEndNode:function(){var t=this.endContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.endOffset-1)||t;}};})();a.POSITION_AFTER_START=1;a.POSITION_BEFORE_END=2;a.POSITION_BEFORE_START=3;a.POSITION_AFTER_END=4;a.ENLARGE_ELEMENT=1;a.ENLARGE_BLOCK_CONTENTS=2;a.ENLARGE_LIST_ITEM_CONTENTS=3;a.START=1;a.END=2;a.STARTEND=3;a.SHRINK_ELEMENT=1;a.SHRINK_TEXT=2;(function(){if(b.webkit){b.hc=false;return;}var l=c&&b.version<7,m=c&&b.version==7,n=l?a.basePath+'images/spacer.gif':m?'about:blank':'data:image/png;base64,',o=h.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;background-image:url('+n+')"></div>',a.document);o.appendTo(a.document.getHead());try{b.hc=o.getComputedStyle('background-image')=='none'; }catch(p){b.hc=false;}if(b.hc)b.cssClass+=' cke_hc';o.remove();})();j.load(i.corePlugins.split(','),function(){a.status='loaded';a.fire('loaded');var l=a._.pending;if(l){delete a._.pending;for(var m=0;m<l.length;m++)a.add(l[m]);}});a.skins.add('kama',(function(){var l=[],m='cke_ui_color';if(c&&b.version<7)l.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:l,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(n){if(n.config.width&&!isNaN(n.config.width))n.config.width-=12;var o=[],p=/\$color/g,q='/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';if(b.webkit){q=q.split('}').slice(0,-1);for(var r=0;r<q.length;r++)q[r]=q[r].split('{');}function s(v){var w=v.getById(m);if(!w){w=v.getHead().append('style');w.setAttribute('id',m);w.setAttribute('type','text/css');}return w;};function t(v,w,x){var y,z,A;for(var B=0;B<v.length;B++){if(b.webkit)for(z=0;z<w.length;z++){A=w[z][1];for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);v[B].$.sheet.addRule(w[z][0],A);}else{A=w;for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);
var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=q.type||q instanceof a.htmlParser.fragment;for(var s=0;s<this.length;s++){if(r)var t=q.type,u=q.name;var v=this[s],w=v.apply(window,arguments);if(w===false)return w;if(r){if(w&&(w.name!=u||w.type!=t))return w;}else if(typeof w!='string')return w;w!=undefined&&(q=w);}return q;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.on('instanceDestroyed',function(){if(e.isEmpty(this.instances))a.fire('reset');});a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this;var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;
v[u==1?'setStartAt':'setEndAt'](t,u==1?1:2);var w=new d.walker(v),x=false;w.evaluator=p;return w[u==1?'checkBackward':'checkForward']();},checkStartOfBlock:function(){var z=this;var t=z.startContainer,u=z.startOffset;if(u&&t.type==3){var v=e.ltrim(t.substring(0,u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.startContainer),x=z.clone();x.collapse(true);x.setStartAt(w.block||w.blockLimit,1);var y=new d.walker(x);y.evaluator=o(true);return y.checkBackward();},checkEndOfBlock:function(){var z=this;var t=z.endContainer,u=z.endOffset;if(t.type==3){var v=e.rtrim(t.substring(u));if(v.length)return false;}z.trim();var w=new d.elementPath(z.endContainer),x=z.clone();x.collapse(false);x.setEndAt(w.block||w.blockLimit,2);var y=new d.walker(x);y.evaluator=o(false);return y.checkForward();},moveToElementEditablePosition:function(t,u){var v;if(f.$empty[t.getName()])return false;while(t&&t.type==1){v=t.isEditable();if(v)this.moveToPosition(t,u?2:1);else if(f.$inline[t.getName()]){this.moveToPosition(t,u?4:3);return true;}if(f.$empty[t.getName()])t=t[u?'getPrevious':'getNext'](s);else t=t[u?'getLast':'getFirst'](s);if(t&&t.type==3){this.moveToPosition(t,u?4:3);return true;}}return v;},moveToElementEditStart:function(t){return this.moveToElementEditablePosition(t);},moveToElementEditEnd:function(t){return this.moveToElementEditablePosition(t,true);},getEnclosedNode:function(){var t=this.clone(),u=new d.walker(t),v=d.walker.bookmark(true),w=d.walker.whitespaces(true),x=function(z){return w(z)&&v(z);};t.evaluator=x;var y=u.next();u.reset();return y&&y.equals(u.previous())?y:null;},getTouchedStartNode:function(){var t=this.startContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.startOffset)||t;},getTouchedEndNode:function(){var t=this.endContainer;if(this.collapsed||t.type!=1)return t;return t.getChild(this.endOffset-1)||t;}};})();a.POSITION_AFTER_START=1;a.POSITION_BEFORE_END=2;a.POSITION_BEFORE_START=3;a.POSITION_AFTER_END=4;a.ENLARGE_ELEMENT=1;a.ENLARGE_BLOCK_CONTENTS=2;a.ENLARGE_LIST_ITEM_CONTENTS=3;a.START=1;a.END=2;a.STARTEND=3;a.SHRINK_ELEMENT=1;a.SHRINK_TEXT=2;(function(){if(b.webkit){b.hc=false;return;}var l=c&&b.version<7,m=c&&b.version==7,n=l?a.basePath+'images/spacer.gif':m?'about:blank':'data:image/png;base64,',o=h.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;background-image:url('+n+')"></div>',a.document);o.appendTo(a.document.getHead());try{b.hc=o.getComputedStyle('background-image')=='none';}catch(p){b.hc=false;}if(b.hc)b.cssClass+=' cke_hc';o.remove();})();j.load(i.corePlugins.split(','),function(){a.status='loaded';a.fire('loaded');var l=a._.pending;if(l){delete a._.pending;for(var m=0;m<l.length;m++)a.add(l[m]);}});a.skins.add('kama',(function(){var l=[],m='cke_ui_color';if(c&&b.version<7)l.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:l,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(n){if(n.config.width&&!isNaN(n.config.width))n.config.width-=12;var o=[],p=/\$color/g,q='/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';if(b.webkit){q=q.split('}').slice(0,-1);for(var r=0;r<q.length;r++)q[r]=q[r].split('{');}function s(v){var w=v.getById(m);if(!w){w=v.getHead().append('style');w.setAttribute('id',m);w.setAttribute('type','text/css');}return w;};function t(v,w,x){var y,z,A;for(var B=0;B<v.length;B++){if(b.webkit)for(z=0;z<w.length;z++){A=w[z][1];for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);v[B].$.sheet.addRule(w[z][0],A);}else{A=w;for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);
}catch(p){b.hc=false;}if(b.hc)b.cssClass+=' cke_hc';o.remove();})();j.load(i.corePlugins.split(','),function(){a.status='loaded';a.fire('loaded');var l=a._.pending;if(l){delete a._.pending;for(var m=0;m<l.length;m++)a.add(l[m]);}});a.skins.add('kama',(function(){var l=[],m='cke_ui_color';if(c&&b.version<7)l.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:l,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(n){if(n.config.width&&!isNaN(n.config.width))n.config.width-=12;var o=[],p=/\$color/g,q='/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';if(b.webkit){q=q.split('}').slice(0,-1);for(var r=0;r<q.length;r++)q[r]=q[r].split('{');}function s(v){var w=v.getById(m);if(!w){w=v.getHead().append('style');w.setAttribute('id',m);w.setAttribute('type','text/css');}return w;};function t(v,w,x){var y,z,A;for(var B=0;B<v.length;B++){if(b.webkit)for(z=0;z<w.length;z++){A=w[z][1];for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);v[B].$.sheet.addRule(w[z][0],A);}else{A=w;for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);
var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=q.type||q instanceof a.htmlParser.fragment;for(var s=0;s<this.length;s++){if(r)var t=q.type,u=q.name;var v=this[s],w=v.apply(window,arguments);if(w===false)return w;if(r){if(w&&(w.name!=u||w.type!=t))return w;}else if(typeof w!='string')return w;w!=undefined&&(q=w);}return q;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.on('instanceDestroyed',function(){if(e.isEmpty(this.instances))a.fire('reset');});a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this;var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t; if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;};})();d.elementPath.prototype={compare:function(l){var m=this.elements,n=l&&l.elements;if(!n||m.length!=n.length)return false;for(var o=0;o<m.length;o++){if(!m[o].equals(n[o]))return false;}return true;},contains:function(l){var m=this.elements;for(var n=0;n<m.length;n++){if(m[n].getName() in l)return m[n];}return null;}};d.text=function(l,m){if(typeof l=='string')l=(m?m.$:document).createTextNode(l);this.$=l;};d.text.prototype=new d.node();e.extend(d.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},split:function(l){var q=this;if(c&&l==q.getLength()){var m=q.getDocument().createText('');m.insertAfter(q);return m;}var n=q.getDocument(),o=new d.text(q.$.splitText(l),n);if(b.ie8){var p=new d.text('',n);p.insertAfter(o);p.remove();}return o;},substring:function(l,m){if(typeof m!='number')return this.$.nodeValue.substr(l);else return this.$.nodeValue.substring(l,m);}});d.documentFragment=function(l){l=l||a.document;this.$=l.$.createDocumentFragment();};e.extend(d.documentFragment.prototype,h.prototype,{type:11,insertAfterNode:function(l){l=l.$;l.parentNode.insertBefore(this.$,l.nextSibling);}},true,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function l(t,u){if(this._.end)return null;var v,w=this.range,x,y=this.guard,z=this.type,A=t?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;w.trim();if(w.collapsed){this.end();return null;}}if(!t&&!this._.guardLTR){var B=w.endContainer,C=B.getChild(w.endOffset);this._.guardLTR=function(G,H){return(!H||!B.equals(G))&&(!C||!G.equals(C))&&(G.type!=1||!H||G.getName()!='body');};}if(t&&!this._.guardRTL){var D=w.startContainer,E=w.startOffset>0&&D.getChild(w.startOffset-1);this._.guardRTL=function(G,H){return(!H||!D.equals(G))&&(!E||!G.equals(E))&&(G.type!=1||!H||G.getName()!='body');};}var F=t?this._.guardRTL:this._.guardLTR;if(y)x=function(G,H){if(F(G,H)===false)return false;return y(G,H);};else x=F;if(this.current)v=this.current[A](false,z,x);else if(t){v=w.endContainer;if(w.endOffset>0){v=v.getChild(w.endOffset-1);if(x(v)===false)v=null;}else v=x(v,true)===false?null:v.getPreviousSourceNode(true,z,x);}else{v=w.startContainer;
}catch(p){b.hc=false;}if(b.hc)b.cssClass+=' cke_hc';o.remove();})();j.load(i.corePlugins.split(','),function(){a.status='loaded';a.fire('loaded');var l=a._.pending;if(l){delete a._.pending;for(var m=0;m<l.length;m++)a.add(l[m]);}});a.skins.add('kama',(function(){var l=[],m='cke_ui_color';if(c&&b.version<7)l.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:l,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(n){if(n.config.width&&!isNaN(n.config.width))n.config.width-=12;var o=[],p=/\$color/g,q='/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';if(b.webkit){q=q.split('}').slice(0,-1);for(var r=0;r<q.length;r++)q[r]=q[r].split('{');}function s(v){var w=v.getById(m);if(!w){w=v.getHead().append('style');w.setAttribute('id',m);w.setAttribute('type','text/css');}return w;};function t(v,w,x){var y,z,A;for(var B=0;B<v.length;B++){if(b.webkit)for(z=0;z<w.length;z++){A=w[z][1];for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);v[B].$.sheet.addRule(w[z][0],A);}else{A=w;for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);
}catch(p){b.hc=false;}if(b.hc)b.cssClass+=' cke_hc';o.remove();})();j.load(i.corePlugins.split(','),function(){a.status='loaded';a.fire('loaded');var l=a._.pending;if(l){delete a._.pending;for(var m=0;m<l.length;m++)a.add(l[m]);}});a.skins.add('kama',(function(){var l=[],m='cke_ui_color';if(c&&b.version<7)l.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:l,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(n){if(n.config.width&&!isNaN(n.config.width))n.config.width-=12;var o=[],p=/\$color/g,q='/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';if(b.webkit){q=q.split('}').slice(0,-1);for(var r=0;r<q.length;r++)q[r]=q[r].split('{');}function s(v){var w=v.getById(m);if(!w){w=v.getHead().append('style');w.setAttribute('id',m);w.setAttribute('type','text/css');}return w;};function t(v,w,x){var y,z,A;for(var B=0;B<v.length;B++){if(b.webkit)for(z=0;z<w.length;z++){A=w[z][1];for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);v[B].$.sheet.addRule(w[z][0],A);}else{A=w;for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]); if(c)v[B].$.styleSheet.cssText+=A;else v[B].$.innerHTML+=A;}}};var u=/\$color/g;e.extend(n,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(v){var w,x=s(a.document),y='.cke_editor_'+e.escapeCssSelector(n.name),z=[y+' .cke_wrapper',y+'_dialog .cke_dialog_contents',y+'_dialog a.cke_dialog_tab',y+'_dialog .cke_dialog_footer'].join(','),A='background-color: $color !important;';if(b.webkit)w=[[z,A]];else w=z+'{'+A+'}';return(this.setUiColor=function(B){var C=[[u,B]];n.uiColor=B;t([x],w,C);t(o,q,C);})(v);}});n.on('menuShow',function(v){var w=v.data[0],x=w.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!x.getById('cke_ui_color')){var y=s(x);o.push(y);var z=n.getUiColor();if(z)t([y],q,[[u,z]]);}});if(n.config.uiColor)n.setUiColor(n.config.uiColor);}};})());(function(){a.dialog?l():a.on('dialogPluginReady',l);function l(){a.dialog.on('resize',function(m){var n=m.data,o=n.width,p=n.height,q=n.dialog,r=q.parts.contents;if(n.skin!='kama')return;r.setStyles({width:o+'px',height:p+'px'});setTimeout(function(){var s=q.parts.dialog.getChild([0,0,0]),t=s.getChild(0),u=s.getChild(2);u.setStyle('width',t.$.offsetWidth+'px');u=s.getChild(7);u.setStyle('width',t.$.offsetWidth-28+'px');u=s.getChild(4);u.setStyle('height',t.$.offsetHeight-31-14+'px');u=s.getChild(5);u.setStyle('height',t.$.offsetHeight-31-14+'px');},100);});};})();j.add('about',{requires:['dialog'],init:function(l){var m=l.addCommand('about',new a.dialogCommand('about'));m.modes={wysiwyg:1,source:1};m.canUndo=false;l.ui.addButton('About',{label:l.lang.about.title,command:'about'});a.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var l='a11yhelp',m='a11yHelp';j.add(l,{availableLangs:{en:1},init:function(n){var o=this;n.addCommand(m,{exec:function(){var p=n.langCode;p=o.availableLangs[p]?p:'en';a.scriptLoader.load(a.getUrl(o.path+'lang/'+p+'.js'),function(){e.extend(n.lang,o.lang[p]);n.openDialog(m);});},modes:{wysiwyg:1,source:1},canUndo:false});a.dialog.add(m,this.path+'dialogs/a11yhelp.js');}});})();j.add('basicstyles',{requires:['styles','button'],init:function(l){var m=function(p,q,r,s){var t=new a.style(s);l.attachStyleStateChange(t,function(u){l.getCommand(r).setState(u);});l.addCommand(r,new a.styleCommand(t));l.ui.addButton(p,{label:q,command:r});},n=l.config,o=l.lang;m('Bold',o.bold,'bold',n.coreStyles_bold);m('Italic',o.italic,'italic',n.coreStyles_italic);m('Underline',o.underline,'underline',n.coreStyles_underline);m('Strike',o.strike,'strike',n.coreStyles_strike);
if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;};})();d.elementPath.prototype={compare:function(l){var m=this.elements,n=l&&l.elements;if(!n||m.length!=n.length)return false;for(var o=0;o<m.length;o++){if(!m[o].equals(n[o]))return false;}return true;},contains:function(l){var m=this.elements;for(var n=0;n<m.length;n++){if(m[n].getName() in l)return m[n];}return null;}};d.text=function(l,m){if(typeof l=='string')l=(m?m.$:document).createTextNode(l);this.$=l;};d.text.prototype=new d.node();e.extend(d.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},split:function(l){var q=this;if(c&&l==q.getLength()){var m=q.getDocument().createText('');m.insertAfter(q);return m;}var n=q.getDocument(),o=new d.text(q.$.splitText(l),n);if(b.ie8){var p=new d.text('',n);p.insertAfter(o);p.remove();}return o;},substring:function(l,m){if(typeof m!='number')return this.$.nodeValue.substr(l);else return this.$.nodeValue.substring(l,m);}});d.documentFragment=function(l){l=l||a.document;this.$=l.$.createDocumentFragment();};e.extend(d.documentFragment.prototype,h.prototype,{type:11,insertAfterNode:function(l){l=l.$;l.parentNode.insertBefore(this.$,l.nextSibling);}},true,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function l(t,u){if(this._.end)return null;var v,w=this.range,x,y=this.guard,z=this.type,A=t?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;w.trim();if(w.collapsed){this.end();return null;}}if(!t&&!this._.guardLTR){var B=w.endContainer,C=B.getChild(w.endOffset);this._.guardLTR=function(G,H){return(!H||!B.equals(G))&&(!C||!G.equals(C))&&(G.type!=1||!H||G.getName()!='body');};}if(t&&!this._.guardRTL){var D=w.startContainer,E=w.startOffset>0&&D.getChild(w.startOffset-1);this._.guardRTL=function(G,H){return(!H||!D.equals(G))&&(!E||!G.equals(E))&&(G.type!=1||!H||G.getName()!='body');};}var F=t?this._.guardRTL:this._.guardLTR;if(y)x=function(G,H){if(F(G,H)===false)return false;return y(G,H);};else x=F;if(this.current)v=this.current[A](false,z,x);else if(t){v=w.endContainer;if(w.endOffset>0){v=v.getChild(w.endOffset-1);if(x(v)===false)v=null;}else v=x(v,true)===false?null:v.getPreviousSourceNode(true,z,x);}else{v=w.startContainer; v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_cke_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
}catch(p){b.hc=false;}if(b.hc)b.cssClass+=' cke_hc';o.remove();})();j.load(i.corePlugins.split(','),function(){a.status='loaded';a.fire('loaded');var l=a._.pending;if(l){delete a._.pending;for(var m=0;m<l.length;m++)a.add(l[m]);}});a.skins.add('kama',(function(){var l=[],m='cke_ui_color';if(c&&b.version<7)l.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:l,editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(n){if(n.config.width&&!isNaN(n.config.width))n.config.width-=12;var o=[],p=/\$color/g,q='/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';if(b.webkit){q=q.split('}').slice(0,-1);for(var r=0;r<q.length;r++)q[r]=q[r].split('{');}function s(v){var w=v.getById(m);if(!w){w=v.getHead().append('style');w.setAttribute('id',m);w.setAttribute('type','text/css');}return w;};function t(v,w,x){var y,z,A;for(var B=0;B<v.length;B++){if(b.webkit)for(z=0;z<w.length;z++){A=w[z][1];for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);v[B].$.sheet.addRule(w[z][0],A);}else{A=w;for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);if(c)v[B].$.styleSheet.cssText+=A;else v[B].$.innerHTML+=A;}}};var u=/\$color/g;e.extend(n,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(v){var w,x=s(a.document),y='.cke_editor_'+e.escapeCssSelector(n.name),z=[y+' .cke_wrapper',y+'_dialog .cke_dialog_contents',y+'_dialog a.cke_dialog_tab',y+'_dialog .cke_dialog_footer'].join(','),A='background-color: $color !important;';if(b.webkit)w=[[z,A]];else w=z+'{'+A+'}';return(this.setUiColor=function(B){var C=[[u,B]];n.uiColor=B;t([x],w,C);t(o,q,C);})(v);}});n.on('menuShow',function(v){var w=v.data[0],x=w.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!x.getById('cke_ui_color')){var y=s(x);o.push(y);var z=n.getUiColor();if(z)t([y],q,[[u,z]]);}});if(n.config.uiColor)n.setUiColor(n.config.uiColor);}};})());(function(){a.dialog?l():a.on('dialogPluginReady',l);function l(){a.dialog.on('resize',function(m){var n=m.data,o=n.width,p=n.height,q=n.dialog,r=q.parts.contents;if(n.skin!='kama')return;r.setStyles({width:o+'px',height:p+'px'});setTimeout(function(){var s=q.parts.dialog.getChild([0,0,0]),t=s.getChild(0),u=s.getChild(2);u.setStyle('width',t.$.offsetWidth+'px');u=s.getChild(7);u.setStyle('width',t.$.offsetWidth-28+'px');u=s.getChild(4);u.setStyle('height',t.$.offsetHeight-31-14+'px');u=s.getChild(5);u.setStyle('height',t.$.offsetHeight-31-14+'px');},100);});};})();j.add('about',{requires:['dialog'],init:function(l){var m=l.addCommand('about',new a.dialogCommand('about'));m.modes={wysiwyg:1,source:1};m.canUndo=false;l.ui.addButton('About',{label:l.lang.about.title,command:'about'});a.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var l='a11yhelp',m='a11yHelp';j.add(l,{availableLangs:{en:1},init:function(n){var o=this;n.addCommand(m,{exec:function(){var p=n.langCode;p=o.availableLangs[p]?p:'en';a.scriptLoader.load(a.getUrl(o.path+'lang/'+p+'.js'),function(){e.extend(n.lang,o.lang[p]);n.openDialog(m);});},modes:{wysiwyg:1,source:1},canUndo:false});a.dialog.add(m,this.path+'dialogs/a11yhelp.js');}});})();j.add('basicstyles',{requires:['styles','button'],init:function(l){var m=function(p,q,r,s){var t=new a.style(s);l.attachStyleStateChange(t,function(u){l.getCommand(r).setState(u);});l.addCommand(r,new a.styleCommand(t));l.ui.addButton(p,{label:q,command:r});},n=l.config,o=l.lang;m('Bold',o.bold,'bold',n.coreStyles_bold);m('Italic',o.italic,'italic',n.coreStyles_italic);m('Underline',o.underline,'underline',n.coreStyles_underline);m('Strike',o.strike,'strike',n.coreStyles_strike);
if(c)v[B].$.styleSheet.cssText+=A;else v[B].$.innerHTML+=A;}}};var u=/\$color/g;e.extend(n,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(v){var w,x=s(a.document),y='.cke_editor_'+e.escapeCssSelector(n.name),z=[y+' .cke_wrapper',y+'_dialog .cke_dialog_contents',y+'_dialog a.cke_dialog_tab',y+'_dialog .cke_dialog_footer'].join(','),A='background-color: $color !important;';if(b.webkit)w=[[z,A]];else w=z+'{'+A+'}';return(this.setUiColor=function(B){var C=[[u,B]];n.uiColor=B;t([x],w,C);t(o,q,C);})(v);}});n.on('menuShow',function(v){var w=v.data[0],x=w.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!x.getById('cke_ui_color')){var y=s(x);o.push(y);var z=n.getUiColor();if(z)t([y],q,[[u,z]]);}});if(n.config.uiColor)n.setUiColor(n.config.uiColor);}};})());(function(){a.dialog?l():a.on('dialogPluginReady',l);function l(){a.dialog.on('resize',function(m){var n=m.data,o=n.width,p=n.height,q=n.dialog,r=q.parts.contents;if(n.skin!='kama')return;r.setStyles({width:o+'px',height:p+'px'});setTimeout(function(){var s=q.parts.dialog.getChild([0,0,0]),t=s.getChild(0),u=s.getChild(2);u.setStyle('width',t.$.offsetWidth+'px');u=s.getChild(7);u.setStyle('width',t.$.offsetWidth-28+'px');u=s.getChild(4);u.setStyle('height',t.$.offsetHeight-31-14+'px');u=s.getChild(5);u.setStyle('height',t.$.offsetHeight-31-14+'px');},100);});};})();j.add('about',{requires:['dialog'],init:function(l){var m=l.addCommand('about',new a.dialogCommand('about'));m.modes={wysiwyg:1,source:1};m.canUndo=false;l.ui.addButton('About',{label:l.lang.about.title,command:'about'});a.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var l='a11yhelp',m='a11yHelp';j.add(l,{availableLangs:{en:1},init:function(n){var o=this;n.addCommand(m,{exec:function(){var p=n.langCode;p=o.availableLangs[p]?p:'en';a.scriptLoader.load(a.getUrl(o.path+'lang/'+p+'.js'),function(){e.extend(n.lang,o.lang[p]);n.openDialog(m);});},modes:{wysiwyg:1,source:1},canUndo:false});a.dialog.add(m,this.path+'dialogs/a11yhelp.js');}});})();j.add('basicstyles',{requires:['styles','button'],init:function(l){var m=function(p,q,r,s){var t=new a.style(s);l.attachStyleStateChange(t,function(u){l.getCommand(r).setState(u);});l.addCommand(r,new a.styleCommand(t));l.ui.addButton(p,{label:q,command:r});},n=l.config,o=l.lang;m('Bold',o.bold,'bold',n.coreStyles_bold);m('Italic',o.italic,'italic',n.coreStyles_italic);m('Underline',o.underline,'underline',n.coreStyles_underline);m('Strike',o.strike,'strike',n.coreStyles_strike);
v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_cke_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
if(c)v[B].$.styleSheet.cssText+=A;else v[B].$.innerHTML+=A;}}};var u=/\$color/g;e.extend(n,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(v){var w,x=s(a.document),y='.cke_editor_'+e.escapeCssSelector(n.name),z=[y+' .cke_wrapper',y+'_dialog .cke_dialog_contents',y+'_dialog a.cke_dialog_tab',y+'_dialog .cke_dialog_footer'].join(','),A='background-color: $color !important;';if(b.webkit)w=[[z,A]];else w=z+'{'+A+'}';return(this.setUiColor=function(B){var C=[[u,B]];n.uiColor=B;t([x],w,C);t(o,q,C);})(v);}});n.on('menuShow',function(v){var w=v.data[0],x=w.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!x.getById('cke_ui_color')){var y=s(x);o.push(y);var z=n.getUiColor();if(z)t([y],q,[[u,z]]);}});if(n.config.uiColor)n.setUiColor(n.config.uiColor);}};})());(function(){a.dialog?l():a.on('dialogPluginReady',l);function l(){a.dialog.on('resize',function(m){var n=m.data,o=n.width,p=n.height,q=n.dialog,r=q.parts.contents;if(n.skin!='kama')return;r.setStyles({width:o+'px',height:p+'px'});setTimeout(function(){var s=q.parts.dialog.getChild([0,0,0]),t=s.getChild(0),u=s.getChild(2);u.setStyle('width',t.$.offsetWidth+'px');u=s.getChild(7);u.setStyle('width',t.$.offsetWidth-28+'px');u=s.getChild(4);u.setStyle('height',t.$.offsetHeight-31-14+'px');u=s.getChild(5);u.setStyle('height',t.$.offsetHeight-31-14+'px');},100);});};})();j.add('about',{requires:['dialog'],init:function(l){var m=l.addCommand('about',new a.dialogCommand('about'));m.modes={wysiwyg:1,source:1};m.canUndo=false;l.ui.addButton('About',{label:l.lang.about.title,command:'about'});a.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var l='a11yhelp',m='a11yHelp';j.add(l,{availableLangs:{en:1},init:function(n){var o=this;n.addCommand(m,{exec:function(){var p=n.langCode;p=o.availableLangs[p]?p:'en';a.scriptLoader.load(a.getUrl(o.path+'lang/'+p+'.js'),function(){e.extend(n.lang,o.lang[p]);n.openDialog(m);});},modes:{wysiwyg:1,source:1},canUndo:false});a.dialog.add(m,this.path+'dialogs/a11yhelp.js');}});})();j.add('basicstyles',{requires:['styles','button'],init:function(l){var m=function(p,q,r,s){var t=new a.style(s);l.attachStyleStateChange(t,function(u){l.getCommand(r).setState(u);});l.addCommand(r,new a.styleCommand(t));l.ui.addButton(p,{label:q,command:r});},n=l.config,o=l.lang;m('Bold',o.bold,'bold',n.coreStyles_bold);m('Italic',o.italic,'italic',n.coreStyles_italic);m('Underline',o.underline,'underline',n.coreStyles_underline);m('Strike',o.strike,'strike',n.coreStyles_strike);
return this.getString("caseType", TAB_SWITCHER_DEFAULT_CASE_TYPE);
return this.getBool("editShowMarkers", false);
function() { return this.getString("caseType", TAB_SWITCHER_DEFAULT_CASE_TYPE);});
var el = $(e.target), slider = el.data("slider") || current;
var el = $(e.target), slider = el.data("slider") || current, key = e.keyCode, up = $([75, 76, 38, 33, 39]).index(e.keyCode) != -1, down = $([74, 72, 40, 34, 37]).index(e.keyCode) != -1;
$(document).keydown(function(e) { var el = $(e.target), slider = el.data("slider") || current; if (slider) { // UP: k=75, l=76, up=38, pageup=33, right=39 if ($([75, 76, 38, 33, 39]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 33 ? 3 : 1, e); return false; } // DOWN: j=74, h=72, down=40, pagedown=34, left=37 if ($([74, 72, 40, 34, 37]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 34 ? -3 : -1, e); return false; } setTimeout(function() { var val = /[\d\.]+/.exec(el.val()); if (val && parseFloat(val)) { slider.setValue(parseFloat(val), e); } else { el.val(slider.getValue()); } }, 300); current = slider; } });
if (slider) {
if ((up || down) && !(e.shiftKey || e.altKey) && slider) {
$(document).keydown(function(e) { var el = $(e.target), slider = el.data("slider") || current; if (slider) { // UP: k=75, l=76, up=38, pageup=33, right=39 if ($([75, 76, 38, 33, 39]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 33 ? 3 : 1, e); return false; } // DOWN: j=74, h=72, down=40, pagedown=34, left=37 if ($([74, 72, 40, 34, 37]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 34 ? -3 : -1, e); return false; } setTimeout(function() { var val = /[\d\.]+/.exec(el.val()); if (val && parseFloat(val)) { slider.setValue(parseFloat(val), e); } else { el.val(slider.getValue()); } }, 300); current = slider; } });
if ($([75, 76, 38, 33, 39]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 33 ? 3 : 1, e);
if (up) { fire.trigger(e); if (e.isDefaultPrevented()) { return false; } slider.step(e.ctrlKey || key == 33 ? 3 : 1, e);
$(document).keydown(function(e) { var el = $(e.target), slider = el.data("slider") || current; if (slider) { // UP: k=75, l=76, up=38, pageup=33, right=39 if ($([75, 76, 38, 33, 39]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 33 ? 3 : 1, e); return false; } // DOWN: j=74, h=72, down=40, pagedown=34, left=37 if ($([74, 72, 40, 34, 37]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 34 ? -3 : -1, e); return false; } setTimeout(function() { var val = /[\d\.]+/.exec(el.val()); if (val && parseFloat(val)) { slider.setValue(parseFloat(val), e); } else { el.val(slider.getValue()); } }, 300); current = slider; } });
if ($([74, 72, 40, 34, 37]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 34 ? -3 : -1, e);
if (down) { fire.trigger(e); if (e.isDefaultPrevented()) { return false; } slider.step(e.ctrlKey || key == 34 ? -3 : -1, e);
$(document).keydown(function(e) { var el = $(e.target), slider = el.data("slider") || current; if (slider) { // UP: k=75, l=76, up=38, pageup=33, right=39 if ($([75, 76, 38, 33, 39]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 33 ? 3 : 1, e); return false; } // DOWN: j=74, h=72, down=40, pagedown=34, left=37 if ($([74, 72, 40, 34, 37]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 34 ? -3 : -1, e); return false; } setTimeout(function() { var val = /[\d\.]+/.exec(el.val()); if (val && parseFloat(val)) { slider.setValue(parseFloat(val), e); } else { el.val(slider.getValue()); } }, 300); current = slider; } });
}, 300);
}, 400);
$(document).keydown(function(e) { var el = $(e.target), slider = el.data("slider") || current; if (slider) { // UP: k=75, l=76, up=38, pageup=33, right=39 if ($([75, 76, 38, 33, 39]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 33 ? 3 : 1, e); return false; } // DOWN: j=74, h=72, down=40, pagedown=34, left=37 if ($([74, 72, 40, 34, 37]).index(e.keyCode) != -1) { slider.step(e.ctrlKey || e.keyCode == 34 ? -3 : -1, e); return false; } setTimeout(function() { var val = /[\d\.]+/.exec(el.val()); if (val && parseFloat(val)) { slider.setValue(parseFloat(val), e); } else { el.val(slider.getValue()); } }, 300); current = slider; } });
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^| )'+arguments[0]+'(?:$| )');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();a.dom={};var d=a.dom;(function(){var e=[];a.tools={arrayCompare:function(f,g){if(!f&&!g)return true;if(!f||!g||f.length!=g.length)return false;for(var h=0;h<f.length;h++){if(f[h]!=g[h])return false;}return true;},clone:function(f){var g;if(f&&f instanceof Array){g=[];for(var h=0;h<f.length;h++)g[h]=this.clone(f[h]);return g;}if(f===null||typeof f!='object'||f instanceof String||f instanceof Number||f instanceof Boolean||f instanceof Date||f instanceof RegExp)return f;g=new f.constructor();for(var i in f){var j=f[i];g[i]=this.clone(j);}return g;},capitalize:function(f){return f.charAt(0).toUpperCase()+f.substring(1).toLowerCase();},extend:function(f){var g=arguments.length,h,i;if(typeof (h=arguments[g-1])=='boolean')g--;else if(typeof (h=arguments[g-2])=='boolean'){i=arguments[g-1];g-=2;}for(var j=1;j<g;j++){var k=arguments[j];for(var l in k){if(h===true||f[l]==undefined)if(!i||l in i)f[l]=k[l];}}return f;},prototypedCopy:function(f){var g=function(){};g.prototype=f;return new g(); },isArray:function(f){return!!f&&f instanceof Array;},isEmpty:function(f){for(var g in f){if(f.hasOwnProperty(g))return false;}return true;},cssStyleToDomStyle:(function(){var f=document.createElement('div').style,g=typeof f.cssFloat!='undefined'?'cssFloat':typeof f.styleFloat!='undefined'?'styleFloat':'float';return function(h){if(h=='float')return g;else return h.replace(/-./g,function(i){return i.substr(1).toUpperCase();});};})(),buildStyleHtml:function(f){f=[].concat(f);var g,h=[];for(var i=0;i<f.length;i++){g=f[i];if(/@import|[{}]/.test(g))h.push('<style>'+g+'</style>');else h.push('<link type="text/css" rel=stylesheet href="'+g+'">');}return h.join('');},htmlEncode:function(f){var g=function(k){var l=new d.element('span');l.setText(k);return l.getHtml();},h=g('\n').toLowerCase()=='<br>'?function(k){return g(k).replace(/<br>/gi,'\n');}:g,i=g('>')=='>'?function(k){return h(k).replace(/>/g,'&gt;');}:h,j=g(' ')=='&nbsp; '?function(k){return i(k).replace(/&nbsp;/g,' ');}:i;this.htmlEncode=j;return this.htmlEncode(f);},htmlEncodeAttr:function(f){return f.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/,'&gt;');},escapeCssSelector:function(f){return f.replace(/[\s#:.,$*^\[\]()~=+>]/g,'\\$&');},getNextNumber:(function(){var f=0;return function(){return++f;};})(),override:function(f,g){return g(f);},setTimeout:function(f,g,h,i,j){if(!j)j=window;if(!h)h=j;return j.setTimeout(function(){if(i)f.apply(h,[].concat(i));else f.apply(h);},g||0);},trim:(function(){var f=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(g){return g.replace(f,'');};})(),ltrim:(function(){var f=/^[ \t\n\r]+/g;return function(g){return g.replace(f,'');};})(),rtrim:(function(){var f=/[ \t\n\r]+$/g;return function(g){return g.replace(f,'');};})(),indexOf:Array.prototype.indexOf?function(f,g){return f.indexOf(g);}:function(f,g){for(var h=0,i=f.length;h<i;h++){if(f[h]===g)return h;}return-1;},bind:function(f,g){return function(){return f.apply(g,arguments);};},createClass:function(f){var g=f.$,h=f.base,i=f.privates||f._,j=f.proto,k=f.statics;if(i){var l=g;g=function(){var p=this;var m=p._||(p._={});for(var n in i){var o=i[n];m[n]=typeof o=='function'?a.tools.bind(o,p):o;}l.apply(p,arguments);};}if(h){g.prototype=this.prototypedCopy(h.prototype);g.prototype['constructor']=g;g.prototype.base=function(){this.base=h.prototype.base;h.apply(this,arguments);this.base=arguments.callee;};}if(j)this.extend(g.prototype,j,true);if(k)this.extend(g,k,true);return g;},addFunction:function(f,g){return e.push(function(){f.apply(g||this,arguments); })-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r};
return l.length?l.join(';')+';':false;};},elementMigrateFilter:function(h,i){return function(j){var k=i?new CKEDITOR.style(h,i)._.definition:h;j.name=k.element;CKEDITOR.tools.extend(j.attributes,CKEDITOR.tools.clone(k.attributes));j.addStyle(CKEDITOR.style.getStyleText(k));};},styleMigrateFilter:function(h,i){var j=this.elementMigrateFilter;return function(k,l){var m=new CKEDITOR.htmlParser.element(null),n={};n[i]=k;j(h,n)(m);m.children=l.children;l.children=[m];};},bogusAttrFilter:function(h,i){if(i.name.indexOf('cke:')==-1)return false;},applyStyleFilter:null},getRules:function(h){var i=CKEDITOR.dtd,j=CKEDITOR.tools.extend({},i.$block,i.$listItem,i.$tableContent),k=h.config,l=this.filters,m=l.falsyFilter,n=l.stylesFilter,o=l.elementMigrateFilter,p=CKEDITOR.tools.bind(this.filters.styleMigrateFilter,this.filters),q=l.bogusAttrFilter,r=this.utils.createListBulletMarker,s=l.flattenList,t=l.assembleList,u=this.utils.isListBulletIndicator,v=this.utils.isContainingOnlySpaces,w=this.utils.resolveList,x=this.utils.convertToPx,y=this.utils.getStyleComponents,z=this.utils.listDtdParents,A=k.pasteFromWordRemoveFontStyles!==false,B=k.pasteFromWordRemoveStyles!==false;return{elementNames:[[/meta|link|script/,'']],root:function(C){C.filterChildren();t(C);},elements:{'^':function(C){var D;if(CKEDITOR.env.gecko&&(D=l.applyStyleFilter))D(C);},$:function(C){var D=C.name||'',E=C.attributes;if(D in j&&E.style)E.style=n([[/^(:?width|height)$/,null,x]])(E.style)||'';if(D.match(/h\d/)){C.filterChildren();if(w(C))return;o(k['format_'+D])(C);}else if(D in i.$inline){C.filterChildren();if(v(C))delete C.name;}else if(D.indexOf(':')!=-1&&D.indexOf('cke')==-1){C.filterChildren();if(D=='v:imagedata'){var F=C.attributes['o:href'];if(F)C.attributes.src=F;C.name='img';return;}delete C.name;}if(D in z){C.filterChildren();t(C);}},style:function(C){if(CKEDITOR.env.gecko){var D=C.onlyChild().value.match(/\/\* Style Definitions \*\/([\s\S]*?)\/\*/),E=D&&D[1],F={};if(E){E.replace(/[\n\r]/g,'').replace(/(.+?)\{(.+?)\}/g,function(G,H,I){H=H.split(',');var J=H.length,K;for(var L=0;L<J;L++)CKEDITOR.tools.trim(H[L]).replace(/^(\w+)(\.[\w-]+)?$/g,function(M,N,O){N=N||'*';O=O.substring(1,O.length);if(O.match(/MsoNormal/))return;if(!F[N])F[N]={};if(O)F[N][O]=I;else F[N]=I;});});l.applyStyleFilter=function(G){var H=F['*']?'*':G.name,I=G.attributes&&G.attributes['class'],J;if(H in F){J=F[H];if(typeof J=='object')J=J[I];J&&G.addStyle(J,true);}};}}return false;},p:function(C){C.filterChildren();var D=C.attributes,E=C.parent,F=C.children;
if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^| )'+arguments[0]+'(?:$| )');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();a.dom={};var d=a.dom;(function(){var e=[];a.tools={arrayCompare:function(f,g){if(!f&&!g)return true;if(!f||!g||f.length!=g.length)return false;for(var h=0;h<f.length;h++){if(f[h]!=g[h])return false;}return true;},clone:function(f){var g;if(f&&f instanceof Array){g=[];for(var h=0;h<f.length;h++)g[h]=this.clone(f[h]);return g;}if(f===null||typeof f!='object'||f instanceof String||f instanceof Number||f instanceof Boolean||f instanceof Date||f instanceof RegExp)return f;g=new f.constructor();for(var i in f){var j=f[i];g[i]=this.clone(j);}return g;},capitalize:function(f){return f.charAt(0).toUpperCase()+f.substring(1).toLowerCase();},extend:function(f){var g=arguments.length,h,i;if(typeof (h=arguments[g-1])=='boolean')g--;else if(typeof (h=arguments[g-2])=='boolean'){i=arguments[g-1];g-=2;}for(var j=1;j<g;j++){var k=arguments[j];for(var l in k){if(h===true||f[l]==undefined)if(!i||l in i)f[l]=k[l];}}return f;},prototypedCopy:function(f){var g=function(){};g.prototype=f;return new g();},isArray:function(f){return!!f&&f instanceof Array;},isEmpty:function(f){for(var g in f){if(f.hasOwnProperty(g))return false;}return true;},cssStyleToDomStyle:(function(){var f=document.createElement('div').style,g=typeof f.cssFloat!='undefined'?'cssFloat':typeof f.styleFloat!='undefined'?'styleFloat':'float';return function(h){if(h=='float')return g;else return h.replace(/-./g,function(i){return i.substr(1).toUpperCase();});};})(),buildStyleHtml:function(f){f=[].concat(f);var g,h=[];for(var i=0;i<f.length;i++){g=f[i];if(/@import|[{}]/.test(g))h.push('<style>'+g+'</style>');else h.push('<link type="text/css" rel=stylesheet href="'+g+'">');}return h.join('');},htmlEncode:function(f){var g=function(k){var l=new d.element('span');l.setText(k);return l.getHtml();},h=g('\n').toLowerCase()=='<br>'?function(k){return g(k).replace(/<br>/gi,'\n');}:g,i=g('>')=='>'?function(k){return h(k).replace(/>/g,'&gt;');}:h,j=g(' ')=='&nbsp; '?function(k){return i(k).replace(/&nbsp;/g,' ');}:i;this.htmlEncode=j;return this.htmlEncode(f);},htmlEncodeAttr:function(f){return f.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/,'&gt;');},escapeCssSelector:function(f){return f.replace(/[\s#:.,$*^\[\]()~=+>]/g,'\\$&');},getNextNumber:(function(){var f=0;return function(){return++f;};})(),override:function(f,g){return g(f);},setTimeout:function(f,g,h,i,j){if(!j)j=window;if(!h)h=j;return j.setTimeout(function(){if(i)f.apply(h,[].concat(i));else f.apply(h);},g||0);},trim:(function(){var f=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(g){return g.replace(f,'');};})(),ltrim:(function(){var f=/^[ \t\n\r]+/g;return function(g){return g.replace(f,'');};})(),rtrim:(function(){var f=/[ \t\n\r]+$/g;return function(g){return g.replace(f,'');};})(),indexOf:Array.prototype.indexOf?function(f,g){return f.indexOf(g);}:function(f,g){for(var h=0,i=f.length;h<i;h++){if(f[h]===g)return h;}return-1;},bind:function(f,g){return function(){return f.apply(g,arguments);};},createClass:function(f){var g=f.$,h=f.base,i=f.privates||f._,j=f.proto,k=f.statics;if(i){var l=g;g=function(){var p=this;var m=p._||(p._={});for(var n in i){var o=i[n];m[n]=typeof o=='function'?a.tools.bind(o,p):o;}l.apply(p,arguments);};}if(h){g.prototype=this.prototypedCopy(h.prototype);g.prototype['constructor']=g;g.prototype.base=function(){this.base=h.prototype.base;h.apply(this,arguments);this.base=arguments.callee;};}if(j)this.extend(g.prototype,j,true);if(k)this.extend(g,k,true);return g;},addFunction:function(f,g){return e.push(function(){f.apply(g||this,arguments);})-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r};
function () { if (gDBView && gDBView.selection.count < 1) return void liberator.beep(); MsgOpenNewTabForMessage(); });
function () { content.focus(); });
function () { if (gDBView && gDBView.selection.count < 1) return void liberator.beep(); MsgOpenNewTabForMessage(); });
nm = root.find("#" + css.next).unbind("click").click(function(e) { if (!nm.hasClass(css.disabled)) { self.next();
pm = root.find("#" + css.prev).unbind("click").click(function(e) { if (!pm.hasClass(css.disabled)) { self.prev();
nm = root.find("#" + css.next).unbind("click").click(function(e) { if (!nm.hasClass(css.disabled)) { self.next(); } return false; });
div.addEvent('keydown', function(e) { if(!e.control) return; if(e.key == 'w') { e.stop(); var whisperBoxes = $$('.whisperBox'); if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); if (whisperers.length == 1) { if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ var getNewWhisperReq = new ServerReq('newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); getNewWhisperReq.transmit({'wuid':user.uid}); }
messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); var lid = item.lid; if(lastId) { if (lid >= lastId) { if(lid > lastId+1) { displayErrorMessage("missed a log id, was "+lid+" expecting "+(lastId+1)); } lastId = lid; } } else { lastId = lid;
div.addEvent('keydown', function(e) { if(!e.control) return; if(e.key == 'w') { e.stop(); var whisperBoxes = $$('.whisperBox'); if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); //gets users in whisper if (whisperers.length == 1) { //we only want to worry about this if only other person if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ //If we get here we have not found that we already in a one on one whisper with this person, so now we have to create a new Whisper var getNewWhisperReq = new ServerReq('newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); getNewWhisperReq.transmit({'wuid':user.uid}); } } });
if ( fullPoll == 2) MBchat.updateables.processMessage(item);
div.addEvent('keydown', function(e) { if(!e.control) return; if(e.key == 'w') { e.stop(); var whisperBoxes = $$('.whisperBox'); if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); //gets users in whisper if (whisperers.length == 1) { //we only want to worry about this if only other person if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ //If we get here we have not found that we already in a one on one whisper with this person, so now we have to create a new Whisper var getNewWhisperReq = new ServerReq('newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); getNewWhisperReq.transmit({'wuid':user.uid}); } } });
return this.getString("orderTabsType", "n");
return this.getString("caseType", TAB_SWITCHER_DEFAULT_CASE_TYPE);
function() { return this.getString("orderTabsType", "n");});
if((e.control || e.shift) && (me.role == 'A' || me.role == 'L' || room.hasClass('committee'))) {
if((e.control || e.shift) && (me.role == 'A' || me.role == 'L' || door.hasClass('committee'))) {
door.addEvent('click', function(e) { e.stop(); //browser should not follow link if((e.control || e.shift) && (me.role == 'A' || me.role == 'L' || room.hasClass('committee'))) { MBchat.updateables.logger.startLog(door.get('id').substr(1).toInt(),door.get('text')); } else { MBchat.updateables.message.enterRoom(door.get('id').substr(1).toInt()); } });
$("#host-filter").live('keyup', function() { var searchText = $(this).val(); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); });
$(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() {
$("#host-filter").live('keyup', function() { var searchText = $(this).val(); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); });
$('#show-ruler-checkbox').click(function() { if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } });
$('.ttip').hover(function() { var text = $(this).find('div.ttip-content').html(); $('#help-box').html(text).fadeIn(); }, function() {
$('#show-ruler-checkbox').click(function() { if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } });
pm = root.find("#" + css.prev).unbind("click").click(function(e) { if (!pm.hasClass(css.disabled)) { self.prev();
nm = root.find("#" + css.next).unbind("click").click(function(e) { if (!nm.hasClass(css.disabled)) { self.next();
pm = root.find("#" + css.prev).unbind("click").click(function(e) { if (!pm.hasClass(css.disabled)) { self.prev(); } return false; });
root.mousewheel(function(e, delta) { if (conf.mousewheel) { self.move(delta < 0 ? 1 : -1, conf.wheelSpeed || 50); return false; } });
setTimeout(function() { if (!e.isDefaultPrevented()) { prev.toggleClass(conf.disabledClass, i <= 0); next.toggleClass(conf.disabledClass, i >= self.getSize() -1); } }, 1);
root.mousewheel(function(e, delta) { if (conf.mousewheel) { self.move(delta < 0 ? 1 : -1, conf.wheelSpeed || 50); return false; } });