var screenWidth;
var screenHeight;
var topDiv_height;
var picNaviDiv_left;
var picNaviDiv_top;
var picNaviDiv_width;
var picNaviDiv_height;
var picContentDiv_top;
var picContentDiv_width;
var picContentDiv_height;
var picShowDiv_top;
var picShowDiv_width;
var picShowDiv_left;
var infoShowDiv_top;
var infoShowDiv_width;
var infoShowDiv_left;
var bottomDiv_height;
var bottomDiv_top;
var bottomDiv_left;
var bottomDiv_width;
var bottomLogoDiv_height;
var bottomLogoDiv_top;
var boardDiv_height;
var boardDiv_top;
var boardDiv_width;
var boardDiv_left;
var imgBgDiv_top;
var imgBgDiv_height;
var bottomLogoLeftDiv_height;
var bottomLogoLeftDiv_width;
var bottomLogoLeftDiv_top;
var bottomLogoRightDiv_height;
var bottomLogoRightDiv_width;
var bottomLogoRightDiv_top;
var bottomMenuDiv_top;
var bottomMenuDiv_left;
var bottomMenuDiv_height;
var bottomMenuDiv_width;
var bottomMenuButtonDiv_top;
var bottomMenuButtonDiv_left;
var bottomMenuButtonDiv_height;
var bottomMenuButtonDiv_width;
var newPicDiv_top;
var newPicDiv_left;
var newPicDiv_height;
var newPicDiv_width;
var feedbackDiv_top;
var feedbackDiv_left;
var feedbackDiv_height;
var feedbackDiv_width;

var Interval;
var Interval2;
var Interval3;

var moving;
var i;
var j;
var k;
var top;
var picNavi_now=1;
var picMin;
var picMax;

var Initition=true;		//初始化状态

var isSort=false;		//判断点的是不是分类
var picSortNow;

var fix=false;		//大图被固定（不消失）
var imgId;		//现在显示的大图序号

var menu_pic_n=0;		//新品推荐当前序号
var showing_newPic_l=false;		//正在显示大图
var showing_newPic_l_n=0;		//正在显示大图序号

var showing_feedbackDiv=false;		//正在显示留言板

var imgLoading_n=0;		//正在读取的大图片（针对新品推荐和小产品显示大图）

var imgSrc=new Array();
var imgSort=new Array();
i=0;
k=0;
imgSort[++k]=i+1;
for(j=129;j<=146;j++)
	imgSrc[++i]="pics\\1\\" + j + "-";
imgSort[++k]=i+1;
for(j=72;j<=93;j++)
	imgSrc[++i]="pics\\2\\" + j + "-";
imgSort[++k]=i+1;
for(j=67;j<=71;j++)
	imgSrc[++i]="pics\\3\\" + j + "-";
imgSort[++k]=i+1;
for(j=1;j<=11;j++)
	imgSrc[++i]="pics\\4\\4-1\\" + j + "-";
imgSort[++k]=i+1;
for(j=12;j<=42;j++)
	imgSrc[++i]="pics\\4\\4-2\\" + j + "-";
imgSort[++k]=i+1;
for(j=43;j<=45;j++)
	imgSrc[++i]="pics\\4\\4-3\\" + j + "-";
imgSort[++k]=i+1;
for(j=165;j<=185;j++)
	imgSrc[++i]="pics\\5\\" + j + "-";
imgSort[++k]=i+1;
for(j=96;j<=138;j++)
	imgSrc[++i]="pics\\6\\" + j + "-";
imgSort[++k]=i+1;
for(j=48;j<=69;j++)
{
	if(j==52||j==56)
		continue;
	imgSrc[++i]="pics\\7\\" + j + "-";
}
imgSort[++k]=i+1;
for(j=92;j<=98;j++)
	imgSrc[++i]="pics\\8\\" + j + "-";
