// JavaScript Document
	var cur_new_pic_item_page = 0;
			var pagenow=1;
			function leftNewPicItem()
			{
				if(pagenow==1)
				{
					pagenow=3;
				}
				else
				{
					pagenow=pagenow-1;
				}
				var url="topnew"+pagenow+".html";
				ajax_get(url,"rusult5","rusulttip5");
				
			}
			
			function rightNewPicItem()
			{
				if(pagenow==3)
				{
					pagenow=1;
				}
				else
				{
					pagenow=pagenow+1;
				}
				var url="topnew"+pagenow+".html";
					ajax_get(url,"rusult5","rusulttip5");
			}
			function CStr(inp)
			{
				return(""+inp+"");
			}
			
			function Trim(str)
			{
			    var i,strlength,t,chartemp,returnstr;
			    str=CStr(str);
			    strlength=str.length;
			    t=str;
			    for(i=0;i<strlength;i++)
			    {
			        chartemp=str.substring(i,i+1);    
			        if(chartemp==" ")
			        {
			            t=str.substring(i+1,strlength);
			        }
			        else
			        {
			               break;
			        }
			    }
			    returnstr=t;
			    strlength=t.length;
			    for(i=strlength;i>=0;i--)
			    {
			        chartemp=t.substring(i,i-1);
			        if(chartemp==" ")
			        {
			            returnstr=t.substring(i-1,0);
			        }
			        else
			        {
			            break;
			        }
			    }
			    return (returnstr);
			}
			function checkform()
			{
				var key = Trim(searchform.q.value);
				if( "" == key )
				{
					searchform.q.value = "";
					return false;
				}
				else
				{
					searchform.q.value = key;
				}
				
				return true;
			}
			function onsearch()
			{
				if( ! checkform() )
					return;
				
				searchform.submit();
			}
			function ontag(tag)
			{
				searchform.q.value = tag;
				onsearch();
			}
			
			function Init()
			{
			
				var timeobj=new Date();
				var url="/getTop.jspx?times="+timeobj.getTime();
				ajax_get(url,"tnavitems","divtiptop");
			}
				
			function onSortOver()
			{ 
				document.all.iSpecialButtonTd.style.backgroundColor="#F2F2F2";
				document.all.iSortButtonTd.style.backgroundColor="#E0E0E0";
				
				document.all.iSpecialBody.style.display = "none";
				document.all.iSortBody.style.display = "";
				
			}
			function onSortOut()
			{ 
				
			}
			function onSpecialOver()
			{
				document.all.iSpecialButtonTd.style.backgroundColor="#E0E0E0";
				document.all.iSortButtonTd.style.backgroundColor="#F2F2F2";
				
				document.all.iSpecialBody.style.display = "";
				document.all.iSortBody.style.display = "none";
			}
			function onSpecialOut()
			{
				
			}
			
			function OnNewOver1()
			{
				document.all.iNewButtonTd1.style.backgroundColor="orange";
				document.all.iNewButtonTd2.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd3.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd4.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd5.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd6.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd7.style.backgroundColor="#E0E0E0";
				ajax_get("/new1.html","rusult","rusulttip");
				
			
			}
		
			function OnNewOver2()
			{
				document.all.iNewButtonTd1.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd2.style.backgroundColor="orange";
				document.all.iNewButtonTd3.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd4.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd5.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd6.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd7.style.backgroundColor="#E0E0E0";
				ajax_get("/new2.html","rusult","rusulttip");
				
			
			}
			function OnNewOver3()
			{
				document.all.iNewButtonTd1.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd2.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd3.style.backgroundColor="orange";
				document.all.iNewButtonTd4.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd5.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd6.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd7.style.backgroundColor="#E0E0E0";
				ajax_get("/new3.html","rusult","rusulttip");
			
			}
			
			function OnNewOver4()
			{
				document.all.iNewButtonTd1.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd2.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd3.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd4.style.backgroundColor="orange";
				document.all.iNewButtonTd5.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd6.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd7.style.backgroundColor="#E0E0E0";
				ajax_get("/new4.html","rusult","rusulttip");
			
			}
			
			function OnNewOver5()
			{
				document.all.iNewButtonTd1.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd2.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd3.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd4.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd5.style.backgroundColor="orange";
				document.all.iNewButtonTd6.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd7.style.backgroundColor="#E0E0E0";
				ajax_get("/new5.html","rusult","rusulttip");
			
			}
			function OnNewOver6()
			{
				document.all.iNewButtonTd1.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd2.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd3.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd4.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd5.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd6.style.backgroundColor="orange";
				document.all.iNewButtonTd7.style.backgroundColor="#E0E0E0";
				ajax_get("/new6.html","rusult","rusulttip");
			
			}
			function OnNewOver7()
			{
				document.all.iNewButtonTd1.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd2.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd3.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd4.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd5.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd6.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd7.style.backgroundColor="orange";
				ajax_get("/new7.html","rusult","rusulttip");
			
			}
			
			function OnTodayTenOver()
			{
				document.all.iTodayTenButtonTd.style.backgroundColor="#CCCCCC";
				document.all.iYestodayTenButtonTd.style.backgroundColor="#F2F2F2";
				
				document.all.iTodayTenBody.style.display = "";
				document.all.iYestodayTenBody.style.display = "none";
			}
			
			function OnTodayTenOut()
			{
			}
			
			function OnYestodayTenOver()
			{
				document.all.iTodayTenButtonTd.style.backgroundColor="#F2F2F2";
				document.all.iYestodayTenButtonTd.style.backgroundColor="#CCCCCC";
				
				document.all.iTodayTenBody.style.display = "none";
				document.all.iYestodayTenBody.style.display = "";
			}
			
			function OnYestodayTenOut()
			{
			}
			
			function InitTenItem()
			{
				for( i=0; i<10; i++ )
				{
					document.getElementById( "iTenTodayLink_" + i ).href = tentoday_linkhrefs[i];
					document.getElementById( "iTenTodayLink_" + i ).innerText = tentoday_linktexts[i];
					document.getElementById( "iTenTodayLink_" + i ).title = tentoday_linkalts[i];
				
					document.getElementById( "iTenYestodayLink_" + i ).href = tenyestoday_linkhrefs[i];
					document.getElementById( "iTenYestodayLink_" + i ).innerText = tenyestoday_linktexts[i];
					document.getElementById( "iTenYestodayLink_" + i ).title = tenyestoday_linkalts[i];
				}
			}
			
			
			
				
			function OnNewOver11()
			{
				document.all.iNewButtonTd11.style.backgroundColor="orange";
				document.all.iNewButtonTd21.style.backgroundColor="#E0E0E0";
				ajax_get("/RecommendPageSub_1.html","rusult2","rusulttip2");
		
			}
		
			function OnNewOver21()
			{
				document.all.iNewButtonTd11.style.backgroundColor="#E0E0E0";
				document.all.iNewButtonTd21.style.backgroundColor="orange";
				ajax_get("/UserRecommendPageSub_1.html","rusult2","rusulttip2");
			
			
			}
			
			function gotorepage(page)
			{
				var url="/RecommendPageSub_"+page+".html";
				ajax_get(url,"rusult2","rusulttip2");
			
			}
			
			function gotouserpage(page)
			{
				var url="/UserRecommendPageSub_"+page+".html";
				ajax_get(url,"rusult2","rusulttip2");
			}
			function signout()
			{
				var timeobj=new Date();
				var url="/SignOut.jspx?times="+timeobj.getTime();
				ajax_get(url,"tnavitems","divtiptop");
			}