﻿//event loader for Site Nav Menu

    //var sessionAddress = "http://mmsmdev:8090/development/mcarthur/sites/Web/"

        window.addEvent('load', function () // wait until the page is loaded
        {
	    $('nav').getChildren().each(function(el){ // get the elements in the #nav div
		    var effect = el.effect('font-size',  // assign font-size effect to a variable
		    { // pass in additional options
			    duration: 400,
    			transition: Fx.Transitions.Expo.easeOut,
	    		wait: false
		    });
    		el.orgSize = el.getStyle('font-size').toInt();  // save the original font-size size
	    	el.addEvents(  // add events to the links
		    {
			    'mouseover': function () // on mouseover make the font size bigger
    			{
	    			effect.start(el.orgSize * 2);
		    	},
			    'mouseout': function () // on mouseout return font to original size
    			{
	    			effect.start(el.orgSize);
    			}
	    	});
	    });
        });
