﻿var nslove = {
	$ : function(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}},
	isIE : navigator.appVersion.indexOf("MSIE")!=-1?true:false,

	//Event
	addEvent : function(obj,eventType,func){if(obj.attachEvent){obj.attachEvent("on" + eventType,func);}else{obj.addEventListener(eventType,func,false)}},
	delEvent : function(obj,eventType,func){
		if(obj.detachEvent){obj.detachEvent("on" + eventType,func)}else{obj.removeEventListener(eventType,func,false)}
	},
	//Cookie
	readCookie : function(l){var i="",I=l+"=";if(document.cookie.length>0){var offset=document.cookie.indexOf(I);if(offset!=-1){offset+=I.length;var end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;i=document.cookie.substring(offset,end)}};return i},

	writeCookie : function(O,o,l,I){var i="",c="";if(l!=null){i=new Date((new Date).getTime()+l*3600000);i="; expires="+i.toGMTString()};if(I!=null){c=";domain="+I};document.cookie=O+"="+escape(o)+i+c},
	//Style
	readStyle:function(i,I){if(i.style[I]){return i.style[I]}else if(i.currentStyle){return i.currentStyle[I]}else if(document.defaultView&&document.defaultView.getComputedStyle){var l=document.defaultView.getComputedStyle(i,null);return l.getPropertyValue(I)}else{return null}}
};


var coverLayer = {
	divObj : null,
	_coverTime : null,
	_coverRe : function(){//刷新遮盖层
		if(document.body.offsetHeight < document.documentElement.clientHeight){
			this.divObj.style.width = document.body.clientWidth + "px";
			this.divObj.style.height = document.documentElement.clientHeight + "px";
		}else{
			this.divObj.style.width = document.body.clientWidth + "px";
			this.divObj.style.height = document.body.clientHeight + "px";
		}
	},
	isIE : navigator.appVersion.indexOf("MSIE")!=-1?true:false,
	on : function(noSave){ //打开遮盖层
		if(this.divObj == null){
			this.divObj = document.createElement("div");
			this.divObj.style.zIndex = 10000;
			this.divObj.style.left = '0px';;
			this.divObj.style.top = '0px';;
			this.divObj.style.position = "absolute";
			this.divObj.style.backgroundColor = "#333";
			if(this.isIE){
				var tempFrame = document.createElement("iframe");
				tempFrame.style.filter = "Alpha(Opacity=0)";
				tempFrame.frameBorder=0;
				tempFrame.scrolling="no";
				tempFrame.style.width = "100%";
				tempFrame.style.height = "100%";
				this.divObj.appendChild(tempFrame);
				this.divObj.style.filter = "Alpha(Opacity=80)";
			}else{
				this.divObj.style.opacity = 0.8
			};
			document.body.appendChild(this.divObj);
		};
		if(document.body.offsetHeight < document.documentElement.clientHeight){
			this.divObj.style.width = document.body.clientWidth + "px";
			this.divObj.style.height = document.documentElement.clientHeight + "px";
		}else{
			this.divObj.style.width = document.body.clientWidth + "px";
			this.divObj.style.height = document.body.clientHeight + "px";
		};
		this.divObj.style.display = "block";
		clearInterval(this._coverTime);
		this._coverTime = setInterval("coverLayer._coverRe()",50);
	},
	off : function(noSave){ //关闭遮盖层
		if(this.divObj){this.divObj.style.display = "none"};
		clearInterval(this._coverTime);
	}
}

