//START b.Interactive.AjaxControls.CollapsiblePanel.CollapsiblePanelBehavior.js
Type.registerNamespace('b.Interactive.AjaxControls');b.Interactive.AjaxControls.CollapsiblePanelExpandDirection = function() {
throw Error.invalidOperation();}
b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.prototype = {
Horizontal : 0,
Vertical: 1,
Left: 2,
Up: 3
}
b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.registerEnum("b.Interactive.AjaxControls.CollapsiblePanelExpandDirection", false);b.Interactive.AjaxControls.CollapsiblePanelBehavior = function(element) {
b.Interactive.AjaxControls.CollapsiblePanelBehavior.initializeBase(this, [element]);this._collapsedSize = -1;this._expandedSize = -1;this._collapsed = false;this._expandControlID = null;this._collapseControlID = null;this._textLabelID = null;this._collapsedText = null;this._expandedText = null;this._imageControlID = null;this._expandedImage = null;this._collapsedImage = null;this._minimumOpacity = 1;this._maximumOpacity = 1;this._suppressPostBack = null;this._autoExpand = null;this._autoCollapse = null;this._expandDirection = b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Vertical;this._collapseClickHandler = null;this._expandClickHandler = null;this._panelMouseEnterHandler = null;this._panelMouseLeaveHandler = null;this._timer = null;this._tickHandler = null;this._offsetHeight = null;this._offsetWidth = null;this._animation = null;this._lengthAnimation = null;this._moveAnimation = null;this._fadeAnimation = null;this._originalTop = 0;this._originalLeft = 0;}
b.Interactive.AjaxControls.CollapsiblePanelBehavior.prototype = {
initialize: function() {
b.Interactive.AjaxControls.CollapsiblePanelBehavior.callBaseMethod(this, 'initialize');var e = this.get_element();var AA = b.Interactive.AjaxControls.Script;this._animation = new AA.InSync({ duration: .25, fps: 60 }, e);this._lengthAnimation = new AA.ResizeTo();if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Horizontal ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
this._lengthAnimation.set_name('width');}
this._animation.add(this._lengthAnimation);if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
this._moveAnimation = new AA.MoveTo({ isRelative: true });if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
this._moveAnimation.set_name('left');}
this._animation.add(this._moveAnimation);}
this._fadeAnimation = new AA.Fade();this._animation.add(this._fadeAnimation);this._animation.add_completed(Function.createDelegate(this, this._onAnimateComplete));if (this._suppressPostBack == null) {
if (e.tagName == "INPUT" && e.type == "checkbox") {
this._suppressPostBack = false;this.raisePropertyChanged('SuppressPostBack');} else if (e.tagName == "A") {
this._suppressPostBack = true;this.raisePropertyChanged('SuppressPostBack');}
}
var lastState = b.Interactive.AjaxControls.CollapsiblePanelBehavior.callBaseMethod(this, 'get_ClientState');if (lastState && lastState != '') {
this._collapsed = Boolean.parse(lastState);if (this._collapsed) {
this._doOpen(null);} else {
this._doClose(null);}
} else {
if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up) {
e.style.top = 0 + 'px';} else if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
e.style.left = 0 + 'px';}
if (this._collapsed) {
this._doClose(null);} else {
this._doOpen(null);}
}
if (this._collapseControlID == this._expandControlID) {
this._collapseClickHandler = Function.createDelegate(this, this.togglePanel);this._expandClickHandler = null;} else {
this._collapseClickHandler = Function.createDelegate(this, this.collapsePanel);this._expandClickHandler = Function.createDelegate(this, this.expandPanel);}
if (this._autoExpand) {
this._panelMouseEnterHandler = Function.createDelegate(this, this._onMouseEnter);$(e).bind('mouseover', this._panelMouseEnterHandler);}
if (this._autoCollapse) {
this._panelMouseLeaveHandler = Function.createDelegate(this, this._onMouseLeave);$(e).bind('mouseout', this._panelMouseLeaveHandler);}
if (this._collapseControlID) {
var collapseElement = $get(this._collapseControlID);if (!collapseElement) {
throw Error.argument('CollapseControlID', String.format(b.Interactive.AjaxControls.Resources.CollapsiblePanel_NoControlID, this._collapseControlID));} else {
$(collapseElement).bind('click', this._collapseClickHandler);}
}
if (this._expandControlID) {
if (this._expandClickHandler) { 
var expandElement = $get(this._expandControlID);if (!expandElement) {
throw Error.argument('ExpandControlID', String.format(b.Interactive.AjaxControls.Resources.CollapsiblePanel_NoControlID, this._expandControlID));} else {
$(expandElement).bind('click', this._expandClickHandler);}
}
}
},
dispose: function() {
var e = this.get_element();if (this._collapseClickHandler) {
var collapseElement = (this._collapseControlID ? $get(this._collapseControlID) : null);if (collapseElement) {
$(collapseElement).unbind('click', this._collapseClickHandler);}
this._collapseClickHandler = null;}
if (this._expandClickHandler) {
var expandElement = (this._expandControlID ? $get(this._expandControlID) : null);if (expandElement) {
$(expandElement).unbind('click', this._expandClickHandler);}
this._expandClickHandler = null;}
if (this._panelMouseEnterHandler) {
$(e).unbind('mouseover', this._panelMouseEnterHandler);}
if (this._panelMouseLeaveHandler) {
$(e).unbind('mouseout', this._panelMouseLeaveHandler);}
if (this._timer) {
this._timer.dispose();this._timer = null;this._tickHandler = null;}
if (this._animation) {
this._animation.dispose();this._animation = null;this._lengthAnimation = null;this._moveAnimation = null;this._fadeAnimation = null;}
b.Interactive.AjaxControls.CollapsiblePanelBehavior.callBaseMethod(this, 'dispose');},
togglePanel: function(eventObj) {
if (!eventObj || this._suppressPostBack) {
this._toggle(eventObj);}
},
expandPanel: function(eventObj) {
this._doOpen(eventObj);},
expandPanelIfCollapsed: function(eventObj) {
if (this._collapsed) {
this._doOpen(eventObj);}
},
collapsePanel: function(eventObj) {
this._doClose(eventObj);},
collapsePanelIfExpanded: function(eventObj) {
if (!this._collapsed) {
this._doClose(eventObj);}
},
_doClose: function(eventObj) {
var eventArgs = new Sys.CancelEventArgs();this.raiseCollapsing(eventArgs);if (eventArgs.get_cancel()) {
return;}
this._setupState(true);if (this._animation) {
this._animation.stop();var e = this.get_element();if (this._timer) {
this._timer.set_enabled(false);}
e.style.overflow = 'hidden';this._lengthAnimation.set_value(this._getCollapsedSize());if (this._moveAnimation) {
this._moveAnimation.set_value(-this._getCollapsedSize());}
this._fadeAnimation.set_startValue(this._minimumOpacity);this._fadeAnimation.set_endValue(this._maximumOpacity);this._animation.play();}
if (this._suppressPostBack) {
if (eventObj && eventObj.preventDefault) {
eventObj.preventDefault();} else {
if (window.event) {
window.event.returnValue = false;}
return false;}
}
},
_doOpen: function(eventObj) {
var eventArgs = new Sys.CancelEventArgs();this.raiseExpanding(eventArgs);if (eventArgs.get_cancel()) {
return;}
this._setupState(false);if (this._animation) {
this._animation.stop();var e = this.get_element();var collapsedSize = this._getCollapsedSize();if (this._expandedSize == -1) {
e.style.visibility = 'hidden';if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Vertical ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up) {
e.style.height = 'auto';} else if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Horizontal ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
e.style.width = 'auto';}
}
e.style.display = 'block';var expandedSize = this._getExpandedSize();if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Vertical ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up) {
e.style.height = collapsedSize + 'px';} else if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Horizontal ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
e.style.width = collapsedSize + 'px';}
e.style.visibility = 'visible';this._lengthAnimation.set_value(expandedSize);if (this._moveAnimation) {
this._moveAnimation.set_value(-expandedSize);}
this._fadeAnimation.set_startValue(this._maximumOpacity);this._fadeAnimation.set_endValue(this._minimumOpacity);this._animation.play();}
if (this._suppressPostBack) {
if (eventObj && eventObj.preventDefault) {
eventObj.preventDefault();} else {
if (window.event) {
window.event.returnValue = false;}
return false;}
}
},
_onAnimateComplete: function() {
if (this._collapsed) {
this.raiseCollapseComplete();this.raiseCollapsed(Sys.EventArgs.Empty);$(this.get_element()).fadeTo(0, 0);} else {
this.raiseExpandComplete()
this.raiseExpanded(Sys.EventArgs.Empty);if (this._expandedSize == -1) {
var e = this.get_element();if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Vertical ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up) {
e.style.height = 'auto';} else if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Horizontal ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
e.style.width = 'auto';}
if (!this._timer) {
if (!this._tickHandler) {
this._tickHandler = Function.createDelegate(this, this._onTimerTick);}
this._timer = new Sys.Timer();this._timer.add_tick(this._tickHandler);this._timer.set_interval(10);}
this._timer.set_enabled(true);}
}
},
_onMouseEnter: function(eventObj) {
if (this._autoExpand) {
this.expandPanel(eventObj);}
},
_onMouseLeave: function(eventObj) {
if (this._autoCollapse) {
this.collapsePanel(eventObj);}
},
_onTimerTick: function(eventObj) {
var e = this.get_element();if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up) {
if (this._offsetHeight != e.offsetHeight) {
if (e.offsetHeight > 0) {
e.style.top = -e.offsetHeight + 'px';}
this._offsetHeight = e.offsetHeight;}
} else if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
if (this._offsetWidth != e.offsetWidth) {
if (e.offsetWidth > 0) {
e.style.left = -e.offsetWidth + 'px';}
this._offsetWidth = e.offsetWidth;}
}
},
_getExpandedSize: function() {
if (this._expandedSize != -1) {
return this._expandedSize;}
if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Vertical ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up) {
return $(this.get_element()).height();} else if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Horizontal ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
return $(this.get_element()).width();}
},
_getCollapsedSize: function() {
if (this._collapsedSize == -1) {
if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Vertical ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Up) {
this._collapsedSize = $(this.get_element()).height();} else if (this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Horizontal ||
this._expandDirection == b.Interactive.AjaxControls.CollapsiblePanelExpandDirection.Left) {
this._collapsedSize = $(this.get_element()).width();}
}
return this._collapsedSize;},
_setupState: function(isCollapsed) {
if (isCollapsed) {
if (this._textLabelID && this._collapsedText) {
var e = $get(this._textLabelID);if (e) {
$(e).html(this._collapsedText);}
}
if (this._imageControlID && this._collapsedImage) {
var i = $get(this._imageControlID);if (i) {
if (this._expandedImage) {
$(i).removeClass(this._expandedImage);}
$(i).addClass(this._collapsedImage);if (this._expandedText || this._collapsedText) {
i.title = this._collapsedText;}
}
}
}
else {
if (this._textLabelID && this._expandedText) {
var e = $get(this._textLabelID);if (e) {
$(e).html(this._expandedText);}
}
if (this._imageControlID && this._expandedImage) {
var i = $get(this._imageControlID);if (i) {
if (this._collapsedImage) {
$(i).removeClass(this._collapsedImage);}
$(i).addClass(this._expandedImage);if (this._expandedText || this._collapsedText) {
i.title = this._expandedText;}
}
}
}
if (this._collapsed != isCollapsed) {
this._collapsed = isCollapsed;this.raisePropertyChanged('Collapsed');}
b.Interactive.AjaxControls.CollapsiblePanelBehavior.callBaseMethod(this, 'set_ClientState', [this._collapsed.toString()]);},
_toggle: function(eventObj) {
if (this.get_Collapsed()) {
return this.expandPanel(eventObj);} else {
return this.collapsePanel(eventObj);}
},
add_collapsing: function(handler) {
this.get_events().addHandler('collapsing', handler);},
remove_collapsing: function(handler) {
this.get_events().removeHandler('collapsing', handler);},
raiseCollapsing: function(eventArgs) {
var handler = this.get_events().getHandler('collapsing');if (handler) {
handler(this, eventArgs);}
},
add_collapsed: function(handler) {
this.get_events().addHandler('collapsed', handler);},
remove_collapsed: function(handler) {
this.get_events().removeHandler('collapsed', handler);},
raiseCollapsed: function(eventArgs) {
var handler = this.get_events().getHandler('collapsed');if (handler) {
handler(this, eventArgs);}
},
add_collapseComplete: function(handler) {
this.get_events().addHandler('collapseComplete', handler);},
remove_collapseComplete: function(handler) {
this.get_events().removeHandler('collapseComplete', handler);},
raiseCollapseComplete: function() {
var handlers = this.get_events().getHandler('collapseComplete');if (handlers) {
handlers(this, Sys.EventArgs.Empty);}
},
add_expanding: function(handler) {
this.get_events().addHandler('expanding', handler);},
remove_expanding: function(handler) {
this.get_events().removeHandler('expanding', handler);},
raiseExpanding: function(eventArgs) {
var handler = this.get_events().getHandler('expanding');if (handler) {
handler(this, eventArgs);}
},
add_expanded: function(handler) {
this.get_events().addHandler('expanded', handler);},
remove_expanded: function(handler) {
this.get_events().removeHandler('expanded', handler);},
raiseExpanded: function(eventArgs) {
var handler = this.get_events().getHandler('expanded');if (handler) {
handler(this, eventArgs);}
},
add_expandComplete: function(handler) {
this.get_events().addHandler('expandComplete', handler);},
remove_expandComplete: function(handler) {
this.get_events().removeHandler('expandComplete', handler);},
raiseExpandComplete: function() {
var handlers = this.get_events().getHandler('expandComplete');if (handlers) {
handlers(this, Sys.EventArgs.Empty);}
},
get_TargetHeight: function() {
if (this._collapsed) {
return this._getCollapsedSize();} else {
return this._getExpandedSize();}
},
set_TargetHeight: function(value) {
this.get_element().style.height = value + "px";this.raisePropertyChanged('TargetHeight');},
get_TargetWidth: function() {
if (this._collapsed) {
return this._getCollapsedSize();} else {
return this._getExpandedSize();}
},
set_TargetWidth: function(value) {
this.get_element().style.width = value + "px"
this.raisePropertyChanged('TargetWidth');},
get_Collapsed: function() {
return this._collapsed;},
set_Collapsed: function(value) {
if (this._collapsed != value) {
if (this.get_isInitialized()) {
this.togglePanel();} else {
this._collapsed = value;this.raisePropertyChanged('Collapsed');}
}
},
get_CollapsedSize: function() {
return this._collapsedSize;},
set_CollapsedSize: function(value) {
if (this._collapsedSize != value) {
this._collapsedSize = value;this.raisePropertyChanged('CollapsedSize');}
},
get_ExpandedSize: function() {
return this._expandedSize;},
set_ExpandedSize: function(value) {
if (this._expandedSize != value) {
this._expandedSize = value;this.raisePropertyChanged('ExpandedSize');}
},
get_CollapseControlID: function() {
return this._collapseControlID;},
set_CollapseControlID: function(value) {
if (this._collapseControlID != value) {
this._collapseControlID = value;this.raisePropertyChanged('CollapseControlID');}
},
get_ExpandControlID: function() {
return this._expandControlID;},
set_ExpandControlID: function(value) {
if (this._expandControlID != value) {
this._expandControlID = value;this.raisePropertyChanged('ExpandControlID');}
},
get_SuppressPostBack: function() {
return this._suppressPostBack;},
set_SuppressPostBack: function(value) {
if (this._suppressPostBack != value) {
this._suppressPostBack = value;this.raisePropertyChanged('SuppressPostBack');}
},
get_TextLabelID: function() {
return this._textLabelID;},
set_TextLabelID: function(value) {
if (this._textLabelID != value) {
this._textLabelID = value;this.raisePropertyChanged('TextLabelID');}
},
get_ExpandedText: function() {
return this._expandedText;},
set_ExpandedText: function(value) {
if (this._expandedText != value) {
this._expandedText = value;this.raisePropertyChanged('ExpandedText');}
},
get_CollapsedText: function() {
return this._collapsedText;},
set_CollapsedText: function(value) {
if (this._collapsedText != value) {
this._collapsedText = value;this.raisePropertyChanged('CollapsedText');}
},
get_ImageControlID: function() {
return this._imageControlID;},
set_ImageControlID: function(value) {
if (this._imageControlID != value) {
this._imageControlID = value;this.raisePropertyChanged('ImageControlID');}
},
get_ExpandedImage: function() {
return this._expandedImage;},
set_ExpandedImage: function(value) {
if (this._expandedImage != value) {
this._expandedImage = value;this.raisePropertyChanged('ExpandedImage');}
},
get_CollapsedImage: function() {
return this._collapsedImage;},
set_CollapsedImage: function(value) {
if (this._collapsedImage != value) {
this._collapsedImage = value;this.raisePropertyChanged('CollapsedImage');}
},
get_AutoExpand: function() {
return this._autoExpand;},
set_AutoExpand: function(value) {
if (this._autoExpand != value) {
this._autoExpand = value;this.raisePropertyChanged('AutoExpand');}
},
get_AutoCollapse: function() {
return this._autoCollapse;},
set_AutoCollapse: function(value) {
if (this._autoCollapse != value) {
this._autoCollapse = value;this.raisePropertyChanged('AutoCollapse');}
},
get_MinimumOpacity: function() {
return this._minimumOpacity;},
set_MinimumOpacity: function(value) {
if (this._minimumOpacity != value) {
this._minimumOpacity = value;this.raisePropertyChanged('MinimumOpacity');}
},
get_MaximumOpacity: function() {
return this._maximumOpacity;},
set_MaximumOpacity: function(value) {
if (this._maximumOpacity != value) {
this._maximumOpacity = value;this.raisePropertyChanged('MaximumOpacity');}
},
get_ExpandDirection: function() {
return this._expandDirection;},
set_ExpandDirection: function(value) {
if (this._expandDirection != value) {
this._expandDirection = value;this.raisePropertyChanged('ExpandDirection');}
}
}
b.Interactive.AjaxControls.CollapsiblePanelBehavior.registerClass('b.Interactive.AjaxControls.CollapsiblePanelBehavior', b.Interactive.AjaxControls.BehaviorBase);
//END b.Interactive.AjaxControls.CollapsiblePanel.CollapsiblePanelBehavior.js
//START b.Interactive.AjaxControls.Script.ScriptingBehavior.js
Type.registerNamespace('b.Interactive.AjaxControls.Script');b.Interactive.AjaxControls.Script.ScriptingBehavior = function(element) {
b.Interactive.AjaxControls.Script.ScriptingBehavior.initializeBase(this, [element]);this._onLoad = null;this._onClick = null;this._onMouseOver = null;this._onMouseOut = null;this._onHoverOver = null;this._onHoverOut = null;this._onClickHandler = null;this._onMouseOverHandler = null;this._onMouseOutHandler = null;}
b.Interactive.AjaxControls.Script.ScriptingBehavior.prototype = {
initialize : function() {
b.Interactive.AjaxControls.Script.ScriptingBehavior.callBaseMethod(this, 'initialize');var element = this.get_element();if (element) {
this._onClickHandler = Function.createDelegate(this, this.OnClick);$(element).bind('click', this._onClickHandler);this._onMouseOverHandler = Function.createDelegate(this, this.OnMouseOver);$(element).bind('mouseover', this._onMouseOverHandler);this._onMouseOutHandler = Function.createDelegate(this, this.OnMouseOut);$(element).bind('mouseout', this._onMouseOutHandler);}
},
dispose : function() {
var element = this.get_element();if (element) {
if (this._onClickHandler) {
$(element).unbind('click', this._onClickHandler);this._onClickHandler = null;}
if (this._onMouseOverHandler) {
$(element).unbind('mouseover', this._onMouseOverHandler);this._onMouseOverHandler = null;}
if (this._onMouseOutHandler) {
$(element).unbind('mouseout', this._onMouseOutHandler);this._onMouseOutHandler = null;}
}
this._onLoad = null;this._onClick = null;this._onMouseOver = null;this._onMouseOut = null;this._onHoverOver = null;this._onHoverOut = null;b.Interactive.AjaxControls.Script.ScriptingBehavior.callBaseMethod(this, 'dispose');},
get_OnLoad : function() {
return this._onLoad ? this._onLoad.get_json() : null;},
set_OnLoad : function(value) {
if (!this._onLoad) {
this._onLoad = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(this.get_element());this._onLoad.initialize();}
this._onLoad.set_json(value);this.raisePropertyChanged('OnLoad');this._onLoad.play();},
get_OnLoadBehavior : function() {
return this._onLoad;},
get_OnClick : function() {
return this._onClick ? this._onClick.get_json() : null;},
set_OnClick : function(value) {
if (!this._onClick) {
this._onClick = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(this.get_element());this._onClick.initialize();}
this._onClick.set_json(value);this.raisePropertyChanged('OnClick');},
get_OnClickBehavior : function() {
return this._onClick;},
OnClick : function() {
if (this._onClick) {
this._onClick.play();}
},
get_OnMouseOver : function() {
return this._onMouseOver ? this._onMouseOver.get_json() : null;},
set_OnMouseOver : function(value) {
if (!this._onMouseOver) {
this._onMouseOver = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(this.get_element());this._onMouseOver.initialize();}
this._onMouseOver.set_json(value);this.raisePropertyChanged('OnMouseOver');},
get_OnMouseOverBehavior : function() {
return this._onMouseOver;},
OnMouseOver : function() {
if (this._onMouseOver) {
this._onMouseOver.play();}
if (this._onHoverOver) {
if (this._onHoverOut) {
this._onHoverOut.quit();}
this._onHoverOver.play();}
},
get_OnMouseOut : function() {
return this._onMouseOut ? this._onMouseOut.get_json() : null;},
set_OnMouseOut : function(value) {
if (!this._onMouseOut) {
this._onMouseOut = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(this.get_element());this._onMouseOut.initialize();}
this._onMouseOut.set_json(value);this.raisePropertyChanged('OnMouseOut');},
get_OnMouseOutBehavior : function() {
return this._onMouseOut;},
OnMouseOut : function() {
if (this._onMouseOut) {
this._onMouseOut.play();}
if (this._onHoverOut) {
if (this._onHoverOver) {
this._onHoverOver.quit();}
this._onHoverOut.play();}
},
get_OnHoverOver : function() {
return this._onHoverOver ? this._onHoverOver.get_json() : null;},
set_OnHoverOver : function(value) {
if (!this._onHoverOver) {
this._onHoverOver = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(this.get_element());this._onHoverOver.initialize();}
this._onHoverOver.set_json(value);this.raisePropertyChanged('OnHoverOver');},
get_OnHoverOverBehavior : function() {
return this._onHoverOver;},
get_OnHoverOut : function() {
return this._onHoverOut ? this._onHoverOut.get_json() : null;},
set_OnHoverOut : function(value) {
if (!this._onHoverOut) {
this._onHoverOut = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(this.get_element());this._onHoverOut.initialize();}
this._onHoverOut.set_json(value);this.raisePropertyChanged('OnHoverOut');},
get_OnHoverOutBehavior : function() {
return this._onHoverOut;}
}
b.Interactive.AjaxControls.Script.ScriptingBehavior.registerClass('b.Interactive.AjaxControls.Script.ScriptingBehavior', b.Interactive.AjaxControls.BehaviorBase);b.Interactive.AjaxControls.Script.GenericScriptingBehavior = function(element) {
b.Interactive.AjaxControls.Script.GenericScriptingBehavior.initializeBase(this, [element]);this._json = null;this._script = null;}
b.Interactive.AjaxControls.Script.GenericScriptingBehavior.prototype = {
dispose: function() {
this.disposeScript();b.Interactive.AjaxControls.Script.GenericScriptingBehavior.callBaseMethod(this, 'dispose');},
disposeScript: function() {
if (this._script) {
this._script.dispose();}
this._script = null;},
play: function() {
if (this._script && !this._script.get_isPlaying()) {
this.stop();this._script.play();}
},
stop: function() {
if (this._script) {
if (this._script.get_isPlaying()) {
this._script.stop(true);}
}
},
quit: function() {
if (this._script) {
if (this._script.get_isPlaying()) {
this._script.stop(false);}
}
},
get_json: function() {
return this._json;},
set_json: function(value) {
if (this._json != value) {
this._json = value;this.raisePropertyChanged('json');this.disposeScript();var element = this.get_element();if (element) {
this._script = $createScript(this._json, element);this.raisePropertyChanged('script');}
}
},
get_script: function() {
return this._script;}
}
b.Interactive.AjaxControls.Script.GenericScriptingBehavior.registerClass('b.Interactive.AjaxControls.Script.GenericScriptingBehavior', b.Interactive.AjaxControls.BehaviorBase);
//END b.Interactive.AjaxControls.Script.ScriptingBehavior.js
//START b.Interactive.AjaxControls.UpdatePanelScripting.UpdatePanelScriptingBehavior.js
Type.registerNamespace('b.Interactive.AjaxControls.Script');b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior = function(element) {
b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior.initializeBase(this, [element]);this._onUpdatingTriggerIDs = null;this._onLoaded = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(element);this._onUpdating = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(element);this._onUpdated = new b.Interactive.AjaxControls.Script.GenericScriptingBehavior(element);this._postBackPending = null;this._applicationLoadHandler = null;this._pageLoadingHandler = null;this._pageLoadedHandler = null;}
b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior.prototype = {
initialize: function() {
b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior.callBaseMethod(this, 'initialize');var element = this.get_element();var parentDiv = document.createElement(element.tagName);element.parentNode.insertBefore(parentDiv, element);parentDiv.appendChild(element);Array.remove(element._behaviors, this);Array.remove(element._behaviors, this._onUpdating);Array.remove(element._behaviors, this._onUpdated);if (parentDiv._behaviors) {
Array.add(parentDiv._behaviors, this);Array.add(parentDiv._behaviors, this._onUpdating);Array.add(parentDiv._behaviors, this._onUpdated);} else {
parentDiv._behaviors = [this, this._onUpdating, this._onUpdated];}
this._element = this._onUpdating._element = this._onUpdated._element = parentDiv;this._onLoaded.initialize();this._onUpdating.initialize();this._onUpdated.initialize();this._applicationLoadHandler = Function.createDelegate(this, this._applicationLoad);Sys.Application.add_load(this._applicationLoadHandler);this.registerPartialUpdateEvents();this._pageLoadingHandler = Function.createDelegate(this, this._pageLoading);this._pageRequestManager.add_pageLoading(this._pageLoadingHandler);this._pageLoadedHandler = Function.createDelegate(this, this._pageLoaded);this._pageRequestManager.add_pageLoaded(this._pageLoadedHandler);},
dispose: function() {
if (this._applicationLoadHandler) {
Sys.Application.remove_load(this._applicationLoadHandler);this._applicationLoadHandler = null;}
if (this._pageRequestManager && this._pageLoadingHandler) {
this._pageRequestManager.remove_pageLoading(this._pageLoadingHandler);this._pageLoadingHandler = null;}
if (this._pageRequestManager && this._pageLoadedHandler) {
this._pageRequestManager.remove_pageLoaded(this._pageLoadedHandler);this._pageLoadedHandler = null;}
b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior.callBaseMethod(this, 'dispose');},
_applicationLoad: function(sender, args) {
if (!args.get_isPartialLoad()) {
this._onLoaded.play();}
},
_partialUpdateBeginRequest: function(sender, beginRequestEventArgs) {
b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior.callBaseMethod(this, '_partialUpdateBeginRequest', [sender, beginRequestEventArgs]);var trigger = beginRequestEventArgs.get_postBackElement().id
var triggers = this.get_onUpdatingTriggerIDs();if (triggers.length > 0) {
for (var i = 0;i < triggers.length;i++) {
if (trigger.indexOf(triggers[i]) == 0 && (trigger.length == triggers[i].length
|| beginRequestEventArgs.get_postBackElement().tagName != "DIV")) {
this._postBackPending = true;return;}
}
} else {
this._postBackPending = true;}
},
_pageLoading: function(sender, args) {
if (this._postBackPending) {
var element = '#' + $(this.get_element()).children()[0].id;var panels = null;panels = args.get_panelsDeleting();for (var i = 0;i < panels.length;i++) {
if ($(panels[i]).closest(element).length != 0) {
this._onUpdated.quit();this._onLoaded.stop();this._onUpdating.play();}
}
panels = args.get_panelsUpdating();for (var i = 0;i < panels.length;i++) {
if ($(panels[i]).closest(element).length != 0) {
this._onUpdated.quit();this._onLoaded.stop();this._onUpdating.play();}
}
}
},
_pageLoaded: function(sender, args) {
if (this._postBackPending) {
var element = '#' + $(this.get_element()).children()[0].id;var panels = null;panels = args.get_panelsCreated();for (var i = 0;i < panels.length;i++) {
if ($(panels[i]).closest(element).length != 0) {
this._onLoaded.quit();this._onUpdating.stop();this._onUpdated.play();}
}
panels = args.get_panelsUpdated();for (var i = 0;i < panels.length;i++) {
if ($(panels[i]).closest(element).length != 0) {
this._onLoaded.quit();this._onUpdating.stop();this._onUpdated.play();}
}
this._postBackPending = false;}
},
_partialUpdateEndRequest: function(sender, endRequestEventArgs) {
b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior.callBaseMethod(this, '_partialUpdateEndRequest', [sender, endRequestEventArgs]);var response = endRequestEventArgs.get_response();if (endRequestEventArgs.get_error() || response.get_aborted() || response.get_timedOut()) {
this._onLoaded.quit();this._onUpdating.quit();this._onUpdated.stop();this._postBackPending = false;}
},
get_onUpdatingTriggerIDs: function() {
if (this._onUpdatingTriggerIDs == null) {
return [];}
return eval(this._onUpdatingTriggerIDs);},
set_onUpdatingTriggerIDs: function(value) {
if (this._onUpdatingTriggerIDs != value) {
this._onUpdatingTriggerIDs = value;this.raisePropertyChanged('onUpdatingTriggerIDs');}
},
get_OnLoaded: function() {
return this._onLoaded.get_json();},
set_OnLoaded: function(value) {
this._onLoaded.set_json(value);this.raisePropertyChanged('OnLoaded');},
get_OnLoadBehavior: function() {
return this._onLoaded;},
get_OnUpdating: function() {
return this._onUpdating.get_json();},
set_OnUpdating: function(value) {
this._onUpdating.set_json(value);this.raisePropertyChanged('OnUpdating');},
get_OnUpdatingBehavior: function() {
return this._onUpdating;},
get_OnUpdated: function() {
return this._onUpdated.get_json();},
set_OnUpdated: function(value) {
this._onUpdated.set_json(value);this.raisePropertyChanged('OnUpdated');},
get_OnUpdatedBehavior: function() {
return this._onUpdated;}
}
b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior.registerClass('b.Interactive.AjaxControls.Script.UpdatePanelScriptingBehavior', b.Interactive.AjaxControls.BehaviorBase);
//END b.Interactive.AjaxControls.UpdatePanelScripting.UpdatePanelScriptingBehavior.js
//START b.Interactive.AjaxControls.NoBot.NoBotBehavior.js
Type.registerNamespace("b.Interactive.AjaxControls");b.Interactive.AjaxControls.NoBotBehavior = function(element) {
b.Interactive.AjaxControls.NoBotBehavior.initializeBase(this, [element]);this._ChallengeScript = "";this._pageRequestManager = null;this._pageLoadedHandler = null;this._pageLoadedDataItems = {};}
b.Interactive.AjaxControls.NoBotBehavior.prototype = {
initialize : function() {
b.Interactive.AjaxControls.NoBotBehavior.callBaseMethod(this, "initialize");var response = eval(this._ChallengeScript);b.Interactive.AjaxControls.NoBotBehavior.callBaseMethod(this, "set_ClientState", [response]);this._pageRequestManager = Sys.WebForms.PageRequestManager.getInstance();this._pageLoadedHandler = Function.createDelegate(this, this._pageLoaded);this._pageRequestManager.add_pageLoaded(this._pageLoadedHandler);},
dispose : function() {
if (this._pageRequestManager && this._pageLoadedHandler) {
this._pageRequestManager.remove_pageLoaded(this._pageLoadedHandler);this._pageLoadedHandler = null;}
this._pageRequestManager = null;this._pageLoadedDataItems = null;b.Interactive.AjaxControls.NoBotBehavior.callBaseMethod(this, "dispose");},
_pageLoaded : function(sender, args) {
this._pageLoadedDataItems = args.get_dataItems();for (var i in this._pageLoadedDataItems) {
eval("var noBotDescriptor = " + this._pageLoadedDataItems[i] + ";");if (noBotDescriptor.noBotID) {
delete this._pageLoadedDataItems[i];if (noBotDescriptor.updateNoBot) {
var response = noBotDescriptor.updateNoBot(noBotDescriptor.noBotID);b.Interactive.AjaxControls.NoBotBehavior.callBaseMethod(this, "set_ClientState", [response]);}
}
}
},
get_ChallengeScript : function() {
return this._ChallengeScript;},
set_ChallengeScript : function(value) {
if (this._ChallengeScript != value) { 
this._ChallengeScript = value;this.raisePropertyChanged('ChallengeScript');}
}
}
b.Interactive.AjaxControls.NoBotBehavior.registerClass("b.Interactive.AjaxControls.NoBotBehavior", b.Interactive.AjaxControls.BehaviorBase);
//END b.Interactive.AjaxControls.NoBot.NoBotBehavior.js
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
(function() {var fn = function() {$get('Photos_bIScriptManager_HiddenField').value += ';;b.Interactive.AjaxControls, Version=3.0.20820.1, Culture=neutral, PublicKeyToken=ad08928660b51cc8:en-US:253674f8-8951-413b-9655-9db9f4dae443:2d73082d:768238b:836ee6a6:af0f6fb3';Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();
