function playMovie(file, width, height){
    //videoSlider.slideIn();
    FlashReplace.replace("video", file, "flash-element-id", width, height);
    //videoSlider.slideOut();
}

function renderThumbnails(div_name){
    var clips_xml_file = "clips.xml" ;
    var xml = new JKL.ParseXML( clips_xml_file );
    
    if(!xml)
        return;    
    
    var data = xml.parse();

    if(!data)
        return;
    
    var ul_image_list = document.getElementById(div_name) ;
    
    if(!ul_image_list)
        return;
    
    for(i in data.clips.clip){
        //getting rid of object functions
        if(!Number(i) && Number(i)!=0)
            continue;
                
        var li_thumb = document.createElement('li');
        var img = document.createElement('img') ;
        var link = document.createElement('a') ;
        
        link.setAttribute("href","#") ;
        link.setAttribute("onclick","playMovie('" + data.clips.clip[i].file + "', " + data.clips.clip[i].width + ", " + data.clips.clip[i].height + ")");
        
        img.setAttribute("src",data.clips.clip[i].thumbnail);
        
        link.appendChild(img);
        li_thumb.appendChild(link);
        ul_image_list.appendChild(li_thumb);
    }
}
