// last updated by david 21/10/2009

// embed flash file with swfobject

var detect_height = $(window).height();

// show full size demo is viewport is big enough (based on height for netbooks)
// note flash fits itself to the viewport anyway so this is pretty much obsolete
if ( detect_height > 768 ) {
	
	var swf_width = 1024;
	var swf_height = 768;

// show smaller demo
} else {
	
	var swf_width = 747;
	var swf_height = 561;
	
}

var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF("main.swf", "swf_file", swf_width, swf_height, "10.0.0", false, flashvars, params, attributes);
