﻿// CSS

function jquery_css(id,attribute,value) {			

	jQuery("#"+id).css(attribute,value);
}


// HTML

function jquery_html(id,content) {			

	jQuery("#"+id).html(content);
}


// INCLUDE
            
function jquery_include(id,file) {			

	jQuery("#"+id).load(encodeURI(file));
}


// INCLUDE FADE

function jquery_include_fade (id,file,duration) {

	jQuery('#'+id).fadeOut(duration, function() {	
		jQuery('#'+id).hide().load(encodeURI(file), function() {
			jQuery('#'+id).fadeIn(duration);
		});
	});
}


// VALUE

function jquery_value(id,value) {			

	jQuery("#"+id).val(value);
}


// ALIASES

function jquery_ajax(id,file)				{ jquery_include(id,file); }
function jquery_ajax_fade(id,file,duration)	{ jquery_include_fade(id,file,duration); }
