Calling Sub-Function in Javascript Different in Safari

// This will NOT work in safari.
function Foo2(){
	alert("In Foo2 Method");
	 
	(
		function Bar2(){
			alert("In Bar2 Method");
		}
	)();
}
 
// Call the Foo2 method for testing.
Foo2();

For Cut-and-Paste