function launchcategory(url){
window.name = 'opener';
remote=open(url,"","resizable,status,scrollbars,width=500,height=400,left=300,top=100");
}
function launchcategory(url){
	window.name = 'opener';
	remote = open(url, "", "resizable,status,scrollbars,width=500,height=400,left=300,top=100");
}
function launchevent(url){
	self.name = "opener";
	remote = open(url, "", "resizable,scrollbars,width=400,height=600,left=300,top=100");
}
function launchlog(url){
	window.name = 'opener';
	remote = open(url, "", "resizable,status,scrollbars,width=600,height=650,left=300,top=100");
}
function launchlogin(url){
	window.name = 'opener';
	remote = open(url, "", "resizable,status,scrollbars,width=400,height=300,left=300,top=100");
}
function launchuser(url){
	window.name = 'opener';
	remote = open(url, "", "resizable,status,scrollbars,width=650,height=600,left=300,top=100");
}
function reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
	else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

/*
function zoom(img,w,h) {
view=window.open(img,'viewer','directories=no,location=no,titlebar=no,status=no,scrollbars=no,toolbar=no,resizable=yes,w
idth='+w+',height='+h);view.resizeTo(w+10,h+30);
view.focus();
}

function preload() { //v3.0
  var d=document; if(d.images){ if(!d.sp) d.sp=new Array();
    var i,j=d.sp.length,a=preload.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.sp[j]=new Image; d.sp[j++].src=a[i];}}
}

function restore() { //v3.0
  var i,x,a = document.ssr;
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc;}
}

function find(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=find(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function swap() { //v3.0
  var i,j=0,x,a=swap.arguments;
  document.ssr=new Array;
  for(i=0;i<(a.length-2);i+=3) if ((x=find(a[i]))!=null){
  	document.ssr[j++]=x;
	if(!x.oSrc&&!a[1]) x.oSrc=x.src;
	x.src=a[i+2];
	}
}
*/
function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Jan"
monthNames[2] = "Feb"
monthNames[3] = "Mar"
monthNames[4] = "Apr"
monthNames[5] = "Mai"
monthNames[6] = "Jun"
monthNames[7] = "Jul"
monthNames[8] = "Aug"
monthNames[9] = "Sep"
monthNames[10] = "Okt"
monthNames[11] = "Nov"
monthNames[12] = "Dez"
dayNames = new MakeArray(7)
dayNames[1] = "So"
dayNames[2] = "Mo"
dayNames[3] = "Di"
dayNames[4] = "Mi"
dayNames[5] = "Do"
dayNames[6] = "Fr"
dayNames[7] = "Sa"

function customDateString() {
	currentDate = new Date()
	var theDay = dayNames[currentDate.getDay() + 1]
	var theMonth = monthNames[currentDate.getMonth() + 1]
	msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	if (msie4) {
	    var theYear = currentDate.getYear()
	}
	else {
	     var theYear = currentDate.getYear() +1900
	}
	return theDay + ", " + theMonth + " " + currentDate.getDate() + ", " + theYear
}

