//===============Rubel-Script================ if(document.layers) {ns=1; ie=0;} else {ns=0; ie=1;} var a = 0; var b = 1; var c = 2; var a1 = 3; var b1 = 4; var c1 = 5; var a2 = 6; var b2 = 7; var c2 = 8; var z = 0; var ok=0; var r=20; // radius var pi=Math.PI; // pi var a3=-1; // Startwinkel var kreis; var looping; var zaehle=0; var sp = 0; var nl; var no; var stoprbot; var num2=0; var num1=0; var Watch=0; var stopp; var getSch=0; var her; var nameX; /*########## Fenster zur Version +rosebur no. 1 ########################*/ function VersNo1(){ window.open('../alt/vers4/cont.html','pessentation',"width=721,height=495,resize=no");} /*########## Ladevorgang Startseite ########################*/ function lade(){ ++num1; if(num1==4){ lade2(); num1=0;}} function lade2(){ ++num2; var z='zahl'; var name=z+num2; if(ns)document.layers[name].visibility="show"; if(ie)document.all[name].style.visibility="visible"; if(num2==15){ for(var i=1; i<=16; i++){ var m='zahl'+i; if(ns)document.layers[m].visibility="hidden"; if(ie)document.all[m].style.visibility="hidden";} if(ns)document.layers.retro.visibility="show"; if(ie)document.all.retro.style.visibility="visible"; setTimeout('fenster()',2500);}} function fenster(){window.open("ruble.html","","width=720,height=500,onresize=no");} /*########## Bild freirubbeln ########################*/ function Rubbel(name){++Watch; if(ns)document.layers[name].visibility="hidden"; if(ie)document.all[name].style.visibility="hidden"; if(Watch==100)self.document.location="first.html"} /*(Watch==100) habe ich von 30 auf 100 gestellt kann so nicht automatisch auf die nächste Seite springen. zurück auf 30 und die nächste Seite wird automatisch geladen.*/ /*########## OnMouseover Navigation ########################*/ function Nav(nameA,nameB){ if(ns){document.layers.nav.document.layers[nameA].visibility="show"; document.layers.nav.document.layers[nameB].visibility="hidden";} if(ie){document.all[nameA].style.visibility="visible"; document.all[nameB].style.visibility="hidden";}} /*########## Unternavigation Retro ########################*/ function Navre(nameA,nameB){ if(ns){document.layers[nameA].visibility="show"; document.layers[nameB].visibility="hidden";} if(ie){document.all[nameA].style.visibility="visible"; document.all[nameB].style.visibility="hidden";}} /*########## Automatische Seitenweiterschaltung nach 5 Sekunden ########################*/ function Weiter(a){ self.document.location="retro"+a+".html";} /*########## Einblendung der Bilder unter Retro-Zeichen ########################*/ function Zeichen() {looping=setInterval('Zeichen2()',500);} function Zeichen2(){ var xx='bild'; ++zaehle; YY=xx+zaehle; if(ns)document.layers[YY].visibility="show"; if(ie)document.all[YY].style.visibility="visible"; if(zaehle==4){clearInterval(looping); setTimeout('Weiter(5)',2000)}} /*########## Glückspiel ########################*/ var bilder = new Array(); bilder[0] = "images/gs_01.gif"; bilder[1] = "images/gs_07.gif"; bilder[2] = "images/gs_04.gif"; bilder[3] = "images/gs_02.gif"; bilder[4] = "images/gs_07.gif"; bilder[5] = "images/gs_05.gif"; bilder[6] = "images/gs_03.gif"; bilder[7] = "images/gs_07.gif"; bilder[8] = "images/gs_06.gif"; /*-------------Funktion: Bilderzuweisung----------*/ function bilderwechsel(){ if(ns){document['r1bild1'].document.images['bild1_1'].src = bilder[a]; document['r1bild2'].document.images['bild1_2'].src = bilder[b]; document['r1bild3'].document.images['bild1_3'].src = bilder[c]; document['r2bild1'].document.images['bild2_1'].src = bilder[a1]; document['r2bild2'].document.images['bild2_2'].src = bilder[b1]; document['r2bild3'].document.images['bild2_3'].src = bilder[c1]; document['r3bild1'].document.images['bild3_1'].src = bilder[a2]; document['r3bild2'].document.images['bild3_2'].src = bilder[b2]; document['r3bild3'].document.images['bild3_3'].src = bilder[c2];} if(ie){document.images['bild1_1'].src = bilder[a]; document.images['bild1_2'].src = bilder[b]; document.images['bild1_3'].src = bilder[c]; document.images['bild2_1'].src = bilder[a1]; document.images['bild2_2'].src = bilder[b1]; document.images['bild2_3'].src = bilder[c1]; document.images['bild3_1'].src = bilder[a2]; document.images['bild3_2'].src = bilder[b2]; document.images['bild3_3'].src = bilder[c2];}} /*---Funktion: Reihenfolge der Bilder und Zeitangabe ---*/ function reihenfolge(){a = a+1; if (a>2) a=0; b = b+1; if (b>2) b=0; c = c+1; if (c>2) c=0; c1 = c1-1; if (c1<3) c1=5; b1 = b1-1; if (b1<3) b1=5; a1 = a1-1; if (a1<3) a1=5; a2 = a2+1; if (a2>8) a2=6; b2 = b2+1; if (b2>8) b2=6; c2 = c2+1; if (c2>8) c2=6; bilderwechsel(); z+=3; if (z <= 150){setTimeout('reihenfolge()',z)} else{a=0; b=1; c=2; a1=3; b1=4; c1=5; a2=6; b2=7; c2=8; bilderwechsel(); setTimeout('Blink()',500);}} /*------- Sterne blinken --------------*/ function Blink(){ if(ok==0 || ok==2 || ok==4) x='hidden'; if(ok==1 || ok==3 || ok==5 || ok==6){ if(ns) x='show'; if(ie) x='visible';} if(ns){document.layers.r1bild2.visibility=x; document.layers.r2bild2.visibility=x; document.layers.r3bild2.visibility=x;} if(ie){document.all.r1bild2.style.visibility=x; document.all.r2bild2.style.visibility=x; document.all.r3bild2.style.visibility=x;} ++ok; stop=setTimeout('Blink()',500); if(ok==6){clearTimeout(stop); setTimeout('Weiter(6)',1500);}} /*########### Fernseh-Satelit schwebt ####################*/ function rotation (){a3++; if(ns){window.document.feedback.left=(r * Math.cos((a3+80)*(pi/90))) + 100; window.document.feedback.top=(r * Math.sin((a3+80)*(pi/90))) + 150;} if(ie){document.all.feedback.style.left= z = (r * Math.cos((a3+80)*(pi/90))) + 100; document.all.feedback.style.top=(r * Math.sin((a3+80)*(pi/90))) + 150;} kreis = window.setTimeout('rotation()', 250);} /*########### Robo ruettelt ####################*/ var links = new Array() links[0] = 456; links[1] = 446; links[2] = 466; links[3] = 466; links[4] = 476; links[5] = 456; var oben = new Array() oben[0] = 160; oben[1] = 150; oben[2] = 140; oben[3] = 150; oben[4] = 150; oben[5] = 160; function schuettel() {stoprbot=setInterval('robot()',75);} function robot(){ ++sp; nl=links[sp]; no=oben[sp]; if(ns){document.layers.bild.left=nl; document.layers.bild.top=no;} if(ie){document.all.bild.style.left=nl; document.all.bild.style.top=no;} if(sp==4) sp=0;} /*########### Order Button blinkt ####################*/ function order(a){nameX=a; stopp=setInterval('orderBlinkt()',750);} function orderBlinkt(){ ++getSch; if(getSch==1){ if(ns)her='show'; if(ie)her='visible';} if(getSch==2){her='hidden'; getSch=0;} if(ns)document.layers.nav.document.layers[nameX].visibility = her; if(ie)document.all[nameX].style.visibility = her;} function SkillFenster(){ self.window.close(); window.open('http://www.skillflow.de','skillflow','noresize,width=780,height=400');} /*########### Mousezeiger ####################*/ image_used = "schwamm.gif"; // Filename of the image width_of_image = 74; height_of_image = 52; //===============Schwamm-Script================ ns4 = (document.layers)? true:false ie4 = (document.all)? true:false function onerror() { location.href="javascript:" } function DynLayer(id,nestref) { if (ns4) { this.css = (nestref)? eval("document."+nestref+".document."+id) : document.layers[id] this.x = this.css.left this.y = this.css.top } else if (ie4) { this.css = document.all[id].style this.x = this.css.pixelLeft this.y = this.css.pixelTop } this.show = DynLayerShow this.hide = DynLayerHide this.addon = DynLayerAddon this.addon(id,nestref) } function DynLayerMoveTo(x,y) { if (x!=null) { this.x = x this.css.left = this.x } if (y!=null) { this.y = y this.css.top = this.y } } function DynLayerMoveBy(x,y) { this.moveTo(this.x+x,this.y+y) } function DynLayerShow() { this.css.visibility = (ns4)? "show" : "visible" } function DynLayerHide() { this.css.visibility = (ns4)? "hide" : "hidden" } function DynLayerAddon(id,nestref) { this.id = id this.nestref = nestref this.w = (ns4)? this.css.clip.width : this.css.pixelWidth this.h = (ns4)? this.css.clip.height : this.css.pixelHeight this.doc = (ns4)? this.css.document : document this.event = (ns4)? this.css : document.all[id] this.obj = id + "DynLayer" eval(this.obj + "=this") this.moveTo = DynLayerMoveTo this.moveBy = DynLayerMoveBy this.slideTo = DynLayerSlideTo this.slideBy = DynLayerSlideBy this.slideStart = DynLayerSlideStart this.slide = DynLayerSlide } function DynLayerSlideTo(endx,endy,inc,speed,fn) { if (endx==null) endx = this.x if (endy==null) endy = this.y var distx = endx-this.x var disty = endy-this.y this.slideStart(endx,endy,distx,disty,inc,speed,fn) } function DynLayerSlideBy(distx,disty,inc,speed,fn) { var endx = this.x + distx var endy = this.y + disty this.slideStart(endx,endy,distx,disty,inc,speed,fn) } function DynLayerSlideStart(endx,endy,distx,disty,inc,speed,fn) { if (this.slideActive) return var num = Math.sqrt(Math.pow(distx,2) + Math.pow(disty,2))/inc var dx = distx/num var dy = disty/num if (!fn) fn = null this.slideActive = true this.slide(dx,dy,endx,endy,num,1,speed,fn) } function DynLayerSlide(dx,dy,endx,endy,num,i,speed,fn) { if (!this.slideActive) return if (i++ < num) { this.moveBy(dx,dy) setTimeout(this.obj+".slide("+dx+","+dy+","+endx+","+endy+","+num+","+i+","+speed+",\""+fn+"\")",speed) } else { this.slideActive = false this.moveTo(endx,endy) eval(fn) } } function createLayer(id,nestref,left,top,width,height,content,bgColor,visibility,zIndex) { if (ns4) { if (nestref) { var lyr = eval("document."+nestref+".document."+id+" = new Layer(width, document."+nestref+")") } else { var lyr = document.layers[id] = new Layer(width) eval("document."+id+" = lyr") } lyr.left = left lyr.top = top if (height!=null) lyr.clip.height = height if (bgColor!=null) lyr.bgColor = bgColor lyr.visibility = (visibility=='hidden')? 'hide' : 'show' if (zIndex!=null) lyr.zIndex = zIndex if (content) { lyr.document.open() lyr.document.write(content) lyr.document.close() } } else if (ie4) { var str = '\n
'+((content)?content:'')+'
' if (nestref) { index = nestref.lastIndexOf(".") var nestlyr = (index != -1)? nestref.substr(index+1) : nestref document.all[nestlyr].insertAdjacentHTML("BeforeEnd",str); } else { document.body.insertAdjacentHTML("BeforeEnd",str) } } } function init() { if (ns4 || ie4) { document.onmousemove = mouseMove if (ns4) document.captureEvents(Event.MOUSEMOVE) createLayer("cursorDiv",null,-1*(width_of_image),-1*(height_of_image),width_of_image,height_of_image,"",null,null,8); cursor = new DynLayer("cursorDiv"); } } function mouseMove(e) { var x = (ns4)? e.pageX : event.x var y = (ns4)? e.pageY : event.y+document.body.scrollTop cursor.moveTo(x+1,y+1); }