[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bwebsites/kde-in=5D_/=3A_Add_sponsor_logos=3B_Remove?=
From:       Sayak Banerjee <sayakb () kde ! org>
Date:       2011-05-03 21:29:36
Message-ID: 20110503212936.36BF7A60A4 () git ! kde ! org
[Download RAW message or body]

Git commit 6c46979f99aa582493a87fd49058a009dfe590ed by Sayak Banerjee.
Committed on 03/05/2011 at 23:29.
Pushed by sayakb into branch 'master'.

Add sponsor logos; Remove files that are no longer needed after WP upgrade

A  +-    --    files/sponsors/alokin.png         [License: Trivial file]
A  +-    --    files/sponsors/forum_nokia_com.png         [License: Trivial file]
A  +-    --    files/sponsors/qt_foundation.png         [License: Trivial file]
A  +-    --    files/sponsors/spoken_tutorial.png         [License: Trivial file]
A  +-    --    files/sponsors/vcreate_logic.png         [License: Trivial file]
D  +0    -239  wp-admin/edit-attachment-rows.php     
D  +0    -237  wp-admin/edit-link-categories.php     
D  +0    -92   wp-admin/edit-link-category-form.php     
D  +0    -34   wp-admin/edit-post-rows.php     
D  +-    --    wp-admin/images/button-grad-active-vs.png     
D  +-    --    wp-admin/images/button-grad-vs.png     
D  +-    --    wp-admin/images/fav-arrow-vs-rtl.gif     
D  +-    --    wp-admin/images/fav-arrow-vs.gif     
D  +-    --    wp-admin/images/fav-top-vs.gif     
D  +-    --    wp-admin/images/list-vs.png     
D  +-    --    wp-admin/images/screen-options-right-up.gif     
D  +-    --    wp-admin/images/screen-options-right.gif     
D  +-    --    wp-admin/images/visit-site-button-grad-vs.gif     
D  +-    --    wp-admin/images/visit-site-button-grad.gif     
D  +0    -100  wp-admin/link-category.php     
D  +0    -128  wp-admin/sidebar.php     
D  +0    -1700 wp-includes/classes.php     
D  +0    -9    wp-includes/js/tinymce/blank.htm     
D  +0    -6    wp-includes/js/tinymce/plugins/media/css/content.css     
D  +0    -16   wp-includes/js/tinymce/plugins/media/css/media.css     
D  +0    -1    wp-includes/js/tinymce/plugins/media/editor_plugin.js     
D  +-    --    wp-includes/js/tinymce/plugins/media/img/flash.gif     
D  +-    --    wp-includes/js/tinymce/plugins/media/img/flv_player.swf     
D  +-    --    wp-includes/js/tinymce/plugins/media/img/quicktime.gif     
D  +-    --    wp-includes/js/tinymce/plugins/media/img/realmedia.gif     
D  +-    --    wp-includes/js/tinymce/plugins/media/img/shockwave.gif     
D  +-    --    wp-includes/js/tinymce/plugins/media/img/trans.gif     
D  +-    --    wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif     
D  +0    -73   wp-includes/js/tinymce/plugins/media/js/embed.js     
D  +0    -630  wp-includes/js/tinymce/plugins/media/js/media.js     
D  +0    -822  wp-includes/js/tinymce/plugins/media/media.htm     
D  +0    -1    wp-includes/js/tinymce/plugins/safari/blank.htm     
D  +0    -1    wp-includes/js/tinymce/plugins/safari/editor_plugin.js     

http://commits.kde.org/websites/kde-in/6c46979f99aa582493a87fd49058a009dfe590ed

diff --git a/files/sponsors/alokin.png b/files/sponsors/alokin.png
new file mode 100644
index 0000000..510255c
Binary files /dev/null and b/files/sponsors/alokin.png differ
diff --git a/files/sponsors/forum_nokia_com.png b/files/sponsors/forum_nokia_com.png
new file mode 100644
index 0000000..1464c22
Binary files /dev/null and b/files/sponsors/forum_nokia_com.png differ
diff --git a/files/sponsors/qt_foundation.png b/files/sponsors/qt_foundation.png
new file mode 100644
index 0000000..a7d44be
Binary files /dev/null and b/files/sponsors/qt_foundation.png differ
diff --git a/files/sponsors/spoken_tutorial.png b/files/sponsors/spoken_tutorial.png
new file mode 100644
index 0000000..71477d6
Binary files /dev/null and b/files/sponsors/spoken_tutorial.png differ
diff --git a/files/sponsors/vcreate_logic.png b/files/sponsors/vcreate_logic.png
new file mode 100644
index 0000000..5ec5180
Binary files /dev/null and b/files/sponsors/vcreate_logic.png differ
diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php
deleted file mode 100644
index d88316b..0000000
--- a/wp-admin/edit-attachment-rows.php
+++ /dev/null
@@ -1,239 +0,0 @@
-<?php
-/**
- * Edit attachments table for inclusion in administration panels.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-// don't load directly
-if ( !defined('ABSPATH') )
-	die('-1');
-
-if ( have_posts() ) { ?>
-<table class="widefat fixed" cellspacing="0">
-	<thead>
-	<tr>
-<?php print_column_headers('upload'); ?>
-	</tr>
-	</thead>
-
-	<tfoot>
-	<tr>
-<?php print_column_headers('upload', false); ?>
-	</tr>
-	</tfoot>
-
-	<tbody id="the-list" class="list:post">
-<?php
-add_filter('the_title','esc_html');
-$alt = '';
-$posts_columns = get_column_headers('upload');
-$hidden = get_hidden_columns('upload');
-
-while ( have_posts() ) : the_post();
-
-if ( $is_trash && $post->post_status != 'trash' )
-	continue;
-elseif ( !$is_trash && $post->post_status == 'trash' )
-	continue;
-
-$alt = ( 'alternate' == $alt ) ? '' : 'alternate';
-
-$post_owner = ( get_current_user_id() == $post->post_author ? 'self' : 'other' );
-$att_title = _draft_or_post_title();
-?>
-	<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . \
                $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
-
-<?php
-foreach ($posts_columns as $column_name => $column_display_name ) {
-	$class = "class=\"$column_name column-$column_name\"";
-
-	$style = '';
-	if ( in_array($column_name, $hidden) )
-		$style = ' style="display:none;"';
-
-	$attributes = "$class$style";
-
-	switch($column_name) {
-
-	case 'cb':
-		?>
-		<th scope="row" class="check-column"><?php if ( current_user_can('edit_post', \
$post->ID) ) { ?><input type="checkbox" name="media[]" value="<?php the_ID(); ?>" \
                /><?php } ?></th>
-		<?php
-		break;
-
-	case 'icon':
-		$attributes = 'class="column-icon media-icon"' . $style;
-		?>
-		<td <?php echo $attributes ?>><?php
-			if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) {
-				if ( $is_trash ) echo $thumb;
-				else {
-?>
-				<a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo \
                esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>">
-					<?php echo $thumb; ?>
-				</a>
-
-<?php			}
-			}
-		?></td>
-		<?php
-		// TODO
-		break;
-
-	case 'media':
-		?>
-		<td <?php echo $attributes ?>><strong><?php if ( $is_trash ) echo $att_title; else \
{ ?><a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo \
esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>"><?php echo \
                $att_title; ?></a><?php } ?></strong>
-		<p>
-		<?php
-		if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
-			echo esc_html( strtoupper( $matches[1] ) );
-		else
-			echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
-		?>
-		</p>
-		<?php
-		$actions = array();
-		if ( current_user_can('edit_post', $post->ID) && !$is_trash )
-			$actions['edit'] = '<a href="' . get_edit_post_link($post->ID, true) . '">' . \
                __('Edit') . '</a>';
-		if ( current_user_can('delete_post', $post->ID) ) {
-			if ( $is_trash )
-				$actions['untrash'] = "<a class='submitdelete' href='" . \
wp_nonce_url("post.php?action=untrash&amp;post=$post->ID", 'untrash-attachment_' . \
                $post->ID) . "'>" . __('Restore') . "</a>";
-			elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
-				$actions['trash'] = "<a class='submitdelete' href='" . \
wp_nonce_url("post.php?action=trash&amp;post=$post->ID", 'trash-attachment_' . \
                $post->ID) . "'>" . __('Trash') . "</a>";
-			if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) {
-				$delete_ays = (!$is_trash && !MEDIA_TRASH) ? " onclick='return \
                showNotice.warn();'" : '';
-				$actions['delete'] = "<a class='submitdelete'$delete_ays href='" . \
wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-attachment_' . \
                $post->ID) . "'>" . __('Delete Permanently') . "</a>";
-			}
-		}
-		if ( !$is_trash ) {
-			$title =_draft_or_post_title($post->post_parent);
-			$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . \
esc_attr(sprintf(__('View &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . \
                __('View') . '</a>';
-		}
-		$actions = apply_filters( 'media_row_actions', $actions, $post );
-		$action_count = count($actions);
-		$i = 0;
-		echo '<div class="row-actions">';
-		foreach ( $actions as $action => $link ) {
-			++$i;
-			( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-			echo "<span class='$action'>$link$sep</span>";
-		}
-		echo '</div>';
-		?></td>
-		<?php
-		break;
-
-	case 'author':
-		?>
-		<td <?php echo $attributes ?>><?php the_author() ?></td>
-		<?php
-		break;
-
-	case 'tags':
-		?>
-		<td <?php echo $attributes ?>><?php
-		$tags = get_the_tags();
-		if ( !empty( $tags ) ) {
-			$out = array();
-			foreach ( $tags as $c )
-				$out[] = "<a href='edit.php?tag=$c->slug'> " . \
esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . \
                "</a>";
-			echo join( ', ', $out );
-		} else {
-			_e('No Tags');
-		}
-		?></td>
-		<?php
-		break;
-
-	case 'desc':
-		?>
-		<td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; \
                ?></td>
-		<?php
-		break;
-
-	case 'date':
-		if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
-			$t_time = $h_time = __('Unpublished');
-		} else {
-			$t_time = get_the_time(__('Y/m/d g:i:s A'));
-			$m_time = $post->post_date;
-			$time = get_post_time( 'G', true, $post, false );
-			if ( ( abs($t_diff = time() - $time) ) < 86400 ) {
-				if ( $t_diff < 0 )
-					$h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
-				else
-					$h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
-			} else {
-				$h_time = mysql2date(__('Y/m/d'), $m_time);
-			}
-		}
-		?>
-		<td <?php echo $attributes ?>><?php echo $h_time ?></td>
-		<?php
-		break;
-
-	case 'parent':
-		if ( $post->post_parent > 0 ) {
-			if ( get_post($post->post_parent) ) {
-				$title =_draft_or_post_title($post->post_parent);
-			}
-			?>
-			<td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( \
$post->post_parent ); ?>"><?php echo $title ?></a></strong>, <?php echo \
                get_the_time(__('Y/m/d')); ?></td>
-			<?php
-		} else {
-			?>
-			<td <?php echo $attributes ?>><?php _e('(Unattached)'); ?><br />
-			<a class="hide-if-no-js" onclick="findPosts.open('media[]','<?php echo $post->ID \
                ?>');return false;" href="#the-list"><?php _e('Attach'); ?></a></td>
-			<?php
-		}
-
-		break;
-
-	case 'comments':
-		$attributes = 'class="comments column-comments num"' . $style;
-		?>
-		<td <?php echo $attributes ?>><div class="post-com-count-wrapper">
-		<?php
-		$left = get_pending_comments_num( $post->ID );
-		$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
-		if ( $left )
-			echo '<strong>';
-		comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' \
class='post-com-count'><span class='comment-count'>" . /* translators: comment count \
link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' \
title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* \
translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a \
href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span \
class='comment-count'>" . /* translators: comment count link: % will be substituted \
                by comment count */ _x('%', 'comment count') . '</span></a>');
-		if ( $left )
-			echo '</strong>';
-		?>
-		</div></td>
-		<?php
-		break;
-
-	case 'actions':
-		?>
-		<td <?php echo $attributes ?>>
-		<a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php \
echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>"><?php \
                _e('Edit'); ?></a> |
-		<a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a>
-		</td>
-		<?php
-		break;
-
-	default:
-		?>
-		<td <?php echo $attributes ?>><?php do_action('manage_media_custom_column', \
                $column_name, $id); ?></td>
-		<?php
-		break;
-	}
-}
-?>
-	</tr>
-<?php endwhile; ?>
-	</tbody>
-</table>
-<?php } else { ?>
-
-<p><?php _e('No media attachments found.') ?></p>
-
-<?php
-} // end if ( have_posts() )
-?>
-
diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php
deleted file mode 100644
index 711121b..0000000
--- a/wp-admin/edit-link-categories.php
+++ /dev/null
@@ -1,237 +0,0 @@
-<?php
-/**
- * Edit Link Categories Administration Panel.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/** WordPress Administration Bootstrap */
-require_once('./admin.php');
-
-// Handle bulk actions
-if ( isset($_GET['action']) && isset($_GET['delete']) ) {
-	check_admin_referer('bulk-link-categories');
-	$doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
-
-	if ( !current_user_can('manage_categories') )
-		wp_die(__('Cheatin&#8217; uh?'));
-
-	if ( 'delete' == $doaction ) {
-		$cats = (array) $_GET['delete'];
-		$default_cat_id = get_option('default_link_category');
-
-		foreach( $cats as $cat_ID ) {
-			$cat_ID = (int) $cat_ID;
-			// Don't delete the default cats.
-			if ( $cat_ID == $default_cat_id )
-				wp_die( sprintf( __("Can&#8217;t delete the <strong>%s</strong> category: this \
                is the default one"), get_term_field('name', $cat_ID, \
                'link_category') ) );
-
-			wp_delete_term($cat_ID, 'link_category', array('default' => $default_cat_id));
-		}
-
-		$location = 'edit-link-categories.php';
-		if ( $referer = wp_get_referer() ) {
-			if ( false !== strpos($referer, 'edit-link-categories.php') )
-				$location = $referer;
-		}
-
-		$location = add_query_arg('message', 6, $location);
-		wp_redirect($location);
-		exit();
-	}
-} elseif ( ! empty($_GET['_wp_http_referer']) ) {
-	 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), \
                stripslashes($_SERVER['REQUEST_URI']) ) );
-	 exit;
-}
-
-$title = __('Link Categories');
-
-wp_enqueue_script('admin-categories');
-if ( current_user_can('manage_categories') )
-	wp_enqueue_script('inline-edit-tax');
-
-add_contextual_help($current_screen, '<p>' . __('You can create groups of links by \
using link categories. Link category names must be unique and link categories are \
                separate from the categories you use for posts.') . '</p>' .
-	'<p>' . __('You can delete link categories, but that action does not delete the \
links within the category. Instead, it moves them to the default link category.') . \
                '</p>' .
-	'<p><strong>' . __('For more information:') . '</strong></p>' .
-	'<p>' . __('<a href="http://codex.wordpress.org/Links_Link_Categories_SubPanel" \
                target="_blank">Link Categories Documentation</a>') . '</p>' .
-	'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support \
                Forums</a>') . '</p>'
-);
-
-require_once ('admin-header.php');
-
-$messages[1] = __('Category added.');
-$messages[2] = __('Category deleted.');
-$messages[3] = __('Category updated.');
-$messages[4] = __('Category not added.');
-$messages[5] = __('Category not updated.');
-$messages[6] = __('Categories deleted.'); ?>
-
-<div class="wrap nosubsub">
-<?php screen_icon(); ?>
-<h2><?php echo esc_html( $title );
-if ( isset($_GET['s']) && $_GET['s'] )
-	printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . \
                '</span>', esc_html( stripslashes($_GET['s']) ) ); ?>
-</h2>
-
-<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
-<div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div>
-<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), \
                $_SERVER['REQUEST_URI']);
-endif; ?>
-
-<form class="search-form" action="" method="get">
-<p class="search-box">
-	<label class="screen-reader-text" for="link-category-search-input"><?php _e( \
                'Search Categories' ); ?>:</label>
-	<input type="text" id="link-category-search-input" name="s" value="<?php \
                _admin_search_query(); ?>" />
-	<input type="submit" value="<?php esc_attr_e( 'Search Categories' ); ?>" \
                class="button" />
-</p>
-</form>
-<br class="clear" />
-
-<div id="col-container">
-
-<div id="col-right">
-<div class="col-wrap">
-<form id="posts-filter" action="" method="get">
-<div class="tablenav">
-
-<?php
-$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
-if ( empty($pagenum) )
-	$pagenum = 1;
-if ( ! isset( $catsperpage ) || $catsperpage < 0 )
-	$catsperpage = 20;
-
-$page_links = paginate_links( array(
-	'base' => add_query_arg( 'pagenum', '%#%' ),
-	'format' => '',
-	'prev_text' => __('&laquo;'),
-	'next_text' => __('&raquo;'),
-	'total' => ceil(wp_count_terms('link_category') / $catsperpage),
-	'current' => $pagenum
-));
-
-if ( $page_links )
-	echo "<div class='tablenav-pages'>$page_links</div>";
-?>
-
-<div class="alignleft actions">
-<select name="action">
-<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
-<option value="delete"><?php _e('Delete'); ?></option>
-</select>
-<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" \
                id="doaction" class="button-secondary action" />
-<?php wp_nonce_field('bulk-link-categories'); ?>
-</div>
-
-<br class="clear" />
-</div>
-
-<div class="clear"></div>
-
-<table class="widefat fixed" cellspacing="0">
-	<thead>
-	<tr>
-<?php print_column_headers('edit-link-categories'); ?>
-	</tr>
-	</thead>
-
-	<tfoot>
-	<tr>
-<?php print_column_headers('edit-link-categories', false); ?>
-	</tr>
-	</tfoot>
-
-	<tbody id="the-list" class="list:link-cat">
-<?php
-$start = ($pagenum - 1) * $catsperpage;
-$args = array('offset' => $start, 'number' => $catsperpage, 'hide_empty' => 0);
-if ( !empty( $_GET['s'] ) )
-	$args['search'] = $_GET['s'];
-
-$categories = get_terms( 'link_category', $args );
-if ( $categories ) {
-	$output = '';
-	foreach ( $categories as $category ) {
-		$output .= link_cat_row($category);
-	}
-	echo $output;
-	unset($category);
-}
-
-?>
-	</tbody>
-</table>
-
-<div class="tablenav">
-<?php
-if ( $page_links )
-	echo "<div class='tablenav-pages'>$page_links</div>";
-?>
-
-<div class="alignleft actions">
-<select name="action2">
-<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
-<option value="delete"><?php _e('Delete'); ?></option>
-</select>
-<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" \
                id="doaction2" class="button-secondary action" />
-</div>
-
-<br class="clear" />
-</div>
-<br class="clear" />
-</form>
-
-<div class="form-wrap">
-<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete \
the links in that category. Instead, links that were only assigned to the deleted \
category are set to the category <strong>%s</strong>.'), get_term_field('name', \
                get_option('default_link_category'), 'link_category')) ?></p>
