
function cssCheck() {
  var pc = (navigator.platform.indexOf('Win') != -1);
  
  var mac = (navigator.platform.indexOf('Mac') != -1); 
  
  var linux = (mac != true && pc != true)? true: false;
  
  var n4 = (document.layers)? true : false;
  
  var ie = (document.all)? true : false;
  
  var opera = (navigator.userAgent.indexOf('Opera') != -1);
  
  stil = "";
  
  if (mac) {
  
		stil = "/css/mac.css";
  
  } else {
      
      if ( (pc && n4) || (pc && opera) || linux ) {
    
          stil = "/css/win_n_4.css";
          
      } else {
          stil = "/css/win_ie.css";
      }
  }

  return stil;

}

  function trGet()
  {
   var Wert = "";
   if(document.cookie) 
   {
    Wertstart = document.cookie.indexOf("=") + 1;
    Wertende = document.cookie.indexOf(";");
    if(Wertende == -1) Wertende = document.cookie.length;
    Wert = document.cookie.substring(Wertstart,Wertende);
   }
   return Wert;
  }

  function trGetCookie(name) {
    var value=null;
    if(document.cookie != "") {
      var kk=document.cookie.indexOf(name+"=");
      if(kk >= 0) {
        kk=kk+name.length+1;
        var ll=document.cookie.indexOf(";", kk);
        if(ll < 0)ll=document.cookie.length;
        value=document.cookie.substring(kk, ll);
        value=unescape(value); 
      }
    }
    return value;
  }

  function trSet(Bezeichner, Wert, Verfall)
  {
   var jetzt = new Date();
   var Auszeit = new Date(jetzt.getTime() + Verfall);
   var randomID = jetzt.getTime() + Math.random();
   document.cookie = Bezeichner+"="+randomID+"; expires="+Auszeit.toGMTString()+";path=/;";
  }

  function setTrCookie() 
  {
   var Verfallszeit = 1000*60*60*24*365;
   

   if(!trGetCookie("unlimitedID"))
   {
    trSet("unlimitedID","",Verfallszeit);
   } 
   else {
	 var wert = trGet();
   	//alert("Dies ist Ihr wert: " +wert);
   	}
  }
	setTrCookie();

  function gotoURL(newURL,popup)
  {
    
    if (popup=="register") {
      window.open(newURL,'register','width=580,height=460,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes')
    } 
    else if (popup=="smskalender") {
      window.open(newURL,'smskalender','width=705,height=560,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no')
    } 
    else {
      document.location.href=newURL;
    }
  }
  //link der in die Flash Datei eingebunden werden muss:
  //getURL("javascript:gotoURL(getTrURL('6b'), 'register')");
  
  
  var tip="";
  
  function closeIt(id){
    document.getElementById(id).style.visibility="hidden";
  }
  
  function showIt(id){
  tip=document.getElementById(id).style;
 
  mouseX = window.event.clientX + 10;
	mouseY = window.event.clientY -15;
    
  tip.left=mouseX;
  tip.top=mouseY;
  tip.visibility="visible";

  }

