var FFextraHeight = 0;
 if(window.navigator.userAgent.indexOf("Firefox")>=1)
 {
  FFextraHeight = 16;
  }
 function ReSizeiFrame(iframe)
 {
   if(iframe && !window.opera)
   {
     iframe.style.display = "block";
      if(iframe.contentDocument && iframe.contentDocument.body.offsetHeight)
      {
        iframe.height = iframe.contentDocument.body.offsetHeight + FFextraHeight;

      }
      else if (iframe.Document && iframe.Document.body.scrollHeight)
      {
        iframe.height = iframe.Document.body.scrollHeight;

        //alert(iframe.Document.body.scrollHeight);
      }
   }
 }

<!--首页调用-->
function buttonclick(para){
if (para=='1'){
document.getElementById('checkbutton1').style.background='url(/images/first2.gif)';
document.getElementById('buttonpic1').src="/images/first1.gif";
document.getElementById('checkbutton1').style.color='#ffffff';
document.getElementById('checkbutton2').style.background='url(/images/first3.gif)';
document.getElementById('buttonpic2').src="/images/first3.gif";
document.getElementById('checkbutton2').style.color='#5A5A5A';
document.getElementById('part1').style.display='block';
document.getElementById('part1').style.visibility='visible';
document.getElementById('part2').style.display='none';
document.getElementById('part2').style.visibility='hidden';
}else{
document.getElementById('checkbutton1').style.background='url(/images/first3.gif)';
document.getElementById('buttonpic1').src="/images/first5.gif";
document.getElementById('checkbutton1').style.color='#5A5A5A';

document.getElementById('checkbutton2').style.background='url(/images/first2.gif)';
document.getElementById('buttonpic2').src="/images/first2.gif";
document.getElementById('checkbutton2').style.color='#ffffff';
document.getElementById('part2').style.display='block';
document.getElementById('part2').style.visibility='visible';
document.getElementById('part1').style.display='none';
document.getElementById('part1').style.visibility='hidden';
}
}
<!--调用完毕-->
function showpppp1(){
document.getElementById('pppp1').style.border="1px solid #FE8802";
document.getElementById('pppp1').style.background="#FFFAE7";
}
function hiddpppp1(){
document.getElementById('pppp1').style.border="1px solid #F4F8FC";
document.getElementById('pppp1').style.background="#F4F8FC";
}

function showpppp3(){
document.getElementById('pppp3').style.border="1px solid #FE8802";
document.getElementById('pppp3').style.background="#FFFAE7";
}
function hiddpppp3(){
document.getElementById('pppp3').style.border="1px solid #F4F8FC";
document.getElementById('pppp3').style.background="#F4F8FC";
}
function showpppp4(){
document.getElementById('pppp4').style.border="1px solid #FE8802";
document.getElementById('pppp4').style.background="#FFFAE7";
}
function hiddpppp4(){
document.getElementById('pppp4').style.border="1px solid #F4F8FC";
document.getElementById('pppp4').style.background="#F4F8FC";
}
function showpppp6(){
document.getElementById('pppp6').style.border="1px solid #FE8802";
document.getElementById('pppp6').style.background="#FFFAE7";
}
function hiddpppp6(){
document.getElementById('pppp6').style.border="1px solid #F4F8FC";
document.getElementById('pppp6').style.background="#F4F8FC";
}


function showpppp2(){
document.getElementById('pppp2').style.border="1px solid #70A41A";
document.getElementById('pppp2').style.background="#F0FDDF";
}
function hiddpppp2(){
document.getElementById('pppp2').style.border="1px solid #ffffff";
document.getElementById('pppp2').style.background="#ffffff";
}
function showpppp5(){
document.getElementById('pppp5').style.border="1px solid #70A41A";
document.getElementById('pppp5').style.background="#F0FDDF";
}
function hiddpppp5(){
document.getElementById('pppp5').style.border="1px solid #ffffff";
document.getElementById('pppp5').style.background="#ffffff";
}
 