imgSort[++k]=i+1;
for(j=147;j<=164;j++)
	imgSrc[++i]="pics\\9\\" + j + "-";
imgSort[++k]=i+1;
for(j=119;j<=128;j++)
	imgSrc[++i]="pics\\10\\" + j + "-";
imgSort[++k]=i+1;
for(j=190;j<=201;j++)
	imgSrc[++i]="pics\\11\\" + j + "-";
imgSort[++k]=i+1;
for(j=1;j<=16;j++)
	imgSrc[++i]="pics\\12\\" + j + "-";
picMin=1;
picMax=i;

function setPosition()
{	
	moving=false;
	i=0;
	top=-1;
	screenHeight=document.documentElement.offsetHeight;
	screenWidth=document.documentElement.offsetWidth-(document.documentElement.offsetWidth-document.documentElement.scrollWidth);
	//screenWidth=document.documentElement.offsetWidth;
	if(screenHeight<730)
		screenHeight=730;
	
	//======顶层=======
	topDiv_height=40;
	topDiv.style.width=screenWidth;
	topDiv.style.height=topDiv_height + "px";
	topDiv.style.top="0px";
	topDiv.style.left="0px";
	topDiv.style.display="";
	//topDiv.style.backgroundColor="#ff0000";
	
	//======图片导航层=======
	picNaviDiv_top=topDiv_height + 20
	picNaviDiv_width=966;
	picNaviDiv_height=75;
	picNaviDiv.style.width=picNaviDiv_width + "px";
	picNaviDiv.style.height=picNaviDiv_height + "px";
	picNaviDiv.style.top=picNaviDiv_top + "px";
	picNaviDiv_left=(screenWidth-picNaviDiv_width)/2
	if(picNaviDiv_left<0)
		picNaviDiv_left=0;
	picNaviDiv.style.left=picNaviDiv_left + "px";
	//picNaviDiv.style.backgroundColor="#00FF00";
	picNaviDiv.style.display="none";
	picNaviDiv.filters.alpha.opacity=0;
	
	//======分类导航层=======
	picContentDiv_top=picNaviDiv_top + picNaviDiv_height + 40;
	picContentDiv_width=480;
	picContentDiv_height=336;
	picContentDiv.style.width=picContentDiv_width + "px";
	picContentDiv.style.height=picContentDiv_height + "px";
	picContentDiv.style.top=picContentDiv_top + "px";
	picContentDiv_left=(screenWidth-picContentDiv_width)/2
	if(picContentDiv_left<370)
		picContentDiv_left=370;
	picContentDiv.style.left=picContentDiv_left + "px";
	picContentDiv.style.backgroundColor="#663366";
	picContentDiv.filters.alpha.opacity=0;
	picContentDiv.style.display="none";
	
	//======新品推荐显示层=======
	newPicDiv_top=picContentDiv_top-100;
	newPicDiv_width=649;
	newPicDiv_height=412;
	newPicDiv.style.width=newPicDiv_width + "px";
	newPicDiv.style.height=newPicDiv_height + "px";
	newPicDiv.style.top=newPicDiv_top + "px";
	newPicDiv_left=(screenWidth-newPicDiv_width)/2
	if(newPicDiv_left<0)
		newPicDiv_left=0;
	newPicDiv.style.left=newPicDiv_left + "px";
	//newPicDiv.style.backgroundColor="#663366";
	newPicDiv.filters.alpha.opacity=0;
	newPicDiv.style.display="none";
	
	//======联系我们层=======
	feedbackDiv_top=newPicDiv_top + 50;
	feedbackDiv_width=730;
	feedbackDiv_height=306;
	feedbackDiv.style.width=feedbackDiv_width + "px";
	feedbackDiv.style.height=feedbackDiv_height + "px";
	feedbackDiv.style.top=feedbackDiv_top + "px";
	feedbackDiv_left=(screenWidth-feedbackDiv_width)/2
	if(feedbackDiv_left<0)
		feedbackDiv_left=0;
	feedbackDiv.style.left=feedbackDiv_left + "px";
	//feedbackDiv.style.backgroundColor="#663366";
	feedbackDiv.filters.alpha.opacity=0;
	feedbackDiv.style.display="none";
	
	//======图片显示层=======
	picShowDiv_top=picContentDiv_top;
	picShowDiv_width=350;
	picShowDiv.style.width=picShowDiv_width + "px";
	picShowDiv.style.height=picContentDiv_height + "px";
	picShowDiv.style.top=picContentDiv_top + "px";
	picShowDiv_left=picContentDiv_left - 370;
	if(picShowDiv_left<0)
		picShowDiv_left=0;
	picShowDiv.style.left=picShowDiv_left + "px";
	picShowDiv.style.display="none";
	//picShowDiv.style.backgroundColor="#663366";
	//picContentDiv.filters.alpha.opacity=0;
	
	//======信息显示层=======
	infoShowDiv_top=picShowDiv_top;
	infoShowDiv_width=picShowDiv_width;
	infoShowDiv.style.width=infoShowDiv_width + "px";
	infoShowDiv.style.height=picContentDiv_height + "px";
	infoShowDiv.style.top=picShowDiv_top + "px";
	infoShowDiv_left=picContentDiv_left+picContentDiv_width+picContentDiv_left-picShowDiv_left-picShowDiv_width;
	infoShowDiv.style.left=infoShowDiv_left + "px";
	infoShowDiv.style.display="none";
	//infoShowDiv.style.backgroundColor="#663366";
	//picContentDiv.filters.alpha.opacity=0;
	
	//======最底层（固定层）=======
	bottomDiv_height=110;
	bottomDiv_width=1250;
	bottomDiv.style.width=bottomDiv_width;
	bottomDiv.style.height=bottomDiv_height + "px";
	bottomDiv_top=screenHeight-bottomDiv_height;
	bottomDiv.style.top=bottomDiv_top + "px";
	bottomDiv_left=(screenWidth-bottomDiv_width)/2
	if(bottomDiv_left<0)
		bottomDiv_left=0;
	bottomDiv.style.left=bottomDiv_left + "px";
	bottomDiv.style.display="";
	//bottomDiv.style.backgroundColor="#ffff00";
	
	//======最底menu按钮层=======
	bottomMenuButtonDiv_height=60;
	bottomMenuButtonDiv_width=150;
	bottomMenuButtonDiv.style.width=bottomMenuButtonDiv_width + "px";
	bottomMenuButtonDiv.style.height=bottomMenuButtonDiv_height + "px";
	bottomMenuButtonDiv_top=screenHeight-80;
	bottomMenuButtonDiv.style.top=bottomMenuButtonDiv_top + "px";
	bottomMenuButtonDiv_left=bottomDiv_left+10;
	bottomMenuButtonDiv.style.left=bottomMenuButtonDiv_left + "px";
	bottomMenuButtonDiv.style.display="";
	//bottomMenuButtonDiv.style.backgroundColor="#ffff00";
	
	//======最底menu层=======
	bottomMenuDiv_height=360;
	bottomMenuDiv_width=160;
	bottomMenuDiv.style.width=bottomMenuDiv_width;
	bottomMenuDiv.style.height=bottomMenuDiv_height + "px";
	bottomMenuDiv_top=screenHeight-64;
	bottomMenuDiv.style.top=bottomMenuDiv_top + "px";
	bottomMenuDiv_left=bottomDiv_left+60
	bottomMenuDiv.style.left=bottomMenuDiv_left + "px";
	bottomMenuDiv.style.display="";
	
	//======最底层左延展（固定层）=======
	if(screenWidth>bottomDiv_width)
	{
		bottomLeftDiv.style.width=bottomDiv_left + "px";
		bottomLeftDiv.style.height=bottomDiv_height + "px";
		bottomLeftDiv.style.top=bottomDiv_top + "px";
		bottomLeftDiv.style.left="0px";
		bottomLeftDiv.style.display="";
	}
	
	//======最底层右延展（固定层）=======
	if(screenWidth>bottomDiv_width)
	{
		bottomRightDiv.style.width=screenWidth-bottomDiv_width-bottomDiv_left + "px";
		bottomRightDiv.style.height=bottomDiv_height + "px";
		bottomRightDiv.style.top=bottomDiv_top + "px";
		bottomRightDiv.style.left=bottomDiv_left+bottomDiv_width;
		bottomRightDiv.style.display="";
	}
	
	//======底下LOGO背景层=======
	bottomLogoDiv_height=317;
	bottomLogoDiv_width=1250;
	bottomLogoDiv_top=screenHeight-bottomLogoDiv_height;
	bottomLogoDiv.style.width=bottomLogoDiv_width;
	bottomLogoDiv.style.height=bottomLogoDiv_height + "px";
	bottomLogoDiv.style.top=bottomLogoDiv_top + "px";
	bottomLogoDiv_left=(screenWidth-bottomLogoDiv_width)/2
	if(bottomLogoDiv_left<0)
		bottomLogoDiv_left=0;
	bottomLogoDiv.style.left=bottomLogoDiv_left + "px";
	bottomLogoDiv.style.display="";
	//bottomLogoDiv.style.backgroundColor="#0000ff";
	
	//======底下LOGO背景层左边延展=======
	if(screenWidth>bottomDiv_width)
	{
		bottomLogoBgLeftDiv.style.width=bottomLogoDiv_left + "px";
		bottomLogoBgLeftDiv.style.height=bottomLogoDiv_height + "px";
		bottomLogoBgLeftDiv.style.top=bottomLogoDiv_top + "px";
		bottomLogoBgLeftDiv.style.left="0px";
		bottomLogoBgLeftDiv.style.display="";
	}
	//bottomLogoBgLeftDiv.style.backgroundColor="#000000";
	
	//======底下LOGO背景层右边延展=======
	if(screenWidth>bottomDiv_width)
	{
		bottomLogoBgRightDiv.style.width=bottomLogoDiv_left + "px";
		bottomLogoBgRightDiv.style.height=bottomLogoDiv_height + "px";
		bottomLogoBgRightDiv.style.top=bottomLogoDiv_top + "px";
		bottomLogoBgRightDiv.style.left=bottomLogoDiv_left+bottomLogoDiv_width + "px";
		bottomLogoBgRightDiv.style.display="";
	}
	
	//======底下LOGO背景左边箭头层=======
	bottomLogoLeftDiv_height=17;
	bottomLogoLeftDiv_width=18;
	bottomLogoLeftDiv_top=bottomLogoDiv_top+13;
	bottomLogoLeftDiv.style.width=bottomLogoLeftDiv_width;
	bottomLogoLeftDiv.style.height=bottomLogoLeftDiv_height + "px";
	bottomLogoLeftDiv.style.top=bottomLogoLeftDiv_top + "px";
	bottomLogoLeftDiv.style.left=bottomLogoDiv_left + 9 + "px";
	bottomLogoLeftDiv.style.display="";
	//bottomLogoDiv.style.backgroundColor="#ffffff";
	
	//======底下LOGO背景右边箭头层=======
	bottomLogoRightDiv_height=17;
	bottomLogoRightDiv_width=17;
	bottomLogoRightDiv_top=bottomLogoLeftDiv_top+1;
	bottomLogoRightDiv.style.width=bottomLogoRightDiv_width;
	bottomLogoRightDiv.style.height=bottomLogoRightDiv_height + "px";
	bottomLogoRightDiv.style.top=bottomLogoRightDiv_top + "px";
	bottomLogoRightDiv.style.left=(bottomLogoDiv_left+bottomLogoDiv_width-bottomLogoRightDiv_width) -10 + "px";
	bottomLogoRightDiv.style.display="";
	//bottomLogoDiv.style.backgroundColor="#0000ff";
	
	//======底下LOGO层=======
	logoDiv_height=125;
	logoDiv_width=125;
	logoDiv_top=bottomLogoDiv_top +36;
	logoDiv.style.width=logoDiv_width + "px";
	logoDiv.style.height=logoDiv_height + "px";
	logoDiv.style.top=logoDiv_top + 10 + "px";
	logoDiv_left=bottomLogoDiv_left+(bottomLogoDiv_width-logoDiv_width)/2 + 6;
	logoDiv.style.left=logoDiv_left + "px";
	logoDiv.style.display="";
	//logoDiv.style.backgroundColor="#000000";
	
	//======活动板层=======
	boardDiv_height=371;
	boardDiv_top=bottomLogoDiv_top-boardDiv_height+37;
	boardDiv_width=647;
	if(screenWidth<boardDiv_width)
		boardDiv_left=0;
	else
		boardDiv_left=(screenWidth-boardDiv_width)/2;
	boardDiv.style.width=boardDiv_width + "px";
	boardDiv.style.height=boardDiv_height + "px";
	boardDiv.style.top=boardDiv_top + "px";
	boardDiv.style.left=boardDiv_left + "px";
	boardDiv.style.display="";
	//boardDiv.style.backgroundColor="#ff00ff";
	
	//======活动板内容层=======
	boardContentDiv.style.top=(boardDiv_top+30) + "px";
	boardContentDiv.style.width="600px";
	boardContentDiv.style.height="320px";
	boardContentDiv.style.left=(boardDiv_left+35) + "px";
	boardContentDiv.style.display="";
	//boardDiv.style.backgroundColor="#ff00ff";
	
	//======活动板滚动层=======
	//boardScrollDiv.style.top=(boardDiv_top+2) + "px";
	boardScrollDiv.style.width="600px";
	boardScrollDiv.style.height="25px";
	mar1.stop();
	//boardScrollDiv.style.left=(boardDiv_left+2) + "px";
	//boardScrollDiv.style.display="";
	//boardDiv.style.backgroundColor="#ff00ff";
	
	//======图片背景层=======
	imgBgDiv_height=bottomDiv_top + 37 - topDiv_height;
	imgBgDiv_top=topDiv_height;
	imgBgDiv.style.width=bottomLogoDiv_width + "px";
	imgBgDiv.style.height=imgBgDiv_height + "px";
	imgBgDiv.style.top=imgBgDiv_top + "px";
	imgBgDiv.style.left=bottomLogoDiv_left;
	imgBgDiv.style.display="";
	//bottomLogoDiv.style.backgroundColor="#0000ff";
	
	//======图片背景层2=======
	imgBgDiv2.style.width=screenWidth + "px";
	imgBgDiv2.style.height=screenHeight + "px";
	imgBgDiv2.style.top="0px";
	imgBgDiv2.style.left="0px";
	imgBgDiv2.style.display="";
	//bottomLogoDiv.style.backgroundColor="#0000ff";
}

