﻿/**
 * ------------------------------------------------------------------------
 * If flash exist build flash site
 * ------------------------------------------------------------------------
 */
// version 6 needed for expressInstall
if ( swfobject.getFlashPlayerVersion().major >= 6 ) {
	var base = document.location.pathname.split("/");
	var flashvars = {
		defaultApp	: base.pop(),
		baseUrl		: base.join("/"),
		docHash		: document.location.hash.split("#")[1] || ""
	};
	var params = {
		bgcolor: "#000000"
	};
	var attributes = {
	};
	swfobject.embedSWF("/themes/syrup/App.swf", "flashcontent", "100%", "100%", "9.0.0", "/themes/syrup/js/expressInstall.swf", flashvars, params, attributes);
} else {
/**
 * ------------------------------------------------------------------------
 * Else let's show the html with some rewriting for formating
 * ------------------------------------------------------------------------
 */
}