rendered paste bodyfunction lmds_roating_header($nid, $preset, $transtime) { if (node_load($nid)){ //print_r(($node->field_image));$output = <<<lmdsJava <script type="text/javascript"> $(document).ready(function() { $('#slideshow').slideshow({ timeout: $transtime, type: 'random' }); }); </script>lmdsJava; $output .= '<div id="slideshow" class="' . $preset . '">'; $node = node_load($nid); foreach ( $node->field_image as $image) { if (is_file($image['filepath'])) { $output .= "\n" . theme('imagecache', $preset, $image[filepath]); // print $image[filepath]; } } $output .= '</div>'; } return $output;}