function startPractice() {
    var content = document.getElementById('content');
    var winHeight = getWindowHeight();
    content.style.height = winHeight - 76 + "px";
    content.style.width = "100%";
    content.innerHTML = getDma("/dma.swf8.swf");
}

function getWindowHeight() { 
    var windowHeight = 0; 
    if (typeof(window.innerHeight) == 'number') { 
        windowHeight = window.innerHeight; 
    } 
    else { 
        if (document.documentelement && document.documentelement.clientHeight) { 
            windowHeight = document.documentelement.clientHeight; 
        } 
        else { 
            if (document.body && document.body.clientHeight) { 
                windowHeight = document.body.clientHeight; 
            } 
        } 
    } 
    return windowHeight; 
} 


var setContentsDiv = function(contents) {
    document.getElementById("contents").innerHTML = contents;
}


var getDma = function(dmaSwf) {
    var contents = '';
    contents += '<object id="dmaSwf" type="application/x-shockwave-flash" data="' + dmaSwf + '" >';
    contents += ' <param name="movie" value="' + dmaSwf + '">';
    contents += ' <param name="quality" value="high">';
    contents += ' <param name="scale" value="noscale">';
    contents += ' <param name="salign" value="LT">';
    contents += ' <param name="menu" value="false">';
    contents += '</object>';
    
    return contents;
} 


