if(typeof BVlogger==="undefined"){var BVlogger=function(s){if(window.Debug&&Debug.writeln){Debug.writeln([].join.call(arguments," "));}else{if(window.console&&console.log){console.log.apply(console,arguments);}else{if(window.opera&&opera.postError){opera.postError([].join.call(arguments," "));}}}};}function bvToggleDivWithIEControlsFrame(targetId,ieControlsFrameId,ieControlsFrameTitle){if(document.getElementById(targetId).style.display=="block"){bvCloseDivs(targetId,ieControlsFrameId);}else{bvExpandDivWithIEControlsFrame(targetId,ieControlsFrameId,ieControlsFrameTitle);}}function bvExpandDivWithIEControlsFrame(targetId,ieControlsFrameId,ieControlsFrameTitle,showDivFunction){if(!showDivFunction){showDivFunction=bvOpenDivs;}showDivFunction(targetId);var isExplorer=document.all&&((navigator.userAgent.indexOf("MSIE 6.")>-1)||(navigator.userAgent.indexOf("MSIE 5.5")>-1));if(isExplorer){var ieControlsFrame=document.getElementById(ieControlsFrameId);if(!ieControlsFrame){ieControlsFrame=document.createElement("iframe");ieControlsFrame.id=ieControlsFrameId;ieControlsFrame.title=ieControlsFrameTitle;ieControlsFrame.src="javascript:''";ieControlsFrame.scrolling="no";ieControlsFrame.frameBorder="0";}if(ieControlsFrame){var target=document.getElementById(targetId);if(target){target.parentNode.insertBefore(ieControlsFrame,target);var targetLocation=bvGetLocation(targetId);ieControlsFrame.style.width=targetLocation.width;ieControlsFrame.style.height=targetLocation.height;}ieControlsFrame.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";showDivFunction(ieControlsFrameId);}}}function bvResizeIEControlsFrame(ieControlsFrameId){var ieControlsFrame=document.getElementById(ieControlsFrameId);if(ieControlsFrame){var target=ieControlsFrame.nextSibling;var targetId=target.id;var targetLocation=bvGetLocation(targetId);ieControlsFrame.style.width=targetLocation.width;ieControlsFrame.style.height=targetLocation.height;}}function bvOpenDivs(){for(var i=0;i<arguments.length;i++){if(document.getElementById(arguments[i])){if(document.getElementById(arguments[i]).style.display!="block"){document.getElementById(arguments[i]).style.display="block";}}}}function bvCloseDivs(){for(var i=0;i<arguments.length;i++){if(document.getElementById(arguments[i])){if(document.getElementById(arguments[i]).style.display!="none"){document.getElementById(arguments[i]).style.display="none";}}}}function bvToggleVis(target){if(document.getElementById(target).style.display=="block"){document.getElementById(target).style.display="none";}else{document.getElementById(target).style.display="block";}}function bvGetLocation(elementId){var obj=document.getElementById(elementId);if(obj){var w=obj.offsetWidth;var h=obj.offsetHeight;var posX=0;var posY=0;while(obj){posX+=obj.offsetLeft;posY+=obj.offsetTop;obj=obj.offsetParent;}return{left:posX,top:posY,width:w,height:h};}else{return{left:0,top:0,width:0,height:0};}}function bvSetOpenerLocation(url,closeWindow){if(opener){if(opener.closed){window.open(url,"");}else{opener.location.href=url;if(closeWindow){window.close();}}return false;}return true;}function bvReplaceTokensInSocialURL(url){return url.replace("__ROBOT__","no").replace("__TITLE__",encodeURIComponent(document.title));}function bvFocus(id){document.getElementById(id).tabIndex="-1";document.getElementById(id).focus();}
function BvDropdown(dropdownId,selectId,buttonId,itemsId,buttonNormal,buttonHover){this._containerDiv=document.getElementById(dropdownId);this._selectedDiv=document.getElementById(selectId);this._buttonDiv=document.getElementById(buttonId);this._itemsDiv=document.getElementById(itemsId);if(!this._containerDiv||!this._selectedDiv||!this._itemsDiv||this._itemsDiv.getElementsByTagName("*").length==0){this.valid=false;return;}var preloadImage=new Image();preloadImage.src=buttonHover;this._timerOn=false;this._timerID=null;this._timerDelay=300;var oThis=this;this._selectedDiv.onclick=function(){oThis.toggleItemList();};this._containerDiv.onmouseout=function(){oThis.startTimer();};this._containerDiv.onmouseover=function(){oThis.stopTimer();};if(this._buttonDiv){this._selectedDiv.onmouseover=function(){oThis.setButtonBkg(buttonHover);};this._selectedDiv.onmouseout=function(){oThis.setButtonBkg(buttonNormal);};}this.valid=true;}BvDropdown.prototype.setButtonBkg=function(imageUrl){this._buttonDiv.style.backgroundImage="url("+imageUrl+")";};BvDropdown.prototype.toggleItemList=function(){if(this._itemsDiv.style.display=="block"){this.hideItemList();}else{this.showItemList();}};BvDropdown.prototype.showItemList=function(){this._itemsDiv.style.display="block";};BvDropdown.prototype.hideItemList=function(){this._itemsDiv.style.display="none";this.stopTimer();};BvDropdown.prototype.startTimer=function(){if(!this._timerOn){var oThis=this;this._timerID=window.setTimeout(function(){oThis.hideItemList();},this._timerDelay);this._timerOn=true;}};BvDropdown.prototype.stopTimer=function(){if(this._timerOn){window.clearTimeout(this._timerID);this._timerID=null;this._timerOn=false;}};BvDropdown.prototype.getLinks=function(){return this.valid?this._itemsDiv.getElementsByTagName("a"):[];};function bvAddAdditionalHandlersToDropdown(dropdownId){var dropdown;try{dropdown=window.parent.document.getElementById(dropdownId);}catch(e){}if(dropdown==null||dropdown.oldValue){return;}dropdown.oldValue=dropdown.value;if(!dropdown.onchange||!(document.all&&(navigator.userAgent.indexOf("MSIE")>-1))){return;}dropdown.onfocusouthandler=dropdown.onfocusout;dropdown.onkeydownhandler=dropdown.onkeydown;dropdown.onchangehandler=dropdown.onchange;dropdown.onfocusout=function(){if(dropdown.onfocusouthandler){dropdown.onfocusouthandler();}if(dropdown.oldValue!=dropdown.value){dropdown.onchangehandler();}};dropdown.onkeydown=function(){if(dropdown.onkeydownhandler){dropdown.onkeydownhandler();}dropdown.eventKeyCode=event.keyCode;var keyCodeEnter=13;if(dropdown.eventKeyCode==keyCodeEnter&&dropdown.oldValue!=dropdown.value){dropdown.onchangehandler();}};dropdown.onchange=function(){var keyCodeUp=38;var keyCodeDown=40;if(dropdown.eventKeyCode==keyCodeUp||dropdown.eventKeyCode==keyCodeDown){dropdown.eventKeyCode=0;}else{dropdown.onchangehandler();}};}
var bvPointerPosX=0;var bvPointerPosY=0;function bvGetMouseXY(e){if(!e){e=window.event;}if(document.documentElement&&document.documentElement.scrollTop){bvPointerPosX=e.clientX+document.documentElement.scrollLeft;bvPointerPosY=e.clientY+document.documentElement.scrollTop;}else{if(document.body){bvPointerPosX=e.clientX+document.body.scrollLeft;bvPointerPosY=e.clientY+document.body.scrollTop;}else{bvPointerPosX=e.pageX;bvPointerPosY=e.pageY;}}if(bvPointerPosX<=0){bvPointerPosX=0;}if(bvPointerPosY<=0){bvPointerPosY=0;}}window.document.onmousemove=bvGetMouseXY;function bvSetPos(theDiv,offsetX,offsetY){if(offsetY==undefined){offsetY=0;}document.getElementById(theDiv).style.top=bvPointerPosY-offsetY+"px";document.getElementById(theDiv).style.left=bvPointerPosX-offsetX+"px";}
function bvConfigureBoundLink(boundLinkContainerId,boundLinkId,links,boundLinkNames){var boundLinkContainer=document.getElementById(boundLinkContainerId);if(!boundLinkContainer){return;}var boundLink=document.getElementById(boundLinkId);if(boundLink&&boundLink.href){boundLinkContainer.style.display="block";return;}if(boundLink&&boundLinkNames&&links){var hrefTable={};for(var i=0;i<links.length;i++){hrefTable[links[i].title]=links[i].href;}for(i=0;i<boundLinkNames.length;i++){if(hrefTable[boundLinkNames[i]]){if(boundLink.textContent!=undefined){boundLink.textContent=boundLinkNames[i];}else{boundLink.innerText=boundLinkNames[i];}boundLink.href=hrefTable[boundLinkNames[i]];boundLinkContainer.style.display="block";return;}}}boundLinkContainer.style.display="none";}
function bvrrAnalyticsWrapper(elem,trackingTagOverride){if(typeof BVAnalyticsTracker==="object"&&BVAnalyticsTracker&&BVAnalyticsTracker.fireActionEvent){BVAnalyticsTracker.fireActionEvent(elem,trackingTagOverride);}}
