// Function - Swf Load
function swfLoad(id, path, imgpath, sptpath, width, height){

    if (el = document.getElementById(id)) {
        path = path+"?script="+sptpath+"&imgpath="+imgpath;

        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 += "</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";
        }
    }

}
