function open_gallery() {

	if(document.getElementById('gallery_movie')) {
		
		var console = 'false';
		var useScrollWheel = 'false';
		var s_cc = cc;
		if(cc == 'ie') s_cc = 'gb';
		if(cc == 'lu') s_cc = 'be';
		
		if(typeof(console_type) != 'undefined' && console_type == 'true') console = 'true';
		
		var br_height = 0;
		
		if(typeof(window.innerHeight) != 'undefined') br_height = window.innerHeight;
		if(typeof(document.body.clientHeight) != 'undefined') br_height = document.body.clientHeight;
		
		if(br_height > 760) useScrollWheel = 'true';
		
		var flashvars = {};
			flashvars.cc = s_cc;
			flashvars.lc = lc;
			flashvars.info = info;
			flashvars.xml = xml;
			flashvars.movie = movie;
			flashvars.library = library;
			flashvars.fonts = fonts;
			flashvars.photo = photo_id;
			flashvars.console = console;
			flashvars.useScrollWheel = useScrollWheel;
			flashvars.tmb_server = tmb_photo_server;
			flashvars.lrg_server = lrg_photo_server;
		var params = {};
			params.play = "true";
			params.loop = "true";
			params.menu = "true";
			params.quality = "high";
			params.scale = "noscale";
			params.wmode = "window";
			params.devicefont = "false";
			params.allowfullscreen = "true";
			params.allowscriptaccess = "sameDomain";
		var attributes = {};
			attributes.id = "gallery_movie";
			attributes.align = "middle";
			attributes.onfocus = 'this.blur()';
		swfobject.embedSWF(
			swf,
			"gallery_movie",
			movie_width,
			movie_height,
			"9.0.115",
			express,
			flashvars,
			params,
			attributes
			);
	}
	
}