var recordpath = "/bookmark/";//ADD trailing slash
var imgpath = "/bookmark/gfx/";//ADD trailing slash
var sburl = encodeURIComponent(location.href);
var sbtitle = encodeURIComponent(document.title);

if( bmlang == "de" ) {
	var txtsite = "Diese Seite bei";
	var txtenter = " bookmarken.";	
	
	var misterwong_de = "recordClick('misterwong'),location.href='http://www.mister-wong.de/index.php?action=addurl&amp;bm_url='+sburl+'&amp;bm_description='+sbtitle;return false";
	var delicio_us = "recordClick('delicio'),location.href='http://del.icio.us/post?v=2&url='+sburl+'&title='+sbtitle;return false";
	var google_com = "recordClick('google'),location.href='http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+sburl+'&title='+sbtitle;return false";
	var yigg_de = "recordClick('yigg'),location.href='http://yigg.de/neu?exturl='+sburl;return false";
	var yahoo_com = "recordClick('yahoo'),window.open('http://de.myweb2.search.yahoo.com/myresults/bookmarklet?t='+sbtitle+'&u='+sburl+'&ei=UTF-8','popup','width=560px,height=460px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false";
	var alltagz_de = "recordClick('alltagz'),location.href='http://www.alltagz.de/bookmarks/?action=add&address='+sburl+'&title='+sbtitle;return false";	
	var oneview_de = "recordClick('oneview'),location.href= 'http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title);return false";
	var blinklist_com = "recordClick('blinklist'),location.href='http://de.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+sburl+'&Title='+sbtitle;return false";
	var furl_net = "recordClick('furl'),location.href='http://www.furl.net/storeIt.jsp?u='+sburl+'&t='+sbtitle;return false";
	var linkarena_com = "recordClick('linkarena'),location.href='http://linkarena.com/bookmarks/addlink/?url='+sburl+'&title='+sbtitle+'&desc=BESCHEIBUNG&tags=TAGS';return false";

	document.write('<a href="http://www.mister-wong.de/" rel="nofollow" onClick="' + misterwong_de +'" title="' + txtsite +' www.mister-wong.de' + txtenter +'"><img src="' + imgpath +'misterwong.gif" alt="' + txtsite +' Mister Wong' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://del.icio.us/" rel="nofollow" onClick="' + delicio_us +'" title="' + txtsite +' del.ico.us' + txtenter +'"><img src="' + imgpath +'delicio.gif" alt="' + txtsite +' del.ico.us' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.google.com/" rel="nofollow" onClick="' + google_com +'" title="' + txtsite +' google.com' + txtenter +'"><img src="' + imgpath +'google.gif" alt="' + txtsite +' google.com' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://yigg.de/" rel="nofollow" onClick="' + yigg_de +'" title="' + txtsite +' yigg.de' + txtenter +'"><img src="' + imgpath +'yigg.gif" alt="' + txtsite +' yigg.de' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://de.myweb2.search.yahoo.com/" rel="nofollow" onClick="' + yahoo_com +'" title="' + txtsite +' yahoo.com' + txtenter +'"><img src="' + imgpath +'yahoo.gif" alt="' + txtsite +' yahoo.com' + txtenter +'" border="0"></a> ')            	
	document.write('<a href="http://www.alltagz.de/" rel="nofollow" onClick="' + alltagz_de +'" title="' + txtsite +' alltagz.de' + txtenter +'"><img src="' + imgpath +'alltagz.gif" alt="' + txtsite +' alltagz.de' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://oneview.de/" rel="nofollow" onClick="' + oneview_de +'" title="' + txtsite +' oneview.de' + txtenter +'"><img src="' + imgpath +'oneview.gif" alt="' + txtsite +' oneview.de' + txtenter +'" border="0"></a> ') 	
	document.write('<a href="http://de.blinklist.com/" rel="nofollow" onClick="' + blinklist_com +'" title="' + txtsite +' blinklist.com' + txtenter +'"><img src="' + imgpath +'blinklist.gif" alt="' + txtsite +' blinklist.com' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.furl.net/" rel="nofollow" onClick="' + furl_net +'" title="' + txtsite +' www.furl.net' + txtenter +'"><img src="' + imgpath +'furl.gif" alt="' + txtsite +' www.furl.net' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.linkarena.com/" rel="nofollow" onClick="' + linkarena_com +'" title="' + txtsite +' www.linkarena.com' + txtenter +'"><img src="' + imgpath +'linkarena.gif" alt="' + txtsite +' www.linkarena.com' + txtenter +'" border="0"></a> ')
	
}
else {
	var txtsite = "Bookmark this site at";
	var txtenter = ".";
	
	var delicio_us = "recordClick('delicio'),location.href='http://del.icio.us/post?v=2&url='+sburl+'&title='+sbtitle;return false";
	var digg_com = "recordClick('digg'),location.href='http://digg.com/submit?phase=2&url='+sburl+'&title='+sbtitle;return false";
	var blinklist_com = "recordClick('blinklist'),location.href='http://www..blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+sburl+'&Title='+sbtitle;return false";
	var google_com = "recordClick('google'),location.href='http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+sburl+'&title='+sbtitle;return false";
	var yahoo_com = "recordClick('yahoo'),window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+sbtitle+'&u='+sburl+'&ei=UTF-8','popup','width=560px,height=460px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false";
	var reddit_com = "recordClick('reddit'),location.href='http://reddit.com/submit?url='+sburl+'&title='+sbtitle;return false";
	var furl_net = "recordClick('furl'),location.href='http://www.furl.net/storeIt.jsp?u='+sburl+'&t='+sbtitle;return false";
	var folkd_com = "recordClick('folkd'),location.href='http://www.folkd.com/submit/page/'+sburl;return false";
	var linkarena_com = "recordClick('linkarena'),location.href='http://linkarena.com/bookmarks/addlink/?url='+sburl+'&title='+sbtitle+'&desc=BESCHEIBUNG&tags=TAGS';return false";

	document.write('<a href="http://del.icio.us/" rel="nofollow" onClick="' + delicio_us +'" title="' + txtsite +' del.ico.us' + txtenter +'"><img src="' + imgpath +'delicio.gif" alt="' + txtsite +' del.ico.us' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://digg.com/" rel="nofollow" onClick="' + digg_com +'" title="' + txtsite +' digg.com' + txtenter +'"><img src="' + imgpath +'digg.gif" alt="' + txtsite +' digg.com' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.blinklist.com/" rel="nofollow" onClick="' + blinklist_com +'" title="' + txtsite +' blinklist.com' + txtenter +'"><img src="' + imgpath +'blinklist.gif" alt="' + txtsite +' blinklist.com' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.google.com/" rel="nofollow" onClick="' + google_com +'" title="' + txtsite +' google.com' + txtenter +'"><img src="' + imgpath +'google.gif" alt="' + txtsite +' google.com' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.yahoo.com/" rel="nofollow" onClick="' + yahoo_com +'" title="' + txtsite +' yahoo.com' + txtenter +'"><img src="' + imgpath +'yahoo.gif" alt="' + txtsite +' yahoo.com' + txtenter +'" border="0"></a> ')            
	document.write('<a href="http://reddit.com/" rel="nofollow" onClick="' + reddit_com +'" title="' + txtsite +' www.reddit.com' + txtenter +'"><img src="' + imgpath +'reddit.gif" alt="' + txtsite +' www.reddit.com' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.furl.net/" rel="nofollow" onClick="' + furl_net +'" title="' + txtsite +' www.furl.net' + txtenter +'"><img src="' + imgpath +'furl.gif" alt="' + txtsite +' www.furl.net' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.folkd.com/" rel="nofollow" onClick="' + folkd_com +'" title="' + txtsite +' www.folkd.com' + txtenter +'"><img src="' + imgpath +'folkd.gif" alt="' + txtsite +' folkd' + txtenter +'" border="0"></a> ')
	document.write('<a href="http://www.linkarena.com/" rel="nofollow" onClick="' + linkarena_com +'" title="' + txtsite +' www.linkarena.com' + txtenter +'"><img src="' + imgpath +'linkarena.gif" alt="' + txtsite +' www.linkarena.com' + txtenter +'" border="0"></a> ')
	
}

function recordClick(bookedsite) {
	
	var xmlhttp=false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
			xmlhttp.overrideMimeType('text/xml');//for several mozilla versions
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}

	xmlhttp.open( 'GET', 'http://' + window.location.hostname + recordpath + 'record.php?clickedBookmark=' + bookedsite, false);//must be false for firefox
	xmlhttp.send(null);

}