
function rotator(host, width, height, gallery_id) {
	
	// JAVASCRIPT VARS
	
	// cache buster
	var cacheBuster = '?t=' + Date.parse(new Date());
	
	// ATTRIBUTES
	var attributes = {};
	attributes.id = 'rotator';
	attributes.name = 'rotator';
	
	// PARAMS
	var params = {};
	params.menu = 'false';
	params.scale = 'noScale';
	params.wmode = 'transparent';
	params.allowfullscreen = 'true';
	params.allowScriptAccess = 'always';			
	
	/* FLASH VARS */
	var flashvars = {};
	
	/// if commented / delete these lines, the component will take the stage dimensions defined 
	/// above in 'JAVASCRIPT SECTIONS' section or those defined in the settings xml
	flashvars.componentWidth = width;
	flashvars.componentHeight = height;
	
	/// path to the content folder(where the xml files, images or video are nested)
	/// if you want to use absolute paths(like 'http://domain.com/images/....') then leave it empty('')			
	flashvars.pathToFiles = 'http://'+host+'/';
	
	// path to content XML
	flashvars.contentXMLPath = '/'+cms_lang+'/cms_photos/xml_rotator/'+gallery_id;
	
	/** EMBED THE SWF**/
	swfobject.embedSWF('/js/animations/rotator.swf'+cacheBuster, attributes.id, width, height, '9.0.124', '/js/animations/expressInstall.swf', flashvars, params, attributes);
	
}
