var isMoz = false;
	var isMac = navigator.userAgent.indexOf("Mac") != -1
	
if (document.layers) {

	var layerRef="document.layers";
	var styleSwitch="";
	var visibleVar="show";
	var notvisibleVar="hide";
	var measure="";
	var lheight = ".clip.height"
	var lwidth = ".clip.width"
}
else if (document.all){
	
	var layerRef="document.all";
	var styleSwitch=".style";
	var visibleVar="visible";
	var notvisibleVar="hidden";
	var measure="px";
	var lheight = ".offsetHeight"
	var lwidth = ".offsetWidth"

}
else { 
	var layerRef="document.all";
	var styleSwitch=".style";
	var visibleVar="visible";
	var notvisibleVar="hidden";
	var measure="px";
	var lheight = ".offsetHeight"
	var lwidth = ".offsetWidth"
	isMoz = true;
}
Init();
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_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; }
}



var callingX = 0;
var callingY = 0;
var gescrollt = 0;

function showLayer(layerName){
var div = MM_findObj(layerName);
		//alert(eval(layerRef+'["'+layerName+'"]'+lheight) + '\n' + eval(layerRef+'["'+layerName+'"]'+lwidth))
	
	lweite = eval("div"+lwidth) + 15;
		lhoehe = eval("div"+lheight) - 110;

		if(document.all && self.print){
			gescrollt = document.body.scrollTop;
			callingY = callingY + gescrollt;
			
		}
		;
		if (eval('div'+styleSwitch+'.top') == 0+measure){
			if ((callingY-lhoehe) >= 0) {
				eval('div'+styleSwitch+'.top = "'+(callingY-lhoehe) + measure +'"');
			}
			else {
				eval('div'+styleSwitch+'.top = "'+(callingY+10) + measure + '"');
			}
			
			eval('div' + styleSwitch+'.left = "180'+ measure + '"');

		}
		
		eval ('div'+styleSwitch+'.visibility = visibleVar');

}
	
function hideLayer(layerName){
	var div = MM_findObj(layerName);
	if(div){
		eval('div'+styleSwitch+'.visibility = notvisibleVar');
	}
}

function Init(){

	 if (document.addEventListener) {
		document.addEventListener("mousemove",MouseTrack,false);
	
	}
	else if (document.attachEvent) {
		document.attachEvent("onmousemove",MouseTrackIE);
		
	}
	else if (document.captureEvents) {
		
		window.captureEvents(Event.MOUSEMOVE);
		window.onMouseMove = MouseTrackNS4;
		
	}
	else if (isMac) {
			document.onmousemove = MouseTrackMacIE
	
		} 
}

function MouseTrackMacIE (e) {
	
	callingX = event.x +  document.body.scrollLeft 
	callingY  = event.y  + document.body.scrollTop 
	
}
function MouseTrackIE(e) {
	callingX = window.event.x;
	callingY = window.event.y;
	
}

function MouseTrack(e) {
 		callingX = e.pageX;
        callingY = e.pageY;
	
}

function MouseTrackNS4(e) {
callingX =  e.pageX;
callingY =  e.pageY;
}

//		window.name = "currentWindow";
		var newWin;

		function popUp(page, name, details) {
		newWin=window.open(page, name, details);
try {		newWin.focus();}
catch(e) {};
		return false;
		}

//-------- Video Konferenz -----------------------------------
function VideoKonferenz(url) {
newWin=window.open(url, 'videokonferenz', 'width=780,height=570,scrollbars=no,location=no,left=100,top=100,menubar=no,resizable=no,toolbar=no,status=no');
newWin.focus();
return false;
}

