
var shimo_url;
var shimo_text;

if (!shimo_url) { shimo_url = ''; }
if (!shimo_text) { shimo_text = ''; }

document.write ("<div id='shimo_box' style='position:absolute; overflow:hidden; top:0px; left:0px;width:300px;display:none; text-align:left; text-decoration:none; ' onmouseover='javscript:shimo_mouseover();' onmouseout='shimo_mouseout();'>	");
document.write ("<div id='shimo_container' style='font-family:Arial, Verdana, \"Times New Roman\", Times, serif;'>");
document.write ("	<div style='width:250px; height:100px; color:#ffffff; padding:30px; '>Bitte warten...</div>");
document.write ("</div>");
document.write ("</div>");


	function shimo_mousein() {
		shimo_show_box = 1;

		if (document.getElementById('shimo_box').style.display == 'none') {
			shimo_loader('buttonsshare_round', 0);
			var dim = shimo_getTopLeft(document.getElementById("shimo_linker"));
    		document.getElementById("shimo_box").style.left = (dim.x - 240) + 'px';
    		document.getElementById("shimo_box").style.top = (dim.y + 7) + 'px';
			document.getElementById('shimo_box').style.display = 'block';		
			
		}
	}

	function shimo_getTopLeft(elm) {

		var x, y = 0;
		x = elm.offsetLeft;
		y = elm.offsetTop;
		elm = elm.offsetParent;

		while(elm != null) {
			x = parseInt(x) + parseInt(elm.offsetLeft);
			y = parseInt(y) + parseInt(elm.offsetTop);
			elm = elm.offsetParent;
		}

		return {y:y, x: x};
	}


	var shimo_show_box = 0;
	var shimo_allow_leave = 1;
	function shimo_mouseover() {
		shimo_show_box = 1;
	}
	function shimo_mouseout() {
		shimo_show_box = 0;
 		window.setTimeout(function () { shimo_close_box_delay(); }, 300);	
	}
	function shimo_close_box_delay() {
		if (shimo_show_box == 0 && shimo_allow_leave == 1) {
			shimo_close_box_now();
		}
	}
	function shimo_close_box_now() {
		document.getElementById('shimo_box').style.display = 'none';
	}
	
	


var LoadedObjects = new Array();
function shimo_loader(action, reload) {

	var shimo_url_get = encodeURIComponent(window.location.href);
	if (shimo_url) {
		shimo_url_get = shimo_url;
	}

	url = 'http://www.shareitmonster.com/app/app.php?source=sharebutton&action='+action+'&language=de&userid=392&url='+shimo_url_get;

	if (!LoadedObjects[url] || reload) {
		var script = document.createElement('script');
		script.setAttribute('src', url);
		script.setAttribute('type','text/javascript');
		script.setAttribute('language','javascript');
		document.getElementsByTagName('head')[0].appendChild(script);
		LoadedObjects[url] = 1;
	}
} 
