guessing i should of not used the code tag's as some of the code has been executed
function printDefaultSizedImage($alt, $class=NULL, $id=NULL) {
// [BEGIN] added by cvogt: check for non image data
$file_full = $_SERVER['DOCUMENT_ROOT'].getFullImageURL();
$file_wo_ext = substr($file_full,0,strrpos($file_full,"."));
if( file_exists( $file_wo_ext.".flv" )){
?>
<p id="player1">Get the Flash Player to see this player.
<script type="text/javascript">
var FO = { movie:"<? echo WEBPATH; ?>/zen/flvplayer.swf",width:"640",height:"480",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file=<? echo substr(getFullImageURL(),0,strrpos(getFullImageURL(),".")); ?>.flv&showdigits=true&autostart=true&showfsbutton=false" };
UFO.create( FO, "player1");
</script>
<?
}
else {
echo "<img src=\"" . htmlspecialchars(getDefaultSizedImage()) . "\" alt=\"" . htmlspecialchars($alt, ENT_QUOTES) . "\"" .
" width=\"" . getDefaultWidth() . "\" height=\"" . getDefaultHeight() . "\"" .
(($class) ? " class=\"$class\"" : "") .
(($id) ? " id=\"$id\"" : "") . " />";
}
return;
}