﻿function A2YSlide(name,id,range,sec,tb,margin){  
	this.name = name;
	this.obj = document.getElementById(id);
	this.range = range;
	this.sec = sec;
	this.tb = tb;
	this.margin = margin;
	this.Timer();
}
A2YSlide.prototype.Move = function A2YSlide_Move(fix_y){
	objY = parseInt(this.obj.style.top);

	if(objY != fix_y){
		this.obj.style.top = (objY + this.GetMoveValue(objY,fix_y)) + 'px';
	}
	this.Timer();
}

A2YSlide.prototype.GetMoveValue = function A2YSlide_GetMoveValue(start, end){ 
	return (end - start) * this.range;
}

A2YSlide.prototype.GetDocTnB = function A2YSlide_GetDocTnB(bTB){ 
	return ((bTB)?document.documentElement.clientHeight:0) + document.documentElement.scrollTop;
}

A2YSlide.prototype.Timer = function A2YSlide_Timer(){
	setTimeout(this.name + '.Move('+(this.GetDocTnB(this.tb)+this.margin)+')',this.sec);
}
 
function A2Wzd_YSlide(id,range,sec,tb,margin){ 
	eval('C'+id+" = new A2YSlide('C"+id+"','"+id+"',"+range+","+sec+","+tb+","+margin+');');
 }

function setDivLeft() { 
var logoDiv = document.getElementById('quickArea');
//var rightLayer = document.getElementById('content02');
logoDiv.style.display = 'none';

if(document.documentElement.clientWidth > 880){
	logoDiv.style.left=(((document.documentElement.clientWidth-880) + (document.documentElement.clientWidth-880))/4+894) + 'px';
}else if(document.documentElement.clientWidth < 880) {
	logoDiv.style.left='900px';
}
if(logoDiv.style.left < 880) 
	{
		logoDiv.style.display = 'none';
	}else {
		logoDiv.style.display = 'block';
	}
}