$(document).ready(function(){
						   
						   
						   
						   
	$(".scroll, .top").click(function(event){
		//prevent the default action for the click event
		event.preventDefault();

		//get the full url - like mysitecom/index.htm#home
		var full_url = this.href;

		//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
		var parts = full_url.split("#");
		var trgt = parts[1];

		//get the top offset of the target anchor
		var target_offset = $("#"+trgt).offset();
		var target_top = target_offset.top;

		//goto that anchor by setting the body scroll top to anchor top
		$('html, body').animate({scrollTop:target_top}, 1000);
	});
	
	
// hyperlinks
	

    $('#SocMedIcons img').each(function() {
            $(this).hover(function() {
                $(this).stop().animate({ opacity: 0.3 }, 500);
            },
           function() {
               $(this).stop().animate({ opacity: 1.0 }, 500);
           });
     });
	






  /*              $.fn.initMenu = function() {
                    return this.each(function(){
                        var theMenu = $(this).get(0);
                        $('.sub-menu', this).hide();
                        $('li.expand > .sub-menu', this).show();
                        $('li.expand > .sub-menu', this).prev().addClass('active');
                        $('li a', this).hover(
                            function(e) {
                                e.stopImmediatePropagation();
                                var theElement = $(this).next();
                                var parent = this.parentNode.parentNode;
                                if($(parent).hasClass('noaccordion')) {
                                    if(theElement[0] === undefined) {
                                        window.location.href = this.href;
                                    }
                                    $(theElement).slideToggle('normal', function() {
                                        if ($(this).is(':visible')) {
                                            $(this).prev().addClass('active');
                                        }
                                        else {
                                            $(this).prev().removeClass('active');
                                        }
                                    });
                                    return false;
                                }
                                else {
                                    if(theElement.hasClass('sub-menu') && theElement.is(':visible')) {
                                        if($(parent).hasClass('collapsible')) {
                                            $('.sub-menu:visible', parent).first().slideUp('normal',
                                            function() {
                                                $(this).prev().removeClass('active');
                                            }
                                        );
                                        return false;
                                    }
                                    return false;
                                }
                                if(theElement.hasClass('sub-menu') && !theElement.is(':visible')) {
                                    $('.sub-menu:visible', parent).first().slideUp('normal', function() {
                                        $(this).prev().removeClass('active');
                                    });
                                    theElement.slideDown('normal', function() {
                                        $(this).prev().addClass('active');
                                    });
                                    return false;
                                }
								
								
								
								
                                if(theElement.hasClass('current-page-ancestor') ) {
                                    $('.sub-menu:visible', parent).first().slideUp('normal', function() {
                                        $(this).prev().removeClass('active');
                                    });
                                    theElement.slideDown('normal', function() {
                                        $(this).prev().addClass('active');
                                    });
                                    return false;
                                }								
								
								
								
								
								
                            }
                        }
                    );
   

                });
                };

                $(document).ready(function() {$('#menu').initMenu();});
*/






   
   
});


