function fbshare_changed(mediaId) {//called from delve's flash player in header.php
	if ( mediaId === undefined ) {
		mediaId = "Error! No mediaID";
	} 
	var dataString = 'mediaId=' + mediaId;
	//alert("mediaId= "+mediaId);
	
	$.ajax({
		type: "POST",
		url: "../../mod/my1channel_theme/views/default/my1channel_pages/fbshare.php",
		//url: "http://www.my1channel.com/mod/my1channel_theme/views/default/my1channel_pages/fbshare.php",
		data: dataString,
		dataType: "HTML", // this is for the return data
		success: function(rendered_phpfile) {
			//var type = typeof rendered_phpfile;
			//alert(rendered_phpfile);
			if ((rendered_phpfile) == null) {
				$("#video_share_facebook").html('Sorry, there was a problem loading the form');
			} else {
				$("#video_share_facebook").html(rendered_phpfile);
			}
		}
	});
	//return false;
}

