$(document).ready(function() {
    
    // jQuery lightbox configuration
    //     var lightbox_config = {
    //         overlayBgColor: '#000',
    //         overlayOpacity: 0.8,
    //         imageLoading: '/_js/jquery-lightbox-0.5/lightbox-ico-loading.gif',
    //         imageBtnClose: '/_js/jquery-lightbox-0.5/lightbox-btn-close.gif',
    //         imageBtnPrev: '/_js/jquery-lightbox-0.5/lightbox-btn-prev.gif',
    //         imageBtnNext: '/_js/jquery-lightbox-0.5/lightbox-btn-next.gif',
    //         imageBlank: '/_js/jquery-lightbox-0.5/lightbox-blank.gif',
    //         containerResizeSpeed: 350
    //     };
    // $("#leftcontent a[rel*='lightbox']").lightBox(lightbox_config);
    // $("#centercontent a[rel*='lightbox']").lightBox(lightbox_config);
    // $("#centercontent a[rel*='lightbox']").lightBox(lightbox_config);
    
    
    // clueTip configuration
    $('a.jTip').cluetip({
        width:            500,      // The width of the clueTip
        height:           'auto',   // The height of the clueTip. more info below [1]
        cluezIndex:       9999,       // Sets the z-index style property of the clueTip
        positionBy:       'auto',   // Sets the type of positioning. more info below [2]
        topOffset:        5,       // Number of px to offset clueTip from top of invoking element. more info below [3]
        leftOffset:       5,       // Number of px to offset clueTip from left of invoking element. more info below [4]
        local:            false,    // Whether to use content from the same page for the clueTip's body
                                    // (treats the attribute used for accessing the tip as a jQuery selector,
                                    // but only selects the first element if the selector matches more than one). more info below [5]
        hideLocal:        true,     // If local option is set to true, this determines whether local content
                                    //  to be shown in clueTip should be hidden at its original location
        attribute:        'rel',    // the attribute to be used for fetching the clueTip's body content
        titleAttribute:   'title',  // the attribute to be used for fetching the clueTip's title
        splitTitle:       '',       // A character used to split the title attribute into the clueTip title and divs
                                    // within the clueTip body. more info below [6]
        showTitle:        false,     // show title bar of the clueTip, even if title attribute not set
        cluetipClass:     'jtip',// class added to outermost clueTip div in the form of 'cluetip-' + clueTipClass. more info below [7]
        hoverClass:       '',       // class applied to the invoking element onmouseover and removed onmouseout
        waitImage:        true,     // whether to show a "loading" img, which is set in jquery.cluetip.css
        arrows:           false,    // if true, displays arrow on appropriate side of clueTip. more info below [8]
        dropShadow:       false,     // set to false if you don't want the drop-shadow effect on the clueTip
        dropShadowSteps:  3,        // adjusts the size of the drop shadow
        sticky:           false,    // keep visible until manually closed
        mouseOutClose:    true,    // close when clueTip is moused out
        activation:       'hover',  // set to 'click' to force user to click to show clueTip
        clickThrough:     false,    // if true, and activation is not 'click', then clicking on a clueTipped link will take user to 
                                    // the link's href, even if href and tipAttribute are equal
        tracking:         false,    // if true, clueTip will track mouse movement (experimental)
        delayedClose:     0,        // close clueTip on a timed delay (experimental)
        closePosition:    'top',    // location of close text for sticky cluetips; can be 'top' or 'bottom' or 'title'
        closeText:        '[x]',  // text (or HTML) to to be clicked to close sticky clueTips
        truncate:         0,        // number of characters to truncate clueTip's contents. if 0, no truncation occurs

        // effect and speed for opening clueTips
        fx: {             
            open:       'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn'
            openSpeed:  150
        },

        // function to run just after clueTip is shown.
        onShow:           function(ct, c){$('#cluetip-inner').append('<div style="clear:both;"></div>');}
    });

});


// Mouseover functions.
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

