var Minglebox=window.Minglebox||{};Minglebox.window=Minglebox.window||{};(function(){var A;Minglebox.window.getViewportDimensions=function(){var B,C;if(self.innerHeight){B=self.innerWidth;C=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;C=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;C=document.body.clientHeight}else{B=0;C=0}}}return{width:B,height:C}};Minglebox.window.getHeight=function(F){var C=parseInt(F,10);if(isNaN(C)){var H=Minglebox.window.getViewportDimensions().height;var B=document.body;var G=document.documentElement;if(document.compatMode=="CSS1Compat"&&G.scrollHeight){C=G.scrollHeight!=H?G.scrollHeight:G.offsetHeight}else{var D=G.scrollHeight;var E=G.offsetHeight;if(G.clientHeight!=E){D=B.scrollHeight;E=B.offsetHeight}if(D>H){C=D>E?D:E}else{C=D<E?D:E}}}return C};Minglebox.window.adjustFrameHeight=function(C,B){var D=document.getElementById(C);if(D){D.style.height=B+"px"}};Minglebox.window.localAdjustHeight=function(){try{if(typeof window.parent._MB_AdjustIFrameHeight=="function"){window.parent._MB_AdjustIFrameHeight(window.name,Minglebox.window.getHeight());var C=window.setTimeout(function(){window.clearTimeout(C);window.parent._MB_AdjustIFrameHeight(window.name,Minglebox.window.getHeight())},2000)}}catch(B){}}}());var _MB_AdjustIFrameHeight=Minglebox.window.adjustFrameHeight;