	function hiddenview(id){
		document.getElementById(id).style.display="block";
	}
	
	function viewhide(id){
		document.getElementById(id).style.display="none";
	}
	
	function ViewClose(id){
		var Element = document.getElementById(id);
		if(Element){
			if (Element.style.display == "block") {
				Element.style.display="none";
			}else{
				Element.style.display="block";		
			}
		}
	}
	
	function hiddenhtml(id,htmlvalue){
		if (htmlvalue == 1) {
			htmlvalue = '<input type="hidden" name="hiddenadd" value="1"/>';
		}
		document.getElementById(id).innerHTML=htmlvalue;
	}
	
	function hidehtml(id){
		document.getElementById(id).innerHTML="";
	}
	
	
	function klancanel(klan_name,id) {
		var answer = confirm("Сигурен ли си, че искаш да се откажеш от членството си в "+klan_name+" ?")
		if (answer){
	
			window.location = id;
		}
		else{
	
		}
	}
	
	function TopMenuOver(id,color){
		if(document.getElementById(id)){
			document.getElementById(id).style.backgroundColor = color;
		}
	}
	
	function TopMenuOut(id){
		if(document.getElementById(id)){
			document.getElementById(id).style.backgroundColor = '#100E0F';
		}
	}
	function ClearText(id){
		$("#" + id).attr("value", "");
	}
	function ChangeToPassword(id){
		$("#" + id).attr("value", "");
		$("#passw1").css("display", "none");
                $("#passw1").remove();
		$("#passw").css("display", "block");
		$("#passw").focus();
	}
HomePagePicture = {};
HomePagePicture.PictureOver = false;
HomePagePicture.ShowPictureHint = function(caller, userName){
    if(HomePagePicture.PictureOver){
        return "already called";
    }
    $(".HomePageHint").remove();
    var callerHtml = caller.innerHTML;
    caller.innerHTML += "<div class='HomePageHint' style='display:none;'>" + userName + "</div>";
    $(caller).find('div').fadeIn("fast");
    HomePagePicture.PictureOver = true;
};

HomePagePicture.RemovePictureHint = function(caller){
   $(caller).find('div').remove();
   HomePagePicture.PictureOver = false;
};

