Possible Duplicate:
jQuery: What does (function($) {})(jQuery); mean?
I stumbled up on the following code (included in one file) but I just cannot understand what it really means.
(function ($) {
function doSomething1(somedata) {
}
function doSomething1(somedata) {
}
})(jQuery);
Question 1: What does this syntax mean in the contex of jQuery
Question 2: How can we call these functions let say from other files such as the HTML index file and other JavaScript files?
Thanks