﻿function openDiv(num){var cLc=3;document.getElementById("Div_"+num).style.display="";document.getElementById("Div"+num).className="qhnav1";document.getElementById("LinkMore"+num).style.display="";for(var i=1;i<=cLc;i++){if(i!=num){document.getElementById("Div_"+i).style.display="none";document.getElementById("Div"+i).className="qhnav2";document.getElementById("LinkMore"+i).style.display="none";}}}
function LoadFrame(frameName)
{OpenWindow=document.getElementById(frameName).contentWindow;if(navigator.userAgent.indexOf("Firefox")>0)
{setTimeout(function(){document.getElementById(frameName).style.height=OpenWindow.document.body.scrollHeight+"px";},50);}
else
{document.getElementById(frameName).style.height=OpenWindow.document.body.scrollHeight+"px";}}
function changezoushi(areaid,city,num)
{imgZouShi.src="http://housing.jinti.com/aspx/zoushi/"+areaid+".jpg";var cityname=document.getElementById("cityName");cityname.innerHTML=city;var n=parseInt(num);for(var i=1;i<=6;i++)
{var hlcity=document.getElementById("hlCity"+i);if(i==n)
{hlcity.style.color="#ff0000";}else{hlcity.style.color="";}}}
function CCMO()
{if(parent.stc1)
{parent.stc1.multi_over(2);parent.window.scroll(0,-1200);}}
var flag=false;function DrawImage(ImgD,intw,inth){var image=new Image();image.src=ImgD.src;if(image.width>0&&image.height>0){flag=true;if(image.width/image.height>=intw/inth){if(image.width>intw){ImgD.width=intw;ImgD.height=(image.height*intw)/image.width;}else{ImgD.width=image.width;ImgD.height=image.height;}
ImgD.alt=image.width+"×"+image.height;}
else{if(image.height>inth){ImgD.height=inth;ImgD.width=(inth.width*inth)/image.height;}else{ImgD.width=image.width;ImgD.height=image.height;}
ImgD.alt=image.width+"×"+image.height;}}}
function LoadFrame(frameName)
{OpenWindow=document.getElementById(frameName).contentWindow;if(navigator.userAgent.indexOf("Firefox")>0)
{setTimeout(function(){document.getElementById(frameName).style.height=OpenWindow.document.body.scrollHeight+"px";},50);}
else
{document.getElementById(frameName).style.height=OpenWindow.document.body.scrollHeight+"px";}}
function closeDoubleBanner(){
try{
	document.getElementById("adleft").style.display = "none";
	document.getElementById("adright").style.display = "none";
	}catch(err){ }
}
function dlposition(){
try{
	if(navigator.userAgent.indexOf("Chrome")!=-1){
		document.getElementById("adleft").style.top = document.body.scrollTop + 115 + "px";
		document.getElementById("adright").style.top = document.body.scrollTop + 115 + "px";
	}else{
		document.getElementById("adleft").style.top = document.documentElement.scrollTop + 115 + "px";
		document.getElementById("adright").style.top = document.documentElement.scrollTop + 115 + "px";
	}
		}catch(err){ }
}
function duilian(){
     if (window.screen.width > 1170) 
       { 
          document.getElementById("adleft").style.display = ""; 
          document.getElementById("adright").style.display = ""; 
       } 
     else 
       { 
          document.getElementById("adleft").style.display = "none"; 
          document.getElementById("adright").style.display = "none"; 
       } 
    

	var dlInt = setInterval(dlposition,20);
}
