windowW = 0;
windowH = 0;
var off;
oLeft = 0;
oTop = 0;

	if(!window.innerWidth) {
		if(!(document.documentElement.clientWidth == 0)) {
			//window.alert("doc.docElem");
			windowW = document.documentElement.clientWidth;
			windowH = document.documentElement.clientHeight;

			windowW -= 18;

		} else {
			//window.alert("doc.body");
			windowW = document.body.clientWidth;
			windowH = document.body.clientHeight;
		}
	} else {
		//window.alert("window");
		windowW = window.innerWidth;
		windowH = window.innerHeight;
	}

function init() {
	off = $('flash_area').cumulativeOffset();
	oLeft = -1*off[0];
	oTop = -1*off[1];
}
window.onload = init;

function SnowflakeExpand() {
	$('snowflake').morph('width:'+windowW+'px;height:'+windowH+'px;top:'+oTop+'px;left:'+oLeft+'px');
	return false;
}
//function SnowflakeCollapse() { $('snowflake').morph('width:486px;height:394px;top:0px;left:-20px'); return false; }
function SnowflakeCollapse() { $('snowflake').morph('width:514px;height:436px;top:0px;left:-48px'); return false; }


var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function snowflakeswf_DoFSCommand(command, args) {
	var snowflakeswfObj = isInternetExplorer ? document.all.snowflakeswf : document.snowflakeswf;

	window.alert("FSCommand = "+command);

	if(command=="SnowflakeExpand") {
		getSize();
		$('snowflake').morph('width:'+windowW+';height:'+windowH+';top:'+oTop+'px;left:'+oLeft+'px'); return false;

	}

	if(command=="SnowflakeCollapse") {

//		$('snowflake').morph('height:486px;width:394px;top:0px;left:-20px'); return false;
		$('snowflake').morph('height:514px;width:436px;top:0px;left:-48px'); return false;

	}

}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub snowflakeswf_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call snowflakeswf_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
