function openProjectIFrame (url, w, h) {
	Shadowbox.open({
		content: url,
		player: "iframe",
		title: "",
		width: w,
		height: h,
		options: {
			animate: false,
			animateFade: false,
			onClose: onShadowboxClose,
			showOverlay: false,
			troubleElements: ["select", "canvas"]
			}
	});
}

function onShadowboxClose (val) {
	getSWFReference('flashContent').onIFrameClosed("js sez iframe closed");
}

function getSWFReference (swfId) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[swfId];
	} else {
		return document[swfId];
	}
}
