/* Flash Image-Scroller by Matthias Kuehn - DIATOM Internet & Medien GmbH *** */
/*
    id        = Container-ID
    path      = Pfad zur Flash-Datei
    sptpath   = Pfad zum Script
    width     = Breite
    height    = Höhe
*/

function imgLoad(id, path, sptpath, width, height){

    if (el = document.getElementById(id)) {
        
        script = "script="+sptpath;

        var str = "<object type='application/x-shockwave-flash' wmode='transparent' scale='noScale' salign='tl' data='"+path+"' id='obj_"+id+"' style='-moz-user-focus:ignore'>"; 
        str += "<param name='movie' value='"+path+"' />";
        str += "<param name='quality' value='high' />";
        str += "<param name='menu' value='false' />";
        str += "<param name='scale' value='noScale' />"; 
        str += "<param name='salign' value='tl' />"; 
        str += "<param name='wmode' value='transparent' />";
        str += "<param name='FlashVars' value='"+script+"' />";
        str += "</object>";
        el.innerHTML = str;

        el1 = document.getElementById(id);
        el2 = document.getElementById("obj_"+id);
        
        if (el1 && el2){
            el1.style.height=height+"px";
            el2.style.width=width+"px";
            el2.style.height=height+"px";
        }
    }

}

