$j().ready(function() {
// install flowplayers
var checkX = false;
var player = null;
// setup overlay actions to buttons
$j("img[rel]").overlay({
// use the Apple effect for overlay
effect: 'apple',
onLoad: function(content) {
// find the player contained inside this overlay and load it
player = $f( this.getOverlay().find("a.player").attr("id"), "/flowplayer/flow3_2/flowplayer-3.2.7.swf");
this.getOverlay().find("a.player").flowplayer(0).load();
checkX = true;
},
onClose: function(content) {
//alert( player + " " + this.getOverlay().find("a.player").attr("id") +" is closing...");
if (checkX) {
checkX = false;
this.getOverlay().find("a.player").flowplayer(0).unload();
}
$f().unload();
}
});
// setup overlay actions to a link
$j("a[rel]").overlay({
// use the Apple effect for overlay
effect: 'apple',
onLoad: function(content) {
// find the player contained inside this overlay and load it
player = $f( this.getOverlay().find("a.player").attr("id"), "/flowplayer/flow3_2/flowplayer-3.2.7.swf");
this.getOverlay().find("a.player").flowplayer(0).load();
checkX = true;
},
onClose: function(content) {
//alert( player + " " + this.getOverlay().find("a.player").attr("id") +" is closing...");
if (checkX) {
checkX = false;
this.getOverlay().find("a.player").flowplayer(0).unload();
}
$f().unload();
}
});
});
-->