<?php
/*
Plugin Name: System Special and Colors
Plugin URI: http://www.zhuzh.info/
Description: Show System Special and Colors before Floors
Version: 2010.10.24
Author: zhuzh
Author URI: http://www.zhuzh.info
License:
*/
function show_special_and_colors($content){
    $dir = get_bloginfo("wpurl") . "/wp-content/plugins/sepcials-and-colors";
    $c = <<<EOF
<div class="species-and-colors">
    <div id="species">
        <h3>SPECIES</h3>
        <div class="intro">
            <p>There are many different hardwood species around the world. The most popular include Red Oak, Maple, Yellow Birch, White Ash, Cherry, Jatoba, Cabreuva, American Cherry, and Walnut.</p>
            <p>Come visit our showroom and speak with our expert sales staff to show you our variety of wood types to help you pick the one that perfectly suits your needs and tastes.</p>
        </div>
        <table border="0" cellspacing="6" cellpadding="3" width="100%">
            <tr>
                <td>
                    <img src="$dir/images/floor_types_scroll_r4_c3.jpg" alt=""/>
                    <p>Red Oak</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r4_c8.jpg" alt=""/>
                    <p>American Cherry </p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r4_c14.jpg" alt=""/>
                    <p>Cabreuva</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r8_c3.jpg" alt=""/>
                    <p>Jatoba</p>
                </td>
            </tr>
            <tr>
                <td>
                    <img src="$dir/images/floor_types_scroll_r8_c8.jpg" alt=""/>
                    <p>Walnut</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r8_c14.jpg" alt=""/>
                    <p>Yellow Birch</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r12_c3.jpg" alt=""/>
                    <p>Maple</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r12_c8.jpg" alt=""/>
                    <p>White Ash</p>
                </td>
            </tr>
            <tr>
                <td>
                    <img src="$dir/images/floor_types_scroll_r12_c14.jpg" alt=""/>
                    <p>Beech</p>
                </td>
                <td class="td_clear"></td>
                <td class="td_clear"></td>
                <td class="td_clear"></td>
            </tr>
        </table>
    </div>
    <div class="sp_bottom"></div>
    <div id="colors">
        <h3>COLORS</h3>
        <div class="intro">
            <p>We have thousands to choose from. Come visit our showroom and speak with our expert sales staff to show you our variety of wood colours and tones to help you pick the one that perfectly suits your needs and tastes.</p>
        </div>
        <table border="0" cellspacing="6" cellpadding="3" width="100%">
            <tr>
                <td>
                    <img src="$dir/images/floor_types_scroll_r18_c3.jpg" alt=""/>
                    <p>Alaska/White</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r18_c8.jpg" alt=""/>
                    <p>Golden</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r18_c14.jpg" alt=""/>
                    <p>Arizona</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r22_c3.jpg" alt=""/>
                    <p>Nevada</p>
                </td>
            </tr>
            <tr>
                <td>
                    <img src="$dir/images/floor_types_scroll_r22_c8.jpg" alt="" />
                    <p>Sierra</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r22_c14.jpg" alt="" />
                    <p>Cognac</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r26_c3.jpg" alt="" />
                    <p>Auburn</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r26_c8.jpg" alt="" />
                    <p>Rich Oak</p>
                </td>
            </tr>
            <tr>
                <td>
                    <img src="$dir/images/floor_types_scroll_r26_c14.jpg" alt="" />
                    <p>Montana</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r30_c8.jpg" alt="" />
                    <p>Bordeaux</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r30_c14.jpg" alt="" />
                    <p>Colorado</p>
                </td>
                <td>
                    <img src="$dir/images/floor_types_scroll_r34_c8.jpg" alt="" />
                    <p>Charcoal</p>
                </td>
            </tr>
        </table>
    </div>
    <div class="sp_bottom"></div>
</div>
EOF;
    return str_replace('[sp_color]', $c, $content);
}

add_filter ( 'the_content', 'show_special_and_colors');