function click_bottomLogoDiv()
{
	if(Initition)
	{
		//==降活动板==
		Initition=false;
		boardContentDiv.style.display="none";
		if(!showing_newPic_l)
			bottomMenuDiv.style.display="none";
		if((!moving)&&picNaviDiv.filters.alpha.opacity==0)
			Interval=setInterval("move_boardDiv()",30);
	}
	else
	{
		window.location.reload();
	}
}

function move_boardDiv()
{
	moving=true;
	//var step=20-(i++)*1;
	var step=40;
	if(step<0)
		step=1;
	if(	top==-1)
		top=boardDiv_top;
	top+=step;
	if(top>=bottomLogoDiv_top+20)
	{
		top=bottomLogoDiv_top+20;
		boardDiv.style.top=top + "px";
		//boardContentDiv.style.top=top+30 + "px";
		top=-1;
		//==降LOGO层==
		clearInterval(Interval);
		Interval2=setInterval("move_bottomLogoDiv()",20);
	}
	else
	{
		boardDiv.style.top=top + "px";
	}
	//boardContentDiv.style.top=top+30 + "px";
}

function show_menuPic(n)
{
	if(moving)
		return false;
	menu_pic_n=n;
	var k;
	moving=true;
	for(i=1;i<=2;i++)
	{
		k=n+i-1;
		if(k>6)
			k=1;
		imgName="new_pic_" + (i);
		imgLoad("pics\\new\\" + k + "-1.jpg",imgName,0)
	}
	moving=false;
}

