// dynlayer Begin
// Dynamic Layer Object
// sophisticated layer/element targeting and animation object which provides the core functionality needed in most DHTML applications 19990604
// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

function Aufloesung()
{
var w = "";
if (window.screen) 
{ 
var w=screen.width 
}
return (w);
} 

function MM_reloadPage(init) 
{  
//reloads the window if Nav4 resized
 if (init==true) with (navigator) 
{if ((appName==Netscape)&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

if (document.images) {
	image1on = new Image();
	image1on.src = "images/button_main_over.gif";
	image2on = new Image();
	image2on.src = "images/button_promotions_over.gif";
	image3on = new Image();
	image3on.src = "images/button_reviews_over.gif";
	image4on = new Image();
	image4on.src = "images/button_products_over.gif";
	image5on = new Image();
	image5on.src = "images/button_support_over.gif";

	image1off = new Image();
	image1off.src = "images/button_main.gif";
	image2off = new Image();
	image2off.src = "images/button_promotions.gif";
	image3off = new Image();
	image3off.src = "images/button_reviews.gif";
	image4off = new Image();
	image4off.src = "images/button_products.gif";
	image5off = new Image();
	image5off.src = "images/button_support.gif";
}
function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		}
	}
}

function DynLayer(id,nestref,frame) {
	if (!is.ns5 && !DynLayer.set && !frame) DynLayerInit()
	this.frame = frame || self
	if (is.ns) {
		if (is.ns4) {
			if (!frame) {
				if (!nestref) var nestref = DynLayer.nestRefArray[id]
				if (!DynLayerTest(id,nestref)) return
				this.css = (nestref)? eval("document."+nestref+".document."+id) : document.layers[id]
			}
			else this.css = (nestref)? eval("frame.document."+nestref+".document."+id) : frame.document.layers[id]
			this.elm = this.event = this.css
			this.doc = this.css.document
		}
		else if (is.ns5) {
			this.elm = document.getElementById(id)
			this.css = this.elm.style
			this.doc = document
		}
		this.x = this.css.left
		this.y = this.css.top
		this.w = this.css.clip.width
		this.h = this.css.clip.height
	}
	else if (is.ie) {
		this.elm = this.event = this.frame.document.all[id]
		this.css = this.frame.document.all[id].style
		this.doc = document
		this.x = this.elm.offsetLeft
		this.y = this.elm.offsetTop
		this.w = (is.ie4)? this.css.pixelWidth : this.elm.offsetWidth
		this.h = (is.ie4)? this.css.pixelHeight : this.elm.offsetHeight
	}
	this.id = id
	this.nestref = nestref
	this.obj = id + "DynLayer"
	eval(this.obj + "=this")
}
function DynLayerMoveTo(x,y) {
	if (x!=null) {
		this.x = x
		if (is.ns) this.css.left = this.x
		else this.css.pixelLeft = this.x
	}
	if (y!=null) {
		this.y = y
		if (is.ns) this.css.top = this.y
		else this.css.pixelTop = this.y
	}
}
function DynLayerMoveBy(x,y) {
	this.moveTo(this.x+x,this.y+y)
}
function DynLayerShow() {
	this.css.visibility = (is.ns4)? "show" : "visible"
}
function DynLayerHide() {
	this.css.visibility = (is.ns4)? "hide" : "hidden"
}
DynLayer.prototype.moveTo = DynLayerMoveTo
DynLayer.prototype.moveBy = DynLayerMoveBy
DynLayer.prototype.show = DynLayerShow
DynLayer.prototype.hide = DynLayerHide
DynLayerTest = new Function('return true')

