function switch_video(id, id2, id3) {

/*	if ( typeof(window['precvideo']) != 'undefined' ) {

		document.getElementById('video-'+precvideo).className='';

	}

	document.getElementById('video-'+id).className='vidselect';

	window['precvideo'] = id;
*/
//	alert('_');
	new Ajax.Updater('opera2', 

		'/wp-content/themes/simplelabob/switch_video.php', {

		method:'post',

		parameters: {id_post: id, id_vid: id2, id_gimg: id3},
		onComplete: function() {

			var S3 = $('url_s3').value;

			var S4 = $('url_s4').value;
//alert('1');

var flashvars = 
	{
		file				: S3,
		height				: "437",
		width				: "798",		
		displayheight		: "437",
		image				: S4,		
		backcolor			: "000000",		
		frontcolor			: "ffffff",				
		stretching			: "exactfit",		
		lightcolor			: "C0C0C0"		
	};
 	var params = 
	{
		allowScriptAccess	: "always",
		allowfullscreen		: "true",
		wmode				: "transparent",
		bgcolor				: "#ffffff",
		quality				: "best"
	};
	var attributes = {
		id					: "opera1",
		name				: "opera1"
	};

	swfobject.embedSWF("/wp-content/plugins/embedded-video/flash_flv_player/flvplayer.swf", "opera1", "798", "437", "9.0.124", "expressInstall.swf", flashvars, params, attributes );
//alert('2');	
		}

	});

	

		new Ajax.Updater('commentsajax', '/wp-content/themes/simplelabob/switch_videoinfos.php', {

			method:'post',

			parameters: {id_post: id}

		});

		

		new Ajax.Updater('sharrh', '/wp-content/themes/simplelabob/switch_sharethis.php', {

			method:'post',

			parameters: {id_post: id},

	onComplete: function() {
			
 	var flashvars = 
	{
		codeEmbed: "THE_CLIPBOARD"
	};
 
	var params = 
	{
		allowScriptAccess	: "always"  ,
		bgcolor				: "#ffffff"  ,
		quality				: "best"
	} ;
	
	var attributes = {
	};
 
	swfobject.embedSWF("/wp-content/plugins/share-this/clipboard.swf", "clipcontener", "100", "16", "9.0.124", "expressInstall.swf", flashvars, params, attributes );

	swfobject.embedSWF("/wp-content/plugins/share-this/clipboard2.swf", "clipcontener2", "100", "16", "9.0.124", "expressInstall.swf", flashvars, params, attributes );

    }
		});

	

}