//sIFR implementation
function pageScripts(){
var Avianbold= {  src: DNN_skinPath + 'Avianbold.swf' };
sIFR.activate(Avianbold);
sIFR.replace(Avianbold, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Avianbold.swf', 
  css: [ '.sIFR-root {color:#811327;font-size:18px; font-weight:bold;}'  ]
});
}

jQuery(document).ready(function ($)
{

    /////////////////////////////////////////////
    //      [START Submenu Animations]
    /////////////////////////////////////////////

    /*
        Setup the submenus:

        For jQuery to get the correct Y coord, the element cannot be set to 'display:none'.
        So we 'show' it, animate it using relative values (i.e. +=) and then hide it again.
    */
    // NOTE: assumes only one submenu level
    var sub = $("ul > li > ul", "#Navigation").css("opacity", 0).show(),
        topPos = parseInt(sub.css('top')),
        bottomPos = topPos + 200,
        fHoverOn = function()
        {
            // ('this' context is first level LI element)

            // If there is a nested UL, it needs to be displayed
            $("ul", this).stop(true, true).show().animate(
            {
                // Animated Properites //
                top: topPos + "px",
                opacity: 1
            },
            {
                // Animation Options //
                duration: 500,
                specialEasing:
                {
                    top: 'easeOutExpo',
                    opacity: 'swing'
                }
            });
        },
        fHoverOff = function()
        {
            // ('this' context is first level LI element)

            $(this).unbind("mouseenter");
            // If there is a nested UL, it needs to hide
            $("ul", this).stop(true, true).animate(
            {
                // Animated Properites //
                top: bottomPos + "px",
                opacity: 0
            },
            {
                // Animation Options //
                duration: 250,
                specialEasing:
                {
                    top: 'easeOutExpo',
                    opacity: 'swing'
                },
                complete: function ()
                {
                    $(this).hide();
                    $(this).parent().bind("mouseenter", fHoverOn);
                }
            });
        };

    // Move the submenu to its 'starting' position and hide it again
    // (duration is zero so happens immediately)
    sub.animate({ top: bottomPos+"px" }, 0).hide();


    // Submenus exist as a UL next to an anchor element. Bind our 
    //  event handlers
    $("ul > li", "#Navigation").bind
    ({
        mouseenter: fHoverOn,
        mouseleave: fHoverOff
    });

    /////////////////////////////////////////////
    //      [END Submenu Animations]
    /////////////////////////////////////////////


    /* remove box from links */
    $("a").focus(function ()
    {
        this.blur();
    });

    $(".LinkIcon").rollover();

    menuImage1 = new Image();
    menuImage1.src = DNN_skinPath + "images/patientlogin_on.jpg";
    menuImage2 = new Image();
    menuImage2.src = DNN_skinPath + "images/contactus_on.jpg";
    menuImage3 = new Image();
    menuImage3.src = DNN_skinPath + "images/officeinfo_on.jpg";
    menuImage4 = new Image();
    menuImage4.src = DNN_skinPath + "images/patientinfo_on.jpg";
    menuImage5 = new Image();
    menuImage5.src = DNN_skinPath + "images/treatment_on.jpg";
    menuImage6 = new Image();
    menuImage6.src = DNN_skinPath + "images/fun_on.jpg";
    menuImage7 = new Image();
    menuImage7.src = DNN_skinPath + "images/officeinfoline.jpg";
    menuImage8 = new Image();
    menuImage8.src = DNN_skinPath + "images/patientinfoline.jpg";
    menuImage9 = new Image();
    menuImage9.src = DNN_skinPath + "images/treatmentline.jpg";
    menuImage10 = new Image();
    menuImage10.src = DNN_skinPath + "images/funzoneline.jpg";

});

