
function closearea() {
	cancel();
	document.getElementById('areadiv').style.visibility='hidden';
	document.getElementById('areadiv').style.display='none';
}

function showMenu2(m_ix) {
	str_div= get_div_html(m_ix);
	document.getElementById('telcontent').innerHTML=str_div;
}
function showMenu(m_ix) {
	var ix;
	var sel_ix=0;
	if(m_ix>0) {
		
	for(ix=1;ix<32;ix++) {
		if(ix==m_ix)  {
			if(document.getElementById('songkamenu'+ix).style.visibility!='visible') {
				
				document.getElementById('songkamenu'+ix).style.visibility='visible';
				document.getElementById('songkamenu'+ix).style.zIndex='999';
				document.getElementById('songkamenu'+ix).style.display='';	
				
			}
			sel_ix=ix;
		}
		else {
			if(document.getElementById('songkamenu'+ix).style.visibility=='visible') {
				document.getElementById('songkamenu'+ix).style.height='0px';
				document.getElementById('songkamenu'+ix).style.visibility='hidden';
				document.getElementById('songkamenu'+ix).style.display='none';
				
			}
		}
	}
}
	
}

function get_div_html(p_ix) {
 var str='';

//str+='            <div id=songkamenu'+p_ix+' name=songkamenu'+p_ix+' style="visibility:hidden;display:none;z-index:999;width:490px;"> ';
str+='              <table width="490" border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff align=center>'
str+='                <tr> <td  bgcolor=#ffffff >'
str+='              <table width="480" border=0 cellspacing=1 cellpadding=0 bgcolor=#cccccc align=center>'
str+='                <tr> <td  bgcolor=#ffffff >'
str+='              <table width="100%" border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff align=center>'
str+='                <tr> '
str+='                  <td width=10>&nbsp;</td><td  class=normaltext align=left><b>'+arrProvincename[p_ix]+'</b></td>'
str+='                </tr>'
str+='                <tr> '
str+='                  <td width=10>&nbsp;</td><td  class=normaltext align=left>'
str+=arrTel[p_ix];
str+='</td>'
str+='                </tr>'
str+='              </table>'
str+='</td>'
str+='                </tr>'
str+='              </table>'
str+='              </td></tr><tr><td height=3></td></tr></table>'
//str+='            </div>'
 return str 
}



function initarea() {
 	var str='';
str+='<table cellspacing=0 cellpadding=0 width="490" border=0 bgcolor=white align=center>'
str+=' <tr><td align=center height=5 bgcolor=white></td></tr>' 	
str+=' <tr><td align=center>' 	
 str+='<table cellspacing=1 cellpadding=0 width="480" bgcolor=#a5a5a5 '
str+='            border=0 align="center">'
str+='  <tbody> '
str+='  <tr align=middle bgcolor=#ffffff> '
str+='    <td valign="top" align="left" class="normaltext"> '
str+='      <table cellspacing=0 cellpadding=0 width="476" border=0 align="center" background="http://down.zhulong.com/tech/images/songka_title.gif" bgcolor="#777777" class="whitetxt" >'
str+='        <tbody> '
str+='        <tr> '
str+='          <td align=center width=20 height=36 valign=middle><img src="http://www.zhulong.com/images/11.gif" width="10" height="10"></td>'
str+='          <td valign=center width="406" '
str+='                  height=20><b><font color="#FFFFFF">买币很简单！已开通137个城市上门送卡服务，点击查询当地电话 </font></b></td>'
str+='          <td  valign=center width=50 '
str+='                height=20 align="center"></td>'
str+='        </tr>'

str+='        </tbody> '
str+='      </table>'
str+='      <table width="470" border="0" cellspacing="0" cellpadding="0" align="center" class="normaltext">'
str+='        <tr> '
str+='          <td class="normaltext"><b>主要城市：&nbsp;</b>'
for(ix=1;ix<=4;ix++) {
	str+='<span style="cursor:pointer" onMouseOver="this.style.color=\'#ff0000\'" onMouseOut="this.style.color=\'\'" onClick="javascript:showMenu2('+ix+')">'+arrProvincename[ix]+'</span>&nbsp;'
	if((ix % 11)==0)
		str+= "<br>"
}
str+='          </td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td class="normaltext"><b>华北-东北：</b>'
for(ix=5;ix<=10;ix++) {
	str+='<span style="cursor:pointer"  onMouseOver="this.style.color=\'#ff0000\'" onMouseOut="this.style.color=\'\'"  onClick="javascript:showMenu2('+ix+')">'+arrProvincename[ix]+'</span>&nbsp;'
	if((ix % 11)==1110)
		str+= "<br>"
}
str+='          </td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td class="normaltext"><b>华东地区：&nbsp;</b>'
for(ix=11;ix<=16;ix++) {
	str+='<span style="cursor:pointer"  onMouseOver="this.style.color=\'#ff0000\'" onMouseOut="this.style.color=\'\'"  onClick="javascript:showMenu2('+ix+')">'+arrProvincename[ix]+'</span>&nbsp;'
	if((ix % 11)==1110)
		str+= "<br>"
}
str+='          </td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td class="normaltext"><b>华南-华中：</b>'
for(ix=17;ix<=22;ix++) {
	str+='<span style="cursor:pointer"  onMouseOver="this.style.color=\'#ff0000\'" onMouseOut="this.style.color=\'\'"  onClick="javascript:showMenu2('+ix+')">'+arrProvincename[ix]+'</span>&nbsp;'
	if((ix % 11)==1110)
		str+= "<br>"
}
str+='          </td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td class="normaltext"><b>西北-西南：</b>'
for(ix=23;ix<=31;ix++) {
	str+='<span style="cursor:pointer"  onMouseOver="this.style.color=\'#ff0000\'" onMouseOut="this.style.color=\'\'"  onClick="javascript:showMenu2('+ix+')">'+arrProvincename[ix]+'</span>&nbsp;'
	if((ix % 11)==1110)
		str+= "<br>"
}
str+='          </td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td>[<a href="http://www.zhulong.com/help/help4_5622112.html" target=_blank>各地销售点详情</a>] <a href="http://www.zhulong.com/help/help4_5613399.html" target=_blank>[用神州行充值卡购买筑龙币]</a> <a href="http://www.zhulong.com/help/help4_5612570.html" target=_blank>[网上银行购买]</a> <a href="http://www.zhulong.com/help/help1_5613472.html" target=_blank>[更多购卡方式]</a></td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td>咨询电话：4006789212(<font color=red>免长途费</font>) 010-88362233-818/816</td>'
str+='        </tr>'
str+='        '
str+='        </table>'
str+='        '
str+='      '
str+='      <table height=6 cellspacing=0 cellpadding=0 width="100%" border=0>'
str+='        <tbody> '
str+='        <tr> '
str+='          <td></td>'
str+='        </tr>'
str+='        </tbody> '
str+='      </table>'
str+='    </td>'
str+='  </tr>'
str+='  </tbody> '
str+='</table>'

str+='<table width="490" border="0" cellspacing="0" cellpadding="0" align="center" class="normaltext" bgcolor=#ffffff>'
str+='        <tr> '
str+='          <td bgcolor=white height=3></td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td align=center><div id=telcontent></div>'

str+='            '
str+='          </td>'
str+='        </tr>'
str+='        <tr> '
str+='          <td bgcolor=white height=3></td>'
str+='        </tr>'
str+='      </table></td></tr></table>';
	return str;
}




