// JavaScript Document
	document.ns = navigator.appName == "Netscape";
	var imgwidth=120;
	var imgheight=320;
	var ow;
	var pw=750;
	var sl;
	var t;
	var left;
	var right;
	var flag;
	
	function myload() {
		ow=document.body.offsetWidth;
		sl=document.body.scrollLeft;
	//	t=document.body.scrollTop +(document.body.offsetHeight - imgheight)/2;	
		t=document.body.scrollTop+30;
	//	if(t<300){
	//		t=300;	
	//	}
		
		flag=(ow/2-pw/2-imgwidth)/2;
		if(flag<0){
			left=sl;
			right=0;
		}else{
			left=flag;
			right=flag;
		}
		document.getElementById('left').style.top = t;
		document.getElementById('right').style.top = t;
		document.getElementById('left').style.left = left;		
		document.getElementById('right').style.right = right-10;
		mymove();
	}
	
	function mymove() {
		ow=document.body.offsetWidth;	
		sl=document.body.scrollLeft;
	//	t=document.body.scrollTop +(document.body.offsetHeight - imgheight)/2;
		t=document.body.scrollTop+30;	
	//	if(t<300){
	//		t=300;	
	//	}
		
		flag=(ow/2-pw/2-imgwidth)/2;
		
		if(flag<0){
			left=sl;
			right=0;
		}else{
			left=flag;
			right=flag;
		}
		document.getElementById('left').style.top = t;
		document.getElementById('right').style.top = t;
		document.getElementById('left').style.left = left;		
		document.getElementById('right').style.right = right-10;	
		setTimeout("mymove();", 50);
	}


	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
		if (init == true) {
			with (navigator) {
				if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
					document.MM_pgW = innerWidth;
					document.MM_pgH = innerHeight;
					onresize = MM_reloadPage;
				}
			}
		} else {
			if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) {
				location.reload();
			}
		}
	}
//--
//MM_reloadPage(true);

//	document.write('<div id="left" style="position:absolute;width:120;height:320px;top:380;visibility: visible;z-index: 1px;left:0px;">');
//	ad10();
//	document.write('</div>');
//	document.write('<div id="right" style="position:absolute;width:120;height:320px;top:380;visibility: visible;z-index: 1px;right:0px;">');
//	ad11();
//	document.write('</div>');
//	myload();

-->
	


function hide(name) {
	document.getElementById(name).style.display = "none";
}

function showe(name) {
	document.getElementById(name).style.display = "block";
}


function hide_duilian(){
 	hide('d_left');
 	hide('d_right');
}

function adShow(e,flag){
	if(flag){
		showe(e);
		setTimeout('adShow("'+e+'",false);',15000);
	}else{
		hide(e);
	}
}

function duilian(){
	document.getElementById('d_right').style.left = (document.body.offsetWidth+750)/2+(window.screen.width-document.body.offsetWidth)/2;
		setTimeout("duilian();", 50);	
}

var url=window.location.href;
function setLogo(){
	if(url.indexOf('sx')==-1){
		document.getElementById('logo_2').src='/images/3qhouse_2.gif';
	}	
}

function showHeadLine(){
	if(url.indexOf('sx')!=-1){
		document.getElementById('headline').style.display='block';
	}
}
