// JavaScript Document


function showhidecell(element,className) {
	element.className = className;        
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



/////////////////////////
//
// Toggle the portfolio
//
/////////////////////////
$(document).ready(function() 
{
   $("#port_switch").toggle(
	   function() 
	   {
		 $("#work").slideDown("slow");
		 $("#port_switch").addClass("navHold");
	   },
	   function() 
	   {
		 $("#work").slideUp("slow");
		 $("#port_switch").removeClass("navHold");
		 $("#port_switch").addClass("navLinks");
	   }
   );
		  
 });