// JavaScript Document
var l_container="loading_box";

function profil_show(container,filter,show){
	var httpObj=getHTTPObject();
	loading(container);
	if(httpObj != null){
        httpObj.open("GET", host+"/inc/profil/ajax_profil.php?filter="+filter+"&show="+show, false);
        httpObj.send(null);
		do{
			document.getElementById(container).innerHTML="<img src='/img/in-progress.gif' border='0' height='30'/>";
		}while(httpObj.readyState!=4);
      	if (httpObj.readyState==4){
       		response=httpObj.responseText;
      	}
		document.getElementById(container).innerHTML=response;
		document.getElementById(l_container).innerHTML="";
	}
	$(".trigger").tipsy({gravity: 'sw'});
}

function add_fav(container,filter,item_id){
	var httpObj=getHTTPObject();
	document.getElementById(container).innerHTML="<img src='/img/in-progress.gif' border='0' height='20'/>";
	if(httpObj != null){
        httpObj.open("GET", host+"/inc/profil/ajax_profil.php?filter="+filter+"&item_id="+item_id, false);
        httpObj.send(null);
		do{
			document.getElementById(container).innerHTML="<img src='/img/in-progress.gif' border='0' height='30'/>";
		}while(httpObj.readyState!=4);
      	if (httpObj.readyState==4){
       		response=httpObj.responseText;
      	}
		document.getElementById(container).innerHTML=response;
	}
	$(".trigger").tipsy({gravity: 'sw'});
	$(".trigger").click(function(e){$(this).showTooltip(e)});
	//$(".cloud").fadeOut("fast");
	//$(".cloud").fadeIn("fast");
}

function hide_content(container){
	document.getElementById(container).innerHTML="";
}

