var path = "";
function initPath()
{
	path = document.getElementById("path").value;
}
//截取时间字段
function formatDates(str)
{
 	return str.length >16 ? str.substring(0,16) : str;
}
//截取时间字段
function formatDatesLuxury(str)
{
 	return str.length >10 ? str.substring(0,10) : str;
}
 //根据文章标题关键字搜索
function queryFinance()
{
	var title = document.getElementById("financeTitle").value;
	if(title == "" || title == "请输入搜索文章标题...")
	{
		getScreenByStatus("jsAddScreenInfo","info","","","","","");
    	showScreen("","ScreenInForss","promptBoxInForss",null,260,20);
	 	document.getElementById("p_content").innerHTML="请输入搜索关键字！";
	}
	else
	{
		window.location.href=""+path+"/p/luxuryList.html?queryTitle="+encodeURI(title); 
	}
}

//*********************luxuryIndex
function rightFalsh(num)
{
	var img = "http://images.fivip.com/090425/_104221228.jpg___http://images.fivip.com/090422/_143G4413.jpg___http://images.fivip.com/090420/_105954603.jpg"
	var title = "杜嘉班纳奔放长裙___精彩演绎欲拒还迎！___金像奖红毯群星争艳 林志";
	var imgList = img.split('___');
	var titleList = title.split('___');
	document.getElementById("rightFlashTitle").innerHTML=titleList[num];
	document.getElementById("rightFlashImg").innerHTML="<img src='"+imgList[num]+"' border='0'/>";
}
function init(number)
{
	var i = number;
	if(number != 0 && number != 2)
	{
		i = number + 1;
	}
	if(number == 2)
	{
		i = 0;
	}
	setTimeout('rightFalsh(\''+i+'\')',4000);
}

function addLuxuryViewHistory(p)
{
	XMLHttp.sendReq('post', ''+p+'/ajax/bottomNavAjax.html?operationType=addNewsLuxuryIndexHistory', '', noReturnFun);
}
function noReturnFun()
{}







