// -------------------------------------------------
// popup image
// -------------------------------------------------

//$(".image-zoom").click(function() {
//    //get url
//    var url = $(this).attr("src");
//    
//    //set popup size
//    var width = $(window).width();
//    var height = $(window).height();
//    //attach popup
//    $("body").append("<div id=\"custom-popup-container\"> </div>");
//    $("#custom-popup-container").html("<div ID=\"popup-image\"  onclick=\"return cu_RemoveCustomPopup();\"  class=\"custom-popup-content\" style=\"width:" + width + "px; height:" + height + "px;left:" + (($(window).width() - width) / 2) + "px;top:" + ($(window).scrollTop() + ($(window).height() - height) / 2) + "px;\">" +
//        "<div class=\"content\"><div class=\"position\"><div class=\"image-position\">" +
//        "<div class=\"header\"><a href=\"#\" onclick=\"return cu_RemoveCustomPopup();\">close</a>&nbsp;</div>" +
//        "<a href=\""+target+"\"><img src=" + url + " border=\"0\" class\"image-box\"/></a>" +
//        "</div></div></div></div>");
//    $("#popup-image .content .position img").load(function() {


//        var h = (height - $("#popup-image .content .position img").height()) / 2 - 20;
//        var w = (width - $("#popup-image .content .position img").width()) / 2;
//        $("#popup-image .content .position").css("top", h + "px");
//        $("#popup-image .content .position").css("left", w + "px");
//        //alert($("#popup-image .content .position img").height() + "h:" + img.offsetWidth + "|" + h + " w:" + img.offsetHeight + "|" + w);
//    });

//});

function cu_RemoveCustomPopup() {
    $(".popup-symposium").remove();
    return false;
}

$(document).ready(function() {
var popup = $(".popup-symposium");

    var xpos = ($(window).width() - popup.width()) / 2;
    var ypos = ($(window).height() - popup.height()) / 2;
    popup.css("top", ypos);
    popup.css("left", xpos);
});