// DynLayerInit Function
function DynLayerInit(nestref) {
	if (!DynLayer.set) DynLayer.set = true
	if (is.ns) {
		if (nestref) ref = eval('document.'+nestref+'.document')
		else {nestref = ''; ref = document;}
		for (var i=0; i<ref.layers.length; i++) {
			var divname = ref.layers[i].name
			DynLayer.nestRefArray[divname] = nestref
			var index = divname.indexOf("Div")
			if (index > 0) {
				eval(divname.substr(0,index)+' = new DynLayer("'+divname+'","'+nestref+'")')
			}
			if (ref.layers[i].document.layers.length > 0) {
				DynLayer.refArray[DynLayer.refArray.length] = (nestref=='')? ref.layers[i].name : nestref+'.document.'+ref.layers[i].name
			}
		}
		if (DynLayer.refArray.i < DynLayer.refArray.length) {
			DynLayerInit(DynLayer.refArray[DynLayer.refArray.i++])
		}
	}
	else if (is.ie) {
		for (var i=0; i<document.all.tags("DIV").length; i++) {
			var divname = document.all.tags("DIV")[i].id
			var index = divname.indexOf("Div")
			if (index > 0) {
				eval(divname.substr(0,index)+' = new DynLayer("'+divname+'")')
			}
		}
	}
	return true
}
DynLayer.nestRefArray = new Array()
DynLayer.refArray = new Array()
DynLayer.refArray.i = 0
DynLayer.set = false

// Slide Methods
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
	if (!inc) inc = 10
	if (!speed) speed = 20
	var num = Math.sqrt(Math.pow(distx,2) + Math.pow(disty,2))/inc
	if (num==0) return
	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)
		this.onSlide()
		if (this.slideActive) setTimeout(this.obj+".slide("+dx+","+dy+","+endx+","+endy+","+num+","+i+","+speed+",\""+fn+"\")",speed)
		else this.onSlideEnd()
	}
	else {
		this.slideActive = false
		this.moveTo(endx,endy)
		this.onSlide()
		this.onSlideEnd()
		eval(fn)
	}
}
function DynLayerSlideInit() {}
DynLayer.prototype.slideInit = DynLayerSlideInit
DynLayer.prototype.slideTo = DynLayerSlideTo
DynLayer.prototype.slideBy = DynLayerSlideBy
DynLayer.prototype.slideStart = DynLayerSlideStart
DynLayer.prototype.slide = DynLayerSlide
DynLayer.prototype.onSlide = new Function()
DynLayer.prototype.onSlideEnd = new Function()

// Clip Methods
function DynLayerClipInit(clipTop,clipRight,clipBottom,clipLeft) {
	if (is.ie) {
		if (arguments.length==4) this.clipTo(clipTop,clipRight,clipBottom,clipLeft)
		else if (is.ie4) this.clipTo(0,this.css.pixelWidth,this.css.pixelHeight,0)
	}
}
function DynLayerClipTo(t,r,b,l) {
	if (t==null) t = this.clipValues('t')
	if (r==null) r = this.clipValues('r')
	if (b==null) b = this.clipValues('b')
	if (l==null) l = this.clipValues('l')
	if (is.ns) {
		this.css.clip.top = t
		this.css.clip.right = r
		this.css.clip.bottom = b
		this.css.clip.left = l
	}
	else if (is.ie) this.css.clip = "rect("+t+"px "+r+"px "+b+"px "+l+"px)"
}
function DynLayerClipBy(t,r,b,l) {
	this.clipTo(this.clipValues('t')+t,this.clipValues('r')+r,this.clipValues('b')+b,this.clipValues('l')+l)
}
function DynLayerClipValues(which) {
	if (is.ie) var clipv = this.css.clip.split("rect(")[1].split(")")[0].split("px")
	if (which=="t") return (is.ns)? this.css.clip.top : Number(clipv[0])
	if (which=="r") return (is.ns)? this.css.clip.right : Number(clipv[1])
	if (which=="b") return (is.ns)? this.css.clip.bottom : Number(clipv[2])
	if (which=="l") return (is.ns)? this.css.clip.left : Number(clipv[3])
}
DynLayer.prototype.clipInit = DynLayerClipInit
DynLayer.prototype.clipTo = DynLayerClipTo
DynLayer.prototype.clipBy = DynLayerClipBy
DynLayer.prototype.clipValues = DynLayerClipValues

// Write Method
function DynLayerWrite(html) {
	if (is.ns) {
		this.doc.open()
		this.doc.write(html)
		this.doc.close()
	}
	else if (is.ie) {
		this.event.innerHTML = html
	}
}
DynLayer.prototype.write = DynLayerWrite

// BrowserCheck Object
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()

