function openMdl(pageType){
    switch(pageType){
    case "photos":
            var xsrc = arguments[1].getElementsByTagName("IMG")[0].src;
                xsrc = xsrc.replace("type=small", "type=big")

            var html = "";
                html = "<p class=pointer onclick=offlightbox();><img width=640 height=480 src=" + xsrc + "></p>";
                onLightbox(html, 640, 480, "no");

    break;
    case "map":
            var html = "";
                html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=640 height=480 scrolling=no src=/scripts/html/map/></iframe>";
                onLightbox(html, 640, 480);
    break;
    case "forum":
            var html = "";
                html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=640 height=480 scrolling=no src=http://www.smartinternetmerchants.com/scripts/forum/?q=miaworld.org></iframe>";
                onLightbox(html, 640, 480, "no");
    break;
    case "calendar":
            var html = "";
                html = "<iframe frameborder=0 marginwidth=0 marginheight=0 width=640 height=480 scrolling=no src=/scripts/html/calendar/></iframe>";
                onLightbox(html, 640, 480);
    break;
    case "news":
            var html = "";
                html = "<embed type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer quality=high play=true loop=true scale=showall wmode=opaque devicefont=false menu=false allowfullscreen=true allowscriptaccess=always mode=list height=650 width=100% src=http://d.scribd.com/ScribdViewer.swf?document_id=" + arguments[1] +"></embed>";
                getObject("DIV", "divContent").innerHTML = html;
    break;
    }
}

function loadHeight(){
var lh = jQuery(".left")[0].clientHeight;
var ih = jQuery(".info")[0].clientHeight;
    jQuery(".left")[0].style.height = ((lh>ih)?lh:ih);
}