// globale Variablen function get_browser() { this.ver=navigator.appVersion this.agent=navigator.userAgent.toLowerCase() this.dom=document.getElementById?1:0 this.ns4=(!this.dom && document.layers)?1:0; this.op=window.opera this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar) this.ie=this.agent.indexOf("msie")>-1 && !this.op if(this.op) { this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it } else if(this.moz) this.ns6 = 1 else if(this.ie) { this.ie4 = !this.dom && document.all this.ie5 = (this.agent.indexOf("msie 5")>-1) this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1) this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55 } this.mac=(this.agent.indexOf("mac")>-1) this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7) this.usedom= this.ns6||this.op7//Use dom creation this.reuse = this.ie||this.op7||this.usedom //Reuse layers this.px=this.dom&&!this.op5?"px":"" return this } bw=new get_browser(); function preload(image_src) { var temp=new Image(); temp.src=image_src; return temp; } function get_pic_obj(pname,nest) { if (document.images) { if (bw.ns4 && nest!="") { return document.layers[nest].document.images[pname]; } else { return document[pname]; } } } function makePageCoords(win,fr) { if(!win) win=window if (bw.ie) this.x2=document.body.clientWidth; this.x=0;this.x2=(bw.ns4 || bw.ns6)?win.innerWidth-1:win.document.body.offsetWidth; if(!fr&&bw.ie) this.x2-=20; else if(!fr&&bw.ns4) this.x2-=4; else if(bw.ns6) this.x2+=1 this.y=0;this.y2=(bw.ns4 || bw.ns6)?win.innerHeight:win.document.body.offsetHeight; if(bw.ns4&&!win.rows) this.x2+=5; if(!fr&&bw.ie) this.y2-=4; else if(bw.ns4&&fr) this.y2+=4 this.y2orig=this.y2; this.x50=this.x2/2; this.y50=this.y2/2; return this; } function message(txt){alert(txt); return false} function pr_obj(obj,nest) { if(!bw.bw) return message('Old browser') nest=(!nest) ? "":'document.'+nest+'.' this.evnt=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0; if(!this.evnt) return message('The layer does not exist ('+obj+')'+'- \nIf your using Netscape please check the nesting of your tags!'); this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; this.ref=bw.dom||bw.ie4?document:this.css.document; this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0; this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0 this.w=this.evnt.offsetWidth||this.css.clip.width|| this.ref.width||this.css.pixelWidth||0; this.h=this.evnt.offsetHeight||this.css.clip.height|| this.ref.height||this.css.pixelHeight||0 this.c=0 //Clip values if((bw.dom || bw.ie4) && this.css.clip) { this.c=this.css.clip; this.c=this.c.slice(5,this.c.length-1); this.c=this.c.split(' '); for(var i=0;i<4;i++) { this.c[i]=parseInt(this.c[i]) } } this.ct=this.css.clip.top||this.c[0]||0; this.cr=this.css.clip.right||this.c[1]||this.w||0 this.cb=this.css.clip.bottom||this.c[2]||this.h||0; this.cl=this.css.clip.left||this.c[3]||0 this.obj = obj + "Object"; eval(this.obj + "=this") return this } pr_obj.prototype.move_by = function(x,y){this.css.left=this.x+=x; this.css.top=this.y+=y} pr_obj.prototype.move_to = function(x,y){this.css.left=x; this.css.top=y} pr_obj.prototype.show_div = function(){this.css.visibility="visible"} pr_obj.prototype.hide_div = function(){this.css.visibility="hidden"} pr_obj.prototype.sh_div = function() { if (this.css.visibility=="visible" || this.css.visibility=="show") {this.css.visibility="hidden";} else {this.css.visibility="visible";} } pr_obj.prototype.xy_in_div = function (x,y) { return (((x>this.x) && (xthis.y) && (y