// CSS Function
function css(id,left,top,width,height,color,vis,z,other) {
	if (id=="START") return '<STYLE TYPE="text/css">\n'
	else if (id=="END") return '</STYLE>'
	var str = (left!=null && top!=null)? '#'+id+' {position:absolute; left:'+left+'px; top:'+top+'px;' : '#'+id+' {position:relative;'
	if (arguments.length>=4 && width!=null) str += ' width:'+width+'px;'
	if (arguments.length>=5 && height!=null) {
		str += ' height:'+height+'px;'
		if (arguments.length<9 || other.indexOf('clip')==-1) str += ' clip:rect(0px '+width+'px '+height+'px 0px);'
	}
	if (arguments.length>=6 && color!=null) str += (is.ns)? ' layer-background-color:'+color+';' : ' background-color:'+color+';'
	if (arguments.length>=7 && vis!=null) str += ' visibility:'+vis+';'
	if (arguments.length>=8 && z!=null) str += ' z-index:'+z+';'
	if (arguments.length==9 && other!=null) str += ' '+other
	str += '}\n'
	return str
}
function writeCSS(str,showAlert) {
	str = css('START')+str+css('END')
	document.write(str)
	if (showAlert) alert(str)
}

// dynlayer End

// checkbrowser Begin
beginRollover = false;// This handles a bug in Nav4.0x that executes the code too quickly.

var isNav4, isIE4, isIE3, isNav3;
var extrajsload = 1;
var range = "";
var styleRef = "";
//check browser and set values
if (navigator.appVersion.charAt(0) >= "4") {
        if (navigator.appName == "Netscape") {
		if (navigator.appVersion.charAt(0) == "5") {
                	layerRef = "document.getElementsByTagName('*')";
        	        styleRef = "";
	                insideWindowWidth = window.innerWidth;
                	isNav4 = true;
                	isIE3 = isNav3 = isIE4 = true;
		} else {
	                isNav4 = true;
                	layerRef = "document.layers";
        	        styleRef = "";
	                insideWindowWidth = window.innerWidth;
                	isIE3 = isNav3 = isIE4 = false;
		}
        } else {
                isIE4 = true;
                layerRef = "document.all";
                styleRef = ".style";
                range = "all.";
                isIE3 = isNav4 = isNav3 = false;
        }
} else if (navigator.appVersion.charAt(0) < "4") {
        if (navigator.appName == "Netscape") {
                isNav3 = true;
                isIE3 = isNav4 = isIE4 = false;
        } else {
                isIE3 = true;
                isNav3 = isIE4 = isNav4 = false;
        }
}

function setAd(){}
// checkbrowser End

function atOnMouseOverLight(o) {

	o.style.backgroundColor = '8E9396';
	o.style.cursor = 'hand';
}

function atOnMouseOutLight(o) {

	o.style.backgroundColor = 'EEEEEE';
}

function atOnMouseOutLight2(o) {

	o.style.backgroundColor = 'AEAEAE';
}

function atOnMouseOverDark(o) {

	o.style.backgroundColor='BCD6E3';
	o.style.cursor='hand';
}

function atOnMouseOutDark(o) {

	o.style.backgroundColor='FFFFFF';
}

// popup.js Begin
// Main background color (the large area)
	if (typeof fcolor == 'undefined') { var fcolor = "#323232";}
	
// Border color and color of caption
	if (typeof backcolor == 'undefined') { var backcolor = "#DDDDDD";}
	
// Text color
	if (typeof textcolor == 'undefined') { var textcolor = "#FFFFFF";}
	
// Color of the caption text
	if (typeof capcolor == 'undefined') { var capcolor = "#000000";}
	
// Color of "Close" when using Sticky
	if (typeof closecolor == 'undefined') { var closecolor = "#9999FF";}
	
// Width of the popups in pixels
	if (typeof width == 'undefined') { var width = "200";}
	
// How thick the border should be in pixels
	if (typeof border == 'undefined') { var border = "1";}
	
// How many pixels to the right/left of the cursor to show the popup
	if (typeof offsetx == 'undefined') { var offsetx = -100;}
	
// How many pixels to the below the cursor to show the popup
	if (typeof offsety == 'undefined') { var offsety = 20;}

function setleft() {
	offsetx = 0;
	}
function setright() {
	offsetx = -200;
	}

ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;