var epidiascope = {
	picTitleId : "PicTitle",
	picMemoId : "PicMemo",
	picListId : "picList",
	BigPicId : "BigPic",
	picArrLeftId : "picArrLeft",
	picArrRightId : "picArrRight",
	playButtonId : "playButton",
	estateId : "estate",
	mainBoxId : "Main",
	repetition : false, //循环播放
	prefetch : true, //预读图片
	autoPlay : true, //自动播放
	autoPlayTimeObj : null,
	timeSpeed : 5,
	maxWidth : 550,
	filmstrips : [],
	prefetchImg : [],
	selectedIndex : 0,
	previousPicList : {},
	nextPicList : {},
	add : function(s){
		this.filmstrips.push(s);
		if(this.prefetch){ //预载图片
			var tempImg = new Image();
			tempImg.src = s.src;
			this.prefetchImg.push(tempImg);
		};
	},
	initialize : function(){
		var tempWidth = 0;
		if(this.filmstrips.length * 65 < nslove.$("picList").offsetWidth){
			tempWidth = Math.round(nslove.$("picList").offsetWidth / 2 - this.filmstrips.length * 65/2);
		};
		
		var tempHTML = '<div class="PL_cont" style="padding-left:' + tempWidth + 'px">',i;
		for(i=0;i<this.filmstrips.length;i++){
			tempHTML += '<div class="pic'+ (i==this.selectedIndex?"On":"") +'" id="slide_' + i + '"><table cellspacing="0"><tr><td><a href="javascript:epidiascope.select(' + i + ');" onclick="this.blur();"><img src="' + this.filmstrips[i].lowsrc + '" alt="' + this.filmstrips[i].title + '"  onload="showImage(this);"/></a></td></tr></table></div>';
		};

		nslove.$(this.picListId).innerHTML = tempHTML + "</div>";
		
		nslove.$(this.picArrLeftId).onclick = function(){epidiascope.previous()};
		nslove.$(this.picArrRightId).onclick = function(){epidiascope.next()};
		
		nslove.$("commentLink").onclick = function(){epidiascope.clickComment()}; //评论

		this.BigImgBox = nslove.$(this.BigPicId);
		
		this.ImgObj1 = document.createElement("img");
		this.ImgObj2 = document.createElement("img");
		this.Link1 = document.createElement("a");
		this.Link2 = document.createElement("a");
		this.SpanObj1 = document.createElement("Span");
		this.SpanObj2 = document.createElement("Span");
		
		this.ImgObj1.galleryImg = false;
		this.ImgObj2.galleryImg = false;
		
		this.ImgObj1.src = "/images/news_5.gif";//空图
		
		this.ImgObj1.onload = function(){
			if(epidiascope.maxWidth == 0 ){return};
			var temp = new Image();
			temp.src = this.src;
			
			if(temp.width > epidiascope.maxWidth){
				this.width = epidiascope.maxWidth;
				this.height = Math.round(epidiascope.maxWidth * temp.height / temp.width);
			}else{
				this.width = temp.width;
				this.height = temp.height;
			};
		};
		
		
		this.BigImgBox.appendChild(this.SpanObj1);
		this.BigImgBox.appendChild(this.SpanObj2);
		this.SpanObj1.appendChild(this.Link1);
		this.SpanObj2.appendChild(this.Link2);
		this.Link1.appendChild(this.ImgObj1);
		this.Link2.appendChild(this.ImgObj2);
		
		this.Link1.target = "_blank";
		this.Link2.target = "_blank";
		
		/*this.Link1.href = this.filmstrips[0].link;
		this.Link2.href = this.filmstrips[0].link;
		
		this.ImgObj1.src = this.filmstrips[0].src;
		this.ImgObj2.src = this.filmstrips[0].src;
		
		this.ImgObj1.lowsrc = this.filmstrips[0].lowsrc;
		this.ImgObj2.lowsrc = this.filmstrips[0].lowsrc;
		
		nslove.$(this.picTitleId).innerHTML = this.filmstrips[0].title;
		nslove.$(this.picMemoId).innerHTML = this.filmstrips[0].text;*/
		
		this.select(this.selectedIndex);
		this.foreAndAft();
		
		if(!nslove.isIE){
			this.BigImgBox.style.position = 'relative';
			this.BigImgBox.style.overflow = "hidden";
			this.SpanObj2.style.position = "absolute";
			this.SpanObj2.style.top = "0px";
			this.SpanObj1.style.textAlign = this.SpanObj2.style.textAlign = "center";
			this.SpanObj1.style.display = this.SpanObj2.style.display = "block";
			this.SpanObj1.style.zIndex = 2;
			this.SpanObj2.style.zIndex = -1;
		}else{
			this.SpanObj2.style.display = 'none';
			
		};
		
		if(this.autoPlay){this.play()}else{this.stop()};
		
		if(this.onstart){this.onstart()};
	},
	select : function(num){
		if(this.endSelect.estate == 1){
			this.endSelect.close();
		};
		var i;
		if(num >= this.filmstrips.length || num < 0){return};
		
		nslove.$(this.picTitleId).innerHTML = this.filmstrips[num].title;
		nslove.$(this.picMemoId).innerHTML = this.filmstrips[num].text;
		
		this.Link1.href = this.filmstrips[num].link;
		this.Link2.href = this.filmstrips[num].link;
				
		window.TmpImgObj1 = this.ImgObj1;
		window.TmpImgObj2 = this.ImgObj2;
		window.BigImgBox = this.BigImgBox;
		
		if(nslove.isIE){
			this.ImgObj1.filters[0].Apply();
			this.ImgObj1.lowsrc = this.filmstrips[num].lowsrc;
			this.ImgObj1.src = this.filmstrips[num].src;
			
			this.ImgObj1.filters[0].Play();
		}else{
			
			this.ImgObj1.src = this.filmstrips[num].src;
			this.ImgObj1.lowsrc = this.filmstrips[num].lowsrc;
			this.ImgObj1.style.opacity = 0;
			this.ImgObj2.style.opacity = 1;
			
			for(i = 0;i <= 20;i ++){
				setTimeout("window.TmpImgObj1.style.opacity = " + (i * 0.05),i * 50);
			};
			setTimeout("window.TmpImgObj2.width=window.TmpImgObj1.width;window.TmpImgObj2.src = window.TmpImgObj1.src;",20 * 30);
		};
		nslove.$("slide_" + this.selectedIndex).className = "pic";
		nslove.$("slide_" + num).className = "picOn";
		this.selectedIndex = num;
		this.plan.set((num + 1)/this.filmstrips.length);//进度
		
		this.picList.foucsTo(num + 1); //滚动
		
		nslove.$("total").innerHTML = (num + 1) + "/" + this.filmstrips.length;
		if(this.autoPlay){this.play()};
	},
	next : function(){
		var tempNum = this.selectedIndex + 1;
		if(tempNum >= this.filmstrips.length){
			if(this.repetition){ //循环播放
				tempNum = 0;
			}else{
				this.endSelect.open(); //选择
				return;
			};
		};
		this.select(tempNum);
		gotoPV();//080813001 ws
	},
	previous : function(){
		var tempNum = this.selectedIndex - 1;
		if(tempNum < 0){ //循环播放
			if(this.repetition){
				tempNum = this.filmstrips.length - 1
			}else{
				return;
			};
		};
		this.select(tempNum);
		gotoPV();//080813001 ws
	},
	play : function(){
		clearInterval(this.autoPlayTimeObj);
		this.autoPlayTimeObj = setInterval("epidiascope.next()",this.timeSpeed*1000);
		nslove.$(this.playButtonId).onclick = function(){epidiascope.stop()};
		nslove.$(this.estateId).className = "stop";
		nslove.$(this.estateId).title = "暂停";
		this.autoPlay = true;
	},
	stop : function(){
		clearInterval(this.autoPlayTimeObj);
		nslove.$(this.playButtonId).onclick = function(){epidiascope.play()};
		nslove.$(this.estateId).className = "play";
		nslove.$(this.estateId).title = "播放";
		this.autoPlay = false;
	},
	foreAndAft : function(){ //设置 前一个 后一个 图集
		var foreBoxId = "PL_Left";
		var aftBoxId = "PL_Right";
		var nextPicsButId = "nextPicsBut";
		var i;
		var links = nslove.$(foreBoxId).getElementsByTagName("a");
		for(i=0;i<links.length;i++){
			links[i].href = this.previousPicList.link;
		};
		nslove.$(foreBoxId).getElementsByTagName("img")[0].src = this.previousPicList.lowsrc;
		
		links = nslove.$(aftBoxId).getElementsByTagName("a");
		for(i=0;i<links.length;i++){
			links[i].href = this.nextPicList.link;
		};
		nslove.$(aftBoxId).getElementsByTagName("img")[0].src = this.nextPicList.lowsrc;
		
		nslove.$(nextPicsButId).href = this.nextPicList.link;
	},
	rePlay : function(){ //重新播放
		if(this.endSelect.estate == 1){this.endSelect.close()};
		this.autoPlay = true;
		this.select(0);
	},
	clickComment : function(){ //评论
		var thisFilmstrip = this.filmstrips[this.selectedIndex];
		window.open(thisFilmstrip.comment,"");
	},
	downloadPic : function(){ //下载图片
		var thisFilmstrip = this.filmstrips[this.selectedIndex];
		
	},
	sendToMobile : function(){ //发送到手机
		var thisFilmstrip = this.filmstrips[this.selectedIndex];
		
	}
};

