var str_src = "";
var str_alt = "";

function embed_flash(str_id, str_src, str_width, str_height) {
	var arr_flashvars = {};
	var arr_params = {quality:"high"};
	var arr_attributes = {};
	swfobject.embedSWF(str_src, str_id, str_width, str_height, "9.0.0", false, arr_flashvars, arr_params, arr_attributes);
	return true;
} // end function

function add_flash(str_parent, str_id, str_src, str_width, str_height) {
	var obj_parent = document.getElementById(str_parent);
	var obj_flash_container = document.createElement("div");
	var obj_flash = document.createElement("div");
	obj_parent.appendChild(obj_flash_container);
	obj_flash_container.appendChild(obj_flash);
	obj_flash_container.id = str_id + "_container";
	obj_flash_container.style.position = "absolute";
	obj_flash_container.style.width = str_width + "px";
	obj_flash_container.style.height = str_height + "px";
	//obj_flash_container.style.top = str_top + "px";
	//obj_flash_container.style.visibility = "hidden";
	obj_flash.id = str_id;
	var arr_flashvars = {};
	var arr_params = {quality:"high"};
	var arr_attributes = {};
	swfobject.embedSWF(str_src, str_id, str_width, str_height, "9.0.0", false, arr_flashvars, arr_params, arr_attributes);
	return true;
} // end function


function js_load_objects() {
	var str_location = document.location.href;
	str_location = str_location.replace("http://","");
	str_location = str_location.replace("https://","");
	str_location = str_location.replace(document.domain,"");
	if (str_location.indexOf("open")>=0)  { 
		//embed_flash("holder", "/images/open.swf", "910", "510");
		add_flash("r3", "flashcontainer", "/images/open.swf", "910", "510");
		document.getElementById("side-links").style.visibility = "hidden";
	} // end if
} // end function

function event_load(obj_event) {
	js_load_objects();
} // end function
swfobject.addDomLoadEvent(event_load);


