var ua=navigator.userAgent;var compatible=(document.getElementById&&document.getElementsByTagName&&document.createElement&&!(!window.opera&&ua.indexOf('MSIE 5')!=-1&&ua.indexOf('Mac')!=-1));var ie4=ua.indexOf('MSIE 4')!=-1;function _ae(t,f){if(compatible){if(window.attachEvent)window.attachEvent('on'+t,f);else if(typeof window.addEventListener!="undefined")window.addEventListener(t,f,false);else if(typeof document.addEventListener!="undefined")document.addEventListener(t,f,false);}}
function addLoadEvent(f){_ae('load',f); }
function _pb2(t){var imgs=document.getElementsByTagName(t);for(i=0;i<imgs.length;i++){if(/\bbutton\b/.test(imgs[i].className)){var src1=imgs[i].src.replace(/-hi\.gif/,'.gif');var src2=imgs[i].src.replace(/\.gif/,'-hi.gif');eval("imgs[i].onmouseover=function(){this.src='"+src2+"';return false}");eval("imgs[i].onmouseout=function(){this.src='"+src1+"';return false}");}}}
function prepareButtons(){if(_pb2){_pb2('img');_pb2('input');}}
function win(a,b,c){var w;w=window.open(a,b,c);if(!w){window.alert('A popup blocker is activated in your webbrowser. Please disable the popup blocker to use this function.');}
return false;}
function help(id){win("/help?nbl=1;id="+id,'sconhelp','scrollbars=yes,resizable=yes,width=650,height=450');if(top.ad)top.ad();return false;}
function getwidth(){var w=window.innerWidth;if(document.documentElement)w=w || document.documentElement.clientWidth;if(document.body)w=w || document.body.clientWidth;return w;}
function getheight(){var h=window.innerHeight;if(document.documentElement)h=h || document.documentElement.clientHeight;if(document.body)h=h || document.body.clientHeight;return h;}
function _str(fl,id,minH,maxH,topH,botH){elm=document.getElementById(id);if(elm){h=fl?getwidth():getheight();if(elm.offsetParent&&elm.offsetTop){tmp=elm;while(tmp){h=h- (fl?tmp.offsetLeft:tmp.offsetTop);tmp=tmp.offsetParent;}}else{h=h-topH;
}
h=h- botH;
if(h<minH)h=minH;
if(h>maxH)h=maxH;
if(fl)elm.style.width=h+"px";
else elm.style.height=h+"px";
}}
function stretchh(id,minH,maxH,topH,botH){var f=function(){_str(0,id,minH,maxH,topH,botH)};
_ae('resize',f);_ae('load',f);}
function stretchw(id,minW,maxW,leftW,rightW){var f=function(){_str(1,id,minW,maxW,leftW,rightW)};
_ae('resize',f);_ae('load',f);}
_ae('load',prepareButtons);