-</div>
-
-
-</div>
-</div><!-- /col-right -->
-
-<div id="col-left">
-<div class="col-wrap">
-
-<?php if ( current_user_can('manage_categories') ) {
-	$category = (object) array(); $category->parent = 0; \
                do_action('add_link_category_form_pre', $category); ?>
-
-<div class="form-wrap">
-<h3><?php _e('Add Link Category'); ?></h3>
-<div id="ajax-response"></div>
-<form name="addcat" id="addcat" class="add:the-list: validate" method="post" \
                action="link-category.php">
-<input type="hidden" name="action" value="addcat" />
-<?php wp_original_referer_field(true, 'previous'); \
                wp_nonce_field('add-link-category'); ?>
-
-<div class="form-field form-required">
-	<label for="name"><?php _e('Link Category name') ?></label>
-	<input name="name" id="link-name" type="text" value="" size="40" \
                aria-required="true" />
-</div>
-<?php if ( !global_terms_enabled() ) { ?>
-<div class="form-field">
-	<label for="slug"><?php _e('Link Category slug') ?></label>
-	<input name="slug" id="link-slug" type="text" value="" size="40" />
-	<p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is \
                usually all lowercase and contains only letters, numbers, and \
                hyphens.'); ?></p>
-</div>
-<?php } ?>
-<div class="form-field">
-	<label for="description"><?php _e('Description (optional)') ?></label>
-	<textarea name="description" id="link-description" rows="5" cols="40"></textarea>
-	<p><?php _e('The description is not prominent by default; however, some themes may \
                show it.'); ?></p>
-</div>
-
-<p class="submit"><input type="submit" class="button" name="submit" value="<?php \
                esc_attr_e('Add Category'); ?>" /></p>
-<?php do_action('edit_link_category_form', $category); ?>
-</form>
-</div>
-
-<?php } ?>
-
-</div>
-</div><!-- /col-left -->
-
-</div><!-- /col-container -->
-</div><!-- /wrap -->
-
-<?php inline_edit_term_row('edit-link-categories', 'link_category'); ?>
-<?php include('./admin-footer.php'); ?>
diff --git a/wp-admin/edit-link-category-form.php \
b/wp-admin/edit-link-category-form.php deleted file mode 100644
index 7e7c004..0000000
--- a/wp-admin/edit-link-category-form.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-/**
- * Edit link category form for inclusion in administration panels.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-// don't load directly
-if ( !defined('ABSPATH') )
-	die('-1');
-
-if ( !current_user_can('manage_categories') )
-	wp_die(__('You do not have sufficient permissions to edit link categories for this \
                site.'));
-
-/**
- * @var object
- */
-if ( ! isset( $category ) )
-	$category = (object) array();
-
-if ( ! empty($cat_ID) ) {
-	/**
-	 * @var string
-	 */
-	$heading = '<h2>' . __('Edit Link Category') . '</h2>';
-	$submit_text = __('Update Category');
-	$form = '<form name="editcat" id="editcat" method="post" action="link-category.php" \
                class="validate">';
-	$action = 'editedcat';
-	$nonce_action = 'update-link-category_' . $cat_ID;
-	do_action('edit_link_category_form_pre', $category);
-} else {
-	$heading = '<h2>' . __('Add Link Category') . '</h2>';
-	$submit_text = __('Add Category');
-	$form = '<form name="addcat" id="addcat" class="add:the-list: validate" \
                method="post" action="link-category.php">';
-	$action = 'addcat';
-	$nonce_action = 'add-link-category';
-	do_action('add_link_category_form_pre', $category);
-}
-
-/**
- * @ignore
- * @since 2.7
- * @internal Used to prevent errors in page when no category is being edited.
- *
- * @param object $category
- */
-function _fill_empty_link_category(&$category) {
-	if ( ! isset( $category->name ) )
-		$category->name = '';
-
-	if ( ! isset( $category->slug ) )
-		$category->slug = '';
-
-	if ( ! isset( $category->description ) )
-		$category->description = '';
-}
-
-_fill_empty_link_category($category);
-?>
-
-<div class="wrap">
-<?php screen_icon(); ?>
-<?php echo $heading ?>
-<div id="ajax-response"></div>
-<?php echo $form ?>
-<input type="hidden" name="action" value="<?php echo esc_attr($action) ?>" />
-<input type="hidden" name="cat_ID" value="<?php echo esc_attr($category->term_id) \
                ?>" />
-<?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?>
-	<table class="form-table">
-		<tr class="form-field form-required">
-			<th scope="row" valign="top"><label for="name"><?php _e('Link Category name') \
                ?></label></th>
-			<td><input name="name" id="name" type="text" value="<?php echo \
                esc_attr($category->name); ?>" size="40" aria-required="true" /></td>
-		</tr>
-<?php if ( !is_multisite() ) { ?>
-		<tr class="form-field">
-			<th scope="row" valign="top"><label for="slug"><?php _e('Link Category slug') \
                ?></label></th>
-			<td><input name="slug" id="slug" type="text" value="<?php echo \
                esc_attr(apply_filters('editable_slug', $category->slug)); ?>" \
                size="40" /><br />
-            <?php _e('The &#8220;slug&#8221; is the URL-friendly version of the \
name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); \
                ?></td>
-		</tr>
-<?php } ?>
-		<tr class="form-field">
-			<th scope="row" valign="top"><label for="description"><?php _e('Description \
                (optional)') ?></label></th>
-			<td><textarea name="description" id="description" rows="5" cols="50" \
                style="width: 97%;"><?php echo $category->description; \
                ?></textarea><br />
-			<span class="description"><?php _e('The description is not prominent by default; \
                however, some themes may show it.'); ?></span></td>
-		</tr>
-		<?php do_action('edit_link_category_form_fields', $category); ?>
-	</table>
-<p class="submit"><input type="submit" class="button-primary" name="submit" \
                value="<?php echo esc_attr($submit_text) ?>" /></p>
-<?php do_action('edit_link_category_form', $category); ?>
-</form>
-</div>
diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php
deleted file mode 100644
index 2bf8841..0000000
--- a/wp-admin/edit-post-rows.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * Edit posts rows table for inclusion in administration panels.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-// don't load directly
-if ( !defined('ABSPATH') )
-	die('-1');
-?>
-<table class="widefat <?php echo $post_type_object->hierarchical ? 'page' : 'post'; \
                ?> fixed" cellspacing="0">
-	<thead>
-	<tr>
-<?php print_column_headers( $current_screen ); ?>
-	</tr>
-	</thead>
-
-	<tfoot>
-	<tr>
-<?php print_column_headers($current_screen, false); ?>
-	</tr>
-	</tfoot>
-
-	<tbody>
-<?php
-if ( $post_type_object->hierarchical )
-	page_rows($posts, $pagenum, $per_page);
-else
-	post_rows();
-?>
-	</tbody>
-</table>
\ No newline at end of file
diff --git a/wp-admin/images/button-grad-active-vs.png \
b/wp-admin/images/button-grad-active-vs.png deleted file mode 100644
index dc64172..0000000
Binary files a/wp-admin/images/button-grad-active-vs.png and /dev/null differ
diff --git a/wp-admin/images/button-grad-vs.png b/wp-admin/images/button-grad-vs.png
deleted file mode 100644
index 51c55a3..0000000
Binary files a/wp-admin/images/button-grad-vs.png and /dev/null differ
diff --git a/wp-admin/images/fav-arrow-vs-rtl.gif \
b/wp-admin/images/fav-arrow-vs-rtl.gif deleted file mode 100644
index a9c0721..0000000
Binary files a/wp-admin/images/fav-arrow-vs-rtl.gif and /dev/null differ
diff --git a/wp-admin/images/fav-arrow-vs.gif b/wp-admin/images/fav-arrow-vs.gif
deleted file mode 100644
index 73d59fd..0000000
Binary files a/wp-admin/images/fav-arrow-vs.gif and /dev/null differ
diff --git a/wp-admin/images/fav-top-vs.gif b/wp-admin/images/fav-top-vs.gif
deleted file mode 100644
index b9aa3d3..0000000
Binary files a/wp-admin/images/fav-top-vs.gif and /dev/null differ
diff --git a/wp-admin/images/list-vs.png b/wp-admin/images/list-vs.png
deleted file mode 100644
index 85faa8a..0000000
Binary files a/wp-admin/images/list-vs.png and /dev/null differ
diff --git a/wp-admin/images/screen-options-right-up.gif \
b/wp-admin/images/screen-options-right-up.gif deleted file mode 100644
index 6556aee..0000000
Binary files a/wp-admin/images/screen-options-right-up.gif and /dev/null differ
diff --git a/wp-admin/images/screen-options-right.gif \
b/wp-admin/images/screen-options-right.gif deleted file mode 100644
index 8fcf254..0000000
Binary files a/wp-admin/images/screen-options-right.gif and /dev/null differ
diff --git a/wp-admin/images/visit-site-button-grad-vs.gif \
b/wp-admin/images/visit-site-button-grad-vs.gif deleted file mode 100644
index 34eb814..0000000
Binary files a/wp-admin/images/visit-site-button-grad-vs.gif and /dev/null differ
diff --git a/wp-admin/images/visit-site-button-grad.gif \
b/wp-admin/images/visit-site-button-grad.gif deleted file mode 100644
index a7b703e..0000000
Binary files a/wp-admin/images/visit-site-button-grad.gif and /dev/null differ
diff --git a/wp-admin/link-category.php b/wp-admin/link-category.php
deleted file mode 100644
index caf7392..0000000
--- a/wp-admin/link-category.php
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-/**
- * Manage link category administration actions.
- *
- * This page is accessed by the link management pages and handles the forms and
- * AJAX processes for category actions.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/** Load WordPress Administration Bootstrap */
-require_once('./admin.php');
-
-wp_reset_vars(array('action', 'cat'));
-
-switch($action) {
-
-case 'addcat':
-
-	check_admin_referer('add-link-category');
-
-	if ( !current_user_can('manage_categories') )
-		wp_die(__('Cheatin&#8217; uh?'));
-
-	if ( wp_insert_term($_POST['name'], 'link_category', $_POST ) ) {
-		wp_redirect('edit-link-categories.php?message=1#addcat');
-	} else {
-		wp_redirect('edit-link-categories.php?message=4#addcat');
-	}
-	exit;
-break;
-
-case 'delete':
-	$cat_ID = (int) $_GET['cat_ID'];
-	check_admin_referer('delete-link-category_' .  $cat_ID);
-
-	if ( !current_user_can('manage_categories') )
-		wp_die(__('Cheatin&#8217; uh?'));
-
-	$cat_name = get_term_field('name', $cat_ID, 'link_category');
-	$default_cat_id = get_option('default_link_category');
-
-	// Don't delete the default cats.
-	if ( $cat_ID == $default_cat_id )
-		wp_die(sprintf(__("Can&#8217;t delete the <strong>%s</strong> category: this is \
                the default one"), $cat_name));
-
-	wp_delete_term($cat_ID, 'link_category', array('default' => $default_cat_id));
-
-	$location = 'edit-link-categories.php';
-	if ( $referer = wp_get_original_referer() ) {
-		if ( false !== strpos($referer, 'edit-link-categories.php') )
-			$location = $referer;
-	}
-
-	$location = add_query_arg('message', 2, $location);
-
-	wp_redirect($location);
-	exit;
-
-break;
-
-case 'edit':
-	$title = __('Edit Category');
-	$parent_file = 'link-manager.php';
-	$submenu_file = 'edit-link-categories.php';
-	require_once ('admin-header.php');
-	$cat_ID = (int) $_GET['cat_ID'];
-	$category = get_term_to_edit($cat_ID, 'link_category');
-	include('./edit-link-category-form.php');
-	include('./admin-footer.php');
-	exit;
-break;
-
-case 'editedcat':
-	$cat_ID = (int) $_POST['cat_ID'];
-	check_admin_referer('update-link-category_' . $cat_ID);
-
-	if ( !current_user_can('manage_categories') )
-		wp_die(__('Cheatin&#8217; uh?'));
-
-	$location = 'edit-link-categories.php';
-	if ( $referer = wp_get_original_referer() ) {
-		if ( false !== strpos($referer, 'edit-link-categories.php') )
-			$location = $referer;
-	}
-
-	$update =  wp_update_term($cat_ID, 'link_category', $_POST);
-
-	if ( $update && !is_wp_error($update) )
-		$location = add_query_arg('message', 3, $location);
-	else
-		$location = add_query_arg('message', 5, $location);
-
-	wp_redirect($location);
-	exit;
-break;
-}
-
-?>
diff --git a/wp-admin/sidebar.php b/wp-admin/sidebar.php
deleted file mode 100644
index 0f905bf..0000000
--- a/wp-admin/sidebar.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-/**
- * Quick way to create a WordPress Post.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/**
- * @var string
- * @name $mode
- */
-$mode = 'sidebar';
-
-/** WordPress Administration Bootstrap */
-require_once('./admin.php');
-
-if ( ! current_user_can('edit_posts') )
-	wp_die(__('Cheatin&#8217; uh?'));
-
-$post = get_default_post_to_edit();
-
-?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" \
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; \
                charset=<?php bloginfo('blog_charset'); ?>" />
-<title><?php bloginfo('name') ?> &rsaquo; <?php _e('Sidebar'); ?></title>
-<style type="text/css" media="screen">
-body {
-	font-size: 0.9em;
-	margin: 0;
-	padding: 0;
-}
-form {
-	padding: 1%;
-}
-.tags-wrap p {
-	font-size: 0.75em;
-	margin-top: 0.4em;
-}
-.button-highlighted, #wphead, label {
-	font-weight: bold;
-}
-#post-title, #tags-input, #content {
-	width: 99%;
-	padding: 2px;
-}
-#wphead {
-	font-size: 1.4em;
-	background-color: #E4F2FD;
-	color: #555555;
-	padding: 0.2em 1%;
-}
-#wphead p {
-	margin: 3px;
-}
-.button {
-	font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
-	padding: 3px 5px;
-	margin-right: 5px;
-	font-size: 0.75em;
-	line-height: 1.5em;
-	border: 1px solid #80b5d0;
-	-moz-border-radius: 3px;
-	-khtml-border-radius: 3px;
-	-webkit-border-radius: 3px;
-	border-radius: 3px;
-	cursor: pointer;
-	background-color: #e5e5e5;
-	color: #246;
-}
-.button:hover {
-	border-color: #535353;
-}
-.updated {
-	background-color: #FFFBCC;
-	border: 1px solid #E6DB55;
-	margin-bottom: 1em;
-	padding: 0 0.6em;
-}
-.updated p {
-	margin: 0.6em;
-}
-</style>
-</head>
-<body id="sidebar">
-<div id="wphead"><p><?php bloginfo('name') ?> &rsaquo; <?php _e('Sidebar'); \
                ?></p></div>
-<form name="post" action="post.php" method="post">
-<div>
-<input type="hidden" name="action" value="post" />
-<input type="hidden" name="user_ID" value="<?php echo esc_attr($user_ID) ?>" />
-<input type="hidden" name="mode" value="sidebar" />
-<input type="hidden" name="ping_status" value="<?php echo \
                esc_attr($post->ping_status); ?>" />
-<input type="hidden" name="comment_status" value="<?php echo \
                esc_attr($post->comment_status); ?>" />
-<?php wp_nonce_field('add-post');
-
-if ( 'b' == $_GET['a'] )
-	echo '<div class="updated"><p>' . __('Post published.') . '</p></div>';
-elseif ( 'c' == $_GET['a'] )
-	echo '<div class="updated"><p>' . __('Post saved.') . '</p></div>';
-?>
-<p>
-<label for="post-title"><?php _e('Title:'); ?></label>
-<input type="text" name="post_title" id="post-title" size="20" tabindex="1" \
                autocomplete="off" value="" />
-</p>
-
-<p>
-<label for="content"><?php _e('Post:'); ?></label>
-<textarea rows="8" cols="12" name="content" id="content" \
                style="height:10em;line-height:1.4em;" tabindex="2"></textarea>
-</p>
-
-<div class="tags-wrap">
-<label for="tags-input"><?php _e('Tags:') ?></label>
-<input type="text" name="tags_input" id="tags-input" tabindex="3" value="" />
-<p><?php _e('Separate tags with commas'); ?></p>
-</div>
-
-<p>
-<input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" accesskey="s" \
                class="button" value="<?php esc_attr_e('Save as Draft'); ?>" />
-<?php if ( current_user_can('publish_posts') ) : ?>
-<input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" \
                value="<?php esc_attr_e('Publish') ?>" class="button \
                button-highlighted" />