epidiascope.plan = { //进度 object
	id : "plan",
	maxWidth : 50, //总宽度
	width : 0, //当前宽度
	percent : 0, //百分比
	set : function(num){ //设置 如：set(4/23)
		this.percent = Math.round((num) * 100);
		if(this.percent > 100){this.percent == 100};
		this.width = Math.round(this.maxWidth * (this.percent/100));
		if(this.width > 1 && this.width != this.maxWidth){
			nslove.$(this.id).style.borderRight = "1px solid #90b9e5";
			nslove.$(this.id).style.width = this.width - 1 + "px";
			nslove.$(this.id).style.display = "block";
		}else if(this.width <= 0){
			nslove.$(this.id).style.display = "none";
		}else if(this.width >= this.maxWidth){
			nslove.$(this.id).style.borderRight = "none";
			nslove.$(this.id).style.width = this.maxWidth + "px";
			nslove.$(this.id).style.display = "block";
		};
		nslove.$(this.id).title = this.percent + "%";
	}
};

epidiascope.speedBar = { //速度条

	slideId : "slide",
	slideButtonId : "slideButton",
	grades : 10, //等级数
	grade : 1, //等级
	_slideWidth : 0,
	_slideButtonWidth : 0,
	_marginLeft : 0,
	_mouseDisparity : 0,
	initialize : function(){
		this._slideWidth = nslove.$(this.slideId).offsetWidth;
		this._slideButtonWidth = nslove.$(this.slideButtonId).offsetWidth;
		this._marginLeft = Math.round(this._slideWidth/this.grades * (this.grade - 1));
		
		nslove.$(this.slideButtonId).style.marginLeft = this._marginLeft + "px";
		nslove.$("speedCall").innerHTML = this.grade + "秒";
		
		
		nslove.$(this.slideId).onselectstart = function(){return false};
		nslove.$(this.slideButtonId).onmousedown = function(e){epidiascope.speedBar.mouseDown(e);return false};
	},
	mouseDown : function(e){
		e = window.event?window.event:e;
		this._mouseDisparity = (e.pageX?e.pageX:e.clientX) - this._marginLeft;
		document.onmousemove = function(e){epidiascope.speedBar.mouseOver(e)};
		document.onmouseup = function(){epidiascope.speedBar.mouseEnd()};
	},
	mouseOver : function(e){
		e = window.event?window.event:e;
		this._marginLeft = (e.pageX?e.pageX:e.clientX) - this._mouseDisparity;
		if(this._marginLeft > (this._slideWidth - this._slideButtonWidth)){this._marginLeft = this._slideWidth - this._slideButtonWidth};
		if(this._marginLeft < 0){this._marginLeft = 0;};
		nslove.$(this.slideButtonId).style.marginLeft = this._marginLeft + "px";
		
		this.grade = Math.round(this._marginLeft/(this._slideWidth/this.grades) + 1);
		
		
		if(this.onmover){this.onmover()};
	},
	mouseEnd : function(){
		if(this.onend){this.onend()};
		
		nslove.writeCookie("eSp",this.grade,720);
		document.onmousemove = null;
		document.onmouseup = null;
	},
	onmover : function(){
		nslove.$("speedCall").innerHTML = this.grade + "秒";
	},
	onend : function(){
		epidiascope.timeSpeed = this.grade;
		if(epidiascope.autoPlay){epidiascope.play()};
	}
};


