/* -- Adobe GoLive JavaScript Library */ CSStopExecution=false; function CSAction(array) {return CSAction2(CSAct, array);} function CSAction2(fct, array) { var result; for (var i=0;i 0;} function CSIEStyl(s) { return document.all.tags("div")[s].style; } function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0); } CSIImg=false; function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i=5) return (new CSRect(0,0,parseInt(el.style.width),parseInt(el.style.height))); else return (new CSRect(el.clip.left,el.clip.top,el.clip.width,el.clip.height)); } function CSSetLayerClip (el,clipRect) { var l,t,r,b; l=clipRect.left; t=clipRect.top; r=l+clipRect.width; b=t+clipRect.height; if(el.isIE) { el.style.clip = "rect("+ t + " " + r + " " + b + " " + l + ")"; } else if (CSBVers>=5) el.style.clip = "rect("+ t + "px, " + r + "px, " + b + "px, " + l + "px)"; else { el.clip.left=l; el.clip.top=t; el.clip.width=clipRect.width; el.clip.height=clipRect.height; } CSSetStyleVis(el.layer); } function CSRect (left,top,width,height) { this.left=left; this.top=top; this.width=width; this.height=height; } function CSCreateTransElement (layer, steps) { var el; if (IsIE()) el=document.all.tags("div")[layer]; else if (CSBVers>=5) el=document.getElementById(layer); else el=CSNSStyl(layer); if (el==null) return null; if (el.locked && (el.locked == true)) return null; el.isIE=IsIE(); el.clipRect=CSGetLayerClip(el); if (el.clipRect==null) return null; el.maxValue=steps; if (el.maxValue<=0) el.maxValue=30; el.modus=""; el.layer=layer; el.width=el.clipRect.width; el.height=el.clipRect.height; el.locked = true; return el; } function CSDisposeTransElement (el) { el.locked = false; } function CSStartWipe (action) { var el=CSCreateTransElement (action[1], action[2]); if (el==null) return; var dir=action[3]; if (dir=="_inLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";} else if (dir=="_inRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";} else if (dir=="_outLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";} else if (dir=="_outRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";} else if (dir=="_inTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";} else if (dir=="_inBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";} else if (dir=="_outTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";} else if (dir=="_outBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";} else if (dir=="_inCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="in";} else if (dir=="_outCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="out";} if (el.modus=="") return; el.currentValue=0; el.glDir=action[3]; CSStartFunction(CSDoWipe,el); } function CSDoWipe (info) { var el = info.data; if (el==null) return false; if (el.currentValue==el.maxValue) { CSFinishWipe(el); return false; } var r = new CSRect(el.clipRect.left,el.clipRect.top,el.clipRect.width,el.clipRect.height); var dir=el.glDir; if (dir=="_inLeft") {r.left=r.width-el.currentValue*el.steps;} else if (dir=="_inTop") {r.top=r.height-el.currentValue*el.steps;} else if (dir=="_inRight") {r.width=el.currentValue*el.steps;} else if (dir=="_inBottom") {r.height=el.currentValue*el.steps;} else if (dir=="_outLeft") {r.width=r.width-el.currentValue*el.steps;} else if (dir=="_outTop") {r.height=r.height-el.currentValue*el.steps;} else if (dir=="_outRight") {r.left=el.currentValue*el.steps;} else if (dir=="_outBottom") {r.top=el.currentValue*el.steps;} else if (dir=="_inCenter") {r=CSCenterRectIn(el,r);} else if (dir=="_outCenter") {r=CSCenterRectOut(el,r);} CSSetLayerClip(el,r); el.currentValue+=1; return true; } function CSFinishWipe (el) { if (el.modus=="in") CSSetLayerClip(el,el.clipRect); else { el.clipRect=new CSRect(0,0,el.width,el.height); CSSetLayerClip(el,el.clipRect); CSSetStyleVis(el.layer,0); } CSDisposeTransElement(el); } function CSCenterRectIn(el,r) { var hValue= el.currentValue*el.HSteps/2; var vValue= el.currentValue*el.VSteps/2; r.left=Math.round(r.left+r.width/2-hValue); r.top=Math.round(r.top+r.height/2-vValue); r.width=Math.round(hValue*2); r.height=Math.round(vValue*2); return r; } function CSCenterRectOut(el,r) { var hValue= el.currentValue*el.HSteps/2; var vValue= el.currentValue*el.VSteps/2; r.left+=Math.round(hValue); r.top+=Math.round(vValue); r.width-=Math.round(hValue*2); r.height-=Math.round(vValue*2); return r; } function CSGotoLink(action) { if (action[2].length) { var hasFrame=false; for(i=0;i=5) { leftH = ".left"; topV = ".top"; nndoc = "document.getElementById(layername).style"; iestyle = ""; offsetH = "window.pageXOffset"; offsetV = "window.pageYOffset"; } else if (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) >=4) { leftH = ".left"; topV = ".top"; nndoc = "document."; iestyle = ""; offsetH = "window.pageXOffset"; offsetV = "window.pageYOffset"; } else if (navigator.appName == "Microsoft Internet Explorer") { leftH = ".pixelLeft"; topV = ".pixelTop"; nndoc = ""; iestyle = "document.getElementById(layername).style"; offsetH = "document.body.scrollLeft"; offsetV = "document.body.scrollTop"; } function getnewPos() { var currentH = eval(offsetH); var currentV = eval(offsetV); x = parseInt(currentH) + parseInt(xpos); y = parseInt(currentV) + parseInt(ypos); moveLayer(); setTimeout("getnewPos()",10) } function CSFloatLayer(action) { layername = action[1]; ypos = action[2]; xpos = action[3]; if (navigator.appVersion.charAt(0) >=5 || navigator.appName == "Microsoft Internet Explorer") { leftPos = eval(nndoc + iestyle + leftH); topPos = eval(nndoc + iestyle + topV); } else { leftPos = eval(nndoc + layername + iestyle + leftH); topPos = eval(nndoc + layername + iestyle + topV); } getnewPos() } function moveLayer() { if (navigator.appVersion.charAt(0) >=5 || navigator.appName == "Microsoft Internet Explorer") { eval(nndoc + iestyle + topV + "=" + y); eval(nndoc + iestyle + leftH + "=" + x); } else { eval(nndoc + layername + iestyle + topV + "=" + y); eval(nndoc + layername + iestyle + leftH + "=" + x); } }