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','')!=''}}