
			var $j = jQuery.noConflict();
			
			
			$j(document).ready(function()
			{
				/************** START GALLERY SCRIPTS *************/
				$j("#left-bottom-contact-block").hide();
				$j(".item64").hover(
					function ()
					{
						$j(".item64").hide();
						$j("#left-bottom-contact-block").show();
					}
				);
				
				$j("#left-bottom-contact-block").stop(false, false).mouseleave(
					function ()
					{
						$j("#left-bottom-contact-block").hide();
						$j(".item64").show();
					}
				);
				
				$j("#gallery-nav-description-grow").click(function() {
					$j("#gallery-nav-description").animate({
						height: "331px"
					}, 1000);
					$j("#gallery-nav").animate({
						height: "500px"
					}, 1000);
					$j("#gallery-nav-description-grow").hide();
					$j("#gallery-nav-description-shrink").show();
				});
				
				$j("#gallery-nav-description-shrink").click(function() {
					//$j("#gallery-nav-description").fadeOut('fast');
					$j("#gallery-nav").animate({
						height: "169px"
					}, 1000);
					$j("#gallery-nav-description").animate({
						height: "0px"
					}, 1000);
					
					$j("#gallery-nav-description-shrink").hide();
					$j("#gallery-nav-description-grow").show();
				});

				
				
				$j("#button-gallery-nav-close").click(function()
				{
					$j("#button-gallery-nav-close").fadeOut('fast');					
					$j("#gallery-nav").animate(
					{
						height: "25px"
					}, 400 );
					
					$j("#gallery-nav-description").animate({
						height: "0px"
					}, 100);
					$j("#gallery-nav-description-grow").hide();
					$j("#gallery-nav-description-shrink").hide();
					$j("#gallery-nav-title").fadeIn('fast');
					$j(".scrollable").hide();
				});
				
				$j(".scrollable .items div a").click(function()
				{
					return false;
				});
				
				$j("#button-gallery-close").click(function()
				{
					history.back();
					return false;
				});
				
				// initialize scrollable
				$j(".scrollable").scrollable();
				// Hide the left scroll button
				$j('.scrollable .left').hide();
				
				if ($j('.items div').length == 1) // has to be the same value as defined in scrollable config
				{
				    $j('.right').addClass('disabled');
				}
				
				// Put the button back on page when right 'next' arrow clicked
				$j('.scrollable .right').click( function() {
					$j('.scrollable .left').show();
				});
				
				
				$j("#gallery-nav-title").click(function()
				{
					$j(".scrollable").fadeIn('slow');
					$j("#gallery-nav-title").fadeOut('fast');
					$j("#gallery-nav-description-grow").fadeIn('fast');
	
					$j("#gallery-nav").animate(
					{
						height: "169px"
					}, 400 );
					$j("#button-gallery-nav-close").fadeIn('slow');
				});
				
				//vmodha the gallery navigation will now open automatically on page load.
				$j(".scrollable").fadeIn('slow');
				$j("#gallery-nav-title").fadeOut('fast');
				$j("#gallery-nav-description-grow").fadeIn('fast');

				$j("#gallery-nav").animate(
				{
					height: "169px"
				}, 400 );
				$j("#button-gallery-nav-close").fadeIn('slow');
				
				$j(".scrollable .items div a").hover(function()
				{
					/*$j('#content-container').css("background-image", "url(" + this.href + ")");*/
                                        /*$j('#content-container').css({'background-image': "url(" + this.href + ")"},$j(this).fadeIn() );*/
                                        $j('#images-content-container').css("background-image", "url(" + this.href + ")").fadeIn("10000");
				
                                        return false;
				});
				
				/************** END GALLERY SCRIPTS *************/
				
				/* vmodha this is an unused accordian function. For it to work you must 'Always show sub-menu Items' in the menu module.
				
				$j("#right-column-one ul#category-menu li ul").hide();
				$j("#right-column-one ul#category-menu li").stop(true, true).hover(
					function ()
					{
						$j(this).stop(true, true).children("a").css({"background-color" : "#a7965e", "color" : "#000"});
						$j(this).stop(true, true).children("ul").slideDown('fast')
						
					},
					function ()
					{
						$j(this).children("a").css({"background-color" : "transparent", "color" : "#a7965e"});
						$j(this).children("ul").slideUp('slow')
					}
				);
				
				/*
				$(this).parent().children('#menu_work_digital, #menu_work_print, #menu_work_clients').each(function()
				{
					$('.items:not(".' + currentClass + '")').slideUp();
					//alert(currentClass);
					$(".items." + currentClass).slideDown();
					
					if($(this).attr('id') != currentId)
					{
						$(this).slideUp();				
					}
				});
				*/
				

			});

