//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.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('Video_bIScriptManager_HiddenField').value += ';;b.Interactive.AjaxControls, Version=3.0.20820.1, Culture=neutral, PublicKeyToken=ad08928660b51cc8:en-US:2a538033-a94f-4ad6-95b2-a9c6a28b9727:2d73082d:af0f6fb3';Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();