function showmenu1(){
document.getElementById('menu1').style.background='url(/images/2f.gif)';
document.getElementById('menu1').style.fontWeight='bold';
document.getElementById('menu1').style.fontSize=14+'px';
document.getElementById('menu2').style.background='url(/images/2ff.gif)';
document.getElementById('menu2').style.fontWeight='normal';
document.getElementById('menu2').style.fontSize=12+'px';
document.getElementById('menu3').style.background='url(/images/2ff.gif)';
document.getElementById('menu3').style.fontWeight='normal';
document.getElementById('menu3').style.fontSize=12+'px';
document.getElementById('menu4').style.background='url(/images/2ff.gif)';
document.getElementById('menu4').style.fontWeight='normal';
document.getElementById('menu4').style.fontSize=12+'px';
document.getElementById('menu5').style.background='url(/images/2ff.gif)';
document.getElementById('menu5').style.fontWeight='normal';
document.getElementById('menu5').style.fontSize=12+'px';
document.getElementById('showdiv1').style.display='block';
document.getElementById('showdiv1').style.visibility='visible';
document.getElementById('showdiv2').style.display='none';
document.getElementById('showdiv2').style.visibility='hidden';
document.getElementById('showdiv3').style.display='none';
document.getElementById('showdiv3').style.visibility='hidden';
document.getElementById('showdiv4').style.display='none';
document.getElementById('showdiv4').style.visibility='hidden';
document.getElementById('showdiv5').style.display='none';
document.getElementById('showdiv5').style.visibility='hidden';
}
function showmenu2(){
document.getElementById('menu2').style.background='url(/images/2f.gif)';
document.getElementById('menu2').style.fontWeight='bold';
document.getElementById('menu2').style.fontSize=14+'px';
document.getElementById('menu1').style.background='url(/images/2ff.gif)';
document.getElementById('menu1').style.fontWeight='normal';
document.getElementById('menu1').style.fontSize=12+'px';
document.getElementById('menu3').style.background='url(/images/2ff.gif)';
document.getElementById('menu3').style.fontWeight='normal';
document.getElementById('menu3').style.fontSize=12+'px';
document.getElementById('menu4').style.background='url(/images/2ff.gif)';
document.getElementById('menu4').style.fontWeight='normal';
document.getElementById('menu4').style.fontSize=12+'px';
document.getElementById('menu5').style.background='url(/images/2ff.gif)';
document.getElementById('menu5').style.fontWeight='normal';
document.getElementById('menu5').style.fontSize=12+'px';
document.getElementById('showdiv2').style.display='block';
document.getElementById('showdiv2').style.visibility='visible';
document.getElementById('showdiv2').style.height=100+'%';
document.getElementById('showdiv1').style.display='none';
document.getElementById('showdiv1').style.visibility='hidden';
document.getElementById('showdiv3').style.display='none';
document.getElementById('showdiv3').style.visibility='hidden';
document.getElementById('showdiv4').style.display='none';
document.getElementById('showdiv4').style.visibility='hidden';
document.getElementById('showdiv5').style.display='none';
document.getElementById('showdiv5').style.visibility='hidden';
}
function showmenu3(){
document.getElementById('menu3').style.background='url(/images/2f.gif)';
document.getElementById('menu3').style.fontWeight='bold';
document.getElementById('menu3').style.fontSize=14+'px';
document.getElementById('menu2').style.background='url(/images/2ff.gif)';
document.getElementById('menu2').style.fontWeight='normal';
document.getElementById('menu2').style.fontSize=12+'px';
document.getElementById('menu1').style.background='url(/images/2ff.gif)';
document.getElementById('menu1').style.fontWeight='normal';
document.getElementById('menu1').style.fontSize=12+'px';
document.getElementById('menu4').style.background='url(/images/2ff.gif)';
document.getElementById('menu4').style.fontWeight='normal';
document.getElementById('menu4').style.fontSize=12+'px';
document.getElementById('menu5').style.background='url(/images/2ff.gif)';
document.getElementById('menu5').style.fontWeight='normal';
document.getElementById('menu5').style.fontSize=12+'px';
document.getElementById('showdiv3').style.display='block';
document.getElementById('showdiv3').style.visibility='visible';
document.getElementById('showdiv2').style.display='none';
document.getElementById('showdiv2').style.visibility='hidden';
document.getElementById('showdiv1').style.display='none';
document.getElementById('showdiv1').style.visibility='hidden';
document.getElementById('showdiv4').style.display='none';
document.getElementById('showdiv4').style.visibility='hidden';
document.getElementById('showdiv5').style.display='none';
document.getElementById('showdiv5').style.visibility='hidden';
}
function showmenu4(){
document.getElementById('menu4').style.background='url(/images/2f.gif)';
document.getElementById('menu4').style.fontWeight='bold';
document.getElementById('menu4').style.fontSize=14+'px';
document.getElementById('menu2').style.background='url(/images/2ff.gif)';
document.getElementById('menu2').style.fontWeight='normal';
document.getElementById('menu2').style.fontSize=12+'px';
document.getElementById('menu3').style.background='url(/images/2ff.gif)';
document.getElementById('menu3').style.fontWeight='normal';
document.getElementById('menu3').style.fontSize=12+'px';
document.getElementById('menu5').style.background='url(/images/2ff.gif)';
document.getElementById('menu5').style.fontWeight='normal';
document.getElementById('menu5').style.fontSize=12+'px';
document.getElementById('menu1').style.background='url(/images/2ff.gif)';
document.getElementById('menu1').style.fontWeight='normal';
document.getElementById('menu1').style.fontSize=12+'px';
document.getElementById('showdiv4').style.display='block';
document.getElementById('showdiv4').style.visibility='visible';
document.getElementById('showdiv4').style.height=100+'%';
document.getElementById('showdiv2').style.display='none';
document.getElementById('showdiv2').style.visibility='hidden';
document.getElementById('showdiv3').style.display='none';
document.getElementById('showdiv3').style.visibility='hidden';
document.getElementById('showdiv1').style.display='none';
document.getElementById('showdiv1').style.visibility='hidden';
document.getElementById('showdiv5').style.display='none';
document.getElementById('showdiv5').style.visibility='hidden';
}

