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;
	new Ajax.Updater('opera1', 
		'/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;
			var playerObj = new SWFObject('/wp-content/plugins/embedded-video/flash_flv_player/flvplayer.swf','mpl','320','290','7');
			playerObj.addParam('allowfullscreen','true');
			playerObj.addParam('allowscriptaccess','true');
			playerObj.addVariable('file', S3);
			playerObj.addVariable('height','290');
			playerObj.addVariable('displayheight','240');
			playerObj.addVariable('image', S4);
			playerObj.addVariable('width','320');
			
			playerObj.write('opera1');
		}
	});
	
		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}
		});
	
}