function favorites()
{
    if ((navigator.appName == "Microsoft Internet Explorer") && 
          (parseInt(navigator.appVersion) >= 4))
    {
        var url="http://www.it-seco.de/"
        var title="IT Service & Consulting"
        window.external.AddFavorite(url,title)
    }
    else
    {
        var FavText = "IT Service & Consulting"; 
        if(navigator.appName == "Netscape")
        {
           FavText += " mit den Tasten STRG+D";
        }
        FavText += " zu den Favoriten hinzufügen";
        alert(FavText);
    }
}
function openwindow(url)
{
	window = window.open(url, "Password Crypt", "width=300, height=200, scrollbars=no");
	window.focus();
}

function changeText(text) {

	if (text == '') {

		text = '...';
	} else {

		text='&nbsp;<strong>' + text + '</strong>';
	}
	document.getElementById('socialWebText').innerHTML = text;
}

/*** Open bookmark service ***/
function openBookmark(service) {

	partUrlComp = encodeURIComponent(location.href);
	docTitle   = encodeURIComponent(document.title);

	switch(service) {

		case 'blinkList':
			window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+partUrlComp+'&Title='+docTitle);
			break;

		case 'delicious':
			window.open('http://del.icio.us/post?url='+partUrlComp+'&title='+docTitle);
			break;

		case 'folkd':
			window.open('http://www.folkd.com/submit/page/'+partUrlComp);
			break;

		case 'furl':
			window.open('http://www.furl.net/storeIt.jsp?u='+partUrlComp+'&t='+docTitle);
			break;

		case 'google':
			window.open('http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+partUrlComp+'&title='+docTitle);
			break;

		case 'linkarena':
			window.open('http://linkarena.com/bookmarks/addlink/?url='+partUrlComp+'&title='+docTitle+'&desc=&tags=');
			break;

		case 'oneview':
			window.open('http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL='+partUrlComp+'&title='+docTitle);
			break;

		case 'webnews':
			window.open('http://www.webnews.de/einstellen?url='+partUrlComp+'&title='+docTitle);
			break;

		case 'wong':
			window.open('http://www.mister-wong.de/index.php?action=addurl&bm_url='+partUrlComp+'&bm_description='+docTitle);
			break;

		case 'yahoo':
			window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+partUrlComp+'&t='+docTitle);
			break;

		case 'yigg':
			window.open('http://yigg.de/neu?exturl='+partUrlComp+'&exttitle='+docTitle);
			break;
			
		case 'facebook':
			window.open('http://www.facebook.com/share.php?u='+partUrlComp+'&t='+docTitle);
			break;
	}
}



