2
//a hack for sizing our iframe correctly
3
/* var getHeight = function () {
7
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
8
if (typeof window.innerWidth != 'undefined')
10
viewportwidth = window.innerWidth,
11
viewportheight = window.innerHeight
13
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
14
else if (typeof document.documentElement != 'undefined'
15
&& typeof document.documentElement.clientWidth !=
16
'undefined' && document.documentElement.clientWidth != 0)
18
viewportwidth = document.documentElement.clientWidth,
19
viewportheight = document.documentElement.clientHeight
21
// older versions of IE
24
viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
25
viewportheight = document.getElementsByTagName('body')[0].clientHeight
27
return viewportheight;
31
var main_part = $('#main_part');
32
var content_frame = main_part.find('#content_frame');
33
var resize_mainpart = function () {
34
// main_part.height (getHeight() - 75);
35
// main_part.children('#side').css ('height', '100%');
36
content_frame.css ('height', '97.5%');
40
$(window).resize(function() {
41
clearTimeout(resizeTimer);
42
resizeTimer = setTimeout(resize_mainpart, 100);