-<?php endif; ?>
-</p>
-</div>
-</form>
-
-</body>
-</html>
diff --git a/wp-includes/classes.php b/wp-includes/classes.php
deleted file mode 100644
index f24a6ec..0000000
--- a/wp-includes/classes.php
+++ /dev/null
@@ -1,1700 +0,0 @@
-<?php
-/**
- * Holds Most of the WordPress classes.
- *
- * Some of the other classes are contained in other files. For example, the
- * WordPress cache is in cache.php and the WordPress roles API is in
- * capabilities.php. The third party libraries are contained in their own
- * separate files.
- *
- * @package WordPress
- */
-
-/**
- * WordPress environment setup class.
- *
- * @package WordPress
- * @since 2.0.0
- */
-class WP {
-	/**
-	 * Public query variables.
-	 *
-	 * Long list of public query variables.
-	 *
-	 * @since 2.0.0
-	 * @access public
-	 * @var array
-	 */
-	var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', \
'withoutcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', \
'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', \
'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', \
'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', \
'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', \
                'cpage', 'post_type');
-
-	/**
-	 * Private query variables.
-	 *
-	 * Long list of private query variables.
-	 *
-	 * @since 2.0.0
-	 * @var array
-	 */
-	var $private_query_vars = array('offset', 'posts_per_page', \
'posts_per_archive_page', 'showposts', 'nopaging', 'post_type', 'post_status', \
'category__in', 'category__not_in', 'category__and', 'tag__in', 'tag__not_in', \
'tag__and', 'tag_slug__in', 'tag_slug__and', 'tag_id', 'post_mime_type', 'perm', \
                'comments_per_page');
-
-	/**
-	 * Extra query variables set by the user.
-	 *
-	 * @since 2.1.0
-	 * @var array
-	 */
-	var $extra_query_vars = array();
-
-	/**
-	 * Query variables for setting up the WordPress Query Loop.
-	 *
-	 * @since 2.0.0
-	 * @var array
-	 */
-	var $query_vars;
-
-	/**
-	 * String parsed to set the query variables.
-	 *
-	 * @since 2.0.0
-	 * @var string
-	 */
-	var $query_string;
-
-	/**
-	 * Permalink or requested URI.
-	 *
-	 * @since 2.0.0
-	 * @var string
-	 */
-	var $request;
-
-	/**
-	 * Rewrite rule the request matched.
-	 *
-	 * @since 2.0.0
-	 * @var string
-	 */
-	var $matched_rule;
-
-	/**
-	 * Rewrite query the request matched.
-	 *
-	 * @since 2.0.0
-	 * @var string
-	 */
-	var $matched_query;
-
-	/**
-	 * Whether already did the permalink.
-	 *
-	 * @since 2.0.0
-	 * @var bool
-	 */
-	var $did_permalink = false;
-
-	/**
-	 * Add name to list of public query variables.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param string $qv Query variable name.
-	 */
-	function add_query_var($qv) {
-		if ( !in_array($qv, $this->public_query_vars) )
-			$this->public_query_vars[] = $qv;
-	}
-
-	/**
-	 * Set the value of a query variable.
-	 *
-	 * @since 2.3.0
-	 *
-	 * @param string $key Query variable name.
-	 * @param mixed $value Query variable value.
-	 */
-	function set_query_var($key, $value) {
-		$this->query_vars[$key] = $value;
-	}
-
-	/**
-	 * Parse request to find correct WordPress query.
-	 *
-	 * Sets up the query variables based on the request. There are also many
-	 * filters and actions that can be used to further manipulate the result.
-	 *
-	 * @since 2.0.0
-	 *
-	 * @param array|string $extra_query_vars Set the extra query variables.
-	 */
-	function parse_request($extra_query_vars = '') {
-		global $wp_rewrite;
-
-		$this->query_vars = array();
-		$taxonomy_query_vars = array();
-		$post_type_query_vars = array();
-
-		if ( is_array($extra_query_vars) )
-			$this->extra_query_vars = & $extra_query_vars;
-		else if (! empty($extra_query_vars))
-			parse_str($extra_query_vars, $this->extra_query_vars);
-
-		// Process PATH_INFO, REQUEST_URI, and 404 for permalinks.
-
-		// Fetch the rewrite rules.
-		$rewrite = $wp_rewrite->wp_rewrite_rules();
-
-		if ( ! empty($rewrite) ) {
-			// If we match a rewrite rule, this will be cleared.
-			$error = '404';
-			$this->did_permalink = true;
-
-			if ( isset($_SERVER['PATH_INFO']) )
-				$pathinfo = $_SERVER['PATH_INFO'];
-			else
-				$pathinfo = '';
-			$pathinfo_array = explode('?', $pathinfo);
-			$pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
-			$req_uri = $_SERVER['REQUEST_URI'];
-			$req_uri_array = explode('?', $req_uri);
-			$req_uri = $req_uri_array[0];
-			$self = $_SERVER['PHP_SELF'];
-			$home_path = parse_url(home_url());
-			if ( isset($home_path['path']) )
-				$home_path = $home_path['path'];
-			else
-				$home_path = '';
-			$home_path = trim($home_path, '/');
-
-			// Trim path info from the end and the leading home path from the
-			// front.  For path info requests, this leaves us with the requesting
-			// filename, if any.  For 404 requests, this leaves us with the
-			// requested permalink.
-			$req_uri = str_replace($pathinfo, '', rawurldecode($req_uri));
-			$req_uri = trim($req_uri, '/');
-			$req_uri = preg_replace("|^$home_path|", '', $req_uri);
-			$req_uri = trim($req_uri, '/');
-			$pathinfo = trim($pathinfo, '/');
-			$pathinfo = preg_replace("|^$home_path|", '', $pathinfo);
-			$pathinfo = trim($pathinfo, '/');
-			$self = trim($self, '/');
-			$self = preg_replace("|^$home_path|", '', $self);
-			$self = trim($self, '/');
-
-			// The requested permalink is in $pathinfo for path info requests and
-			//  $req_uri for other requests.
-			if ( ! empty($pathinfo) && !preg_match('|^.*' . $wp_rewrite->index . '$|', \
                $pathinfo) ) {
-				$request = $pathinfo;
-			} else {
-				// If the request uri is the index, blank it out so that we don't try to match \
                it against a rule.
-				if ( $req_uri == $wp_rewrite->index )
-					$req_uri = '';
-				$request = $req_uri;
-			}
-
-			$this->request = $request;
-
-			// Look for matches.
-			$request_match = $request;
-			foreach ( (array) $rewrite as $match => $query) {
-				// Don't try to match against AtomPub calls
-				if ( $req_uri == 'wp-app.php' )
-					break;
-
-				// If the requesting file is the anchor of the match, prepend it
-				// to the path info.
-				if ( (! empty($req_uri)) && (strpos($match, $req_uri) === 0) && ($req_uri != \
                $request) )
-					$request_match = $req_uri . '/' . $request;
-
-				if ( preg_match("#^$match#", $request_match, $matches) ||
-					preg_match("#^$match#", urldecode($request_match), $matches) ) {
-					// Got a match.
-					$this->matched_rule = $match;
-
-					// Trim the query of everything up to the '?'.
-					$query = preg_replace("!^.+\?!", '', $query);
-
-					// Substitute the substring matches into the query.
-					$query = addslashes(WP_MatchesMapRegex::apply($query, $matches));
-
-					$this->matched_query = $query;
-
-					// Parse the query.
-					parse_str($query, $perma_query_vars);
-
-					// If we're processing a 404 request, clear the error var
-					// since we found something.
-					if ( isset($_GET['error']) )
-						unset($_GET['error']);
-
-					if ( isset($error) )
-						unset($error);
-
-					break;
-				}
-			}
-
-			// If req_uri is empty or if it is a request for ourself, unset error.
-			if ( empty($request) || $req_uri == $self || strpos($_SERVER['PHP_SELF'], \
                'wp-admin/') !== false ) {
-				if ( isset($_GET['error']) )
-					unset($_GET['error']);
-
-				if ( isset($error) )
-					unset($error);
-
-				if ( isset($perma_query_vars) && strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== \
                false )
-					unset($perma_query_vars);
-
-				$this->did_permalink = false;
-			}
-		}
-
-		$this->public_query_vars = apply_filters('query_vars', $this->public_query_vars);
-
-		foreach ( $GLOBALS['wp_taxonomies'] as $taxonomy => $t )
-			if ( $t->query_var )
-				$taxonomy_query_vars[$t->query_var] = $taxonomy;
-
-		foreach ( $GLOBALS['wp_post_types'] as $post_type => $t )
-			if ( $t->query_var )
-				$post_type_query_vars[$t->query_var] = $post_type;
-
-		for ( $i = 0; $i < count($this->public_query_vars); $i += 1 ) {
-			$wpvar = $this->public_query_vars[$i];
-			if ( isset($this->extra_query_vars[$wpvar]) )
-				$this->query_vars[$wpvar] = $this->extra_query_vars[$wpvar];
-			elseif ( isset($GLOBALS[$wpvar]) )
-				$this->query_vars[$wpvar] = $GLOBALS[$wpvar];
-			elseif ( !empty($_POST[$wpvar]) )
-				$this->query_vars[$wpvar] = $_POST[$wpvar];
-			elseif ( !empty($_GET[$wpvar]) )
-				$this->query_vars[$wpvar] = $_GET[$wpvar];
-			elseif ( !empty($perma_query_vars[$wpvar]) )
-				$this->query_vars[$wpvar] = $perma_query_vars[$wpvar];
-
-			if ( !empty( $this->query_vars[$wpvar] ) ) {
-				$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
-				if ( isset( $taxonomy_query_vars[$wpvar] ) ) {
-					$this->query_vars['taxonomy'] = $taxonomy_query_vars[$wpvar];
-					$this->query_vars['term'] = $this->query_vars[$wpvar];
-				} elseif ( isset($post_type_query_vars[$wpvar] ) ) {
-					$this->query_vars['post_type'] = $post_type_query_vars[$wpvar];
-					$this->query_vars['name'] = $this->query_vars[$wpvar];
-				}
-			}
-		}
-
-		// Limit publicly queried post_types to those that are publicly_queryable
-		if ( isset( $this->query_vars['post_type']) ) {
-			$queryable_post_types =  get_post_types( array('publicly_queryable' => true) );
-			if ( ! in_array( $this->query_vars['post_type'], $queryable_post_types ) )
-				unset( $this->query_vars['post_type'] );
-		}
-
-		foreach ( (array) $this->private_query_vars as $var) {
-			if ( isset($this->extra_query_vars[$var]) )
-				$this->query_vars[$var] = $this->extra_query_vars[$var];
-			elseif ( isset($GLOBALS[$var]) && '' != $GLOBALS[$var] )
-				$this->query_vars[$var] = $GLOBALS[$var];
-		}
-
-		if ( isset($error) )
-			$this->query_vars['error'] = $error;
-
-		$this->query_vars = apply_filters('request', $this->query_vars);
-
-		do_action_ref_array('parse_request', array(&$this));
-	}
-
-	/**
-	 * Send additional HTTP headers for caching, content type, etc.
-	 *
-	 * Sets the X-Pingback header, 404 status (if 404), Content-type. If showing
-	 * a feed, it will also send last-modified, etag, and 304 status if needed.
-	 *
-	 * @since 2.0.0
-	 */
-	function send_headers() {
-		$headers = array('X-Pingback' => get_bloginfo('pingback_url'));
-		$status = null;
-		$exit_required = false;
-
-		if ( is_user_logged_in() )
-			$headers = array_merge($headers, wp_get_nocache_headers());
-		if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
-			$status = 404;
-			if ( !is_user_logged_in() )
-				$headers = array_merge($headers, wp_get_nocache_headers());
-			$headers['Content-Type'] = get_option('html_type') . '; charset=' . \
                get_option('blog_charset');
-		} else if ( empty($this->query_vars['feed']) ) {
-			$headers['Content-Type'] = get_option('html_type') . '; charset=' . \
                get_option('blog_charset');
-		} else {
-			// We're showing a feed, so WP is indeed the only thing that last changed
-			if ( !empty($this->query_vars['withcomments'])
-				|| ( empty($this->query_vars['withoutcomments'])
-					&& ( !empty($this->query_vars['p'])
-						|| !empty($this->query_vars['name'])
-						|| !empty($this->query_vars['page_id'])
-						|| !empty($this->query_vars['pagename'])
-						|| !empty($this->query_vars['attachment'])
-						|| !empty($this->query_vars['attachment_id'])
-					)
-				)
-			)
-				$wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastcommentmodified('GMT'), \
                0).' GMT';
-			else
-				$wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastpostmodified('GMT'), \
                0).' GMT';
-			$wp_etag = '"' . md5($wp_last_modified) . '"';
-			$headers['Last-Modified'] = $wp_last_modified;
-			$headers['ETag'] = $wp_etag;
-
-			// Support for Conditional GET
-			if (isset($_SERVER['HTTP_IF_NONE_MATCH']))
-				$client_etag = stripslashes(stripslashes($_SERVER['HTTP_IF_NONE_MATCH']));
-			else $client_etag = false;
-
-			$client_last_modified = empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? '' : \
                trim($_SERVER['HTTP_IF_MODIFIED_SINCE']);
-			// If string is empty, return 0. If not, attempt to parse into a timestamp
-			$client_modified_timestamp = $client_last_modified ? \
                strtotime($client_last_modified) : 0;