function showmenu5(){
document.getElementById('menu5').style.background='url(/images/2f.gif)';
document.getElementById('menu5').style.fontWeight='bold';
document.getElementById('menu5').style.fontSize=14+'px';
document.getElementById('menu2').style.background='url(/images/2ff.gif)';
document.getElementById('menu2').style.fontWeight='normal';
document.getElementById('menu2').style.fontSize=12+'px';
document.getElementById('menu3').style.background='url(/images/2ff.gif)';
document.getElementById('menu3').style.fontWeight='normal';
document.getElementById('menu3').style.fontSize=12+'px';
document.getElementById('menu4').style.background='url(/images/2ff.gif)';
document.getElementById('menu4').style.fontWeight='normal';
document.getElementById('menu4').style.fontSize=12+'px';
document.getElementById('menu1').style.background='url(/images/2ff.gif)';
document.getElementById('menu1').style.fontWeight='normal';
document.getElementById('menu1').style.fontSize=12+'px';

document.getElementById('showdiv5').style.display='block';
document.getElementById('showdiv5').style.visibility='visible';
///document.getElementById('showdiv5').style.height=100+'%';
document.getElementById('showdiv2').style.display='none';
document.getElementById('showdiv2').style.visibility='hidden';
document.getElementById('showdiv4').style.display='none';
document.getElementById('showdiv4').style.visibility='hidden';
document.getElementById('showdiv3').style.display='none';
document.getElementById('showdiv3').style.visibility='hidden';
document.getElementById('showdiv1').style.display='none';
document.getElementById('showdiv1').style.visibility='hidden';

}

