//Author: MacH.
//Stand: 19.08.04
//Beschreibung: hinzufuegen der akt. Seite zu den Favoriten mit browserspezifischem Fenster oder browserspezifischer Shortcut Anleitung
//___________________________________________________________________________________________

function favorite(language)
{
                var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;

                 if (window.opera) {
                     OP = 1;
                 }
                 if(document.getElementById) {
                   DHTML = 1;
                   DOM = 1;
                 }
                 if(document.all && !OP) {
                   DHTML = 1;
                   MS = 1;
                 }
                if (window.netscape && window.screen && !OP) {
                   DHTML = 1;
                   NS = 1;
                 }

         if (MS)
         {
             //abhaengig von aktivierungsmoeglichkeit durch den benutzer
            //fav = confirm("Wollen Sie die Webseite " & window.document.title & " zu den Favoriten hinzufügen ?");
            //if (fav==true)
            //{

			if (language=='de')
			{
				javascript:window.external.AddFavorite(window.location.href, window.document.title);
			}
			else if (language=='com')
			{
				javascript:window.external.AddFavorite(window.location.href, window.document.title);
			}
            //}

        }
        else if (NS==1)
        {
				//alert(nsversion);
		
                clientIdent = navigator.userAgent;
                clientIdent = clientIdent.search(/Fire+/);
                if(clientIdent != -1)
                {
                //Browser Mozilla Firebird/Firefox (identifiziert sich wie Netscape)
					if (language=='de')
					{
                		alert ('Bitte drücken Sie nach Bestätigung dieser Meldung \r\n-    Strg + D \r\num die Webseite "' + window.document.title + '" als Lesezeichen hinzu zufügen.');
					}
					else if (language=='com')
					{
						alert ('After confirmation of this message press \r\n-    Ctrl + D \r\nto bookmark the page "' + window.document.title + '".');
					}

			   }
               else
               {
                //Browser Netscape
				if (nsversion==6)
				{
					// 6 --> Netscape 6.x.x
					if (language=='de')
					{
						alert ('Bitte drücken Sie nach Bestätigung dieser Meldung \r\n-   Strg + G zum hinzufügen \r\n-   Strg + Umschalt + G zum ablegen \r\num die Webseite "' + window.document.title + '" als Lesezeichen hinzu zufügen.');
					}
					else if (language=='com')
					{
						alert ('After confirmation of this message press \r\n-    Ctrl + G to add this page \r\n-   Ctrl + Shift + G to bookmark \r\nthe page "' + window.document.title + '".');
					}
				}
				else if (nsversion>=7)
				{
					// 7 --> Netscape 7.x.x
					if (language=='de')
					{
                		alert ('Bitte drücken Sie nach Bestätigung dieser Meldung \r\n-   Strg + D zum setzen \r\n-   Strg + Umschalt + D zum hinzufügen \r\num die Webseite "' + window.document.title + '" als Lesezeichen hinzu zufügen.');
					}
					else if (language=='com')
					{
												alert ('After confirmation of this message press \r\n-    Ctrl + D to add this page \r\n-   Ctrl + Shift + D to bookmark \r\nthe page "' + window.document.title + '".');
					}				}
				else
				{
					if (language=='de')
					{
						alert ('Bitte drücken Sie nach Bestätigung dieser Meldung \r\n-   Strg + G zum hinzu fügen \r\n-   Strg + Umschalt + G zum ablegen \r\num die Webseite "' + window.document.title + '" als Lesezeichen hinzu zufügen.');
					}
					else if (language=='com')
					{
						alert ('After confirmation of this message press \r\n-    Ctrl + G to add this page \r\n-   Ctrl + Shift + G to bookmark \r\nthe page "' + window.document.title + '".');
					}					
					
				}
			   }
        }
        else if (OP==1)
        {

			if (language=='de')
			{
				alert ('Bitte drücken Sie nach Bestätigung dieser Meldung \r\n-   Strg + T \r\num die Webseite "' + window.document.title + '" zu den Lesezeichen hinzuzufügen.');
			}
			else if (language=='com')
			{
						alert ('After confirmation of this message press \r\n-    Ctrl + T \r\nto bookmark the page "' + window.document.title + '".');
			}
        }
        else
        {


         }


}

