// JavaScript Document


//INLINE CALENDAR FOR DATE
$(function() {
	$("#inline_calendar").datepicker();
	
});

<!-- CHAT BUTTONS -->

	$("#min_chat_window").button({
    icons: {
                primary: 'ui-icon ui-icon-minus'
            },
            text: false
        });

function get_user_to_chat(){
	var w = document.users_online.users_list.selectedIndex;
    var username = document.users_online.users_list.options[w].value;

	if(username!=='no_user'){
		chatWith(username);
	}
}

function make_appear(value){
	$('a#'+value).fadeIn('fast', function() {
        // Animation complete
    });
};

function make_disappear(value){
	$('a#'+value).fadeOut('fast', function() {
        // Animation complete
    });
};

/*shortcut.add("Shift+Space",function() {
	document.searchform.inputString.focus();
});*/

function show_loading(){
	$('#pre_loader').fadeIn('slow');
}

function show_up_loading(){
	$('#up_loading').fadeIn('slow');
}

function jshtml(string){
	return string.replace(/&/g, "and").replace(/>/g, "&gt;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
}
