CSInit = new Array;
function CSScriptInit() 
{
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
idxArray[i] = i;
CSAction2(CSInit, idxArray);}

CSStopExecution = false;

function CSAction(array) 
{ 
return CSAction2(CSAct, array);
}
function CSAction2(fct, array) { 
var result;
for (var i=0;i<array.length;i++) {
if(CSStopExecution) return false; 
var actArray = fct[array[i]];
if (actArray == null) return false;
var tempArray = new Array;
for(var j=1;j<actArray.length;j++) {
if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
if(actArray[j][0] == "VAR") {
tempArray[j] = CSStateArray[actArray[j][1]];
}
else {
if(actArray[j][0] == "ACT") {
tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
}
else
tempArray[j] = actArray[j];
}
}
else
tempArray[j] = actArray[j];
}			
result = actArray[0](tempArray);
}
return result;
}
CSAct = new Object;

// OUT Load Frameset Action
// Script copyright 1999, 2000, OUT Media Design GmbH. All rights reserved.

function OUTloadFrameset(action) {
if (!parent.frames[action[2]]) {
var URLparams = window.location.search;
if (URLparams!="") URLparams = "&"+URLparams.substring(1,URLparams.length);
window.location.href=action[1]+"?"+action[2]+"="+window.location.pathname+URLparams;
return true;
}
return false;
}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
var curDoc = ly ? ly.document : document; var elem = curDoc[n];
if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
return elem;
}

function CSSetStylePos(s,d,p) { if (IsIE()) { if (d == 0) CSIEStyl(s).posLeft = p; else CSIEStyl(s).posTop = p; }
else { if (d == 0) CSNSStyl(s).left = p; else CSNSStyl(s).top = p; } }
function CSGetStylePos(s,d) { if (IsIE()) { if (d == 0) return CSIEStyl(s).posLeft; else return CSIEStyl(s).posTop; }
else { if (d == 0) return CSNSStyl(s).left; else return CSNSStyl(s).top; }}

CSLoopIsRunning = false; CSFctArray = new Array; CSTimeoutID = null;
function CSLoop() {	
CSLoopIsRunning = false;
for (i=0;i<CSFctArray.length;i++) {
var curFct = CSFctArray[i];
if (curFct)	{
if (curFct.DoFunction(curFct)) { CSLoopIsRunning = true; curFct.counter++; }
else CSFctArray[i] = 0;
}
}
if (CSLoopIsRunning) CSTimeoutID = setTimeout("CSLoop()", 1);
}
function CSStartFunction(fct,data) {
if (!CSLoopIsRunning) { CSFctArray = 0; CSFctArray = new Array; }
var fctInfo = new Object;
fctInfo.DoFunction = fct; fctInfo.counter = 0; fctInfo.data = data;
CSFctArray[CSFctArray.length] = fctInfo; 
if (!CSLoopIsRunning) CSLoop();
}
function CSStopFunction(sceneName) {
var i;
for (i=0;i<CSFctArray.length;i++) {
var curFct = CSFctArray[i];
if (curFct){ if (curFct.data.name == sceneName){ CSFctArray[i] = 0; return; } }
}
}
function CSStopComplete() {
if (CSTimeoutID == null) return;
clearTimeout (CSTimeoutID); CSLoopIsRunning = false; CSTimeoutID = null;
}

function CSMoveLoop(fInf) {
var ticks = 60 * (((new Date()).getTime()) - fInf.data.startTime)/1000;
var f = ticks/fInf.data.ticks;
if (f < 1) { CSSetStylePos(fInf.data.layer,0,fInf.data.start[0] * (1-f) + fInf.data.end[0] * f);
CSSetStylePos(fInf.data.layer,1,fInf.data.start[1] * (1-f) + fInf.data.end[1] * f); return true; }
else { CSSetStylePos(fInf.data.layer,0,fInf.data.end[0]);
CSSetStylePos(fInf.data.layer,1,fInf.data.end[1]); }
return false;
}
function CSSlideObj (layer,start,end,ticks,startTime) {
this.layer=layer;this.start=start;this.end=end;this.ticks=ticks;this.startTime=startTime;
}
function CSSlideLayer(l,pos,anim,ticks) {
var x = pos[0]; var y = pos[1];

if (l == '') return;
if (!anim) { CSSetStylePos(l,0,x); CSSetStylePos(l,1,y); }
else {  var fctData = new CSSlideObj(l,new Array(CSGetStylePos(l,0),CSGetStylePos(l,1)),new Array(x,y),ticks,(new Date()).getTime()); CSStartFunction(CSMoveLoop,fctData); }
}

