Ok i feel like Im getting close, but its just this area of code...
function dynamicJS()
{
global $timeout;
    return "$(document).ready(function(){
    $('#s1').cycle({
    fx:'fade',
    speed:'2000',
    timeout: 0,
    next:'#next', prev:'#prev'});
    });";
    
    
    return "function show_image(id)
    {
        $('.pic').hide();
        $('#p' + id).show();
        $('#num').html(id);
        return false;
    }";
}
the first half is from the slideshow php, and the second half from the iwakami php.
I decided to just combine them both under the "dynamicJS" tag thing. I dont know much about php, but Im guessing these two bits of code are conflicting. When I take out the first half, iwakami works, and then vise versa for the slideshow.
So I think somehow combining these two bits of code should work...but i have no idea what im doing lol
Any help would be awesome
Link to my webpage
Current php file im working with