﻿/* Written by Justin Wehrman
 *
 * $LastChangedDate: 2008-12-3
 */
   
(function($) {
              
    $.GuidePop = function(title,box_width,box_height) {

        if ($.browser.msie) {
            var sHeight = document.body.scrollTop;
        // Non-IE
        } else {
            var sHeight = window.pageYOffset;
        }

        var sTop = sHeight - (box_height / 2) + 245 + 'px';
        var modWinHeight = box_height + 18 + 'px';
        var IG_Content = $('#' + title).html();
        $('#GuidePop').append("<div id='modelWin' style='width: "+ box_width +"px; height: "+ modWinHeight +"; top: "+ sTop +";'><div class='close_bar'><div id='close' style='vertical-align:middle'>关闭</div></div><div class='pop_content'>" + IG_Content + "</div></div>");        
        $('#modelWin').show();        
        $('#close').click(function(event) {
            $('#modelWin').remove();
        });    
    };
      
}) (jQuery);