// OUT Mouse Trail Library v 1.1
// Script copyright 1999, OUT Media Design GmbH. All rights reserved.
var OUTmtL=new Array;
var OUTie=IsIE();
var OUTmtOk = CSBVers > 3;
var OUTie5fix1=0;
var OUTie5fix2=0;
var OUTmtXpos=0;
var OUTmtYpos=0;
function OUTmtLsetPos(x,y)
{
this.lastX=this.x;this.lastY=this.y;this.x=(x-this.mtXoff)*this.mtXfac+this.mtXoff;this.y=(y-this.mtYoff)*this.mtYfac+this.mtYoff;
}
function OUTmtMinMaxX()
{
return (this.h?this.x<this.x1?this.x1:this.x>this.x2?this.x2:this.x:this.x)+this.dx;
}
function OUTmtMinMaxY()
{
return (this.v?this.y<this.y1?this.y1:this.y>this.y2?this.y2:this.y:this.y)+this.dy; 
}

function OUTmtMinMaxXval(x)
{
return (this.h?x<this.x1?this.x1:x>this.x2?this.x2:x:x)+this.dx;
}
function OUTmtMinMaxYval(y)
{
return (this.v?y<this.y1?this.y1:y>this.y2?this.y2:y:y)+this.dy; 
}

function OUTmtSetInterval()
{
this.intervalID=clearTimeout(this.intervalID);
this.intervalID=setTimeout(this.movef+'("'+this.name+'")',this.rate);
}
function OUTmouseTrailer(mf,n,r,s,h,v,x1,x2,y1,y2,c,ht,dx,dy,ox,oy,fx,fy)
{
this.movef=mf;this.name=n;this.rate=r;this.sequence=s;this.v=v;this.h=h;this.x1=x1;this.x2=x2;this.y1=y1;this.y2=y2;this.showcoords=c;this.keepRelDist=ht;
this.x=CSGetStylePos(this.name,0);this.y=CSGetStylePos(this.name,1);this.lastX=this.x;this.lastY=this.y;this.dX=0;this.dY=0;
this.setPos=OUTmtLsetPos;this.rX=OUTmtMinMaxX;this.rY=OUTmtMinMaxY;this.rvalX=OUTmtMinMaxXval;this.rvalY=OUTmtMinMaxYval;this.dx=dx;this.dy=dy;
this.mtSetInterval=OUTmtSetInterval;this.mtSetInterval();
this.mtXoff=ox;this.mtYoff=oy;this.mtXfac=fx;this.mtYfac=fy;
}
function OUTinitMouseTrail(curMT)
{
if (!curMT) return;
if (OUTmtOk) {
OUTmtL[OUTmtL.length]=curMT;
OUTmtL.sort(OUTcompMT)
for (var i=0; i<OUTmtL.length; i+=1) {
if (i>0) {
OUTmtL[i].dX=OUTmtL[i].x-OUTmtL[i-1].x;
OUTmtL[i].dY=OUTmtL[i].y-OUTmtL[i-1].y;
} else {
OUTmtL[i].dX=OUTmtL[i].x;
OUTmtL[i].dY=OUTmtL[i].y;
}
}
if(!OUTie) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=OUTmtNewPos;
}
}
function OUTcompMT(a, b) {
   return a.sequence - b.sequence
}
function OUTmtMove(n)
{
var curMt=null;
var i=0;
for (i=0; i<OUTmtL.length;i+=1) {
if (OUTmtL[i].name==n){curMt=OUTmtL[i]; break;};
}
if(!curMt) return null;
if(curMt.showcoords) self.status="x: "+((OUTmtXpos-curMt.mtXoff)*curMt.mtXfac)+", y: "+((OUTmtYpos-curMt.mtYoff)*curMt.mtYfac);
if(OUTie && document.body.scrollLeft!=null){OUTie5fix1=document.body.scrollLeft;OUTie5fix2=document.body.scrollTop;}
if (0 < i) {
if(curMt.keepRelDist){xPos=OUTmtL[i-1].x+curMt.dX;yPos=OUTmtL[i-1].y+curMt.dY;}
else{xPos=OUTmtL[i-1].lastX;yPos=OUTmtL[i-1].lastY;}
} else{xPos=OUTmtXpos;yPos=OUTmtYpos;}
curMt.setPos(xPos,yPos);
return curMt;
}
function OUTmtNewPos(e)
{
OUTmtXpos = OUTie ? event.clientX+OUTie5fix1 : e.pageX;
OUTmtYpos = OUTie ? event.clientY+OUTie5fix2 : e.pageY;
}