function show_feedbackDiv()
{
	if(moving)
		return;
		
	showing_feedbackDiv=true;
	
	//==判断是否需要降活动板==
	if(Initition)
	{
		click_bottomLogoDiv();
	}
	else
	{
		newPicDiv.filters.alpha.opacity=0;
		newPicDiv.style.display="none";
		picNaviDiv.filters.alpha.opacity=0;
		picNaviDiv.style.display="none";
		picContentDiv.filters.alpha.opacity=0;
		picContentDiv.style.display="none";
		picShowDiv.style.display="none";
		infoShowDiv.style.display="none";
		moving=true;
		i=0;
		feedbackDiv.style.display="";
		Interval3=setInterval("show_feedbackDiv_now()",30);
	}
}

function show_feedbackDiv_now()
{
	moving=true;
	i+=10;
	feedbackDiv.filters.alpha.opacity=i;
	if(i==100)
	{
		i=0;
		top=-1;
		moving=false;
		showing_feedbackDiv=false;
		feedback.form1.fname.focus();
		clearInterval(Interval3);
	}
}

function close_feedbackDiv()
{
	if(moving)
		return;
	
	feedbackDiv.filters.alpha.opacity=0;
	feedbackDiv.style.display="none";
	
	Interval3=setInterval("show_picDiv()",30);
	picNaviDiv.style.display="";
	picContentDiv.style.display="";
}