epidiascope.background = {
	estate : 1,
	initialize : function(){
		nslove.$("color_01").onclick = function(){epidiascope.background.select(1)};
		nslove.$("color_02").onclick = function(){epidiascope.background.select(2)};
		nslove.$("color_03").onclick = function(){epidiascope.background.select(3)};
		this.select(this.estate);
	},
	select : function(num){
		var className = "";
		
		switch(num){
			case 2:
				className = "bS_02";
				this.labelClass(2);
				break;
			case 3:
				className = "bS_03";
				this.labelClass(3);
				break;
			default :
				num = 1;
				className = "";
				this.labelClass(1);
		};
		document.body.className = className;
		nslove.writeCookie("eBg",num,720);
	},
	labelClass : function(num){
		nslove.$("color_01").className = "";
		nslove.$("color_02").className = "";
		nslove.$("color_03").className = "";
		nslove.$("color_0" + num).className = "selected";
	}
};

epidiascope.picTxtBox = { //文字栏
	estate : 1, // 0:close  1:open
	picTxtBoxId : "PicTxtBox",
	closeId : "PicTxtClose",
	
	initialize : function(){
		if(this.estate == 1){
			nslove.$(this.picTxtBoxId).style.height = "70px";
			nslove.$(epidiascope.picTitleId).style.display = "block";
			nslove.$(epidiascope.picMemoId).style.display = "block";
			nslove.$(this.closeId).className = "close";
			nslove.$(this.closeId).onclick = function(){epidiascope.picTxtBox.close()};
			nslove.$(this.closeId).title = "合拢";
		}else{
			nslove.$(this.picTxtBoxId).style.height = "17px";
			nslove.$(epidiascope.picTitleId).style.display = "none";
			nslove.$(epidiascope.picMemoId).style.display = "none";
			nslove.$(this.closeId).className = "open";
			nslove.$(this.closeId).onclick = function(){epidiascope.picTxtBox.open()};
			nslove.$(this.closeId).title = "展开";
		}
	},
	open : function(){
		nslove.$(this.closeId).className = "close";
		nslove.$(this.closeId).onclick = function(){epidiascope.picTxtBox.close()};
		nslove.$(this.closeId).title = "合拢";
		
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '40px'",50);
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '60px'",100);
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '65px'",150);
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '70px'",200);
		setTimeout("nslove.$(epidiascope.picTitleId).style.display = 'block';",250);
		setTimeout("nslove.$(epidiascope.picMemoId).style.display = 'block'",300);
		
		nslove.writeCookie("eTb",1,720);
	},
	close : function(){
		
		nslove.$(this.closeId).onclick = function(){epidiascope.picTxtBox.open()};
		nslove.$(this.closeId).title = "展开";
		
		setTimeout("nslove.$(epidiascope.picMemoId).style.display = 'none'",50);
		setTimeout("nslove.$(epidiascope.picTitleId).style.display = 'none';",100);
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '40px'",150);
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '30px'",200);
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '20px'",250);
		setTimeout("nslove.$(epidiascope.picTxtBox.picTxtBoxId).style.height = '17px';nslove.$(epidiascope.picTxtBox.closeId).className = 'open';",300);
		
		nslove.writeCookie("eTb",0,720);
	}
};