function mouseenter(idb){
var cc=idb.id
document.getElementById(cc).style.background='#ffffff';
document.getElementById(cc).style.height='100%';
document.getElementById(cc+'set').style.background='#727272';
document.getElementById(cc+'back').style.background='#727272';
document.getElementById(cc+'back').style.borderBottom="2px solid #FD682F";
document.getElementById(cc+'back').style.borderTop="2px solid #FD682F";
document.getElementById(cc+'back').style.borderRight="2px solid #FD682F";
if (cc=='u1'){
document.getElementById('yuyu').scrollTop=document.getElementById('yuyu').scrollHeight;
}
}


function mouseleave(idb){
var cc=idb.id
document.getElementById(cc).style.background='#E6E6E6';
document.getElementById(cc).style.height=22+'px';
document.getElementById(cc+'set').style.background='#666666';
document.getElementById(cc+'back').style.background='#666666';
document.getElementById(cc+'back').style.borderBottom="0px solid #B1B1B1";
document.getElementById(cc+'back').style.borderTop="0px solid #B1B1B1";
document.getElementById(cc+'back').style.borderRight="0px solid #B1B1B1";
}
function emailclick(){
	document.getElementById("email1").value='';
	}
function t_value()
{
	
	if (document.getElementById("searchText").value=='')
	{
		document.getElementById("searchText").value='请输入关键字..';
	}


} 

//**检测浏览器种类//////的*****
var BROWSERNAME="";
switch(navigator.appName.toLowerCase()){
 case "netscape":
  BROWSERNAME="ns";
 break;
 case "microsoft internet explorer":
 default:
  BROWSERNAME="ie";
 break;
}

//**设置初始化事件******
switch(BROWSERNAME){
 case "ns":
  window.addEventListener("load",_xScrollStick_init,false);
 break;
 case "ie":
 default:
  window.attachEvent("onload",_xScrollStick_init);
}

//**初始化函数******
function _xScrollStick_init(){
 if (document.getElementById('dd22')){
	_xScrollStick_event_doInit(document.getElementById('dd22'));
	 window_event_scroll();
 }
 if (document.getElementById('showpan')){
	_xScrollStick_event_doInit(document.getElementById('showpan'));
	 window_event_scroll();
 }
}

//**事件响应函数区******
function _xScrollStick_event_doInit(element){
 //初始化变量
 element.offX=element.offsetLeft;
 element.offY=element.offsetTop;
 
 //设置方法
 element.Stick=_xScrollStick_method_Stick;
 
 //设置事件
 switch(BROWSERNAME){
  case "ns":
   window.addEventListener("scroll",window_event_scroll,false);
  break;
  case "ie":
  default:
   window.attachEvent("onscroll",window_event_scroll);
 }
 document.body.parentNode.onscroll=window_event_scroll;
}

function window_event_scroll(){
if (document.getElementById('dd22')){
try{document.getElementById('dd22').Stick();}
catch(e){}
 }
if (document.getElementById('showpan')){
try{document.getElementById('showpan').Stick();}
catch(e){}
 }
 
}

//**方法函数区******
function _xScrollStick_method_Stick(){
 var x=this.offX, y=this.offY, po=this,cc=(document.body.offsetWidth)-12;
 this.style.position="absolute";
 x+=document.body.parentNode.scrollLeft;
 y+=document.body.parentNode.scrollTop;
	if (document.getElementById('dd22')){
	 this.style.left=cc+"px";
	 this.style.top=y+"px";}
	if (document.getElementById('showpan')){
	 this.style.left=cc-160+"px";
	 this.style.top=y+"px";}
}

function resizeok(){
var cc=(document.body.offsetWidth);
document.getElementById('dd22').style.Left=cc+'px';
	if (document.getElementById('showpan')){
	document.getElementById('dd22').style.Left=cc-160+"px";
	document.getElementById('dd22').style.Top=y+"px";
	}
}