function show_menuPic_l(n)
{
	if(n==0||moving)
		return;
	showing_newPic_l=true;
	showing_newPic_l_n=n;
	
	//==判断是否需要降活动板==
	if(Initition)
	{
		click_bottomLogoDiv();
	}
	else
	{
		feedbackDiv.filters.alpha.opacity=0;
		feedbackDiv.style.display="none";
		picNaviDiv.filters.alpha.opacity=0;
		picNaviDiv.style.display="none";
		picContentDiv.filters.alpha.opacity=0;
		picContentDiv.style.display="none";
		picShowDiv.style.display="none";
		infoShowDiv.style.display="none";
		newPicDiv.style.display="";
		moving=true;
		i=0;
		newPicDiv.filters.alpha.opacity=0;
		imgLoad("loading_new.gif","newPic_l",0);
		Interval3=setInterval("show_newPicDiv()",30);
	}
}

function show_newPicDiv()
{
	moving=true;
	i+=10;
	newPicDiv.filters.alpha.opacity=i;
	if(i==100)
	{
		imgLoad("pics\\new\\" + showing_newPic_l_n + "-2.jpg","newPic_l",0);
		i=0;
		top=-1;
		moving=false;
		showing_newPic_l=false;
		showing_newPic_l_n=0;
		clearInterval(Interval3);
	}
}

