var min_width_iframe = 690; var min_height_iframe = 311; var min_size_apply = 0; function set_min_size(width, height) { min_width_iframe = width; min_height_iframe = height; min_size_apply = 1; } function p_resizeiframe(name) { try { if (eval('parent.'+name+' == null')) { if(parent && parent != this && parent.resizeiframe != null) parent.resizeiframe('bd_body'); } else { if(parent && parent != this && parent.resizeiframe != null) { parent.resizeiframe(name); } } } catch (e) { } } function resizeiframe(name) { try { var oBody = document.frames(name).document.body; var oFrame = document.getElementById(name); var i_height = oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight); var i_width = oBody.scrollWidth + (oBody.offsetWidth-oBody.clientWidth); if(min_size_apply) { if(i_height < min_height_iframe) { i_height = min_height_iframe; } if(i_width < min_width_iframe) { i_width = min_width_iframe; } } oFrame.style.height = i_height; } catch(e) { //window.status = 'Error: ' + e.number + '; ' + e.description; + '; '+ name } } try { document.domain = 'sayclub.com'; //document.domain = 'game.pmang.com'; } catch (e) { try { document.domain = "pmang.com"; } catch (e) { } }