-
-			// Make a timestamp for our most recent modification...
-			$wp_modified_timestamp = strtotime($wp_last_modified);
-
-			if ( ($client_last_modified && $client_etag) ?
-					 (($client_modified_timestamp >= $wp_modified_timestamp) && ($client_etag == \
                $wp_etag)) :
-					 (($client_modified_timestamp >= $wp_modified_timestamp) || ($client_etag == \
                $wp_etag)) ) {
-				$status = 304;
-				$exit_required = true;
-			}
-		}
-
-		$headers = apply_filters('wp_headers', $headers, $this);
-
-		if ( ! empty( $status ) )
-			status_header( $status );
-		foreach( (array) $headers as $name => $field_value )
-			@header("{$name}: {$field_value}");
-
-		if ($exit_required)
-			exit();
-
-		do_action_ref_array('send_headers', array(&$this));
-	}
-
-	/**
-	 * Sets the query string property based off of the query variable property.
-	 *
-	 * The 'query_string' filter is deprecated, but still works. Plugins should
-	 * use the 'request' filter instead.
-	 *
-	 * @since 2.0.0
-	 */
-	function build_query_string() {
-		$this->query_string = '';
-		foreach ( (array) array_keys($this->query_vars) as $wpvar) {
-			if ( '' != $this->query_vars[$wpvar] ) {
-				$this->query_string .= (strlen($this->query_string) < 1) ? '' : '&';
-				if ( !is_scalar($this->query_vars[$wpvar]) ) // Discard non-scalars.
-					continue;
-				$this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
-			}
-		}
-
-		// query_string filter deprecated.  Use request filter instead.
-		if ( has_filter('query_string') ) {  // Don't bother filtering and parsing if no \
                plugins are hooked in.
-			$this->query_string = apply_filters('query_string', $this->query_string);
-			parse_str($this->query_string, $this->query_vars);
-		}
-	}
-
-	/**
-	 * Set up the WordPress Globals.
-	 *
-	 * The query_vars property will be extracted to the GLOBALS. So care should
-	 * be taken when naming global variables that might interfere with the
-	 * WordPress environment.
-	 *
-	 * @global string $query_string Query string for the loop.
-	 * @global int $more Only set, if single page or post.
-	 * @global int $single If single page or post. Only set, if single page or post.
-	 *
-	 * @since 2.0.0
-	 */
-	function register_globals() {
-		global $wp_query;
-		// Extract updated query vars back into global namespace.
-		foreach ( (array) $wp_query->query_vars as $key => $value) {
-			$GLOBALS[$key] = $value;
-		}
-
-		$GLOBALS['query_string'] = $this->query_string;
-		$GLOBALS['posts'] = & $wp_query->posts;
-		$GLOBALS['post'] = $wp_query->post;
-		$GLOBALS['request'] = $wp_query->request;
-
-		if ( is_single() || is_page() ) {
-			$GLOBALS['more'] = 1;
-			$GLOBALS['single'] = 1;
-		}
-	}
-
-	/**
-	 * Set up the current user.
-	 *
-	 * @since 2.0.0
-	 */
-	function init() {
-		wp_get_current_user();
-	}
-
-	/**
-	 * Set up the Loop based on the query variables.
-	 *
-	 * @uses WP::$query_vars
-	 * @since 2.0.0
-	 */
-	function query_posts() {
-		global $wp_the_query;
-		$this->build_query_string();
-		$wp_the_query->query($this->query_vars);
- 	}
-
- 	/**
- 	 * Set the Headers for 404, if nothing is found for requested URL.
-	 *
-	 * Issue a 404 if a request doesn't match any posts and doesn't match
-	 * any object (e.g. an existing-but-empty category, tag, author) and a 404 was not \
                already
-	 * issued, and if the request was not a search or the homepage.
-	 *
-	 * Otherwise, issue a 200.
-	 *
-	 * @since 2.0.0
- 	 */
-	function handle_404() {
-		global $wp_query;
-
-		if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && \
                !is_robots() && !is_search() && !is_home() ) {
-			// Don't 404 for these queries if they matched an object.
-			if ( ( is_tag() || is_category() || is_tax() || is_author() ) && \
                $wp_query->get_queried_object() && !is_paged() ) {
-				if ( !is_404() )
-					status_header( 200 );
-				return;
-			}
-			$wp_query->set_404();
-			status_header( 404 );
-			nocache_headers();
-		} elseif ( !is_404() ) {
-			status_header( 200 );
-		}
-	}
-
-	/**
-	 * Sets up all of the variables required by the WordPress environment.
-	 *
-	 * The action 'wp' has one parameter that references the WP object. It
-	 * allows for accessing the properties and methods to further manipulate the
-	 * object.
-	 *
-	 * @since 2.0.0
-	 *
-	 * @param string|array $query_args Passed to {@link parse_request()}
-	 */
-	function main($query_args = '') {
-		$this->init();
-		$this->parse_request($query_args);
-		$this->send_headers();
-		$this->query_posts();
-		$this->handle_404();
-		$this->register_globals();
-		do_action_ref_array('wp', array(&$this));
-	}
-
-	/**
-	 * PHP4 Constructor - Does nothing.
-	 *
-	 * Call main() method when ready to run setup.
-	 *
-	 * @since 2.0.0
-	 *
-	 * @return WP
-	 */
-	function WP() {
-		// Empty.
-	}
-}
-
-/**
- * WordPress Error class.
- *
- * Container for checking for WordPress errors and error messages. Return
- * WP_Error and use {@link is_wp_error()} to check if this class is returned.
- * Many core WordPress functions pass this class in the event of an error and
- * if not handled properly will result in code errors.
- *
- * @package WordPress
- * @since 2.1.0
- */
-class WP_Error {
-	/**
-	 * Stores the list of errors.
-	 *
-	 * @since 2.1.0
-	 * @var array
-	 * @access private
-	 */
-	var $errors = array();
-
-	/**
-	 * Stores the list of data for error codes.
-	 *
-	 * @since 2.1.0
-	 * @var array
-	 * @access private
-	 */
-	var $error_data = array();
-
-	/**
-	 * PHP4 Constructor - Sets up error message.
-	 *
-	 * If code parameter is empty then nothing will be done. It is possible to
-	 * add multiple messages to the same code, but with other methods in the
-	 * class.
-	 *
-	 * All parameters are optional, but if the code parameter is set, then the
-	 * data parameter is optional.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param string|int $code Error code
-	 * @param string $message Error message
-	 * @param mixed $data Optional. Error data.
-	 * @return WP_Error
-	 */
-	function WP_Error($code = '', $message = '', $data = '') {
-		if ( empty($code) )
-			return;
-
-		$this->errors[$code][] = $message;
-
-		if ( ! empty($data) )
-			$this->error_data[$code] = $data;
-	}
-
-	/**
-	 * Retrieve all error codes.
-	 *
-	 * @since 2.1.0
-	 * @access public
-	 *
-	 * @return array List of error codes, if avaiable.
-	 */
-	function get_error_codes() {
-		if ( empty($this->errors) )
-			return array();
-
-		return array_keys($this->errors);
-	}
-
-	/**
-	 * Retrieve first error code available.
-	 *
-	 * @since 2.1.0
-	 * @access public
-	 *
-	 * @return string|int Empty string, if no error codes.
-	 */
-	function get_error_code() {
-		$codes = $this->get_error_codes();
-
-		if ( empty($codes) )
-			return '';
-
-		return $codes[0];
-	}
-
-	/**
-	 * Retrieve all error messages or error messages matching code.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param string|int $code Optional. Retrieve messages matching code, if exists.
-	 * @return array Error strings on success, or empty array on failure (if using \
                codee parameter).
-	 */
-	function get_error_messages($code = '') {
-		// Return all messages if no code specified.
-		if ( empty($code) ) {
-			$all_messages = array();
-			foreach ( (array) $this->errors as $code => $messages )
-				$all_messages = array_merge($all_messages, $messages);
-
-			return $all_messages;
-		}
-
-		if ( isset($this->errors[$code]) )
-			return $this->errors[$code];
-		else
-			return array();
-	}
-
-	/**
-	 * Get single error message.
-	 *
-	 * This will get the first message available for the code. If no code is
-	 * given then the first code available will be used.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param string|int $code Optional. Error code to retrieve message.
-	 * @return string
-	 */
-	function get_error_message($code = '') {
-		if ( empty($code) )
-			$code = $this->get_error_code();
-		$messages = $this->get_error_messages($code);
-		if ( empty($messages) )
-			return '';
-		return $messages[0];
-	}
-
-	/**
-	 * Retrieve error data for error code.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param string|int $code Optional. Error code.
-	 * @return mixed Null, if no errors.
-	 */
-	function get_error_data($code = '') {
-		if ( empty($code) )
-			$code = $this->get_error_code();
-
-		if ( isset($this->error_data[$code]) )
-			return $this->error_data[$code];
-		return null;
-	}
-
-	/**
-	 * Append more error messages to list of error messages.
-	 *
-	 * @since 2.1.0
-	 * @access public
-	 *
-	 * @param string|int $code Error code.
-	 * @param string $message Error message.
-	 * @param mixed $data Optional. Error data.
-	 */
-	function add($code, $message, $data = '') {
-		$this->errors[$code][] = $message;
-		if ( ! empty($data) )
-			$this->error_data[$code] = $data;
-	}
-
-	/**
-	 * Add data for error code.
-	 *
-	 * The error code can only contain one error data.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param mixed $data Error data.
-	 * @param string|int $code Error code.
-	 */
-	function add_data($data, $code = '') {
-		if ( empty($code) )
-			$code = $this->get_error_code();
-
-		$this->error_data[$code] = $data;
-	}
-}
-
-/**
- * Check whether variable is a WordPress Error.
- *
- * Looks at the object and if a WP_Error class. Does not check to see if the
- * parent is also WP_Error, so can't inherit WP_Error and still use this
- * function.
- *
- * @since 2.1.0
- *
- * @param mixed $thing Check if unknown variable is WordPress Error object.
- * @return bool True, if WP_Error. False, if not WP_Error.
- */
-function is_wp_error($thing) {
-	if ( is_object($thing) && is_a($thing, 'WP_Error') )
-		return true;
-	return false;
-}
-
-/**
- * A class for displaying various tree-like structures.
- *
- * Extend the Walker class to use it, see examples at the below. Child classes
- * do not need to implement all of the abstract methods in the class. The child
- * only needs to implement the methods that are needed. Also, the methods are
- * not strictly abstract in that the parameter definition needs to be followed.
- * The child classes can have additional parameters.
- *
- * @package WordPress
- * @since 2.1.0
- * @abstract
- */
-class Walker {
-	/**
-	 * What the class handles.
-	 *
-	 * @since 2.1.0
-	 * @var string
-	 * @access public
-	 */
-	var $tree_type;
-
-	/**
-	 * DB fields to use.
-	 *
-	 * @since 2.1.0
-	 * @var array
-	 * @access protected
-	 */
-	var $db_fields;
-
-	/**
-	 * Max number of pages walked by the paged walker
-	 *
-	 * @since 2.7.0
-	 * @var int
-	 * @access protected
-	 */
-	var $max_pages = 1;
-
-	/**
-	 * Starts the list before the elements are added.
-	 *
-	 * Additional parameters are used in child classes. The args parameter holds
-	 * additional values that may be used with the child class methods. This
-	 * method is called at the start of the output list.
-	 *
-	 * @since 2.1.0
-	 * @abstract
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 */
-	function start_lvl(&$output) {}
-
-	/**
-	 * Ends the list of after the elements are added.
-	 *
-	 * Additional parameters are used in child classes. The args parameter holds
-	 * additional values that may be used with the child class methods. This
-	 * method finishes the list at the end of output of the elements.
-	 *
-	 * @since 2.1.0
-	 * @abstract
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 */
-	function end_lvl(&$output)   {}
-
-	/**
-	 * Start the element output.
-	 *
-	 * Additional parameters are used in child classes. The args parameter holds
-	 * additional values that may be used with the child class methods. Includes
-	 * the element output also.
-	 *
-	 * @since 2.1.0
-	 * @abstract
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 */
-	function start_el(&$output)  {}
-
-	/**
-	 * Ends the element output, if needed.
-	 *
-	 * Additional parameters are used in child classes. The args parameter holds
-	 * additional values that may be used with the child class methods.
-	 *
-	 * @since 2.1.0
-	 * @abstract
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 */
-	function end_el(&$output)    {}
-
-	/**
-	 * Traverse elements to create list from elements.
-	 *
-	 * Display one element if the element doesn't have any children otherwise,
-	 * display the element and its children. Will only traverse up to the max
-	 * depth and no ignore elements under that depth. It is possible to set the
-	 * max depth to include all depths, see walk() method.
-	 *
-	 * This method shouldn't be called directly, use the walk() method instead.
-	 *
-	 * @since 2.5.0
-	 *
-	 * @param object $element Data object
-	 * @param array $children_elements List of elements to continue traversing.
-	 * @param int $max_depth Max depth to traverse.
-	 * @param int $depth Depth of current element.
-	 * @param array $args
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @return null Null on failure with no changes to parameters.
-	 */
-	function display_element( $element, &$children_elements, $max_depth, $depth=0, \
                $args, &$output ) {
-
-		if ( !$element )
-			return;
-
-		$id_field = $this->db_fields['id'];
-
-		//display this element
-		if ( is_array( $args[0] ) )
-			$args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
-		$cb_args = array_merge( array(&$output, $element, $depth), $args);
-		call_user_func_array(array(&$this, 'start_el'), $cb_args);
-
-		$id = $element->$id_field;
-
-		// descend only when the depth is right and there are childrens for this element
-		if ( ($max_depth == 0 || $max_depth > $depth+1 ) && isset( \
                $children_elements[$id]) ) {
-
-			foreach( $children_elements[ $id ] as $child ){
-
-				if ( !isset($newlevel) ) {
-					$newlevel = true;
-					//start the child delimiter
-					$cb_args = array_merge( array(&$output, $depth), $args);
-					call_user_func_array(array(&$this, 'start_lvl'), $cb_args);
-				}
-				$this->display_element( $child, $children_elements, $max_depth, $depth + 1, \
                $args, $output );
-			}
-			unset( $children_elements[ $id ] );
-		}
-
-		if ( isset($newlevel) && $newlevel ){
-			//end the child delimiter
-			$cb_args = array_merge( array(&$output, $depth), $args);
-			call_user_func_array(array(&$this, 'end_lvl'), $cb_args);
-		}
-
-		//end this element
-		$cb_args = array_merge( array(&$output, $element, $depth), $args);
-		call_user_func_array(array(&$this, 'end_el'), $cb_args);
-	}
-
-	/**
-	 * Display array of elements hierarchically.
-	 *
-	 * It is a generic function which does not assume any existing order of
-	 * elements. max_depth = -1 means flatly display every element. max_depth =
-	 * 0 means display all levels. max_depth > 0  specifies the number of
-	 * display levels.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param array $elements
-	 * @param int $max_depth
-	 * @return string
-	 */
-	function walk( $elements, $max_depth) {
-
-		$args = array_slice(func_get_args(), 2);
-		$output = '';
-
-		if ($max_depth < -1) //invalid parameter
-			return $output;
-
-		if (empty($elements)) //nothing to walk
-			return $output;
-
-		$id_field = $this->db_fields['id'];
-		$parent_field = $this->db_fields['parent'];
-
-		// flat display
-		if ( -1 == $max_depth ) {
-			$empty_array = array();
-			foreach ( $elements as $e )
-				$this->display_element( $e, $empty_array, 1, 0, $args, $output );
-			return $output;
-		}
-
-		/*
-		 * need to display in hierarchical order
-		 * separate elements into two buckets: top level and children elements
-		 * children_elements is two dimensional array, eg.
-		 * children_elements[10][] contains all sub-elements whose parent is 10.
-		 */
-		$top_level_elements = array();
-		$children_elements  = array();
-		foreach ( $elements as $e) {
-			if ( 0 == $e->$parent_field )
-				$top_level_elements[] = $e;
-			else
-				$children_elements[ $e->$parent_field ][] = $e;
-		}
-
-		/*
-		 * when none of the elements is top level
-		 * assume the first one must be root of the sub elements
-		 */
-		if ( empty($top_level_elements) ) {
-
-			$first = array_slice( $elements, 0, 1 );
-			$root = $first[0];
-
-			$top_level_elements = array();
-			$children_elements  = array();
-			foreach ( $elements as $e) {
-				if ( $root->$parent_field == $e->$parent_field )
-					$top_level_elements[] = $e;
-				else
-					$children_elements[ $e->$parent_field ][] = $e;
-			}
-		}
-
-		foreach ( $top_level_elements as $e )
-			$this->display_element( $e, $children_elements, $max_depth, 0, $args, $output );
-
-		/*
-		 * if we are displaying all levels, and remaining children_elements is not empty,
-		 * then we got orphans, which should be displayed regardless
-		 */
-		if ( ( $max_depth == 0 ) && count( $children_elements ) > 0 ) {
-			$empty_array = array();
-			foreach ( $children_elements as $orphans )
-				foreach( $orphans as $op )
-					$this->display_element( $op, $empty_array, 1, 0, $args, $output );
-		 }
-
-		 return $output;
-	}
-
-	/**
- 	 * paged_walk() - produce a page of nested elements
- 	 *
- 	 * Given an array of hierarchical elements, the maximum depth, a specific page \
                number,
- 	 * and number of elements per page, this function first determines all top level \
                root elements
- 	 * belonging to that page, then lists them and all of their children in \
                hierarchical order.
- 	 *
- 	 * @package WordPress
- 	 * @since 2.7
- 	 * @param $max_depth = 0  means display all levels; $max_depth > 0  specifies the \
                number of display levels.
- 	 * @param $page_num the specific page number, beginning with 1.
- 	 * @return XHTML of the specified page of elements
- 	 */
-	function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
-
-		/* sanity check */
-		if ( empty($elements) || $max_depth < -1 )
-			return '';
-
-		$args = array_slice( func_get_args(), 4 );
-		$output = '';
-
-		$id_field = $this->db_fields['id'];
-		$parent_field = $this->db_fields['parent'];
-
-		$count = -1;
-		if ( -1 == $max_depth )
-			$total_top = count( $elements );
-		if ( $page_num < 1 || $per_page < 0  ) {
-			// No paging
-			$paging = false;
-			$start = 0;
-			if ( -1 == $max_depth )
-				$end = $total_top;
-			$this->max_pages = 1;
-		} else {
-			$paging = true;
-			$start = ( (int)$page_num - 1 ) * (int)$per_page;
-			$end   = $start + $per_page;
-			if ( -1 == $max_depth )
-				$this->max_pages = ceil($total_top / $per_page);
-		}
-
-		// flat display
-		if ( -1 == $max_depth ) {
-			if ( !empty($args[0]['reverse_top_level']) ) {
-				$elements = array_reverse( $elements );
-				$oldstart = $start;
-				$start = $total_top - $end;
-				$end = $total_top - $oldstart;
-			}
-
-			$empty_array = array();
-			foreach ( $elements as $e ) {
-				$count++;
-				if ( $count < $start )
-					continue;
-				if ( $count >= $end )
-					break;
-				$this->display_element( $e, $empty_array, 1, 0, $args, $output );
-			}
-			return $output;
-		}
-
-		/*
-		 * separate elements into two buckets: top level and children elements
-		 * children_elements is two dimensional array, eg.
-		 * children_elements[10][] contains all sub-elements whose parent is 10.
-		 */
-		$top_level_elements = array();
-		$children_elements  = array();
-		foreach ( $elements as $e) {
-			if ( 0 == $e->$parent_field )
-				$top_level_elements[] = $e;
-			else
-				$children_elements[ $e->$parent_field ][] = $e;
-		}
-
-		$total_top = count( $top_level_elements );
-		if ( $paging )
-			$this->max_pages = ceil($total_top / $per_page);
-		else
-			$end = $total_top;
-
-		if ( !empty($args[0]['reverse_top_level']) ) {
-			$top_level_elements = array_reverse( $top_level_elements );
-			$oldstart = $start;
-			$start = $total_top - $end;
-			$end = $total_top - $oldstart;
-		}
-		if ( !empty($args[0]['reverse_children']) ) {
-			foreach ( $children_elements as $parent => $children )
-				$children_elements[$parent] = array_reverse( $children );
-		}
-
-		foreach ( $top_level_elements as $e ) {
-			$count++;
-
-			//for the last page, need to unset earlier children in order to keep track of \
                orphans
-			if ( $end >= $total_top && $count < $start )
-					$this->unset_children( $e, $children_elements );
-
-			if ( $count < $start )
-				continue;
-
-			if ( $count >= $end )
-				break;
-
-			$this->display_element( $e, $children_elements, $max_depth, 0, $args, $output );
-		}
-
-		if ( $end >= $total_top && count( $children_elements ) > 0 ) {
-			$empty_array = array();
-			foreach ( $children_elements as $orphans )
-				foreach( $orphans as $op )
-					$this->display_element( $op, $empty_array, 1, 0, $args, $output );
-		}
-
-		return $output;
-	}
-
-	function get_number_of_root_elements( $elements ){
-
-		$num = 0;
-		$parent_field = $this->db_fields['parent'];
-
-		foreach ( $elements as $e) {
-			if ( 0 == $e->$parent_field )
-				$num++;
-		}
-		return $num;
-	}
-
-	// unset all the children for a given top level element
-	function unset_children( $e, &$children_elements ){
-
-		if ( !$e || !$children_elements )
-			return;
-
-		$id_field = $this->db_fields['id'];
-		$id = $e->$id_field;
-
-		if ( !empty($children_elements[$id]) && is_array($children_elements[$id]) )
-			foreach ( (array) $children_elements[$id] as $child )
-				$this->unset_children( $child, $children_elements );
-
-		if ( isset($children_elements[$id]) )
-			unset( $children_elements[$id] );
-
-	}
-}
-
-/**
- * Create HTML list of pages.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_Page extends Walker {
-	/**
-	 * @see Walker::$tree_type
-	 * @since 2.1.0
-	 * @var string
-	 */
-	var $tree_type = 'page';
-
-	/**
-	 * @see Walker::$db_fields
-	 * @since 2.1.0
-	 * @todo Decouple this.
-	 * @var array
-	 */
-	var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
-
-	/**
-	 * @see Walker::start_lvl()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param int $depth Depth of page. Used for padding.
-	 */
-	function start_lvl(&$output, $depth) {
-		$indent = str_repeat("\t", $depth);
-		$output .= "\n$indent<ul class='children'>\n";
-	}
-
-	/**
-	 * @see Walker::end_lvl()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param int $depth Depth of page. Used for padding.
-	 */
-	function end_lvl(&$output, $depth) {
-		$indent = str_repeat("\t", $depth);
-		$output .= "$indent</ul>\n";
-	}
-
-	/**
-	 * @see Walker::start_el()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param object $page Page data object.
-	 * @param int $depth Depth of page. Used for padding.
-	 * @param int $current_page Page ID.
-	 * @param array $args
-	 */
-	function start_el(&$output, $page, $depth, $args, $current_page) {
-		if ( $depth )
-			$indent = str_repeat("\t", $depth);
-		else
-			$indent = '';
-
-		extract($args, EXTR_SKIP);
-		$css_class = array('page_item', 'page-item-'.$page->ID);
-		if ( !empty($current_page) ) {
-			$_current_page = get_page( $current_page );
-			if ( isset($_current_page->ancestors) && in_array($page->ID, (array) \
                $_current_page->ancestors) )
-				$css_class[] = 'current_page_ancestor';
-			if ( $page->ID == $current_page )
-				$css_class[] = 'current_page_item';
-			elseif ( $_current_page && $page->ID == $_current_page->post_parent )
-				$css_class[] = 'current_page_parent';
-		} elseif ( $page->ID == get_option('page_for_posts') ) {
-			$css_class[] = 'current_page_parent';
-		}
-
-		$css_class = implode(' ', apply_filters('page_css_class', $css_class, $page));
-
-		$output .= $indent . '<li class="' . $css_class . '"><a href="' . \
get_page_link($page->ID) . '" title="' . esc_attr( wp_strip_all_tags( apply_filters( \
'the_title', $page->post_title, $page->ID ) ) ) . '">' . $link_before . \
                apply_filters( 'the_title', $page->post_title, $page->ID ) . \
                $link_after . '</a>';
-
-		if ( !empty($show_date) ) {
-			if ( 'modified' == $show_date )
-				$time = $page->post_modified;
-			else
-				$time = $page->post_date;
-
-			$output .= " " . mysql2date($date_format, $time);
-		}
-	}
-
-	/**
-	 * @see Walker::end_el()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param object $page Page data object. Not used.
-	 * @param int $depth Depth of page. Not Used.
-	 */
-	function end_el(&$output, $page, $depth) {
-		$output .= "</li>\n";
-	}
-
-}
-
-/**
- * Create HTML dropdown list of pages.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_PageDropdown extends Walker {
-	/**
-	 * @see Walker::$tree_type
-	 * @since 2.1.0
-	 * @var string
-	 */
-	var $tree_type = 'page';
-
-	/**
-	 * @see Walker::$db_fields
-	 * @since 2.1.0
-	 * @todo Decouple this
-	 * @var array
-	 */
-	var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
-
-	/**
-	 * @see Walker::start_el()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param object $page Page data object.
-	 * @param int $depth Depth of page in reference to parent pages. Used for padding.
-	 * @param array $args Uses 'selected' argument for selected page to set selected \
                HTML attribute for option element.
-	 */
-	function start_el(&$output, $page, $depth, $args) {
-		$pad = str_repeat('&nbsp;', $depth * 3);
-
-		$output .= "\t<option class=\"level-$depth\" value=\"$page->ID\"";
-		if ( $page->ID == $args['selected'] )
-			$output .= ' selected="selected"';
-		$output .= '>';
-		$title = esc_html($page->post_title);
-		$output .= "$pad$title";
-		$output .= "</option>\n";
-	}
-}
-
-/**
- * Create HTML list of categories.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_Category extends Walker {
-	/**
-	 * @see Walker::$tree_type
-	 * @since 2.1.0
-	 * @var string
-	 */
-	var $tree_type = 'category';
-
-	/**
-	 * @see Walker::$db_fields
-	 * @since 2.1.0
-	 * @todo Decouple this
-	 * @var array
-	 */
-	var $db_fields = array ('parent' => 'parent', 'id' => 'term_id');
-
-	/**
-	 * @see Walker::start_lvl()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param int $depth Depth of category. Used for tab indentation.
-	 * @param array $args Will only append content if style argument value is 'list'.
-	 */
-	function start_lvl(&$output, $depth, $args) {
-		if ( 'list' != $args['style'] )
-			return;
-
-		$indent = str_repeat("\t", $depth);
-		$output .= "$indent<ul class='children'>\n";
-	}
-
-	/**
-	 * @see Walker::end_lvl()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param int $depth Depth of category. Used for tab indentation.
-	 * @param array $args Will only append content if style argument value is 'list'.
-	 */
-	function end_lvl(&$output, $depth, $args) {
-		if ( 'list' != $args['style'] )
-			return;
-
-		$indent = str_repeat("\t", $depth);
-		$output .= "$indent</ul>\n";
-	}
-
-	/**
-	 * @see Walker::start_el()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param object $category Category data object.
-	 * @param int $depth Depth of category in reference to parents.
-	 * @param array $args
-	 */
-	function start_el(&$output, $category, $depth, $args) {
-		extract($args);
-
-		$cat_name = esc_attr( $category->name);
-		$cat_name = apply_filters( 'list_cats', $cat_name, $category );
-		$link = '<a href="' . get_term_link( $category, $category->taxonomy ) . '" ';
-		if ( $use_desc_for_title == 0 || empty($category->description) )
-			$link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . \
                '"';
-		else
-			$link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', \
                $category->description, $category ) ) ) . '"';
-		$link .= '>';
-		$link .= $cat_name . '</a>';
-
-		if ( (! empty($feed_image)) || (! empty($feed)) ) {
-			$link .= ' ';
-
-			if ( empty($feed_image) )
-				$link .= '(';
-
-			$link .= '<a href="' . get_term_feed_link( $category->term_id, \
                $category->taxonomy, $feed_type ) . '"';
-
-			if ( empty($feed) )
-				$alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) \
                . '"';
-			else {
-				$title = ' title="' . $feed . '"';
-				$alt = ' alt="' . $feed . '"';
-				$name = $feed;
-				$link .= $title;
-			}
-
-			$link .= '>';
-
-			if ( empty($feed_image) )
-				$link .= $name;
-			else
-				$link .= "<img src='$feed_image'$alt$title" . ' />';
-			$link .= '</a>';
-			if ( empty($feed_image) )
-				$link .= ')';
-		}
-
-		if ( isset($show_count) && $show_count )
-			$link .= ' (' . intval($category->count) . ')';
-
-		if ( isset($show_date) && $show_date ) {
-			$link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
-		}
-
-		if ( isset($current_category) && $current_category )
-			$_current_category = get_category( $current_category );
-
-		if ( 'list' == $args['style'] ) {
-			$output .= "\t<li";
-			$class = 'cat-item cat-item-'.$category->term_id;
-			if ( isset($current_category) && $current_category && ($category->term_id == \
                $current_category) )
-				$class .=  ' current-cat';
-			elseif ( isset($_current_category) && $_current_category && ($category->term_id \
                == $_current_category->parent) )
-				$class .=  ' current-cat-parent';
-			$output .=  ' class="'.$class.'"';
-			$output .= ">$link\n";
-		} else {
-			$output .= "\t$link<br />\n";
-		}
-	}
-
-	/**
-	 * @see Walker::end_el()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param object $page Not used.
-	 * @param int $depth Depth of category. Not used.
-	 * @param array $args Only uses 'list' for whether should append to output.
-	 */
-	function end_el(&$output, $page, $depth, $args) {
-		if ( 'list' != $args['style'] )
-			return;
-
-		$output .= "</li>\n";
-	}
-
-}
-
-/**
- * Create HTML dropdown list of Categories.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_CategoryDropdown extends Walker {
-	/**
-	 * @see Walker::$tree_type
-	 * @since 2.1.0
-	 * @var string
-	 */
-	var $tree_type = 'category';
-
-	/**
-	 * @see Walker::$db_fields
-	 * @since 2.1.0
-	 * @todo Decouple this
-	 * @var array
-	 */
-	var $db_fields = array ('parent' => 'parent', 'id' => 'term_id');
-
-	/**
-	 * @see Walker::start_el()
-	 * @since 2.1.0
-	 *
-	 * @param string $output Passed by reference. Used to append additional content.
-	 * @param object $category Category data object.
-	 * @param int $depth Depth of category. Used for padding.
-	 * @param array $args Uses 'selected', 'show_count', and 'show_last_update' keys, \
                if they exist.
-	 */
-	function start_el(&$output, $category, $depth, $args) {
-		$pad = str_repeat('&nbsp;', $depth * 3);
-
-		$cat_name = apply_filters('list_cats', $category->name, $category);
-		$output .= "\t<option class=\"level-$depth\" value=\"".$category->term_id."\"";
-		if ( $category->term_id == $args['selected'] )
-			$output .= ' selected="selected"';
-		$output .= '>';
-		$output .= $pad.$cat_name;
-		if ( $args['show_count'] )
-			$output .= '&nbsp;&nbsp;('. $category->count .')';
-		if ( $args['show_last_update'] ) {
-			$format = 'Y-m-d';
-			$output .= '&nbsp;&nbsp;' . gmdate($format, $category->last_update_timestamp);
-		}
-		$output .= "</option>\n";
-	}
-}
-
-/**
- * Send XML response back to AJAX request.
- *
- * @package WordPress
- * @since 2.1.0
- */
-class WP_Ajax_Response {
-	/**
-	 * Store XML responses to send.
-	 *
-	 * @since 2.1.0
-	 * @var array
-	 * @access private
-	 */
-	var $responses = array();
-
-	/**
-	 * PHP4 Constructor - Passes args to {@link WP_Ajax_Response::add()}.
-	 *
-	 * @since 2.1.0
-	 * @see WP_Ajax_Response::add()
-	 *
-	 * @param string|array $args Optional. Will be passed to add() method.
-	 * @return WP_Ajax_Response
-	 */
-	function WP_Ajax_Response( $args = '' ) {
-		if ( !empty($args) )
-			$this->add($args);
-	}
-
-	/**
-	 * Append to XML response based on given arguments.
-	 *
-	 * The arguments that can be passed in the $args parameter are below. It is
-	 * also possible to pass a WP_Error object in either the 'id' or 'data'
-	 * argument. The parameter isn't actually optional, content should be given
-	 * in order to send the correct response.
-	 *
-	 * 'what' argument is a string that is the XMLRPC response type.
-	 * 'action' argument is a boolean or string that acts like a nonce.
-	 * 'id' argument can be WP_Error or an integer.
-	 * 'old_id' argument is false by default or an integer of the previous ID.
-	 * 'position' argument is an integer or a string with -1 = top, 1 = bottom,
-	 * html ID = after, -html ID = before.
-	 * 'data' argument is a string with the content or message.
-	 * 'supplemental' argument is an array of strings that will be children of
-	 * the supplemental element.
-	 *
-	 * @since 2.1.0
-	 *
-	 * @param string|array $args Override defaults.
-	 * @return string XML response.
-	 */
-	function add( $args = '' ) {
-		$defaults = array(
-			'what' => 'object', 'action' => false,
-			'id' => '0', 'old_id' => false,
-			'position' => 1,
-			'data' => '', 'supplemental' => array()
-		);
-
-		$r = wp_parse_args( $args, $defaults );
-		extract( $r, EXTR_SKIP );
-		$position = preg_replace( '/[^a-z0-9:_-]/i', '', $position );
-
-		if ( is_wp_error($id) ) {
-			$data = $id;
-			$id = 0;
-		}
-
-		$response = '';
-		if ( is_wp_error($data) ) {
-			foreach ( (array) $data->get_error_codes() as $code ) {
-				$response .= "<wp_error code='$code'><![CDATA[" . \
                $data->get_error_message($code) . "]]></wp_error>";
-				if ( !$error_data = $data->get_error_data($code) )
-					continue;
-				$class = '';
-				if ( is_object($error_data) ) {
-					$class = ' class="' . get_class($error_data) . '"';
-					$error_data = get_object_vars($error_data);
-				}
-
-				$response .= "<wp_error_data code='$code'$class>";
-
-				if ( is_scalar($error_data) ) {
-					$response .= "<![CDATA[$error_data]]>";
-				} elseif ( is_array($error_data) ) {
-					foreach ( $error_data as $k => $v )
-						$response .= "<$k><![CDATA[$v]]></$k>";
-				}
-
-				$response .= "</wp_error_data>";
-			}
-		} else {
-			$response = "<response_data><![CDATA[$data]]></response_data>";
-		}
-
-		$s = '';
-		if ( is_array($supplemental) ) {
-			foreach ( $supplemental as $k => $v )
-				$s .= "<$k><![CDATA[$v]]></$k>";
-			$s = "<supplemental>$s</supplemental>";
-		}
-
-		if ( false === $action )
-			$action = $_POST['action'];
-
-		$x = '';
-		$x .= "<response action='{$action}_$id'>"; // The action attribute in the xml \
                output is formatted like a nonce action
-		$x .=	"<$what id='$id' " . ( false === $old_id ? '' : "old_id='$old_id' " ) . \
                "position='$position'>";
-		$x .=		$response;
-		$x .=		$s;
-		$x .=	"</$what>";
-		$x .= "</response>";
-
-		$this->responses[] = $x;
-		return $x;
-	}
-
-	/**
-	 * Display XML formatted responses.
-	 *
-	 * Sets the content type header to text/xml.
-	 *
-	 * @since 2.1.0
-	 */
-	function send() {
-		header('Content-Type: text/xml');
-		echo "<?xml version='1.0' standalone='yes'?><wp_ajax>";
-		foreach ( (array) $this->responses as $response )
-			echo $response;
-		echo '</wp_ajax>';
-		die();
-	}
-}
-
-/**
- * Helper class to remove the need to use eval to replace $matches[] in query \
                strings.
- *
- * @since 2.9.0
- */
-class WP_MatchesMapRegex {
-	/**
-	 * store for matches
-	 *
-	 * @access private
-	 * @var array
-	 */
-	var $_matches;
-
-	/**
-	 * store for mapping result
-	 *
-	 * @access public
-	 * @var string
-	 */
-	var $output;
-
-	/**
-	 * subject to perform mapping on (query string containing $matches[] references
-	 *
-	 * @access private
-	 * @var string
-	 */
-	var $_subject;
-
-	/**
-	 * regexp pattern to match $matches[] references
-	 *
-	 * @var string
-	 */
-	var $_pattern = '(\$matches\[[1-9]+[0-9]*\])'; // magic number
-
-	/**
-	 * constructor
-	 *
-	 * @param string $subject subject if regex
-	 * @param array  $matches data to use in map
-	 * @return self
-	 */
-	function WP_MatchesMapRegex($subject, $matches) {
-		$this->_subject = $subject;
-		$this->_matches = $matches;
-		$this->output = $this->_map();
-	}
-
-	/**
-	 * Substitute substring matches in subject.
-	 *
-	 * static helper function to ease use
-	 *
-	 * @access public
-	 * @param string $subject subject
-	 * @param array  $matches data used for subsitution
-	 * @return string
-	 */
-	function apply($subject, $matches) {
-		$oSelf =& new WP_MatchesMapRegex($subject, $matches);
-		return $oSelf->output;
-	}
-
-	/**
-	 * do the actual mapping
-	 *
-	 * @access private
-	 * @return string
-	 */
-	function _map() {
-		$callback = array(&$this, 'callback');
-		return preg_replace_callback($this->_pattern, $callback, $this->_subject);
-	}
-
-	/**
-	 * preg_replace_callback hook
-	 *
-	 * @access public
-	 * @param  array $matches preg_replace regexp matches
-	 * @return string
-	 */
-	function callback($matches) {
-		$index = intval(substr($matches[0], 9, -1));
-		return ( isset( $this->_matches[$index] ) ? urlencode($this->_matches[$index]) : \
                '' );
-	}
-
-}
-
-?>
diff --git a/wp-includes/js/tinymce/blank.htm b/wp-includes/js/tinymce/blank.htm
deleted file mode 100644
index 0ef2524..0000000
--- a/wp-includes/js/tinymce/blank.htm
+++ /dev/null
@@ -1,9 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-	<title>blank_page</title>
-</head>
-<body class="mceContentBody">
-
-</body>
-</html>
diff --git a/wp-includes/js/tinymce/plugins/media/css/content.css \
b/wp-includes/js/tinymce/plugins/media/css/content.css deleted file mode 100644
index 7739381..0000000
--- a/wp-includes/js/tinymce/plugins/media/css/content.css
+++ /dev/null
@@ -1,6 +0,0 @@
-.mceItemFlash, .mceItemShockWave, .mceItemQuickTime, .mceItemWindowsMedia, \
.mceItemRealMedia {border:1px dotted #cc0000; background-position:center; \
                background-repeat:no-repeat; background-color:#ffffcc;}
-.mceItemShockWave {background-image: url(../img/shockwave.gif);}
-.mceItemFlash {background-image:url(../img/flash.gif);}
-.mceItemQuickTime {background-image:url(../img/quicktime.gif);}
-.mceItemWindowsMedia {background-image:url(../img/windowsmedia.gif);}
-.mceItemRealMedia {background-image:url(../img/realmedia.gif);}
diff --git a/wp-includes/js/tinymce/plugins/media/css/media.css \
b/wp-includes/js/tinymce/plugins/media/css/media.css deleted file mode 100644
index 7b2253b..0000000
--- a/wp-includes/js/tinymce/plugins/media/css/media.css
+++ /dev/null
@@ -1,16 +0,0 @@
-#id, #name, #hspace, #vspace, #class_name, #align {	width: 100px }
-#hspace, #vspace { width: 50px }
-#flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: \
                100px }
