﻿
function FirejQuerySideMenu() {
    $(document).ready(function() {
        $(".SideNavLinkLvl1").hover(function() {
    
            $("div[class='subMenuBlocks']").hide();
            var nextClassName = $(this).next().attr("class");
            if (nextClassName == "subMenuBlocks") {
                $(this).next().show();
            }
        });

    });
}


function FirejQueryActionRollover() {

    /* image popup action */
   
    
    $(".actBtnHome").hover(function() {

        var pos = $(this).position();
        var actBtnId = $(this).attr('id');
        var actRolloverID = actBtnId.replace('actBtnHome', '#actionRollOver');
        

//        $(this).next(".largeImage").css({ 'top': pos.top + 269, left: pos.left + 80 });

        $(actRolloverID)/* Add class of "hover", then stop animation queue buildup*/
		    .animate({
//		        marginTop: '13', 
//		        marginLeft: '0',
//		        top: pos.top,
//		        left: pos.left + 80,
		        //		        width: imageWidth, /* Set new width */
		        //		        height: imageWidth, /* Set new height */
		        opacity: "show"
		    }, 350); /* this value of "200" is the speed of how fast/slow this hover animates */

    }, function() {

        var actBtnId = $(this).attr('id');
        var actRolloverID = actBtnId.replace('actBtnHome', '#actionRollOver');

        $(actRolloverID) /* Remove the "hover" class , then stop animation queue buildup*/
		    .animate({
//		        marginTop: '0', 
//		        marginLeft: '0',
//		        top: pos2.top,
//		        left: pos2.left + 80,
		        //		        width: '100px', /* Set width back to default */
		        //		        height: '100px', /* Set height back to default */
		        opacity: "hide"
		    }, 100);

    });
}
