 
function webrequest(paras){ 
	var url = location.href;   
	var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");   
	var paraObj = {}   
	for (i=0; j=paraString[i]; i++){   
	paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf 
	("=")+1,j.length);   
	}   
	var returnValue = paraObj[paras.toLowerCase()];   
	if(typeof(returnValue)=="undefined"){   
	return "";   
	}else{   
	   return returnValue;   
	}   
} 
 function qie_huan(div,classn,classv)
{
	var msound='';
	
msound='<DIV align=center><img id="msound"  name="msound" src="tv_sound.gif" />';
msound+='<div id="get_sound" align="center">'
msound+='<object id="MediaPlayer1" width="360" height="70" '
msound+='classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" '
msound+='align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..."  type="application/x-oleobject">';
msound+='<param name="URL" value="tv_sound.wma">';
msound+='<param name="autoStart" value="true">';
msound+='<param name="invokeURLs" value="false">';
msound+='<param name="playCount" value="100">';
msound+='<param name="defaultFrame" value="datawindow">';                
msound+='<embed src="tv_sound.wma" align="baseline" border="0" width="400" height="70" ';
msound+='type="application/x-mplayer2"  pluginspage="" name="MediaPlayer1" showcontrols="1" ';
msound+='showpositioncontrols="0"  showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" '; 
msound+='autosize="0" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0"  animationatstart="0" ';
msound+='transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0"  defaultframe="datawindow" invokeurls="0"></embed>';
msound+='</object>';
msound+='</div></DIV>';
	
if(document.getElementById("w_flv").value=="")
{
  document.getElementById("w_flv").value= document.getElementById("shipin").innerHTML;
}
	
  document.getElementById("qh1").className="nav2";
  document.getElementById("qh2").className="nav2";
  document.getElementById("qh3").className="nav2";
  document.getElementById("qh4").className="nav3";
  document.getElementById("shipin").style.display="none";
  document.getElementById("quanjing").style.display="none";
  document.getElementById("baozhi").style.display="none";
  document.getElementById("diantai").style.display="none";
  document.getElementById(classn).className=classv;
  document.getElementById(div).style.display="";
  if(div=="shipin") 
  {
	  document.getElementById("shipin").innerHTML=document.getElementById("w_flv").value;
	  document.getElementById("diantai").innerHTML="";
  }
  else if(div=="diantai") 
  {
	  document.getElementById("shipin").innerHTML="";
	  document.getElementById("diantai").innerHTML=msound;
          document.getElementById("quanjing").innerHTML="";
  }
  else if(div=="quanjing") 
  {

          document.getElementById("quanjing").innerHTML='<embed id="pflash"  src="http://flv.yiyao.tv/class/'+document.getElementById("prourlvalue")+'/360.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"  type="application/x-shockwave-flash" width="360"  height="360"></embed>';
	  document.getElementById("shipin").innerHTML="";
	  document.getElementById("diantai").innerHTML="";
  }
  else
  {
	  document.getElementById("shipin").innerHTML="";
	  document.getElementById("diantai").innerHTML="";
         document.getElementById("quanjing").innerHTML="";
   }
  
  
 
}
 function qie_huan_bzh(url)
{
	 document.getElementById("qh1").className="nav2";
  document.getElementById("qh2").className="nav2";
  document.getElementById("qh3").className="nav2";
  document.getElementById("qh4").className="nav3";
  document.getElementById("shipin").style.display="none";
  document.getElementById("quanjing").style.display="";
  document.getElementById("baozhi").style.display="none";
  document.getElementById("diantai").style.display="none";
  document.getElementById("qh4").className="nav3_1";
  
  document.getElementById("quanjing").innerHTML='<embed id="pflash"  src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"  type="application/x-shockwave-flash" width="360"  height="360"></embed>';
	  document.getElementById("shipin").innerHTML="";
	  document.getElementById("diantai").innerHTML="";
 
}
 function qie_huan_diantai(url)
{
	 document.getElementById("qh1").className="nav2";
  document.getElementById("qh2").className="nav2";
  document.getElementById("qh3").className="nav2";
  document.getElementById("qh4").className="nav3";
  document.getElementById("shipin").style.display="none";
  document.getElementById("quanjing").style.display="none";
  document.getElementById("baozhi").style.display="none";
  document.getElementById("diantai").style.display="";
  document.getElementById("qh4").className="nav3_1";
  
  document.getElementById("quanjing").innerHTML="";
  document.getElementById("shipin").innerHTML="";
 // document.getElementById("diantai").innerHTML="";
  
  var msound='';
	
msound='<DIV align=center><img id="msound"  name="msound" src="http://flv.yiyao.tv/tv_sound.gif" />';
msound+='<div id="get_sound" align="center">'
msound+='<object id="MediaPlayer1" width="360" height="70" '
msound+='classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" '
msound+='align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..."  type="application/x-oleobject">';
msound+='<param name="URL" value="'+url+'">';
msound+='<param name="autoStart" value="true">';
msound+='<param name="invokeURLs" value="false">';
msound+='<param name="playCount" value="100">';
msound+='<param name="defaultFrame" value="datawindow">';                
msound+='<embed src="'+url+'" align="baseline" border="0" width="400" height="70" ';
msound+='type="application/x-mplayer2"  pluginspage="" name="MediaPlayer1" showcontrols="1" ';
msound+='showpositioncontrols="0"  showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" '; 
msound+='autosize="0" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0"  animationatstart="0" ';
msound+='transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0"  defaultframe="datawindow" invokeurls="0"></embed>';
msound+='</object>';
msound+='</div></DIV>';

  document.getElementById("diantai").innerHTML=msound;
 
}
 function showhidesmdiv(display) {
      if(display=="0") {
        document.getElementById("selectmerchant").style.display = "";
	//document.getElementsByTagName("select").BranchId.style.visibility="hidden";
      }
      if(display=="1") {
        document.getElementById("selectmerchant").style.display = "none";
	//document.getElementsByTagName("select").BranchId.style.visibility="";
      }
    }
function showpic_cy(picurl)
{
if(picurl!="")
{
  
  document.getElementById("imgcy").src=picurl;
  }
}

 function qiehuan(qids)
{
 for(var i=1;i<7;i++)
 {
  if(document.getElementById("qhdiv1_"+i)!=null)
{
  document.getElementById("qhdiv1_"+i).style.display='none';
}
  if(document.getElementById("qhdiv2_"+i)!=null)
{
  document.getElementById("qhdiv2_"+i).style.display='none';
}
 
 
 
}
 
 for(var i=1;i<7;i++)
 {
 
  if(document.getElementById("qhdiv"+qids+"_"+i)!=null)
{
  document.getElementById("qhdiv"+qids+"_"+i).style.display='';
}
 
}
}
 


 