// Microsoft Stupidity Check.
if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		ie5 = true;
	} else {
		ie5 = false; 
	}
} else {
	ie5 = false;
}

var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;
var dir = 1;
var tr = 1;
var over = 1;

function overinit() {
	if ( (ns4) || (ie4) ) {
		if (ns4) over = document.overDiv;
		if (ie4) over = overDiv.style;
		document.onmousemove = mouseMove;
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
	}
}

// Caption popup right
function drc(text, title) {
	dtc(1,text,title);
}


// Caption popup
function dtc(d,text, title) {
	txt = "<TABLE WIDTH="+width+" BORDER=0 CELLPADDING="+border+" CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><SPAN ID=\"PTT\"><B><FONT FACE=\"Verdana,Arial,Helvetica\" COLOR=\""+capcolor+"\" SIZE=\"1\">"+title+"</FONT></B></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD><SPAN ID=\"PST\"><FONT FACE=\"Verdana,Arial,Helvetica\" COLOR=\""+textcolor+"\" SIZE=\"1\">"+text+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>";
	layerWrite(txt);
	dir = d;
	disp();
}

// Common calls
function disp() {
	if ( (ns4) || (ie4) ) {
		if (snow == 0) 	{
			if (dir == 2) { // Center
				moveTo(over,x+offsetx-(width/2),y+offsety);
			}
			if (dir == 1) { // Right
				moveTo(over,x+offsetx,y+offsety);
			}
			if (dir == 0) { // Left
				moveTo(over,x-offsetx-width,y+offsety);
			}
			showObject(over);
			snow = 1;
		}
	}
}
	
function layerWrite(txt) {
        if (ns4) {
                var lyr = document.overDiv.document;
                lyr.write(txt);
                lyr.close();
        }
        else if (ie4) document.all["overDiv"].innerHTML = txt;
		if (tr) { trk(); }
}

function mouseMove(e) {
	if (ns4) {x=e.pageX; y=e.pageY;}
	if (ie4) {x=event.x; y=event.y;}
	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
	if (snow) {
		if (dir == 2) { // Center
			moveTo(over,x+offsetx-(width/2),y+offsety);
		}
		if (dir == 1) { // Right
			moveTo(over,x+offsetx,y+offsety);
		}
		if (dir == 0) { // Left
			moveTo(over,x-offsetx-width,y+offsety);
		}
	}
}

function nd() {
	if ( cnt >= 1 ) { sw = 0 };
	if ( (ns4) || (ie4) ) {
		if ( sw == 0 ) {
			snow = 0;
			hideObject(over);
		} else {
			cnt++;
		}
	}
}

function trk() {
	if ( (ns4) || (ie4) ) {
			
	}
	tr = 0;
}

function showObject(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
}

function hideObject(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
}

