"undefined"==typeof Browser&&(Browser={}); (function(){var f=function(a){var b=0,c=0;a||(a=window.event);if(a.pageX||a.pageY)b=a.pageX,c=a.pageY;else if(a.clientX||a.clientY)b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;return[b,c]},h=function(){this.name="IE";this.getCursorPosition=function(a){return f(a)};this.attachEventListener=function(a,b,c,d){a.attachEvent("on"+b,c);return!0};this.addLoadListener=function(a){window.attachEvent("onload", a)};this.getPageDimensions=function(){var a=document.getElementsByTagName("body")[0],b=[0,0];"undefined"!=typeof document.documentElement&&"undefined"!=typeof document.documentElement.scrollWidth&&(b[0]=document.documentElement.scrollWidth,b[1]=document.documentElement.scrollHeight);var c=a.offsetWidth;var d=a.offsetHeight;var e=a.scrollWidth;a=a.scrollHeight;c>b[0]&&(b[0]=c);d>b[1]&&(b[1]=d);e>b[0]&&(b[0]=e);a>b[1]&&(b[1]=a);return b};this.getScrollingPosition=function(){var a=0,b=0;document.body&& (document.body.scrollLeft||document.body.scrollTop)?(a=document.body.scrollTop,b=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(a=document.documentElement.scrollTop,b=document.documentElement.scrollLeft);return[b,a]};this.getViewportSize=function(){return 0==document.documentElement.clientWidth&&0==document.documentElement.clientHeight?[document.body.clientWidth,document.body.clientHeight]:[document.documentElement.clientWidth, document.documentElement.clientHeight]};this.setIFrameHeight=function(a,b){frame=document.getElementById(a);innerDoc=frame.contentDocument?frame.contentDocument:frame.contentWindow.document;objToResize=frame.style?frame.style:frame;objToResize.height=innerDoc.body.scrollHeight+18+(b?b:0)};this.setTextContent=function(a,b){a.innerText=b};this.getTextContent=function(a){return a.innerText}},k=function(){this.name="Mozilla";this.getCursorPosition=function(a){return f(a)};this.attachEventListener=function(a, b,c,d){a.addEventListener(b,c,d);return!0};this.addLoadListener=function(a){window.addEventListener("load",a,!1)};this.getPageDimensions=function(){var a=document.getElementsByTagName("body")[0],b=[0,0];"undefined"!=typeof document.documentElement&&"undefined"!=typeof document.documentElement.scrollWidth&&(b[0]=document.documentElement.scrollWidth,b[1]=document.documentElement.scrollHeight);var c=a.offsetWidth;var d=a.offsetHeight;var e=a.scrollWidth;a=a.scrollHeight;c>b[0]&&(b[0]=c);d>b[1]&&(b[1]= d);e>b[0]&&(b[0]=e);a>b[1]&&(b[1]=a);return b};this.getScrollingPosition=function(){var a=[0,0];"undefined"!=typeof window.pageYOffset?a=[window.pageXOffset,window.pageYOffset]:"undefined"!=typeof document.body.scrollTop&&(a=[document.body.scrollLeft,document.body.scrollTop]);return a};this.getViewportSize=function(){return[window.innerWidth,window.innerHeight]};this.setIFrameHeight=function(a,b){a=document.getElementById(a);a.height=a.contentDocument.body.offsetHeight+(b?b:0)};this.setTextContent= function(a,b){a.textContent=b};this.getTextContent=function(a){return a.textContent}},g=function(){this.name="Undefined";this.getCursorPosition=function(a){return f(a)};this.attachEventListener=function(a,b,c,d){if("undefined"!=typeof a.addEventListener)a.addEventListener(b,c,d);else if("undefined"!=typeof a.attachEvent)a.attachEvent("on"+b,c);else if(b="on"+b,"function"!=typeof a[b])a[b]=c;else{var e=a[b];a[b]=function(){e();return c()};return!0}};this.addLoadListener=function(a){if("undefined"!= typeof window.addEventListener)window.addEventListener("load",a,!1);else if("undefined"!=typeof document.addEventListener)document.addEventListener("load",a,!1);else if("undefined"!=typeof window.attachEvent)window.attachEvent("onload",a);else if("function"!=typeof window.onload)window.onload=a;else{var b=window.onload;window.onload=function(){b();a()}}};this.getPageDimensions=function(){var a=document.getElementsByTagName("body")[0],b=[0,0];"undefined"!=typeof document.documentElement&&"undefined"!= typeof document.documentElement.scrollWidth&&(b[0]=document.documentElement.scrollWidth,b[1]=document.documentElement.scrollHeight);var c=a.offsetWidth;var d=a.offsetHeight;var e=a.scrollWidth;a=a.scrollHeight;c>b[0]&&(b[0]=c);d>b[1]&&(b[1]=d);e>b[0]&&(b[0]=e);a>b[1]&&(b[1]=a);return b};this.getScrollingPosition=function(){var a=[0,0];"undefined"!=typeof window.pageYOffset&&(a=[window.pageXOffset,window.pageYOffset]);"undefined"!=typeof document.documentElement.scrollTop&&0