var Utilities={addToBookmarks:function(url,title){window.external.AddFavorite(url,title);},clearContent:function(element,defaultValue){if(element.value==defaultValue)
element.value='';},cover:function(bottom,top,ignoreSize){var location=Sys.UI.DomElement.getLocation(bottom);top.style.top=location.y-2+'px';top.style.left=location.x+'px';if(!ignoreSize){top.style.height=bottom.offsetHeight+'px';top.style.width=bottom.offsetWidth+'px';}},findPosX:function(element){var curLeft=0;if(element.offsetParent){while(1){curLeft+=element.offsetLeft;if(!element.offsetParent)break;element=element.offsetParent;}}else if(element.x)
curLeft+=element.x;return curLeft;},findPosY:function(element){var curTop=0;if(element.offsetParent){while(1){curTop+=element.offsetTop;if(!element.offsetParent)break;element=element.offsetParent;}}else if(element.y)
curTop+=element.y;return curTop;},focus:function(element){window.scrollTo(this.findPosX(element),this.findPosY(element));},widthToggle:function(){var fixedWidth=Cookies.readCookie('FixedWidth');if(fixedWidth=='false'||fixedWidth==null)
fixedWidth='true';else
fixedWidth='false';Cookies.createCookie('FixedWidth',fixedWidth,365);document.location.reload();}}
var Cookies={createCookie:function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires='; expires='+date.toGMTString();}else{var expires='';}
document.cookie=name+'='+value+expires+'; path=/';},readCookie:function(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;},eraseCookie:function(name){this.createCookie(name,'',-1);}}
var Miscellaneous={setEditorValue:function(id,value){var editor=FCKeditorAPI.GetInstance(id);editor.SetHTML(value);},validateEditorLength:function(sender,args){var editor=FCKeditorAPI.GetInstance(sender.controltovalidate);var maxLength=sender.maxLength!=null?sender.maxLength:10;args.IsValid=editor.GetXHTML(true).length<=maxLength;},validateEditorRequired:function(sender,args){var editor=FCKeditorAPI.GetInstance(sender.controltovalidate);args.IsValid=editor.GetXHTML(true).replace(/(\s|&nbsp;)+/,'').replace('<br />','')!='';}}// JavaScript Document