		// initialise plugins
		jQuery(function(){
			jQuery('ul.sf-menu').superfish({
				autoArrows:    	false,
				dropShadows:   	false,
				speed:			300,
				animation:		{opacity:'show', height:'show', top:38},
				onBeforeShow:	function(){ $(this).css('top',-10); }
			});
		});

	function toggleContactForm() {
		if ($('#contactbutton').attr('src') == 'images/contact_closed.png') {
			$('#contactbutton').attr('src','images/contact_open.gif');
			$('#contact_form').animate({top:'0px'},500);
		} else {
			$('#contactbutton').attr('src','images/contact_closed.png');
			$('#contact_form').animate({top:'-628px'},400);
		}
	}
	

	//top menu item fades
	$(function(){
		$('.sf-menu li li').append('<div class="menuitem_bg"></div>');
		$('.sf-menu li li a').bind('mouseenter',function() {
			$(this).parent().find('.menuitem_bg').fadeIn(150);
		});
		$('.sf-menu li li a').bind('mouseleave',function() {
			$(this).parent().find('.menuitem_bg').fadeOut(75);
		});
	});
	

	//left menu rollover actions
	$(function(){
		$('#left_menu li:not(.active)').bind('mouseenter',function() {
			$(this).stop();
			$(this).animate({'marginLeft':'0px'},250,"easeOutSine");
		});
		$('#left_menu li:not(.active)').bind('mouseleave',function() {
			$(this).stop();
			$(this).animate({'marginLeft':'-16px'},50);
		});
	});
	
	//left menu update
	function updateLeftMenu(categoryId) {
		// reset all left menu items
		$("#left_menu li").removeClass("active");
		$("#left_menu li#cat_"+categoryId).addClass("active");
		$("#left_menu li#cat_"+categoryId).animate({'marginLeft':'0px'},250,"easeOutSine");		
		
		$("#left_menu li:not(.active)").animate({'marginLeft':'-16px'},50);
		
		$('#left_menu li').unbind('mouseenter');
		$('#left_menu li').unbind('mouseleave');
		

		$('#left_menu li:not(.active)').bind('mouseenter',function() {
			$(this).animate({'marginLeft':'0px'},250,"easeOutSine");
		});
		$('#left_menu li:not(.active)').bind('mouseleave',function() {
			$(this).animate({'marginLeft':'-16px'},50);
		});
	}

	function changeGalleryCategory(categoryId) {
//		updateLeftMenu(categoryId);
				
		if(window.work_gallery) window.document["work_gallery"].SetVariable("newCategory", categoryId);
		if(document.work_gallery) document.work_gallery.SetVariable("newCategory", categoryId);		
	}

	function changeProjectTitle(text) {
		$("#projectTitle").html(text);
	}