function moveTo(obj,xL,yL) {
        obj.left = xL
        obj.top = yL
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_dragLayer(objName,x,hL,hT,hW,hH,toFront,dropBack,cU,cD,cL,cR,targL,targT,tol,dropJS,et,dragJS) { //v3.0
  		//Copyright 1998 Macromedia, Inc. All rights reserved.
  		var i,j,aLayer,retVal,curDrag=null,NS=(navigator.appName=='Netscape'), curLeft, curTop;
  		if (!document.all && !document.layers) return false;
  		retVal = true; if(!NS && event) event.returnValue = true;
  		if (MM_dragLayer.arguments.length > 1) {
    		curDrag = MM_findObj(objName); if (!curDrag) return false;
    		if (!document.allLayers) { document.allLayers = new Array();
      		with (document) if (NS) { for (i=0; i<layers.length; i++) allLayers[i]=layers[i];
        	for (i=0; i<allLayers.length; i++) if (allLayers[i].document && allLayers[i].document.layers)
          	with (allLayers[i].document) for (j=0; j<layers.length; j++) allLayers[allLayers.length]=layers[j];
      		} else for (i=0;i<all.length;i++) if (all[i].style&&all[i].style.position) allLayers[allLayers.length]=all[i];}
    		curDrag.MM_dragOk=true; curDrag.MM_targL=targL; curDrag.MM_targT=targT;
    		curDrag.MM_tol=Math.pow(tol,2); curDrag.MM_hLeft=hL; curDrag.MM_hTop=hT;
    		curDrag.MM_hWidth=hW; curDrag.MM_hHeight=hH; curDrag.MM_toFront=toFront;
    		curDrag.MM_dropBack=dropBack; curDrag.MM_dropJS=dropJS;
    		curDrag.MM_everyTime=et; curDrag.MM_dragJS=dragJS;
    		curDrag.MM_oldZ = (NS)?curDrag.zIndex:curDrag.style.zIndex;
   		curLeft= (NS)?curDrag.left:curDrag.style.pixelLeft; curDrag.MM_startL = curLeft;
    		curTop = (NS)?curDrag.top:curDrag.style.pixelTop; curDrag.MM_startT = curTop;
    		curDrag.MM_bL=(cL<0)?null:curLeft-cL; curDrag.MM_bT=(cU<0)?null:curTop -cU;
    		curDrag.MM_bR=(cR<0)?null:curLeft+cR; curDrag.MM_bB=(cD<0)?null:curTop +cD;
    		curDrag.MM_LEFTRIGHT=0; curDrag.MM_UPDOWN=0; curDrag.MM_SNAPPED=false; //use in your JS!
    		document.onmousedown = MM_dragLayer; document.onmouseup = MM_dragLayer;
    		if (NS) document.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  		} else {
   		var theEvent = ((NS)?objName.type:event.type);
    		if (theEvent == 'mousedown') {
      		var mouseX = (NS)?objName.pageX : event.clientX + document.body.scrollLeft;
      		var mouseY = (NS)?objName.pageY : event.clientY + document.body.scrollTop;
      		var maxDragZ=null; document.MM_maxZ = 0;
      		for (i=0; i<document.allLayers.length; i++) { aLayer = document.allLayers[i];
        	var aLayerZ = (NS)?aLayer.zIndex:aLayer.style.zIndex;
        	if (aLayerZ > document.MM_maxZ) document.MM_maxZ = aLayerZ;
        	var isVisible = (((NS)?aLayer.visibility:aLayer.style.visibility).indexOf('hid') == -1);
        	if (aLayer.MM_dragOk != null && isVisible) with (aLayer) {
          	var parentL=0; var parentT=0;
          	if (!NS) { parentLayer = aLayer.parentElement;
            	while (parentLayer != null && parentLayer.style.position) {
              	parentL += parentLayer.offsetLeft; parentT += parentLayer.offsetTop;
              	parentLayer = parentLayer.parentElement; } }
          	var tmpX=mouseX-(((NS)?pageX:style.pixelLeft+parentL)+MM_hLeft);
          	var tmpY=mouseY-(((NS)?pageY:style.pixelTop +parentT)+MM_hTop);
          	var tmpW = MM_hWidth;  if (tmpW <= 0) tmpW += ((NS)?clip.width :offsetWidth);
          	var tmpH = MM_hHeight; if (tmpH <= 0) tmpH += ((NS)?clip.height:offsetHeight);
          	if ((0 <= tmpX && tmpX < tmpW && 0 <= tmpY && tmpY < tmpH) && (maxDragZ == null
              	|| maxDragZ <= aLayerZ)) { curDrag = aLayer; maxDragZ = aLayerZ; } } }
      		if (curDrag) {
        	document.onmousemove = MM_dragLayer; if (NS) document.captureEvents(Event.MOUSEMOVE);
        	curLeft = (NS)?curDrag.left:curDrag.style.pixelLeft;
        	curTop = (NS)?curDrag.top:curDrag.style.pixelTop;
        	MM_oldX = mouseX - curLeft; MM_oldY = mouseY - curTop;
        	document.MM_curDrag = curDrag;  curDrag.MM_SNAPPED=false;
        	if(curDrag.MM_toFront) {
          	eval('curDrag.'+((NS)?'':'style.')+'zIndex=document.MM_maxZ+1');
          	if (!curDrag.MM_dropBack) document.MM_maxZ++; }
        	retVal = false; if(!NS) event.returnValue = false;
    		} } else if (theEvent == 'mousemove') {
      		if (document.MM_curDrag) with (document.MM_curDrag) {
        	var mouseX = (NS)?objName.pageX : event.clientX + document.body.scrollLeft;
        	var mouseY = (NS)?objName.pageY : event.clientY + document.body.scrollTop;
        	newLeft = mouseX-MM_oldX; newTop  = mouseY-MM_oldY;
        	if (MM_bL!=null) newLeft = Math.max(newLeft,MM_bL);
        	if (MM_bR!=null) newLeft = Math.min(newLeft,MM_bR);
        	if (MM_bT!=null) newTop  = Math.max(newTop ,MM_bT);
        	if (MM_bB!=null) newTop  = Math.min(newTop ,MM_bB);
        	MM_LEFTRIGHT = newLeft-MM_startL; MM_UPDOWN = newTop-MM_startT;
        	if (NS) {left = newLeft; top = newTop;}
        	else {style.pixelLeft = newLeft; style.pixelTop = newTop;}
        	if (MM_dragJS) eval(MM_dragJS);
        	retVal = false; if(!NS) event.returnValue = false;
   		 } } else if (theEvent == 'mouseup') {
      		document.onmousemove = null;
      		if (NS) document.releaseEvents(Event.MOUSEMOVE);
      		if (NS) document.captureEvents(Event.MOUSEDOWN); //for mac NS
      		if (document.MM_curDrag) with (document.MM_curDrag) {
        	if (typeof MM_targL =='number' && typeof MM_targT == 'number' &&
            	(Math.pow(MM_targL-((NS)?left:style.pixelLeft),2)+
             	Math.pow(MM_targT-((NS)?top:style.pixelTop),2))<=MM_tol) {
          	if (NS) {left = MM_targL; top = MM_targT;}
          	else {style.pixelLeft = MM_targL; style.pixelTop = MM_targT;}
          	MM_SNAPPED = true; MM_LEFTRIGHT = MM_startL-MM_targL; MM_UPDOWN = MM_startT-MM_targT; }
        	if (MM_everyTime || MM_SNAPPED) eval(MM_dropJS);
        	if(MM_dropBack) {if (NS) zIndex = MM_oldZ; else style.zIndex = MM_oldZ;}
        	retVal = false; if(!NS) event.returnValue = false; }
      		document.MM_curDrag = null;
    		}
    		if (NS) document.routeEvent(objName);
  		} return retVal;
	}
	
function MM_showHideLayers() { //v3.0
  		var i,p,v,obj,args=MM_showHideLayers.arguments;
  		for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    		if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    		obj.visibility=v; }
		}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}
