function getAbsolutePosition(el){var r={x:el.offsetLeft,y:el.offsetTop};if(el.offsetParent){var tmp=getAbsolutePosition(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}
r.x=parseInt(r.x);r.y=parseInt(r.y);return r;}
function goTo(anchor){window.location.hash="#"+anchor;}
function getDocumentSize(doc){var r={width:0,height:0};var width1=0,width2=0,width3=0,width4=0,maxWidth=0;var height1=0,height2=0,height3=0,height4=0,maxHeight=0;if(doc.width)maxWidth=doc.width;if(doc.body){if(doc.body.scrollWidth)width1=doc.body.scrollWidth;if(doc.body.offsetWidth)width2=doc.body.offsetWidth;}
if(document.documentElement){width3=document.documentElement.scrollWidth;width4=document.documentElement.clientWidth;}
maxWidth=Math.max(Math.max(width1,width2),Math.max(width3,width4));if(doc.height)maxHeight=doc.height;if(doc.body){if(doc.body.scrollHeight)height1=doc.body.scrollHeight;if(doc.body.offsetHeight)height2=doc.body.offsetHeight;}
if(document.documentElement){height3=document.documentElement.scrollHeight;height4=document.documentElement.clientHeight;}
maxHeight=Math.max(Math.max(height1,height2),Math.max(height3,height4));r.width=maxWidth;r.height=maxHeight;return r;}
