document.getElementsByTagName("body")[0].appendChild(_10);\r
_10.className="bubble";\r
\r
- _iH = window.innerHeight;\r
var _e=findPos(_c)[0]+5;\r
+ var cur_height = findPos(_c)[1]-get_scroll_position() + 283;\r
\r
// should the bubble be displayed above or below the object\r
- if(findPos(_c)[1] + 240 >= _iH) {\r
+ if(cur_height >= get_page_height()) {\r
var _f=findPos(_c)[1]-283;\r
var _mT=16;\r
var _mL=12;\r
}\r
}//end function var_dump\r
\r
+function get_page_height()\r
+{\r
+ var myHeight = 0;\r
+ if( typeof( window.innerHeight ) == 'number' ) {\r
+ //Non-IE\r
+ myHeight = window.innerHeight;\r
+ } else if( document.documentElement && document.documentElement.clientHeight ) {\r
+ //IE 6+ in 'standards compliant mode'\r
+ myHeight = document.documentElement.clientHeight;\r
+ } else if( document.body && document.body.clientHeight ) {\r
+ //IE 4 compatible\r
+ myHeight = document.body.clientHeight;\r
+ }\r
+\r
+ return myHeight;\r
+}\r
+\r
+function get_scroll_position()\r
+{\r
+\r
+ if (typeof window.pageYOffset != 'undefined')\r
+ return window.pageYOffset;\r
+ else\r
+ if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')\r
+ return window.scrollTop;\r
+ else\r
+ if (typeof document.body != 'undefined')\r
+ return document.body.scrollTop;\r
+\r
+}\r
\r
BrowserDetect.init();\r