function cmsLightboxTrigger(url1,caption1,url2,caption2,url3,caption3,url4,caption4,url5,caption5,url6,caption6,url7,caption7,url8,caption8,url9,caption9,url10,caption10) {

	// lets make some default display adjustments
	var options = {
		showMovieControls:  false,
        resizeLgImages:     false,
        displayNav:         true,
        handleUnsupported:  'remove',
        keysClose:          ['c', 27], // c or esc
        overlayOpacity:     0.5,
        autoplayMovies:     true
    };

	// initialize the shadowbox with the given options
    Shadowbox.init(options);

	// remove the anchors created before
	Shadowbox.clearCache();

	// loop through trigger parameters and create virtual links
	for (var i = 1; i <= 10; i++){
		curr_url = eval('url' + i);
		curr_caption = eval('caption' + i);
		if(typeof curr_url != 'undefined' && curr_url.indexOf('0.gif') == -1) {
			vLink = document.createElement("a");
			vLink.setAttribute('class','dyn');
			if(curr_url.indexOf('.flv') == -1)
				vLink.setAttribute('rel','shadowbox[group]');
			else
				vLink.setAttribute('rel','shadowbox[group];width=640;height=480;');
			vLink.setAttribute('href', curr_url);
			vLink.setAttribute('title', curr_caption);
            Shadowbox.setup(vLink);
			// remember the first element
			if(i == 1) firstelement = vLink;
		}
	}

	// fire it up!
	Shadowbox.open(firstelement);
}