function hide_picContent()
{
	if(moving)
		return;
	else
	{
		picNaviDiv.filters.alpha.opacity=0;
		picContentDiv.filters.alpha.opacity=0;
		clearInterval(Interval4)
	}
}

function click_menuButton()
{
	//==升menu版==
	top=-1;
	bottomMenuDiv.style.top=bottomMenuDiv_top + "px";
	bottomMenuDiv.style.display="";
	if(!moving)
		Interval=setInterval("move_bottomMenuDiv()",30);
}

function click_bottomMenuArrow()
{
	if(!moving)
	{
		if(newPicDiv.style.display=="")
		{
			newPicDiv.filters.alpha.opacity=0;
			newPicDiv.style.display="none";
			Interval3=setInterval("show_picDiv()",30);
			picNaviDiv.style.display="";
			picContentDiv.style.display="";
		}
		Interval=setInterval("hide_bottomMenuDiv()",30);
	}
}

function hide_bottomMenuDiv()
{
	moving=true;
	//var step=20-(i++)*1;
	var step=40;
	if(step<0)
		step=1;
	if(	top==-1)
		top=bottomDiv_top-300;
	top+=step;
	if(top>=bottomMenuDiv_top)
	{
		top=bottomMenuDiv_top;
		bottomMenuDiv.style.top=top + "px";
		//boardContentDiv.style.top=top+30 + "px";
		top=-1;
		moving=false;
		clearInterval(Interval);
	}
	else
	{
		bottomMenuDiv.style.top=top + "px";
	}
	//boardContentDiv.style.top=top+30 + "px";
}

