@{
	ViewBag.Title = "Overview";
	Layout = "~/Views/Shared/_WidgetLayout.cshtml";
}
@section header
{
    <script type="text/javascript">
        $(function () {
            $("#unicorn").wijpopup({
                autoHide: true,
                showEffect: 'blind',
                hideEffect: 'blind'
            });
        });

        function popupbeside() {
            $("#unicorn").wijpopup('show', {
                of: $('#TextBox1'),
                my: $('#my_horizontal').val() + ' ' + $('#my_vertical').val(),
                at: $('#at_horizontal').val() + ' ' + $('#at_vertical').val(),
                offset: $('#offset').val(),
                collision: $("#collision_horizontal").val() + ' ' + $("#collision_vertical").val()
            });
        }
    </script>
}
<h2>Overview</h2>

       <div class="main demo">
            <!-- Begin demo markup -->
            <div id="unicorn">
                <img src="http://cdn.wijmo.com/images/unicorn.jpg" alt="Popup Unicorn!" />
            </div>
            <div>
                <input name="TextBox1" type="text" id="TextBox1" />
                <input type="button" id="Button4" onclick="popupbeside();" value="popup" />
            </div>
            <!-- End demo markup -->
            <div class="demo-options">
                <!-- Begin options markup -->
                <div class="options">
                    <div class="option-row">
                        <label>
                            My</label>
                        <select id="my_horizontal">
                            <option value="left">left</option>
                            <option value="center">center</option>
                            <option value="right">right</option>
                        </select>
                        <select id="my_vertical">
                            <option value="top">top</option>
                            <option value="middle">center</option>
                            <option value="bottom">bottom</option>
                        </select>
                    </div>
                    <div class="option-row">
                        <label>
                            At</label>
                        <select id="at_horizontal">
                            <option value="left">left</option>
                            <option value="center">center</option>
                            <option value="right">right</option>
                        </select>
                        <select id="at_vertical">
                            <option value="top">top</option>
                            <option value="middle">center</option>
                            <option value="bottom">bottom</option>
                        </select>
                    </div>
                    <div class="option-row">
                        <label>
                            Offset</label>
                        <input id="offset" type="text" size="15" value="0 0" />
                    </div>
                    <div class="option-row">
                        <label>
                            Collision</label>
                        <select id="collision_horizontal">
                            <option value="flip">flip</option>
                            <option value="fit">fit</option>
                            <option value="none">none</option>
                        </select>
                        <select id="collision_vertical">
                            <option value="flip">flip</option>
                            <option value="fit">fit</option>
                            <option value="none">none</option>
                        </select>
                    </div>
                </div>
                <!-- End options markup -->
            </div>
        </div>
@section description
{
	<p>       
            wijpopup is a tool widget that can be used by other widgets to flexibly display
                or hide an element. wijpopup allows a target element (such as a DIV) to pop up or
                hide at a specified position. The target element is placed in the topmost position
                above other elements, and a transparent FRAME is created automatically beneath the
                element in IE6 (or lower) browser.
	</p>
}