var DEF_W_HEIGHT="650";DEF_W_WIDTH="100%";DEF_TOP_HEIGHT="60";DEF_LEFT_WIDTH="25%";DEF_MAIN_WIDTH="75%";
try{void (W_Height);void (W_Width);void (Top_Height);void (Left_Width);void (Main_Width);}catch(e){
  W_Height=DEF_W_HEIGHT;W_Width=DEF_W_WIDTH;Top_Height=DEF_TOP_HEIGHT;Left_Width=DEF_LEFT_WIDTH;Main_Width=DEF_MAIN_WIDTH;}

if(isNaN(W_Height)) {W_Height=DEF_W_HEIGHT;}if(isNaN(W_Width)) {W_Width=DEF_W_WIDTH;}if(isNaN(Top_Height)) {Top_Height=DEF_TOP_HEIGHT;}if(isNaN(Left_Width)) {Left_Width=DEF_LEFT_WIDTH;}if(isNaN(Main_Width)) {Main_Width=DEF_MAIN_WIDTH;}
var Main_Width=W_Width-Left_Width;//主窗口节目表的宽度

//custom radio
var DEF_AREA_ID="CCTV";
try{void (Area_ID)}catch(e){Area_ID=DEF_AREA_ID;}
var s = '<table border=0 height="'+W_Height+'" width="'+W_Width+'" cellspacing=0 cellpadding=0 class=bordd1><tr>';
s += '<td colspan=2 height='+Top_Height+'><iframe width="98%" style="margin-top:0px;margin-left:0px;padding-left:2px;" height="100%" marginheight=0 frameborder=0 scrolling=no id=a_frame name=a_frame src="http://www.tvmao.com/ext/a.html"></iframe></td>';
s += '</tr><tr>';
s += '<td width='+Left_Width+' valign=top><iframe width="100%" height="630" marginheight=0 frameborder=0 scrolling=auto id=r_frame name=r_frame src="http://www.tvmao.com/ext/r.jsp?a='+Area_ID+'"></iframe></td>';
s += '<td width='+Main_Width+' valign=top><iframe width="100%" height="630" marginheight=0 frameborder=0 scrolling=auto id=p_frame name=main_frame src="http://www.tvmao.com/ext/show_tv.jsp?a='+Area_ID+'"></iframe></td>';
s += '</tr></table>';

document.write(s);
