document.write('<div name="mar1" id="mar1" style="display:none"><span style=\"float:left; display:inline; width:212px;\">·<a href=\"http://www.house365.com/news/html/200805/67596_1.htm\" title=\"5月，楼市的“机会之窗”？ 降价仍是卖点[05.07]\" class=\"a01\" target=\"_blank\">5月，楼市的“机会之窗”？</a>　</span><span style=\"float:left; display:inline; width:212px;\">·<a href=\"http://www.house365.com/news/html/200805/67576_1.htm\" title=\"开发商短期逐利,南京楼盘班车运营缘何难以为继[05.07]\" class=\"a01\" target=\"_blank\">南京楼盘班车运营缘何难以为继</a>　</span><span style=\"float:left; display:inline; width:212px;\">·<a href=\"http://www.house365.com/news/html/200805/67482_1.htm\" title=\"[柒拾捌院]与禄口空港一起增值[05.05]\" class=\"a01\" target=\"_blank\">[柒拾捌院]与禄口空港一起增值</a>　</span><span style=\"float:left; display:inline; width:212px;\">·<a href=\"http://www.house365.com/news/html/200805/67328_1.htm\" title=\"扬州住房公积金将向低收入家庭倾斜[05.02]\" class=\"a01\" target=\"_blank\">扬州公积金将向低收入家庭倾斜</a>　</span></div>');
document.write('<div name="mar2" id="mar2" style="display:none"><span style=\"float:left; display:inline; width:212px;\">·<a href=\"http://www.house365.com/news/html/200804/66653_1.htm\" title=\"售楼人员十大违规行为大曝光[04.19]\" class=\"a01\" target=\"_blank\">售楼人员十大违规行为大曝光</a>　</span><span style=\"float:left; display:inline; width:212px;\">·<a href=\"http://www.house365.com/news/html/200804/66615_1.htm\" title=\"温家宝宣布京沪高铁全线开工,宁南江宁添利好[04.18]\" class=\"a01\" target=\"_blank\">温家宝宣布京沪高铁全线开工</a>　</span><span style=\"float:left; display:inline; width:212px;\">·<a href=\"http://www.house365.com/news/html/200804/66562_1.htm\" title=\"南京1.3万名“售楼小姐”持证卖房[04.18]\" class=\"a01\" target=\"_blank\">南京1.3万名“售楼小姐”持证卖房</a>　</span></div>');

var i,j,marqueenumber=2;
var marqueeContent=new Array();

for(i=0; i<marqueenumber; i++){
	marqueeContent[i]=document.getElementById('mar'+(i+1)).innerHTML;
}

var marqueeInterval=new Array();
var marqueeId=0;
var marqueeDelay=6000;
var marqueeHeight=20;

function initMarquee(){
	var str=marqueeContent[0];
	document.write('<div id="marqueeBox" style="overflow:hidden;height:'+marqueeHeight+'px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\'startMarquee()\',marqueeDelay)"><div>'+str+'</div></div>');
	marqueeId++;
	marqueeInterval[0]=setInterval("startMarquee()",marqueeDelay);
}

function startMarquee(){
	var str=marqueeContent[marqueeId];
	marqueeId++;
	if(marqueeId>=marqueeContent.length) marqueeId=0;
	if(marqueeBox.childNodes.length==1){
		var nextLine=document.createElement('div');
		nextLine.innerHTML=str;
		marqueeBox.appendChild(nextLine);
	}
	else{
		marqueeBox.childNodes[0].innerHTML=str;
		marqueeBox.appendChild(marqueeBox.childNodes[0]);
		marqueeBox.scrollTop=0;
	}
	clearInterval(marqueeInterval[1]);
	marqueeInterval[1]=setInterval("scrollMarquee()",5);
}

function scrollMarquee(){
	marqueeBox.scrollTop++;
	if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-0)){
		clearInterval(marqueeInterval[1]);
	}
}

if(marqueenumber!=0) initMarquee();