function openaccess(theURL,winName) {
		winX=580;
		winY=540;
		if (ns4) {winY=400;}
		posX=(screen.width/2)-(winX/2);
		posY=(screen.height/2)-(winY/2)-30;
		if (posY < 0){posY = 0;}
		winFeatures='width='+winX+', height='+winY+',innerHeight=580,innerWidth=0, left='+posX+', screenX='+posX+', top='+posY+', screenY='+posY+', toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=0, resizable=0';
		window.open(theURL,winName,winFeatures);
	}

function openvchat(theURL,winName) {
		window.open(theURL, winName, 'width=690,height=530,location=no,resizable=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	}
// popup.js End

stat=0
dow=0

function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function NewWindow(URL)
{	
	if(window.SecondWindow)
	{
		if(window.SecondWindow.closed == true) 
		{
			SecondWindow = window.open(URL, "PopUpFenster", "width=725,height=500,scrollbars");
			SecondWindow.focus();
		}
		else
		{	
		SecondWindow.focus();
		window.SecondWindow.location.href = URL;
		}		
	}
	else
	{
		SecondWindow = window.open(URL, "PopUpFenster", "width=675,height=550,scrollbars");
		SecondWindow.focus();
	}
}
function HinwWindow(URL)
{	
	if(window.SecondWindow)
	{
		if(window.SecondWindow.closed == true) 
		{
			SecondWindow = window.open(URL, "PopUpFenster", "width=525,height=245,scrollbars");
			SecondWindow.focus();
		}
		else
		{	
		SecondWindow.focus();
		window.SecondWindow.location.href = URL;
		}		
	}
	else
	{
		SecondWindow = window.open(URL, "PopUpFenster", "width=525,height=245,scrollbars");
		SecondWindow.focus();
	}
}
function tafWindow(mypage,myname,w,h,features) 
{
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

