/* DHTML FUNCTIONS */
var isNav4, isIE4, isNav6 = false; var range = ""; var styleObj = "";
if (navigator.appVersion.charAt(0) >= 4) {
	if (navigator.appName == "Netscape") { if (navigator.appVersion.charAt(0) >= 5) {isNav6 = true;} else {isNav4 = true;}}
	else {isIE4 = true; range = "all."; styleObj = ".style";}
}
function getObject(obj) {var theObj;
	if (typeof obj == "string") {
		if (isNav6) {theObj = document.getElementById(obj); if (theObj != null) theObj = theObj.style;}
		else {theObj = eval("document." + range + obj); if (theObj != null) theObj = eval("theObj" + styleObj);}}
	else {theObj = obj;} return theObj;
}
function show () {var theObj;
	for (var i = 0; i < show.arguments.length; i++) { theObj = getObject(show.arguments[i]);
		if (theObj != null) { theObj.display = "block"; theObj.visibility = "visible";}}
}
function hide () {var theObj;
	for (var i = 0; i < hide.arguments.length; i++) { theObj = getObject(hide.arguments[i]);
		if (theObj != null) { theObj.display = "none"; theObj.visibility = "hidden";}}
}

function setPositionDiv()
{
    // need to look up the size of the flash object before calculating the
    // width of the document
    var flashObjectWidth = 0;
    var flashObj = document.getElementById("vidBox02");
    if(flashObj)
    {
        flashObjectWidth += findMinBrowserWidth(flashObj);
    }
    
    // find the height of the document based on the browser
    
    // for IE6 without a DOCTYPE
    if(document.documentElement.clientHeight && document.documentElement.clientHeight == 0)
    {
        vidDivHeight = document.documentElement.scrollHeight;
        vidDivWidth = document.documentElement.scrollWidth;
    }
        
    // for all browsers but IE6 without a DOCTYPE
    else if (document.documentElement && document.documentElement.scrollHeight)
    {   
        vidDivHeight = document.body.scrollHeight;
        vidDivWidth = document.body.scrollWidth;
    }
    
	document.getElementById('vidBox01').style.height = vidDivHeight + "px";
	
	if(flashObjectWidth > vidDivWidth)
	{
	    vidDivWidth = flashObjectWidth;
	}
    document.getElementById('vidBox01').style.width = vidDivWidth + "px";          
}

function findMinBrowserWidth(htmlElement)
{
        // remember the actual values of the element before changing
        var oldVisibility = htmlElement.style.visibility;
        var oldDisplay = htmlElement.style.display;
        var oldPosition = htmlElement.style.position;
        
        // enable the element's width to be found by changing these properties
        htmlElement.style.visibility = "hidden";
        htmlElement.style.display = "block";
        htmlElement.style.position = "absolute";
        
        // find the desired width
        var width = htmlElement.offsetWidth;
        var leftOffset = htmlElement.offsetLeft;
        
        // change back the properties
        htmlElement.style.visibility = oldVisibility;
        htmlElement.style.display = oldDisplay;
        htmlElement.style.position = oldPosition;

        return width + leftOffset;
}

window.onresize = setPositionDiv;