-#flash_base, #flash_flashvars { width: 240px }
-#width, #height { width: 40px }
-#src, #media_type { width: 250px }
-#class { width: 120px }
-#prev { margin: 0; border: 1px solid black; width: 380px; height: 230px; overflow: \
                auto }
-.panel_wrapper div.current { height: 390px; overflow: auto }
-#flash_options, #shockwave_options, #qt_options, #wmp_options, #rmp_options { \
                display: none }
-.mceAddSelectValue { background-color: #DDDDDD }
-#qt_starttime, #qt_endtime, #qt_fov, #qt_href, #qt_moveid, #qt_moviename, #qt_node, \
#qt_pan, #qt_qtsrc, #qt_qtsrcchokespeed, #qt_target, #qt_tilt, #qt_urlsubstituten, \
                #qt_volume { width: 70px }
-#wmp_balance, #wmp_baseurl, #wmp_captioningid, #wmp_currentmarker, \
#wmp_currentposition, #wmp_defaultframe, #wmp_playcount, #wmp_rate, #wmp_uimode, \
                #wmp_volume { width: 70px }
-#rmp_console, #rmp_numloop, #rmp_controls, #rmp_scriptcallbacks { width: 70px }
-#shockwave_swvolume, #shockwave_swframe, #shockwave_swurl, \
#shockwave_swstretchvalign, #shockwave_swstretchhalign, #shockwave_swstretchstyle { \
                width: 90px }
