// JavaScript Document

$(function() {
		$('#middleContentLeft img').animate({
			"opacity": 1
		});
		
		//web 
			$('#middleContentRight a.Web').click(function() {
			$('img.portfolioBorderGraphics, img.portfolioBorderAnimation, img.portfolioBorderPersonal').animate({ "opacity": .2 });
	    });
			$('#middleContentRight a.Web').click(function() {
			$('img.portfolioBorderWeb').animate({ "opacity": 1 });
	    });
		
		//graphics		
			$('#middleContentRight a.Graphics').click(function() {
			$('img.portfolioBorderWeb, img.portfolioBorderAnimation, img.portfolioBorderPersonal').animate({ "opacity": .2 });
		});
			$('#middleContentRight a.Graphics').click(function() {
			$('img.portfolioBorderGraphics').animate({ "opacity": 1 });
	    });
		
		//animation	
			$('#middleContentRight a.Animation').click(function() {
			$('img.portfolioBorderWeb, img.portfolioBorderGraphics, img.portfolioBorderVideo, img.portfolioBorderPersonal').animate({ "opacity": .2 });
		});
			$('#middleContentRight a.Animation').click(function() {
			$('img.portfolioBorderAnimation').animate({ "opacity": 1 });
	    });
			
		//Personal
			$('#middleContentRight a.Personal').click(function() {
			$('img.portfolioBorderWeb, img.portfolioBorderGraphics, img.portfolioBorderAnimation').animate({ "opacity": .2 });
		});
			$('#middleContentRight a.Personal').click(function() {
			$('img.portfolioBorderPersonal').animate({ "opacity": 1 });
	    });
			
		//ALL	
		$('#middleContentRight a.All').click(function() {
			$('#middleContentLeft img').animate({ "opacity": 1 });
	    });
				
	});

// HR wrapper for IE
$(function(){ $("hr").wrap("<div class='hr'></div>"); });





