// Script for making flash movies resizeable that are embedded in HTML
// put this in the <body> tag: onResize="resizeMovie('movie_name');" of the 
// HTML page, Also add: ID='movie_name' to the <OBJECT> tag and
// add name='movie_name' to the <EMBED> tag.
var orig_w=640, orig_h=480;
var  w, h, dw, dh, mc;
var init=false;
var IE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;

function resizeMovie(win_name){
    if(IE){	
	mc = window[win_name];
	init = true;
    }
    else{
	return; // Netscape can't do this resizing code right, but it doesn't need to.
    }
    w = document.body.clientWidth;
    h = document.body.clientHeight;
    dw = w/orig_w;
    dh = h/orig_h;

    if(dw < dh){
	mc.width = (orig_w-10)*(dw);
	mc.height = .714*mc.width;
    }
    else{
	mc.height = (orig_h-30)*(dh);
	mc.width = 1.4*mc.height;
    }
}