function changekey(){
if (document.getElementById("searchText").value=='请输入关键字..'){
	document.getElementById("searchText").value='';}
}

function showfen12345()
{
        document.getElementById("fen12345").style.visibility="visible";
		//document.getElementById("uuuuu1").style.visibility="hidden";
		//document.getElementById("uuuuu2").style.visibility="hidden";
}

function hiddenfen12345()
{
        document.getElementById("fen12345").style.visibility="hidden";
		//document.getElementById("uuuuu1").style.visibility="visible";
		//document.getElementById("uuuuu2").style.visibility="visible";
}


function sousuo()
{
if(document.getElementById("searchText").value=="")
{
	alert("请输入关键字");
//document.getElementById("searchText").onFocus()
}
else
{
  document.form1.submit()
}
}
<!---->
   function showshangjia()
    {
		document.getElementById("shangjia").style.display="block";
        document.getElementById("shangjia").style.visibility="visible";
		
		document.getElementById("pp1").style.display="block";
        document.getElementById("pp1").style.visibility="visible";
		document.getElementById("pp2").style.display="none";
        document.getElementById("pp2").style.visibility="hidden";
		//document.getElementById("pingpai").style.display="none";
		//document.getElementById("pingpai").style.visibility="hidden";
		document.getElementById("chanpin").style.display="none";		
		document.getElementById("chanpin").style.visibility="hidden";
		document.getElementById("one").style.background='url(/images/typebtn_01.gif)';
		document.getElementById("one").style.color='#ffffff';
		document.getElementById("one").style.fontWeight="bold";
		
		document.getElementById("two").style.background='url(/images/typebtn_02.gif)';
		document.getElementById("two").style.color='#808080';
		document.getElementById("two").style.fontWeight="normal";
		document.getElementById("three").style.background='url(/images/typebtn_02.gif)';
		document.getElementById("three").style.color='#808080';
		document.getElementById("three").style.fontWeight="normal";

    }
    function showpingpai()
    {
		//document.getElementById("pingpai").style.display="block";
       // document.getElementById("pingpai").style.visibility="visible";
		document.getElementById("shangjia").style.display="none";
		document.getElementById("shangjia").style.visibility="hidden";
		document.getElementById("chanpin").style.display="none";		
		document.getElementById("chanpin").style.visibility="hidden";
		document.getElementById("two").style.background='url(/images/typebtn_01.gif)';
		document.getElementById("two").style.color='#ffffff';
		document.getElementById("two").style.fontWeight="bold";
		
		document.getElementById("one").style.background='url(/images/typebtn_02.gif)';
		document.getElementById("one").style.color='#808080';
		document.getElementById("one").style.fontWeight="normal";
		document.getElementById("three").style.background='url(/images/typebtn_02.gif)';
		document.getElementById("three").style.color='#808080';
		document.getElementById("three").style.fontWeight="normal";
    }
    function showchanpin()
    {
		document.getElementById("chanpin").style.display="block";
        document.getElementById("chanpin").style.visibility="visible";
		document.getElementById("shangjia").style.display="none";
		document.getElementById("shangjia").style.visibility="hidden";
		
		document.getElementById("pp2").style.display="block";
        document.getElementById("pp2").style.visibility="visible";
		document.getElementById("pp1").style.display="none";
        document.getElementById("pp1").style.visibility="hidden";
		//document.getElementById("pingpai").style.display="none";		
		//document.getElementById("pingpai").style.visibility="hidden";
		document.getElementById("three").style.background='url(/images/typebtn_01.gif)';
		document.getElementById("three").style.color='#ffffff';
		document.getElementById("three").style.fontWeight="bold";
		
		document.getElementById("one").style.background='url(/images/typebtn_02.gif)';
		document.getElementById("one").style.color='#808080';
		document.getElementById("one").style.fontWeight="normal";
		document.getElementById("two").style.background='url(/images/typebtn_02.gif)';
		document.getElementById("two").style.color='#808080';
		document.getElementById("two").style.fontWeight="normal";
    }
    function showcity(){		
	document.getElementById("citylist").style.display="block";
    document.getElementById("citylist").style.visibility="visible";
	document.getElementById("typelist").style.display="none";
    document.getElementById("typelist").style.visibility="hidden";

	document.getElementById("cityone").style.display="block";
    document.getElementById("cityone").style.visibility="visible";
	
	document.getElementById("shanglist1").style.display="none";
    document.getElementById("shanglist1").style.visibility="hidden";
		
	document.getElementById("picture1").src="/images/show6.gif";
	document.getElementById("picture2").src="/images/show7.gif";
	
	}
	function showtype(){		
	document.getElementById("citylist").style.display="none";
    document.getElementById("citylist").style.visibility="hidden";
	document.getElementById("typelist").style.display="block";
    document.getElementById("typelist").style.visibility="visible";
	
	document.getElementById("shanglist1").style.display="block";
    document.getElementById("shanglist1").style.visibility="visible";
	
	document.getElementById("cityone").style.display="none";
    document.getElementById("cityone").style.visibility="hidden";
	
	document.getElementById("picture1").src="/images/show4.gif";
	document.getElementById("picture2").src="/images/show5.gif";
	}
	
