var o = this;
o.initialize = function(w, h)
{
	this.flashElement = document.getElementById("swf");
	//document.getElementsByTagName("html")[0].style.overflow = "hidden";
	this.flashElement.style.overflow = "hidden";
	window.onresize = this.doResize;
	this.setFlashDimensions(w, h);
};
o.setFlashDimensions = function(w, h)
{
	this.flashWidth = w;
	this.flashHeight = h;
	this.doResize();
};
o.thisMovie = function(movieName)
{
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName];
    }
    else {
        return document[movieName];
    }
};
o.doResize = function()
{	
	var bw; var bh;
	if (self.innerHeight) { // all except Explorer
		bw = self.innerWidth;
		bh = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {	// Explorer 6 Strict Mode
		bw = document.documentElement.clientWidth;
		bh = document.documentElement.clientHeight;
	}else if (document.body) { // other Explorers
		bw = document.body.clientWidth;
		bh = document.body.clientHeight;
	}
	/*if(bh < this.flashHeight || bw < this.flashWidth) {
		document.getElementsByTagName("html")[0].style.overflow = "auto";
	} else {
		document.getElementsByTagName("html")[0].style.overflow = "hidden";
	}*/
	
	this.flashElement.style.height = bh < this.flashHeight ? this.flashHeight + "px" : "100%";
	//this.flashElement.style.width = bw < this.flashWidth ? this.flashWidth + "px" : "100%";
};