epidiascope.picList = { //列表滚动
	leftArrId : "leftArr",
	rightArrId : "rightArr",
	picListId : "picList",
	timeoutObj : null,
	pageWidth : 65,
	totalWidth : 0,
	offsetWidth : 0,
	lock : false,
	initialize : function(){
		nslove.$(this.rightArrId).onmousedown = function(){epidiascope.picList.leftMouseDown()};
		nslove.$(this.rightArrId).onmouseout = function(){epidiascope.picList.leftEnd("out");this.className='';};
		nslove.$(this.rightArrId).onmouseup = function(){epidiascope.picList.leftEnd("up")};
		nslove.$(this.leftArrId).onmousedown = function(){epidiascope.picList.rightMouseDown()};
		nslove.$(this.leftArrId).onmouseout = function(){epidiascope.picList.rightEnd("out");this.className='';};
		nslove.$(this.leftArrId).onmouseup = function(){epidiascope.picList.rightEnd("up")};
		this.totalWidth = epidiascope.filmstrips.length * this.pageWidth;
		this.offsetWidth = nslove.$(this.picListId).offsetWidth;
		
		
	},
	leftMouseDown : function(){
		if(this.lock){return};
		this.lock = true;
		this.timeoutObj = setInterval("epidiascope.picList.moveLeft()",10);
	},
	rightMouseDown : function(){
		if(this.lock){return};
		this.lock = true;
		this.timeoutObj = setInterval("epidiascope.picList.moveRight()",10);
	},
	moveLeft : function(){
		if(nslove.$(this.picListId).scrollLeft + 10 > this.totalWidth - this.offsetWidth){
			nslove.$(this.picListId).scrollLeft = this.totalWidth - this.offsetWidth;
			this.leftEnd();
		}else{
			nslove.$(this.picListId).scrollLeft += 10;
		};
	},
	moveRight : function(){
		nslove.$(this.picListId).scrollLeft -= 10;
		if(nslove.$(this.picListId).scrollLeft == 0){this.rightEnd()};
	},
	leftEnd : function(type){
		if(type=="out"){if(!this.lock){return}};
		clearInterval(this.timeoutObj);
		this.lock = false;
		this.move(30);
	},
	rightEnd : function(type){
		if(type=="out"){if(!this.lock){return}};
		clearInterval(this.timeoutObj);
		this.lock = false;
		this.move(-30);
	},
	foucsTo : function(num){
		if(this.lock){return};
		this.lock = true;
		
		var _moveWidth = Math.round(num * this.pageWidth - this.offsetWidth / 2) - 33;
		_moveWidth -= nslove.$(this.picListId).scrollLeft;
		
		if(nslove.$(this.picListId).scrollLeft + _moveWidth < 0){
			_moveWidth = - nslove.$(this.picListId).scrollLeft;
		};
		if(nslove.$(this.picListId).scrollLeft + _moveWidth >= this.totalWidth - this.offsetWidth){
			_moveWidth = this.totalWidth - this.offsetWidth - nslove.$(this.picListId).scrollLeft;
		};
		
		this.move(_moveWidth);
	},
	move : function(num){
		
		var thisMove = num/4;
		if(Math.abs(thisMove)<1 && thisMove!=0){
			thisMove = (thisMove>=0?1:-1)*1;
		}else{
			thisMove = Math.round(thisMove);
		};
		
		var temp = nslove.$(this.picListId).scrollLeft + thisMove;
		if(temp <= 0){nslove.$(this.picListId).scrollLeft = 0;this.lock = false;return;}
		if(temp >= this.totalWidth - this.offsetWidth){nslove.$(this.picListId).scrollLeft = this.totalWidth - this.offsetWidth;this.lock = false;return;}
		nslove.$(this.picListId).scrollLeft += thisMove;
		num -= thisMove;
		if(Math.abs(num) <= 1){this.lock = false;return;}else{
			setTimeout("epidiascope.picList.move(" + num + ")",10)
		}
		
	}
};

