/**
 * Javascript for Default Theme
 */
$(document).ready(function(){
    $("ul.sf-menu").supersubs({
        minWidth:    12,                                // minimum width of sub-menus in em units
        maxWidth:    27,                                // maximum width of sub-menus in em units
        extraWidth:  1                                  // extra width can ensure lines don't sometimes turn over
    }).superfish({
        delay:       400,                               // delay on mouseout
        animation:   {opacity:'show',height:'show'},    // fade-in and slide-down animation
        speed:       'fast',                            // faster animation speed
        autoArrows:  false,                             // disable generation of arrow mark-up
        dropShadows: false                              // disable drop shadows
    });
});
/* Custom functions to show PDF's in a pop box */
function openPopUpSized(url, title)
           {
              var w;
              w=window.open(url, "popup", "left="+(screen.width/2) + ",top=0,height="+((screen.height)-70)+",width="+((screen.width/2)-10)+",resizable=yes,scrollbars=yes");
              w.focus();
           }
function openPopUpFull(url, title)
           {
              var w;
              w=window.open(url, "pdfpopup", "left=0,top=0,height=" + (screen.height-100) + ",width=" + (screen.width-10) + " resizable=yes,scrollbars=yes");
              w.focus();
           }
function openPopUp(url)
           {
              var w;
              w=window.open(url, "_blank");
              w.focus();
           }
