var gallery

var list_down = false

var current_image
var total_images

$(function(){
		   

		/*
jQuery('#navigation').accordion({
			active: false,
			header: '.head',
			navigation: true,
			event: 'click',
			fillSpace: false,
			autoheight: false,
			animated: 'easeslide'
		});
*/

	//Hide the Sub Menus
	$(".sub").hide()
	
	//Project head slide
	$(".head").bind("click", function(){
	
		$(this).next().slideDown()
		
		//add the selected class
		$(".selected").next().slideUp()
		$(".selected").removeClass("selected")
		$(this).addClass("selected")
		
		return false
	
	})
	

	$("#navigation a").bind("click", function(){
		new_img = $(this).attr("href")
				
		$("#main_img").fadeOut("slow", function(){
			$("#main_img").attr({
				src: new_img
			})
		
			$("#main_img").fadeIn("slow")	;
		})
	
	})
	
	$("#image-transition a").bind("click", function(){
	
		$('.current_image').removeClass('current_image')
		$(this).addClass('current_image')
		
		new_img = $(this).attr("href")
		
		$("#main_img").fadeOut("slow", function(){
			$("#main_img").attr({
				src: new_img
			})
		
			$("#main_img").fadeIn("slow")	;
		})
		return false
	})
	
	$("#main_img").bind("click", function(){
	
		$('.current_image').next().click()
	
	})
	
	
	
	/* Project Rollover
	***************************/
	$("#project_link").mouseover(function(){
	
		text = $(this).text()
		title = $(this).attr("title")
		
		$(this).text(title)
		$(this).attr({
			title: text
		})
		
	
	})
	
	$("#project_link").mouseout(function(){
	
		text = $(this).text()
		title = $(this).attr("title")
		
		$(this).text(title)
		$(this).attr({
			title: text
		})
		
	
	})
	
	
	
})