
function inject_orbitvu	( id, orbitvu_path, expressinstall_path, orbitvuargs ) {
	var default_args = {
		width  : "400",
		height : "300",
		image_folder: "",
		lang: "pl", 
		transparent: "no",
		background_color: "0xffffff",
		border: "yes", 
		border_color: "0x000000", 
		auto_rotate: "no", 
		frame_rate: "12",
		preload: "no",
		mousewheelfix: "yes",
		rotate_dir: "right",
		iecachefix: "yes",
		report_bugs: "no",
		id: "ORBITVU"
	}
	for(var index in default_args) {
		if(typeof orbitvuargs[index] == "undefined") orbitvuargs[index] = default_args[index];
	}
	if(typeof orbitvuargs['id'] == "undefined") return;
	if(typeof orbitvuargs['xml_url'] == "undefined") return;

	if( orbitvuargs['iecachefix'] == "yes" )
	{
	  var un = Math.round(Math.random()*10000);
	  orbitvu_path += "?un="+un;
	}
	var params = {menu: "false", quality: "high", allowfullscreen: "true", align: "middle"};
	var attributes = {id: id, name: "360Viewer"};
	swfobject.embedSWF(orbitvu_path, id, orbitvuargs['width'], orbitvuargs['height'], "10.0.0", expressinstall_path, orbitvuargs, params, attributes ); 
}
