	function reloadShop() {
	    window.location = "/main.faces";
	}
	
	function reloadOffers() {
	    window.location = "/offers.faces";
	}
	
	function reloadNewest() {
	    window.location = "/newest.faces";
	}
	
	function reloadArticleDetail() {
	    window.location = "/article_detail.faces";
	}
	
	function printPage() {
		if (window.print) {
				window.print();
		}
	}
	
	function mouse_pos(e) {

		var ne;
		if(!e) ne = window.event||window.Event;
		if(e) ne = e;

		if(ne)
		{
			var body = (window.document.compatMode && window.document.compatMode == "CSS1Compat") ? 
			window.document.documentElement : window.document.body;
			return {
				// Position im Dokument
				top: ne.pageY ? ne.pageY : ne.clientY + body.scrollTop - body.clientTop,
				left: ne.pageX ? ne.pageX : ne.clientX + body.scrollLeft  - body.clientLeft
			};
		}
	}

	var selectedDiv;
	function showHoverPic(divElem) {
		selectedDiv = divElem;

		var p = mouse_pos();

		if(p)
		{
			window.document.onmousemove = movePictureWithMouse;
			divElem.style.left = p['left']+15;
			divElem.style.top = p['top'] - (divElem.offsetHeight/2);
		}
		divElem.style.visibility='visible';
	}


	function hideHoverPic(divElem) {
		divElem.style.visibility='hidden';
		window.document.onmousemove = null;
	}

	function movePictureWithMouse(e) {

		var p = mouse_pos(e);
		selectedDiv.style.left = p['left']+15;
		selectedDiv.style.top = p['top'] - (selectedDiv.offsetHeight/2);
	}
