function initFlashVideos(player, css_class, player_width, player_height, videolist){
	
	var links = $$('a.' + css_class);
	
	for(i = 0; i < links.length; i++){
		links[i].i = i;
		links[i].onclick = function(){
			
			cur_id = this.id.split("_");
			
			Shadowbox.open({
				content:    player,
				player:     "swf",
				// title:      "Welcome",
				width:      player_width,
				height:     player_height,
				options: {
					flashVars: {
						video_cur: cur_id[1],
						video_list: videolist
					}
				}
			});

			return false;
			
		} // function
	} // for

} // function