// OUT Mouse Trail Slide Action v 1.0
// Script copyright 1999, OUT Media Design GmbH. All rights reserved.
function OUTinitMTslide(a)
{
if (a[1]=='') return;
myMT=new OUTmouseTrailer("OUTmtSlideMove",a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17]);
OUTinitMouseTrail(myMT);
}
function OUTmtSlideMove(n)
{
var curMt=OUTmtMove(n);
if(!curMt) return;
CSSlideLayer(curMt.name,new Array(curMt.rX(),curMt.rY()),1,curMt.rate/10);
curMt.mtSetInterval();
}





// OUT Mouse Trail Orbit Action v 1.0
// Script copyright 1999, OUT Media Design GmbH. All rights reserved.
function OUTinitMTorbit(a)
{
if (a[1]=='') return;
myMT=new OUTmouseTrailer("OUTmtOrbitMove",a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],0,0,1,1);
myMT.master=a[14];
myMT.step=a[17];
myMT.currStep=0;
myMT.xBase=a[15];
myMT.yBase=a[16];
OUTinitMouseTrail(myMT);
}
function OUTmtOrbitMove(n)
{
var curMt=OUTmtMove(n);
if(!curMt) return;
var currStep = curMt.currStep;
var step = curMt.step;
var s=curMt.sequence;
var xPos = curMt.x + Math.sin((20*Math.sin(currStep/20))+s*70)*curMt.xBase*(Math.sin(10+currStep/10)+step)*Math.cos((currStep + s*25)/10);
var yPos = curMt.y + Math.cos((20*Math.sin(currStep/20))+s*70)*curMt.yBase*(Math.sin(10+currStep/10)+step)*Math.cos((currStep + s*25)/10);
CSSetStylePos(curMt.name,0,curMt.rvalX(xPos));
CSSetStylePos(curMt.name,1,curMt.rvalY(yPos));
if (curMt.isMaster) curMt.setPos(xPos,yPos);
curMt.currStep += curMt.step;
curMt.mtSetInterval();
}
function CSFixFct() {
var d = document; var w = window;
if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
d.location = d.location; }
}
function CSNSFix(action) { 
var d = document; var w = window;
if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
if (typeof d.cs == 'undefined') { 
d.cs = new Object;
d.cs.csFix = new Object; 
} else if (CSIsFrame (w) == true) CSFixFct();
d.cs.csFix.w = w.innerWidth;
d.cs.csFix.h = w.innerHeight; 
window.onresize = CSFixFct;
  }
}
function CSIsFrame (window) {
var rootWindow = window.parent;
if (rootWindow == 'undefined') return false;
for (i = 0; i < rootWindow.frames.length; i++)
if (window == rootWindow.frames[i]) return true;
return false;
}

// divname,反映速度,启动延缓时间,平面限制,垂直限制,水平开始坐标,水平结束坐标,垂直开始坐标,垂直结束坐标,N/A,N/A,水平偏差,垂直偏差,
CSInit[CSInit.length] = new Array(OUTinitMTslide,/*CMP*/ 'arrowv',100,100,true,true,23,7000,65,500,false,false,-50,-4,0,0,1.000000,1.000000);

