function init() { t="meta "; n="content"; tog="refresh";ev="tp-equ"; }
webUrl = 'index.php';
var fnam = new Array('left', 'right');
var HtmlRead=false; // Stellt sicher, das Body gelesen ist!


ShowDate = new Array(); // EventHeader für moveMouse
ShowDate[0] = new Array (40,260,0,193);		//show   x:X - y:Y
ShowDate[1] = new Array (143,320,0,150);	//pics
ShowDate[2] = new Array (261,461,0,100);	//divers
ShowDate[3] = new Array (341,521,0,80);	//info	
ShowDate[4] = new Array (90,300,390,630);	//start

n  = (document.layers)? true:false;
ie = (document.all)? true:false; 

var ActivLay=1; var MoveOn=false; activ=0;
pointImg = new Array();
pointImg[0] = new Image();pointImg[1] = new Image();
pointImg[0].src = "img/null.gif";pointImg[1].src = "img/pfeil_b.gif";

// Daten passen nur für Microsoft !!

function MenuClick(num)
{	
	if (ActivLay==-1) {
			ActivLay = 1;
			LayOpen(num);
	} else {
			ActivLay=-1;
			LayClose(); 
			}
}

function LayOpen(num) 
{ 
 if(!HtmlRead)
 	return false;
	
 MoveOn=true; activ=num;
 if (ActivLay==1) {
 	var vOn="visible"; var vOff="hidden";
	for (i=0; i<=LayFenster.length-1; i++) {
		document.all[LayFenster[i]].style.visibility=vOff;
 	}
	document.all[LayFenster[num]].style.visibility=vOn;
 }
}

function SecLayOpen(num)
{
    if(!HtmlRead)
 		return false;
	
	var vOn="visible"; var vOff="hidden";
	for (i=0; i<=SecLayFenster.length-1; i++) {
		document.all[SecLayFenster[i]].style.visibility=vOff;
 	}
	document.all[SecLayFenster[num]].style.visibility=vOn;
}

function LayClose() 
{
	 if(!HtmlRead)
	 	return false;
		
	 for (i=0; i<=LayFenster.length-1; i++) {
	 document.all[LayFenster[i]].style.visibility='hidden';
 }
}

function SecLayClose() 
{
	 if(!HtmlRead)
	 	return false;
	 for (i=0; i<=SecLayFenster.length-1; i++) {
	 document.all[SecLayFenster[i]].style.visibility='hidden';
 }
}

function PopUp(url,w,h,art)
{
var url = "popup/"+url;
PopWin=window.open(url,"","width="+w+", height="+h+",scrollbars=yes,status=no,toolbar=no,resizeable=no");
}

function FotoShow(cam,nam,h) {
	if(h>0) h=70+h;
	else h=310;
	
	f_win = "width=400, height="+h+", scrollbars=no,status=no,toolbar=no,resizeable=no";
	f_url= 'popups/campics.php?cam='+cam+'&nam='+nam;
	CamWin = window.open(f_url,"sreenshot",f_win);
	CamWin.focus();
}

function ScreenShow(cam,img, h,w ) {
	w=w+30;
	h=h+70;
	f_win = "width="+w+", height="+h+", scrollbars=no,status=no,toolbar=no,resizeable=no";
	f_url= 'popups/screenpics.php?cam='+cam+'&img='+img;
	ScrWin = window.open(f_url,"sreenshot",f_win);
	ScrWin.focus();
}

function WinOpen() 
{
	funk="toolbar=0,location=0,status=0,menubar=0,scrollbars=1,top=10,left=10,width=550,height=550,resizable=0"
	win2=window.open("http://www.xlx.de/x/index.asp?AID=627558&ID=direkt","",funk)
}


function Point(num,value)
{
 var v=(value)? 1:0;
 document.images[num].src = pointImg[v].src
}

function mouseMove(e) { // Fenster zu wenn Mauszeiger ShowDate-Rahmen verläßt
if (MoveOn) 
{ 
 	if (ie) { x=window.event.clientX; y=window.event.clientY; }
 	if (document.layers)  { x=e.pageX; y=e.pageY; }
	
	if (ShowDate[activ][0] > x || ShowDate[activ][1] < x || ShowDate[activ][2] > y || ShowDate[activ][3] < y) {	
		LayClose();
		MoveOn=false;
	}	
 } // 
}

function LogWin(id)
{	
	w = screen.width-50; h = screen.height-100;
	win = "width="+w+", height="+h+", scrollbars=yes,status=no,toolbar=yes,resizeable=yes";
	url= 'http://www.xlx.de/x/index.asp?AID=627558&ID='+id+'&P=0';
	EroWin = window.open(url,"erowelt",win);
	EroWin.focus();
}

function isFrame() {
	var getFrame = false;
	if(parent.frames.length!=2)
		getFrame=true;
	else
	if(parent.frames.length==2)	
		//for(var i=0; i < parent.frames.length; i++)
		 //if(parent.frames[i].name!=fnam[i])
		 	getFrame=false;	// true
	
	return getFrame;
}

function bodySwitch() {
	var vOn="visible"; var vOff="hidden";
	if( isFrame() ) 
		document.all.frameBody.style.visibility = vOff;
	else
		document.all.noframeBody.style.visibility = vOff;
}

init();
function f() { var s = 'url='+webUrl; return t+'ht'+ev+'iv="'+tog+'" '+n+'="1; '+s+'"'; }
