function getPosition(obj) {
  var pos = { x:0, y:0 };

  do {
    pos.x += obj.offsetLeft;
    pos.y += obj.offsetTop;
  } while (obj = obj.offsetParent);

  return pos;
}
function popupnavi(s)
{
	if(s==1)
	{
		document.getElementById('popnav').style.visibility = 'visible';
		document.getElementById('popnav').style.display = 'inline';
		var pos = getPosition(document.getElementById('nav2'));
		
		document.getElementById('popnav').style.top = (pos.y + 29) + 'px';
		document.getElementById('popnav').style.left = pos.x + 'px';

	}
	else 
	{
		document.getElementById('popnav').style.visibility = 'hidden';
		document.getElementById('popnav').style.display = 'none';
	}
	return false;
}
function stwc_counter(counterpfad, bezeichnung, sperre){

	var aufloesung = '';
	var farbtiefe = '';
	var referer = '';
	var pfad = '';
	var java = '';
	var cookies = '';
	var seitentitel = '';
	var rnd = Math.random()*99999;
	var innen_aufloesung = '';

	if(self.innerHeight){// all except Explorer
	innen_aufloesung = self.innerWidth + "x" + self.innerHeight;
	}
	else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
	innen_aufloesung = document.documentElement.clientWidth + "x" + document.documentElement.clientHeight;
	}
	else if(document.body){ // other Explorers
	innen_aufloesung = document.body.clientWidth + "x" + document.body.clientHeight;
	}

	if(sperre == "sperre"){
	var sperre_zusatz = "&sperre=x";
	}
	else{
	var sperre_zusatz = "";
	}

	aufloesung = screen.width+'x'+screen.height;
	referer = "" + escape(top.document.referrer);
	farbtiefe = screen.colorDepth;
	pfad = escape(location.href);
	java = navigator.javaEnabled();
	cookies = navigator.cookieEnabled;
	seitentitel = bezeichnung;
	seitentitel = escape(seitentitel);

	var obj = new Object();
	for (var i = 0, name, plugin; i < navigator.plugins.length; i++) {
	   plugin = navigator.plugins[i];
	   name = navigator.plugins[i].name;
	   obj[name] = plugin;
	}

	var plugin2 = '';
	for (var name in obj) {
	plugin = obj[name];
	plugin2 = plugin2 + plugin.name + '|';
	}

	var jetzt = new Date();
	var Unterschied = jetzt.getTimezoneOffset() / 60;
	var Stunde = jetzt.getHours();

	document.write("<img height=0 width=0 src='" + counterpfad + "&ortszeit=" + Stunde + "&aflsg=" + aufloesung + "&innen_aufloesung=" + innen_aufloesung + "&referer=" + referer + "&farbtiefe=" + farbtiefe + "&js=yes&java=" + java + "&plugins=" + plugin2 + "&seitentitel=" + seitentitel + "&cookies=" + cookies + "&zzone=" + Unterschied + sperre_zusatz + "&pfad=" + pfad + "&rnd=" + rnd + "'>");
}
function tload()
{
	document.getElementById('sbm').innerHTML = 'Diese Seite bookmarken: <br><a href="http://del.icio.us/" rel="nofollow" onclick="window.open(\'http://del.icio.us/post?v=2&url=\'+encodeURIComponent(location.href)+\'&notes=&tags=&title=\'+encodeURIComponent(document.title));return false;"><img src="/img/socialbookmarking/delicious.gif" alt="Bookmark bei: Del.icio.us" border="0"></a>&nbsp; <a href="http://www.mister-wong.de/" rel="nofollow" onclick="window.open(\'http://www.mister-wong.de/index.php?action=addurl&bm_url=\'+encodeURIComponent(location.href)+\'&bm_notice=&bm_description=\'+encodeURIComponent(document.title)+\'&bm_tags=\');return false;"><img src="/img/socialbookmarking/mrwong.gif" alt="Bookmark bei: Mister Wong" border="0"></a> &nbsp; <a href="http://www.google.com/" rel="nofollow" onclick="window.open(\'http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk=\'+encodeURIComponent(location.href)+\'&annotation=&labels=&title=\'+encodeURIComponent(document.title));return false;"><img src="/img/socialbookmarking/google.gif" alt="Bookmark bei: Google" border="0"></a>&nbsp; <a href="http://www.technorati.com/" rel="nofollow" onclick="window.open(\'http://technorati.com/faves?add=\'+encodeURIComponent(location.href)+\'&tag=\');return false;"><img src="/img/socialbookmarking/technorati.gif" alt="Bookmark bei: Technorati" border="0"></a> &nbsp; <a href="http://www.yahoo.de/" rel="nofollow" onclick="window.open(\'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=\'+encodeURIComponent(location.href)+\'&t=\'+encodeURIComponent(document.title));return false;"><img src="/img/socialbookmarking/yahoo.gif" alt="Bookmark bei: Yahoo!" border="0"></a>&nbsp; <a href="http://www.digg.com/" rel="nofollow" onclick="window.open(\'http://digg.com/submit?phase=2&url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title));return false;"><img src="/img/socialbookmarking/digg.gif" alt="Bookmark bei: Digg" border="0"></a> &nbsp; <a href="http://www.linkarena.com/" rel="nofollow" onclick="window.open(\'http://linkarena.com/bookmarks/addlink/?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)+\'&desc=&tags=\');return false;" title="Bookmark bei: Linkarena"><img src="/img/socialbookmarking/linkarena.gif" alt="Bookmark bei: Linkarena" border="0"></a> &nbsp; <a href="http://www.webnews.de/" rel="nofollow" onclick="window.open(\'http://www.webnews.de/einstellen?url=\'+encodeURIComponent(document.location)+\'&title=\'+encodeURIComponent(document.title));return false;"><img src="/img/socialbookmarking/webnews.gif" alt="Bookmark bei: Webnews" border="0"></a>&nbsp; <a href="http://yigg.de/" rel="nofollow" onclick="window.open(\'http://yigg.de/neu?exturl=\'+encodeURIComponent(location.href));return false;"><img src="/img/socialbookmarking/yigg.gif" alt="Bookmark bei: Yigg" border="0"></a>';
}