function move_bottomMenuDiv()
{
	moving=true;
	//var step=20-(i++)*1;
	var step=40;
	if(step<0)
		step=1;
	if(	top==-1)
		top=bottomMenuDiv_top;
	top-=step;
	if(top<=bottomDiv_top-300)
	{
		top=bottomDiv_top-300;
		bottomMenuDiv.style.top=top + "px";
		//boardContentDiv.style.top=top+30 + "px";
		top=-1;
		moving=false;
		clearInterval(Interval);
	}
	else
	{
		bottomMenuDiv.style.top=top + "px";
	}
	//boardContentDiv.style.top=top+30 + "px";
}

function move_bottomLogoDiv()
{
	moving=true;
	var step=40-(i++)*1;
	if(step<0)
		step=1;
	if(	top==-1)
		top=bottomLogoDiv_top;
	top+=step;
	if(top>=bottomDiv_top-90)
	{
		top=bottomDiv_top-90;
		bottomLogoDiv.style.top=top + "px";
		bottomLogoBgLeftDiv.style.top=top + "px";
		bottomLogoBgRightDiv.style.top=top + "px";
		bottomLogoLeftDiv.style.top=bottomLogoRightDiv.style.top=(top+12) + "px";
		logoDiv.style.top=(top+47)+"px";
		bottomLogoDiv.style.height=(screenHeight-top) + "px";
		bottomLogoBgLeftDiv.style.height=(screenHeight-top) + "px";
		bottomLogoBgRightDiv.style.height=(screenHeight-top) + "px";
		boardDiv.style.height=(screenHeight-top) + "px";
		boardDiv.style.top=(top) + "px";
		boardScrollDiv.style.top=top+15 + "px";
		boardScrollDiv.style.left=boardDiv_left+20 + "px";
		boardScrollDiv.style.display="";
		mar1.start();
		//boardContentDiv.style.height=(screenHeight-top-20) + "px";
		//boardContentDiv.style.top=(top+20+30) + "px";
		//==显示图片层==
		i=0;
		clearInterval(Interval2);
		if(showing_newPic_l)
		{
			moving=false;
			Interval3=setInterval("show_newPicDiv()",30);
			newPicDiv.style.display="";
		}
		else if(showing_feedbackDiv)
		{
			moving=false;
			Interval3=setInterval("show_feedbackDiv_now()",30);
			feedbackDiv.style.display="";
		}
		else
		{
			Interval3=setInterval("show_picDiv()",30);
			picNaviDiv.style.display="";
			picContentDiv.style.display="";
		}
	}
	else
	{
		bottomLogoDiv.style.top=top + "px";
		bottomLogoBgLeftDiv.style.top=top + "px";
		bottomLogoBgRightDiv.style.top=top + "px";
		logoDiv.style.top=(top+47)+"px";
		bottomLogoLeftDiv.style.top=bottomLogoRightDiv.style.top=(top+12) + "px";
		bottomLogoDiv.style.height=(screenHeight-top) + "px";
		bottomLogoBgLeftDiv.style.height=(screenHeight-top) + "px";
		bottomLogoBgRightDiv.style.height=(screenHeight-top) + "px";
		boardDiv.style.height=(screenHeight-top) + "px";
		boardDiv.style.top=(top) + "px";
	}
}

