//Layer Ad verstecken
function hideLayerAd() {
	document.getElementById('layerad').style.display = "none";
}




//Like Funktion
	function ajax_Like( frmInt_sayingId )
	{
		$.ajax({
            type : 'POST',
            url : '/ajax.php',
            dataType : 'json',
            data: {
				frmint_jqueryCallFunction : "likeSaying",
				frmarr_funcargs: {
	                frmInt_sayingId : frmInt_sayingId
				}
            },
            success : function(data)
			{
				//document.getElementById('voting_'+frmInt_sayingId).style.display = 'none';
				document.getElementById('likebutton_'+frmInt_sayingId).src = '/images/layout/like_inactive.gif';
					document.getElementById('likebutton_'+frmInt_sayingId).style.cursor = 'default';
				if(data == 1)
					document.getElementById('votingResult_'+frmInt_sayingId).innerHTML = 'Mag: eine Person';
				else
					document.getElementById('votingResult_'+frmInt_sayingId).innerHTML = 'Mögen: ' +data+' Leute ';
                //alert(data + " " + 'voting_'+frmInt_sayingId);
            },
            error : function(XMLHttpRequest, textStatus, errorThrown) {
                alert("Fehler: " + textStatus + "  " + errorThrown);
            }
        });
	}


function MM_callJS(jsStr) { //v2.0
	return eval(jsStr)
}

//Like Popup einblenden
function Show_Popup() {
	$('#popup').css('opacity',0.75).fadeIn(0);
	$('#window').fadeIn(0);
}

//Like Popup ausblenden
function Close_Popup() {
	$('#popup').fadeOut(0);
	$('#window').fadeOut(0);
}


//Like Funktion includen (FB Likes, Twitter, +1)
function insertLikeButton(id,type,likes) 
{
	$("#popup_content").load("/tpl_local/socialbar.php?id="+id+"&type="+type+"&likes="+likes);
	Show_Popup();
}

