Works inline, but not in external file??

Works inline, but not in external file??

heya guys, this is probably really simple, but can anyone tell me why the following code


[code] $j("div.set2 #cross-slide").livequery(function(){
$j('div.set2 #cross-slide').crossSlide({
sleep: 2,
fade: 1
}, [
{ src: 'set2/picture1.png' },
{ src: 'set2/picture2.png' },
{ src: 'set2/picture3.png' },
{ src: 'set2/picture4.png' },
{ src: 'set2/picture5.png' }
]);
});[/code]


Would work fine inline inside script tags, but would instantly stop working when I move it to its own external .js file
I have altered the image paths, made sure that the script tags are gone in the external js, and called it like a normal javascript file

What am I missing here, the Plugins being used here are the cross-slide plugin, and the livequery plugin, so that it works even when it's being called by ajax.

Any help massively appreciated!

Robbie