	
		
	
function willdance(id){  


$j('#willdance').load("module/events/functions/ajax/change_willdancehere.php?action=willdance&id="+id+"&amp;random=" + (new Date()).getTime());
$j('#willdance').toggle();
$j('#willnotdance').toggle();

}
		
function willdancenot(id){  


$j('#willdance').load("module/events/functions/ajax/change_willdancehere.php?action=willnotdance&id="+id+"&amp;random=" + (new Date()).getTime());

$j('#willnotdance').toggle();
$j('#willdance').show();
}


function deletewallcommententry(id){  
	
$j('#wall_comment_'+id+'').load("module/profile/functions/ajax/delete_comment_wall.php?id="+id+"&amp;random=" + (new Date()).getTime());
$j('#wall_comment_'+id+'').hide('slow');


}
	
function deletecomment(id){  
	
$j('#comment_'+id+'').load("module/events/functions/ajax/delete_comment.php?action=events&id="+id+"&random=" + (new Date()).getTime());

$j('#comment_'+id+'').hide('slow');	

}
	function deletecommentusergal(id){  
	
$j('#comment_'+id+'').load("module/profile/functions/ajax/delete_comment_gal.php?id="+id+"&random=" + (new Date()).getTime());

$j('#comment_'+id+'').hide('slow');	

}
function deletelocationcomment(id){  
	
$j('#comment_'+id+'').load("module/venues/functions/ajax/delete_comment.php?action=venues&id="+id+"&random=" + (new Date()).getTime());

$j('#comment_'+id+'').hide('slow');	

}



function acceptfriendship(id,uid){  
	
$j('#options_request_'+id+'').load("module/profile/functions/ajax/accept_friendship.php?id="+uid+"&amp;random=" + (new Date()).getTime());
$j('#options_request_'+id+'').hide();
$j('#nowfried_'+id+'').show();	

}


function notacceptfriendship(id,uid){  
	
$j('#friend_'+id+'').load("module/profile/functions/ajax/notaccept_friendship.php?id="+uid+"&random=" + (new Date()).getTime());

$j('#friend_'+id+'').hide();	

}


 $j(document).ready(function() {
 
   var refreshId = setInterval(function() {
      $j("#new_wallposts").load('module/profile/functions/ajax/get_new_wallpost.php?randval='+ Math.random());
   }, 15000);
});

 $j(document).ready(function() {

   var refreshId = setInterval(function() {
      $j("#new_friendrequests").load('module/profile/functions/ajax/get_new_friendrequests.php?randval='+ Math.random());
   }, 15000);
});
 $j(document).ready(function() {

   var refreshId = setInterval(function() {
      $j("#new_pn").load('module/profile/functions/ajax/get_new_pnmessages.php?randval='+ Math.random());
   }, 15000);
});


function deletecomment_picture(id){ 

$j('#comment_'+id+'').load("module/gallery/functions/ajax/delete_comment.php?id="+id+"&amp;random=" + (new Date()).getTime());

$j('#comment_'+id+'').hide('slow');	

}
	

function deletewallpost(id){  
	
$j('#wall_'+id+'').load("module/profile/functions/ajax/delete_wallpost.php?id="+id+"&amp;random=" + (new Date()).getTime());

$j('#wall_'+id+'').hide('slow');	

}








function removeTag(i)
{

$j.post("module/gallery/functions/ajax/delete_tag.php?&id=" + i + "&amp;random=" + (new Date()).getTime());


	$j("#hotspot-item-"+i).fadeOut();
	$j("#hotspot-"+i).fadeOut();
}
function showTag(i)
{
	$j("#hotspot-"+i).addClass("hotspothover");
}

function hideTag(i)
{
	$j("#hotspot-"+i).removeClass("hotspothover");
}
















function P91Fadeout(id, geschwindigkeit) {
var fps = Math.round(geschwindigkeit / 100); 
var tmp = 0;
for(i = 100; i >= 0; i--) {
setTimeout("P91Fadeout_fade('" + id + "'," + i + ")", (tmp * fps));
tmp++;
}
}
function P91Fadeout_fade(id, pas) {
var heurix = document.getElementById(id).style;
if(pas > 0) {
heurix.opacity = (pas / 100);
heurix.MozOpacity = (pas / 100);
heurix.KhtmlOpacity = (pas / 100);
heurix.filter = "alpha(opacity=" + pas + ")"; 
} else {
heurix.display = "none";
}
}