-#qt_qtsrc { width: 200px }
diff --git a/wp-includes/js/tinymce/plugins/media/editor_plugin.js \
b/wp-includes/js/tinymce/plugins/media/editor_plugin.js deleted file mode 100644
index 2889be5..0000000
--- a/wp-includes/js/tinymce/plugins/media/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.MediaPlugin",{init:function(b,c){var \
e=this;e.editor=b;e.url=c;function \
f(g){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceIt \
emRealMedia)$/.test(g.className)}b.onPreInit.add(function(){b.serializer.addRules("par \
am[name|value|_mce_value]")});b.addCommand("mceMedia",function(){b.windowManager.open( \
{file:c+"/media.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+p \
arseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("me \
dia",{title:"media.desc",cmd:"mceMedia"});b.onNodeChange.add(function(h,g,i){g.setActive("media",i.nodeName=="IMG"&&f(i))});b.onInit.add(function(){var \
g={mceItemFlash:"flash",mceItemShockWave:"shockwave",mceItemWindowsMedia:"windowsmedia \
",mceItemQuickTime:"quicktime",mceItemRealMedia:"realmedia"};b.selection.onSetContent. \
add(function(){e._spansToImgs(b.getBody())});b.selection.onBeforeSetContent.add(e._obj \
ectsToSpans,e);if(b.settings.content_css!==false){b.dom.loadCSS(c+"/css/content.css")} \
if(b.theme&&b.theme.onResolveName){b.theme.onResolveName.add(function(h,i){if(i.name== \
"img"){a(g,function(l,j){if(b.dom.hasClass(i.node,j)){i.name=l;i.title=b.dom.getAttrib(i.node,"title");return \
false}})}})}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(funct \
ion(i,h,j){if(j.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealM \
edia)/.test(j.className)){h.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}} \
);b.onBeforeSetContent.add(e._objectsToSpans,e);b.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.onPreProcess.add(function(g,i){var \
h=g.dom;if(i.set){e._spansToImgs(i.node);a(h.select("IMG",i.node),function(k){var \
j;if(f(k)){j=e._parse(k.title);h.setAttrib(k,"width",h.getAttrib(k,"width",j.width||10 \
0));h.setAttrib(k,"height",h.getAttrib(k,"height",j.height||100))}})}if(i.get){a(h.select("IMG",i.node),function(m){var \
l,j,k;if(g.getParam("media_use_script")){if(f(m)){m.className=m.className.replace(/mce \
Item/g,"mceTemp")}return}switch(m.className){case"mceItemFlash":l="d27cdb6e-ae6d-11cf- \
96b8-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash. \
cab#version=6,0,40,0";k="application/x-shockwave-flash";break;case"mceItemShockWave":l \
="166b1bca-3f9c-11cf-8075-444553540000";j="http://download.macromedia.com/pub/shockwav \
e/cabs/director/sw.cab#version=8,5,1,0";k="application/x-director";break;case"mceItemW \
indowsMedia":l=g.getParam("media_wmp6_compatible")?"05589fa1-c356-11ce-bf01-00aa005559 \
5a":"6bf52a52-394a-11d3-b153-00c04f79faa6";j="http://activex.microsoft.com/activex/con \
trols/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";k="application/x-mplayer2";break;cas \
e"mceItemQuickTime":l="02bf25d5-8c17-4b23-bc80-d3488abddc6b";j="http://www.apple.com/q \
tactivex/qtplugin.cab#version=6,0,2,0";k="video/quicktime";break;case"mceItemRealMedia \
":l="cfcdaa03-8be4-11cf-b84b-0020afbbccfa";j="http://download.macromedia.com/pub/shock \
wave/cabs/flash/swflash.cab#version=6,0,40,0";k="audio/x-pn-realaudio-plugin";break}if \
(l){h.replace(e._buildObj({classid:l,codebase:j,type:k},m),m)}})}});b.onPostProcess.add(function(g,h){h.content=h.content.replace(/_mce_value=/g,"value=")});function \
d(g,h){h=new RegExp(h+'="([^"]+)"',"g").exec(g);return \
h?b.dom.decode(h[1]):""}b.onPostProcess.add(function(g,h){if(g.getParam("media_use_script")){h.content=h.content.replace(/<img[^>]+>/g,function(j){var \
i=d(j,"class");if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTim \
e|mceTempRealMedia)$/.test(i)){at=e._parse(d(j,"title"));at.width=d(j,"width");at.height=d(j,"height");j='<script \
type="text/javascript">write'+i.substring(7)+"({"+e._serialize(at)+"});<\/script>"}return \
j})}})},getInfo:function(){return{longname:"Media",author:"Moxiecode Systems \
AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index. \
php/TinyMCE:Plugins/media",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_objectsToSpans:function(b,e){var \
c=this,d=e.content;d=d.replace(/<script[^>]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi,function(g,f,i){var \
h=c._parse(i);return'<img class="mceItem'+f+'" title="'+b.dom.encode(i)+'" \
src="'+c.url+'/img/trans.gif" width="'+h.width+'" height="'+h.height+'" \
/>'});d=d.replace(/<object([^>]*)>/gi,'<span class="mceItemObject" \
$1>');d=d.replace(/<embed([^>]*)\/?>/gi,'<span class="mceItemEmbed" \
$1></span>');d=d.replace(/<embed([^>]*)>/gi,'<span class="mceItemEmbed" \
$1>');d=d.replace(/<\/(object)([^>]*)>/gi,"</span>");d=d.replace(/<\/embed>/gi,"");d=d.replace(/<param([^>]*)>/gi,function(g,f){return"<span \
"+f.replace(/value=/gi,"_mce_value=")+' \
class="mceItemParam"></span>'});d=d.replace(/\/ \
class=\"mceItemParam\"><\/span>/gi,'class="mceItemParam"></span>');e.content=d},_buildObj:function(g,h){var \
d,c=this.editor,f=c.dom,e=this._parse(h.title),b;b=c.getParam("media_strict",true)&&g. \
type=="application/x-shockwave-flash";e.width=g.width=f.getAttrib(h,"width")||100;e.he \
ight=g.height=f.getAttrib(h,"height")||100;if(e.src){e.src=c.convertURL(e.src,"src",h) \
}if(b){d=f.create("span",{id:e.id,mce_name:"object",type:"application/x-shockwave-flas \
h",data:e.src,style:f.getAttrib(h,"style"),width:g.width,height:g.height})}else{d=f.cr \
eate("span",{id:e.id,mce_name:"object",classid:"clsid:"+g.classid,style:f.getAttrib(h, \
"style"),codebase:g.codebase,width:g.width,height:g.height})}a(e,function(j,i){if(!/^( \
width|height|codebase|classid|id|_cx|_cy)$/.test(i)){if(g.type=="application/x-mplayer \
2"&&i=="src"&&!e.url){i="url"}if(j){f.add(d,"span",{mce_name:"param",name:i,_mce_value \
:j})}}});if(!b){f.add(d,"span",tinymce.extend({mce_name:"embed",type:g.type,style:f.getAttrib(h,"style")},e))}return \
d},_spansToImgs:function(e){var \
d=this,f=d.editor.dom,b,c;a(f.select("span",e),function(g){if(f.getAttrib(g,"class")== \
"mceItemObject"){c=f.getAttrib(g,"classid").toLowerCase().replace(/\s+/g,"");switch(c) \
{case"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000":f.replace(d._createImg("mceItemFlash \
",g),g);break;case"clsid:166b1bca-3f9c-11cf-8075-444553540000":f.replace(d._createImg( \
"mceItemShockWave",g),g);break;case"clsid:6bf52a52-394a-11d3-b153-00c04f79faa6":case"c \
lsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95":case"clsid:05589fa1-c356-11ce-bf01-00aa0055 \
595a":f.replace(d._createImg("mceItemWindowsMedia",g),g);break;case"clsid:02bf25d5-8c1 \
7-4b23-bc80-d3488abddc6b":f.replace(d._createImg("mceItemQuickTime",g),g);break;case"c \
lsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa":f.replace(d._createImg("mceItemRealMedia",g \
),g);break;default:f.replace(d._createImg("mceItemFlash",g),g)}return}if(f.getAttrib(g \
,"class")=="mceItemEmbed"){switch(f.getAttrib(g,"type")){case"application/x-shockwave- \
flash":f.replace(d._createImg("mceItemFlash",g),g);break;case"application/x-director": \
f.replace(d._createImg("mceItemShockWave",g),g);break;case"application/x-mplayer2":f.r \
eplace(d._createImg("mceItemWindowsMedia",g),g);break;case"video/quicktime":f.replace( \
d._createImg("mceItemQuickTime",g),g);break;case"audio/x-pn-realaudio-plugin":f.replac \
e(d._createImg("mceItemRealMedia",g),g);break;default:f.replace(d._createImg("mceItemFlash",g),g)}}})},_createImg:function(c,h){var \
b,g=this.editor.dom,f={},e="",d;d=["id","name","width","height","bgcolor","align","fla \
shvars","src","wmode","allowfullscreen","quality","data"];b=g.create("img",{src:this.u \
rl+"/img/trans.gif",width:g.getAttrib(h,"width")||100,height:g.getAttrib(h,"height")||100,style:g.getAttrib(h,"style"),"class":c});a(d,function(i){var \
j=g.getAttrib(h,i);if(j){f[i]=j}});a(g.select("span",h),function(i){if(g.hasClass(i,"m \
ceItemParam")){f[g.getAttrib(i,"name")]=g.getAttrib(i,"_mce_value")}});if(f.movie){f.src=f.movie;delete \
f.movie}if(!f.src){f.src=f.data;delete \
f.data}h=g.select(".mceItemEmbed",h)[0];if(h){a(d,function(i){var \
j=g.getAttrib(h,i);if(j&&!f[i]){f[i]=j}})}delete f.width;delete \
f.height;b.title=this._serialize(f);return b},_parse:function(b){return \
tinymce.util.JSON.parse("{"+b+"}")},_serialize:function(b){return \
tinymce.util.JSON.serialize(b).replace(/[{}]/g,"")}});tinymce.PluginManager.add("media",tinymce.plugins.MediaPlugin)})();
 \ No newline at end of file
diff --git a/wp-includes/js/tinymce/plugins/media/img/flash.gif \
b/wp-includes/js/tinymce/plugins/media/img/flash.gif deleted file mode 100644
index cb192e6..0000000
Binary files a/wp-includes/js/tinymce/plugins/media/img/flash.gif and /dev/null \
                differ
diff --git a/wp-includes/js/tinymce/plugins/media/img/flv_player.swf \
b/wp-includes/js/tinymce/plugins/media/img/flv_player.swf deleted file mode 100644
index 042c2ab..0000000
Binary files a/wp-includes/js/tinymce/plugins/media/img/flv_player.swf and /dev/null \
                differ
diff --git a/wp-includes/js/tinymce/plugins/media/img/quicktime.gif \
b/wp-includes/js/tinymce/plugins/media/img/quicktime.gif deleted file mode 100644
index 3b04991..0000000
Binary files a/wp-includes/js/tinymce/plugins/media/img/quicktime.gif and /dev/null \
                differ
diff --git a/wp-includes/js/tinymce/plugins/media/img/realmedia.gif \
b/wp-includes/js/tinymce/plugins/media/img/realmedia.gif deleted file mode 100644
index fdfe0b9..0000000
Binary files a/wp-includes/js/tinymce/plugins/media/img/realmedia.gif and /dev/null \
                differ
diff --git a/wp-includes/js/tinymce/plugins/media/img/shockwave.gif \
b/wp-includes/js/tinymce/plugins/media/img/shockwave.gif deleted file mode 100644
index 5f235df..0000000
Binary files a/wp-includes/js/tinymce/plugins/media/img/shockwave.gif and /dev/null \
                differ
diff --git a/wp-includes/js/tinymce/plugins/media/img/trans.gif \
b/wp-includes/js/tinymce/plugins/media/img/trans.gif deleted file mode 100644
index 3884865..0000000
Binary files a/wp-includes/js/tinymce/plugins/media/img/trans.gif and /dev/null \
                differ
diff --git a/wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif \
b/wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif deleted file mode 100644
index ab50f2d..0000000
Binary files a/wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif and \
                /dev/null differ
diff --git a/wp-includes/js/tinymce/plugins/media/js/embed.js \
b/wp-includes/js/tinymce/plugins/media/js/embed.js deleted file mode 100644
index 6fe25de..0000000
--- a/wp-includes/js/tinymce/plugins/media/js/embed.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * This script contains embed functions for common plugins. This scripts are \
                complety free to use for any purpose.
- */
-
-function writeFlash(p) {
-	writeEmbed(
-		'D27CDB6E-AE6D-11cf-96B8-444553540000',
-		'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
                
-		'application/x-shockwave-flash',
-		p
-	);
-}
-
-function writeShockWave(p) {
-	writeEmbed(
-	'166B1BCA-3F9C-11CF-8075-444553540000',
-	'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
                
-	'application/x-director',
-		p
-	);
-}
-
-function writeQuickTime(p) {
-	writeEmbed(
-		'02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
-		'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
-		'video/quicktime',
-		p
-	);
-}
-
-function writeRealMedia(p) {
-	writeEmbed(
-		'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
-		'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
                
-		'audio/x-pn-realaudio-plugin',
-		p
-	);
-}
-
-function writeWindowsMedia(p) {
-	p.url = p.src;
-	writeEmbed(
-		'6BF52A52-394A-11D3-B153-00C04F79FAA6',
-		'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
                
-		'application/x-mplayer2',
-		p
-	);
-}
-
-function writeEmbed(cls, cb, mt, p) {
-	var h = '', n;
-
-	h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
-	h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
-	h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
-	h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
-	h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
-	h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
-	h += '>';
-
-	for (n in p)
-		h += '<param name="' + n + '" value="' + p[n] + '">';
-
-	h += '<embed type="' + mt + '"';
-
-	for (n in p)
-		h += n + '="' + p[n] + '" ';
-
-	h += '></embed></object>';
-
-	document.write(h);
-}
diff --git a/wp-includes/js/tinymce/plugins/media/js/media.js \
b/wp-includes/js/tinymce/plugins/media/js/media.js deleted file mode 100644
index cde592e..0000000
--- a/wp-includes/js/tinymce/plugins/media/js/media.js
+++ /dev/null
@@ -1,630 +0,0 @@
-tinyMCEPopup.requireLangPack();
-
-var oldWidth, oldHeight, ed, url;
-
-if (url = tinyMCEPopup.getParam("media_external_list_url"))
-	document.write('<script language="javascript" type="text/javascript" src="' + \
                tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
-
-function init() {
-	var pl = "", f, val;
-	var type = "flash", fe, i;
-
-	ed = tinyMCEPopup.editor;
-
-	tinyMCEPopup.resizeToInnerSize();
-	f = document.forms[0]
-
-	fe = ed.selection.getNode();
-	if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, \
                'class'))) {
-		pl = fe.title;
-
-		switch (ed.dom.getAttrib(fe, 'class')) {
-			case 'mceItemFlash':
-				type = 'flash';
-				break;
-
-			case 'mceItemFlashVideo':
-				type = 'flv';
-				break;
-
-			case 'mceItemShockWave':
-				type = 'shockwave';
-				break;
-
-			case 'mceItemWindowsMedia':
-				type = 'wmp';
-				break;
-
-			case 'mceItemQuickTime':
-				type = 'qt';
-				break;
-
-			case 'mceItemRealMedia':
-				type = 'rmp';
-				break;
-		}
-
-		document.forms[0].insert.value = ed.getLang('update', 'Insert', true); 
-	}
-
-	document.getElementById('filebrowsercontainer').innerHTML = \
                getBrowserHTML('filebrowser','src','media','media');
-	document.getElementById('qtsrcfilebrowsercontainer').innerHTML = \
                getBrowserHTML('qtsrcfilebrowser','qt_qtsrc','media','media');
-	document.getElementById('bgcolor_pickcontainer').innerHTML = \
                getColorPickerHTML('bgcolor_pick','bgcolor');
-
-	var html = getMediaListHTML('medialist','src','media','media');
-	if (html == "")
-		document.getElementById("linklistrow").style.display = 'none';
-	else
-		document.getElementById("linklistcontainer").innerHTML = html;
-
-	// Resize some elements
-	if (isVisible('filebrowser'))
-		document.getElementById('src').style.width = '230px';
-
-	// Setup form
-	if (pl != "") {
-		pl = tinyMCEPopup.editor.plugins.media._parse(pl);
-
-		switch (type) {
-			case "flash":
-				setBool(pl, 'flash', 'play');
-				setBool(pl, 'flash', 'loop');
-				setBool(pl, 'flash', 'menu');
-				setBool(pl, 'flash', 'swliveconnect');
-				setStr(pl, 'flash', 'quality');
-				setStr(pl, 'flash', 'scale');
-				setStr(pl, 'flash', 'salign');
-				setStr(pl, 'flash', 'wmode');
-				setStr(pl, 'flash', 'base');
-				setStr(pl, 'flash', 'flashvars');
-			break;
-
-			case "qt":
-				setBool(pl, 'qt', 'loop');
-				setBool(pl, 'qt', 'autoplay');
-				setBool(pl, 'qt', 'cache');
-				setBool(pl, 'qt', 'controller');
-				setBool(pl, 'qt', 'correction');
-				setBool(pl, 'qt', 'enablejavascript');
-				setBool(pl, 'qt', 'kioskmode');
-				setBool(pl, 'qt', 'autohref');
-				setBool(pl, 'qt', 'playeveryframe');
-				setBool(pl, 'qt', 'tarsetcache');
-				setStr(pl, 'qt', 'scale');
-				setStr(pl, 'qt', 'starttime');
-				setStr(pl, 'qt', 'endtime');
-				setStr(pl, 'qt', 'tarset');
-				setStr(pl, 'qt', 'qtsrcchokespeed');
-				setStr(pl, 'qt', 'volume');
-				setStr(pl, 'qt', 'qtsrc');
-			break;
-
-			case "shockwave":
-				setBool(pl, 'shockwave', 'sound');
-				setBool(pl, 'shockwave', 'progress');
-				setBool(pl, 'shockwave', 'autostart');
-				setBool(pl, 'shockwave', 'swliveconnect');
-				setStr(pl, 'shockwave', 'swvolume');
-				setStr(pl, 'shockwave', 'swstretchstyle');
-				setStr(pl, 'shockwave', 'swstretchhalign');
-				setStr(pl, 'shockwave', 'swstretchvalign');
-			break;
-
-			case "wmp":
-				setBool(pl, 'wmp', 'autostart');
-				setBool(pl, 'wmp', 'enabled');
-				setBool(pl, 'wmp', 'enablecontextmenu');
-				setBool(pl, 'wmp', 'fullscreen');
-				setBool(pl, 'wmp', 'invokeurls');
-				setBool(pl, 'wmp', 'mute');
-				setBool(pl, 'wmp', 'stretchtofit');
-				setBool(pl, 'wmp', 'windowlessvideo');
-				setStr(pl, 'wmp', 'balance');
-				setStr(pl, 'wmp', 'baseurl');
-				setStr(pl, 'wmp', 'captioningid');
-				setStr(pl, 'wmp', 'currentmarker');
-				setStr(pl, 'wmp', 'currentposition');
-				setStr(pl, 'wmp', 'defaultframe');
-				setStr(pl, 'wmp', 'playcount');
-				setStr(pl, 'wmp', 'rate');
-				setStr(pl, 'wmp', 'uimode');
-				setStr(pl, 'wmp', 'volume');
-			break;
-
-			case "rmp":
-				setBool(pl, 'rmp', 'autostart');
-				setBool(pl, 'rmp', 'loop');
-				setBool(pl, 'rmp', 'autogotourl');
-				setBool(pl, 'rmp', 'center');
-				setBool(pl, 'rmp', 'imagestatus');
-				setBool(pl, 'rmp', 'maintainaspect');
-				setBool(pl, 'rmp', 'nojava');
-				setBool(pl, 'rmp', 'prefetch');
-				setBool(pl, 'rmp', 'shuffle');
-				setStr(pl, 'rmp', 'console');
-				setStr(pl, 'rmp', 'controls');
-				setStr(pl, 'rmp', 'numloop');
-				setStr(pl, 'rmp', 'scriptcallbacks');
-			break;
-		}
-
-		setStr(pl, null, 'src');
-		setStr(pl, null, 'id');
-		setStr(pl, null, 'name');
-		setStr(pl, null, 'vspace');
-		setStr(pl, null, 'hspace');
-		setStr(pl, null, 'bgcolor');
-		setStr(pl, null, 'align');
-		setStr(pl, null, 'width');
-		setStr(pl, null, 'height');
-
-		if ((val = ed.dom.getAttrib(fe, "width")) != "")
-			pl.width = f.width.value = val;
-
-		if ((val = ed.dom.getAttrib(fe, "height")) != "")
-			pl.height = f.height.value = val;
-
-		oldWidth = pl.width ? parseInt(pl.width) : 0;
-		oldHeight = pl.height ? parseInt(pl.height) : 0;
-	} else
-		oldWidth = oldHeight = 0;
-
-	selectByValue(f, 'media_type', type);
-	changedType(type);
-	updateColor('bgcolor_pick', 'bgcolor');
-
-	TinyMCE_EditableSelects.init();
-	generatePreview();
-}
-
-function insertMedia() {
-	var fe, f = document.forms[0], h;
-
-	tinyMCEPopup.restoreSelection();
-
-	if (!AutoValidator.validate(f)) {
-		tinyMCEPopup.alert(ed.getLang('invalid_data'));
-		return false;
-	}
-
-	f.width.value = f.width.value == "" ? 100 : f.width.value;
-	f.height.value = f.height.value == "" ? 100 : f.height.value;
-
-	fe = ed.selection.getNode();
-	if (fe != null && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, \
                'class'))) {
-		switch (f.media_type.options[f.media_type.selectedIndex].value) {
-			case "flash":
-				fe.className = "mceItemFlash";
-				break;
-
-			case "flv":
-				fe.className = "mceItemFlashVideo";
-				break;
-
-			case "shockwave":
-				fe.className = "mceItemShockWave";
-				break;
-
-			case "qt":
-				fe.className = "mceItemQuickTime";
-				break;
-
-			case "wmp":
-				fe.className = "mceItemWindowsMedia";
-				break;
-
-			case "rmp":
-				fe.className = "mceItemRealMedia";
-				break;
-		}
-
-		if (fe.width != f.width.value || fe.height != f.height.value)
-			ed.execCommand('mceRepaint');
-
-		fe.title = serializeParameters();
-		fe.width = f.width.value;
-		fe.height = f.height.value;
-		fe.style.width = f.width.value + (f.width.value.indexOf('%') == -1 ? 'px' : '');
-		fe.style.height = f.height.value + (f.height.value.indexOf('%') == -1 ? 'px' : \
                '');
-		fe.align = f.align.options[f.align.selectedIndex].value;
-	} else {
-		h = '<img src="' + tinyMCEPopup.getWindowArg("plugin_url") + '/img/trans.gif"' ;
-
-		switch (f.media_type.options[f.media_type.selectedIndex].value) {
-			case "flash":
-				h += ' class="mceItemFlash"';
-				break;
-
-			case "flv":
-				h += ' class="mceItemFlashVideo"';
-				break;
-
-			case "shockwave":
-				h += ' class="mceItemShockWave"';
-				break;
-
-			case "qt":
-				h += ' class="mceItemQuickTime"';
-				break;
-
-			case "wmp":
-				h += ' class="mceItemWindowsMedia"';
-				break;
-
-			case "rmp":
-				h += ' class="mceItemRealMedia"';
-				break;
-		}
-
-		h += ' title="' + serializeParameters() + '"';
-		h += ' width="' + f.width.value + '"';
-		h += ' height="' + f.height.value + '"';
-		h += ' align="' + f.align.options[f.align.selectedIndex].value + '"';
-
-		h += ' />';
-
-		ed.execCommand('mceInsertContent', false, h);
-	}
-
-	tinyMCEPopup.close();
-}
-
-function updatePreview() {
-	var f = document.forms[0], type;
-
-	f.width.value = f.width.value || '320';
-	f.height.value = f.height.value || '240';
-
-	type = getType(f.src.value);
-	selectByValue(f, 'media_type', type);
-	changedType(type);
-	generatePreview();
-}
-
-function getMediaListHTML() {
-	if (typeof(tinyMCEMediaList) != "undefined" && tinyMCEMediaList.length > 0) {
-		var html = "";
-
-		html += '<select id="linklist" name="linklist" style="width: 250px" \
onchange="this.form.src.value=this.options[this.selectedIndex].value;updatePreview();">';
                
-		html += '<option value="">---</option>';
-
-		for (var i=0; i<tinyMCEMediaList.length; i++)
-			html += '<option value="' + tinyMCEMediaList[i][1] + '">' + \
                tinyMCEMediaList[i][0] + '</option>';
-
-		html += '</select>';
-
-		return html;
-	}
-
-	return "";
-}
-
-function getType(v) {
-	var fo, i, c, el, x, f = document.forms[0];
-
-	fo = ed.getParam("media_types", \
"flash=swf;flv=flv;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;shockwave=dcr;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm,ra,ram").split(';');
                
-
-	// YouTube
-	if (v.match(/watch\?v=(.+)(.*)/)) {
-		f.width.value = '425';
-		f.height.value = '350';
-		f.src.value = 'http://www.youtube.com/v/' + \
                v.match(/v=(.*)(.*)/)[0].split('=')[1];
-		return 'flash';
-	}
-
-	// Google video
-	if (v.indexOf('http://video.google.com/videoplay?docid=') == 0) {
-		f.width.value = '425';
-		f.height.value = '326';
-		f.src.value = 'http://video.google.com/googleplayer.swf?docId=' + \
                v.substring('http://video.google.com/videoplay?docid='.length) + \
                '&hl=en';
-		return 'flash';
-	}
-
-	for (i=0; i<fo.length; i++) {
-		c = fo[i].split('=');
-
-		el = c[1].split(',');
-		for (x=0; x<el.length; x++)
-		if (v.indexOf('.' + el[x]) != -1)
-			return c[0];
-	}
-
-	return null;
-}
-
-function switchType(v) {
-	var t = getType(v), d = document, f = d.forms[0];
-
-	if (!t)
-		return;
-
-	selectByValue(d.forms[0], 'media_type', t);
-	changedType(t);
-
-	// Update qtsrc also
-	if (t == 'qt' && f.src.value.toLowerCase().indexOf('rtsp://') != -1) {
-		alert(ed.getLang("media_qt_stream_warn"));
-
-		if (f.qt_qtsrc.value == '')
-			f.qt_qtsrc.value = f.src.value;
-	}
-}
-
-function changedType(t) {
-	var d = document;
-
-	d.getElementById('flash_options').style.display = 'none';
-	d.getElementById('flv_options').style.display = 'none';
-	d.getElementById('qt_options').style.display = 'none';
-	d.getElementById('shockwave_options').style.display = 'none';
-	d.getElementById('wmp_options').style.display = 'none';
-	d.getElementById('rmp_options').style.display = 'none';
-
-	if (t)
-		d.getElementById(t + '_options').style.display = 'block';
-}
-
-function serializeParameters() {
-	var d = document, f = d.forms[0], s = '';
-
-	switch (f.media_type.options[f.media_type.selectedIndex].value) {
-		case "flash":
-			s += getBool('flash', 'play', true);
-			s += getBool('flash', 'loop', true);
-			s += getBool('flash', 'menu', true);
-			s += getBool('flash', 'swliveconnect', false);
-			s += getStr('flash', 'quality');
-			s += getStr('flash', 'scale');
-			s += getStr('flash', 'salign');
-			s += getStr('flash', 'wmode');
-			s += getStr('flash', 'base');
-			s += getStr('flash', 'flashvars');
-		break;
-
-		case "qt":
-			s += getBool('qt', 'loop', false);
-			s += getBool('qt', 'autoplay', true);
-			s += getBool('qt', 'cache', false);
-			s += getBool('qt', 'controller', true);
-			s += getBool('qt', 'correction', false, 'none', 'full');
-			s += getBool('qt', 'enablejavascript', false);
-			s += getBool('qt', 'kioskmode', false);
-			s += getBool('qt', 'autohref', false);
-			s += getBool('qt', 'playeveryframe', false);
-			s += getBool('qt', 'targetcache', false);
-			s += getStr('qt', 'scale');
-			s += getStr('qt', 'starttime');
-			s += getStr('qt', 'endtime');
-			s += getStr('qt', 'target');
-			s += getStr('qt', 'qtsrcchokespeed');
-			s += getStr('qt', 'volume');
-			s += getStr('qt', 'qtsrc');
-		break;
-
-		case "shockwave":
-			s += getBool('shockwave', 'sound');
-			s += getBool('shockwave', 'progress');
-			s += getBool('shockwave', 'autostart');
-			s += getBool('shockwave', 'swliveconnect');
-			s += getStr('shockwave', 'swvolume');
-			s += getStr('shockwave', 'swstretchstyle');
-			s += getStr('shockwave', 'swstretchhalign');
-			s += getStr('shockwave', 'swstretchvalign');
-		break;
-
-		case "wmp":
-			s += getBool('wmp', 'autostart', true);
-			s += getBool('wmp', 'enabled', false);
-			s += getBool('wmp', 'enablecontextmenu', true);
-			s += getBool('wmp', 'fullscreen', false);
-			s += getBool('wmp', 'invokeurls', true);
-			s += getBool('wmp', 'mute', false);
-			s += getBool('wmp', 'stretchtofit', false);
-			s += getBool('wmp', 'windowlessvideo', false);
-			s += getStr('wmp', 'balance');
-			s += getStr('wmp', 'baseurl');
-			s += getStr('wmp', 'captioningid');
-			s += getStr('wmp', 'currentmarker');
-			s += getStr('wmp', 'currentposition');
-			s += getStr('wmp', 'defaultframe');
-			s += getStr('wmp', 'playcount');
-			s += getStr('wmp', 'rate');
-			s += getStr('wmp', 'uimode');
-			s += getStr('wmp', 'volume');
-		break;
-
-		case "rmp":
-			s += getBool('rmp', 'autostart', false);
-			s += getBool('rmp', 'loop', false);
-			s += getBool('rmp', 'autogotourl', true);
-			s += getBool('rmp', 'center', false);
-			s += getBool('rmp', 'imagestatus', true);
-			s += getBool('rmp', 'maintainaspect', false);
-			s += getBool('rmp', 'nojava', false);
-			s += getBool('rmp', 'prefetch', false);
-			s += getBool('rmp', 'shuffle', false);
-			s += getStr('rmp', 'console');
-			s += getStr('rmp', 'controls');
-			s += getStr('rmp', 'numloop');
-			s += getStr('rmp', 'scriptcallbacks');
-		break;
-	}
-
-	s += getStr(null, 'id');
-	s += getStr(null, 'name');
-	s += getStr(null, 'src');
-	s += getStr(null, 'align');
-	s += getStr(null, 'bgcolor');
-	s += getInt(null, 'vspace');
-	s += getInt(null, 'hspace');
-	s += getStr(null, 'width');
-	s += getStr(null, 'height');
-
-	s = s.length > 0 ? s.substring(0, s.length - 1) : s;
-
-	return s;
-}
-
-function setBool(pl, p, n) {
-	if (typeof(pl[n]) == "undefined")
-		return;
-
-	document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false';
-}
-
-function setStr(pl, p, n) {
-	var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n];
-
-	if (typeof(pl[n]) == "undefined")
-		return;
-
-	if (e.type == "text")
-		e.value = pl[n];
-	else
-		selectByValue(f, (p != null ? p + "_" : '') + n, pl[n]);
-}
-
-function getBool(p, n, d, tv, fv) {
-	var v = document.forms[0].elements[p + "_" + n].checked;
-
-	tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'";
-	fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'";
-
-	return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',");
-}
-
-function getStr(p, n, d) {
-	var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
-	var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;
-
-	if (n == 'src')
-		v = tinyMCEPopup.editor.convertURL(v, 'src', null);
-
-	return ((n == d || v == '') ? '' : n + ":'" + jsEncode(v) + "',");
-}
-
-function getInt(p, n, d) {
-	var e = document.forms[0].elements[(p != null ? p + "_" : "") + n];
-	var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value;
-
-	return ((n == d || v == '') ? '' : n + ":" + v.replace(/[^0-9]+/g, '') + ",");
-}
-
-function jsEncode(s) {
-	s = s.replace(new RegExp('\\\\', 'g'), '\\\\');
-	s = s.replace(new RegExp('"', 'g'), '\\"');
-	s = s.replace(new RegExp("'", 'g'), "\\'");
-
-	return s;
-}
-
-function generatePreview(c) {
-	var f = document.forms[0], p = document.getElementById('prev'), h = '', cls, pl, n, \
                type, codebase, wp, hp, nw, nh;
-
-	p.innerHTML = '<!-- x --->';
-
-	nw = parseInt(f.width.value);
-	nh = parseInt(f.height.value);
-
-	if (f.width.value != "" && f.height.value != "") {
-		if (f.constrain.checked) {
-			if (c == 'width' && oldWidth != 0) {
-				wp = nw / oldWidth;
-				nh = Math.round(wp * nh);
-				f.height.value = nh;
-			} else if (c == 'height' && oldHeight != 0) {
-				hp = nh / oldHeight;
-				nw = Math.round(hp * nw);
-				f.width.value = nw;
-			}
-		}
-	}
-
-	if (f.width.value != "")
-		oldWidth = nw;
-
-	if (f.height.value != "")
-		oldHeight = nh;
-
-	// After constrain
-	pl = serializeParameters();
-
-	switch (f.media_type.options[f.media_type.selectedIndex].value) {
-		case "flash":
-			cls = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
-			codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';
                
-			type = 'application/x-shockwave-flash';
-			break;
-
-		case "shockwave":
-			cls = 'clsid:166B1BCA-3F9C-11CF-8075-444553540000';
-			codebase = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';
                
-			type = 'application/x-director';
-			break;
-
-		case "qt":
-			cls = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
-			codebase = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';
-			type = 'video/quicktime';
-			break;
-
-		case "wmp":
-			cls = ed.getParam('media_wmp6_compatible') ? \
'clsid:05589FA1-C356-11CE-BF01-00AA0055595A' : \
                'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6';
-			codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
                
-			type = 'application/x-mplayer2';
-			break;
-
-		case "rmp":
-			cls = 'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA';
-			codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';
                
-			type = 'audio/x-pn-realaudio-plugin';
-			break;
-	}
-
-	if (pl == '') {
-		p.innerHTML = '';
-		return;
-	}
-
-	pl = tinyMCEPopup.editor.plugins.media._parse(pl);
-
-	if (!pl.src) {
-		p.innerHTML = '';
-		return;
-	}
-
-	pl.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(pl.src);
-	pl.width = !pl.width ? 100 : pl.width;
-	pl.height = !pl.height ? 100 : pl.height;
-	pl.id = !pl.id ? 'obj' : pl.id;
-	pl.name = !pl.name ? 'eobj' : pl.name;
-	pl.align = !pl.align ? '' : pl.align;
-
-	// Avoid annoying warning about insecure items
-	if (!tinymce.isIE || document.location.protocol != 'https:') {
-		h += '<object classid="' + cls + '" codebase="' + codebase + '" width="' + \
pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" \
                align="' + pl.align + '">';
-
-		for (n in pl) {
-			h += '<param name="' + n + '" value="' + pl[n] + '">';
-
-			// Add extra url parameter if it's an absolute URL
-			if (n == 'src' && pl[n].indexOf('://') != -1)
-				h += '<param name="url" value="' + pl[n] + '" />';
-		}
-	}
-
-	h += '<embed type="' + type + '" ';
-
-	for (n in pl)
-		h += n + '="' + pl[n] + '" ';
-
-	h += '></embed>';
-
-	// Avoid annoying warning about insecure items
-	if (!tinymce.isIE || document.location.protocol != 'https:')
-		h += '</object>';
-
-	p.innerHTML = "<!-- x --->" + h;
-}
-
-tinyMCEPopup.onInit.add(init);
diff --git a/wp-includes/js/tinymce/plugins/media/media.htm \
b/wp-includes/js/tinymce/plugins/media/media.htm deleted file mode 100644
index 0ab7ba6..0000000
--- a/wp-includes/js/tinymce/plugins/media/media.htm
+++ /dev/null
@@ -1,822 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" \
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-	<title>{#media_dlg.title}</title>
-	<script type="text/javascript" src="../../tiny_mce_popup.js?ver=327-1235"></script>
-	<script type="text/javascript" src="js/media.js?ver=327-1235"></script>
-	<script type="text/javascript" src="../../utils/mctabs.js?ver=327-1235"></script>
-	<script type="text/javascript" src="../../utils/validate.js?ver=327-1235"></script>
-	<script type="text/javascript" \
                src="../../utils/form_utils.js?ver=327-1235"></script>
