var jsReady = false;
		
// External Interface for Flash
function isReady() {
	return jsReady;
}

function displaySwf(swfUrl, swfWidth, swfHeight, posX, posY, vars) {
	// create conatiner
	$(".block_7").append("<div id=\"overlayContainer\"><div id=\"overlay\"></div></div>");
	$("#overlayContainer").css({top:posY, left:posX});
	//insert swf
	var att = { data:swfUrl, width:swfWidth, height:swfHeight };
	var par = { flashvars:vars };
	var id = "overlay";
	swfobject.createSWF(att, par, id);
}

function removeSwf() {
	swfobject.removeSWF("overlay");
	$("#overlayContainer").remove();
}

$(document).ready(function(){
	jsReady = true;
});