var arrhostname=document.location.hostname.split(".");if(arrhostname[arrhostname.length-1].length>2)document.domain=arrhostname[arrhostname.length-2]+"."+arrhostname[arrhostname.length-1];else document.domain=arrhostname[arrhostname.length-3]+"."+arrhostname[arrhostname.length-2]+"."+arrhostname[arrhostname.length-1];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(name1){if(eval("parent."+name1+" == null")){if(top&&top!=this&&top.resizeframe_board&&eval("top."+name1))top.resizeframe_board(name1);if(parent&&parent!=this&&parent.resizeiframe!=null)parent.resizeiframe("bd_body")}else if(parent&&parent!=this&&parent.resizeiframe!=null)parent.resizeiframe(name1)}
function resizeiframe(name1){if(name1==null||name1=="")name1="memo";try{var oBody=$.browser.msie?document.frames(name1).document.body:document.frames(name1).document.documentElement;var oFrame=document.all(name1);if(name1=="SAYCARTOON"||name1=="CPMOVIE")oFrame.style.height=800;var i_height=oBody.scrollHeight;var i_width=oBody.scrollWidth;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;if(name1!=
"SAYCARTOON"||name1!="CPMOVIE")oFrame.style.width=i_width;if(i_width>625){if(typeof tbl_navigation!="object")return;var table_nav=document.all("tbl_navigation");var table_main=document.all("tbl_main");var table_top=document.all("tbl_top");var table_menu=document.all("tbl_menu");var main_width=Number(table_menu.width)+i_width;table_nav.style.width=main_width+"px";table_top.style.width=main_width+"px";table_main.style.width=main_width+"px"}}catch(e){window.status="Error: "+e.number+"; "+e.description}}
function resizeframe_board(name1){var oBody=$.browser.msie?document.frames(name1).frames("bd_body").document.body:document.frames(name1).frames("bd_body").document.documentElement;var oFrame=document.all(name1);var i_height=oBody.scrollHeight;var i_width=oBody.scrollWidth;oFrame.style.height=i_height+1+"px";oFrame.style.width=i_width+"px"};