-	<script type="text/javascript" \
                src="../../utils/editable_selects.js?ver=327-1235"></script>
-	<link href="css/media.css?ver=327-1235" rel="stylesheet" type="text/css" />
-</head>
-<body style="display: none">
-    <form onsubmit="insertMedia();return false;" action="#">
-		<div class="tabs">
-			<ul>
-				<li id="general_tab" class="current"><span><a \
href="javascript:mcTabs.displayTab('general_tab','general_panel');generatePreview();" \
                onmousedown="return false;">{#media_dlg.general}</a></span></li>
-				<li id="advanced_tab"><span><a \
href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" \
                onmousedown="return false;">{#media_dlg.advanced}</a></span></li>
-			</ul>
-		</div>
-
-		<div class="panel_wrapper">
-			<div id="general_panel" class="panel current">
-				<fieldset>
-					<legend>{#media_dlg.general}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0">
-							<tr>
-								<td><label for="media_type">{#media_dlg.type}</label></td>
-								<td>
-									<select id="media_type" name="media_type" \
                onchange="changedType(this.value);generatePreview();">
-										<option value="flash">Flash</option>
-										<!-- <option value="flv">Flash video (FLV)</option> -->
-										<option value="qt">Quicktime</option>
-										<option value="shockwave">Shockwave</option>
-										<option value="wmp">Windows Media</option>
-										<option value="rmp">Real Media</option>
-									</select>
-								</td>
-							</tr>
-							<tr>
-							<td><label for="src">{#media_dlg.file}</label></td>
-							  <td>
-									<table border="0" cellspacing="0" cellpadding="0">
-									  <tr>
-										<td><input id="src" name="src" type="text" value="" class="mceFocus" \
                onchange="switchType(this.value);generatePreview();" /></td>
-										<td id="filebrowsercontainer">&nbsp;</td>
-									  </tr>
-									</table>
-								</td>
-							</tr>
-							<tr id="linklistrow">
-								<td><label for="linklist">{#media_dlg.list}</label></td>
-								<td id="linklistcontainer"><select id="linklist"><option \
                value=""></option></select></td>
-							</tr>
-							<tr>
-								<td><label for="width">{#media_dlg.size}</label></td>
-								<td>
-									<table border="0" cellpadding="0" cellspacing="0">
-										<tr>
-											<td><input type="text" id="width" name="width" value="" class="size" \
onchange="generatePreview('width');" /> x <input type="text" id="height" \
                name="height" value="" class="size"  \
                onchange="generatePreview('height');" /></td>
-											<td>&nbsp;&nbsp;<input id="constrain" type="checkbox" name="constrain" \
                class="checkbox" /></td>
-											<td><label id="constrainlabel" \
                for="constrain">{#media_dlg.constrain_proportions}</label></td>
-										</tr>
-									</table>
-								</td>
-							</tr>
-					</table>
-				</fieldset>
-
-				<fieldset>
-					<legend>{#media_dlg.preview}</legend>
-					<div id="prev"></div>
-				</fieldset>
-			</div>
-
-			<div id="advanced_panel" class="panel">
-				<fieldset>
-					<legend>{#media_dlg.advanced}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0" width="100%">
-						<tr>
-							<td><label for="id">{#media_dlg.id}</label></td>
-							<td><input type="text" id="id" name="id" onchange="generatePreview();" \
                /></td>
-							<td><label for="name">{#media_dlg.name}</label></td>
-							<td><input type="text" id="name" name="name" onchange="generatePreview();" \
                /></td>
-						</tr>
-
-						<tr>
-							<td><label for="align">{#media_dlg.align}</label></td>
-							<td>
-								<select id="align" name="align" onchange="generatePreview();">
-									<option value="">{#not_set}</option> 
-									<option value="top">{#media_dlg.align_top}</option>
-									<option value="right">{#media_dlg.align_right}</option>
-									<option value="bottom">{#media_dlg.align_bottom}</option>
-									<option value="left">{#media_dlg.align_left}</option>
-								</select>
-							</td>
-
-							<td><label for="bgcolor">{#media_dlg.bgcolor}</label></td>
-							<td>
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" \
                onchange="updateColor('bgcolor_pick','bgcolor');generatePreview();" \
                /></td>
-										<td id="bgcolor_pickcontainer">&nbsp;</td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td><label for="vspace">{#media_dlg.vspace}</label></td>
-							<td><input type="text" id="vspace" name="vspace" class="number" \
                onchange="generatePreview();" /></td>
-							<td><label for="hspace">{#media_dlg.hspace}</label></td>
-							<td><input type="text" id="hspace" name="hspace" class="number" \
                onchange="generatePreview();" /></td>
-						</tr>
-					</table>
-				</fieldset>
-
-				<fieldset id="flash_options">
-					<legend>{#media_dlg.flash_options}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0">
-						<tr>
-							<td><label for="flash_quality">{#media_dlg.quality}</label></td>
-							<td>
-								<select id="flash_quality" name="flash_quality" \
                onchange="generatePreview();">
-									<option value="">{#not_set}</option> 
-									<option value="high">high</option>
-									<option value="low">low</option>
-									<option value="autolow">autolow</option>
-									<option value="autohigh">autohigh</option>
-									<option value="best">best</option>
-								</select>
-							</td>
-
-							<td><label for="flash_scale">{#media_dlg.scale}</label></td>
-							<td>
-								<select id="flash_scale" name="flash_scale" onchange="generatePreview();">
-									<option value="">{#not_set}</option> 
-									<option value="showall">showall</option>
-									<option value="noborder">noborder</option>
-									<option value="exactfit">exactfit</option>
-									<option value="noscale">noscale</option>
-								</select>
-							</td>
-						</tr>
-
-						<tr>
-							<td><label for="flash_wmode">{#media_dlg.wmode}</label></td>
-							<td>
-								<select id="flash_wmode" name="flash_wmode" onchange="generatePreview();">
-									<option value="">{#not_set}</option> 
-									<option value="window">window</option>
-									<option value="opaque">opaque</option>
-									<option value="transparent">transparent</option>
-								</select>
-							</td>
-
-							<td><label for="flash_salign">{#media_dlg.salign}</label></td>
-							<td>
-								<select id="flash_salign" name="flash_salign" onchange="generatePreview();">
-									<option value="">{#not_set}</option> 
-									<option value="l">{#media_dlg.align_left}</option>
-									<option value="t">{#media_dlg.align_top}</option>
-									<option value="r">{#media_dlg.align_right}</option>
-									<option value="b">{#media_dlg.align_bottom}</option>
-									<option value="tl">{#media_dlg.align_top_left}</option>
-									<option value="tr">{#media_dlg.align_top_right}</option>
-									<option value="bl">{#media_dlg.align_bottom_left}</option>
-									<option value="br">{#media_dlg.align_bottom_right}</option>
-								</select>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flash_play" \
                name="flash_play" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="flash_play">{#media_dlg.play}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flash_loop" \
                name="flash_loop" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="flash_loop">{#media_dlg.loop}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flash_menu" \
                name="flash_menu" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="flash_menu">{#media_dlg.menu}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flash_swliveconnect" \
                name="flash_swliveconnect" onchange="generatePreview();" /></td>
-										<td><label for="flash_swliveconnect">{#media_dlg.liveconnect}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-					</table>
-
-					<table>
-						<tr>
-							<td><label for="flash_base">{#media_dlg.base}</label></td>
-							<td><input type="text" id="flash_base" name="flash_base" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="flash_flashvars">{#media_dlg.flashvars}</label></td>
-							<td><input type="text" id="flash_flashvars" name="flash_flashvars" \
                onchange="generatePreview();" /></td>
-						</tr>
-					</table>
-				</fieldset>
-
-				<fieldset id="flv_options">
-					<legend>{#media_dlg.flv_options}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0">
-						<tr>
-							<td><label for="flv_scalemode">{#media_dlg.flv_scalemode}</label></td>
-							<td>
-								<select id="flv_scalemode" name="flv_scalemode" \
                onchange="generatePreview();">
-									<option value="">{#not_set}</option> 
-									<option value="none">none</option>
-									<option value="double">double</option>
-									<option value="full">full</option>
-								</select>
-							</td>
-
-							<td><label for="flv_buffer">{#media_dlg.flv_buffer}</label></td>
-							<td><input type="text" id="flv_buffer" name="flv_buffer" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="flv_startimage">{#media_dlg.flv_startimage}</label></td>
-							<td><input type="text" id="flv_startimage" name="flv_startimage" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="flv_starttime">{#media_dlg.flv_starttime}</label></td>
-							<td><input type="text" id="flv_starttime" name="flv_starttime" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="flv_defaultvolume">{#media_dlg.flv_defaultvolume}</label></td>
                
-							<td><input type="text" id="flv_defaultvolume" name="flv_defaultvolume" \
                onchange="generatePreview();" /></td>
-
-
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flv_hiddengui" \
                name="flv_hiddengui" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="flv_hiddengui">{#media_dlg.flv_hiddengui}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flv_autostart" \
                name="flv_autostart" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="flv_autostart">{#media_dlg.flv_autostart}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flv_loop" name="flv_loop" \
                checked="checked" onchange="generatePreview();" /></td>
-										<td><label for="flv_loop">{#media_dlg.flv_loop}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flv_showscalemodes" \
                name="flv_showscalemodes" onchange="generatePreview();" /></td>
-										<td><label \
                for="flv_showscalemodes">{#media_dlg.flv_showscalemodes}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flv_smoothvideo" \
name="flash_flv_flv_smoothvideosmoothvideo" checked="checked" \
                onchange="generatePreview();" /></td>
-										<td><label for="flv_smoothvideo">{#media_dlg.flv_smoothvideo}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="flv_jscallback" \
                name="flv_jscallback" onchange="generatePreview();" /></td>
-										<td><label for="flv_jscallback">{#media_dlg.flv_jscallback}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-					</table>
-				</fieldset>
-
-				<fieldset id="qt_options">
-					<legend>{#media_dlg.qt_options}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0">
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_loop" name="qt_loop" \
                onchange="generatePreview();" /></td>
-										<td><label for="qt_loop">{#media_dlg.loop}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_autoplay" \
                name="qt_autoplay" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="qt_autoplay">{#media_dlg.play}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_cache" name="qt_cache" \
                onchange="generatePreview();" /></td>
-										<td><label for="qt_cache">{#media_dlg.cache}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_controller" \
                name="qt_controller" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="qt_controller">{#media_dlg.controller}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_correction" \
                name="qt_correction" onchange="generatePreview();" /></td>
-										<td><label for="qt_correction">{#media_dlg.correction}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_enablejavascript" \
                name="qt_enablejavascript" onchange="generatePreview();" /></td>
-										<td><label \
                for="qt_enablejavascript">{#media_dlg.enablejavascript}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_kioskmode" \
                name="qt_kioskmode" onchange="generatePreview();" /></td>
-										<td><label for="qt_kioskmode">{#media_dlg.kioskmode}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_autohref" \
                name="qt_autohref" onchange="generatePreview();" /></td>
-										<td><label for="qt_autohref">{#media_dlg.autohref}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_playeveryframe" \
                name="qt_playeveryframe" onchange="generatePreview();" /></td>
-										<td><label \
                for="qt_playeveryframe">{#media_dlg.playeveryframe}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="qt_targetcache" \
                name="qt_targetcache" onchange="generatePreview();" /></td>
-										<td><label for="qt_targetcache">{#media_dlg.targetcache}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td><label for="qt_scale">{#media_dlg.scale}</label></td>
-							<td><select id="qt_scale" name="qt_scale" class="mceEditableSelect" \
                onchange="generatePreview();">
-									<option value="">{#not_set}</option> 
-									<option value="tofit">tofit</option>
-									<option value="aspect">aspect</option>
-								</select>
-							</td>
-
-							<td colspan="2">&nbsp;</td>
-						</tr>
-
-						<tr>
-							<td><label for="qt_starttime">{#media_dlg.starttime}</label></td>
-							<td><input type="text" id="qt_starttime" name="qt_starttime" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="qt_endtime">{#media_dlg.endtime}</label></td>
-							<td><input type="text" id="qt_endtime" name="qt_endtime" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="qt_target">{#media_dlg.target}</label></td>
-							<td><input type="text" id="qt_target" name="qt_target" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="qt_href">{#media_dlg.href}</label></td>
-							<td><input type="text" id="qt_href" name="qt_href" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="qt_qtsrcchokespeed">{#media_dlg.qtsrcchokespeed}</label></td>
-							<td><input type="text" id="qt_qtsrcchokespeed" name="qt_qtsrcchokespeed" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="qt_volume">{#media_dlg.volume}</label></td>
-							<td><input type="text" id="qt_volume" name="qt_volume" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="qt_qtsrc">{#media_dlg.qtsrc}</label></td>
-							<td colspan="4">
-							<table border="0" cellspacing="0" cellpadding="0">
-								  <tr>
-									<td><input type="text" id="qt_qtsrc" name="qt_qtsrc" \
                onchange="generatePreview();" /></td>
-									<td id="qtsrcfilebrowsercontainer">&nbsp;</td>
-								  </tr>
-							</table>
-							</td>
-						</tr>
-					</table>
-				</fieldset>
-
-				<fieldset id="wmp_options">
-					<legend>{#media_dlg.wmp_options}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0">
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_autostart" \
                name="wmp_autostart" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="wmp_autostart">{#media_dlg.autostart}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_enabled" \
                name="wmp_enabled" onchange="generatePreview();" /></td>
-										<td><label for="wmp_enabled">{#media_dlg.enabled}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_enablecontextmenu" \
                name="wmp_enablecontextmenu" checked="checked" \
                onchange="generatePreview();" /></td>
-										<td><label for="wmp_enablecontextmenu">{#media_dlg.menu}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_fullscreen" \
                name="wmp_fullscreen" onchange="generatePreview();" /></td>
-										<td><label for="wmp_fullscreen">{#media_dlg.fullscreen}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_invokeurls" \
                name="wmp_invokeurls" checked="checked" onchange="generatePreview();" \
                /></td>
-										<td><label for="wmp_invokeurls">{#media_dlg.invokeurls}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_mute" name="wmp_mute" \
                onchange="generatePreview();" /></td>
-										<td><label for="wmp_mute">{#media_dlg.mute}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_stretchtofit" \
                name="wmp_stretchtofit" onchange="generatePreview();" /></td>
-										<td><label for="wmp_stretchtofit">{#media_dlg.stretchtofit}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="wmp_windowlessvideo" \
                name="wmp_windowlessvideo" onchange="generatePreview();" /></td>
-										<td><label \
                for="wmp_windowlessvideo">{#media_dlg.windowlessvideo}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td><label for="wmp_balance">{#media_dlg.balance}</label></td>
-							<td><input type="text" id="wmp_balance" name="wmp_balance" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="wmp_baseurl">{#media_dlg.baseurl}</label></td>
-							<td><input type="text" id="wmp_baseurl" name="wmp_baseurl" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="wmp_captioningid">{#media_dlg.captioningid}</label></td>
-							<td><input type="text" id="wmp_captioningid" name="wmp_captioningid" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="wmp_currentmarker">{#media_dlg.currentmarker}</label></td>
-							<td><input type="text" id="wmp_currentmarker" name="wmp_currentmarker" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="wmp_currentposition">{#media_dlg.currentposition}</label></td>
                
-							<td><input type="text" id="wmp_currentposition" name="wmp_currentposition" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="wmp_defaultframe">{#media_dlg.defaultframe}</label></td>
-							<td><input type="text" id="wmp_defaultframe" name="wmp_defaultframe" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="wmp_playcount">{#media_dlg.playcount}</label></td>
-							<td><input type="text" id="wmp_playcount" name="wmp_playcount" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="wmp_rate">{#media_dlg.rate}</label></td>
-							<td><input type="text" id="wmp_rate" name="wmp_rate" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="wmp_uimode">{#media_dlg.uimode}</label></td>
-							<td><input type="text" id="wmp_uimode" name="wmp_uimode" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="wmp_volume">{#media_dlg.volume}</label></td>
-							<td><input type="text" id="wmp_volume" name="wmp_volume" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-					</table>
-				</fieldset>
-
-				<fieldset id="rmp_options">
-					<legend>{#media_dlg.rmp_options}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0">
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_autostart" \
                name="rmp_autostart" onchange="generatePreview();" /></td>
-										<td><label for="rmp_autostart">{#media_dlg.autostart}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_loop" name="rmp_loop" \
                onchange="generatePreview();" /></td>
-										<td><label for="rmp_loop">{#media_dlg.loop}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_autogotourl" \
                name="rmp_autogotourl" checked="checked" \
                onchange="generatePreview();" /></td>
-										<td><label for="rmp_autogotourl">{#media_dlg.autogotourl}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_center" \
                name="rmp_center" onchange="generatePreview();" /></td>
-										<td><label for="rmp_center">{#media_dlg.center}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_imagestatus" \
                name="rmp_imagestatus" checked="checked" \
                onchange="generatePreview();" /></td>
-										<td><label for="rmp_imagestatus">{#media_dlg.imagestatus}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_maintainaspect" \
                name="rmp_maintainaspect" onchange="generatePreview();" /></td>
-										<td><label \
                for="rmp_maintainaspect">{#media_dlg.maintainaspect}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_nojava" \
                name="rmp_nojava" onchange="generatePreview();" /></td>
-										<td><label for="rmp_nojava">{#media_dlg.nojava}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_prefetch" \
                name="rmp_prefetch" onchange="generatePreview();" /></td>
-										<td><label for="rmp_prefetch">{#media_dlg.prefetch}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="rmp_shuffle" \
                name="rmp_shuffle" onchange="generatePreview();" /></td>
-										<td><label for="rmp_shuffle">{#media_dlg.shuffle}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								&nbsp;
-							</td>
-						</tr>
-
-						<tr>
-							<td><label for="rmp_console">{#media_dlg.console}</label></td>
-							<td><input type="text" id="rmp_console" name="rmp_console" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="rmp_controls">{#media_dlg.controls}</label></td>
-							<td><input type="text" id="rmp_controls" name="rmp_controls" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="rmp_numloop">{#media_dlg.numloop}</label></td>
-							<td><input type="text" id="rmp_numloop" name="rmp_numloop" \
                onchange="generatePreview();" /></td>
-
-							<td><label for="rmp_scriptcallbacks">{#media_dlg.scriptcallbacks}</label></td>
                
-							<td><input type="text" id="rmp_scriptcallbacks" name="rmp_scriptcallbacks" \
                onchange="generatePreview();" /></td>
-						</tr>
-					</table>
-				</fieldset>
-
-				<fieldset id="shockwave_options">
-					<legend>{#media_dlg.shockwave_options}</legend>
-
-					<table border="0" cellpadding="4" cellspacing="0">
-						<tr>
-							<td><label for="shockwave_swstretchstyle">{#media_dlg.swstretchstyle}</label></td>
                
-							<td>
-								<select id="shockwave_swstretchstyle" name="shockwave_swstretchstyle" \
                onchange="generatePreview();">
-									<option value="none">{#not_set}</option>
-									<option value="meet">Meet</option>
-									<option value="fill">Fill</option>
-									<option value="stage">Stage</option>
-								</select>
-							</td>
-
-							<td><label for="shockwave_swvolume">{#media_dlg.volume}</label></td>
-							<td><input type="text" id="shockwave_swvolume" name="shockwave_swvolume" \
                onchange="generatePreview();" /></td>
-						</tr>
-
-						<tr>
-							<td><label for="shockwave_swstretchhalign">{#media_dlg.swstretchhalign}</label></td>
                
-							<td>
-								<select id="shockwave_swstretchhalign" name="shockwave_swstretchhalign" \
                onchange="generatePreview();">
-									<option value="none">{#not_set}</option>
-									<option value="left">{#media_dlg.align_left}</option>
-									<option value="center">{#media_dlg.align_center}</option>
-									<option value="right">{#media_dlg.align_right}</option>
-								</select>
-							</td>
-
-							<td><label for="shockwave_swstretchvalign">{#media_dlg.swstretchvalign}</label></td>
                
-							<td>
-								<select id="shockwave_swstretchvalign" name="shockwave_swstretchvalign" \
                onchange="generatePreview();">
-									<option value="none">{#not_set}</option>
-									<option value="meet">Meet</option>
-									<option value="fill">Fill</option>
-									<option value="stage">Stage</option>
-								</select>
-							</td>
-						</tr>
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="shockwave_autostart" \
                name="shockwave_autostart" onchange="generatePreview();" \
                checked="checked" /></td>
-										<td><label for="shockwave_autostart">{#media_dlg.autostart}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="shockwave_sound" \
                name="shockwave_sound" onchange="generatePreview();" \
                checked="checked" /></td>
-										<td><label for="shockwave_sound">{#media_dlg.sound}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-
-
-						<tr>
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="shockwave_swliveconnect" \
                name="shockwave_swliveconnect" onchange="generatePreview();" /></td>
-										<td><label \
                for="shockwave_swliveconnect">{#media_dlg.liveconnect}</label></td>
-									</tr>
-								</table>
-							</td>
-
-							<td colspan="2">
-								<table border="0" cellpadding="0" cellspacing="0">
-									<tr>
-										<td><input type="checkbox" class="checkbox" id="shockwave_progress" \
                name="shockwave_progress" onchange="generatePreview();" \
                checked="checked" /></td>
-										<td><label for="shockwave_progress">{#media_dlg.progress}</label></td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-					</table>
-				</fieldset>
-			</div>
-		</div>
-
-		<div class="mceActionPanel">
-			<div style="float: left">
-				<input type="button" id="cancel" name="cancel" value="{#cancel}" \
                onclick="tinyMCEPopup.close();" />
-			</div>
-
-			<div style="float: right">
-				<input type="submit" id="insert" name="insert" value="{#insert}" />
-			</div>
-		</div>
-	</form>
-</body>
-</html>
diff --git a/wp-includes/js/tinymce/plugins/safari/blank.htm \
b/wp-includes/js/tinymce/plugins/safari/blank.htm deleted file mode 100644
index 266808c..0000000
--- a/wp-includes/js/tinymce/plugins/safari/blank.htm
+++ /dev/null
@@ -1 +0,0 @@
-<!-- WebKit -->
\ No newline at end of file
diff --git a/wp-includes/js/tinymce/plugins/safari/editor_plugin.js \
b/wp-includes/js/tinymce/plugins/safari/editor_plugin.js deleted file mode 100644
index 794477c..0000000
--- a/wp-includes/js/tinymce/plugins/safari/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){var a=tinymce.dom.Event,c=tinymce.grep,d=tinymce.each,b=tinymce.inArray;function \
e(j,i,h){var g,k;g=j.createTreeWalker(i,NodeFilter.SHOW_ALL,null,false);while(k=g.nextNode()){if(h){if(!h(k)){return \
false}}if(k.nodeType==3&&k.nodeValue&&/[^\s\u00a0]+/.test(k.nodeValue)){return \
false}if(k.nodeType==1&&/^(HR|IMG|TABLE)$/.test(k.nodeName)){return false}}return \
true}tinymce.create("tinymce.plugins.Safari",{init:function(f){var \
g=this,h;if(!tinymce.isWebKit){return}g.editor=f;g.webKitFontSizes=["x-small","small", \
"medium","large","x-large","xx-large","-webkit-xxx-large"];g.namedFontSizes=["xx-small \
","x-small","small","medium","large","x-large","xx-large"];f.addCommand("CreateLink",function(k,j){var \
m=f.selection.getNode(),l=f.dom,i;if(m&&(/^(left|right)$/i.test(l.getStyle(m,"float",1 \
))||/^(left|right)$/i.test(l.getAttrib(m,"align")))){i=l.create("a",{href:j},m.cloneNo \
de());m.parentNode.replaceChild(i,m);f.selection.select(i)}else{f.getDoc().execCommand("CreateLink",false,j)}});f.onKeyUp.add(function(j,o){var \
l,i,m,p,k;if(o.keyCode==46||o.keyCode==8){i=j.getBody();l=i.innerHTML;k=j.selection;if \
(i.childNodes.length==1&&!/<(img|hr)/.test(l)&&tinymce.trim(l.replace(/<[^>]+>/g,"")).length==0){j.setContent('<p><br \
mce_bogus="1" /></p>',{format:"raw"});p=i.firstChild;m=k.getRng();m.setStart(p,0);m.setEnd(p,0);k.setRng(m)}}});f.addCommand("FormatBlock",function(j,i){var \
l=f.dom,k=l.getParent(f.selection.getNode(),l.isBlock);if(k){l.replace(l.create(i),k,1 \
)}else{f.getDoc().execCommand("FormatBlock",false,i)}});f.addCommand("mceInsertContent \
",function(j,i){f.getDoc().execCommand("InsertText",false,"mce_marker");f.getBody().innerHTML=f.getBody().innerHTML.replace(/mce_marker/g,f.dom.processHTML(i)+'<span \
id="_mce_tmp">XX</span>');f.selection.select(f.dom.get("_mce_tmp"));f.getDoc().execCommand("Delete",false," \
")});f.onKeyPress.add(function(o,p){var \
q,v,r,l,j,k,i,u,m,t,s;if(p.keyCode==13){i=o.selection;q=i.getNode();if(p.shiftKey||o.s \
ettings.force_br_newlines&&q.nodeName!="LI"){g._insertBR(o);a.cancel(p)}if(v=h.getPare \
nt(q,"LI")){r=h.getParent(v,"OL,UL");u=o.getDoc();s=h.create("p");h.add(s,"br",{mce_bo \
gus:"1"});if(e(u,v)){if(k=h.getParent(r.parentNode,"LI,OL,UL")){return}k=h.getParent(r \
,"p,h1,h2,h3,h4,h5,h6,div")||r;l=u.createRange();l.setStartBefore(k);l.setEndBefore(v) \
;j=u.createRange();j.setStartAfter(v);j.setEndAfter(k);m=l.cloneContents();t=j.cloneCo \
ntents();if(!e(u,t)){h.insertAfter(t,k)}h.insertAfter(s,k);if(!e(u,m)){h.insertAfter(m \
,k)}h.remove(k);k=s.firstChild;l=u.createRange();l.setStartBefore(k);l.setEndBefore(k);i.setRng(l);return \
a.cancel(p)}}}});f.onExecCommand.add(function(i,k){var \
j,m,n,l;if(k=="InsertUnorderedList"||k=="InsertOrderedList"){j=i.selection;m=i.dom;if( \
n=m.getParent(j.getNode(),function(o){return/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName \
)})){l=j.getBookmark();m.remove(n,1);j.moveToBookmark(l)}}});f.onClick.add(function(i, \
j){j=j.target;if(j.nodeName=="IMG"){g.selElm=j;i.selection.select(j)}else{g.selElm=nul \
l}});f.onInit.add(function(){g._fixWebKitSpans()});f.onSetContent.add(function(){h=f.d \
om;d(["strong","b","em","u","strike","sub","sup","a"],function(i){d(c(h.select(i)).reverse(),function(l){var \
k=l.nodeName.toLowerCase(),j;if(k=="a"){if(l.name){h.replace(h.create("img",{mce_name: \
"a",name:l.name,"class":"mceItemAnchor"}),l)}return}switch(k){case"b":case"strong":if(k=="b"){k="strong"}j="font-weight: \
bold;";break;case"em":j="font-style: italic;";break;case"u":j="text-decoration: \
underline;";break;case"sub":j="vertical-align: \
sub;";break;case"sup":j="vertical-align: \
super;";break;case"strike":j="text-decoration: \
line-through;";break}h.replace(h.create("span",{mce_name:k,style:j,"class":"Apple-styl \
e-span"}),l,1)})})});f.onPreProcess.add(function(i,j){h=i.dom;d(c(j.node.getElementsByTagName("span")).reverse(),function(m){var \
k,l;if(j.get){if(h.hasClass(m,"Apple-style-span")){l=m.style.backgroundColor;switch(h. \
getAttrib(m,"mce_name")){case"font":if(!i.settings.convert_fonts_to_spans){h.setAttrib \
(m,"style","")}break;case"strong":case"em":case"sub":case"sup":h.setAttrib(m,"style"," \
");break;case"strike":case"u":if(!i.settings.inline_styles){h.setAttrib(m,"style","")} \
else{h.setAttrib(m,"mce_name","")}break;default:if(!i.settings.inline_styles){h.setAtt \
rib(m,"style","")}}if(l){m.style.backgroundColor=l}}}if(h.hasClass(m,"mceItemRemoved") \
){h.remove(m,1)}})});f.onPostProcess.add(function(i,j){j.content=j.content.replace(/<br \
\/><\/(h[1-6]|div|p|address|pre)>/g,"</$1>");j.content=j.content.replace(/ \
id=\"undefined\"/g,"")})},getInfo:function(){return{longname:"Safari \
compatibility",author:"Moxiecode Systems \
AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index. \
php/TinyMCE:Plugins/safari",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_fixWebKitSpans:function(){var \
g=this,f=g.editor;a.add(f.getDoc(),"DOMNodeInserted",function(h){h=h.target;if(h&&h.nodeType==1){g._fixAppleSpan(h)}})},_fixAppleSpan:function(l){var \
g=this.editor,m=g.dom,i=this.webKitFontSizes,f=this.namedFontSizes,j=g.settings,h,k;if \
(m.getAttrib(l,"mce_fixed")){return}if(l.nodeName=="SPAN"&&l.className=="Apple-style-s \
pan"){h=l.style;if(!j.convert_fonts_to_spans){if(h.fontSize){m.setAttrib(l,"mce_name", \
"font");m.setAttrib(l,"size",b(i,h.fontSize)+1)}if(h.fontFamily){m.setAttrib(l,"mce_na \
me","font");m.setAttrib(l,"face",h.fontFamily)}if(h.color){m.setAttrib(l,"mce_name","f \
ont");m.setAttrib(l,"color",m.toHex(h.color))}if(h.backgroundColor){m.setAttrib(l,"mce \
_name","font");m.setStyle(l,"background-color",h.backgroundColor)}}else{if(h.fontSize) \
{m.setStyle(l,"fontSize",f[b(i,h.fontSize)])}}if(h.fontWeight=="bold"){m.setAttrib(l," \
mce_name","strong")}if(h.fontStyle=="italic"){m.setAttrib(l,"mce_name","em")}if(h.text \
Decoration=="underline"){m.setAttrib(l,"mce_name","u")}if(h.textDecoration=="line-thro \
ugh"){m.setAttrib(l,"mce_name","strike")}if(h.verticalAlign=="super"){m.setAttrib(l,"m \
ce_name","sup")}if(h.verticalAlign=="sub"){m.setAttrib(l,"mce_name","sub")}m.setAttrib(l,"mce_fixed","1")}},_insertBR:function(f){var \
j=f.dom,h=f.selection,i=h.getRng(),g;i.insertNode(g=j.create("br"));i.setStartAfter(g) \
;i.setEndAfter(g);h.setRng(i);if(h.getSel().focusNode==g.previousSibling){h.select(j.i \
nsertAfter(j.doc.createTextNode("\u00a0"),g));h.collapse(1)}f.getWin().scrollTo(0,j.ge \
tPos(h.getRng().startContainer).y)}});tinymce.PluginManager.add("safari",tinymce.plugins.Safari)})();
 \ No newline at end of file


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic