jquery ui datepicker stops jquery malsup cycle

jquery ui datepicker stops jquery malsup cycle

Hi guys,
I tried to use on the same page jquery UI datepicker and jquery malsup cycle for rotating images, but cycle stops and loads all images on the screen. Is there a way to get them to work together?
Thanks,
Spyros

Code on external js for malsup:

$(window).load(function() {
    $('.slideshow').cycle({
        fx: 'turnLeft'
    });
});

Code on page for ui datepicker:

<script type="text/javascript">
    var datefield=document.createElement("input")
    datefield.setAttribute("type", "date")
    if (datefield.type!="date"){ //if browser doesn't support input type="date", load files for jQuery UI Date Picker
        document.write('<link href=" http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/blitzer/jquery-ui.css" rel="stylesheet" type="text/css" />\n')
        document.write('<script src=" http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"><\/script>\n')
        document.write('<script src=" http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"><\/script>\n')
    }
</script>
 
<script>
if (datefield.type!="date"){
    jQuery(function($){
        $('#ApplDate').datepicker({minDate: 0});
        $('#FundDate, #AltDate').datepicker({minDate: 1});       
    })
}
</script>