            function access_denied()
            {
                alert("You do not have permission to access this module. Please contact your Project Manager for further details.");
            }

            

            function close_pop_up()
            {
                document.getElementById(active_sc_info).style.display = "none";
            }

            function mainmenu(){
                $("#navigate_menu").css("display","none");
                $("#products a").hover(function(){
                    //document.getElementById("navigate_menu").style.display = "block";
                    $("#navigate_menu").css("display","block");
                    $("#navigate_menu li").hover(function(){
                        $(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).show(400);
                    },function(){
                        $(this).find('ul:first').css({visibility: "hidden"});
                    });
                },function(){
                    $("#navigate_menu").css({display: "none"})
                });
            }
            $(document).ready(function(){
                mainmenu();

            });

            $(function(){$('#menu li:last').css("border","none");});

            $(function()
            { $('#gallery a').lightBox();
            });

            	   function initMenu() {
   $('#menu li p').hide();
   $('#menu li:first p').show(function(){
   $(this).parent().css("background-color", "#8a9598")
   });
     $('#menu li a').click(
   function() {
   var checkElement = $(this).next();
   if((checkElement.is('p')) && (checkElement.is(':visible'))) {
   return false;
   }
   if((checkElement.is('p')) && (!checkElement.is(':visible'))) {
   $('#menu p:visible').slideUp('normal',function(){
   $(this).parent().css("background-color", "#a1c8d2");
});
   checkElement.slideDown('normal');
   checkElement.parent().css("background-color","#8a9598");
	//$("#menu :last-child").corner("bottom 7px");
	//$("#menu").corner("bottom 7px");
   
   return false;
   }
   }
   );
   }
   $(document).ready(function() {initMenu();});
$(document).ready(function(){	
	$(".gallery").easySlider();
	$(".top_msg").corner("7px");
	$(".right_msg").corner("top 7px");
	$("#menu").corner("bottom 7px");
	//$("#menu li:first-child").corner("top 7px");
	$("#menu li:last-child").corner("bottom 7px");
	$(".sf-menu").superfish();
});
            jQuery(document).ready(function()
            {
                jQuery('#mycarousel').jcarousel();
                var carouselImg = new Image();
                carouselImg.src = $('#gallery_bg ul li:first a').attr('href');
                $('#main_img').addClass('loading');
                $(carouselImg).load(function(){
                    $('#main_img').html('<span></span>');
                    $('#main_img').append(carouselImg);
                });
                $('.gall_wrap .img_title').html($('#gallery_bg ul li:first a').attr('title'));
                $('#gallery_bg ul li a').click(function(event){
                    var link_title = $(this).attr('title');
                    $('#main_img').empty();
                    carouselImg.src = $(this).attr('href');
                    var dim = $(this).next('b').html();
                    var dim = dim.split(',',2);
                    carouselImg.width = dim[0];
                    carouselImg.height = dim[1];

                    $('#main_img').html('<span></span>');
                    $('#main_img').addClass('loading');

                    $(carouselImg).load(function(){
                        $('#main_img').html('<span></span>');
                        $('#main_img').append(carouselImg);
                    });
                    $('.gall_wrap .img_title').html(link_title);
                    event.preventDefault();
                });
            });
            $(function() { $(".lavaLampBottomStyle").lavaLamp({speed: 400 })});
