// REQUIRED: SWFOBJECT 2.0
function insertFlash(obj, movie, width, height, flashvars){
	var params = {};
		params.menu = "false";
		params.quality = "best";
		params.scale = "noscale";
		params.bgcolor = "#000000";
		params.wmode =  "opaque";
	var attributes = {};
		swfobject.embedSWF(movie, obj, width, height, "8.0.0", "expressInstall.swf", flashvars, params, attributes);
}
// FUNCTION TO ADJUST HTML FROM THE BUNDLE FILE
function adjustHTML(str){
	str = str.replace("[br]","<br />");
	str = str.replace("[em]","<em>");
	str = str.replace("[/em]","</em>");
	str = str.replace("&amp;","*[e]*");
	return str;
}

// FUNCTION TO RETURN A HTML ELEMENT BY ID
function getE(item) {
	return document.getElementById(item);
}

/* OPEN POP UP */
function openPopup(name) {
	popup = window.open(name,'','scrollbars=no,menubar=no,height=240,width=320,resizable=no,toolbar=no,location=no,status=no,screenX=350,screenY=320,left=350,top=320');
}
