function goto(url, width, height){
	if(height == "0" && width == "0"){
			var obj = swfobject.getObjectById("flashContent");
			obj.failUrlCallback(url, width, height);
	}else if(!window.open(url, "", "width=" + width + ",height=" + height + ", scrollbars=0")){
			var obj = swfobject.getObjectById("flashContent");
			obj.failUrlCallback(url, width, height);
	}
}

var mainHeight = 0;

function setHeight(height){

	mainHeight = height;
	
	var windowHeight = document.viewport.getHeight();
	
	$('page').setStyle({
	  'minHeight': height + 'px'
	});

	$('flashContent').setStyle({
		'height': (height>windowHeight?height:windowHeight) + 'px'
	});
}

window.onresize = function(){
	setHeight(mainHeight);
};

window.onload = function(){
	fullwin();
	var flashvars = {
	};
	var params = {
	  menu: "false",
	  scale : "noscale"
	};
	var attributes = {
	  id: "flashContent",
	  name: "flashContent"
	};

	swfobject.embedSWF("../swf/main.swf", "flashContent", "100%", "100%", "9.0.0","expressInstall.swf", flashvars, params, attributes);
	
}

function fullwin(){
	
	this.moveTo(10,0);
	
	screenW = screen.width;
	screenH = screen.height;
		
	window.resizeTo(screenW, screenH);
	//window.moveTo(0,0);
	
}

