// JavaScript Document



//THUMB NAV SWAP FUNCTION


  function showPane(id) {
  var e,i;
  var PID = "thumbsContainer"; // the id of the parent element
  var p = document.getElementById(PID); // parent element
  // loop through each of the childNodes of the parent element
  for (i=0; i<p.childNodes.length; i++) {
    e = p.childNodes[i];
    if (e.nodeType!=1) continue; // pass over non-element nodes
    if (e.getAttribute("id") == id) {
      e.style.display = "block";
    }
    else {
      e.style.display = "none";
    }
  }
}





//CENTER REVEAL FUNCTIONS







(function($){
	$('head').append('<style type="text/css">.details_centerContainer div {display:none;}</style>');
	$(function(){
		function reveal(det){
			if(det.css('display') === 'block'){return;}
			$('.details_centerContainer div').stop(true, true).not(det).fadeOut('200');
			det.fadeIn(400, fixIEfade);
		}
		var $trigs = $('.projThumbs_subContainer div').click(function(){
			reveal($('.details_centerContainer div').eq($trigs.index(this)));
		}), fixIEfade = (function(){/*@cc_on @*//*@if(@_jscript_version >= 5)
			if($.browser.version < 8){
				return function(){
					if(this.style.getAttribute){
						this.style.removeAttribute('filter');
					}
				};
			}@end @*/
			return function(){return;};
		})();
	});
})(jQuery);