function show_picDiv()
{
	moving=true;
	i+=10;
	picNaviDiv.filters.alpha.opacity=i;
	picContentDiv.filters.alpha.opacity=i;
	if(i==100)
	{
		i=0;
		top=-1;
		moving=false;
		if(isSort)
			move_picNavi("right");
		isSort=false;
		clearInterval(Interval3);
	}
}

function move_picNavi(d)
{
	if(moving)
		return false;
	for(i=1;i<=11;i++)
	{
		document.images["img" + i].src="loading.gif";
		document.images["img" + i].filters.alpha.opacity=0;
	}
	moving=true;
	if(d=="right")
		picNavi_now--;
	else
		picNavi_now++;
	if(picNavi_now>picMax)
		picNavi_now=picMin;
	if(picNavi_now<picMin)
		picNavi_now=picMax;
		
	var j=0;
	for(i=picNavi_now;i<picNavi_now+11;i++)
	{
		if(i>picMax)
		{
			var m=11-j;
			for(k=picMin;k<=m;k++)
			{
				imgName="img" + (++j);
				imgLoad(imgSrc[k] + "1.jpg",imgName,0)
			}
			break;
		}
		imgName="img" + (++j);
		imgLoad(imgSrc[i] + "1.jpg",imgName,0)
	}
	//==改变透明度==
	i=0;
	Interval=setInterval("showPicNavi()",30);
}

function showPicNavi()
{
	moving=true;
	i+=5;
	for(j=1;j<=11;j++)
		document.images["img" + j].filters.alpha.opacity=i;
	if(i==100)
	{
		i=0;
		top=-1;
		moving=false;
		clearInterval(Interval);
	}
}

function clickPicSort(n)
{
	picSortNow=n;
	picNavi_now=imgSort[n]+1;
	if(picNaviDiv.filters.alpha.opacity==0)
	{
		isSort=true;
		click_bottomLogoDiv();
	}
	else
	{
		isSort=false;
		move_picNavi("right");
	}
	fix=false;
	showImg(0);
}

function showImg(n)
{
	if(n==0)
	{
		if(!fix)
		{
			//picContentTd.style.backgroundImage="url(naviCenter_1.jpg)";
			picShowDiv.style.display="none";
			infoShowDiv.style.display="none";
			imgLoad("loading_l.gif","imgShowing",0)
			imgLoad("loading_l.gif","infoShowing",0)
		}
	}
	else
	{
		//picContentTd.style.backgroundImage="url(naviCenter_2.jpg)";
		var t=n;
		picShowDiv.style.display="";
		infoShowDiv.style.display="";
		t+=picNavi_now-1;
		if(t>picMax)
			t-=picMax;
		imgId=n;
		imgLoad(imgSrc[t] + "2.jpg","imgShowing",n)
		imgLoad(imgSrc[t] + "3.jpg","infoShowing",n)
	}
}

function clickArrow(d)
{
	if(!fix||picShowDiv.style.display=="none")
		return;
	if(d=="right")
	{
		imgId--;
		if(imgId<picMin)
			imgId=picMax;
		showImg(imgId);
	}
	else
	{
		imgId++;
		if(imgId>picMax)
			imgId=picMin;
		showImg(imgId);
	}
}
