function initFlashExpandable (flashID) {
    var flashObject = document.getElementById(flashID);
    var flashContainer = flashObject.parentNode;

    if ( flashContainer.nodeType != -1 && flashContainer.nodeName.toLowerCase() != "body" ) {
        flashContainer.style.position = "relative";
    }
    else {
        flashContainer = document.createElement("div");
        flashContainer.style.width = flashObject.clientWidth + "px";
        flashContainer.style.height = flashObject.clientHeight + "px";
        flashObject.parentNode.insertBefore(flashContainer, flashObject);
        flashContainer.appendChild(flashObject);
    }

    flashObject.style.position = "absolute";
    flashObject.style.top = 0;
    flashObject.style.left = 0;
}
function expande (flashID, width, height) {
    var flashObject = document.getElementById(flashID);

    flashObject.style.width = width + "px";
    flashObject.style.height = height + "px";
	flashObject.scaleControlBar();
}

function revertExpande (flashID) {
    var flashObject = document.getElementById(flashID);

    flashObject.style.width = flashObject.parentNode.clientWidth + "px";
    flashObject.style.height = flashObject.parentNode.clientHeight + "px";
	//alert(flashObject.style.width);
}
