if(typeof stopSnow=='undefined') var stopSnow = 1;

function TurnOff(sectionName, imgName, imgNo, activeNo)
{
        imgOff = new Image();
        if (activeNo==imgNo) imgOff.src = "/images/tapps.gif";
        else imgOff.src = "/images/1x1_trans.gif";
        document[imgName+imgNo+sectionName].src = imgOff.src;
}

function TurnOn(sectionName, imgName, imgNo)
{
        imgOn = new Image();
        imgOn.src =  "/images/tapps_grey.gif";
        document[imgName+imgNo+sectionName].src = imgOn.src;
}

function OpenPage(target, resize, full) {
         var leftPos;
         var screenHeight;
         if (resize=='yes');
         else {resize='no';}
         if (full=='yes');
         else {full='no';}
         screenHeight = screen.availHeight - 150;
         leftPos = screen.availWidth - 640;
         NewWin = this.open("", target, 'left=' + leftPos + ',top=0,location=' + full + ',toolbar=' + full + ',directories=' + full + ',menubar=yes,scrollbars=yes,resizable=' + resize + ',width=' + 630 + ',height=' + screenHeight);
         NewWin.focus();
         }

function OpenForm(linkLocation, target) {
         var wi = 600;
         var he = 360; //420;
         var leftPos=(screen.availWidth/2)-(wi/2);
         var topPos=(screen.availHeight/2)-(he/2)-20;
         if (linkLocation=="NULL") {linkLocation==''}
         NewWin = this.open(linkLocation, target, 'left=' + leftPos + ',top=' + topPos + ',location=no,toolbar=yes,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=' + wi + ',height=' + he);
         NewWin.focus();
         }

function openPic(url, wi, he, title) {
         var leftPos=(screen.availWidth/2)-(wi/2);
         var topPos=(screen.availHeight/2)-(he/2);
         var url;
         var he1=he;
         var win=open("","",'left='+leftPos+',top='+topPos+',scrollbars=no,resizable=no,width='+wi+',height='+he1);
         win.document.write("<HTML><HEAD><TITLE>" + title + "</TITLE></HEAD>");
         win.document.write("<BODY leftMargin=0 topMargin=0 marginWidth=0 marginHeight=0 onBlur='window.close();'><table border=0 cellspacing=0 cellpadding=0><tr><td><a href='javascript:window.close();'><img src='" + url + "' width=" + wi + " height=" + he + " alt='Fenster schliessen' border='0'></td></tr></table></body></HTML>");
         }

function showStatus(Text) {
         window.status = Text;
         }

function clearStatus() {
         window.status = "";
         }

function Run(functionId,ParamId) {
         if (functionId=="Print")    {window.print();}
         if (functionId=="Homepage") {;}
         if (functionId=="Bookmark") {window.external.AddFavorite("http://www.fussls.com/","www.FUSSLS.com");}
         if (functionId=="Sendlink") {
                                     OpenForm('/cgi-bin/general_sendlink.pl?url='+ ParamId,'form');
                                     }
         if (functionId=="Addentry") {;}
         if (functionId=="Close")    {this.close();}
         if (functionId=="Back")     {history.go(-1);}
         if (functionId=="Snow")     {
         						     if (stopSnow == 1) {
         						     	stopSnow = 0;
         						     	if (ns4) {
                                                 tappsNS();
                                                 }
                                        else if (ie4||ns6) {
                                                      tappsIE();
                                                      }
         						     	}
         						     else {stopSnow = 1;}
         						     }
         }

function PDACheck() {
		 if (navigator.userAgent.indexOf("Windows CE") != -1 
		  || navigator.userAgent.indexOf("AvantGo") != -1
		  || navigator.userAgent.indexOf("NetFront") != -1
		  || navigator.userAgent.indexOf("WM5 PIE") != -1
		  || navigator.userAgent.indexOf("iPhone") != -1
		  || navigator.userAgent.indexOf("BlackBerry") != -1
		  || navigator.userAgent.indexOf("Opera Mini") != -1
		  || navigator.userAgent.indexOf("Nokia") != -1
		  || navigator.userAgent.indexOf("SymbianOS") != -1
		  || navigator.userAgent.indexOf("PalmSource") != -1
		  ) {window.location='http://www.fussls.com/pda/'}
		 }         
		 
		 