//结束选择
epidiascope.endSelect = {
	endSelectId : "endSelect",
	closeId : "endSelClose",
	rePlayButId : "rePlayBut",
	estate : 0, //1:open  0:close
	open : function(){
		this.estate = 1;
		nslove.$(this.endSelectId).style.display = "block";
		nslove.$(this.endSelectId).style.left = Math.round((nslove.$(epidiascope.mainBoxId).offsetWidth - nslove.$(this.endSelectId).offsetWidth)/2) + "px";
		epidiascope.stop();
		nslove.$(epidiascope.playButtonId).onclick = function(){epidiascope.rePlay()};
		nslove.$(epidiascope.estateId).title = "重新播放";
		nslove.$(this.closeId).onclick = function(){epidiascope.endSelect.close()};
		nslove.$(this.rePlayButId).onclick = function(){epidiascope.rePlay()};
	},
	close : function(){
		this.estate = 0;
		//nslove.$(epidiascope.playButtonId).onclick = function(){epidiascope.play()};
		nslove.$(this.endSelectId).style.display = "none";
	}
};


epidiascope.onstart = function(){
	try{document.execCommand('BackgroundImageCache', false, true);}catch(e){};
	
	//速度条
	epidiascope.speedBar.grade = parseInt(nslove.readCookie("eSp"));
	if(isNaN(epidiascope.speedBar.grade)){epidiascope.speedBar.grade = 5};
	epidiascope.speedBar.initialize();
	epidiascope.speedBar.onend();
	
	//背景
	epidiascope.background.estate = parseInt(nslove.readCookie("eBg"));
	if(isNaN(epidiascope.background.estate)){epidiascope.background.estate = 1};
	epidiascope.background.initialize();
	
	//图片说明文字
	epidiascope.picTxtBox.estate = parseInt(nslove.readCookie("eTb"));
	if(isNaN(epidiascope.picTxtBox.estate)){epidiascope.picTxtBox.estate = 1};
	epidiascope.picTxtBox.initialize();
	
	//图片列表滚动
	epidiascope.picList.initialize();
};