<!-->
function t_value()
{
	
	if (document.getElementById("searchText").value=='')
	{
		document.getElementById("searchText").value='请输入要比价产品关键字..';
	}


} 
function table_display(value)
{

 document.getElementById(value).style.display='block';
  var b=value.substr(5,1);

 for(i=1;i<=6;i++)
 {
   if(i!=b)
   {
 	document.getElementById("table"+i).style.display='none';
   }
	
	
 }
 
}
function table_display2(value)
{

 document.getElementById(value).style.display='block';
  var b=value.substr(6,1);

 for(i=1;i<=6;i++)
 {
   if(i!=b)
   {
 	document.getElementById("table0"+i).style.display='none';
   }
	
	
 }
 
}


function changekey(){
if (document.getElementById("searchText").value=='请输入要比价产品关键字..'){
document.getElementById("searchText").value='';}
}

var tipimg="http://www.yicike.com/images/showpp.gif";
function resizeok(obj){
var obj=document.getElementById('class036');
var cc=(document.body.offsetWidth)-10;
document.getElementById('dd22').style.Left=cc+'px';


}


function ImgPlayTip(obj)
{   var obj=document.getElementById('class036');
    if(!obj)return;
    var t=new Image();
    t.src=tipimg;
    t.style.position="absolute";
    t.style.display="none";
	 if(window.navigator.userAgent.indexOf("Firefox")>=1){
		 t.style.left=(document.body.scrollWidth-975)/2+626+'px'
	}else{
			 t.style.left=(document.body.scrollWidth-975)/2+626+'px'
		}
    t.style.top=317+'px';
	t.style.display='block';
    document.body.appendChild(t);//在页面中加入tip图片

}

function cshow(btc)
{
for (var k=1;k<15;k++){
document.getElementById('bbyy'+k).style.display='none';
document.getElementById('bbyy'+k).style.visibility='hidden';
document.getElementById('yypop'+k+'01').style.background='url(/images/more02.gif)';
document.getElementById('yypop'+k+'02').src="/images/more01.gif";
document.getElementById('yypop'+k+'03').src="/images/more03.gif";



}
document.getElementById('bbyy'+btc).style.display='block';
document.getElementById('bbyy'+btc).style.visibility='visible';
document.getElementById('yypop'+btc+'01').style.background='url(/images/more05.gif)';
document.getElementById('yypop'+btc+'02').src="/images/more06.gif";
document.getElementById('yypop'+btc+'03').src="/images/more04.gif";
}
function ResumeError() { return true; }



